2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL
=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec
; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo
; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo
; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset
; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
638 for dir
in $PATH /usr
/ucb
; do
640 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho
; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL
=/bin
/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
679 SHELL
="$CONFIG_SHELL"
681 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string
=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev
/null
6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix
=/usr
/local
735 ac_config_libobj_dir
=.
741 SHELL
=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
750 # Factoring default headers for most tests.
751 ac_includes_default
="\
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
763 # ifdef HAVE_STDLIB_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
786 ac_subst_vars
='am__EXEEXT_FALSE
829 am__fastdepCCAS_FALSE
878 INSTALL_STRIP_PROGRAM
896 MAINTAINER_MODE_FALSE
947 program_transform_name
959 enable_option_checking
960 enable_maintainer_mode
962 enable_dependency_tracking
977 ac_precious_vars
='build_alias
990 # Initialize some variables set by options.
992 ac_init_version
=false
993 ac_unrecognized_opts
=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
1004 program_transform_name
=s
,x
,x
,
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir
='${exec_prefix}/bin'
1019 sbindir
='${exec_prefix}/sbin'
1020 libexecdir
='${exec_prefix}/libexec'
1021 datarootdir
='${prefix}/share'
1022 datadir
='${datarootdir}'
1023 sysconfdir
='${prefix}/etc'
1024 sharedstatedir
='${prefix}/com'
1025 localstatedir
='${prefix}/var'
1026 includedir
='${prefix}/include'
1027 oldincludedir
='/usr/include'
1028 docdir
='${datarootdir}/doc/${PACKAGE}'
1029 infodir
='${datarootdir}/info'
1034 libdir
='${exec_prefix}/lib'
1035 localedir
='${datarootdir}/locale'
1036 mandir
='${datarootdir}/man'
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
1044 eval $ac_prev=\
$ac_option
1050 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1056 case $ac_dashdash$ac_option in
1060 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1062 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1063 bindir
=$ac_optarg ;;
1065 -build |
--build |
--buil |
--bui |
--bu)
1066 ac_prev
=build_alias
;;
1067 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1068 build_alias
=$ac_optarg ;;
1070 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1071 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1072 ac_prev
=cache_file
;;
1073 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1074 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1075 cache_file
=$ac_optarg ;;
1077 --config-cache |
-C)
1078 cache_file
=config.cache
;;
1080 -datadir |
--datadir |
--datadi |
--datad)
1082 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1083 datadir
=$ac_optarg ;;
1085 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1086 |
--dataroo |
--dataro |
--datar)
1087 ac_prev
=datarootdir
;;
1088 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1089 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1090 datarootdir
=$ac_optarg ;;
1092 -disable-* |
--disable-*)
1093 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1096 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_useropt_orig
=$ac_useropt
1099 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_
$ac_useropt"
1104 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1105 ac_unrecognized_sep
=', ';;
1107 eval enable_
$ac_useropt=no
;;
1109 -docdir |
--docdir |
--docdi |
--doc |
--do)
1111 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1112 docdir
=$ac_optarg ;;
1114 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1116 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1117 dvidir
=$ac_optarg ;;
1119 -enable-* |
--enable-*)
1120 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1123 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_useropt_orig
=$ac_useropt
1126 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "enable_
$ac_useropt"
1131 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132 ac_unrecognized_sep
=', ';;
1134 eval enable_
$ac_useropt=\
$ac_optarg ;;
1136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1138 |
--exec |
--exe |
--ex)
1139 ac_prev
=exec_prefix
;;
1140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1142 |
--exec=* |
--exe=* |
--ex=*)
1143 exec_prefix
=$ac_optarg ;;
1145 -gas |
--gas |
--ga |
--g)
1146 # Obsolete; use --with-gas.
1149 -help |
--help |
--hel |
--he |
-h)
1150 ac_init_help
=long
;;
1151 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1152 ac_init_help
=recursive
;;
1153 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1154 ac_init_help
=short
;;
1156 -host |
--host |
--hos |
--ho)
1157 ac_prev
=host_alias
;;
1158 -host=* |
--host=* |
--hos=* |
--ho=*)
1159 host_alias
=$ac_optarg ;;
1161 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1163 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1165 htmldir
=$ac_optarg ;;
1167 -includedir |
--includedir |
--includedi |
--included |
--include \
1168 |
--includ |
--inclu |
--incl |
--inc)
1169 ac_prev
=includedir
;;
1170 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1171 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1172 includedir
=$ac_optarg ;;
1174 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1176 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1177 infodir
=$ac_optarg ;;
1179 -libdir |
--libdir |
--libdi |
--libd)
1181 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1182 libdir
=$ac_optarg ;;
1184 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1185 |
--libexe |
--libex |
--libe)
1186 ac_prev
=libexecdir
;;
1187 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1188 |
--libexe=* |
--libex=* |
--libe=*)
1189 libexecdir
=$ac_optarg ;;
1191 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1192 ac_prev
=localedir
;;
1193 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1194 localedir
=$ac_optarg ;;
1196 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1197 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1198 ac_prev
=localstatedir
;;
1199 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1200 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1201 localstatedir
=$ac_optarg ;;
1203 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1205 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1206 mandir
=$ac_optarg ;;
1208 -nfp |
--nfp |
--nf)
1209 # Obsolete; use --without-fp.
1212 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1213 |
--no-cr |
--no-c |
-n)
1216 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1217 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1220 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1221 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1222 |
--oldin |
--oldi |
--old |
--ol |
--o)
1223 ac_prev
=oldincludedir
;;
1224 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1225 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1226 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1227 oldincludedir
=$ac_optarg ;;
1229 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1231 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1232 prefix
=$ac_optarg ;;
1234 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1235 |
--program-pre |
--program-pr |
--program-p)
1236 ac_prev
=program_prefix
;;
1237 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1238 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1239 program_prefix
=$ac_optarg ;;
1241 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1242 |
--program-suf |
--program-su |
--program-s)
1243 ac_prev
=program_suffix
;;
1244 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1245 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1246 program_suffix
=$ac_optarg ;;
1248 -program-transform-name |
--program-transform-name \
1249 |
--program-transform-nam |
--program-transform-na \
1250 |
--program-transform-n |
--program-transform- \
1251 |
--program-transform |
--program-transfor \
1252 |
--program-transfo |
--program-transf \
1253 |
--program-trans |
--program-tran \
1254 |
--progr-tra |
--program-tr |
--program-t)
1255 ac_prev
=program_transform_name
;;
1256 -program-transform-name=* |
--program-transform-name=* \
1257 |
--program-transform-nam=* |
--program-transform-na=* \
1258 |
--program-transform-n=* |
--program-transform-=* \
1259 |
--program-transform=* |
--program-transfor=* \
1260 |
--program-transfo=* |
--program-transf=* \
1261 |
--program-trans=* |
--program-tran=* \
1262 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1263 program_transform_name
=$ac_optarg ;;
1265 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1267 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1268 pdfdir
=$ac_optarg ;;
1270 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1272 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1275 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1276 |
-silent |
--silent |
--silen |
--sile |
--sil)
1279 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1281 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1283 sbindir
=$ac_optarg ;;
1285 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1286 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1287 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1289 ac_prev
=sharedstatedir
;;
1290 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1291 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1292 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1294 sharedstatedir
=$ac_optarg ;;
1296 -site |
--site |
--sit)
1298 -site=* |
--site=* |
--sit=*)
1301 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1303 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1304 srcdir
=$ac_optarg ;;
1306 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1307 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1308 ac_prev
=sysconfdir
;;
1309 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1310 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1311 sysconfdir
=$ac_optarg ;;
1313 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1314 ac_prev
=target_alias
;;
1315 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1316 target_alias
=$ac_optarg ;;
1318 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1321 -version |
--version |
--versio |
--versi |
--vers |
-V)
1322 ac_init_version
=: ;;
1325 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1328 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1329 { (exit 1); exit 1; }; }
1330 ac_useropt_orig
=$ac_useropt
1331 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1336 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337 ac_unrecognized_sep
=', ';;
1339 eval with_
$ac_useropt=\
$ac_optarg ;;
1341 -without-* |
--without-*)
1342 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1345 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1346 { (exit 1); exit 1; }; }
1347 ac_useropt_orig
=$ac_useropt
1348 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1353 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354 ac_unrecognized_sep
=', ';;
1356 eval with_
$ac_useropt=no
;;
1359 # Obsolete; use --with-x.
1362 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1363 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1364 ac_prev
=x_includes
;;
1365 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1366 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1367 x_includes
=$ac_optarg ;;
1369 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1370 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1371 ac_prev
=x_libraries
;;
1372 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1373 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1374 x_libraries
=$ac_optarg ;;
1376 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1377 Try \`$0 --help' for more information." >&2
1378 { (exit 1); exit 1; }; }
1382 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1385 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1386 { (exit 1); exit 1; }; }
1387 eval $ac_envvar=\
$ac_optarg
1388 export $ac_envvar ;;
1391 # FIXME: should be removed in autoconf 3.0.
1392 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1394 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1401 if test -n "$ac_prev"; then
1402 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1403 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1404 { (exit 1); exit 1; }; }
1407 if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1410 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1411 { (exit 1); exit 1; }; } ;;
1412 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1416 # Check all directory arguments for consistency.
1417 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1418 datadir sysconfdir sharedstatedir localstatedir includedir \
1419 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1420 libdir localedir mandir
1422 eval ac_val
=\$
$ac_var
1423 # Remove trailing slashes.
1426 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1427 eval $ac_var=\
$ac_val;;
1429 # Be sure to have absolute directory names.
1431 [\\/$
]* | ?
:[\\/]* ) continue;;
1432 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1434 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1435 { (exit 1); exit 1; }; }
1438 # There might be people who depend on the old broken behavior: `$host'
1439 # used to hold the argument of --host etc.
1440 # FIXME: To remove some day.
1443 target
=$target_alias
1445 # FIXME: To remove some day.
1446 if test "x$host_alias" != x
; then
1447 if test "x$build_alias" = x
; then
1448 cross_compiling
=maybe
1449 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1450 If a cross compiler is detected then cross compile mode will be used." >&2
1451 elif test "x$build_alias" != "x$host_alias"; then
1457 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1459 test "$silent" = yes && exec 6>/dev
/null
1462 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1463 ac_ls_di
=`ls -di .` &&
1464 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1465 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1466 { (exit 1); exit 1; }; }
1467 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1468 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1469 { (exit 1); exit 1; }; }
1472 # Find the source files, if location was not specified.
1473 if test -z "$srcdir"; then
1474 ac_srcdir_defaulted
=yes
1475 # Try the directory containing this script, then the parent directory.
1476 ac_confdir
=`$as_dirname -- "$as_myself" ||
1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478 X"$as_myself" : 'X\(//\)[^/]' \| \
1479 X"$as_myself" : 'X\(//\)$' \| \
1480 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481 $as_echo X"$as_myself" |
1482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1504 ac_srcdir_defaulted
=no
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1508 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1509 { (exit 1); exit 1; }; }
1511 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1514 { (exit 1); exit 1; }; }
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1524 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 for ac_var
in $ac_precious_vars; do
1527 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1529 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1540 \`configure' configures this package to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --libdir=DIR object code libraries [EPREFIX/lib]
1581 --includedir=DIR C header files [PREFIX/include]
1582 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1583 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1584 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1585 --infodir=DIR info documentation [DATAROOTDIR/info]
1586 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1587 --mandir=DIR man documentation [DATAROOTDIR/man]
1588 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1589 --htmldir=DIR html documentation [DOCDIR]
1590 --dvidir=DIR dvi documentation [DOCDIR]
1591 --pdfdir=DIR pdf documentation [DOCDIR]
1592 --psdir=DIR ps documentation [DOCDIR]
1598 --program-prefix=PREFIX prepend PREFIX to installed program names
1599 --program-suffix=SUFFIX append SUFFIX to installed program names
1600 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1603 --build=BUILD configure
for building on BUILD
[guessed
]
1604 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1605 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1609 if test -n "$ac_init_help"; then
1614 --disable-option-checking ignore unrecognized
--enable/--with options
1615 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1616 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1617 --enable-maintainer-mode enable make rules and dependencies not useful
1618 (and sometimes confusing
) to the casual installer
1619 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1620 --disable-silent-rules verbose build output (undo: `make V
=0')
1621 --disable-dependency-tracking speeds up one-time build
1622 --enable-dependency-tracking do not reject slow dependency extractors
1623 --enable-shared[=PKGS] build shared libraries [default=yes]
1624 --enable-static[=PKGS] build static libraries [default=yes]
1625 --enable-fast-install[=PKGS]
1626 optimize for fast installation [default=yes]
1627 --disable-libtool-lock avoid locking (might break parallel builds)
1628 --enable-debug Enable generic debug support [default=no]
1631 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1632 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1633 --with-pic try to use only PIC/non-PIC objects [default=use
1635 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1636 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1637 --with-linux=PATH Path to kernel source
1638 --with-linux-obj=PATH Path to kernel build objects
1639 --with-spl=PATH Path to spl source
1640 --with-spl-obj=PATH Path to spl build objects
1641 --with-blkid support blkid caching [default=check]
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1652 CCAS assembler compiler command (defaults to CC)
1653 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1655 Use these variables to override the choices made by `configure' or to
help
1656 it to
find libraries and programs with nonstandard names
/locations.
1662 if test "$ac_init_help" = "recursive"; then
1663 # If there are subdirs, report their specific --help.
1664 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1665 test -d "$ac_dir" ||
1666 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1671 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1673 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1674 # A ".." for each directory in $ac_dir_suffix.
1675 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1676 case $ac_top_builddir_sub in
1677 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1678 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1681 ac_abs_top_builddir
=$ac_pwd
1682 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1683 # for backward compatibility:
1684 ac_top_builddir
=$ac_top_build_prefix
1687 .
) # We are building in place.
1689 ac_top_srcdir
=$ac_top_builddir_sub
1690 ac_abs_top_srcdir
=$ac_pwd ;;
1691 [\\/]* | ?
:[\\/]* ) # Absolute name.
1692 ac_srcdir
=$srcdir$ac_dir_suffix;
1693 ac_top_srcdir
=$srcdir
1694 ac_abs_top_srcdir
=$srcdir ;;
1696 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1698 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1700 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1702 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1703 # Check for guested configure.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1709 $SHELL "$ac_srcdir/configure" --help=recursive
1711 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1721 generated by GNU Autoconf
2.63
1723 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1724 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1725 This configure
script is free software
; the Free Software Foundation
1726 gives unlimited permission to copy
, distribute and modify it.
1730 cat >config.log
<<_ACEOF
1731 This file contains any messages produced by compilers while
1732 running configure, to aid debugging if configure makes a mistake.
1734 It was created by $as_me, which was
1735 generated by GNU Autoconf 2.63. Invocation command line was
1747 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1748 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1749 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1750 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1751 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1754 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1756 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1757 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1758 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1759 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1760 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1761 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1762 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir
=.
1771 $as_echo "PATH: $as_dir"
1787 # Keep a trace of the command line.
1788 # Strip out --no-create and --no-recursion so they do not pile up.
1789 # Strip out --silent because we don't want to record it for future runs.
1790 # Also quote any args containing shell meta-characters.
1791 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_must_keep_next
=false
1801 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1802 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1803 |
-silent |
--silent |
--silen |
--sile |
--sil)
1806 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1809 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1811 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1812 if test $ac_must_keep_next = true
; then
1813 ac_must_keep_next
=false
# Got value, back to normal.
1816 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1817 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1818 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1819 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1820 case "$ac_configure_args0 " in
1821 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1824 -* ) ac_must_keep_next
=true
;;
1827 ac_configure_args
="$ac_configure_args '$ac_arg'"
1832 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1833 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1835 # When interrupted or exit'd, cleanup temporary files, and complete
1836 # config.log. We remove comments because anyway the quotes in there
1837 # would cause problems or look ugly.
1838 # WARNING: Use '\'' to represent an apostrophe within the trap.
1839 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1840 trap 'exit_status=$?
1841 # Save into config.log some information that might help in debugging.
1846 ## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##
1851 # The following way of writing the cache mishandles newlines in values,
1853 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1854 eval ac_val=\$$ac_var
1858 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1862 _ | IFS | as_nl) ;; #(
1863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1864 *) $as_unset $ac_var ;;
1869 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1870 *${as_nl}ac_space=\ *)
1872 "s/'\''/'\''\\\\'\'''\''/g;
1873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884 ## ----------------- ##
1885 ## Output variables. ##
1886 ## ----------------- ##
1889 for ac_var in $ac_subst_vars
1891 eval ac_val=\$$ac_var
1893 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 $as_echo "$ac_var='\''$ac_val'\''"
1899 if test -n "$ac_subst_files"; then
1901 ## ------------------- ##
1902 ## File substitutions. ##
1903 ## ------------------- ##
1906 for ac_var
in $ac_subst_files
1908 eval ac_val
=\$
$ac_var
1910 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 $as_echo "$ac_var='\''$ac_val'\''"
1917 if test -s confdefs.h; then
1927 test "$ac_signal" != 0 &&
1928 $as_echo "$as_me: caught signal $ac_signal"
1929 $as_echo "$as_me: exit $exit_status"
1931 rm -f core *.core core.conftest.* &&
1932 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1935 for ac_signal
in 1 2 13 15; do
1936 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1941 rm -f -r conftest
* confdefs.h
1943 # Predefined preprocessor variables.
1945 cat >>confdefs.h
<<_ACEOF
1946 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 cat >>confdefs.h
<<_ACEOF
1951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955 cat >>confdefs.h
<<_ACEOF
1956 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 cat >>confdefs.h
<<_ACEOF
1961 #define PACKAGE_STRING "$PACKAGE_STRING"
1965 cat >>confdefs.h
<<_ACEOF
1966 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970 # Let the site file select an alternate cache file if it wants to.
1971 # Prefer an explicitly selected file to automatically selected ones.
1974 if test -n "$CONFIG_SITE"; then
1975 ac_site_file1
=$CONFIG_SITE
1976 elif test "x$prefix" != xNONE
; then
1977 ac_site_file1
=$prefix/share
/config.site
1978 ac_site_file2
=$prefix/etc
/config.site
1980 ac_site_file1
=$ac_default_prefix/share
/config.site
1981 ac_site_file2
=$ac_default_prefix/etc
/config.site
1983 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1985 test "x$ac_site_file" = xNONE
&& continue
1986 if test -r "$ac_site_file"; then
1987 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1988 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989 sed 's/^/| /' "$ac_site_file" >&5
1994 if test -r "$cache_file"; then
1995 # Some versions of bash will fail to source /dev/null (special
1996 # files actually), so we avoid doing that.
1997 if test -f "$cache_file"; then
1998 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1999 $as_echo "$as_me: loading cache $cache_file" >&6;}
2001 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2002 *) .
"./$cache_file";;
2006 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2007 $as_echo "$as_me: creating cache $cache_file" >&6;}
2011 # Check that the precious variables saved in the cache have kept the same
2013 ac_cache_corrupted
=false
2014 for ac_var
in $ac_precious_vars; do
2015 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2016 eval ac_new_set
=\
$ac_env_${ac_var}_set
2017 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2018 eval ac_new_val
=\
$ac_env_${ac_var}_value
2019 case $ac_old_set,$ac_new_set in
2021 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2022 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2023 ac_cache_corrupted
=: ;;
2025 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2026 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2027 ac_cache_corrupted
=: ;;
2030 if test "x$ac_old_val" != "x$ac_new_val"; then
2031 # differences in whitespace do not lead to failure.
2032 ac_old_val_w
=`echo x $ac_old_val`
2033 ac_new_val_w
=`echo x $ac_new_val`
2034 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2035 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2036 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2037 ac_cache_corrupted
=:
2039 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2040 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2041 eval $ac_var=\
$ac_old_val
2043 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2044 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2045 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2046 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2049 # Pass precious variables to config.status.
2050 if test "$ac_new_set" = set; then
2052 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2053 *) ac_arg
=$ac_var=$ac_new_val ;;
2055 case " $ac_configure_args " in
2056 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2057 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2061 if $ac_cache_corrupted; then
2062 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2064 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2065 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2066 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2067 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2068 { (exit 1); exit 1; }; }
2088 ac_cpp
='$CPP $CPPFLAGS'
2089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2095 ac_cpp
='$CPP $CPPFLAGS'
2096 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2097 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2098 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2105 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2106 $as_echo_n "checking metadata... " >&6; }
2109 _zfs_ac_meta_got_file
=no
2110 if test -f "$META"; then
2111 _zfs_ac_meta_got_file
=yes
2113 ZFS_META_NAME
=`perl -n\
2114 -e "BEGIN { \\$key=shift @ARGV; }"\
2115 -e "next unless s/^\s*\\$key[:=]//i;"\
2116 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2119 -e "s/^(['\"])(.*)\1/\\$2/;"\
2121 -e "END { print \\$val if defined \\$val; }"\
2122 '(?:NAME|PROJECT|PACKAGE)' $META`;
2123 if test -n "$ZFS_META_NAME"; then
2125 cat >>confdefs.h
<<_ACEOF
2126 #define ZFS_META_NAME "$ZFS_META_NAME"
2132 ZFS_META_VERSION
=`perl -n\
2133 -e "BEGIN { \\$key=shift @ARGV; }"\
2134 -e "next unless s/^\s*\\$key[:=]//i;"\
2135 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2138 -e "s/^(['\"])(.*)\1/\\$2/;"\
2140 -e "END { print \\$val if defined \\$val; }"\
2142 if test -n "$ZFS_META_VERSION"; then
2144 cat >>confdefs.h
<<_ACEOF
2145 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2151 ZFS_META_RELEASE
=`perl -n\
2152 -e "BEGIN { \\$key=shift @ARGV; }"\
2153 -e "next unless s/^\s*\\$key[:=]//i;"\
2154 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2157 -e "s/^(['\"])(.*)\1/\\$2/;"\
2159 -e "END { print \\$val if defined \\$val; }"\
2161 if test -n "$ZFS_META_RELEASE"; then
2163 cat >>confdefs.h
<<_ACEOF
2164 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2170 ZFS_META_LICENSE
=`perl -n\
2171 -e "BEGIN { \\$key=shift @ARGV; }"\
2172 -e "next unless s/^\s*\\$key[:=]//i;"\
2173 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2176 -e "s/^(['\"])(.*)\1/\\$2/;"\
2178 -e "END { print \\$val if defined \\$val; }"\
2180 if test -n "$ZFS_META_LICENSE"; then
2182 cat >>confdefs.h
<<_ACEOF
2183 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2189 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2190 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2191 test -n "$ZFS_META_RELEASE" &&
2192 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2194 cat >>confdefs.h
<<_ACEOF
2195 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2201 ZFS_META_DATA
=`perl -n\
2202 -e "BEGIN { \\$key=shift @ARGV; }"\
2203 -e "next unless s/^\s*\\$key[:=]//i;"\
2204 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2207 -e "s/^(['\"])(.*)\1/\\$2/;"\
2209 -e "END { print \\$val if defined \\$val; }"\
2211 if test -n "$ZFS_META_DATA"; then
2213 cat >>confdefs.h
<<_ACEOF
2214 #define ZFS_META_DATA "$ZFS_META_DATA"
2220 ZFS_META_AUTHOR
=`perl -n\
2221 -e "BEGIN { \\$key=shift @ARGV; }"\
2222 -e "next unless s/^\s*\\$key[:=]//i;"\
2223 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2226 -e "s/^(['\"])(.*)\1/\\$2/;"\
2228 -e "END { print \\$val if defined \\$val; }"\
2230 if test -n "$ZFS_META_AUTHOR"; then
2232 cat >>confdefs.h
<<_ACEOF
2233 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2240 ZFS_META_LT_CURRENT
=`perl -n\
2241 -e "BEGIN { \\$key=shift @ARGV; }"\
2242 -e "next unless s/^\s*\\$key[:=]//i;"\
2243 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2246 -e "s/^(['\"])(.*)\1/\\$2/;"\
2248 -e "END { print \\$val if defined \\$val; }"\
2249 'LT_CURRENT' $META`;
2250 ZFS_META_LT_REVISION
=`perl -n\
2251 -e "BEGIN { \\$key=shift @ARGV; }"\
2252 -e "next unless s/^\s*\\$key[:=]//i;"\
2253 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2256 -e "s/^(['\"])(.*)\1/\\$2/;"\
2258 -e "END { print \\$val if defined \\$val; }"\
2259 'LT_REVISION' $META`;
2260 ZFS_META_LT_AGE
=`perl -n\
2261 -e "BEGIN { \\$key=shift @ARGV; }"\
2262 -e "next unless s/^\s*\\$key[:=]//i;"\
2263 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2266 -e "s/^(['\"])(.*)\1/\\$2/;"\
2268 -e "END { print \\$val if defined \\$val; }"\
2270 if test -n "$ZFS_META_LT_CURRENT" \
2271 -o -n "$ZFS_META_LT_REVISION" \
2272 -o -n "$ZFS_META_LT_AGE"; then
2273 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2274 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2275 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2277 cat >>confdefs.h
<<_ACEOF
2278 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2282 cat >>confdefs.h
<<_ACEOF
2283 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2287 cat >>confdefs.h
<<_ACEOF
2288 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2297 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2298 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2302 for ac_dir
in config
"$srcdir"/config
; do
2303 if test -f "$ac_dir/install-sh"; then
2305 ac_install_sh
="$ac_aux_dir/install-sh -c"
2307 elif test -f "$ac_dir/install.sh"; then
2309 ac_install_sh
="$ac_aux_dir/install.sh -c"
2311 elif test -f "$ac_dir/shtool"; then
2313 ac_install_sh
="$ac_aux_dir/shtool install -c"
2317 if test -z "$ac_aux_dir"; then
2318 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2319 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2320 { (exit 1); exit 1; }; }
2323 # These three variables are undocumented and unsupported,
2324 # and are intended to be withdrawn in a future Autoconf release.
2325 # They can cause serious problems if a builder's source tree is in a directory
2326 # whose full name contains unusual characters.
2327 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2328 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2329 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2332 # Make sure we can run config.sub.
2333 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2334 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2335 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2336 { (exit 1); exit 1; }; }
2338 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2339 $as_echo_n "checking build system type... " >&6; }
2340 if test "${ac_cv_build+set}" = set; then
2341 $as_echo_n "(cached) " >&6
2343 ac_build_alias
=$build_alias
2344 test "x$ac_build_alias" = x
&&
2345 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2346 test "x$ac_build_alias" = x
&&
2347 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2348 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2349 { (exit 1); exit 1; }; }
2350 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2351 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2352 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2353 { (exit 1); exit 1; }; }
2356 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2357 $as_echo "$ac_cv_build" >&6; }
2358 case $ac_cv_build in
2360 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2361 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2362 { (exit 1); exit 1; }; };;
2365 ac_save_IFS
=$IFS; IFS
='-'
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2375 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2378 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if test "${ac_cv_host+set}" = set; then
2381 $as_echo_n "(cached) " >&6
2383 if test "x$host_alias" = x
; then
2384 ac_cv_host
=$ac_cv_build
2386 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2388 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2389 { (exit 1); exit 1; }; }
2393 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2394 $as_echo "$ac_cv_host" >&6; }
2397 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2398 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2399 { (exit 1); exit 1; }; };;
2402 ac_save_IFS
=$IFS; IFS
='-'
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2412 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2415 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2416 $as_echo_n "checking target system type... " >&6; }
2417 if test "${ac_cv_target+set}" = set; then
2418 $as_echo_n "(cached) " >&6
2420 if test "x$target_alias" = x
; then
2421 ac_cv_target
=$ac_cv_host
2423 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2424 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2425 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2426 { (exit 1); exit 1; }; }
2430 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2431 $as_echo "$ac_cv_target" >&6; }
2432 case $ac_cv_target in
2434 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2435 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2436 { (exit 1); exit 1; }; };;
2438 target
=$ac_cv_target
2439 ac_save_IFS
=$IFS; IFS
='-'
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2449 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2452 # The aliases save the names the user supplied, while $host etc.
2453 # will get canonicalized.
2454 test -n "$target_alias" &&
2455 test "$program_prefix$program_suffix$program_transform_name" = \
2457 program_prefix
=${target_alias}-
2459 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2460 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2461 # Check whether --enable-maintainer-mode was given.
2462 if test "${enable_maintainer_mode+set}" = set; then
2463 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2465 USE_MAINTAINER_MODE
=no
2468 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2469 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2470 if test $USE_MAINTAINER_MODE = yes; then
2471 MAINTAINER_MODE_TRUE
=
2472 MAINTAINER_MODE_FALSE
='#'
2474 MAINTAINER_MODE_TRUE
='#'
2475 MAINTAINER_MODE_FALSE
=
2478 MAINT
=$MAINTAINER_MODE_TRUE
2481 # Check whether --enable-silent-rules was given.
2482 if test "${enable_silent_rules+set}" = set; then
2483 enableval
=$enable_silent_rules;
2486 case $enable_silent_rules in
2487 yes) AM_DEFAULT_VERBOSITY
=0;;
2488 no
) AM_DEFAULT_VERBOSITY
=1;;
2489 *) AM_DEFAULT_VERBOSITY
=1;;
2493 am__api_version='1.11'
2495 # Find a good install program. We prefer a C program (faster),
2496 # so one script is as good as another. But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 # Reject install programs that cannot install multiple files.
2509 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2510 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2511 if test -z "$INSTALL"; then
2512 if test "${ac_cv_path_install+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir
=.
2520 # Account for people who put trailing slashes in PATH elements.
2522 .
/ | .
// |
/cC
/* | \
2523 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2524 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2527 # OSF1 and SCO ODT 3.0 have their own names for install.
2528 # Don't use installbsd from OSF since it installs stuff as root
2530 for ac_prog
in ginstall scoinst
install; do
2531 for ac_exec_ext
in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2533 if test $ac_prog = install &&
2534 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2535 # AIX install. It has an incompatible calling convention.
2537 elif test $ac_prog = install &&
2538 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2539 # program-specific install script used by HP pwplus--don't use.
2542 rm -rf conftest.one conftest.two conftest.dir
2543 echo one
> conftest.one
2544 echo two
> conftest.two
2546 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2547 test -s conftest.one
&& test -s conftest.two
&&
2548 test -s conftest.dir
/conftest.one
&&
2549 test -s conftest.dir
/conftest.two
2551 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2564 rm -rf conftest.one conftest.two conftest.dir
2567 if test "${ac_cv_path_install+set}" = set; then
2568 INSTALL
=$ac_cv_path_install
2570 # As a last resort, use the slow shell script. Don't cache a
2571 # value for INSTALL within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the value is a relative name.
2574 INSTALL
=$ac_install_sh
2577 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2578 $as_echo "$INSTALL" >&6; }
2580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2581 # It thinks the first close brace ends the variable substitution.
2582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2586 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2588 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2589 $as_echo_n "checking whether build environment is sane... " >&6; }
2592 echo timestamp
> conftest.
file
2593 # Reject unsafe characters in $srcdir or the absolute working directory
2594 # name. Accept space and tab only in the latter.
2598 *[\\\"\
#\$\&\'\`$am_lf]*)
2599 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2600 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2601 { (exit 1); exit 1; }; };;
2604 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2605 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2606 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2607 { (exit 1); exit 1; }; };;
2610 # Do `set' in a subshell so we don't clobber the current shell's
2611 # arguments. Must try -L first in case configure is actually a
2612 # symlink; some systems play weird games with the mod time of symlinks
2613 # (eg FreeBSD returns the mod time of the symlink's containing
2616 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2617 if test "$*" = "X"; then
2619 set X
`ls -t "$srcdir/configure" conftest.file`
2622 if test "$*" != "X $srcdir/configure conftest.file" \
2623 && test "$*" != "X conftest.file $srcdir/configure"; then
2625 # If neither matched, then we have a broken ls. This can happen
2626 # if, for instance, CONFIG_SHELL is bash and it inherits a
2627 # broken ls alias from the environment. This has actually
2628 # happened. Such a system could not be considered "sane".
2629 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2630 alias in your environment" >&5
2631 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2632 alias in your environment" >&2;}
2633 { (exit 1); exit 1; }; }
2636 test "$2" = conftest.
file
2642 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2643 Check your system clock" >&5
2644 $as_echo "$as_me: error: newly created file is older than distributed files!
2645 Check your system clock" >&2;}
2646 { (exit 1); exit 1; }; }
2648 { $as_echo "$as_me:$LINENO: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 test "$program_prefix" != NONE
&&
2651 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2652 # Use a double $ so make ignores it.
2653 test "$program_suffix" != NONE
&&
2654 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2655 # Double any \ or $.
2656 # By default was `s,x,x', remove it if useless.
2657 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2658 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2660 # expand $ac_aux_dir to an absolute path
2661 am_aux_dir
=`cd $ac_aux_dir && pwd`
2663 if test x
"${MISSING+set}" != xset
; then
2666 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2668 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2671 # Use eval to expand $SHELL
2672 if eval "$MISSING --run true"; then
2673 am_missing_run
="$MISSING --run "
2676 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2677 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2680 if test x
"${install_sh}" != xset
; then
2683 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2685 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2689 # Installed binaries are usually stripped using `strip' when the user
2690 # run `make install-strip'. However `strip' might not be the right
2691 # tool to use in cross-compilation environments, therefore Automake
2692 # will honor the `STRIP' environment variable to overrule this program.
2693 if test "$cross_compiling" != no
; then
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2696 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_STRIP+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$STRIP"; then
2703 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir
=.
2710 for ac_exec_ext
in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 STRIP
=$ac_cv_prog_STRIP
2723 if test -n "$STRIP"; then
2724 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2725 $as_echo "$STRIP" >&6; }
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2733 if test -z "$ac_cv_prog_STRIP"; then
2735 # Extract the first word of "strip", so it can be a program name with args.
2736 set dummy strip
; ac_word
=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$ac_ct_STRIP"; then
2743 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir
=.
2750 for ac_exec_ext
in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_ac_ct_STRIP
="strip"
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2763 if test -n "$ac_ct_STRIP"; then
2764 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2765 $as_echo "$ac_ct_STRIP" >&6; }
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2771 if test "x$ac_ct_STRIP" = x
; then
2774 case $cross_compiling:$ac_tool_warned in
2776 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2778 ac_tool_warned
=yes ;;
2783 STRIP
="$ac_cv_prog_STRIP"
2787 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2789 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2790 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2791 if test -z "$MKDIR_P"; then
2792 if test "${ac_cv_path_mkdir+set}" = set; then
2793 $as_echo_n "(cached) " >&6
2795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2796 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2799 test -z "$as_dir" && as_dir
=.
2800 for ac_prog
in mkdir gmkdir
; do
2801 for ac_exec_ext
in '' $ac_executable_extensions; do
2802 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2803 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2804 'mkdir (GNU coreutils) '* | \
2805 'mkdir (coreutils) '* | \
2806 'mkdir (fileutils) '4.1*)
2807 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2817 if test "${ac_cv_path_mkdir+set}" = set; then
2818 MKDIR_P
="$ac_cv_path_mkdir -p"
2820 # As a last resort, use the slow shell script. Don't cache a
2821 # value for MKDIR_P within a source directory, because that will
2822 # break other packages using the cache if that directory is
2823 # removed, or if the value is a relative name.
2824 test -d .
/--version && rmdir .
/--version
2825 MKDIR_P
="$ac_install_sh -d"
2828 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2829 $as_echo "$MKDIR_P" >&6; }
2833 [\\/$
]* | ?
:[\\/]*) ;;
2834 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2837 for ac_prog
in gawk mawk nawk
awk
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy
$ac_prog; ac_word
=$2
2841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if test "${ac_cv_prog_AWK+set}" = set; then
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$AWK"; then
2847 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir
=.
2854 for ac_exec_ext
in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_AWK
="$ac_prog"
2857 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$AWK"; then
2868 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2869 $as_echo "$AWK" >&6; }
2871 { $as_echo "$as_me:$LINENO: result: no" >&5
2872 $as_echo "no" >&6; }
2876 test -n "$AWK" && break
2879 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2880 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2882 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2883 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2884 $as_echo_n "(cached) " >&6
2886 cat >conftest.
make <<\_ACEOF
2889 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2892 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2894 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2896 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2900 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2901 { $as_echo "$as_me:$LINENO: result: yes" >&5
2902 $as_echo "yes" >&6; }
2905 { $as_echo "$as_me:$LINENO: result: no" >&5
2906 $as_echo "no" >&6; }
2907 SET_MAKE
="MAKE=${MAKE-make}"
2910 rm -rf .tst
2>/dev
/null
2911 mkdir .tst
2>/dev
/null
2912 if test -d .tst
; then
2917 rmdir .tst
2>/dev
/null
2919 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2920 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2921 # is not polluted with repeated "-I."
2922 am__isrc
=' -I$(srcdir)'
2923 # test to see if srcdir already configured
2924 if test -f $srcdir/config.status
; then
2925 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2926 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2927 { (exit 1); exit 1; }; }
2931 # test whether we have cygpath
2932 if test -z "$CYGPATH_W"; then
2933 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2934 CYGPATH_W
='cygpath -w'
2941 # Define the identity of the package.
2942 PACKAGE
=$ZFS_META_NAME
2943 VERSION
=$ZFS_META_VERSION
2946 cat >>confdefs.h
<<_ACEOF
2947 #define PACKAGE "$PACKAGE"
2951 cat >>confdefs.h
<<_ACEOF
2952 #define VERSION "$VERSION"
2955 # Some tools Automake needs.
2957 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2960 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2963 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2966 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2969 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2971 # We need awk for the "check" target. The system "awk" is bad on
2973 # Always define AMTAR for backward compatibility.
2975 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2977 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2983 ac_config_headers
="$ac_config_headers zfs_config.h"
2986 # Find a good install program. We prefer a C program (faster),
2987 # so one script is as good as another. But avoid the broken or
2988 # incompatible versions:
2989 # SysV /etc/install, /usr/sbin/install
2990 # SunOS /usr/etc/install
2991 # IRIX /sbin/install
2993 # AmigaOS /C/install, which installs bootblocks on floppy discs
2994 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2995 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2996 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2997 # OS/2's system install, which has a completely different semantic
2998 # ./install, which can be erroneously created by make from ./install.sh.
2999 # Reject install programs that cannot install multiple files.
3000 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3001 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3002 if test -z "$INSTALL"; then
3003 if test "${ac_cv_path_install+set}" = set; then
3004 $as_echo_n "(cached) " >&6
3006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir
=.
3011 # Account for people who put trailing slashes in PATH elements.
3013 .
/ | .
// |
/cC
/* | \
3014 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3015 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3018 # OSF1 and SCO ODT 3.0 have their own names for install.
3019 # Don't use installbsd from OSF since it installs stuff as root
3021 for ac_prog
in ginstall scoinst
install; do
3022 for ac_exec_ext
in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3024 if test $ac_prog = install &&
3025 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3026 # AIX install. It has an incompatible calling convention.
3028 elif test $ac_prog = install &&
3029 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3030 # program-specific install script used by HP pwplus--don't use.
3033 rm -rf conftest.one conftest.two conftest.dir
3034 echo one
> conftest.one
3035 echo two
> conftest.two
3037 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3038 test -s conftest.one
&& test -s conftest.two
&&
3039 test -s conftest.dir
/conftest.one
&&
3040 test -s conftest.dir
/conftest.two
3042 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3055 rm -rf conftest.one conftest.two conftest.dir
3058 if test "${ac_cv_path_install+set}" = set; then
3059 INSTALL
=$ac_cv_path_install
3061 # As a last resort, use the slow shell script. Don't cache a
3062 # value for INSTALL within a source directory, because that will
3063 # break other packages using the cache if that directory is
3064 # removed, or if the value is a relative name.
3065 INSTALL
=$ac_install_sh
3068 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3069 $as_echo "$INSTALL" >&6; }
3071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3072 # It thinks the first close brace ends the variable substitution.
3073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3077 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3080 ac_cpp
='$CPP $CPPFLAGS'
3081 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3084 if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3086 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_CC+set}" = set; then
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC
="$CC" # Let the user override the test.
3095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir
=.
3100 for ac_exec_ext
in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 if test -n "$CC"; then
3114 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3117 { $as_echo "$as_me:$LINENO: result: no" >&5
3118 $as_echo "no" >&6; }
3123 if test -z "$ac_cv_prog_CC"; then
3125 # Extract the first word of "gcc", so it can be a program name with args.
3126 set dummy gcc
; ac_word
=$2
3127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3130 $as_echo_n "(cached) " >&6
3132 if test -n "$ac_ct_CC"; then
3133 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir
=.
3140 for ac_exec_ext
in '' $ac_executable_extensions; do
3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142 ac_cv_prog_ac_ct_CC
="gcc"
3143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3153 if test -n "$ac_ct_CC"; then
3154 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3155 $as_echo "$ac_ct_CC" >&6; }
3157 { $as_echo "$as_me:$LINENO: result: no" >&5
3158 $as_echo "no" >&6; }
3161 if test "x$ac_ct_CC" = x
; then
3164 case $cross_compiling:$ac_tool_warned in
3166 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned
=yes ;;
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3179 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_CC+set}" = set; then
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC
="$CC" # Let the user override the test.
3188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir
=.
3193 for ac_exec_ext
in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3210 { $as_echo "$as_me:$LINENO: result: no" >&5
3211 $as_echo "no" >&6; }
3217 if test -z "$CC"; then
3218 # Extract the first word of "cc", so it can be a program name with args.
3219 set dummy cc
; ac_word
=$2
3220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then
3223 $as_echo_n "(cached) " >&6
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC
="$CC" # Let the user override the test.
3229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir
=.
3234 for ac_exec_ext
in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3237 ac_prog_rejected
=yes
3241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 if test $ac_prog_rejected = yes; then
3249 # We found a bogon in the path, so make sure we never use it.
3250 set dummy
$ac_cv_prog_CC
3252 if test $# != 0; then
3253 # We chose a different compiler from the bogus one.
3254 # However, it has the same basename, so the bogon will be chosen
3255 # first if we set CC to just the basename; use the full file name.
3257 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3267 { $as_echo "$as_me:$LINENO: result: no" >&5
3268 $as_echo "no" >&6; }
3273 if test -z "$CC"; then
3274 if test -n "$ac_tool_prefix"; then
3275 for ac_prog
in cl.exe
3277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_CC+set}" = set; then
3282 $as_echo_n "(cached) " >&6
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC
="$CC" # Let the user override the test.
3287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir
=.
3292 for ac_exec_ext
in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test -n "$CC"; then
3306 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3309 { $as_echo "$as_me:$LINENO: result: no" >&5
3310 $as_echo "no" >&6; }
3314 test -n "$CC" && break
3317 if test -z "$CC"; then
3319 for ac_prog
in cl.exe
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy
$ac_prog; ac_word
=$2
3323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3326 $as_echo_n "(cached) " >&6
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir
=.
3336 for ac_exec_ext
in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_ac_ct_CC
="$ac_prog"
3339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3349 if test -n "$ac_ct_CC"; then
3350 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3351 $as_echo "$ac_ct_CC" >&6; }
3353 { $as_echo "$as_me:$LINENO: result: no" >&5
3354 $as_echo "no" >&6; }
3358 test -n "$ac_ct_CC" && break
3361 if test "x$ac_ct_CC" = x
; then
3364 case $cross_compiling:$ac_tool_warned in
3366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368 ac_tool_warned
=yes ;;
3377 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3380 See \`config.log' for more details." >&5
3381 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }; }
3385 # Provide some information about the compiler.
3386 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3389 { (ac_try
="$ac_compiler --version >&5"
3391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396 (eval "$ac_compiler --version >&5") 2>&5
3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }
3400 { (ac_try="$ac_compiler -v >&5"
3402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3403 *) ac_try_echo
=$ac_try;;
3405 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407 (eval "$ac_compiler -v >&5") 2>&5
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }
3411 { (ac_try
="$ac_compiler -V >&5"
3413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_compiler -V >&5") 2>&5
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3438 ac_clean_files_save=$ac_clean_files
3439 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3440 # Try to create an executable without -o first, disregard a.out.
3441 # It will help us diagnose broken compilers, and finding out an intuition
3443 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3444 $as_echo_n "checking for C compiler default output file name... " >&6; }
3445 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3447 # The possible output files:
3448 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3451 for ac_file in $ac_files
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3455 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3460 if { (ac_try="$ac_link_default"
3462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3463 *) ac_try_echo
=$ac_try;;
3465 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3466 $as_echo "$ac_try_echo") >&5
3467 (eval "$ac_link_default") 2>&5
3469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; then
3471 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3472 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3473 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3474 # so that the user can short-circuit this test for compilers unknown to
3476 for ac_file
in $ac_files ''
3478 test -f "$ac_file" ||
continue
3480 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3483 # We found the default executable, but exeext='' is most
3487 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3489 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491 # We set ac_cv_exeext here because the later test for it is not
3492 # safe: cross compilers may not add the suffix if given an `-o'
3493 # argument, so we may need to know it at that point already.
3494 # Even if this section looks crufty: it has the advantage of
3501 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3507 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3508 $as_echo "$ac_file" >&6; }
3509 if test -z "$ac_file"; then
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.
$ac_ext >&5
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3516 See \`config.log' for more details." >&5
3517 $as_echo "$as_me: error: C compiler cannot create executables
3518 See \`config.log' for more details." >&2;}
3519 { (exit 77); exit 77; }; }; }
3522 ac_exeext
=$ac_cv_exeext
3524 # Check that the compiler produces executables we can run. If not, either
3525 # the compiler is broken, or we cross compile.
3526 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3527 $as_echo_n "checking whether the C compiler works... " >&6; }
3528 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3529 # If not cross compiling, check that we can run a simple program.
3530 if test "$cross_compiling" != yes; then
3531 if { ac_try
='./$ac_file'
3532 { (case "(($ac_try" in
3533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3537 $as_echo "$ac_try_echo") >&5
3538 (eval "$ac_try") 2>&5
3540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3544 if test "$cross_compiling" = maybe; then
3547 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3550 If you meant to cross compile
, use \
`--host'.
3551 See \`config.log
' for more details." >&5
3552 $as_echo "$as_me: error: cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \
`config.log' for more details." >&2;}
3555 { (exit 1); exit 1; }; }; }
3559 { $as_echo "$as_me:$LINENO: result: yes" >&5
3560 $as_echo "yes" >&6; }
3562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3563 ac_clean_files=$ac_clean_files_save
3564 # Check that the compiler produces executables we can run. If not, either
3565 # the compiler is broken, or we cross compile.
3566 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3567 $as_echo_n "checking whether we are cross compiling... " >&6; }
3568 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3569 $as_echo "$cross_compiling" >&6; }
3571 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3572 $as_echo_n "checking for suffix of executables... " >&6; }
3573 if { (ac_try="$ac_link"
3575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3576 *) ac_try_echo
=$ac_try;;
3578 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3579 $as_echo "$ac_try_echo") >&5
3580 (eval "$ac_link") 2>&5
3582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; then
3584 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3585 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3586 # work properly (i.e., refer to `conftest.exe'), while it won't with
3588 for ac_file
in conftest.exe conftest conftest.
*; do
3589 test -f "$ac_file" ||
continue
3591 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3592 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3601 See \`config.log' for more details." >&5
3602 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3603 See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }; }
3607 rm -f conftest
$ac_cv_exeext
3608 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3609 $as_echo "$ac_cv_exeext" >&6; }
3611 rm -f conftest.
$ac_ext
3612 EXEEXT
=$ac_cv_exeext
3614 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if test "${ac_cv_objext+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3619 cat >conftest.
$ac_ext <<_ACEOF
3622 cat confdefs.h
>>conftest.
$ac_ext
3623 cat >>conftest.
$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3634 rm -f conftest.o conftest.obj
3635 if { (ac_try
="$ac_compile"
3637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3641 $as_echo "$ac_try_echo") >&5
3642 (eval "$ac_compile") 2>&5
3644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; then
3646 for ac_file in conftest.o conftest.obj conftest.*; do
3647 test -f "$ac_file" || continue;
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3661 See \
`config.log' for more details." >&5
3662 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3663 See \`config.log
' for more details." >&2;}
3664 { (exit 1); exit 1; }; }; }
3667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3670 $as_echo "$ac_cv_objext" >&6; }
3671 OBJEXT=$ac_cv_objext
3673 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3676 $as_echo_n "(cached) " >&6
3678 cat >conftest.$ac_ext <<_ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^
*+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's
/^
/|
/' conftest.$ac_ext >&5
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728 if test $ac_compiler_gnu = yes; then
3733 ac_test_CFLAGS=${CFLAGS+set}
3734 ac_save_CFLAGS=$CFLAGS
3735 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3737 if test "${ac_cv_prog_cc_g+set}" = set; then
3738 $as_echo_n "(cached) " >&6
3740 ac_save_c_werror_flag=$ac_c_werror_flag
3741 ac_c_werror_flag=yes
3744 cat >conftest.$ac_ext <<_ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3769 grep -v '^
*+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
3779 $as_echo "$as_me: failed program was:" >&5
3780 sed 's
/^
/|
/' conftest.$ac_ext >&5
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3805 $as_echo "$ac_try_echo") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3808 grep -v '^
*+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
3818 $as_echo "$as_me: failed program was:" >&5
3819 sed 's
/^
/|
/' conftest.$ac_ext >&5
3821 ac_c_werror_flag=$ac_save_c_werror_flag
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3845 $as_echo "$ac_try_echo") >&5
3846 (eval "$ac_compile") 2>conftest.er1
3848 grep -v '^
*+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } && {
3853 test -z "$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3855 } && test -s conftest.$ac_objext; then
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's
/^
/|
/' conftest.$ac_ext >&5
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3873 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3874 $as_echo "$ac_cv_prog_cc_g" >&6; }
3875 if test "$ac_test_CFLAGS" = set; then
3876 CFLAGS=$ac_save_CFLAGS
3877 elif test $ac_cv_prog_cc_g = yes; then
3878 if test "$GCC" = yes; then
3884 if test "$GCC" = yes; then
3890 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3891 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3892 if test "${ac_cv_prog_cc_c89+set}" = set; then
3893 $as_echo_n "(cached) " >&6
3895 ac_cv_prog_cc_c89=no
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3905 #include <sys/types.h>
3906 #include <sys/stat.h>
3907 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3908 struct buf
{ int x
; };
3909 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3910 static char
*e
(p
, i
)
3916 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3921 s
= g
(p
, va_arg
(v
,int
));
3926 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3927 function prototypes and stuff
, but not
'\xHH' hex character constants.
3928 These don
't provoke an error unfortunately, instead are silently treated
3929 as 'x
'. The following induces an error, until -std is added to get
3930 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3931 array size at least. It's necessary to
write '\x00'==0 to get something
3932 that
's true only with -std. */
3933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3936 inside strings and character constants. */
3938 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3940 int test (int i, double x);
3941 struct s1 {int (*f) (int a);};
3942 struct s2 {int (*f) (double a);};
3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3957 CC="$ac_save_CC $ac_arg"
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3968 grep -v '^
*+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3976 ac_cv_prog_cc_c89=$ac_arg
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's
/^
/|
/' conftest.$ac_ext >&5
3984 rm -f core conftest.err conftest.$ac_objext
3985 test "x$ac_cv_prog_cc_c89" != "xno" && break
3987 rm -f conftest.$ac_ext
3992 case "x$ac_cv_prog_cc_c89" in
3994 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3995 $as_echo "none needed" >&6; } ;;
3997 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3998 $as_echo "unsupported" >&6; } ;;
4000 CC="$CC $ac_cv_prog_cc_c89"
4001 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4009 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 DEPDIR="${am__leading_dot}deps"
4013 ac_config_commands="$ac_config_commands depfiles"
4016 am_make=${MAKE-make}
4017 cat > confinc << 'END
'
4019 @echo this is the am__doit target
4022 # If we don't
find an include directive
, just comment out the code.
4023 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4024 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4028 # First try GNU make style include.
4029 echo "include confinc" > confmf
4030 # Ignore all kinds of additional output from `make'.
4031 case `$am_make -s -f confmf 2> /dev/null` in #(
4032 *the\ am__doit\ target
*)
4038 # Now try BSD make style include.
4039 if test "$am__include" = "#"; then
4040 echo '.include "confinc"' > confmf
4041 case `$am_make -s -f confmf 2> /dev/null` in #(
4042 *the\ am__doit\ target
*)
4043 am__include
=.include
4051 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4052 $as_echo "$_am_result" >&6; }
4053 rm -f confinc confmf
4055 # Check whether --enable-dependency-tracking was given.
4056 if test "${enable_dependency_tracking+set}" = set; then
4057 enableval
=$enable_dependency_tracking;
4060 if test "x$enable_dependency_tracking" != xno
; then
4061 am_depcomp
="$ac_aux_dir/depcomp"
4064 if test "x$enable_dependency_tracking" != xno; then
4074 depcc
="$CC" am_compiler_list
=
4076 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4077 $as_echo_n "checking dependency style of $depcc... " >&6; }
4078 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4079 $as_echo_n "(cached) " >&6
4081 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4082 # We make a subdir and do the tests there. Otherwise we can end up
4083 # making bogus files that we don't know about and never remove. For
4084 # instance it was reported that on HP-UX the gcc test will end up
4085 # making a dummy file named `D' -- because `-MD' means `put the output
4088 # Copy depcomp to subdir because otherwise we won't find it if we're
4089 # using a relative directory.
4090 cp "$am_depcomp" conftest.dir
4092 # We will build objects and dependencies in a subdirectory because
4093 # it helps to detect inapplicable dependency modes. For instance
4094 # both Tru64's cc and ICC support -MD to output dependencies as a
4095 # side effect of compilation, but ICC will put the dependencies in
4096 # the current directory while Tru64 will put them in the object
4100 am_cv_CC_dependencies_compiler_type
=none
4101 if test "$am_compiler_list" = ""; then
4102 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105 case " $depcc " in #(
4106 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4109 for depmode
in $am_compiler_list; do
4110 # Setup a source with many dependencies, because some compilers
4111 # like to wrap large dependency lists on column 80 (with \), and
4112 # we should not choose a depcomp mode which is confused by this.
4114 # We need to recreate these files for each test, as the compiler may
4115 # overwrite some of them when testing with obscure command lines.
4116 # This happens at least with the AIX C compiler.
4118 for i
in 1 2 3 4 5 6; do
4119 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4120 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4121 # Solaris 8's {/usr,}/bin/sh.
4122 touch sub
/conftst
$i.h
4124 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4126 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4127 # mode. It turns out that the SunPro C++ compiler does not properly
4128 # handle `-M -o', and we need to detect this. Also, some Intel
4129 # versions had trouble with output in subdirs
4130 am__obj
=sub
/conftest.
${OBJEXT-o}
4131 am__minus_obj
="-o $am__obj"
4134 # This depmode causes a compiler race in universal mode.
4135 test "$am__universal" = false ||
continue
4138 # after this tag, mechanisms are not by side-effect, so they'll
4139 # only be used when explicitly requested
4140 if test "x$enable_dependency_tracking" = xyes
; then
4146 msvisualcpp | msvcmsys
)
4147 # This compiler won't grok `-c -o', but also, the minuso test has
4148 # not run yet. These depmodes are late enough in the game, and
4149 # so weak that their functioning should not be impacted.
4150 am__obj
=conftest.
${OBJEXT-o}
4155 if depmode
=$depmode \
4156 source=sub
/conftest.c object
=$am__obj \
4157 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4158 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4159 >/dev
/null
2>conftest.err
&&
4160 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4161 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4162 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4163 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4164 # icc doesn't choke on unknown options, it will just issue warnings
4165 # or remarks (even with -Werror). So we grep stderr for any message
4166 # that says an option was ignored or not supported.
4167 # When given -MP, icc 7.0 and 7.1 complain thusly:
4168 # icc: Command line warning: ignoring option '-M'; no argument required
4169 # The diagnosis changed in icc 8.0:
4170 # icc: Command line remark: option '-MP' not supported
4171 if (grep 'ignoring option' conftest.err ||
4172 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4173 am_cv_CC_dependencies_compiler_type
=$depmode
4182 am_cv_CC_dependencies_compiler_type
=none
4186 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4187 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4188 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4191 test "x$enable_dependency_tracking" != xno \
4192 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4194 am__fastdepCC_FALSE
='#'
4196 am__fastdepCC_TRUE
='#'
4197 am__fastdepCC_FALSE
=
4203 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4204 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4209 macro_version
='2.2.6'
4210 macro_revision
='1.3012'
4224 ltmain
="$ac_aux_dir/ltmain.sh"
4226 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4227 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4228 if test "${ac_cv_path_SED+set}" = set; then
4229 $as_echo_n "(cached) " >&6
4231 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4232 for ac_i
in 1 2 3 4 5 6 7; do
4233 ac_script
="$ac_script$as_nl$ac_script"
4235 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4236 $as_unset ac_script || ac_script
=
4237 if test -z "$SED"; then
4238 ac_path_SED_found
=false
4239 # Loop through the user's path and test for each of PROGNAME-LIST
4240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir
=.
4245 for ac_prog
in sed gsed
; do
4246 for ac_exec_ext
in '' $ac_executable_extensions; do
4247 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4248 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4249 # Check for GNU ac_path_SED and select it if it is found.
4250 # Check for GNU $ac_path_SED
4251 case `"$ac_path_SED" --version 2>&1` in
4253 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4256 $as_echo_n 0123456789 >"conftest.in"
4259 cat "conftest.in" "conftest.in" >"conftest.tmp"
4260 mv "conftest.tmp" "conftest.in"
4261 cp "conftest.in" "conftest.nl"
4262 $as_echo '' >> "conftest.nl"
4263 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4264 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4265 ac_count
=`expr $ac_count + 1`
4266 if test $ac_count -gt ${ac_path_SED_max-0}; then
4267 # Best one so far, save it but keep looking for a better one
4268 ac_cv_path_SED
="$ac_path_SED"
4269 ac_path_SED_max
=$ac_count
4271 # 10*(2^10) chars as input seems more than enough
4272 test $ac_count -gt 10 && break
4274 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4277 $ac_path_SED_found && break 3
4282 if test -z "$ac_cv_path_SED"; then
4283 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4284 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4285 { (exit 1); exit 1; }; }
4292 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4293 $as_echo "$ac_cv_path_SED" >&6; }
4294 SED
="$ac_cv_path_SED"
4297 test -z "$SED" && SED
=sed
4298 Xsed
="$SED -e 1s/^X//"
4310 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4312 if test "${ac_cv_path_GREP+set}" = set; then
4313 $as_echo_n "(cached) " >&6
4315 if test -z "$GREP"; then
4316 ac_path_GREP_found
=false
4317 # Loop through the user's path and test for each of PROGNAME-LIST
4318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4319 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4322 test -z "$as_dir" && as_dir
=.
4323 for ac_prog
in grep ggrep
; do
4324 for ac_exec_ext
in '' $ac_executable_extensions; do
4325 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4326 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4327 # Check for GNU ac_path_GREP and select it if it is found.
4328 # Check for GNU $ac_path_GREP
4329 case `"$ac_path_GREP" --version 2>&1` in
4331 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4334 $as_echo_n 0123456789 >"conftest.in"
4337 cat "conftest.in" "conftest.in" >"conftest.tmp"
4338 mv "conftest.tmp" "conftest.in"
4339 cp "conftest.in" "conftest.nl"
4340 $as_echo 'GREP' >> "conftest.nl"
4341 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4342 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4343 ac_count
=`expr $ac_count + 1`
4344 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4345 # Best one so far, save it but keep looking for a better one
4346 ac_cv_path_GREP
="$ac_path_GREP"
4347 ac_path_GREP_max
=$ac_count
4349 # 10*(2^10) chars as input seems more than enough
4350 test $ac_count -gt 10 && break
4352 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4355 $ac_path_GREP_found && break 3
4360 if test -z "$ac_cv_path_GREP"; then
4361 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4362 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4363 { (exit 1); exit 1; }; }
4366 ac_cv_path_GREP
=$GREP
4370 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4371 $as_echo "$ac_cv_path_GREP" >&6; }
4372 GREP
="$ac_cv_path_GREP"
4375 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4376 $as_echo_n "checking for egrep... " >&6; }
4377 if test "${ac_cv_path_EGREP+set}" = set; then
4378 $as_echo_n "(cached) " >&6
4380 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4381 then ac_cv_path_EGREP
="$GREP -E"
4383 if test -z "$EGREP"; then
4384 ac_path_EGREP_found
=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4387 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4390 test -z "$as_dir" && as_dir
=.
4391 for ac_prog
in egrep; do
4392 for ac_exec_ext
in '' $ac_executable_extensions; do
4393 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4394 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4395 # Check for GNU ac_path_EGREP and select it if it is found.
4396 # Check for GNU $ac_path_EGREP
4397 case `"$ac_path_EGREP" --version 2>&1` in
4399 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4402 $as_echo_n 0123456789 >"conftest.in"
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'EGREP' >> "conftest.nl"
4409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4410 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4411 ac_count
=`expr $ac_count + 1`
4412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_EGREP
="$ac_path_EGREP"
4415 ac_path_EGREP_max
=$ac_count
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4420 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4423 $ac_path_EGREP_found && break 3
4428 if test -z "$ac_cv_path_EGREP"; then
4429 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4430 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4431 { (exit 1); exit 1; }; }
4434 ac_cv_path_EGREP
=$EGREP
4439 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4440 $as_echo "$ac_cv_path_EGREP" >&6; }
4441 EGREP
="$ac_cv_path_EGREP"
4444 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4445 $as_echo_n "checking for fgrep... " >&6; }
4446 if test "${ac_cv_path_FGREP+set}" = set; then
4447 $as_echo_n "(cached) " >&6
4449 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4450 then ac_cv_path_FGREP
="$GREP -F"
4452 if test -z "$FGREP"; then
4453 ac_path_FGREP_found
=false
4454 # Loop through the user's path and test for each of PROGNAME-LIST
4455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4456 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4459 test -z "$as_dir" && as_dir
=.
4460 for ac_prog
in fgrep
; do
4461 for ac_exec_ext
in '' $ac_executable_extensions; do
4462 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4463 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4464 # Check for GNU ac_path_FGREP and select it if it is found.
4465 # Check for GNU $ac_path_FGREP
4466 case `"$ac_path_FGREP" --version 2>&1` in
4468 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4471 $as_echo_n 0123456789 >"conftest.in"
4474 cat "conftest.in" "conftest.in" >"conftest.tmp"
4475 mv "conftest.tmp" "conftest.in"
4476 cp "conftest.in" "conftest.nl"
4477 $as_echo 'FGREP' >> "conftest.nl"
4478 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4479 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4480 ac_count
=`expr $ac_count + 1`
4481 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4482 # Best one so far, save it but keep looking for a better one
4483 ac_cv_path_FGREP
="$ac_path_FGREP"
4484 ac_path_FGREP_max
=$ac_count
4486 # 10*(2^10) chars as input seems more than enough
4487 test $ac_count -gt 10 && break
4489 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4492 $ac_path_FGREP_found && break 3
4497 if test -z "$ac_cv_path_FGREP"; then
4498 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4499 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4500 { (exit 1); exit 1; }; }
4503 ac_cv_path_FGREP
=$FGREP
4508 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4509 $as_echo "$ac_cv_path_FGREP" >&6; }
4510 FGREP
="$ac_cv_path_FGREP"
4513 test -z "$GREP" && GREP
=grep
4533 # Check whether --with-gnu-ld was given.
4534 if test "${with_gnu_ld+set}" = set; then
4535 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4541 if test "$GCC" = yes; then
4542 # Check if gcc -print-prog-name=ld gives a path.
4543 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4544 $as_echo_n "checking for ld used by $CC... " >&6; }
4547 # gcc leaves a trailing carriage return which upsets mingw
4548 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4550 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4553 # Accept absolute paths.
4555 re_direlt
='/[^/][^/]*/\.\./'
4556 # Canonicalize the pathname of ld
4557 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4558 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4559 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4561 test -z "$LD" && LD
="$ac_prog"
4564 # If it fails, then pretend we aren't using GCC.
4568 # If it is relative, then search for the first ld in PATH.
4572 elif test "$with_gnu_ld" = yes; then
4573 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4574 $as_echo_n "checking for GNU ld... " >&6; }
4576 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4577 $as_echo_n "checking for non-GNU ld... " >&6; }
4579 if test "${lt_cv_path_LD+set}" = set; then
4580 $as_echo_n "(cached) " >&6
4582 if test -z "$LD"; then
4583 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4584 for ac_dir
in $PATH; do
4586 test -z "$ac_dir" && ac_dir
=.
4587 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4588 lt_cv_path_LD
="$ac_dir/$ac_prog"
4589 # Check to see if the program is GNU ld. I'd rather use --version,
4590 # but apparently some variants of GNU ld only accept -v.
4591 # Break only if it was the GNU/non-GNU ld that we prefer.
4592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4593 *GNU
* |
*'with BFD'*)
4594 test "$with_gnu_ld" != no
&& break
4597 test "$with_gnu_ld" != yes && break
4604 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4609 if test -n "$LD"; then
4610 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4611 $as_echo "$LD" >&6; }
4613 { $as_echo "$as_me:$LINENO: result: no" >&5
4614 $as_echo "no" >&6; }
4616 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4617 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4618 { (exit 1); exit 1; }; }
4619 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4621 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4622 $as_echo_n "(cached) " >&6
4624 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4625 case `$LD -v 2>&1 </dev/null` in
4626 *GNU
* |
*'with BFD'*)
4627 lt_cv_prog_gnu_ld
=yes
4630 lt_cv_prog_gnu_ld
=no
4634 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4635 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4636 with_gnu_ld
=$lt_cv_prog_gnu_ld
4646 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4647 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4648 if test "${lt_cv_path_NM+set}" = set; then
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$NM"; then
4652 # Let the user override the test.
4655 lt_nm_to_check
="${ac_tool_prefix}nm"
4656 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4657 lt_nm_to_check
="$lt_nm_to_check nm"
4659 for lt_tmp_nm
in $lt_nm_to_check; do
4660 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4661 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4663 test -z "$ac_dir" && ac_dir
=.
4664 tmp_nm
="$ac_dir/$lt_tmp_nm"
4665 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4666 # Check to see if the nm accepts a BSD-compat flag.
4667 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4668 # nm: unknown option "B" ignored
4669 # Tru64's nm complains that /dev/null is an invalid object file
4670 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4671 */dev
/null
* |
*'Invalid file or object type'*)
4672 lt_cv_path_NM
="$tmp_nm -B"
4676 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4678 lt_cv_path_NM
="$tmp_nm -p"
4682 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4683 continue # so that we can try to find one that supports BSD flags
4692 : ${lt_cv_path_NM=no}
4695 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4696 $as_echo "$lt_cv_path_NM" >&6; }
4697 if test "$lt_cv_path_NM" != "no"; then
4700 # Didn't find any BSD compatible name lister, look for dumpbin.
4701 if test -n "$ac_tool_prefix"; then
4702 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4705 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4711 if test -n "$DUMPBIN"; then
4712 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir
=.
4719 for ac_exec_ext
in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 DUMPBIN
=$ac_cv_prog_DUMPBIN
4732 if test -n "$DUMPBIN"; then
4733 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4734 $as_echo "$DUMPBIN" >&6; }
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4741 test -n "$DUMPBIN" && break
4744 if test -z "$DUMPBIN"; then
4745 ac_ct_DUMPBIN
=$DUMPBIN
4746 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4748 # Extract the first word of "$ac_prog", so it can be a program name with args.
4749 set dummy
$ac_prog; ac_word
=$2
4750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4753 $as_echo_n "(cached) " >&6
4755 if test -n "$ac_ct_DUMPBIN"; then
4756 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4762 test -z "$as_dir" && as_dir
=.
4763 for ac_exec_ext
in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4776 if test -n "$ac_ct_DUMPBIN"; then
4777 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4778 $as_echo "$ac_ct_DUMPBIN" >&6; }
4780 { $as_echo "$as_me:$LINENO: result: no" >&5
4781 $as_echo "no" >&6; }
4785 test -n "$ac_ct_DUMPBIN" && break
4788 if test "x$ac_ct_DUMPBIN" = x
; then
4791 case $cross_compiling:$ac_tool_warned in
4793 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795 ac_tool_warned
=yes ;;
4797 DUMPBIN
=$ac_ct_DUMPBIN
4802 if test "$DUMPBIN" != ":"; then
4806 test -z "$NM" && NM
=nm
4813 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4814 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4815 if test "${lt_cv_nm_interface+set}" = set; then
4816 $as_echo_n "(cached) " >&6
4818 lt_cv_nm_interface
="BSD nm"
4819 echo "int some_variable = 0;" > conftest.
$ac_ext
4820 (eval echo "\"\$as_me:4820: $ac_compile\"" >&5)
4821 (eval "$ac_compile" 2>conftest.err
)
4822 cat conftest.err
>&5
4823 (eval echo "\"\$as_me:4823: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4824 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4825 cat conftest.err
>&5
4826 (eval echo "\"\$as_me:4826: output\"" >&5)
4827 cat conftest.out
>&5
4828 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4829 lt_cv_nm_interface
="MS dumpbin"
4833 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4834 $as_echo "$lt_cv_nm_interface" >&6; }
4836 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4837 $as_echo_n "checking whether ln -s works... " >&6; }
4839 if test "$LN_S" = "ln -s"; then
4840 { $as_echo "$as_me:$LINENO: result: yes" >&5
4841 $as_echo "yes" >&6; }
4843 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4844 $as_echo "no, using $LN_S" >&6; }
4847 # find the maximum length of command line arguments
4848 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4849 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4850 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4851 $as_echo_n "(cached) " >&6
4858 # On DJGPP, this test can blow up pretty badly due to problems in libc
4859 # (any single argument exceeding 2000 bytes causes a buffer overrun
4860 # during glob expansion). Even if it were fixed, the result of this
4861 # check would be larger than it should be.
4862 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4866 # Under GNU Hurd, this test is not required because there is
4867 # no limit to the length of command line arguments.
4868 # Libtool will interpret -1 as no limit whatsoever
4869 lt_cv_sys_max_cmd_len
=-1;
4872 cygwin
* | mingw
* | cegcc
*)
4873 # On Win9x/ME, this test blows up -- it succeeds, but takes
4874 # about 5 minutes as the teststring grows exponentially.
4875 # Worse, since 9x/ME are not pre-emptively multitasking,
4876 # you end up with a "frozen" computer, even though with patience
4877 # the test eventually succeeds (with a max line length of 256k).
4878 # Instead, let's just punt: use the minimum linelength reported by
4879 # all of the supported platforms: 8192 (on NT/2K/XP).
4880 lt_cv_sys_max_cmd_len
=8192;
4884 # On AmigaOS with pdksh, this test takes hours, literally.
4885 # So we just punt and use a minimum line length of 8192.
4886 lt_cv_sys_max_cmd_len
=8192;
4889 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4890 # This has been around since 386BSD, at least. Likely further.
4891 if test -x /sbin
/sysctl
; then
4892 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4893 elif test -x /usr
/sbin
/sysctl
; then
4894 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4896 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4898 # And add a safety zone
4899 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4900 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4904 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4905 lt_cv_sys_max_cmd_len
=196608
4909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4911 # nice to cause kernel panics so lets avoid the loop below.
4912 # First set a reasonable default.
4913 lt_cv_sys_max_cmd_len
=16384
4915 if test -x /sbin
/sysconfig
; then
4916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4917 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4922 lt_cv_sys_max_cmd_len
=102400
4924 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4925 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4926 if test -n "$kargmax"; then
4927 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4929 lt_cv_sys_max_cmd_len
=32768
4933 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4934 if test -n "$lt_cv_sys_max_cmd_len"; then
4935 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4936 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4938 # Make teststring a little bigger before we do anything with it.
4939 # a 1K string should be a reasonable start.
4940 for i
in 1 2 3 4 5 6 7 8 ; do
4941 teststring
=$teststring$teststring
4943 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4944 # If test is not a shell built-in, we'll probably end up computing a
4945 # maximum length that is only half of the actual maximum length, but
4947 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4948 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4949 test $i != 17 # 1/2 MB should be enough
4952 teststring
=$teststring$teststring
4954 # Only check the string length outside the loop.
4955 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4957 # Add a significant safety factor because C++ compilers can tack on
4958 # massive amounts of additional arguments before passing them to the
4959 # linker. It appears as though 1/2 is a usable value.
4960 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4967 if test -n $lt_cv_sys_max_cmd_len ; then
4968 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4969 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4971 { $as_echo "$as_me:$LINENO: result: none" >&5
4972 $as_echo "none" >&6; }
4974 max_cmd_len
=$lt_cv_sys_max_cmd_len
4985 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4986 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4987 # Try some XSI features
4990 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4992 && eval 'test $(( 1 + 1 )) -eq 2 \
4993 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4995 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
4996 $as_echo "$xsi_shell" >&6; }
4999 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5000 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5002 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5004 && lt_shell_append=yes
5005 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5006 $as_echo "$lt_shell_append" >&6; }
5009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5019 # test EBCDIC or ASCII
5020 case `echo X|tr X '\101'` in
5021 A) # ASCII based system
5022 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5023 lt_SP2NL='tr \040 \012'
5024 lt_NL2SP='tr \015\012 \040\040'
5026 *) # EBCDIC based system
5027 lt_SP2NL='tr \100 \n'
5028 lt_NL2SP='tr \r\n \100\100'
5040 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5041 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5042 if test "${lt_cv_ld_reload_flag+set}" = set; then
5043 $as_echo_n "(cached
) " >&6
5045 lt_cv_ld_reload_flag='-r'
5047 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5048 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5049 reload_flag=$lt_cv_ld_reload_flag
5050 case $reload_flag in
5052 *) reload_flag=" $reload_flag" ;;
5054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5057 if test "$GCC" = yes; then
5058 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5060 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073 if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5076 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5077 $as_echo_n "checking
for $ac_word...
" >&6; }
5078 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5079 $as_echo_n "(cached
) " >&6
5081 if test -n "$OBJDUMP"; then
5082 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5092 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5101 OBJDUMP=$ac_cv_prog_OBJDUMP
5102 if test -n "$OBJDUMP"; then
5103 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5104 $as_echo "$OBJDUMP" >&6; }
5106 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5107 $as_echo "no
" >&6; }
5112 if test -z "$ac_cv_prog_OBJDUMP"; then
5113 ac_ct_OBJDUMP=$OBJDUMP
5114 # Extract the first word of "objdump
", so it can be a program name with args.
5115 set dummy objdump; ac_word=$2
5116 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5117 $as_echo_n "checking
for $ac_word...
" >&6; }
5118 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5119 $as_echo_n "(cached
) " >&6
5121 if test -n "$ac_ct_OBJDUMP"; then
5122 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5132 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5141 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5142 if test -n "$ac_ct_OBJDUMP"; then
5143 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5144 $as_echo "$ac_ct_OBJDUMP" >&6; }
5146 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5147 $as_echo "no
" >&6; }
5150 if test "x
$ac_ct_OBJDUMP" = x; then
5153 case $cross_compiling:$ac_tool_warned in
5155 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5156 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5157 ac_tool_warned=yes ;;
5159 OBJDUMP=$ac_ct_OBJDUMP
5162 OBJDUMP="$ac_cv_prog_OBJDUMP"
5165 test -z "$OBJDUMP" && OBJDUMP=objdump
5175 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5176 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5177 if test "${lt_cv_deplibs_check_method+set}" = set; then
5178 $as_echo_n "(cached
) " >&6
5180 lt_cv_file_magic_cmd='$MAGIC_CMD'
5181 lt_cv_file_magic_test_file=
5182 lt_cv_deplibs_check_method='unknown'
5183 # Need to set the preceding variable on all platforms that support
5184 # interlibrary dependencies.
5185 # 'none' -- dependencies not supported.
5186 # `unknown' -- same as none, but documents that we really don't know.
5187 # 'pass_all' -- all dependencies passed with no checks.
5188 # 'test_compile' -- check by making test program.
5189 # 'file_magic [[regex]]' -- check by looking for files in library path
5190 # which responds to the $file_magic_cmd with a given extended regex.
5191 # If you have `file' or equivalent on your system and you're not sure
5192 # whether `pass_all' will *always* work, you probably want this one.
5196 lt_cv_deplibs_check_method=pass_all
5200 lt_cv_deplibs_check_method=pass_all
5204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5205 lt_cv_file_magic_cmd='/usr/bin/file -L'
5206 lt_cv_file_magic_test_file=/shlib/libc.so
5210 # func_win32_libid is a shell function defined in ltmain.sh
5211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5212 lt_cv_file_magic_cmd='func_win32_libid'
5216 # Base MSYS/MinGW do not provide the 'file' command needed by
5217 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5218 # unless we find 'file', for example because we are cross-compiling.
5219 if ( file / ) >/dev/null 2>&1; then
5220 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5221 lt_cv_file_magic_cmd='func_win32_libid'
5223 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5224 lt_cv_file_magic_cmd='$OBJDUMP -f'
5229 # use the weaker test based on 'objdump'. See mingw*.
5230 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5231 lt_cv_file_magic_cmd='$OBJDUMP -f'
5234 darwin* | rhapsody*)
5235 lt_cv_deplibs_check_method=pass_all
5238 freebsd* | dragonfly*)
5239 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5242 # Not sure whether the presence of OpenBSD here was a mistake.
5243 # Let's accept both of them until this is cleared up.
5244 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5245 lt_cv_file_magic_cmd=/usr/bin/file
5246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5250 lt_cv_deplibs_check_method=pass_all
5255 lt_cv_deplibs_check_method=pass_all
5258 hpux10.20* | hpux11*)
5259 lt_cv_file_magic_cmd=/usr/bin/file
5262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5263 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5266 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]'
5267 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5271 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5277 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5281 irix5* | irix6* | nonstopux*)
5283 *-32|*"-32 ") libmagic=32-bit;;
5284 *-n32|*"-n32 ") libmagic=N32;;
5285 *-64|*"-64 ") libmagic=64-bit;;
5286 *) libmagic=never-match;;
5288 lt_cv_deplibs_check_method=pass_all
5291 # This must be Linux ELF.
5292 linux* | k*bsd*-gnu)
5293 lt_cv_deplibs_check_method=pass_all
5297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5306 lt_cv_file_magic_cmd=/usr/bin/file
5307 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5311 lt_cv_deplibs_check_method=pass_all
5315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322 osf3* | osf4* | osf5*)
5323 lt_cv_deplibs_check_method=pass_all
5327 lt_cv_deplibs_check_method=pass_all
5331 lt_cv_deplibs_check_method=pass_all
5334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5335 lt_cv_deplibs_check_method=pass_all
5339 case $host_vendor in
5341 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]'
5342 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5345 lt_cv_deplibs_check_method=pass_all
5348 lt_cv_file_magic_cmd='/bin/file'
5349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5352 lt_cv_file_magic_cmd='/bin/file'
5353 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5354 lt_cv_file_magic_test_file=/lib/libc.so
5357 lt_cv_deplibs_check_method=pass_all
5360 lt_cv_deplibs_check_method=pass_all
5366 lt_cv_deplibs_check_method=pass_all
5371 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5372 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5373 file_magic_cmd=$lt_cv_file_magic_cmd
5374 deplibs_check_method=$lt_cv_deplibs_check_method
5375 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5388 if test -n "$ac_tool_prefix"; then
5389 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5390 set dummy ${ac_tool_prefix}ar; ac_word=$2
5391 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5392 $as_echo_n "checking
for $ac_word...
" >&6; }
5393 if test "${ac_cv_prog_AR+set}" = set; then
5394 $as_echo_n "(cached
) " >&6
5396 if test -n "$AR"; then
5397 ac_cv_prog_AR="$AR" # Let the user override the test.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_AR="${ac_tool_prefix}ar"
5407 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5417 if test -n "$AR"; then
5418 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5419 $as_echo "$AR" >&6; }
5421 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5422 $as_echo "no
" >&6; }
5427 if test -z "$ac_cv_prog_AR"; then
5429 # Extract the first word of "ar", so it can be a program name with args.
5430 set dummy ar; ac_word=$2
5431 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5432 $as_echo_n "checking
for $ac_word...
" >&6; }
5433 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5434 $as_echo_n "(cached
) " >&6
5436 if test -n "$ac_ct_AR"; then
5437 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_prog_ac_ct_AR="ar"
5447 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5456 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5457 if test -n "$ac_ct_AR"; then
5458 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5459 $as_echo "$ac_ct_AR" >&6; }
5461 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5462 $as_echo "no
" >&6; }
5465 if test "x
$ac_ct_AR" = x; then
5468 case $cross_compiling:$ac_tool_warned in
5470 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5471 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5472 ac_tool_warned=yes ;;
5480 test -z "$AR" && AR=ar
5481 test -z "$AR_FLAGS" && AR_FLAGS=cru
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}strip; ac_word=$2
5496 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5497 $as_echo_n "checking
for $ac_word...
" >&6; }
5498 if test "${ac_cv_prog_STRIP+set}" = set; then
5499 $as_echo_n "(cached
) " >&6
5501 if test -n "$STRIP"; then
5502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5512 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5521 STRIP=$ac_cv_prog_STRIP
5522 if test -n "$STRIP"; then
5523 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5524 $as_echo "$STRIP" >&6; }
5526 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5527 $as_echo "no
" >&6; }
5532 if test -z "$ac_cv_prog_STRIP"; then
5534 # Extract the first word of "strip
", so it can be a program name with args.
5535 set dummy strip; ac_word=$2
5536 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5537 $as_echo_n "checking
for $ac_word...
" >&6; }
5538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5539 $as_echo_n "(cached
) " >&6
5541 if test -n "$ac_ct_STRIP"; then
5542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_STRIP="strip
"
5552 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5562 if test -n "$ac_ct_STRIP"; then
5563 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5564 $as_echo "$ac_ct_STRIP" >&6; }
5566 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5567 $as_echo "no
" >&6; }
5570 if test "x
$ac_ct_STRIP" = x; then
5573 case $cross_compiling:$ac_tool_warned in
5575 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5576 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5577 ac_tool_warned=yes ;;
5582 STRIP="$ac_cv_prog_STRIP"
5585 test -z "$STRIP" && STRIP=:
5592 if test -n "$ac_tool_prefix"; then
5593 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5594 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5595 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5596 $as_echo_n "checking
for $ac_word...
" >&6; }
5597 if test "${ac_cv_prog_RANLIB+set}" = set; then
5598 $as_echo_n "(cached
) " >&6
5600 if test -n "$RANLIB"; then
5601 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5611 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5620 RANLIB=$ac_cv_prog_RANLIB
5621 if test -n "$RANLIB"; then
5622 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5623 $as_echo "$RANLIB" >&6; }
5625 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5626 $as_echo "no
" >&6; }
5631 if test -z "$ac_cv_prog_RANLIB"; then
5632 ac_ct_RANLIB=$RANLIB
5633 # Extract the first word of "ranlib
", so it can be a program name with args.
5634 set dummy ranlib; ac_word=$2
5635 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5636 $as_echo_n "checking
for $ac_word...
" >&6; }
5637 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5638 $as_echo_n "(cached
) " >&6
5640 if test -n "$ac_ct_RANLIB"; then
5641 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5651 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5660 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5661 if test -n "$ac_ct_RANLIB"; then
5662 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5663 $as_echo "$ac_ct_RANLIB" >&6; }
5665 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5666 $as_echo "no
" >&6; }
5669 if test "x
$ac_ct_RANLIB" = x; then
5672 case $cross_compiling:$ac_tool_warned in
5674 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5675 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5676 ac_tool_warned=yes ;;
5678 RANLIB=$ac_ct_RANLIB
5681 RANLIB="$ac_cv_prog_RANLIB"
5684 test -z "$RANLIB" && RANLIB=:
5691 # Determine commands to create old-style static archives.
5692 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5693 old_postinstall_cmds='chmod 644 $oldlib'
5694 old_postuninstall_cmds=
5696 if test -n "$RANLIB"; then
5699 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5702 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5705 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5741 # If no C compiler was specified, use CC.
5744 # If no C compiler flags were specified, use CFLAGS.
5745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5747 # Allow CC to be a program name with arguments.
5751 # Check for command to grab the raw symbol name followed by C symbol from nm.
5752 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5753 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5754 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5755 $as_echo_n "(cached
) " >&6
5758 # These are sane defaults that work on at least a few old systems.
5759 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5761 # Character class describing NM global symbol codes.
5762 symcode='[BCDEGRST]'
5764 # Regexp to match symbols that can be accessed directly from C.
5765 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5767 # Define system-specific variables.
5772 cygwin* | mingw* | pw32* | cegcc*)
5773 symcode='[ABCDGISTW]'
5776 if test "$host_cpu" = ia64; then
5777 symcode='[ABCDEGRST]'
5781 symcode='[BCDEGRST]'
5784 symcode='[BCDEGQRST]'
5795 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5803 # If we're using GNU nm, then use its standard symbol codes.
5804 case `$NM -V 2>&1` in
5805 *GNU* | *'with BFD'*)
5806 symcode='[ABCDGIRSTW]' ;;
5809 # Transform an extracted symbol line into a proper C declaration.
5810 # Some systems (esp. on ia64) link data and code symbols differently,
5811 # so use this general approach.
5812 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5814 # Transform an extracted symbol line into symbol name and symbol address
5815 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5816 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'"
5818 # Handle CRLF in mingw tool chain
5822 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5826 # Try without a prefix underscore, then with it.
5827 for ac_symprfx in "" "_
"; do
5829 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5830 symxfrm="\\1 $ac_symprfx\\2 \\2"
5832 # Write the raw and C identifiers.
5833 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5834 # Fake it for dumpbin and say T for any non-static function
5835 # and D for any global variable.
5836 # Also find C++ and __fastcall symbols from MSVC++,
5837 # which start with @ or ?.
5838 lt_cv_sys_global_symbol_pipe="$AWK '"\
5839 " {last_section=section; section=\$ 3};"\
5840 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5841 " \$ 0!~/External *\|/{next};"\
5842 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5843 " {if(hide[section]) next};"\
5844 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5845 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5846 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5847 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5848 " ' prfx
=^
$ac_symprfx"
5850 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5853 # Check to see that the pipe works correctly.
5857 cat > conftest.$ac_ext <<_LT_EOF
5862 void nm_test_func(void);
5863 void nm_test_func(void){}
5867 int main(){nm_test_var='a';nm_test_func();return(0);}
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>&5
5873 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5874 (exit $ac_status); }; then
5875 # Now try to grab the symbols.
5877 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5878 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5881 (exit $ac_status); } && test -s "$nlist"; then
5882 # Try sorting and uniquifying the output.
5883 if sort "$nlist" | uniq > "$nlist"T; then
5884 mv -f "$nlist"T "$nlist"
5889 # Make sure that we snagged all the symbols we need.
5890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5892 cat <<_LT_EOF > conftest.$ac_ext
5898 # Now generate the symbol file.
5899 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5901 cat <<_LT_EOF >> conftest.$ac_ext
5903 /* The mapping between symbol names and symbols. */
5908 lt__PROGRAM__LTX_preloaded_symbols[] =
5910 { "@PROGRAM@
", (void *) 0 },
5912 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5913 cat <<\_LT_EOF >> conftest.$ac_ext
5917 /* This works around a problem in FreeBSD linker */
5918 #ifdef FREEBSD_WORKAROUND
5919 static const void *lt_preloaded_setup() {
5920 return lt__PROGRAM__LTX_preloaded_symbols;
5928 # Now try linking the two files.
5929 mv conftest.$ac_objext conftstm.$ac_objext
5930 lt_save_LIBS="$LIBS"
5931 lt_save_CFLAGS="$CFLAGS"
5932 LIBS="conftstm.
$ac_objext"
5933 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5938 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5941 LIBS="$lt_save_LIBS"
5942 CFLAGS="$lt_save_CFLAGS"
5944 echo "cannot
find nm_test_func
in $nlist" >&5
5947 echo "cannot
find nm_test_var
in $nlist" >&5
5950 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5953 echo "$progname: failed program was
:" >&5
5954 cat conftest.$ac_ext >&5
5956 rm -rf conftest* conftst*
5958 # Do not use the global_symbol_pipe unless it works.
5959 if test "$pipe_works" = yes; then
5962 lt_cv_sys_global_symbol_pipe=
5968 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5969 lt_cv_sys_global_symbol_to_cdecl=
5971 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5972 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5973 $as_echo "failed
" >&6; }
5975 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5976 $as_echo "ok
" >&6; }
6001 # Check whether --enable-libtool-lock was given.
6002 if test "${enable_libtool_lock+set}" = set; then
6003 enableval=$enable_libtool_lock;
6006 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6008 # Some flags need to be propagated to the compiler or linker for good
6012 # Find out which ABI we are using.
6013 echo 'int i;' > conftest.$ac_ext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>&5
6017 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6018 (exit $ac_status); }; then
6019 case `/usr/bin/file conftest.$ac_objext` in
6031 # Find out which ABI we are using.
6032 echo '#line 6032 "configure
"' > conftest.$ac_ext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034 (eval $ac_compile) 2>&5
6036 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6037 (exit $ac_status); }; then
6038 if test "$lt_cv_prog_gnu_ld" = yes; then
6039 case `/usr/bin/file conftest.$ac_objext` in
6041 LD="${LD-ld} -melf32bsmip"
6044 LD="${LD-ld} -melf32bmipn32"
6047 LD="${LD-ld} -melf64bmip"
6051 case `/usr/bin/file conftest.$ac_objext` in
6067 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6068 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6069 # Find out which ABI we are using.
6070 echo 'int i;' > conftest.$ac_ext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>&5
6074 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6075 (exit $ac_status); }; then
6076 case `/usr/bin/file conftest.o` in
6079 x86_64-*kfreebsd*-gnu)
6080 LD="${LD-ld} -m elf_i386_fbsd
"
6083 LD="${LD-ld} -m elf_i386
"
6085 ppc64-*linux*|powerpc64-*linux*)
6086 LD="${LD-ld} -m elf32ppclinux
"
6089 LD="${LD-ld} -m elf_s390
"
6092 LD="${LD-ld} -m elf32_sparc
"
6098 x86_64-*kfreebsd*-gnu)
6099 LD="${LD-ld} -m elf_x86_64_fbsd
"
6102 LD="${LD-ld} -m elf_x86_64
"
6104 ppc*-*linux*|powerpc*-*linux*)
6105 LD="${LD-ld} -m elf64ppc
"
6107 s390*-*linux*|s390*-*tpf*)
6108 LD="${LD-ld} -m elf64_s390
"
6111 LD="${LD-ld} -m elf64_sparc
"
6121 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6122 SAVE_CFLAGS="$CFLAGS"
6123 CFLAGS="$CFLAGS -belf"
6124 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6125 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6126 if test "${lt_cv_cc_needs_belf+set}" = set; then
6127 $as_echo_n "(cached
) " >&6
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (ac_try="$ac_link"
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6157 $as_echo "$ac_try_echo") >&5
6158 (eval "$ac_link") 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest$ac_exeext && {
6168 test "$cross_compiling" = yes ||
6169 $as_test_x conftest$ac_exeext
6171 lt_cv_cc_needs_belf=yes
6173 $as_echo "$as_me: failed program was
:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 lt_cv_cc_needs_belf=no
6179 rm -rf conftest.dSYM
6180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6181 conftest$ac_exeext conftest.$ac_ext
6183 ac_cpp='$CPP $CPPFLAGS'
6184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6190 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6191 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6192 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6193 CFLAGS="$SAVE_CFLAGS"
6197 # Find out which ABI we are using.
6198 echo 'int i;' > conftest.$ac_ext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200 (eval $ac_compile) 2>&5
6202 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6203 (exit $ac_status); }; then
6204 case `/usr/bin/file conftest.o` in
6206 case $lt_cv_prog_gnu_ld in
6207 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6209 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6221 need_locks="$enable_libtool_lock"
6225 rhapsody* | darwin*)
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6229 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6230 $as_echo_n "checking
for $ac_word...
" >&6; }
6231 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6232 $as_echo_n "(cached
) " >&6
6234 if test -n "$DSYMUTIL"; then
6235 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6245 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6254 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6255 if test -n "$DSYMUTIL"; then
6256 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6257 $as_echo "$DSYMUTIL" >&6; }
6259 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6260 $as_echo "no
" >&6; }
6265 if test -z "$ac_cv_prog_DSYMUTIL"; then
6266 ac_ct_DSYMUTIL=$DSYMUTIL
6267 # Extract the first word of "dsymutil
", so it can be a program name with args.
6268 set dummy dsymutil; ac_word=$2
6269 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6270 $as_echo_n "checking
for $ac_word...
" >&6; }
6271 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6272 $as_echo_n "(cached
) " >&6
6274 if test -n "$ac_ct_DSYMUTIL"; then
6275 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6285 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6294 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6295 if test -n "$ac_ct_DSYMUTIL"; then
6296 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6297 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6299 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6300 $as_echo "no
" >&6; }
6303 if test "x
$ac_ct_DSYMUTIL" = x; then
6306 case $cross_compiling:$ac_tool_warned in
6308 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6309 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6310 ac_tool_warned=yes ;;
6312 DSYMUTIL=$ac_ct_DSYMUTIL
6315 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6318 if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6321 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6322 $as_echo_n "checking
for $ac_word...
" >&6; }
6323 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6324 $as_echo_n "(cached
) " >&6
6326 if test -n "$NMEDIT"; then
6327 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6337 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6346 NMEDIT=$ac_cv_prog_NMEDIT
6347 if test -n "$NMEDIT"; then
6348 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6349 $as_echo "$NMEDIT" >&6; }
6351 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6352 $as_echo "no
" >&6; }
6357 if test -z "$ac_cv_prog_NMEDIT"; then
6358 ac_ct_NMEDIT=$NMEDIT
6359 # Extract the first word of "nmedit
", so it can be a program name with args.
6360 set dummy nmedit; ac_word=$2
6361 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6362 $as_echo_n "checking
for $ac_word...
" >&6; }
6363 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6364 $as_echo_n "(cached
) " >&6
6366 if test -n "$ac_ct_NMEDIT"; then
6367 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6377 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6386 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6387 if test -n "$ac_ct_NMEDIT"; then
6388 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6389 $as_echo "$ac_ct_NMEDIT" >&6; }
6391 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6392 $as_echo "no
" >&6; }
6395 if test "x
$ac_ct_NMEDIT" = x; then
6398 case $cross_compiling:$ac_tool_warned in
6400 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6401 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6402 ac_tool_warned=yes ;;
6404 NMEDIT=$ac_ct_NMEDIT
6407 NMEDIT="$ac_cv_prog_NMEDIT"
6410 if test -n "$ac_tool_prefix"; then
6411 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6413 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6414 $as_echo_n "checking
for $ac_word...
" >&6; }
6415 if test "${ac_cv_prog_LIPO+set}" = set; then
6416 $as_echo_n "(cached
) " >&6
6418 if test -n "$LIPO"; then
6419 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6429 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6438 LIPO=$ac_cv_prog_LIPO
6439 if test -n "$LIPO"; then
6440 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6441 $as_echo "$LIPO" >&6; }
6443 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6444 $as_echo "no
" >&6; }
6449 if test -z "$ac_cv_prog_LIPO"; then
6451 # Extract the first word of "lipo
", so it can be a program name with args.
6452 set dummy lipo; ac_word=$2
6453 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6454 $as_echo_n "checking
for $ac_word...
" >&6; }
6455 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6456 $as_echo_n "(cached
) " >&6
6458 if test -n "$ac_ct_LIPO"; then
6459 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_ac_ct_LIPO="lipo
"
6469 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6478 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6479 if test -n "$ac_ct_LIPO"; then
6480 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6481 $as_echo "$ac_ct_LIPO" >&6; }
6483 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6484 $as_echo "no
" >&6; }
6487 if test "x
$ac_ct_LIPO" = x; then
6490 case $cross_compiling:$ac_tool_warned in
6492 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6493 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6494 ac_tool_warned=yes ;;
6499 LIPO="$ac_cv_prog_LIPO"
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}otool; ac_word=$2
6505 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6506 $as_echo_n "checking
for $ac_word...
" >&6; }
6507 if test "${ac_cv_prog_OTOOL+set}" = set; then
6508 $as_echo_n "(cached
) " >&6
6510 if test -n "$OTOOL"; then
6511 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6521 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6530 OTOOL=$ac_cv_prog_OTOOL
6531 if test -n "$OTOOL"; then
6532 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6533 $as_echo "$OTOOL" >&6; }
6535 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6536 $as_echo "no
" >&6; }
6541 if test -z "$ac_cv_prog_OTOOL"; then
6543 # Extract the first word of "otool
", so it can be a program name with args.
6544 set dummy otool; ac_word=$2
6545 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6546 $as_echo_n "checking
for $ac_word...
" >&6; }
6547 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6548 $as_echo_n "(cached
) " >&6
6550 if test -n "$ac_ct_OTOOL"; then
6551 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_ac_ct_OTOOL="otool
"
6561 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6570 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6571 if test -n "$ac_ct_OTOOL"; then
6572 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6573 $as_echo "$ac_ct_OTOOL" >&6; }
6575 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6576 $as_echo "no
" >&6; }
6579 if test "x
$ac_ct_OTOOL" = x; then
6582 case $cross_compiling:$ac_tool_warned in
6584 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6585 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6586 ac_tool_warned=yes ;;
6591 OTOOL="$ac_cv_prog_OTOOL"
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6597 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6598 $as_echo_n "checking
for $ac_word...
" >&6; }
6599 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6600 $as_echo_n "(cached
) " >&6
6602 if test -n "$OTOOL64"; then
6603 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6613 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6622 OTOOL64=$ac_cv_prog_OTOOL64
6623 if test -n "$OTOOL64"; then
6624 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6625 $as_echo "$OTOOL64" >&6; }
6627 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6628 $as_echo "no
" >&6; }
6633 if test -z "$ac_cv_prog_OTOOL64"; then
6634 ac_ct_OTOOL64=$OTOOL64
6635 # Extract the first word of "otool64
", so it can be a program name with args.
6636 set dummy otool64; ac_word=$2
6637 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6638 $as_echo_n "checking
for $ac_word...
" >&6; }
6639 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6640 $as_echo_n "(cached
) " >&6
6642 if test -n "$ac_ct_OTOOL64"; then
6643 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6653 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6662 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6663 if test -n "$ac_ct_OTOOL64"; then
6664 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6665 $as_echo "$ac_ct_OTOOL64" >&6; }
6667 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6668 $as_echo "no
" >&6; }
6671 if test "x
$ac_ct_OTOOL64" = x; then
6674 case $cross_compiling:$ac_tool_warned in
6676 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6677 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6678 ac_tool_warned=yes ;;
6680 OTOOL64=$ac_ct_OTOOL64
6683 OTOOL64="$ac_cv_prog_OTOOL64"
6712 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6713 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6714 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6715 $as_echo_n "(cached
) " >&6
6717 lt_cv_apple_cc_single_mod=no
6718 if test -z "${LT_MULTI_MODULE}"; then
6719 # By default we will add the -single_module flag. You can override
6720 # by either setting the environment variable LT_MULTI_MODULE
6721 # non-empty at configure time, or by adding -multi_module to the
6723 rm -rf libconftest.dylib*
6724 echo "int foo
(void
){return 1;}" > conftest.c
6725 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6726 -dynamiclib -Wl,-single_module conftest.c
" >&5
6727 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6728 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6730 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6731 lt_cv_apple_cc_single_mod=yes
6733 cat conftest.err >&5
6735 rm -rf libconftest.dylib*
6739 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6740 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6741 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6742 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6743 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6744 $as_echo_n "(cached
) " >&6
6746 lt_cv_ld_exported_symbols_list=no
6747 save_LDFLAGS=$LDFLAGS
6748 echo "_main
" > conftest.sym
6749 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6750 cat >conftest.$ac_ext <<_ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (ac_try="$ac_link"
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6771 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6772 $as_echo "$ac_try_echo") >&5
6773 (eval "$ac_link") 2>conftest.er1
6775 grep -v '^ *+' conftest.er1 >conftest.err
6777 cat conftest.err >&5
6778 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest$ac_exeext && {
6783 test "$cross_compiling" = yes ||
6784 $as_test_x conftest$ac_exeext
6786 lt_cv_ld_exported_symbols_list=yes
6788 $as_echo "$as_me: failed program was
:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 lt_cv_ld_exported_symbols_list=no
6794 rm -rf conftest.dSYM
6795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6796 conftest$ac_exeext conftest.$ac_ext
6797 LDFLAGS="$save_LDFLAGS"
6800 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6801 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6803 rhapsody* | darwin1.[012])
6804 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6806 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6807 darwin*) # darwin 5.x on
6808 # if running on 10.5 or later, the deployment target defaults
6809 # to the OS version, if on x86, and 10.4, the deployment
6810 # target defaults to 10.4. Don't you love it?
6811 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6812 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6813 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6815 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6817 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6821 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6822 _lt_dar_single_mod='$single_module'
6824 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6825 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6827 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6829 if test "$DSYMUTIL" != ":"; then
6830 _lt_dsymutil='~$DSYMUTIL $lib || :'
6838 ac_cpp='$CPP $CPPFLAGS'
6839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6842 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6843 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6844 # On Suns, sometimes $CPP names a directory.
6845 if test -n "$CPP" && test -d "$CPP"; then
6848 if test -z "$CPP"; then
6849 if test "${ac_cv_prog_CPP+set}" = set; then
6850 $as_echo_n "(cached
) " >&6
6852 # Double quotes because CPP needs to be expanded
6853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6856 for ac_c_preproc_warn_flag in '' yes
6858 # Use a header file that comes with gcc, so configuring glibc
6859 # with a fresh cross-compiler works.
6860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861 # <limits.h> exists even on freestanding compilers.
6862 # On the NeXT, cc -E runs the code through the compiler's parser,
6863 # not just through cpp. "Syntax error
" is here to catch this case.
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6871 # include <limits.h>
6873 # include <assert.h>
6877 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6882 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6883 $as_echo "$ac_try_echo") >&5
6884 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6886 grep -v '^ *+' conftest.er1 >conftest.err
6888 cat conftest.err >&5
6889 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6890 (exit $ac_status); } >/dev/null && {
6891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6896 $as_echo "$as_me: failed program was
:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 # Broken: fails on valid input.
6903 rm -f conftest.err conftest.$ac_ext
6905 # OK, works on sane cases. Now check whether nonexistent headers
6906 # can be detected and how.
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 #include <ac_nonexistent.h>
6915 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6921 $as_echo "$ac_try_echo") >&5
6922 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6924 grep -v '^ *+' conftest.er1 >conftest.err
6926 cat conftest.err >&5
6927 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6928 (exit $ac_status); } >/dev/null && {
6929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6932 # Broken: success on invalid input.
6935 $as_echo "$as_me: failed program was
:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 # Passes both tests.
6943 rm -f conftest.err conftest.$ac_ext
6946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6947 rm -f conftest.err conftest.$ac_ext
6948 if $ac_preproc_ok; then
6960 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6961 $as_echo "$CPP" >&6; }
6963 for ac_c_preproc_warn_flag in '' yes
6965 # Use a header file that comes with gcc, so configuring glibc
6966 # with a fresh cross-compiler works.
6967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6968 # <limits.h> exists even on freestanding compilers.
6969 # On the NeXT, cc -E runs the code through the compiler's parser,
6970 # not just through cpp. "Syntax error
" is here to catch this case.
6971 cat >conftest.$ac_ext <<_ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6978 # include <limits.h>
6980 # include <assert.h>
6984 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6990 $as_echo "$ac_try_echo") >&5
6991 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6997 (exit $ac_status); } >/dev/null && {
6998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7003 $as_echo "$as_me: failed program was
:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7006 # Broken: fails on valid input.
7010 rm -f conftest.err conftest.$ac_ext
7012 # OK, works on sane cases. Now check whether nonexistent headers
7013 # can be detected and how.
7014 cat >conftest.$ac_ext <<_ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7020 #include <ac_nonexistent.h>
7022 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7027 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7028 $as_echo "$ac_try_echo") >&5
7029 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7031 grep -v '^ *+' conftest.er1 >conftest.err
7033 cat conftest.err >&5
7034 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7035 (exit $ac_status); } >/dev/null && {
7036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7039 # Broken: success on invalid input.
7042 $as_echo "$as_me: failed program was
:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 # Passes both tests.
7050 rm -f conftest.err conftest.$ac_ext
7053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7054 rm -f conftest.err conftest.$ac_ext
7055 if $ac_preproc_ok; then
7058 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7060 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7061 See \`config.log' for more details.
" >&5
7062 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7063 See \
`config.log' for more details." >&2;}
7064 { (exit 1); exit 1; }; }; }
7068 ac_cpp='$CPP $CPPFLAGS'
7069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7074 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7075 $as_echo_n "checking for ANSI C header files... " >&6; }
7076 if test "${ac_cv_header_stdc+set}" = set; then
7077 $as_echo_n "(cached) " >&6
7079 cat >conftest.$ac_ext <<_ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7102 *) ac_try_echo
=$ac_try;;
7104 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7105 $as_echo "$ac_try_echo") >&5
7106 (eval "$ac_compile") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1
>conftest.err
7110 cat conftest.err
>&5
7111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest.
$ac_objext; then
7116 ac_cv_header_stdc
=yes
7118 $as_echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.
$ac_ext >&5
7121 ac_cv_header_stdc
=no
7124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7126 if test $ac_cv_header_stdc = yes; then
7127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7128 cat >conftest.
$ac_ext <<_ACEOF
7131 cat confdefs.h
>>conftest.
$ac_ext
7132 cat >>conftest.
$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7138 $EGREP "memchr" >/dev
/null
2>&1; then
7141 ac_cv_header_stdc
=no
7147 if test $ac_cv_header_stdc = yes; then
7148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7149 cat >conftest.
$ac_ext <<_ACEOF
7152 cat confdefs.h
>>conftest.
$ac_ext
7153 cat >>conftest.
$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159 $EGREP "free" >/dev
/null
2>&1; then
7162 ac_cv_header_stdc
=no
7168 if test $ac_cv_header_stdc = yes; then
7169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7170 if test "$cross_compiling" = yes; then
7173 cat >conftest.
$ac_ext <<_ACEOF
7176 cat confdefs.h
>>conftest.
$ac_ext
7177 cat >>conftest.
$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7181 #if ((' ' & 0x0FF) == 0x020)
7182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7185 # define ISLOWER(c) \
7186 (('a' <= (c) && (c) <= 'i') \
7187 || ('j' <= (c) && (c) <= 'r') \
7188 || ('s' <= (c) && (c) <= 'z'))
7189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7197 for (i = 0; i < 256; i++)
7198 if (XOR (islower (i), ISLOWER (i))
7199 || toupper (i) != TOUPPER (i))
7204 rm -f conftest
$ac_exeext
7205 if { (ac_try
="$ac_link"
7207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7211 $as_echo "$ac_try_echo") >&5
7212 (eval "$ac_link") 2>&5
7214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7216 { (case "(($ac_try" in
7217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7218 *) ac_try_echo
=$ac_try;;
7220 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7221 $as_echo "$ac_try_echo") >&5
7222 (eval "$ac_try") 2>&5
7224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7228 $as_echo "$as_me: program exited with status $ac_status" >&5
7229 $as_echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.
$ac_ext >&5
7233 ac_cv_header_stdc
=no
7235 rm -rf conftest.dSYM
7236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7243 $as_echo "$ac_cv_header_stdc" >&6; }
7244 if test $ac_cv_header_stdc = yes; then
7246 cat >>confdefs.h
<<\_ACEOF
7247 #define STDC_HEADERS 1
7252 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7262 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7263 inttypes.h stdint.h unistd.h
7265 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7267 $as_echo_n "checking for $ac_header... " >&6; }
7268 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7269 $as_echo_n "(cached) " >&6
7271 cat >conftest.
$ac_ext <<_ACEOF
7274 cat confdefs.h
>>conftest.
$ac_ext
7275 cat >>conftest.
$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 $ac_includes_default
7279 #include <$ac_header>
7281 rm -f conftest.
$ac_objext
7282 if { (ac_try
="$ac_compile"
7284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7288 $as_echo "$ac_try_echo") >&5
7289 (eval "$ac_compile") 2>conftest.er1
7291 grep -v '^ *+' conftest.er1 >conftest.err
7293 cat conftest.err >&5
7294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && {
7296 test -z "$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 } && test -s conftest.$ac_objext; then
7299 eval "$as_ac_Header=yes"
7301 $as_echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 eval "$as_ac_Header=no"
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 ac_res=`eval 'as_val=${'$as_ac_Header'}
7310 $as_echo "$as_val"'`
7311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7312 $as_echo "$ac_res" >&6; }
7313 as_val=`eval 'as_val=${'$as_ac_Header'}
7314 $as_echo "$as_val"'`
7315 if test "x$as_val" = x""yes; then
7316 cat >>confdefs.h <<_ACEOF
7317 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7326 for ac_header in dlfcn.h
7328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7330 $as_echo_n "checking for $ac_header... " >&6; }
7331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7332 $as_echo_n "(cached) " >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 $ac_includes_default
7342 #include <$ac_header>
7344 rm -f conftest.$ac_objext
7345 if { (ac_try="$ac_compile"
7347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7348 *) ac_try_echo
=$ac_try;;
7350 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7351 $as_echo "$ac_try_echo") >&5
7352 (eval "$ac_compile") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1
>conftest.err
7356 cat conftest.err
>&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest.
$ac_objext; then
7362 eval "$as_ac_Header=yes"
7364 $as_echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.
$ac_ext >&5
7367 eval "$as_ac_Header=no"
7370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7372 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7373 $as_echo "$as_val"'`
7374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7375 $as_echo "$ac_res" >&6; }
7376 as_val
=`eval 'as_val=${'$as_ac_Header'}
7377 $as_echo "$as_val"'`
7378 if test "x$as_val" = x
""yes; then
7379 cat >>confdefs.h
<<_ACEOF
7380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7399 # Check whether --enable-shared was given.
7400 if test "${enable_shared+set}" = set; then
7401 enableval
=$enable_shared; p
=${PACKAGE-default}
7403 yes) enable_shared
=yes ;;
7404 no
) enable_shared
=no
;;
7407 # Look at the argument we got. We use all the common list separators.
7408 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7409 for pkg
in $enableval; do
7411 if test "X$pkg" = "X$p"; then
7430 # Check whether --enable-static was given.
7431 if test "${enable_static+set}" = set; then
7432 enableval
=$enable_static; p
=${PACKAGE-default}
7434 yes) enable_static
=yes ;;
7435 no
) enable_static
=no
;;
7438 # Look at the argument we got. We use all the common list separators.
7439 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7440 for pkg
in $enableval; do
7442 if test "X$pkg" = "X$p"; then
7462 # Check whether --with-pic was given.
7463 if test "${with_pic+set}" = set; then
7464 withval
=$with_pic; pic_mode
="$withval"
7470 test -z "$pic_mode" && pic_mode
=default
7478 # Check whether --enable-fast-install was given.
7479 if test "${enable_fast_install+set}" = set; then
7480 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7482 yes) enable_fast_install
=yes ;;
7483 no
) enable_fast_install
=no
;;
7485 enable_fast_install
=no
7486 # Look at the argument we got. We use all the common list separators.
7487 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7488 for pkg
in $enableval; do
7490 if test "X$pkg" = "X$p"; then
7491 enable_fast_install
=yes
7498 enable_fast_install
=yes
7511 # This can be used to rebuild libtool when needed
7512 LIBTOOL_DEPS
="$ltmain"
7514 # Always use our own libtool.
7515 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7541 test -z "$LN_S" && LN_S
="ln -s"
7556 if test -n "${ZSH_VERSION+set}" ; then
7557 setopt NO_GLOB_SUBST
7560 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7561 $as_echo_n "checking for objdir... " >&6; }
7562 if test "${lt_cv_objdir+set}" = set; then
7563 $as_echo_n "(cached) " >&6
7565 rm -f .libs
2>/dev
/null
7566 mkdir .libs
2>/dev
/null
7567 if test -d .libs
; then
7570 # MS-DOS does not allow filenames that begin with a dot.
7573 rmdir .libs
2>/dev
/null
7575 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7576 $as_echo "$lt_cv_objdir" >&6; }
7577 objdir
=$lt_cv_objdir
7583 cat >>confdefs.h
<<_ACEOF
7584 #define LT_OBJDIR "$lt_cv_objdir/"
7605 # AIX sometimes has problems with the GCC collect2 program. For some
7606 # reason, if we set the COLLECT_NAMES environment variable, the problems
7607 # vanish in a puff of smoke.
7608 if test "X${COLLECT_NAMES+set}" != Xset
; then
7610 export COLLECT_NAMES
7615 # Sed substitution that helps us do robust quoting. It backslashifies
7616 # metacharacters that are still active within double-quoted strings.
7617 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7619 # Same as above, but do not quote variable references.
7620 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7622 # Sed substitution to delay expansion of an escaped shell variable in a
7623 # double_quote_subst'ed string.
7624 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7626 # Sed substitution to delay expansion of an escaped single quote.
7627 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7629 # Sed substitution to avoid accidental globbing in evaled expressions
7630 no_glob_subst
='s/\*/\\\*/g'
7634 can_build_shared
=yes
7636 # All known linkers require a `.a' archive for static linking (except MSVC,
7637 # which needs '.lib').
7640 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7643 old_CFLAGS
="$CFLAGS"
7645 # Set sane defaults for various variables
7646 test -z "$CC" && CC
=cc
7647 test -z "$LTCC" && LTCC
=$CC
7648 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7649 test -z "$LD" && LD
=ld
7650 test -z "$ac_objext" && ac_objext
=o
7652 for cc_temp
in $compiler""; do
7654 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7655 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7660 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7663 # Only perform the check for file, if the check method requires it
7664 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7665 case $deplibs_check_method in
7667 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7668 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7669 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7670 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7671 $as_echo_n "(cached) " >&6
7675 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7678 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7679 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7680 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7681 for ac_dir
in $ac_dummy; do
7683 test -z "$ac_dir" && ac_dir
=.
7684 if test -f $ac_dir/${ac_tool_prefix}file; then
7685 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7686 if test -n "$file_magic_test_file"; then
7687 case $deplibs_check_method in
7689 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7691 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7692 $EGREP "$file_magic_regex" > /dev
/null
; then
7697 *** Warning: the command libtool uses to detect shared libraries,
7698 *** $file_magic_cmd, produces output that libtool cannot recognize.
7699 *** The result is that libtool may fail to recognize shared libraries
7700 *** as such. This will affect the creation of libtool libraries that
7701 *** depend on shared libraries, but programs linked with such libtool
7702 *** libraries will work regardless of this problem. Nevertheless, you
7703 *** may want to report the problem to your system manager and/or to
7704 *** bug-libtool@gnu.org
7714 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7719 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7720 if test -n "$MAGIC_CMD"; then
7721 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7722 $as_echo "$MAGIC_CMD" >&6; }
7724 { $as_echo "$as_me:$LINENO: result: no" >&5
7725 $as_echo "no" >&6; }
7732 if test -z "$lt_cv_path_MAGIC_CMD"; then
7733 if test -n "$ac_tool_prefix"; then
7734 { $as_echo "$as_me:$LINENO: checking for file" >&5
7735 $as_echo_n "checking for file... " >&6; }
7736 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7737 $as_echo_n "(cached) " >&6
7741 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7744 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7745 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7746 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7747 for ac_dir
in $ac_dummy; do
7749 test -z "$ac_dir" && ac_dir
=.
7750 if test -f $ac_dir/file; then
7751 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7752 if test -n "$file_magic_test_file"; then
7753 case $deplibs_check_method in
7755 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7756 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7757 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7758 $EGREP "$file_magic_regex" > /dev
/null
; then
7763 *** Warning: the command libtool uses to detect shared libraries,
7764 *** $file_magic_cmd, produces output that libtool cannot recognize.
7765 *** The result is that libtool may fail to recognize shared libraries
7766 *** as such. This will affect the creation of libtool libraries that
7767 *** depend on shared libraries, but programs linked with such libtool
7768 *** libraries will work regardless of this problem. Nevertheless, you
7769 *** may want to report the problem to your system manager and/or to
7770 *** bug-libtool@gnu.org
7780 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7785 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7786 if test -n "$MAGIC_CMD"; then
7787 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7788 $as_echo "$MAGIC_CMD" >&6; }
7790 { $as_echo "$as_me:$LINENO: result: no" >&5
7791 $as_echo "no" >&6; }
7804 # Use C for the default configuration in the libtool script
7808 ac_cpp
='$CPP $CPPFLAGS'
7809 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7814 # Source file extension for C test sources.
7817 # Object file extension for compiled C test sources.
7821 # Code to be used in simple compile tests
7822 lt_simple_compile_test_code
="int some_variable = 0;"
7824 # Code to be used in simple link tests
7825 lt_simple_link_test_code
='int main(){return(0);}'
7833 # If no C compiler was specified, use CC.
7836 # If no C compiler flags were specified, use CFLAGS.
7837 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7839 # Allow CC to be a program name with arguments.
7842 # Save the default compiler, since it gets overwritten when the other
7843 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7844 compiler_DEFAULT
=$CC
7846 # save warnings/boilerplate of simple test code
7847 ac_outfile
=conftest.
$ac_objext
7848 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7849 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7850 _lt_compiler_boilerplate
=`cat conftest.err`
7853 ac_outfile
=conftest.
$ac_objext
7854 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7855 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7856 _lt_linker_boilerplate
=`cat conftest.err`
7860 if test -n "$compiler"; then
7862 lt_prog_compiler_no_builtin_flag
=
7864 if test "$GCC" = yes; then
7865 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7867 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7868 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7869 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7870 $as_echo_n "(cached) " >&6
7872 lt_cv_prog_compiler_rtti_exceptions
=no
7873 ac_outfile
=conftest.
$ac_objext
7874 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7875 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7876 # Insert the option either (1) after the last *FLAGS variable, or
7877 # (2) before a word containing "conftest.", or (3) at the end.
7878 # Note that $ac_compile itself does not contain backslashes and begins
7879 # with a dollar sign (not a hyphen), so the echo should work correctly.
7880 # The option is referenced via a variable to avoid confusing sed.
7881 lt_compile
=`echo "$ac_compile" | $SED \
7882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884 -e 's:$: $lt_compiler_flag:'`
7885 (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
7886 (eval "$lt_compile" 2>conftest.err
)
7888 cat conftest.err
>&5
7889 echo "$as_me:7889: \$? = $ac_status" >&5
7890 if (exit $ac_status) && test -s "$ac_outfile"; then
7891 # The compiler can only warn and ignore the option if not recognized
7892 # So say no if there are warnings other than the usual output.
7893 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7894 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7895 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7896 lt_cv_prog_compiler_rtti_exceptions
=yes
7902 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7903 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7905 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7906 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7918 lt_prog_compiler_wl
=
7919 lt_prog_compiler_pic
=
7920 lt_prog_compiler_static
=
7922 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7923 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7925 if test "$GCC" = yes; then
7926 lt_prog_compiler_wl
='-Wl,'
7927 lt_prog_compiler_static
='-static'
7931 # All AIX code is PIC.
7932 if test "$host_cpu" = ia64
; then
7933 # AIX 5 now supports IA64 processor
7934 lt_prog_compiler_static
='-Bstatic'
7941 # see comment about AmigaOS4 .so support
7942 lt_prog_compiler_pic
='-fPIC'
7945 # FIXME: we need at least 68020 code to build shared libraries, but
7946 # adding the `-m68020' flag to GCC prevents building anything better,
7948 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7953 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7954 # PIC is the default for these OSes.
7957 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7958 # This hack is so that the source file can tell whether it is being
7959 # built for inclusion in a dll (and should export symbols for example).
7960 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7961 # (--disable-auto-import) libraries
7962 lt_prog_compiler_pic
='-DDLL_EXPORT'
7965 darwin
* | rhapsody
*)
7966 # PIC is the default on this platform
7967 # Common symbols not allowed in MH_DYLIB files
7968 lt_prog_compiler_pic
='-fno-common'
7972 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7973 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7974 # sets the default TLS model and affects inlining.
7980 lt_prog_compiler_pic
='-fPIC'
7986 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7987 # Instead, we relocate shared libraries at runtime.
7991 # Just because we use GCC doesn't mean we suddenly get shared libraries
7992 # on systems that don't support them.
7993 lt_prog_compiler_can_build_shared
=no
7998 # QNX uses GNU C++, but need to define -shared option too, otherwise
8000 lt_prog_compiler_pic
='-fPIC -shared'
8004 if test -d /usr
/nec
; then
8005 lt_prog_compiler_pic
=-Kconform_pic
8010 lt_prog_compiler_pic
='-fPIC'
8014 # PORTME Check for flag to pass linker flags through the system compiler.
8017 lt_prog_compiler_wl
='-Wl,'
8018 if test "$host_cpu" = ia64
; then
8019 # AIX 5 now supports IA64 processor
8020 lt_prog_compiler_static
='-Bstatic'
8022 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8026 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8027 # This hack is so that the source file can tell whether it is being
8028 # built for inclusion in a dll (and should export symbols for example).
8029 lt_prog_compiler_pic
='-DDLL_EXPORT'
8032 hpux9
* | hpux10
* | hpux11
*)
8033 lt_prog_compiler_wl
='-Wl,'
8034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8041 lt_prog_compiler_pic
='+Z'
8044 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8045 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8048 irix5
* | irix6
* | nonstopux
*)
8049 lt_prog_compiler_wl
='-Wl,'
8050 # PIC (with -KPIC) is the default.
8051 lt_prog_compiler_static
='-non_shared'
8054 linux
* | k
*bsd
*-gnu)
8055 case $cc_basename in
8056 # old Intel for x86_64 which still supported -KPIC.
8058 lt_prog_compiler_wl
='-Wl,'
8059 lt_prog_compiler_pic
='-KPIC'
8060 lt_prog_compiler_static
='-static'
8062 # icc used to be incompatible with GCC.
8063 # ICC 10 doesn't accept -KPIC any more.
8065 lt_prog_compiler_wl
='-Wl,'
8066 lt_prog_compiler_pic
='-fPIC'
8067 lt_prog_compiler_static
='-static'
8069 # Lahey Fortran 8.1.
8071 lt_prog_compiler_wl
='-Wl,'
8072 lt_prog_compiler_pic
='--shared'
8073 lt_prog_compiler_static
='--static'
8075 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8076 # Portland Group compilers (*not* the Pentium gcc compiler,
8077 # which looks to be a dead project)
8078 lt_prog_compiler_wl
='-Wl,'
8079 lt_prog_compiler_pic
='-fpic'
8080 lt_prog_compiler_static
='-Bstatic'
8083 lt_prog_compiler_wl
='-Wl,'
8084 # All Alpha code is PIC.
8085 lt_prog_compiler_static
='-non_shared'
8088 # IBM XL C 8.0/Fortran 10.1 on PPC
8089 lt_prog_compiler_wl
='-Wl,'
8090 lt_prog_compiler_pic
='-qpic'
8091 lt_prog_compiler_static
='-qstaticlink'
8094 case `$CC -V 2>&1 | sed 5q` in
8097 lt_prog_compiler_pic
='-KPIC'
8098 lt_prog_compiler_static
='-Bstatic'
8099 lt_prog_compiler_wl
='-Wl,'
8102 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8103 lt_prog_compiler_pic
='-KPIC'
8104 lt_prog_compiler_static
='-Bstatic'
8105 lt_prog_compiler_wl
=''
8113 lt_prog_compiler_pic
='-KPIC'
8114 lt_prog_compiler_static
='-Bstatic'
8118 # QNX uses GNU C++, but need to define -shared option too, otherwise
8120 lt_prog_compiler_pic
='-fPIC -shared'
8123 osf3
* | osf4
* | osf5
*)
8124 lt_prog_compiler_wl
='-Wl,'
8125 # All OSF/1 code is PIC.
8126 lt_prog_compiler_static
='-non_shared'
8130 lt_prog_compiler_static
='-non_shared'
8134 lt_prog_compiler_pic
='-KPIC'
8135 lt_prog_compiler_static
='-Bstatic'
8136 case $cc_basename in
8138 lt_prog_compiler_wl
='-Qoption ld ';;
8140 lt_prog_compiler_wl
='-Wl,';;
8145 lt_prog_compiler_wl
='-Qoption ld '
8146 lt_prog_compiler_pic
='-PIC'
8147 lt_prog_compiler_static
='-Bstatic'
8150 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8151 lt_prog_compiler_wl
='-Wl,'
8152 lt_prog_compiler_pic
='-KPIC'
8153 lt_prog_compiler_static
='-Bstatic'
8157 if test -d /usr
/nec
;then
8158 lt_prog_compiler_pic
='-Kconform_pic'
8159 lt_prog_compiler_static
='-Bstatic'
8163 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8164 lt_prog_compiler_wl
='-Wl,'
8165 lt_prog_compiler_pic
='-KPIC'
8166 lt_prog_compiler_static
='-Bstatic'
8170 lt_prog_compiler_wl
='-Wl,'
8171 lt_prog_compiler_can_build_shared
=no
8175 lt_prog_compiler_pic
='-pic'
8176 lt_prog_compiler_static
='-Bstatic'
8180 lt_prog_compiler_can_build_shared
=no
8186 # For platforms which do not support PIC, -DPIC is meaningless:
8188 lt_prog_compiler_pic
=
8191 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8194 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8195 $as_echo "$lt_prog_compiler_pic" >&6; }
8203 # Check to make sure the PIC flag actually works.
8205 if test -n "$lt_prog_compiler_pic"; then
8206 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8207 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8208 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8209 $as_echo_n "(cached) " >&6
8211 lt_cv_prog_compiler_pic_works
=no
8212 ac_outfile
=conftest.
$ac_objext
8213 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8214 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8215 # Insert the option either (1) after the last *FLAGS variable, or
8216 # (2) before a word containing "conftest.", or (3) at the end.
8217 # Note that $ac_compile itself does not contain backslashes and begins
8218 # with a dollar sign (not a hyphen), so the echo should work correctly.
8219 # The option is referenced via a variable to avoid confusing sed.
8220 lt_compile
=`echo "$ac_compile" | $SED \
8221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223 -e 's:$: $lt_compiler_flag:'`
8224 (eval echo "\"\$as_me:8224: $lt_compile\"" >&5)
8225 (eval "$lt_compile" 2>conftest.err
)
8227 cat conftest.err
>&5
8228 echo "$as_me:8228: \$? = $ac_status" >&5
8229 if (exit $ac_status) && test -s "$ac_outfile"; then
8230 # The compiler can only warn and ignore the option if not recognized
8231 # So say no if there are warnings other than the usual output.
8232 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8233 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8234 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8235 lt_cv_prog_compiler_pic_works
=yes
8241 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8242 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8244 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8245 case $lt_prog_compiler_pic in
8247 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8250 lt_prog_compiler_pic
=
8251 lt_prog_compiler_can_build_shared
=no
8262 # Check to make sure the static flag actually works.
8264 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8265 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8266 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8267 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8268 $as_echo_n "(cached) " >&6
8270 lt_cv_prog_compiler_static_works
=no
8271 save_LDFLAGS
="$LDFLAGS"
8272 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8273 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8274 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8275 # The linker can only warn and ignore the option if not recognized
8276 # So say no if there are warnings
8277 if test -s conftest.err
; then
8278 # Append any errors to the config.log.
8279 cat conftest.err
1>&5
8280 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8281 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8282 if diff conftest.exp conftest.er2
>/dev
/null
; then
8283 lt_cv_prog_compiler_static_works
=yes
8286 lt_cv_prog_compiler_static_works
=yes
8290 LDFLAGS
="$save_LDFLAGS"
8293 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8294 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8296 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8299 lt_prog_compiler_static
=
8308 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8310 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8311 $as_echo_n "(cached) " >&6
8313 lt_cv_prog_compiler_c_o
=no
8314 $RM -r conftest
2>/dev
/null
8318 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8320 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8321 # Insert the option either (1) after the last *FLAGS variable, or
8322 # (2) before a word containing "conftest.", or (3) at the end.
8323 # Note that $ac_compile itself does not contain backslashes and begins
8324 # with a dollar sign (not a hyphen), so the echo should work correctly.
8325 lt_compile
=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
8329 (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
8330 (eval "$lt_compile" 2>out
/conftest.err
)
8332 cat out
/conftest.err
>&5
8333 echo "$as_me:8333: \$? = $ac_status" >&5
8334 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8336 # The compiler can only warn and ignore the option if not recognized
8337 # So say no if there are warnings
8338 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8339 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8340 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8341 lt_cv_prog_compiler_c_o
=yes
8346 # SGI C++ compiler will create directory out/ii_files/ for
8347 # template instantiation
8348 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8349 $RM out
/* && rmdir out
8355 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8356 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8363 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8366 $as_echo_n "(cached) " >&6
8368 lt_cv_prog_compiler_c_o
=no
8369 $RM -r conftest
2>/dev
/null
8373 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8375 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8376 # Insert the option either (1) after the last *FLAGS variable, or
8377 # (2) before a word containing "conftest.", or (3) at the end.
8378 # Note that $ac_compile itself does not contain backslashes and begins
8379 # with a dollar sign (not a hyphen), so the echo should work correctly.
8380 lt_compile
=`echo "$ac_compile" | $SED \
8381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8383 -e 's:$: $lt_compiler_flag:'`
8384 (eval echo "\"\$as_me:8384: $lt_compile\"" >&5)
8385 (eval "$lt_compile" 2>out
/conftest.err
)
8387 cat out
/conftest.err
>&5
8388 echo "$as_me:8388: \$? = $ac_status" >&5
8389 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8391 # The compiler can only warn and ignore the option if not recognized
8392 # So say no if there are warnings
8393 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8394 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8395 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8396 lt_cv_prog_compiler_c_o
=yes
8401 # SGI C++ compiler will create directory out/ii_files/ for
8402 # template instantiation
8403 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8404 $RM out
/* && rmdir out
8410 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8416 hard_links
="nottested"
8417 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8418 # do not overwrite the value of need_locks provided by the user
8419 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8420 $as_echo_n "checking if we can lock with hard links... " >&6; }
8423 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8425 ln conftest.a conftest.b
2>&5 || hard_links
=no
8426 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8427 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8428 $as_echo "$hard_links" >&6; }
8429 if test "$hard_links" = no
; then
8430 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8431 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8443 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8444 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8447 allow_undefined_flag
=
8448 always_export_symbols
=no
8450 archive_expsym_cmds
=
8451 compiler_needs_object
=no
8452 enable_shared_with_static_runtimes
=no
8453 export_dynamic_flag_spec
=
8454 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8455 hardcode_automatic
=no
8457 hardcode_direct_absolute
=no
8458 hardcode_libdir_flag_spec
=
8459 hardcode_libdir_flag_spec_ld
=
8460 hardcode_libdir_separator
=
8462 hardcode_shlibpath_var
=unsupported
8464 link_all_deplibs
=unknown
8467 old_archive_from_new_cmds
=
8468 old_archive_from_expsyms_cmds
=
8469 thread_safe_flag_spec
=
8470 whole_archive_flag_spec
=
8471 # include_expsyms should be a list of space-separated symbols to be *always*
8472 # included in the symbol list
8474 # exclude_expsyms can be an extended regexp of symbols to exclude
8475 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8477 # as well as any symbol that contains `d'.
8478 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8480 # platforms (ab)use it in PIC code, but their linkers get confused if
8481 # the symbol is explicitly referenced. Since portable code cannot
8482 # rely on this symbol name, it's probably fine to never include it in
8483 # preloaded symbol tables.
8484 # Exclude shared library initialization/finalization symbols.
8485 extract_expsyms_cmds
=
8488 cygwin
* | mingw
* | pw32
* | cegcc
*)
8489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8490 # When not using gcc, we currently assume that we are using
8491 # Microsoft Visual C++.
8492 if test "$GCC" != yes; then
8497 # we just hope/assume this is gcc and not c89 (= MSVC++)
8506 if test "$with_gnu_ld" = yes; then
8507 # If archive_cmds runs LD, not CC, wlarc should be empty
8510 # Set some defaults for GNU ld with shared library support. These
8511 # are reset later if shared libraries are not supported. Putting them
8512 # here allows them to be overridden if necessary.
8513 runpath_var
=LD_RUN_PATH
8514 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8515 export_dynamic_flag_spec
='${wl}--export-dynamic'
8516 # ancient GNU ld didn't support --whole-archive et. al.
8517 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8518 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8520 whole_archive_flag_spec
=
8522 supports_anon_versioning
=no
8523 case `$LD -v 2>&1` in
8524 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8525 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8526 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8527 *\
2.11.
*) ;; # other 2.11 versions
8528 *) supports_anon_versioning
=yes ;;
8531 # See if GNU ld supports shared libraries.
8534 # On AIX/PPC, the GNU linker is very broken
8535 if test "$host_cpu" != ia64
; then
8539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8540 *** to be unable to reliably create shared libraries on AIX.
8541 *** Therefore, libtool is disabling shared libraries support. If you
8542 *** really care for shared libraries, you may want to modify your PATH
8543 *** so that a non-GNU linker is found, and then restart.
8552 # see comment about AmigaOS4 .so support
8553 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8554 archive_expsym_cmds
=''
8557 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)'
8558 hardcode_libdir_flag_spec
='-L$libdir'
8559 hardcode_minus_L
=yes
8565 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8566 allow_undefined_flag
=unsupported
8567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8568 # support --undefined. This deserves some investigation. FIXME
8569 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8575 cygwin
* | mingw
* | pw32
* | cegcc
*)
8576 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8577 # as there is no search path for DLLs.
8578 hardcode_libdir_flag_spec
='-L$libdir'
8579 allow_undefined_flag
=unsupported
8580 always_export_symbols
=no
8581 enable_shared_with_static_runtimes
=yes
8582 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8584 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8585 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8586 # If the export-symbols file already is a .def file (1st line
8587 # is EXPORTS), use it as is; otherwise, prepend...
8588 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8589 cp $export_symbols $output_objdir/$soname.def;
8591 echo EXPORTS > $output_objdir/$soname.def;
8592 cat $export_symbols >> $output_objdir/$soname.def;
8594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8602 hardcode_shlibpath_var
=no
8603 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8604 export_dynamic_flag_spec
='${wl}-E'
8605 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8606 # Instead, shared libraries are loaded at an image base (0x10000000 by
8607 # default) and relocated if they conflict, which is a slow very memory
8608 # consuming and fragmenting process. To avoid this, we pick a random,
8609 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8610 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8611 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8612 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'
8615 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8617 if test "$host_os" = linux-dietlibc
; then
8618 case $cc_basename in
8619 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8622 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8623 && test "$tmp_diet" = no
8626 tmp_sharedflag
='-shared'
8627 case $cc_basename,$host_cpu in
8628 pgcc
*) # Portland Group C compiler
8629 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'
8630 tmp_addflag
=' $pic_flag'
8632 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8633 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'
8634 tmp_addflag
=' $pic_flag -Mnomain' ;;
8635 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8636 tmp_addflag
=' -i_dynamic' ;;
8637 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8638 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8639 ifc
* | ifort
*) # Intel Fortran compiler
8640 tmp_addflag
=' -nofor_main' ;;
8641 lf95
*) # Lahey Fortran 8.1
8642 whole_archive_flag_spec
=
8643 tmp_sharedflag
='--shared' ;;
8644 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8645 tmp_sharedflag
='-qmkshrobj'
8648 case `$CC -V 2>&1 | sed 5q` in
8649 *Sun\ C
*) # Sun C 5.9
8650 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'
8651 compiler_needs_object
=yes
8652 tmp_sharedflag
='-G' ;;
8653 *Sun\ F
*) # Sun Fortran 8.3
8654 tmp_sharedflag
='-G' ;;
8656 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 if test "x$supports_anon_versioning" = xyes
; then
8659 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8660 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8661 echo "local: *; };" >> $output_objdir/$libname.ver~
8662 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8665 case $cc_basename in
8667 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8668 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8669 hardcode_libdir_flag_spec
=
8670 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8671 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8672 if test "x$supports_anon_versioning" = xyes
; then
8673 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8675 echo "local: *; };" >> $output_objdir/$libname.ver~
8676 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8686 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8687 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8690 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8701 *** create shared libraries on Solaris systems. Therefore, libtool
8702 *** is disabling shared libraries support. We urge you to upgrade GNU
8703 *** binutils to release 2.9.1 or newer. Another option is to modify
8704 *** your PATH or compiler configuration so that the native linker is
8705 *** used, and then restart.
8708 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8709 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8716 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8717 case `$LD -v 2>&1` in
8718 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8723 *** reliably create shared libraries on SCO systems. Therefore, libtool
8724 *** is disabling shared libraries support. We urge you to upgrade GNU
8725 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8726 *** your PATH or compiler configuration so that the native linker is
8727 *** used, and then restart.
8732 # For security reasons, it is highly recommended that you always
8733 # use absolute paths for naming shared libraries, and exclude the
8734 # DT_RUNPATH tag from executables and libraries. But doing so
8735 # requires that you compile everything twice, which is a pain.
8736 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8737 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8738 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8748 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8751 hardcode_shlibpath_var
=no
8755 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8756 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764 if test "$ld_shlibs" = no
; then
8766 hardcode_libdir_flag_spec
=
8767 export_dynamic_flag_spec
=
8768 whole_archive_flag_spec
=
8771 # PORTME fill in a description of your system's linker (not GNU ld)
8774 allow_undefined_flag
=unsupported
8775 always_export_symbols
=yes
8776 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'
8777 # Note: this linker hardcodes the directories in LIBPATH if there
8778 # are no directories specified by -L.
8779 hardcode_minus_L
=yes
8780 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8781 # Neither direct hardcoding nor static linking is supported with a
8783 hardcode_direct
=unsupported
8788 if test "$host_cpu" = ia64
; then
8789 # On IA64, the linker does run time linking by default, so we don't
8790 # have to do anything special.
8791 aix_use_runtimelinking
=no
8792 exp_sym_flag
='-Bexport'
8795 # If we're using GNU nm, then we don't want the "-C" option.
8796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8797 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8798 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'
8800 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'
8802 aix_use_runtimelinking
=no
8804 # Test if we are trying to use run time linking or normal
8805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8806 # need to do runtime linking.
8807 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8808 for ld_flag
in $LDFLAGS; do
8809 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8810 aix_use_runtimelinking
=yes
8817 exp_sym_flag
='-bexport'
8818 no_entry_flag
='-bnoentry'
8821 # When large executables or shared objects are built, AIX ld can
8822 # have problems creating the table of contents. If linking a library
8823 # or program results in "error TOC overflow" add -mminimal-toc to
8824 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8825 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8829 hardcode_direct_absolute
=yes
8830 hardcode_libdir_separator
=':'
8831 link_all_deplibs
=yes
8832 file_list_spec
='${wl}-f,'
8834 if test "$GCC" = yes; then
8835 case $host_os in aix4.
[012]|aix4.
[012].
*)
8836 # We only want to do this on AIX 4.2 and lower, the check
8837 # below for broken collect2 doesn't work under 4.3+
8838 collect2name
=`${CC} -print-prog-name=collect2`
8839 if test -f "$collect2name" &&
8840 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8842 # We have reworked collect2
8845 # We have old collect2
8846 hardcode_direct
=unsupported
8847 # It fails to find uninstalled libraries when the uninstalled
8848 # path is not listed in the libpath. Setting hardcode_minus_L
8849 # to unsupported forces relinking
8850 hardcode_minus_L
=yes
8851 hardcode_libdir_flag_spec
='-L$libdir'
8852 hardcode_libdir_separator
=
8856 shared_flag
='-shared'
8857 if test "$aix_use_runtimelinking" = yes; then
8858 shared_flag
="$shared_flag "'${wl}-G'
8862 if test "$host_cpu" = ia64
; then
8863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8864 # chokes on -Wl,-G. The following line is correct:
8867 if test "$aix_use_runtimelinking" = yes; then
8868 shared_flag
='${wl}-G'
8870 shared_flag
='${wl}-bM:SRE'
8875 export_dynamic_flag_spec
='${wl}-bexpall'
8876 # It seems that -bexpall does not export symbols beginning with
8877 # underscore (_), so it is better to generate a list of symbols to export.
8878 always_export_symbols
=yes
8879 if test "$aix_use_runtimelinking" = yes; then
8880 # Warning - without using the other runtime loading flags (-brtl),
8881 # -berok will link without error, but may produce a broken library.
8882 allow_undefined_flag
='-berok'
8883 # Determine the default libpath from the value encoded in an
8885 cat >conftest.
$ac_ext <<_ACEOF
8888 cat confdefs.h
>>conftest.
$ac_ext
8889 cat >>conftest.
$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8900 rm -f conftest.
$ac_objext conftest
$ac_exeext
8901 if { (ac_try
="$ac_link"
8903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8907 $as_echo "$ac_try_echo") >&5
8908 (eval "$ac_link") 2>conftest.er1
8910 grep -v '^ *+' conftest.er1 >conftest.err
8912 cat conftest.err >&5
8913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } && {
8915 test -z "$ac_c_werror_flag" ||
8916 test ! -s conftest.err
8917 } && test -s conftest$ac_exeext && {
8918 test "$cross_compiling" = yes ||
8919 $as_test_x conftest$ac_exeext
8922 lt_aix_libpath_sed='
8923 /Import File Strings/,/^$/ {
8929 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8930 # Check for a 64-bit object if we didn't find anything.
8931 if test -z "$aix_libpath"; then
8932 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8935 $as_echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8941 rm -rf conftest.dSYM
8942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943 conftest$ac_exeext conftest.$ac_ext
8944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8947 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"
8949 if test "$host_cpu" = ia64; then
8950 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8951 allow_undefined_flag="-z nodefs"
8952 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"
8954 # Determine the default libpath from the value encoded in an
8956 cat >conftest.$ac_ext <<_ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8975 *) ac_try_echo
=$ac_try;;
8977 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8978 $as_echo "$ac_try_echo") >&5
8979 (eval "$ac_link") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1
>conftest.err
8983 cat conftest.err
>&5
8984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest
$ac_exeext && {
8989 test "$cross_compiling" = yes ||
8990 $as_test_x conftest
$ac_exeext
8993 lt_aix_libpath_sed
='
8994 /Import File Strings/,/^$/ {
9000 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9001 # Check for a 64-bit object if we didn't find anything.
9002 if test -z "$aix_libpath"; then
9003 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9006 $as_echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.
$ac_ext >&5
9012 rm -rf conftest.dSYM
9013 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9014 conftest
$ac_exeext conftest.
$ac_ext
9015 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9017 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9018 # Warning - without using the other run time loading flags,
9019 # -berok will link without error, but may produce a broken library.
9020 no_undefined_flag
=' ${wl}-bernotok'
9021 allow_undefined_flag
=' ${wl}-berok'
9022 # Exported symbols can be pulled into shared objects from archives
9023 whole_archive_flag_spec
='$convenience'
9024 archive_cmds_need_lc
=yes
9025 # This is similar to how AIX traditionally builds its shared libraries.
9026 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'
9034 # see comment about AmigaOS4 .so support
9035 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds
=''
9039 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)'
9040 hardcode_libdir_flag_spec
='-L$libdir'
9041 hardcode_minus_L
=yes
9047 export_dynamic_flag_spec
=-rdynamic
9050 cygwin
* | mingw
* | pw32
* | cegcc
*)
9051 # When not using gcc, we currently assume that we are using
9052 # Microsoft Visual C++.
9053 # hardcode_libdir_flag_spec is actually meaningless, as there is
9054 # no search path for DLLs.
9055 hardcode_libdir_flag_spec
=' '
9056 allow_undefined_flag
=unsupported
9057 # Tell ltmain to make .lib files, not .a files.
9059 # Tell ltmain to make .dll files, not .so files.
9061 # FIXME: Setting linknames here is a bad hack.
9062 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9063 # The linker will automatically build a .lib file if we build a DLL.
9064 old_archive_from_new_cmds
='true'
9065 # FIXME: Should let the user specify the lib program.
9066 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9067 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9068 enable_shared_with_static_runtimes
=yes
9071 darwin
* | rhapsody
*)
9074 archive_cmds_need_lc
=no
9076 hardcode_automatic
=yes
9077 hardcode_shlibpath_var
=unsupported
9078 whole_archive_flag_spec
=''
9079 link_all_deplibs
=yes
9080 allow_undefined_flag
="$_lt_dar_allow_undefined"
9081 case $cc_basename in
9082 ifort
*) _lt_dar_can_shared
=yes ;;
9083 *) _lt_dar_can_shared
=$GCC ;;
9085 if test "$_lt_dar_can_shared" = "yes"; then
9086 output_verbose_link_cmd
=echo
9087 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9088 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9089 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}"
9090 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}"
9099 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100 hardcode_libdir_flag_spec
='-L$libdir'
9101 hardcode_shlibpath_var
=no
9108 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9109 # support. Future versions do this automatically, but an explicit c++rt0.o
9110 # does not break anything, and helps significantly (at the cost of a little
9113 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9114 hardcode_libdir_flag_spec
='-R$libdir'
9116 hardcode_shlibpath_var
=no
9119 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9121 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_minus_L
=yes
9124 hardcode_shlibpath_var
=no
9127 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9128 freebsd
* | dragonfly
*)
9129 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9130 hardcode_libdir_flag_spec
='-R$libdir'
9132 hardcode_shlibpath_var
=no
9136 if test "$GCC" = yes; then
9137 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'
9139 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'
9141 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_separator
=:
9145 # hardcode_minus_L: Not really in the search PATH,
9146 # but as the default location of the library.
9147 hardcode_minus_L
=yes
9148 export_dynamic_flag_spec
='${wl}-E'
9152 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9153 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9157 if test "$with_gnu_ld" = no
; then
9158 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9159 hardcode_libdir_flag_spec_ld
='+b $libdir'
9160 hardcode_libdir_separator
=:
9162 hardcode_direct_absolute
=yes
9163 export_dynamic_flag_spec
='${wl}-E'
9164 # hardcode_minus_L: Not really in the search PATH,
9165 # but as the default location of the library.
9166 hardcode_minus_L
=yes
9171 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9174 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9177 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9180 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9186 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9196 if test "$with_gnu_ld" = no
; then
9197 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9198 hardcode_libdir_separator
=:
9203 hardcode_shlibpath_var
=no
9207 hardcode_direct_absolute
=yes
9208 export_dynamic_flag_spec
='${wl}-E'
9210 # hardcode_minus_L: Not really in the search PATH,
9211 # but as the default location of the library.
9212 hardcode_minus_L
=yes
9218 irix5
* | irix6
* | nonstopux
*)
9219 if test "$GCC" = yes; then
9220 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'
9221 # Try to use the -exported_symbol ld option, if it does not
9222 # work, assume that -exports_file does not work either and
9223 # implicitly export all symbols.
9224 save_LDFLAGS
="$LDFLAGS"
9225 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9226 cat >conftest.
$ac_ext <<_ACEOF
9229 rm -f conftest.
$ac_objext conftest
$ac_exeext
9230 if { (ac_try
="$ac_link"
9232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9236 $as_echo "$ac_try_echo") >&5
9237 (eval "$ac_link") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest$ac_exeext && {
9247 test "$cross_compiling" = yes ||
9248 $as_test_x conftest$ac_exeext
9250 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'
9253 $as_echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9259 rm -rf conftest.dSYM
9260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9261 conftest$ac_exeext conftest.$ac_ext
9262 LDFLAGS="$save_LDFLAGS"
9264 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'
9265 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'
9267 archive_cmds_need_lc='no'
9268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269 hardcode_libdir_separator=:
9271 link_all_deplibs=yes
9275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9278 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9280 hardcode_libdir_flag_spec='-R$libdir'
9282 hardcode_shlibpath_var=no
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289 hardcode_libdir_separator=:
9290 hardcode_shlibpath_var=no
9297 if test -f /usr/libexec/ld.so; then
9299 hardcode_shlibpath_var=no
9300 hardcode_direct_absolute=yes
9301 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305 export_dynamic_flag_spec='${wl}-E'
9308 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_libdir_flag_spec='-R$libdir'
9313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_minus_L=yes
9326 allow_undefined_flag=unsupported
9327 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'
9328 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9332 if test "$GCC" = yes; then
9333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334 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'
9336 allow_undefined_flag=' -expect_unresolved \*'
9337 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'
9339 archive_cmds_need_lc='no'
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341 hardcode_libdir_separator=:
9344 osf4* | osf5*) # as osf3* with the addition of -msym flag
9345 if test "$GCC" = yes; then
9346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9347 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'
9348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350 allow_undefined_flag=' -expect_unresolved \*'
9351 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'
9352 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~
9353 $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'
9355 # Both c and cxx compiler support -rpath directly
9356 hardcode_libdir_flag_spec='-rpath $libdir'
9358 archive_cmds_need_lc='no'
9359 hardcode_libdir_separator=:
9363 no_undefined_flag=' -z defs'
9364 if test "$GCC" = yes; then
9366 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9370 case `$CC -V 2>&1` in
9373 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9375 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9379 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9381 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9385 hardcode_libdir_flag_spec='-R$libdir'
9386 hardcode_shlibpath_var=no
9388 solaris2.[0-5] | solaris2.[0-5].*) ;;
9390 # The compiler driver will combine and reorder linker options,
9391 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9392 # but is careful enough not to reorder.
9393 # Supported since Solaris 2.6 (maybe 2.5.1?)
9394 if test "$GCC" = yes; then
9395 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9397 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9401 link_all_deplibs
=yes
9405 if test "x$host_vendor" = xsequent
; then
9406 # Use $CC to link under sequent, because it throws in some extra .o
9407 # files that make .init and .fini sections work.
9408 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9412 hardcode_libdir_flag_spec
='-L$libdir'
9414 hardcode_minus_L
=yes
9415 hardcode_shlibpath_var
=no
9419 case $host_vendor in
9421 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_direct
=yes # is this really true???
9425 ## LD is ld it makes a PLAMLIB
9426 ## CC just makes a GrossModule.
9427 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9428 reload_cmds
='$CC -r -o $output$reload_objs'
9432 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9436 runpath_var
='LD_RUN_PATH'
9437 hardcode_shlibpath_var
=no
9441 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_shlibpath_var
=no
9443 export_dynamic_flag_spec
='-Bexport'
9447 if test -d /usr
/nec
; then
9448 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_shlibpath_var
=no
9450 runpath_var
=LD_RUN_PATH
9451 hardcode_runpath_var
=yes
9456 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9457 no_undefined_flag
='${wl}-z,text'
9458 archive_cmds_need_lc
=no
9459 hardcode_shlibpath_var
=no
9460 runpath_var
='LD_RUN_PATH'
9462 if test "$GCC" = yes; then
9463 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 sysv5
* | sco3.2v5
* | sco5v6
*)
9472 # Note: We can NOT use -z defs as we might desire, because we do not
9473 # link with -lc, and that would cause any symbols used from libc to
9474 # always be unresolved, which means just about no library would
9475 # ever link correctly. If we're not using GNU ld we use -z text
9476 # though, which does catch some bad symbols but isn't as heavy-handed
9478 no_undefined_flag
='${wl}-z,text'
9479 allow_undefined_flag
='${wl}-z,nodefs'
9480 archive_cmds_need_lc
=no
9481 hardcode_shlibpath_var
=no
9482 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9483 hardcode_libdir_separator
=':'
9484 link_all_deplibs
=yes
9485 export_dynamic_flag_spec
='${wl}-Bexport'
9486 runpath_var
='LD_RUN_PATH'
9488 if test "$GCC" = yes; then
9489 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_libdir_flag_spec
='-L$libdir'
9500 hardcode_shlibpath_var
=no
9508 if test x
$host_vendor = xsni
; then
9510 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9511 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9517 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9518 $as_echo "$ld_shlibs" >&6; }
9519 test "$ld_shlibs" = no
&& can_build_shared
=no
9521 with_gnu_ld
=$with_gnu_ld
9538 # Do we need to explicitly link libc?
9540 case "x$archive_cmds_need_lc" in
9542 # Assume -lc should be added
9543 archive_cmds_need_lc
=yes
9545 if test "$enable_shared" = yes && test "$GCC" = yes; then
9546 case $archive_cmds in
9548 # FIXME: we may have to deal with multi-command sequences.
9551 # Test whether the compiler implicitly links with -lc since on some
9552 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9553 # to ld, don't add -lc before -lgcc.
9554 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9555 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9557 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9560 (eval $ac_compile) 2>&5
9562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } 2>conftest.err
; then
9566 libobjs
=conftest.
$ac_objext
9568 wl
=$lt_prog_compiler_wl
9569 pic_flag
=$lt_prog_compiler_pic
9575 lt_save_allow_undefined_flag
=$allow_undefined_flag
9576 allow_undefined_flag
=
9577 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9578 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }
9583 archive_cmds_need_lc
=no
9585 archive_cmds_need_lc
=yes
9587 allow_undefined_flag
=$lt_save_allow_undefined_flag
9589 cat conftest.err
1>&5
9592 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9593 $as_echo "$archive_cmds_need_lc" >&6; }
9756 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9757 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9759 if test "$GCC" = yes; then
9761 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9762 *) lt_awk_arg
="/^libraries:/" ;;
9764 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9765 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9766 # if the path contains ";" then we assume it to be the separator
9767 # otherwise default to the standard path separator (i.e. ":") - it is
9768 # assumed that no part of a normal pathname contains ";" but that should
9769 # okay in the real world where ";" in dirpaths is itself problematic.
9770 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9772 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9774 # Ok, now we have the path, separated by spaces, we can step through it
9775 # and add multilib dir if necessary.
9776 lt_tmp_lt_search_path_spec
=
9777 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9778 for lt_sys_path
in $lt_search_path_spec; do
9779 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9780 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9782 test -d "$lt_sys_path" && \
9783 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9786 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9787 BEGIN {RS=" "; FS="/|\n";} {
9790 for (lt_i = NF; lt_i > 0; lt_i--) {
9791 if ($lt_i != "" && $lt_i != ".") {
9792 if ($lt_i == "..") {
9795 if (lt_count == 0) {
9796 lt_foo="/" $lt_i lt_foo;
9803 if (lt_foo != "") { lt_freq[lt_foo]++; }
9804 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9806 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9808 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9811 libname_spec
='lib$name'
9819 shlibpath_overrides_runpath
=unknown
9821 dynamic_linker
="$host_os ld.so"
9822 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9823 need_lib_prefix
=unknown
9824 hardcode_into_libs
=no
9826 # when you set need_version to no, make sure it does not cause -set_version
9827 # flags to be left without arguments
9828 need_version
=unknown
9833 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9834 shlibpath_var
=LIBPATH
9836 # AIX 3 has no versioning support, so we append a major version to the name.
9837 soname_spec
='${libname}${release}${shared_ext}$major'
9844 hardcode_into_libs
=yes
9845 if test "$host_cpu" = ia64
; then
9846 # AIX 5 supports IA64
9847 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9848 shlibpath_var
=LD_LIBRARY_PATH
9850 # With GCC up to 2.95.x, collect2 would create an import file
9851 # for dependence libraries. The import file would start with
9852 # the line `#! .'. This would cause the generated library to
9853 # depend on `.', always an invalid library. This was fixed in
9854 # development snapshots of GCC prior to 3.0.
9856 aix4 | aix4.
[01] | aix4.
[01].
*)
9857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9859 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9866 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9867 # soname into executable. Probably we can add versioning support to
9868 # collect2, so additional links can be useful in future.
9869 if test "$aix_use_runtimelinking" = yes; then
9870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9871 # instead of lib<name>.a to let people know that these are not
9872 # typical AIX shared libraries.
9873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 # We preserve .a as extension for shared libraries through AIX4.2
9876 # and later when we are not doing run time linking.
9877 library_names_spec
='${libname}${release}.a $libname.a'
9878 soname_spec
='${libname}${release}${shared_ext}$major'
9880 shlibpath_var
=LIBPATH
9887 # Since July 2007 AmigaOS4 officially supports .so libraries.
9888 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 library_names_spec
='$libname.ixlibrary $libname.a'
9893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9894 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'
9900 library_names_spec
='${libname}${shared_ext}'
9901 dynamic_linker
="$host_os ld.so"
9902 shlibpath_var
=LIBRARY_PATH
9908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec
='${libname}${release}${shared_ext}$major'
9910 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9911 shlibpath_var
=LD_LIBRARY_PATH
9912 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9913 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9914 # the default ld.so.conf also contains /usr/contrib/lib and
9915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9916 # libtool to hard-code these into programs
9919 cygwin
* | mingw
* | pw32
* | cegcc
*)
9920 version_type
=windows
9925 case $GCC,$host_os in
9926 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9927 library_names_spec
='$libname.dll.a'
9928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9929 postinstall_cmds
='base_file=`basename \${file}`~
9930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9931 dldir=$destdir/`dirname \$dlpath`~
9932 test -d \$dldir || mkdir -p \$dldir~
9933 $install_prog $dir/$dlname \$dldir/$dlname~
9934 chmod a+x \$dldir/$dlname~
9935 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9936 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9938 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9939 dlpath=$dir/\$dldll~
9941 shlibpath_overrides_runpath
=yes
9945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9946 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9950 # MinGW DLLs use traditional 'lib' prefix
9951 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9953 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9954 # It is most probably a Windows format PATH printed by
9955 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9956 # path with ; separators, and with drive letters. We can handle the
9957 # drive letters (cygwin fileutils understands them), so leave them,
9958 # especially as we might pass files found there to a mingw objdump,
9959 # which wouldn't understand a cygwinified path. Ahh.
9960 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9962 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9966 # pw32 DLLs use 'pw' prefix rather than 'lib'
9967 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9976 dynamic_linker
='Win32 ld.exe'
9977 # FIXME: first we should search . and the directory the executable is in
9981 darwin
* | rhapsody
*)
9982 dynamic_linker
="$host_os dyld"
9986 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9987 soname_spec
='${libname}${release}${major}$shared_ext'
9988 shlibpath_overrides_runpath
=yes
9989 shlibpath_var
=DYLD_LIBRARY_PATH
9990 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9992 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9993 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10001 soname_spec
='${libname}${release}${shared_ext}$major'
10002 shlibpath_var
=LD_LIBRARY_PATH
10009 freebsd
* | dragonfly
*)
10010 # DragonFly does not have aout. When/if they implement a new
10011 # versioning mechanism, adjust this.
10012 if test -x /usr
/bin
/objformat
; then
10013 objformat
=`/usr/bin/objformat`
10016 freebsd
[123]*) objformat
=aout
;;
10017 *) objformat
=elf
;;
10020 version_type
=freebsd-
$objformat
10021 case $version_type in
10023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10028 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10032 shlibpath_var
=LD_LIBRARY_PATH
10035 shlibpath_overrides_runpath
=yes
10037 freebsd3.
[01]* | freebsdelf3.
[01]*)
10038 shlibpath_overrides_runpath
=yes
10039 hardcode_into_libs
=yes
10041 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10042 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10043 shlibpath_overrides_runpath
=no
10044 hardcode_into_libs
=yes
10046 *) # from 4.6 on, and DragonFly
10047 shlibpath_overrides_runpath
=yes
10048 hardcode_into_libs
=yes
10057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10058 soname_spec
='${libname}${release}${shared_ext}$major'
10059 shlibpath_var
=LD_LIBRARY_PATH
10060 hardcode_into_libs
=yes
10063 hpux9
* | hpux10
* | hpux11
*)
10064 # Give a soname corresponding to the major version so that dld.sl refuses to
10065 # link against other versions.
10072 hardcode_into_libs
=yes
10073 dynamic_linker
="$host_os dld.so"
10074 shlibpath_var
=LD_LIBRARY_PATH
10075 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077 soname_spec
='${libname}${release}${shared_ext}$major'
10078 if test "X$HPUX_IA64_MODE" = X32
; then
10079 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10081 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10083 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10087 hardcode_into_libs
=yes
10088 dynamic_linker
="$host_os dld.sl"
10089 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10090 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092 soname_spec
='${libname}${release}${shared_ext}$major'
10093 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10094 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10098 dynamic_linker
="$host_os dld.sl"
10099 shlibpath_var
=SHLIB_PATH
10100 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec
='${libname}${release}${shared_ext}$major'
10105 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10106 postinstall_cmds
='chmod 555 $lib'
10113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10114 soname_spec
='${libname}${release}${shared_ext}$major'
10115 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10116 shlibpath_var
=LD_LIBRARY_PATH
10117 shlibpath_overrides_runpath
=no
10118 hardcode_into_libs
=yes
10121 irix5
* | irix6
* | nonstopux
*)
10123 nonstopux
*) version_type
=nonstopux
;;
10125 if test "$lt_cv_prog_gnu_ld" = yes; then
10133 soname_spec
='${libname}${release}${shared_ext}$major'
10134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10136 irix5
* | nonstopux
*)
10137 libsuff
= shlibsuff
=
10140 case $LD in # libtool.m4 will add one of these switches to LD
10141 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10142 libsuff
= shlibsuff
= libmagic
=32-bit;;
10143 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10144 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10145 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10146 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10147 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10151 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10152 shlibpath_overrides_runpath
=no
10153 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10154 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10155 hardcode_into_libs
=yes
10158 # No shared lib support for Linux oldld, aout, or coff.
10159 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10163 # This must be Linux ELF.
10164 linux
* | k
*bsd
*-gnu)
10168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 soname_spec
='${libname}${release}${shared_ext}$major'
10170 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10171 shlibpath_var
=LD_LIBRARY_PATH
10172 shlibpath_overrides_runpath
=no
10173 # Some binutils ld are patched to set DT_RUNPATH
10174 save_LDFLAGS
=$LDFLAGS
10175 save_libdir
=$libdir
10176 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10177 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10178 cat >conftest.
$ac_ext <<_ACEOF
10181 cat confdefs.h
>>conftest.
$ac_ext
10182 cat >>conftest.
$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10193 rm -f conftest.
$ac_objext conftest
$ac_exeext
10194 if { (ac_try
="$ac_link"
10195 case "(($ac_try" in
10196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10200 $as_echo "$ac_try_echo") >&5
10201 (eval "$ac_link") 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && {
10208 test -z "$ac_c_werror_flag" ||
10209 test ! -s conftest.err
10210 } && test -s conftest$ac_exeext && {
10211 test "$cross_compiling" = yes ||
10212 $as_test_x conftest$ac_exeext
10214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10215 shlibpath_overrides_runpath=yes
10219 $as_echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10225 rm -rf conftest.dSYM
10226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LDFLAGS=$save_LDFLAGS
10229 libdir=$save_libdir
10231 # This implies no fast_install, which is unacceptable.
10232 # Some rework will be needed to allow for fast_install
10233 # before this can be enabled.
10234 hardcode_into_libs=yes
10236 # Add ABI-specific directories to the system library path.
10237 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10239 # Append ld.so.conf contents to the search path
10240 if test -f /etc/ld.so.conf; then
10241 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' ' '`
10242 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10245 # We used to test for /lib/ld.so.1 and disable shared libraries on
10246 # powerpc, because MkLinux only supported shared libraries with the
10247 # GNU dynamic linker. Since this was broken with cross compilers,
10248 # most powerpc-linux boxes support dynamic linking these days and
10249 # people can always --disable-shared, the test was removed, and we
10250 # assume the GNU/Linux dynamic linker is in use.
10251 dynamic_linker='GNU/Linux ld.so'
10258 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10261 dynamic_linker='NetBSD (a.out) ld.so'
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 dynamic_linker='NetBSD ld.elf_so'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 shlibpath_overrides_runpath=yes
10269 hardcode_into_libs=yes
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 shlibpath_overrides_runpath=no
10287 hardcode_into_libs=yes
10288 dynamic_linker='ldqnx.so'
10293 sys_lib_dlsearch_path_spec="/usr/lib"
10295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10298 *) need_version=no ;;
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10305 openbsd2.[89] | openbsd2.[89].*)
10306 shlibpath_overrides_runpath=no
10309 shlibpath_overrides_runpath=yes
10313 shlibpath_overrides_runpath=yes
10318 libname_spec='$name'
10321 library_names_spec='$libname${shared_ext} $libname.a'
10322 dynamic_linker='OS/2 ld.exe'
10323 shlibpath_var=LIBPATH
10326 osf3* | osf4* | osf5*)
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=yes
10349 hardcode_into_libs=yes
10350 # ldd complains unless libraries are executable
10351 postinstall_cmds='chmod +x $lib'
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 shlibpath_overrides_runpath=yes
10360 if test "$with_gnu_ld" = yes; then
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 case $host_vendor in
10373 shlibpath_overrides_runpath=no
10375 runpath_var=LD_RUN_PATH
10383 shlibpath_overrides_runpath=no
10384 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10390 if test -d /usr/nec ;then
10392 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10393 soname_spec='$libname${shared_ext}.$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10399 version_type=freebsd-elf
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10403 soname_spec='${libname}${release}${shared_ext}$major'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 shlibpath_overrides_runpath=yes
10406 hardcode_into_libs=yes
10407 if test "$with_gnu_ld" = yes; then
10408 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10410 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10417 sys_lib_dlsearch_path_spec='/usr/lib'
10421 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=no
10428 hardcode_into_libs=yes
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 shlibpath_var=LD_LIBRARY_PATH
10442 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10443 $as_echo "$dynamic_linker" >&6; }
10444 test "$dynamic_linker" = no && can_build_shared=no
10446 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10447 if test "$GCC" = yes; then
10448 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10451 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10452 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10454 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10455 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10544 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10545 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10547 if test -n "$hardcode_libdir_flag_spec" ||
10548 test -n "$runpath_var" ||
10549 test "X$hardcode_automatic" = "Xyes" ; then
10551 # We can hardcode non-existent directories.
10552 if test "$hardcode_direct" != no &&
10553 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10554 # have to relink, otherwise we might link with an installed library
10555 # when we should be linking with a yet-to-be-installed one
10556 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10557 test "$hardcode_minus_L" != no; then
10558 # Linking always hardcodes the temporary library directory.
10559 hardcode_action=relink
10561 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10562 hardcode_action=immediate
10565 # We cannot hardcode anything, or else we can only hardcode existing
10567 hardcode_action=unsupported
10569 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10570 $as_echo "$hardcode_action" >&6; }
10572 if test "$hardcode_action" = relink ||
10573 test "$inherit_rpath" = yes; then
10574 # Fast installation is not supported
10575 enable_fast_install=no
10576 elif test "$shlibpath_overrides_runpath" = yes ||
10577 test "$enable_shared" = no; then
10578 # Fast installation is not necessary
10579 enable_fast_install=needless
10587 if test "x$enable_dlopen" != xyes; then
10588 enable_dlopen=unknown
10589 enable_dlopen_self=unknown
10590 enable_dlopen_self_static=unknown
10597 lt_cv_dlopen="load_add_on"
10599 lt_cv_dlopen_self=yes
10602 mingw* | pw32* | cegcc*)
10603 lt_cv_dlopen="LoadLibrary"
10608 lt_cv_dlopen="dlopen"
10613 # if libdl is installed we need to link against it
10614 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10617 $as_echo_n "(cached) " >&6
10619 ac_check_lib_save_LIBS=$LIBS
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10647 *) ac_try_echo
=$ac_try;;
10649 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651 (eval "$ac_link") 2>conftest.er1
10653 grep -v '^ *+' conftest.er1
>conftest.err
10655 cat conftest.err
>&5
10656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } && {
10658 test -z "$ac_c_werror_flag" ||
10659 test ! -s conftest.err
10660 } && test -s conftest
$ac_exeext && {
10661 test "$cross_compiling" = yes ||
10662 $as_test_x conftest
$ac_exeext
10664 ac_cv_lib_dl_dlopen
=yes
10666 $as_echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.
$ac_ext >&5
10669 ac_cv_lib_dl_dlopen
=no
10672 rm -rf conftest.dSYM
10673 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10674 conftest
$ac_exeext conftest.
$ac_ext
10675 LIBS
=$ac_check_lib_save_LIBS
10677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10679 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10680 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10683 lt_cv_dlopen
="dyld"
10685 lt_cv_dlopen_self
=yes
10692 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10693 $as_echo_n "checking for shl_load... " >&6; }
10694 if test "${ac_cv_func_shl_load+set}" = set; then
10695 $as_echo_n "(cached) " >&6
10697 cat >conftest.
$ac_ext <<_ACEOF
10700 cat confdefs.h
>>conftest.
$ac_ext
10701 cat >>conftest.
$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10705 #define shl_load innocuous_shl_load
10707 /* System header to define __stub macros and hopefully few prototypes,
10708 which can conflict with char shl_load (); below.
10709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10710 <limits.h> exists even on freestanding compilers. */
10713 # include <limits.h>
10715 # include <assert.h>
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10727 /* The GNU C library defines this for functions which it implements
10728 to always fail with ENOSYS. Some functions are actually named
10729 something starting with __ and the normal name is an alias. */
10730 #if defined __stub_shl_load || defined __stub___shl_load
10737 return shl_load ();
10742 rm -f conftest.
$ac_objext conftest
$ac_exeext
10743 if { (ac_try
="$ac_link"
10744 case "(($ac_try" in
10745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749 $as_echo "$ac_try_echo") >&5
10750 (eval "$ac_link") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext && {
10760 test "$cross_compiling" = yes ||
10761 $as_test_x conftest$ac_exeext
10763 ac_cv_func_shl_load=yes
10765 $as_echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_cv_func_shl_load=no
10771 rm -rf conftest.dSYM
10772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10773 conftest$ac_exeext conftest.$ac_ext
10775 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10776 $as_echo "$ac_cv_func_shl_load" >&6; }
10777 if test "x$ac_cv_func_shl_load" = x""yes; then
10778 lt_cv_dlopen="shl_load"
10780 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10781 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10782 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10783 $as_echo_n "(cached) " >&6
10785 ac_check_lib_save_LIBS=$LIBS
10787 cat >conftest.$ac_ext <<_ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10804 return shl_load ();
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10813 *) ac_try_echo
=$ac_try;;
10815 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10816 $as_echo "$ac_try_echo") >&5
10817 (eval "$ac_link") 2>conftest.er1
10819 grep -v '^ *+' conftest.er1
>conftest.err
10821 cat conftest.err
>&5
10822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } && {
10824 test -z "$ac_c_werror_flag" ||
10825 test ! -s conftest.err
10826 } && test -s conftest
$ac_exeext && {
10827 test "$cross_compiling" = yes ||
10828 $as_test_x conftest
$ac_exeext
10830 ac_cv_lib_dld_shl_load
=yes
10832 $as_echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.
$ac_ext >&5
10835 ac_cv_lib_dld_shl_load
=no
10838 rm -rf conftest.dSYM
10839 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10840 conftest
$ac_exeext conftest.
$ac_ext
10841 LIBS
=$ac_check_lib_save_LIBS
10843 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10844 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10845 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10846 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10848 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10849 $as_echo_n "checking for dlopen... " >&6; }
10850 if test "${ac_cv_func_dlopen+set}" = set; then
10851 $as_echo_n "(cached) " >&6
10853 cat >conftest.
$ac_ext <<_ACEOF
10856 cat confdefs.h
>>conftest.
$ac_ext
10857 cat >>conftest.
$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10861 #define dlopen innocuous_dlopen
10863 /* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char dlopen (); below.
10865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10866 <limits.h> exists even on freestanding compilers. */
10869 # include <limits.h>
10871 # include <assert.h>
10876 /* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10883 /* The GNU C library defines this for functions which it implements
10884 to always fail with ENOSYS. Some functions are actually named
10885 something starting with __ and the normal name is an alias. */
10886 #if defined __stub_dlopen || defined __stub___dlopen
10898 rm -f conftest.
$ac_objext conftest
$ac_exeext
10899 if { (ac_try
="$ac_link"
10900 case "(($ac_try" in
10901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10905 $as_echo "$ac_try_echo") >&5
10906 (eval "$ac_link") 2>conftest.er1
10908 grep -v '^ *+' conftest.er1 >conftest.err
10910 cat conftest.err >&5
10911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext && {
10916 test "$cross_compiling" = yes ||
10917 $as_test_x conftest$ac_exeext
10919 ac_cv_func_dlopen=yes
10921 $as_echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_cv_func_dlopen=no
10927 rm -rf conftest.dSYM
10928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929 conftest$ac_exeext conftest.$ac_ext
10931 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10932 $as_echo "$ac_cv_func_dlopen" >&6; }
10933 if test "x$ac_cv_func_dlopen" = x""yes; then
10934 lt_cv_dlopen="dlopen"
10936 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10937 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10939 $as_echo_n "(cached) " >&6
10941 ac_check_lib_save_LIBS=$LIBS
10943 cat >conftest.$ac_ext <<_ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10969 *) ac_try_echo
=$ac_try;;
10971 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10975 grep -v '^ *+' conftest.er1
>conftest.err
10977 cat conftest.err
>&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest
$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest
$ac_exeext
10986 ac_cv_lib_dl_dlopen
=yes
10988 $as_echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.
$ac_ext >&5
10991 ac_cv_lib_dl_dlopen
=no
10994 rm -rf conftest.dSYM
10995 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10996 conftest
$ac_exeext conftest.
$ac_ext
10997 LIBS
=$ac_check_lib_save_LIBS
10999 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11000 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11001 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11002 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11004 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11005 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11006 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11007 $as_echo_n "(cached) " >&6
11009 ac_check_lib_save_LIBS
=$LIBS
11010 LIBS
="-lsvld $LIBS"
11011 cat >conftest.
$ac_ext <<_ACEOF
11014 cat confdefs.h
>>conftest.
$ac_ext
11015 cat >>conftest.
$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11018 /* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
11033 rm -f conftest.
$ac_objext conftest
$ac_exeext
11034 if { (ac_try
="$ac_link"
11035 case "(($ac_try" in
11036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11040 $as_echo "$ac_try_echo") >&5
11041 (eval "$ac_link") 2>conftest.er1
11043 grep -v '^ *+' conftest.er1 >conftest.err
11045 cat conftest.err >&5
11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest$ac_exeext && {
11051 test "$cross_compiling" = yes ||
11052 $as_test_x conftest$ac_exeext
11054 ac_cv_lib_svld_dlopen=yes
11056 $as_echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_cv_lib_svld_dlopen=no
11062 rm -rf conftest.dSYM
11063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11068 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11069 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11072 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11073 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11074 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11075 $as_echo_n "(cached) " >&6
11077 ac_check_lib_save_LIBS=$LIBS
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11096 return dld_link ();
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (ac_try="$ac_link"
11103 case "(($ac_try" in
11104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11105 *) ac_try_echo
=$ac_try;;
11107 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11108 $as_echo "$ac_try_echo") >&5
11109 (eval "$ac_link") 2>conftest.er1
11111 grep -v '^ *+' conftest.er1
>conftest.err
11113 cat conftest.err
>&5
11114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && {
11116 test -z "$ac_c_werror_flag" ||
11117 test ! -s conftest.err
11118 } && test -s conftest
$ac_exeext && {
11119 test "$cross_compiling" = yes ||
11120 $as_test_x conftest
$ac_exeext
11122 ac_cv_lib_dld_dld_link
=yes
11124 $as_echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.
$ac_ext >&5
11127 ac_cv_lib_dld_dld_link
=no
11130 rm -rf conftest.dSYM
11131 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11132 conftest
$ac_exeext conftest.
$ac_ext
11133 LIBS
=$ac_check_lib_save_LIBS
11135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11136 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11137 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11138 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11159 if test "x$lt_cv_dlopen" != xno
; then
11165 case $lt_cv_dlopen in
11167 save_CPPFLAGS
="$CPPFLAGS"
11168 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11170 save_LDFLAGS
="$LDFLAGS"
11171 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11174 LIBS
="$lt_cv_dlopen_libs $LIBS"
11176 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11177 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11178 if test "${lt_cv_dlopen_self+set}" = set; then
11179 $as_echo_n "(cached) " >&6
11181 if test "$cross_compiling" = yes; then :
11182 lt_cv_dlopen_self
=cross
11184 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11185 lt_status
=$lt_dlunknown
11186 cat > conftest.
$ac_ext <<_LT_EOF
11187 #line 11187 "configure"
11188 #include "confdefs.h"
11197 # define LT_DLGLOBAL RTLD_GLOBAL
11200 # define LT_DLGLOBAL DL_GLOBAL
11202 # define LT_DLGLOBAL 0
11206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11207 find out it does not work in some platform. */
11208 #ifndef LT_DLLAZY_OR_NOW
11210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11213 # define LT_DLLAZY_OR_NOW DL_LAZY
11216 # define LT_DLLAZY_OR_NOW RTLD_NOW
11219 # define LT_DLLAZY_OR_NOW DL_NOW
11221 # define LT_DLLAZY_OR_NOW 0
11228 void fnord() { int i=42;}
11231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11232 int status = $lt_dlunknown;
11236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11237 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11238 /* dlclose (self); */
11246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11247 (eval $ac_link) 2>&5
11249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11251 (.
/conftest
; exit; ) >&5 2>/dev
/null
11253 case x
$lt_status in
11254 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11255 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11256 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11259 # compilation failed
11260 lt_cv_dlopen_self
=no
11267 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11268 $as_echo "$lt_cv_dlopen_self" >&6; }
11270 if test "x$lt_cv_dlopen_self" = xyes
; then
11271 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11272 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11273 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11274 if test "${lt_cv_dlopen_self_static+set}" = set; then
11275 $as_echo_n "(cached) " >&6
11277 if test "$cross_compiling" = yes; then :
11278 lt_cv_dlopen_self_static
=cross
11280 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11281 lt_status
=$lt_dlunknown
11282 cat > conftest.
$ac_ext <<_LT_EOF
11283 #line 11283 "configure"
11284 #include "confdefs.h"
11293 # define LT_DLGLOBAL RTLD_GLOBAL
11296 # define LT_DLGLOBAL DL_GLOBAL
11298 # define LT_DLGLOBAL 0
11302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11303 find out it does not work in some platform. */
11304 #ifndef LT_DLLAZY_OR_NOW
11306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11309 # define LT_DLLAZY_OR_NOW DL_LAZY
11312 # define LT_DLLAZY_OR_NOW RTLD_NOW
11315 # define LT_DLLAZY_OR_NOW DL_NOW
11317 # define LT_DLLAZY_OR_NOW 0
11324 void fnord() { int i=42;}
11327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11328 int status = $lt_dlunknown;
11332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11333 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11334 /* dlclose (self); */
11342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343 (eval $ac_link) 2>&5
11345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11347 (.
/conftest
; exit; ) >&5 2>/dev
/null
11349 case x
$lt_status in
11350 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11351 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11352 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11355 # compilation failed
11356 lt_cv_dlopen_self_static
=no
11363 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11364 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11367 CPPFLAGS
="$save_CPPFLAGS"
11368 LDFLAGS
="$save_LDFLAGS"
11373 case $lt_cv_dlopen_self in
11374 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11375 *) enable_dlopen_self
=unknown
;;
11378 case $lt_cv_dlopen_self_static in
11379 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11380 *) enable_dlopen_self_static
=unknown
;;
11402 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11403 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11404 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11405 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11406 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11407 { $as_echo "$as_me:$LINENO: result: yes" >&5
11408 $as_echo "yes" >&6; }
11410 # FIXME - insert some real tests, host_os isn't really good enough
11413 if test -n "$STRIP" ; then
11414 striplib
="$STRIP -x"
11415 old_striplib
="$STRIP -S"
11416 { $as_echo "$as_me:$LINENO: result: yes" >&5
11417 $as_echo "yes" >&6; }
11419 { $as_echo "$as_me:$LINENO: result: no" >&5
11420 $as_echo "no" >&6; }
11424 { $as_echo "$as_me:$LINENO: result: no" >&5
11425 $as_echo "no" >&6; }
11441 # Report which library types will actually be built
11442 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11443 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11444 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11445 $as_echo "$can_build_shared" >&6; }
11447 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11448 $as_echo_n "checking whether to build shared libraries... " >&6; }
11449 test "$can_build_shared" = "no" && enable_shared
=no
11451 # On AIX, shared libraries and static libraries use the same namespace, and
11452 # are all built from PIC.
11455 test "$enable_shared" = yes && enable_static
=no
11456 if test -n "$RANLIB"; then
11457 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11458 postinstall_cmds
='$RANLIB $lib'
11463 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11464 test "$enable_shared" = yes && enable_static
=no
11468 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11469 $as_echo "$enable_shared" >&6; }
11471 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11472 $as_echo_n "checking whether to build static libraries... " >&6; }
11473 # Make sure either enable_shared or enable_static is yes.
11474 test "$enable_shared" = yes || enable_static
=yes
11475 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11476 $as_echo "$enable_static" >&6; }
11483 ac_cpp
='$CPP $CPPFLAGS'
11484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11502 ac_config_commands
="$ac_config_commands libtool"
11507 # Only expand once:
11510 # By default we simply use the C compiler to build assembly code.
11512 test "${CCAS+set}" = set || CCAS
=$CC
11513 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11517 depcc
="$CCAS" am_compiler_list
=
11519 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11520 $as_echo_n "checking dependency style of $depcc... " >&6; }
11521 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11522 $as_echo_n "(cached) " >&6
11524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11525 # We make a subdir and do the tests there. Otherwise we can end up
11526 # making bogus files that we don't know about and never remove. For
11527 # instance it was reported that on HP-UX the gcc test will end up
11528 # making a dummy file named `D' -- because `-MD' means `put the output
11531 # Copy depcomp to subdir because otherwise we won't find it if we're
11532 # using a relative directory.
11533 cp "$am_depcomp" conftest.dir
11535 # We will build objects and dependencies in a subdirectory because
11536 # it helps to detect inapplicable dependency modes. For instance
11537 # both Tru64's cc and ICC support -MD to output dependencies as a
11538 # side effect of compilation, but ICC will put the dependencies in
11539 # the current directory while Tru64 will put them in the object
11543 am_cv_CCAS_dependencies_compiler_type
=none
11544 if test "$am_compiler_list" = ""; then
11545 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11547 am__universal
=false
11550 for depmode
in $am_compiler_list; do
11551 # Setup a source with many dependencies, because some compilers
11552 # like to wrap large dependency lists on column 80 (with \), and
11553 # we should not choose a depcomp mode which is confused by this.
11555 # We need to recreate these files for each test, as the compiler may
11556 # overwrite some of them when testing with obscure command lines.
11557 # This happens at least with the AIX C compiler.
11559 for i
in 1 2 3 4 5 6; do
11560 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11561 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11562 # Solaris 8's {/usr,}/bin/sh.
11563 touch sub
/conftst
$i.h
11565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11567 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11568 # mode. It turns out that the SunPro C++ compiler does not properly
11569 # handle `-M -o', and we need to detect this. Also, some Intel
11570 # versions had trouble with output in subdirs
11571 am__obj
=sub
/conftest.
${OBJEXT-o}
11572 am__minus_obj
="-o $am__obj"
11575 # This depmode causes a compiler race in universal mode.
11576 test "$am__universal" = false ||
continue
11579 # after this tag, mechanisms are not by side-effect, so they'll
11580 # only be used when explicitly requested
11581 if test "x$enable_dependency_tracking" = xyes
; then
11587 msvisualcpp | msvcmsys
)
11588 # This compiler won't grok `-c -o', but also, the minuso test has
11589 # not run yet. These depmodes are late enough in the game, and
11590 # so weak that their functioning should not be impacted.
11591 am__obj
=conftest.
${OBJEXT-o}
11596 if depmode
=$depmode \
11597 source=sub
/conftest.c object
=$am__obj \
11598 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11599 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11600 >/dev
/null
2>conftest.err
&&
11601 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11602 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11603 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11604 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11605 # icc doesn't choke on unknown options, it will just issue warnings
11606 # or remarks (even with -Werror). So we grep stderr for any message
11607 # that says an option was ignored or not supported.
11608 # When given -MP, icc 7.0 and 7.1 complain thusly:
11609 # icc: Command line warning: ignoring option '-M'; no argument required
11610 # The diagnosis changed in icc 8.0:
11611 # icc: Command line remark: option '-MP' not supported
11612 if (grep 'ignoring option' conftest.err ||
11613 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11614 am_cv_CCAS_dependencies_compiler_type
=$depmode
11621 rm -rf conftest.dir
11623 am_cv_CCAS_dependencies_compiler_type
=none
11627 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11628 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11629 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11632 test "x$enable_dependency_tracking" != xno \
11633 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11634 am__fastdepCCAS_TRUE
=
11635 am__fastdepCCAS_FALSE
='#'
11637 am__fastdepCCAS_TRUE
='#'
11638 am__fastdepCCAS_FALSE
=
11644 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11645 $as_echo_n "checking zfs author... " >&6; }
11646 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11647 $as_echo "$ZFS_META_AUTHOR" >&6; }
11649 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11650 $as_echo_n "checking zfs license... " >&6; }
11651 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11652 $as_echo "$ZFS_META_LICENSE" >&6; }
11659 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11660 $as_echo_n "checking whether $RPM is available... " >&6; }
11661 if tmp
=$
($RPM --version 2>/dev
/null
); then
11663 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11665 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11666 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11671 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11672 $as_echo "$HAVE_RPM" >&6; }
11677 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11678 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11679 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11681 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11683 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11684 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11689 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11690 $as_echo "$HAVE_RPMBUILD" >&6; }
11705 DPKGBUILD
=dpkg-buildpackage
11707 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11708 $as_echo_n "checking whether $DPKG is available... " >&6; }
11709 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11711 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11713 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11714 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11719 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11720 $as_echo "$HAVE_DPKG" >&6; }
11725 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11726 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11727 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11729 DPKGBUILD_VERSION
=$
(echo $tmp | \
11730 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11732 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11733 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11738 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11739 $as_echo "$HAVE_DPKGBUILD" >&6; }
11755 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11756 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11757 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11759 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11761 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11762 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11767 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11768 $as_echo "$HAVE_ALIEN" >&6; }
11778 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11779 $as_echo_n "checking linux distribution... " >&6; }
11780 if test -f /etc
/redhat-release
; then
11782 elif test -f /etc
/fedora-release
; then
11784 elif test -f /etc
/lsb-release
; then
11786 elif test -f /etc
/debian_version
; then
11788 elif test -f /etc
/SuSE-release
; then
11790 elif test -f /etc
/slackware-version
; then
11792 elif test -f /etc
/gentoo-release
; then
11797 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11798 $as_echo "$VENDOR" >&6; }
11801 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11802 $as_echo_n "checking default package type... " >&6; }
11804 fedora
) DEFAULT_PACKAGE
=rpm
;;
11805 redhat
) DEFAULT_PACKAGE
=rpm
;;
11806 sles
) DEFAULT_PACKAGE
=rpm
;;
11807 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11808 debian
) DEFAULT_PACKAGE
=deb
;;
11809 slackware
) DEFAULT_PACKAGE
=tgz
;;
11810 *) DEFAULT_PACKAGE
=rpm
;;
11813 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11814 $as_echo "$DEFAULT_PACKAGE" >&6; }
11819 TARGET_ASM_DIR
=asm-generic
11824 # Check whether --with-config was given.
11825 if test "${with_config+set}" = set; then
11826 withval
=$with_config; ZFS_CONFIG
="$withval"
11830 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11831 $as_echo_n "checking zfs config... " >&6; }
11832 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11833 $as_echo "$ZFS_CONFIG" >&6; };
11836 case "$ZFS_CONFIG" in
11840 # Check whether --with-linux was given.
11841 if test "${with_linux+set}" = set; then
11842 withval
=$with_linux; kernelsrc
="$withval"
11847 # Check whether --with-linux-obj was given.
11848 if test "${with_linux_obj+set}" = set; then
11849 withval
=$with_linux_obj; kernelbuild
="$withval"
11853 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11854 $as_echo_n "checking kernel source directory... " >&6; }
11855 if test -z "$kernelsrc"; then
11856 headersdir
="/lib/modules/$(uname -r)/build"
11857 if test -e "$headersdir"; then
11858 sourcelink
=$
(readlink
-f "$headersdir")
11860 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
11862 2>/dev
/null |
grep -v obj |
tail -1)
11865 if test -n "$sourcelink" && test -e ${sourcelink}; then
11866 kernelsrc
=`readlink -f ${sourcelink}`
11868 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11869 $as_echo "Not found" >&6; }
11870 { { $as_echo "$as_me:$LINENO: error:
11871 *** Please make sure the kernel devel package for your distribution
11872 *** is installed then try again. If that fails you can specify the
11873 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11874 $as_echo "$as_me: error:
11875 *** Please make sure the kernel devel package for your distribution
11876 *** is installed then try again. If that fails you can specify the
11877 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11878 { (exit 1); exit 1; }; }
11881 if test "$kernelsrc" = "NONE"; then
11886 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11887 $as_echo "$kernelsrc" >&6; }
11888 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11889 $as_echo_n "checking kernel build directory... " >&6; }
11890 if test -z "$kernelbuild"; then
11891 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11892 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11893 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
11894 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
11895 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
11896 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
11898 kernelbuild
=${kernelsrc}
11901 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11902 $as_echo "$kernelbuild" >&6; }
11904 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11905 $as_echo_n "checking kernel source version... " >&6; }
11906 utsrelease1
=$kernelbuild/include
/linux
/version.h
11907 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
11908 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
11909 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
11910 utsrelease
=linux
/version.h
11911 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
11912 utsrelease
=linux
/utsrelease.h
11913 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
11914 utsrelease
=generated
/utsrelease.h
11917 if test "$utsrelease"; then
11918 kernsrcver
=`(echo "#include <$utsrelease>";
11919 echo "kernsrcver=UTS_RELEASE") |
11920 cpp -I $kernelbuild/include |
11921 grep "^kernsrcver=" | cut -d \" -f 2`
11923 if test -z "$kernsrcver"; then
11924 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11925 $as_echo "Not found" >&6; }
11926 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11927 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11928 { (exit 1); exit 1; }; }
11931 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11932 $as_echo "Not found" >&6; }
11933 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11934 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11935 { (exit 1); exit 1; }; }
11938 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11939 $as_echo "$kernsrcver" >&6; }
11942 LINUX_OBJ
=${kernelbuild}
11943 LINUX_VERSION
=${kernsrcver}
11950 modpost
=$LINUX/scripts
/Makefile.modpost
11951 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11952 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11953 if test -f "$modpost"; then
11954 if grep -q Modules.symvers
$modpost; then
11955 LINUX_SYMBOLS
=Modules.symvers
11957 LINUX_SYMBOLS
=Module.symvers
11962 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11963 $as_echo "$LINUX_SYMBOLS" >&6; }
11969 # Check whether --with-spl was given.
11970 if test "${with_spl+set}" = set; then
11971 withval
=$with_spl; splsrc
="$withval"
11976 # Check whether --with-spl-obj was given.
11977 if test "${with_spl_obj+set}" = set; then
11978 withval
=$with_spl_obj; splbuild
="$withval"
11983 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
11984 $as_echo_n "checking spl source directory... " >&6; }
11985 if test -z "$splsrc"; then
11986 sourcelink
=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
11987 2>/dev/null | tail -1`
11989 if test -z "$sourcelink" ||
test ! -e $sourcelink; then
11993 if test -e $sourcelink; then
11994 splsrc
=`readlink -f ${sourcelink}`
11996 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11997 $as_echo "Not found" >&6; }
11998 { { $as_echo "$as_me:$LINENO: error:
11999 *** Please make sure the spl devel package for your distribution
12000 *** is installed then try again. If that fails you can specify the
12001 *** location of the spl source with the '--with-spl=PATH' option." >&5
12002 $as_echo "$as_me: error:
12003 *** Please make sure the spl devel package for your distribution
12004 *** is installed then try again. If that fails you can specify the
12005 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12006 { (exit 1); exit 1; }; }
12009 if test "$splsrc" = "NONE"; then
12015 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12016 $as_echo "$splsrc" >&6; }
12017 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12018 $as_echo_n "checking spl build directory... " >&6; }
12019 if test -z "$splbuild"; then
12022 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12023 $as_echo "$splbuild" >&6; }
12025 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12026 $as_echo_n "checking spl source version... " >&6; }
12027 if test -r $splbuild/spl_config.h
&&
12028 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12030 splsrcver
=`(echo "#include <spl_config.h>";
12031 echo "splsrcver=SPL_META_VERSION") |
12033 grep "^splsrcver=" | cut -d \" -f 2`
12036 if test -z "$splsrcver"; then
12037 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12038 $as_echo "Not found" >&6; }
12039 { { $as_echo "$as_me:$LINENO: error:
12040 *** Cannot determine the version of the spl source.
12041 *** Please prepare the spl source before running this script" >&5
12042 $as_echo "$as_me: error:
12043 *** Cannot determine the version of the spl source.
12044 *** Please prepare the spl source before running this script" >&2;}
12045 { (exit 1); exit 1; }; }
12048 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12049 $as_echo "$splsrcver" >&6; }
12052 SPL_OBJ
=${splbuild}
12053 SPL_VERSION
=${splsrcver}
12060 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12061 $as_echo_n "checking spl file name for module symbols... " >&6; }
12062 if test -r $SPL_OBJ/Module.symvers
; then
12063 SPL_SYMBOLS
=Module.symvers
12064 elif test -r $SPL_OBJ/Modules.symvers
; then
12065 SPL_SYMBOLS
=Modules.symvers
12066 elif test -r $SPL_OBJ/module
/Module.symvers
; then
12067 SPL_SYMBOLS
=Module.symvers
12068 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
12069 SPL_SYMBOLS
=Modules.symvers
12071 SPL_SYMBOLS
=$LINUX_SYMBOLS
12074 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12075 $as_echo "$SPL_SYMBOLS" >&6; }
12081 if test "$ZFS_META_LICENSE" = CDDL
; then
12082 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12083 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12086 cat confdefs.h
- <<_ACEOF >conftest.c
12089 cat confdefs.h
>>conftest.
$ac_ext
12090 cat >>conftest.
$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12094 #ifndef AUTOCONF_INCLUDED
12095 #include <linux/config.h>
12102 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12103 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12113 rm -Rf build
&& mkdir
-p build
12114 echo "obj-m := conftest.o" >build
/Makefile
12115 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12127 { $as_echo "$as_me:$LINENO: result: yes" >&5
12128 $as_echo "yes" >&6; }
12129 { { $as_echo "$as_me:$LINENO: error:
12130 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12131 *** incompatible with the CDDL license. You must rebuild
12132 *** your kernel without this option." >&5
12133 $as_echo "$as_me: error:
12134 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12135 *** incompatible with the CDDL license. You must rebuild
12136 *** your kernel without this option." >&2;}
12137 { (exit 1); exit 1; }; }
12140 $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.
$ac_ext >&5
12143 { $as_echo "$as_me:$LINENO: result: no" >&5
12144 $as_echo "no" >&6; }
12157 if test "$ZFS_META_LICENSE" = GPL
; then
12159 cat >>confdefs.h
<<\_ACEOF
12160 #define HAVE_GPL_ONLY_SYMBOLS 1
12166 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12167 $as_echo_n "checking block device operation prototypes... " >&6; }
12170 cat confdefs.h
- <<_ACEOF >conftest.c
12173 cat confdefs.h
>>conftest.
$ac_ext
12174 cat >>conftest.
$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12178 #include <linux/blkdev.h>
12184 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12185 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12186 int (*blk_ioctl) (struct block_device *, fmode_t,
12187 unsigned, unsigned long) = NULL;
12188 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12189 unsigned, unsigned long) = NULL;
12190 struct block_device_operations blk_ops = {
12192 .release = blk_release,
12193 .ioctl = blk_ioctl,
12194 .compat_ioctl = blk_compat_ioctl,
12197 blk_ops.open(NULL, 0);
12198 blk_ops.release(NULL, 0);
12199 blk_ops.ioctl(NULL, 0, 0, 0);
12200 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12209 rm -Rf build
&& mkdir
-p build
12210 echo "obj-m := conftest.o" >build
/Makefile
12211 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12223 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12224 $as_echo "struct block_device" >&6; }
12226 cat >>confdefs.h
<<\_ACEOF
12227 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12232 $as_echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.
$ac_ext >&5
12235 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12236 $as_echo "struct inode" >&6; }
12246 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12247 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12250 cat confdefs.h
- <<_ACEOF >conftest.c
12253 cat confdefs.h
>>conftest.
$ac_ext
12254 cat >>conftest.
$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12258 #include <linux/types.h>
12273 rm -Rf build
&& mkdir
-p build
12274 echo "obj-m := conftest.o" >build
/Makefile
12275 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
12287 { $as_echo "$as_me:$LINENO: result: yes" >&5
12288 $as_echo "yes" >&6; }
12290 cat >>confdefs.h
<<\_ACEOF
12291 #define HAVE_FMODE_T 1
12296 $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.
$ac_ext >&5
12299 { $as_echo "$as_me:$LINENO: result: no" >&5
12300 $as_echo "no" >&6; }
12311 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12312 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12315 cat confdefs.h
- <<_ACEOF >conftest.c
12318 cat confdefs.h
>>conftest.
$ac_ext
12319 cat >>conftest.
$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12323 #include <linux/kobject.h>
12330 val = KOBJ_NAME_LEN;
12339 rm -Rf build
&& mkdir
-p build
12340 echo "obj-m := conftest.o" >build
/Makefile
12341 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12353 { $as_echo "$as_me:$LINENO: result: yes" >&5
12354 $as_echo "yes" >&6; }
12356 cat >>confdefs.h
<<\_ACEOF
12357 #define HAVE_KOBJ_NAME_LEN 1
12362 $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.
$ac_ext >&5
12365 { $as_echo "$as_me:$LINENO: result: no" >&5
12366 $as_echo "no" >&6; }
12377 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12378 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12379 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12380 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12382 if test $rc -ne 0; then
12384 for file in fs
/block_dev.c
; do
12385 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev
/null
12387 if test $rc -eq 0; then
12392 if test $export -eq 0; then
12393 { $as_echo "$as_me:$LINENO: result: no" >&5
12394 $as_echo "no" >&6; }
12397 { $as_echo "$as_me:$LINENO: result: yes" >&5
12398 $as_echo "yes" >&6; }
12400 cat >>confdefs.h
<<\_ACEOF
12401 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12406 { $as_echo "$as_me:$LINENO: result: yes" >&5
12407 $as_echo "yes" >&6; }
12409 cat >>confdefs.h
<<\_ACEOF
12410 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12417 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12418 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12421 cat confdefs.h
- <<_ACEOF >conftest.c
12424 cat confdefs.h
>>conftest.
$ac_ext
12425 cat >>conftest.
$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12429 #include <linux/buffer_head.h>
12435 struct block_device *bdev;
12436 invalidate_bdev(bdev);
12445 rm -Rf build
&& mkdir
-p build
12446 echo "obj-m := conftest.o" >build
/Makefile
12447 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12459 { $as_echo "$as_me:$LINENO: result: yes" >&5
12460 $as_echo "yes" >&6; }
12462 cat >>confdefs.h
<<\_ACEOF
12463 #define HAVE_1ARG_INVALIDATE_BDEV 1
12468 $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.
$ac_ext >&5
12471 { $as_echo "$as_me:$LINENO: result: no" >&5
12472 $as_echo "no" >&6; }
12483 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12484 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12487 cat confdefs.h
- <<_ACEOF >conftest.c
12490 cat confdefs.h
>>conftest.
$ac_ext
12491 cat >>conftest.
$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12495 #include <linux/blkdev.h>
12501 struct block_device *bdev = NULL;
12502 bdev_logical_block_size(bdev);
12511 rm -Rf build
&& mkdir
-p build
12512 echo "obj-m := conftest.o" >build
/Makefile
12513 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12525 { $as_echo "$as_me:$LINENO: result: yes" >&5
12526 $as_echo "yes" >&6; }
12528 cat >>confdefs.h
<<\_ACEOF
12529 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12534 $as_echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.
$ac_ext >&5
12537 { $as_echo "$as_me:$LINENO: result: no" >&5
12538 $as_echo "no" >&6; }
12549 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12550 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12551 EXTRA_KCFLAGS
="-Werror"
12554 cat confdefs.h
- <<_ACEOF >conftest.c
12557 cat confdefs.h
>>conftest.
$ac_ext
12558 cat >>conftest.
$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12562 #include <linux/bio.h>
12569 (void)bio_empty_barrier(&bio);
12578 rm -Rf build
&& mkdir
-p build
12579 echo "obj-m := conftest.o" >build
/Makefile
12580 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12592 { $as_echo "$as_me:$LINENO: result: yes" >&5
12593 $as_echo "yes" >&6; }
12595 cat >>confdefs.h
<<\_ACEOF
12596 #define HAVE_BIO_EMPTY_BARRIER 1
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.
$ac_ext >&5
12604 { $as_echo "$as_me:$LINENO: result: no" >&5
12605 $as_echo "no" >&6; }
12616 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
12617 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12620 cat confdefs.h
- <<_ACEOF >conftest.c
12623 cat confdefs.h
>>conftest.
$ac_ext
12624 cat >>conftest.
$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12628 #include <linux/bio.h>
12635 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12636 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12637 (1 << BIO_RW_FAILFAST_DRIVER));
12646 rm -Rf build
&& mkdir
-p build
12647 echo "obj-m := conftest.o" >build
/Makefile
12648 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12660 { $as_echo "$as_me:$LINENO: result: yes" >&5
12661 $as_echo "yes" >&6; }
12663 cat >>confdefs.h
<<\_ACEOF
12664 #define HAVE_BIO_RW_FAILFAST 1
12669 $as_echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.
$ac_ext >&5
12672 { $as_echo "$as_me:$LINENO: result: no" >&5
12673 $as_echo "no" >&6; }
12684 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12685 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12686 tmp_flags
="$EXTRA_KCFLAGS"
12687 EXTRA_KCFLAGS
="-Werror"
12690 cat confdefs.h
- <<_ACEOF >conftest.c
12693 cat confdefs.h
>>conftest.
$ac_ext
12694 cat >>conftest.
$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12698 #include <linux/bio.h>
12704 void (*wanted_end_io)(struct bio *, int) = NULL;
12705 bio_end_io_t *local_end_io;
12707 local_end_io = wanted_end_io;
12716 rm -Rf build
&& mkdir
-p build
12717 echo "obj-m := conftest.o" >build
/Makefile
12718 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12730 { $as_echo "$as_me:$LINENO: result: yes" >&5
12731 $as_echo "yes" >&6; }
12733 cat >>confdefs.h
<<\_ACEOF
12734 #define HAVE_2ARGS_BIO_END_IO_T 1
12739 $as_echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.
$ac_ext >&5
12742 { $as_echo "$as_me:$LINENO: result: no" >&5
12743 $as_echo "no" >&6; }
12752 EXTRA_KCFLAGS
="$tmp_flags"
12755 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
12756 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
12759 cat confdefs.h
- <<_ACEOF >conftest.c
12762 cat confdefs.h
>>conftest.
$ac_ext
12763 cat >>conftest.
$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12767 #include <linux/bio.h>
12774 flags = BIO_RW_SYNCIO;
12783 rm -Rf build
&& mkdir
-p build
12784 echo "obj-m := conftest.o" >build
/Makefile
12785 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12797 { $as_echo "$as_me:$LINENO: result: yes" >&5
12798 $as_echo "yes" >&6; }
12800 cat >>confdefs.h
<<\_ACEOF
12801 #define HAVE_BIO_RW_SYNCIO 1
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.
$ac_ext >&5
12809 { $as_echo "$as_me:$LINENO: result: no" >&5
12810 $as_echo "no" >&6; }
12821 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
12822 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
12825 cat confdefs.h
- <<_ACEOF >conftest.c
12828 cat confdefs.h
>>conftest.
$ac_ext
12829 cat >>conftest.
$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12833 #include <linux/blkdev.h>
12839 struct request *req = NULL;
12840 (void) blk_end_request(req, 0, 0);
12849 rm -Rf build
&& mkdir
-p build
12850 echo "obj-m := conftest.o" >build
/Makefile
12851 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12863 { $as_echo "$as_me:$LINENO: result: yes" >&5
12864 $as_echo "yes" >&6; }
12866 cat >>confdefs.h
<<\_ACEOF
12867 #define HAVE_BLK_END_REQUEST 1
12872 $as_echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.
$ac_ext >&5
12875 { $as_echo "$as_me:$LINENO: result: no" >&5
12876 $as_echo "no" >&6; }
12886 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
12887 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
12890 cat confdefs.h
- <<_ACEOF >conftest.c
12893 cat confdefs.h
>>conftest.
$ac_ext
12894 cat >>conftest.
$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12898 #include <linux/module.h>
12899 #include <linux/blkdev.h>
12901 MODULE_LICENSE("CDDL");
12907 struct request *req = NULL;
12908 (void) blk_end_request(req, 0, 0);
12917 rm -Rf build
&& mkdir
-p build
12918 echo "obj-m := conftest.o" >build
/Makefile
12919 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12931 { $as_echo "$as_me:$LINENO: result: no" >&5
12932 $as_echo "no" >&6; }
12935 $as_echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.
$ac_ext >&5
12938 { $as_echo "$as_me:$LINENO: result: yes" >&5
12939 $as_echo "yes" >&6; }
12941 cat >>confdefs.h
<<\_ACEOF
12942 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
12955 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
12956 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
12959 cat confdefs.h
- <<_ACEOF >conftest.c
12962 cat confdefs.h
>>conftest.
$ac_ext
12963 cat >>conftest.
$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12967 #include <linux/blkdev.h>
12973 struct request_queue *q = NULL;
12974 (void) blk_fetch_request(q);
12983 rm -Rf build
&& mkdir
-p build
12984 echo "obj-m := conftest.o" >build
/Makefile
12985 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12997 { $as_echo "$as_me:$LINENO: result: yes" >&5
12998 $as_echo "yes" >&6; }
13000 cat >>confdefs.h
<<\_ACEOF
13001 #define HAVE_BLK_FETCH_REQUEST 1
13006 $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.
$ac_ext >&5
13009 { $as_echo "$as_me:$LINENO: result: no" >&5
13010 $as_echo "no" >&6; }
13021 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13022 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13025 cat confdefs.h
- <<_ACEOF >conftest.c
13028 cat confdefs.h
>>conftest.
$ac_ext
13029 cat >>conftest.
$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13033 #include <linux/blkdev.h>
13039 struct request_queue *q = NULL;
13040 struct request *req = NULL;
13041 blk_requeue_request(q, req);
13050 rm -Rf build
&& mkdir
-p build
13051 echo "obj-m := conftest.o" >build
/Makefile
13052 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13064 { $as_echo "$as_me:$LINENO: result: yes" >&5
13065 $as_echo "yes" >&6; }
13067 cat >>confdefs.h
<<\_ACEOF
13068 #define HAVE_BLK_REQUEUE_REQUEST 1
13073 $as_echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.
$ac_ext >&5
13076 { $as_echo "$as_me:$LINENO: result: no" >&5
13077 $as_echo "no" >&6; }
13088 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13089 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13092 cat confdefs.h
- <<_ACEOF >conftest.c
13095 cat confdefs.h
>>conftest.
$ac_ext
13096 cat >>conftest.
$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13100 #include <linux/blkdev.h>
13106 struct request *req = NULL;
13107 (void) blk_rq_bytes(req);
13116 rm -Rf build
&& mkdir
-p build
13117 echo "obj-m := conftest.o" >build
/Makefile
13118 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13130 { $as_echo "$as_me:$LINENO: result: yes" >&5
13131 $as_echo "yes" >&6; }
13133 cat >>confdefs.h
<<\_ACEOF
13134 #define HAVE_BLK_RQ_BYTES 1
13139 $as_echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.
$ac_ext >&5
13142 { $as_echo "$as_me:$LINENO: result: no" >&5
13143 $as_echo "no" >&6; }
13153 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13154 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13157 cat confdefs.h
- <<_ACEOF >conftest.c
13160 cat confdefs.h
>>conftest.
$ac_ext
13161 cat >>conftest.
$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13165 #include <linux/module.h>
13166 #include <linux/blkdev.h>
13168 MODULE_LICENSE("CDDL");
13174 struct request *req = NULL;
13175 (void) blk_rq_bytes(req);
13184 rm -Rf build
&& mkdir
-p build
13185 echo "obj-m := conftest.o" >build
/Makefile
13186 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
13198 { $as_echo "$as_me:$LINENO: result: no" >&5
13199 $as_echo "no" >&6; }
13202 $as_echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.
$ac_ext >&5
13205 { $as_echo "$as_me:$LINENO: result: yes" >&5
13206 $as_echo "yes" >&6; }
13208 cat >>confdefs.h
<<\_ACEOF
13209 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13222 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13223 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13226 cat confdefs.h
- <<_ACEOF >conftest.c
13229 cat confdefs.h
>>conftest.
$ac_ext
13230 cat >>conftest.
$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13234 #include <linux/blkdev.h>
13240 struct request *req = NULL;
13241 (void) blk_rq_pos(req);
13250 rm -Rf build
&& mkdir
-p build
13251 echo "obj-m := conftest.o" >build
/Makefile
13252 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13264 { $as_echo "$as_me:$LINENO: result: yes" >&5
13265 $as_echo "yes" >&6; }
13267 cat >>confdefs.h
<<\_ACEOF
13268 #define HAVE_BLK_RQ_POS 1
13273 $as_echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.
$ac_ext >&5
13276 { $as_echo "$as_me:$LINENO: result: no" >&5
13277 $as_echo "no" >&6; }
13288 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13289 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13292 cat confdefs.h
- <<_ACEOF >conftest.c
13295 cat confdefs.h
>>conftest.
$ac_ext
13296 cat >>conftest.
$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13300 #include <linux/blkdev.h>
13306 struct request *req = NULL;
13307 (void) blk_rq_sectors(req);
13316 rm -Rf build
&& mkdir
-p build
13317 echo "obj-m := conftest.o" >build
/Makefile
13318 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13330 { $as_echo "$as_me:$LINENO: result: yes" >&5
13331 $as_echo "yes" >&6; }
13333 cat >>confdefs.h
<<\_ACEOF
13334 #define HAVE_BLK_RQ_SECTORS 1
13339 $as_echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.
$ac_ext >&5
13342 { $as_echo "$as_me:$LINENO: result: no" >&5
13343 $as_echo "no" >&6; }
13354 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13355 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13358 cat confdefs.h
- <<_ACEOF >conftest.c
13361 cat confdefs.h
>>conftest.
$ac_ext
13362 cat >>conftest.
$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13366 #include <linux/blkdev.h>
13372 struct gendisk *disk = NULL;
13373 (void) get_disk_ro(disk);
13382 rm -Rf build
&& mkdir
-p build
13383 echo "obj-m := conftest.o" >build
/Makefile
13384 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13396 { $as_echo "$as_me:$LINENO: result: yes" >&5
13397 $as_echo "yes" >&6; }
13399 cat >>confdefs.h
<<\_ACEOF
13400 #define HAVE_GET_DISK_RO 1
13405 $as_echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.
$ac_ext >&5
13408 { $as_echo "$as_me:$LINENO: result: no" >&5
13409 $as_echo "no" >&6; }
13420 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13421 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13424 cat confdefs.h
- <<_ACEOF >conftest.c
13427 cat confdefs.h
>>conftest.
$ac_ext
13428 cat >>conftest.
$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13432 #include <linux/blkdev.h>
13438 struct request *req = NULL;
13439 (void) rq_is_sync(req);
13448 rm -Rf build
&& mkdir
-p build
13449 echo "obj-m := conftest.o" >build
/Makefile
13450 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13462 { $as_echo "$as_me:$LINENO: result: yes" >&5
13463 $as_echo "yes" >&6; }
13465 cat >>confdefs.h
<<\_ACEOF
13466 #define HAVE_RQ_IS_SYNC 1
13471 $as_echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.
$ac_ext >&5
13474 { $as_echo "$as_me:$LINENO: result: no" >&5
13475 $as_echo "no" >&6; }
13486 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13487 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13490 cat confdefs.h
- <<_ACEOF >conftest.c
13493 cat confdefs.h
>>conftest.
$ac_ext
13494 cat >>conftest.
$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13498 #include <linux/blkdev.h>
13504 struct bio_vec *bv;
13505 struct req_iterator iter;
13506 struct request *req = NULL;
13507 rq_for_each_segment(bv, req, iter) { }
13516 rm -Rf build
&& mkdir
-p build
13517 echo "obj-m := conftest.o" >build
/Makefile
13518 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13530 { $as_echo "$as_me:$LINENO: result: yes" >&5
13531 $as_echo "yes" >&6; }
13533 cat >>confdefs.h
<<\_ACEOF
13534 #define HAVE_RQ_FOR_EACH_SEGMENT 1
13539 $as_echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.
$ac_ext >&5
13542 { $as_echo "$as_me:$LINENO: result: no" >&5
13543 $as_echo "no" >&6; }
13554 if test "$LINUX_OBJ" != "$LINUX"; then
13555 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
13560 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
13561 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
13567 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
13568 $as_echo_n "checking for target asm dir... " >&6; }
13569 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13571 case $TARGET_ARCH in
13573 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13576 TARGET_ASM_DIR
=asm-generic
13581 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13582 $as_echo "$TARGET_ASM_DIR" >&6; }
13585 { $as_echo "$as_me:$LINENO: checking for sa_init in -lshare" >&5
13586 $as_echo_n "checking for sa_init in -lshare... " >&6; }
13587 if test "${ac_cv_lib_share_sa_init+set}" = set; then
13588 $as_echo_n "(cached) " >&6
13590 ac_check_lib_save_LIBS
=$LIBS
13591 LIBS
="-lshare $LIBS"
13592 cat >conftest.
$ac_ext <<_ACEOF
13595 cat confdefs.h
>>conftest.
$ac_ext
13596 cat >>conftest.
$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13614 rm -f conftest.
$ac_objext conftest
$ac_exeext
13615 if { (ac_try
="$ac_link"
13616 case "(($ac_try" in
13617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13621 $as_echo "$ac_try_echo") >&5
13622 (eval "$ac_link") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1 >conftest.err
13626 cat conftest.err >&5
13627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } && {
13629 test -z "$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13631 } && test -s conftest$ac_exeext && {
13632 test "$cross_compiling" = yes ||
13633 $as_test_x conftest$ac_exeext
13635 ac_cv_lib_share_sa_init=yes
13637 $as_echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13640 ac_cv_lib_share_sa_init=no
13643 rm -rf conftest.dSYM
13644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13645 conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_check_lib_save_LIBS
13648 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_share_sa_init" >&5
13649 $as_echo "$ac_cv_lib_share_sa_init" >&6; }
13650 if test "x$ac_cv_lib_share_sa_init" = x""yes; then
13652 cat >>confdefs.h <<\_ACEOF
13653 #define HAVE_LIBSHARE 1
13660 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
13661 $as_echo_n "checking for ioctl()... " >&6; }
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 #include <unistd.h>
13671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672 $EGREP "ioctl" >/dev/null 2>&1; then
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 #include <sys/ioctl.h>
13688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "ioctl" >/dev/null 2>&1; then
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 #include <stropts.h>
13705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13706 $EGREP "ioctl" >/dev/null 2>&1; then
13714 if test $is_unistd = yes; then
13717 cat >>confdefs.h <<\_ACEOF
13718 #define HAVE_IOCTL_IN_UNISTD_H 1
13723 if test $is_sys_ioctl = yes; then
13726 cat >>confdefs.h <<\_ACEOF
13727 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
13730 elif test $is_stropts = yes; then
13732 cat >>confdefs.h <<\_ACEOF
13733 #define HAVE_IOCTL_IN_STROPTS_H 1
13741 if test $result = no; then
13742 { $as_echo "$as_me:$LINENO: result: no" >&5
13743 $as_echo "no" >&6; }
13744 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
13745 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
13746 { (exit 1); exit 1; }; }
13748 { $as_echo "$as_me:$LINENO: result: yes" >&5
13749 $as_echo "yes" >&6; }
13755 if test "${ac_cv_header_zlib_h+set}" = set; then
13756 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
13757 $as_echo_n "checking for zlib.h... " >&6; }
13758 if test "${ac_cv_header_zlib_h+set}" = set; then
13759 $as_echo_n "(cached) " >&6
13761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13762 $as_echo "$ac_cv_header_zlib_h" >&6; }
13764 # Is the header compilable?
13765 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
13766 $as_echo_n "checking zlib.h usability... " >&6; }
13767 cat >conftest.$ac_ext <<_ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13773 $ac_includes_default
13776 rm -f conftest.$ac_objext
13777 if { (ac_try="$ac_compile"
13778 case "(($ac_try" in
13779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13780 *) ac_try_echo
=$ac_try;;
13782 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13783 $as_echo "$ac_try_echo") >&5
13784 (eval "$ac_compile") 2>conftest.er1
13786 grep -v '^ *+' conftest.er1
>conftest.err
13788 cat conftest.err
>&5
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && {
13791 test -z "$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13793 } && test -s conftest.
$ac_objext; then
13794 ac_header_compiler
=yes
13796 $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.
$ac_ext >&5
13799 ac_header_compiler
=no
13802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13804 $as_echo "$ac_header_compiler" >&6; }
13806 # Is the header present?
13807 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
13808 $as_echo_n "checking zlib.h presence... " >&6; }
13809 cat >conftest.
$ac_ext <<_ACEOF
13812 cat confdefs.h
>>conftest.
$ac_ext
13813 cat >>conftest.
$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13817 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13818 case "(($ac_try" in
13819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13823 $as_echo "$ac_try_echo") >&5
13824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13826 grep -v '^ *+' conftest.er1 >conftest.err
13828 cat conftest.err >&5
13829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } >/dev/null && {
13831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13834 ac_header_preproc=yes
13836 $as_echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_header_preproc=no
13842 rm -f conftest.err conftest.$ac_ext
13843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13844 $as_echo "$ac_header_preproc" >&6; }
13846 # So? What about this header?
13847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13849 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13850 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13851 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13852 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13853 ac_header_preproc=yes
13856 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13857 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13858 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13859 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13860 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13861 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13862 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13863 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13864 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13865 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13866 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13867 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13871 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
13872 $as_echo_n "checking for zlib.h... " >&6; }
13873 if test "${ac_cv_header_zlib_h+set}" = set; then
13874 $as_echo_n "(cached) " >&6
13876 ac_cv_header_zlib_h=$ac_header_preproc
13878 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13879 $as_echo "$ac_cv_header_zlib_h" >&6; }
13882 if test "x$ac_cv_header_zlib_h" = x""yes; then
13885 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13887 { { $as_echo "$as_me:$LINENO: error
:
13888 *** zlib.h missing
, zlib-devel package required
13889 See \
`config.log' for more details." >&5
13890 $as_echo "$as_me: error:
13891 *** zlib.h missing, zlib-devel package required
13892 See \`config.log
' for more details." >&2;}
13893 { (exit 1); exit 1; }; }; }
13899 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13900 $as_echo_n "checking for compress2 in -lz... " >&6; }
13901 if test "${ac_cv_lib_z_compress2+set}" = set; then
13902 $as_echo_n "(cached) " >&6
13904 ac_check_lib_save_LIBS=$LIBS
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13923 return compress2 ();
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13935 $as_echo "$ac_try_echo") >&5
13936 (eval "$ac_link") 2>conftest.er1
13938 grep -v '^
*+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } && {
13943 test -z "$ac_c_werror_flag" ||
13944 test ! -s conftest.err
13945 } && test -s conftest$ac_exeext && {
13946 test "$cross_compiling" = yes ||
13947 $as_test_x conftest$ac_exeext
13949 ac_cv_lib_z_compress2=yes
13951 $as_echo "$as_me: failed program was:" >&5
13952 sed 's
/^
/|
/' conftest.$ac_ext >&5
13954 ac_cv_lib_z_compress2=no
13957 rm -rf conftest.dSYM
13958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13959 conftest$ac_exeext conftest.$ac_ext
13960 LIBS=$ac_check_lib_save_LIBS
13962 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13963 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13964 if test "x$ac_cv_lib_z_compress2" = x""yes; then
13965 cat >>confdefs.h <<_ACEOF
13966 #define HAVE_LIBZ 1
13972 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13973 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
13974 { { $as_echo "$as_me:$LINENO: error:
13975 *** compress2() missing, zlib-devel package required
13976 See \`config.log
' for more details." >&5
13977 $as_echo "$as_me: error:
13978 *** compress2() missing, zlib-devel package required
13979 See \`config.log' for more details.
" >&2;}
13980 { (exit 1); exit 1; }; }; }
13985 { $as_echo "$as_me:$LINENO: checking
for uncompress in -lz" >&5
13986 $as_echo_n "checking
for uncompress in -lz...
" >&6; }
13987 if test "${ac_cv_lib_z_uncompress+set}" = set; then
13988 $as_echo_n "(cached
) " >&6
13990 ac_check_lib_save_LIBS=$LIBS
13992 cat >conftest.$ac_ext <<_ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14005 char uncompress ();
14009 return uncompress ();
14014 rm -f conftest.$ac_objext conftest$ac_exeext
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14020 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14021 $as_echo "$ac_try_echo") >&5
14022 (eval "$ac_link") 2>conftest.er1
14024 grep -v '^ *+' conftest.er1 >conftest.err
14026 cat conftest.err >&5
14027 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14028 (exit $ac_status); } && {
14029 test -z "$ac_c_werror_flag" ||
14030 test ! -s conftest.err
14031 } && test -s conftest$ac_exeext && {
14032 test "$cross_compiling" = yes ||
14033 $as_test_x conftest$ac_exeext
14035 ac_cv_lib_z_uncompress=yes
14037 $as_echo "$as_me: failed program was
:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 ac_cv_lib_z_uncompress=no
14043 rm -rf conftest.dSYM
14044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14045 conftest$ac_exeext conftest.$ac_ext
14046 LIBS=$ac_check_lib_save_LIBS
14048 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_uncompress" >&5
14049 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
14050 if test "x
$ac_cv_lib_z_uncompress" = x""yes; then
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_LIBZ 1
14058 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
14059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14060 { { $as_echo "$as_me:$LINENO: error:
14061 *** uncompress() missing, zlib-devel package required
14062 See \`config.log' for more details.
" >&5
14063 $as_echo "$as_me: error
:
14064 *** uncompress() missing
, zlib-devel package required
14065 See \
`config.log' for more details." >&2;}
14066 { (exit 1); exit 1; }; }; }
14071 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
14072 $as_echo_n "checking for crc32 in -lz... " >&6; }
14073 if test "${ac_cv_lib_z_crc32+set}" = set; then
14074 $as_echo_n "(cached) " >&6
14076 ac_check_lib_save_LIBS=$LIBS
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14104 *) ac_try_echo
=$ac_try;;
14106 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14107 $as_echo "$ac_try_echo") >&5
14108 (eval "$ac_link") 2>conftest.er1
14110 grep -v '^ *+' conftest.er1
>conftest.err
14112 cat conftest.err
>&5
14113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest
$ac_exeext && {
14118 test "$cross_compiling" = yes ||
14119 $as_test_x conftest
$ac_exeext
14121 ac_cv_lib_z_crc32
=yes
14123 $as_echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.
$ac_ext >&5
14126 ac_cv_lib_z_crc32
=no
14129 rm -rf conftest.dSYM
14130 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14131 conftest
$ac_exeext conftest.
$ac_ext
14132 LIBS
=$ac_check_lib_save_LIBS
14134 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
14135 $as_echo "$ac_cv_lib_z_crc32" >&6; }
14136 if test "x$ac_cv_lib_z_crc32" = x
""yes; then
14137 cat >>confdefs.h
<<_ACEOF
14138 #define HAVE_LIBZ 1
14144 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14146 { { $as_echo "$as_me:$LINENO: error:
14147 *** crc32() missing, zlib-devel package required
14148 See \`config.log' for more details." >&5
14149 $as_echo "$as_me: error:
14150 *** crc32() missing, zlib-devel package required
14151 See \`config.log' for more details." >&2;}
14152 { (exit 1); exit 1; }; }; }
14159 cat >>confdefs.h
<<\_ACEOF
14160 #define HAVE_ZLIB 1
14167 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14168 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14169 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14170 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14171 $as_echo_n "(cached) " >&6
14173 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14174 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14176 # Is the header compilable?
14177 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14178 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
14179 cat >conftest.
$ac_ext <<_ACEOF
14182 cat confdefs.h
>>conftest.
$ac_ext
14183 cat >>conftest.
$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14185 $ac_includes_default
14186 #include <uuid/uuid.h>
14188 rm -f conftest.
$ac_objext
14189 if { (ac_try
="$ac_compile"
14190 case "(($ac_try" in
14191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14195 $as_echo "$ac_try_echo") >&5
14196 (eval "$ac_compile") 2>conftest.er1
14198 grep -v '^ *+' conftest.er1 >conftest.err
14200 cat conftest.err >&5
14201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && {
14203 test -z "$ac_c_werror_flag" ||
14204 test ! -s conftest.err
14205 } && test -s conftest.$ac_objext; then
14206 ac_header_compiler=yes
14208 $as_echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ac_header_compiler=no
14214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14216 $as_echo "$ac_header_compiler" >&6; }
14218 # Is the header present?
14219 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
14220 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
14221 cat >conftest.$ac_ext <<_ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 #include <uuid/uuid.h>
14229 if { (ac_try="$ac_cpp conftest.$ac_ext"
14230 case "(($ac_try" in
14231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14232 *) ac_try_echo
=$ac_try;;
14234 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14235 $as_echo "$ac_try_echo") >&5
14236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14238 grep -v '^ *+' conftest.er1
>conftest.err
14240 cat conftest.err
>&5
14241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } >/dev
/null
&& {
14243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14244 test ! -s conftest.err
14246 ac_header_preproc
=yes
14248 $as_echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.
$ac_ext >&5
14251 ac_header_preproc
=no
14254 rm -f conftest.err conftest.
$ac_ext
14255 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14256 $as_echo "$ac_header_preproc" >&6; }
14258 # So? What about this header?
14259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14261 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
14262 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14263 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
14264 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
14265 ac_header_preproc
=yes
14268 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
14269 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
14270 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
14271 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
14272 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
14273 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
14274 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
14275 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
14276 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
14277 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
14278 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
14279 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
14283 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14284 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14285 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14286 $as_echo_n "(cached) " >&6
14288 ac_cv_header_uuid_uuid_h
=$ac_header_preproc
14290 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14291 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14294 if test "x$ac_cv_header_uuid_uuid_h" = x
""yes; then
14297 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14299 { { $as_echo "$as_me:$LINENO: error:
14300 *** uuid/uuid.h missing, libuuid-devel package required
14301 See \`config.log' for more details." >&5
14302 $as_echo "$as_me: error:
14303 *** uuid/uuid.h missing, libuuid-devel package required
14304 See \`config.log' for more details." >&2;}
14305 { (exit 1); exit 1; }; }; }
14311 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
14312 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
14313 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
14314 $as_echo_n "(cached) " >&6
14316 ac_check_lib_save_LIBS
=$LIBS
14317 LIBS
="-luuid $LIBS"
14318 cat >conftest.
$ac_ext <<_ACEOF
14321 cat confdefs.h
>>conftest.
$ac_ext
14322 cat >>conftest.
$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14325 /* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14331 char uuid_generate ();
14335 return uuid_generate ();
14340 rm -f conftest.
$ac_objext conftest
$ac_exeext
14341 if { (ac_try
="$ac_link"
14342 case "(($ac_try" in
14343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14347 $as_echo "$ac_try_echo") >&5
14348 (eval "$ac_link") 2>conftest.er1
14350 grep -v '^ *+' conftest.er1 >conftest.err
14352 cat conftest.err >&5
14353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } && {
14355 test -z "$ac_c_werror_flag" ||
14356 test ! -s conftest.err
14357 } && test -s conftest$ac_exeext && {
14358 test "$cross_compiling" = yes ||
14359 $as_test_x conftest$ac_exeext
14361 ac_cv_lib_uuid_uuid_generate=yes
14363 $as_echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 ac_cv_lib_uuid_uuid_generate=no
14369 rm -rf conftest.dSYM
14370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14371 conftest$ac_exeext conftest.$ac_ext
14372 LIBS=$ac_check_lib_save_LIBS
14374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
14375 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
14376 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
14377 cat >>confdefs.h <<_ACEOF
14378 #define HAVE_LIBUUID 1
14381 LIBS="-luuid $LIBS"
14384 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14386 { { $as_echo "$as_me:$LINENO: error
:
14387 *** uuid_generate
() missing
, libuuid-devel package required
14388 See \
`config.log' for more details." >&5
14389 $as_echo "$as_me: error:
14390 *** uuid_generate() missing, libuuid-devel package required
14391 See \`config.log
' for more details." >&2;}
14392 { (exit 1); exit 1; }; }; }
14397 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
14398 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
14399 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
14400 $as_echo_n "(cached) " >&6
14402 ac_check_lib_save_LIBS=$LIBS
14403 LIBS="-luuid $LIBS"
14404 cat >conftest.$ac_ext <<_ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14411 /* Override any GCC internal prototype to avoid an error.
14412 Use char because int might match the return type of a GCC
14413 builtin and then its argument prototype would still apply. */
14417 char uuid_is_null ();
14421 return uuid_is_null ();
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (ac_try="$ac_link"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14433 $as_echo "$ac_try_echo") >&5
14434 (eval "$ac_link") 2>conftest.er1
14436 grep -v '^
*+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && {
14441 test -z "$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest$ac_exeext && {
14444 test "$cross_compiling" = yes ||
14445 $as_test_x conftest$ac_exeext
14447 ac_cv_lib_uuid_uuid_is_null=yes
14449 $as_echo "$as_me: failed program was:" >&5
14450 sed 's
/^
/|
/' conftest.$ac_ext >&5
14452 ac_cv_lib_uuid_uuid_is_null=no
14455 rm -rf conftest.dSYM
14456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14457 conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS
14460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
14461 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
14462 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
14463 cat >>confdefs.h <<_ACEOF
14464 #define HAVE_LIBUUID 1
14467 LIBS="-luuid $LIBS"
14470 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14471 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
14472 { { $as_echo "$as_me:$LINENO: error:
14473 *** uuid_is_null() missing, libuuid-devel package required
14474 See \`config.log
' for more details." >&5
14475 $as_echo "$as_me: error:
14476 *** uuid_is_null() missing, libuuid-devel package required
14477 See \`config.log' for more details.
" >&2;}
14478 { (exit 1); exit 1; }; }; }
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_LIBUUID 1
14492 # Check whether --with-blkid was given.
14493 if test "${with_blkid+set}" = set; then
14494 withval=$with_blkid;
14501 if test "x
$with_blkid" != xno; then
14503 { $as_echo "$as_me:$LINENO: checking
for blkid_get_cache
in -lblkid" >&5
14504 $as_echo_n "checking
for blkid_get_cache
in -lblkid...
" >&6; }
14505 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
14506 $as_echo_n "(cached
) " >&6
14508 ac_check_lib_save_LIBS=$LIBS
14509 LIBS="-lblkid $LIBS"
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14523 char blkid_get_cache ();
14527 return blkid_get_cache ();
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14539 $as_echo "$ac_try_echo") >&5
14540 (eval "$ac_link") 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest$ac_exeext && {
14550 test "$cross_compiling" = yes ||
14551 $as_test_x conftest$ac_exeext
14553 ac_cv_lib_blkid_blkid_get_cache=yes
14555 $as_echo "$as_me: failed program was
:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_cv_lib_blkid_blkid_get_cache=no
14561 rm -rf conftest.dSYM
14562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14563 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14566 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_blkid_blkid_get_cache" >&5
14567 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
14568 if test "x
$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
14570 { $as_echo "$as_me:$LINENO: checking
for blkid zfs support
" >&5
14571 $as_echo_n "checking
for blkid zfs support...
" >&6; }
14574 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
14575 >/dev/null 2>/dev/null
14576 echo -en "\x0c\xb1\xba\
0\
0\
0\
0\
0" | \
14577 dd of=$ZFS_DEV bs=1k count=8 \
14578 seek=132 conv=notrunc &>/dev/null \
14579 >/dev/null 2>/dev/null
14581 saved_LDFLAGS="$LDFLAGS"
14584 if test "$cross_compiling" = yes; then
14585 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
14586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14587 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14588 See \`config.log' for more details.
" >&5
14589 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
14590 See \
`config.log' for more details." >&2;}
14591 { (exit 1); exit 1; }; }; }
14593 cat >conftest.$ac_ext <<_ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14601 #include <blkid/blkid.h>
14610 if (blkid_get_cache(&cache, NULL) < 0)
14613 value = blkid_get_tag_value(cache, "TYPE",
14616 blkid_put_cache(cache);
14620 if (strcmp(value, "zfs")) {
14622 blkid_put_cache(cache);
14627 blkid_put_cache(cache);
14633 rm -f conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14637 *) ac_try_echo
=$ac_try;;
14639 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14640 $as_echo "$ac_try_echo") >&5
14641 (eval "$ac_link") 2>&5
14643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14645 { (case "(($ac_try" in
14646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14650 $as_echo "$ac_try_echo") >&5
14651 (eval "$ac_try") 2>&5
14653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14657 { $as_echo "$as_me:$LINENO: result: yes" >&5
14658 $as_echo "yes" >&6; }
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_LIBBLKID 1
14668 $as_echo "$as_me: program exited with status $ac_status" >&5
14669 $as_echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ( exit $ac_status )
14675 { $as_echo "$as_me:$LINENO: result: no" >&5
14676 $as_echo "no" >&6; }
14677 if test "x$with_blkid" != xcheck; then
14678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14680 { { $as_echo "$as_me:$LINENO: error
: --with-blkid given but unavailable
14681 See \
`config.log' for more details." >&5
14682 $as_echo "$as_me: error: --with-blkid given but unavailable
14683 See \`config.log
' for more details." >&2;}
14684 { (exit 1); exit 1; }; }; }
14689 rm -rf conftest.dSYM
14690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14695 LDFLAGS="$saved_LDFLAGS"
14699 if test "x$with_blkid" != xcheck; then
14700 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14701 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
14702 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
14703 See \`config.log
' for more details." >&5
14704 $as_echo "$as_me: error: --with-blkid given but unavailable
14705 See \`config.log' for more details.
" >&2;}
14706 { (exit 1); exit 1; }; }; }
14718 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
14719 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
14721 saved_flags="$CFLAGS"
14722 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
14724 if test "$cross_compiling" = yes; then
14725 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
14726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14727 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14728 See \`config.log' for more details.
" >&5
14729 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
14730 See \
`config.log' for more details." >&2;}
14731 { (exit 1); exit 1; }; }; }
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14748 rm -f conftest$ac_exeext
14749 if { (ac_try="$ac_link"
14750 case "(($ac_try" in
14751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14752 *) ac_try_echo
=$ac_try;;
14754 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14755 $as_echo "$ac_try_echo") >&5
14756 (eval "$ac_link") 2>&5
14758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14760 { (case "(($ac_try" in
14761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14765 $as_echo "$ac_try_echo") >&5
14766 (eval "$ac_try") 2>&5
14768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14771 FRAME_LARGER_THAN=-Wframe-larger-than=1024
14772 { $as_echo "$as_me:$LINENO: result: yes" >&5
14773 $as_echo "yes" >&6; }
14776 $as_echo "$as_me: program exited with status $ac_status" >&5
14777 $as_echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ( exit $ac_status )
14783 { $as_echo "$as_me:$LINENO: result: no" >&5
14784 $as_echo "no" >&6; }
14787 rm -rf conftest.dSYM
14788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14793 CFLAGS="$saved_flags"
14798 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
14799 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
14801 saved_CFLAGS="$CFLAGS"
14802 CFLAGS="-fstack-check"
14803 saved_LDFLAGS="$LDFLAGS"
14804 LDFLAGS="-lpthread"
14806 if test "$cross_compiling" = yes; then
14807 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14809 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
14810 See \
`config.log' for more details." >&5
14811 $as_echo "$as_me: error: cannot run test program while cross compiling
14812 See \`config.log
' for more details." >&2;}
14813 { (exit 1); exit 1; }; }; }
14815 cat >conftest.$ac_ext <<_ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14822 #include <pthread.h>
14823 #include <sys/resource.h>
14824 #include <unistd.h>
14825 #include <bits/local_lim.h>
14827 #define PAGESIZE (sysconf(_SC_PAGESIZE))
14828 #define STACK_SIZE 8192
14829 #define BUFSIZE 4096
14831 void * func(void *arg)
14841 pthread_attr_t attr;
14846 setrlimit(RLIMIT_CORE, &l);
14847 pthread_attr_init(&attr);
14848 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
14849 pthread_attr_setguardsize(&attr, PAGESIZE);
14850 pthread_create(&tid, &attr, func, NULL);
14851 pthread_join(tid, NULL);
14857 rm -f conftest$ac_exeext
14858 if { (ac_try="$ac_link"
14859 case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14864 $as_echo "$ac_try_echo") >&5
14865 (eval "$ac_link") 2>&5
14867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874 $as_echo "$ac_try_echo") >&5
14875 (eval "$ac_try") 2>&5
14877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14880 { $as_echo "$as_me:$LINENO: result: no" >&5
14881 $as_echo "no" >&6; }
14884 $as_echo "$as_me: program exited with status $ac_status" >&5
14885 $as_echo "$as_me: failed program was:" >&5
14886 sed 's
/^
/|
/' conftest.$ac_ext >&5
14888 ( exit $ac_status )
14891 cat >>confdefs.h <<\_ACEOF
14892 #define NPTL_GUARD_WITHIN_STACK 1
14895 { $as_echo "$as_me:$LINENO: result: yes" >&5
14896 $as_echo "yes" >&6; }
14899 rm -rf conftest.dSYM
14900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14904 CFLAGS="$saved_CFLAGS"
14905 LDFLAGS="$saved_LDFLAGS"
14911 # Check whether --with-linux was given.
14912 if test "${with_linux+set}" = set; then
14913 withval=$with_linux; kernelsrc="$withval"
14918 # Check whether --with-linux-obj was given.
14919 if test "${with_linux_obj+set}" = set; then
14920 withval=$with_linux_obj; kernelbuild="$withval"
14924 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
14925 $as_echo_n "checking kernel source directory... " >&6; }
14926 if test -z "$kernelsrc"; then
14927 headersdir="/lib/modules/$(uname -r)/build"
14928 if test -e "$headersdir"; then
14929 sourcelink=$(readlink -f "$headersdir")
14931 sourcelink=$(ls -1d /usr/src/kernels/* \
14933 2>/dev/null | grep -v obj | tail -1)
14936 if test -n "$sourcelink" && test -e ${sourcelink}; then
14937 kernelsrc=`readlink -f ${sourcelink}`
14939 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14940 $as_echo "Not found" >&6; }
14941 { { $as_echo "$as_me:$LINENO: error:
14942 *** Please make sure the kernel devel package for your distribution
14943 *** is installed then try again. If that fails you can specify the
14944 *** location of the kernel source with the '--with-linux=PATH
' option." >&5
14945 $as_echo "$as_me: error:
14946 *** Please make sure the kernel devel package for your distribution
14947 *** is installed then try again. If that fails you can specify the
14948 *** location of the kernel source with the '--with-linux=PATH
' option." >&2;}
14949 { (exit 1); exit 1; }; }
14952 if test "$kernelsrc" = "NONE"; then
14957 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
14958 $as_echo "$kernelsrc" >&6; }
14959 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
14960 $as_echo_n "checking kernel build directory... " >&6; }
14961 if test -z "$kernelbuild"; then
14962 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
14963 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
14964 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
14965 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
14966 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
14967 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
14969 kernelbuild=${kernelsrc}
14972 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
14973 $as_echo "$kernelbuild" >&6; }
14975 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
14976 $as_echo_n "checking kernel source version... " >&6; }
14977 utsrelease1=$kernelbuild/include/linux/version.h
14978 utsrelease2=$kernelbuild/include/linux/utsrelease.h
14979 utsrelease3=$kernelbuild/include/generated/utsrelease.h
14980 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
14981 utsrelease=linux/version.h
14982 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
14983 utsrelease=linux/utsrelease.h
14984 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
14985 utsrelease=generated/utsrelease.h
14988 if test "$utsrelease"; then
14989 kernsrcver=`(echo "#include <$utsrelease>";
14990 echo "kernsrcver=UTS_RELEASE") |
14991 cpp -I $kernelbuild/include |
14992 grep "^kernsrcver=" | cut -d \" -f 2`
14994 if test -z "$kernsrcver"; then
14995 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14996 $as_echo "Not found" >&6; }
14997 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
14998 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
14999 { (exit 1); exit 1; }; }
15002 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15003 $as_echo "Not found" >&6; }
15004 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15005 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15006 { (exit 1); exit 1; }; }
15009 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15010 $as_echo "$kernsrcver" >&6; }
15013 LINUX_OBJ=${kernelbuild}
15014 LINUX_VERSION=${kernsrcver}
15021 modpost=$LINUX/scripts/Makefile.modpost
15022 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15023 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15024 if test -f "$modpost"; then
15025 if grep -q Modules.symvers $modpost; then
15026 LINUX_SYMBOLS=Modules.symvers
15028 LINUX_SYMBOLS=Module.symvers
15033 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15034 $as_echo "$LINUX_SYMBOLS" >&6; }
15040 # Check whether --with-spl was given.
15041 if test "${with_spl+set}" = set; then
15042 withval=$with_spl; splsrc="$withval"
15047 # Check whether --with-spl-obj was given.
15048 if test "${with_spl_obj+set}" = set; then
15049 withval=$with_spl_obj; splbuild="$withval"
15054 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
15055 $as_echo_n "checking spl source directory... " >&6; }
15056 if test -z "$splsrc"; then
15057 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
15058 2>/dev/null | tail -1`
15060 if test -z "$sourcelink" || test ! -e $sourcelink; then
15064 if test -e $sourcelink; then
15065 splsrc=`readlink -f ${sourcelink}`
15067 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15068 $as_echo "Not found" >&6; }
15069 { { $as_echo "$as_me:$LINENO: error:
15070 *** Please make sure the spl devel package for your distribution
15071 *** is installed then try again. If that fails you can specify the
15072 *** location of the spl source with the '--with-spl=PATH
' option." >&5
15073 $as_echo "$as_me: error:
15074 *** Please make sure the spl devel package for your distribution
15075 *** is installed then try again. If that fails you can specify the
15076 *** location of the spl source with the '--with-spl=PATH
' option." >&2;}
15077 { (exit 1); exit 1; }; }
15080 if test "$splsrc" = "NONE"; then
15086 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
15087 $as_echo "$splsrc" >&6; }
15088 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
15089 $as_echo_n "checking spl build directory... " >&6; }
15090 if test -z "$splbuild"; then
15093 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
15094 $as_echo "$splbuild" >&6; }
15096 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
15097 $as_echo_n "checking spl source version... " >&6; }
15098 if test -r $splbuild/spl_config.h &&
15099 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
15101 splsrcver=`(echo "#include <spl_config.h>";
15102 echo "splsrcver=SPL_META_VERSION") |
15104 grep "^splsrcver=" | cut -d \" -f 2`
15107 if test -z "$splsrcver"; then
15108 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15109 $as_echo "Not found" >&6; }
15110 { { $as_echo "$as_me:$LINENO: error:
15111 *** Cannot determine the version of the spl source.
15112 *** Please prepare the spl source before running this script" >&5
15113 $as_echo "$as_me: error:
15114 *** Cannot determine the version of the spl source.
15115 *** Please prepare the spl source before running this script" >&2;}
15116 { (exit 1); exit 1; }; }
15119 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
15120 $as_echo "$splsrcver" >&6; }
15123 SPL_OBJ=${splbuild}
15124 SPL_VERSION=${splsrcver}
15131 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
15132 $as_echo_n "checking spl file name for module symbols... " >&6; }
15133 if test -r $SPL_OBJ/Module.symvers; then
15134 SPL_SYMBOLS=Module.symvers
15135 elif test -r $SPL_OBJ/Modules.symvers; then
15136 SPL_SYMBOLS=Modules.symvers
15137 elif test -r $SPL_OBJ/module/Module.symvers; then
15138 SPL_SYMBOLS=Module.symvers
15139 elif test -r $SPL_OBJ/module/Modules.symvers; then
15140 SPL_SYMBOLS=Modules.symvers
15142 SPL_SYMBOLS=$LINUX_SYMBOLS
15145 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
15146 $as_echo "$SPL_SYMBOLS" >&6; }
15152 if test "$ZFS_META_LICENSE" = CDDL; then
15153 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
15154 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
15157 cat confdefs.h - <<_ACEOF >conftest.c
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15165 #ifndef AUTOCONF_INCLUDED
15166 #include <linux/config.h>
15173 #ifndef CONFIG_DEBUG_LOCK_ALLOC
15174 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
15184 rm -Rf build && mkdir -p build
15185 echo "obj-m := conftest.o" >build/Makefile
15186 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15198 { $as_echo "$as_me:$LINENO: result: yes" >&5
15199 $as_echo "yes" >&6; }
15200 { { $as_echo "$as_me:$LINENO: error:
15201 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
15202 *** incompatible with the CDDL license. You must rebuild
15203 *** your kernel without this option." >&5
15204 $as_echo "$as_me: error:
15205 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
15206 *** incompatible with the CDDL license. You must rebuild
15207 *** your kernel without this option." >&2;}
15208 { (exit 1); exit 1; }; }
15211 $as_echo "$as_me: failed program was:" >&5
15212 sed 's
/^
/|
/' conftest.$ac_ext >&5
15214 { $as_echo "$as_me:$LINENO: result: no" >&5
15215 $as_echo "no" >&6; }
15228 if test "$ZFS_META_LICENSE" = GPL; then
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_GPL_ONLY_SYMBOLS 1
15237 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
15238 $as_echo_n "checking block device operation prototypes... " >&6; }
15241 cat confdefs.h - <<_ACEOF >conftest.c
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15249 #include <linux/blkdev.h>
15255 int (*blk_open) (struct block_device *, fmode_t) = NULL;
15256 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
15257 int (*blk_ioctl) (struct block_device *, fmode_t,
15258 unsigned, unsigned long) = NULL;
15259 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
15260 unsigned, unsigned long) = NULL;
15261 struct block_device_operations blk_ops = {
15263 .release = blk_release,
15264 .ioctl = blk_ioctl,
15265 .compat_ioctl = blk_compat_ioctl,
15268 blk_ops.open(NULL, 0);
15269 blk_ops.release(NULL, 0);
15270 blk_ops.ioctl(NULL, 0, 0, 0);
15271 blk_ops.compat_ioctl(NULL, 0, 0, 0);
15280 rm -Rf build && mkdir -p build
15281 echo "obj-m := conftest.o" >build/Makefile
15282 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15294 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
15295 $as_echo "struct block_device" >&6; }
15297 cat >>confdefs.h <<\_ACEOF
15298 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
15303 $as_echo "$as_me: failed program was:" >&5
15304 sed 's
/^
/|
/' conftest.$ac_ext >&5
15306 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
15307 $as_echo "struct inode" >&6; }
15317 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15318 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
15321 cat confdefs.h - <<_ACEOF >conftest.c
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15329 #include <linux/types.h>
15344 rm -Rf build && mkdir -p build
15345 echo "obj-m := conftest.o" >build/Makefile
15346 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15358 { $as_echo "$as_me:$LINENO: result: yes" >&5
15359 $as_echo "yes" >&6; }
15361 cat >>confdefs.h <<\_ACEOF
15362 #define HAVE_FMODE_T 1
15367 $as_echo "$as_me: failed program was:" >&5
15368 sed 's
/^
/|
/' conftest.$ac_ext >&5
15370 { $as_echo "$as_me:$LINENO: result: no" >&5
15371 $as_echo "no" >&6; }
15382 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
15383 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
15386 cat confdefs.h - <<_ACEOF >conftest.c
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15394 #include <linux/kobject.h>
15401 val = KOBJ_NAME_LEN;
15410 rm -Rf build && mkdir -p build
15411 echo "obj-m := conftest.o" >build/Makefile
15412 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15424 { $as_echo "$as_me:$LINENO: result: yes" >&5
15425 $as_echo "yes" >&6; }
15427 cat >>confdefs.h <<\_ACEOF
15428 #define HAVE_KOBJ_NAME_LEN 1
15433 $as_echo "$as_me: failed program was:" >&5
15434 sed 's
/^
/|
/' conftest.$ac_ext >&5
15436 { $as_echo "$as_me:$LINENO: result: no" >&5
15437 $as_echo "no" >&6; }
15448 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
15449 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
15450 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
15451 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15453 if test $rc -ne 0; then
15455 for file in fs/block_dev.c; do
15456 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
15458 if test $rc -eq 0; then
15463 if test $export -eq 0; then
15464 { $as_echo "$as_me:$LINENO: result: no" >&5
15465 $as_echo "no" >&6; }
15468 { $as_echo "$as_me:$LINENO: result: yes" >&5
15469 $as_echo "yes" >&6; }
15471 cat >>confdefs.h <<\_ACEOF
15472 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15477 { $as_echo "$as_me:$LINENO: result: yes" >&5
15478 $as_echo "yes" >&6; }
15480 cat >>confdefs.h <<\_ACEOF
15481 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15488 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
15489 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15492 cat confdefs.h - <<_ACEOF >conftest.c
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15500 #include <linux/buffer_head.h>
15506 struct block_device *bdev;
15507 invalidate_bdev(bdev);
15516 rm -Rf build && mkdir -p build
15517 echo "obj-m := conftest.o" >build/Makefile
15518 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520 (eval $ac_try) 2>&5
15522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15530 { $as_echo "$as_me:$LINENO: result: yes" >&5
15531 $as_echo "yes" >&6; }
15533 cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_1ARG_INVALIDATE_BDEV 1
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's
/^
/|
/' conftest.$ac_ext >&5
15542 { $as_echo "$as_me:$LINENO: result: no" >&5
15543 $as_echo "no" >&6; }
15554 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
15555 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15558 cat confdefs.h - <<_ACEOF >conftest.c
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15566 #include <linux/blkdev.h>
15572 struct block_device *bdev = NULL;
15573 bdev_logical_block_size(bdev);
15582 rm -Rf build && mkdir -p build
15583 echo "obj-m := conftest.o" >build/Makefile
15584 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15596 { $as_echo "$as_me:$LINENO: result: yes" >&5
15597 $as_echo "yes" >&6; }
15599 cat >>confdefs.h <<\_ACEOF
15600 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
15605 $as_echo "$as_me: failed program was:" >&5
15606 sed 's
/^
/|
/' conftest.$ac_ext >&5
15608 { $as_echo "$as_me:$LINENO: result: no" >&5
15609 $as_echo "no" >&6; }
15620 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
15621 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
15622 EXTRA_KCFLAGS="-Werror"
15625 cat confdefs.h - <<_ACEOF >conftest.c
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15633 #include <linux/bio.h>
15640 (void)bio_empty_barrier(&bio);
15649 rm -Rf build && mkdir -p build
15650 echo "obj-m := conftest.o" >build/Makefile
15651 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15663 { $as_echo "$as_me:$LINENO: result: yes" >&5
15664 $as_echo "yes" >&6; }
15666 cat >>confdefs.h <<\_ACEOF
15667 #define HAVE_BIO_EMPTY_BARRIER 1
15672 $as_echo "$as_me: failed program was:" >&5
15673 sed 's
/^
/|
/' conftest.$ac_ext >&5
15675 { $as_echo "$as_me:$LINENO: result: no" >&5
15676 $as_echo "no" >&6; }
15687 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
15688 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15691 cat confdefs.h - <<_ACEOF >conftest.c
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15699 #include <linux/bio.h>
15706 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15707 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15708 (1 << BIO_RW_FAILFAST_DRIVER));
15717 rm -Rf build && mkdir -p build
15718 echo "obj-m := conftest.o" >build/Makefile
15719 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15731 { $as_echo "$as_me:$LINENO: result: yes" >&5
15732 $as_echo "yes" >&6; }
15734 cat >>confdefs.h <<\_ACEOF
15735 #define HAVE_BIO_RW_FAILFAST 1
15740 $as_echo "$as_me: failed program was:" >&5
15741 sed 's
/^
/|
/' conftest.$ac_ext >&5
15743 { $as_echo "$as_me:$LINENO: result: no" >&5
15744 $as_echo "no" >&6; }
15755 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
15756 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
15757 tmp_flags="$EXTRA_KCFLAGS"
15758 EXTRA_KCFLAGS="-Werror"
15761 cat confdefs.h - <<_ACEOF >conftest.c
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15769 #include <linux/bio.h>
15775 void (*wanted_end_io)(struct bio *, int) = NULL;
15776 bio_end_io_t *local_end_io;
15778 local_end_io = wanted_end_io;
15787 rm -Rf build && mkdir -p build
15788 echo "obj-m := conftest.o" >build/Makefile
15789 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15801 { $as_echo "$as_me:$LINENO: result: yes" >&5
15802 $as_echo "yes" >&6; }
15804 cat >>confdefs.h <<\_ACEOF
15805 #define HAVE_2ARGS_BIO_END_IO_T 1
15810 $as_echo "$as_me: failed program was:" >&5
15811 sed 's
/^
/|
/' conftest.$ac_ext >&5
15813 { $as_echo "$as_me:$LINENO: result: no" >&5
15814 $as_echo "no" >&6; }
15823 EXTRA_KCFLAGS="$tmp_flags"
15826 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
15827 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
15830 cat confdefs.h - <<_ACEOF >conftest.c
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15838 #include <linux/bio.h>
15845 flags = BIO_RW_SYNCIO;
15854 rm -Rf build && mkdir -p build
15855 echo "obj-m := conftest.o" >build/Makefile
15856 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15868 { $as_echo "$as_me:$LINENO: result: yes" >&5
15869 $as_echo "yes" >&6; }
15871 cat >>confdefs.h <<\_ACEOF
15872 #define HAVE_BIO_RW_SYNCIO 1
15877 $as_echo "$as_me: failed program was:" >&5
15878 sed 's
/^
/|
/' conftest.$ac_ext >&5
15880 { $as_echo "$as_me:$LINENO: result: no" >&5
15881 $as_echo "no" >&6; }
15892 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
15893 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
15896 cat confdefs.h - <<_ACEOF >conftest.c
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15904 #include <linux/blkdev.h>
15910 struct request *req = NULL;
15911 (void) blk_end_request(req, 0, 0);
15920 rm -Rf build && mkdir -p build
15921 echo "obj-m := conftest.o" >build/Makefile
15922 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15934 { $as_echo "$as_me:$LINENO: result: yes" >&5
15935 $as_echo "yes" >&6; }
15937 cat >>confdefs.h <<\_ACEOF
15938 #define HAVE_BLK_END_REQUEST 1
15943 $as_echo "$as_me: failed program was:" >&5
15944 sed 's
/^
/|
/' conftest.$ac_ext >&5
15946 { $as_echo "$as_me:$LINENO: result: no" >&5
15947 $as_echo "no" >&6; }
15957 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
15958 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
15961 cat confdefs.h - <<_ACEOF >conftest.c
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15969 #include <linux/module.h>
15970 #include <linux/blkdev.h>
15972 MODULE_LICENSE("CDDL");
15978 struct request *req = NULL;
15979 (void) blk_end_request(req, 0, 0);
15988 rm -Rf build && mkdir -p build
15989 echo "obj-m := conftest.o" >build/Makefile
15990 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16002 { $as_echo "$as_me:$LINENO: result: no" >&5
16003 $as_echo "no" >&6; }
16006 $as_echo "$as_me: failed program was:" >&5
16007 sed 's
/^
/|
/' conftest.$ac_ext >&5
16009 { $as_echo "$as_me:$LINENO: result: yes" >&5
16010 $as_echo "yes" >&6; }
16012 cat >>confdefs.h <<\_ACEOF
16013 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
16026 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
16027 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
16030 cat confdefs.h - <<_ACEOF >conftest.c
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16038 #include <linux/blkdev.h>
16044 struct request_queue *q = NULL;
16045 (void) blk_fetch_request(q);
16054 rm -Rf build && mkdir -p build
16055 echo "obj-m := conftest.o" >build/Makefile
16056 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16068 { $as_echo "$as_me:$LINENO: result: yes" >&5
16069 $as_echo "yes" >&6; }
16071 cat >>confdefs.h <<\_ACEOF
16072 #define HAVE_BLK_FETCH_REQUEST 1
16077 $as_echo "$as_me: failed program was:" >&5
16078 sed 's
/^
/|
/' conftest.$ac_ext >&5
16080 { $as_echo "$as_me:$LINENO: result: no" >&5
16081 $as_echo "no" >&6; }
16092 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
16093 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
16096 cat confdefs.h - <<_ACEOF >conftest.c
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16104 #include <linux/blkdev.h>
16110 struct request_queue *q = NULL;
16111 struct request *req = NULL;
16112 blk_requeue_request(q, req);
16121 rm -Rf build && mkdir -p build
16122 echo "obj-m := conftest.o" >build/Makefile
16123 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16135 { $as_echo "$as_me:$LINENO: result: yes" >&5
16136 $as_echo "yes" >&6; }
16138 cat >>confdefs.h <<\_ACEOF
16139 #define HAVE_BLK_REQUEUE_REQUEST 1
16144 $as_echo "$as_me: failed program was:" >&5
16145 sed 's
/^
/|
/' conftest.$ac_ext >&5
16147 { $as_echo "$as_me:$LINENO: result: no" >&5
16148 $as_echo "no" >&6; }
16159 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
16160 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
16163 cat confdefs.h - <<_ACEOF >conftest.c
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16171 #include <linux/blkdev.h>
16177 struct request *req = NULL;
16178 (void) blk_rq_bytes(req);
16187 rm -Rf build && mkdir -p build
16188 echo "obj-m := conftest.o" >build/Makefile
16189 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16201 { $as_echo "$as_me:$LINENO: result: yes" >&5
16202 $as_echo "yes" >&6; }
16204 cat >>confdefs.h <<\_ACEOF
16205 #define HAVE_BLK_RQ_BYTES 1
16210 $as_echo "$as_me: failed program was:" >&5
16211 sed 's
/^
/|
/' conftest.$ac_ext >&5
16213 { $as_echo "$as_me:$LINENO: result: no" >&5
16214 $as_echo "no" >&6; }
16224 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
16225 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
16228 cat confdefs.h - <<_ACEOF >conftest.c
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16236 #include <linux/module.h>
16237 #include <linux/blkdev.h>
16239 MODULE_LICENSE("CDDL");
16245 struct request *req = NULL;
16246 (void) blk_rq_bytes(req);
16255 rm -Rf build && mkdir -p build
16256 echo "obj-m := conftest.o" >build/Makefile
16257 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16269 { $as_echo "$as_me:$LINENO: result: no" >&5
16270 $as_echo "no" >&6; }
16273 $as_echo "$as_me: failed program was:" >&5
16274 sed 's
/^
/|
/' conftest.$ac_ext >&5
16276 { $as_echo "$as_me:$LINENO: result: yes" >&5
16277 $as_echo "yes" >&6; }
16279 cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
16293 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
16294 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
16297 cat confdefs.h - <<_ACEOF >conftest.c
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16305 #include <linux/blkdev.h>
16311 struct request *req = NULL;
16312 (void) blk_rq_pos(req);
16321 rm -Rf build && mkdir -p build
16322 echo "obj-m := conftest.o" >build/Makefile
16323 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16335 { $as_echo "$as_me:$LINENO: result: yes" >&5
16336 $as_echo "yes" >&6; }
16338 cat >>confdefs.h <<\_ACEOF
16339 #define HAVE_BLK_RQ_POS 1
16344 $as_echo "$as_me: failed program was:" >&5
16345 sed 's
/^
/|
/' conftest.$ac_ext >&5
16347 { $as_echo "$as_me:$LINENO: result: no" >&5
16348 $as_echo "no" >&6; }
16359 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
16360 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
16363 cat confdefs.h - <<_ACEOF >conftest.c
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16371 #include <linux/blkdev.h>
16377 struct request *req = NULL;
16378 (void) blk_rq_sectors(req);
16387 rm -Rf build && mkdir -p build
16388 echo "obj-m := conftest.o" >build/Makefile
16389 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; }; then
16401 { $as_echo "$as_me:$LINENO: result: yes" >&5
16402 $as_echo "yes" >&6; }
16404 cat >>confdefs.h <<\_ACEOF
16405 #define HAVE_BLK_RQ_SECTORS 1
16410 $as_echo "$as_me: failed program was:" >&5
16411 sed 's
/^
/|
/' conftest.$ac_ext >&5
16413 { $as_echo "$as_me:$LINENO: result: no" >&5
16414 $as_echo "no" >&6; }
16425 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
16426 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16429 cat confdefs.h - <<_ACEOF >conftest.c
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16437 #include <linux/blkdev.h>
16443 struct gendisk *disk = NULL;
16444 (void) get_disk_ro(disk);
16453 rm -Rf build && mkdir -p build
16454 echo "obj-m := conftest.o" >build/Makefile
16455 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16467 { $as_echo "$as_me:$LINENO: result: yes" >&5
16468 $as_echo "yes" >&6; }
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_GET_DISK_RO 1
16476 $as_echo "$as_me: failed program was:" >&5
16477 sed 's
/^
/|
/' conftest.$ac_ext >&5
16479 { $as_echo "$as_me:$LINENO: result: no" >&5
16480 $as_echo "no" >&6; }
16491 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
16492 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
16495 cat confdefs.h - <<_ACEOF >conftest.c
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16503 #include <linux/blkdev.h>
16509 struct request *req = NULL;
16510 (void) rq_is_sync(req);
16519 rm -Rf build && mkdir -p build
16520 echo "obj-m := conftest.o" >build/Makefile
16521 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16523 (eval $ac_try) 2>&5
16525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16533 { $as_echo "$as_me:$LINENO: result: yes" >&5
16534 $as_echo "yes" >&6; }
16536 cat >>confdefs.h <<\_ACEOF
16537 #define HAVE_RQ_IS_SYNC 1
16542 $as_echo "$as_me: failed program was:" >&5
16543 sed 's
/^
/|
/' conftest.$ac_ext >&5
16545 { $as_echo "$as_me:$LINENO: result: no" >&5
16546 $as_echo "no" >&6; }
16557 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
16558 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
16561 cat confdefs.h - <<_ACEOF >conftest.c
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16569 #include <linux/blkdev.h>
16575 struct bio_vec *bv;
16576 struct req_iterator iter;
16577 struct request *req = NULL;
16578 rq_for_each_segment(bv, req, iter) { }
16587 rm -Rf build && mkdir -p build
16588 echo "obj-m := conftest.o" >build/Makefile
16589 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16601 { $as_echo "$as_me:$LINENO: result: yes" >&5
16602 $as_echo "yes" >&6; }
16604 cat >>confdefs.h <<\_ACEOF
16605 #define HAVE_RQ_FOR_EACH_SEGMENT 1
16610 $as_echo "$as_me: failed program was:" >&5
16611 sed 's
/^
/|
/' conftest.$ac_ext >&5
16613 { $as_echo "$as_me:$LINENO: result: no" >&5
16614 $as_echo "no" >&6; }
16625 if test "$LINUX_OBJ" != "$LINUX"; then
16626 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16631 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
16632 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
16638 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
16639 $as_echo_n "checking for target asm dir... " >&6; }
16640 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
16642 case $TARGET_ARCH in
16644 TARGET_ASM_DIR=asm-${TARGET_ARCH}
16647 TARGET_ASM_DIR=asm-generic
16652 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
16653 $as_echo "$TARGET_ASM_DIR" >&6; }
16656 { $as_echo "$as_me:$LINENO: checking for sa_init in -lshare" >&5
16657 $as_echo_n "checking for sa_init in -lshare... " >&6; }
16658 if test "${ac_cv_lib_share_sa_init+set}" = set; then
16659 $as_echo_n "(cached) " >&6
16661 ac_check_lib_save_LIBS=$LIBS
16662 LIBS="-lshare $LIBS"
16663 cat >conftest.$ac_ext <<_ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16670 /* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16692 $as_echo "$ac_try_echo") >&5
16693 (eval "$ac_link") 2>conftest.er1
16695 grep -v '^
*+' conftest.er1 >conftest.err
16697 cat conftest.err >&5
16698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } && {
16700 test -z "$ac_c_werror_flag" ||
16701 test ! -s conftest.err
16702 } && test -s conftest$ac_exeext && {
16703 test "$cross_compiling" = yes ||
16704 $as_test_x conftest$ac_exeext
16706 ac_cv_lib_share_sa_init=yes
16708 $as_echo "$as_me: failed program was:" >&5
16709 sed 's
/^
/|
/' conftest.$ac_ext >&5
16711 ac_cv_lib_share_sa_init=no
16714 rm -rf conftest.dSYM
16715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16716 conftest$ac_exeext conftest.$ac_ext
16717 LIBS=$ac_check_lib_save_LIBS
16719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_share_sa_init" >&5
16720 $as_echo "$ac_cv_lib_share_sa_init" >&6; }
16721 if test "x$ac_cv_lib_share_sa_init" = x""yes; then
16723 cat >>confdefs.h <<\_ACEOF
16724 #define HAVE_LIBSHARE 1
16731 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
16732 $as_echo_n "checking for ioctl()... " >&6; }
16733 cat >conftest.$ac_ext <<_ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 #include <unistd.h>
16742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16743 $EGREP "ioctl" >/dev/null 2>&1; then
16750 cat >conftest.$ac_ext <<_ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 #include <sys/ioctl.h>
16759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16760 $EGREP "ioctl" >/dev/null 2>&1; then
16767 cat >conftest.$ac_ext <<_ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <stropts.h>
16776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16777 $EGREP "ioctl" >/dev/null 2>&1; then
16785 if test $is_unistd = yes; then
16788 cat >>confdefs.h <<\_ACEOF
16789 #define HAVE_IOCTL_IN_UNISTD_H 1
16794 if test $is_sys_ioctl = yes; then
16797 cat >>confdefs.h <<\_ACEOF
16798 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
16801 elif test $is_stropts = yes; then
16803 cat >>confdefs.h <<\_ACEOF
16804 #define HAVE_IOCTL_IN_STROPTS_H 1
16812 if test $result = no; then
16813 { $as_echo "$as_me:$LINENO: result: no" >&5
16814 $as_echo "no" >&6; }
16815 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
16816 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
16817 { (exit 1); exit 1; }; }
16819 { $as_echo "$as_me:$LINENO: result: yes" >&5
16820 $as_echo "yes" >&6; }
16826 if test "${ac_cv_header_zlib_h+set}" = set; then
16827 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16828 $as_echo_n "checking for zlib.h... " >&6; }
16829 if test "${ac_cv_header_zlib_h+set}" = set; then
16830 $as_echo_n "(cached) " >&6
16832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16833 $as_echo "$ac_cv_header_zlib_h" >&6; }
16835 # Is the header compilable?
16836 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
16837 $as_echo_n "checking zlib.h usability... " >&6; }
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 $ac_includes_default
16847 rm -f conftest.$ac_objext
16848 if { (ac_try="$ac_compile"
16849 case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16854 $as_echo "$ac_try_echo") >&5
16855 (eval "$ac_compile") 2>conftest.er1
16857 grep -v '^
*+' conftest.er1 >conftest.err
16859 cat conftest.err >&5
16860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } && {
16862 test -z "$ac_c_werror_flag" ||
16863 test ! -s conftest.err
16864 } && test -s conftest.$ac_objext; then
16865 ac_header_compiler=yes
16867 $as_echo "$as_me: failed program was:" >&5
16868 sed 's
/^
/|
/' conftest.$ac_ext >&5
16870 ac_header_compiler=no
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16875 $as_echo "$ac_header_compiler" >&6; }
16877 # Is the header present?
16878 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16879 $as_echo_n "checking zlib.h presence... " >&6; }
16880 cat >conftest.$ac_ext <<_ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16888 if { (ac_try="$ac_cpp conftest.$ac_ext"
16889 case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16894 $as_echo "$ac_try_echo") >&5
16895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16897 grep -v '^
*+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } >/dev/null && {
16902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16903 test ! -s conftest.err
16905 ac_header_preproc=yes
16907 $as_echo "$as_me: failed program was:" >&5
16908 sed 's
/^
/|
/' conftest.$ac_ext >&5
16910 ac_header_preproc=no
16913 rm -f conftest.err conftest.$ac_ext
16914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16915 $as_echo "$ac_header_preproc" >&6; }
16917 # So? What about this header?
16918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16920 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16921 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16922 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
16923 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
16924 ac_header_preproc=yes
16927 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16928 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16929 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
16930 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
16931 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16932 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16933 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
16934 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16935 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
16936 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
16937 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16938 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
16942 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16943 $as_echo_n "checking for zlib.h... " >&6; }
16944 if test "${ac_cv_header_zlib_h+set}" = set; then
16945 $as_echo_n "(cached) " >&6
16947 ac_cv_header_zlib_h=$ac_header_preproc
16949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16950 $as_echo "$ac_cv_header_zlib_h" >&6; }
16953 if test "x$ac_cv_header_zlib_h" = x""yes; then
16956 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16957 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
16958 { { $as_echo "$as_me:$LINENO: error:
16959 *** zlib.h missing, zlib-devel package required
16960 See \`config.log
' for more details." >&5
16961 $as_echo "$as_me: error:
16962 *** zlib.h missing, zlib-devel package required
16963 See \`config.log' for more details.
" >&2;}
16964 { (exit 1); exit 1; }; }; }
16970 { $as_echo "$as_me:$LINENO: checking
for compress2
in -lz" >&5
16971 $as_echo_n "checking
for compress2
in -lz...
" >&6; }
16972 if test "${ac_cv_lib_z_compress2+set}" = set; then
16973 $as_echo_n "(cached
) " >&6
16975 ac_check_lib_save_LIBS=$LIBS
16977 cat >conftest.$ac_ext <<_ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16984 /* Override any GCC internal prototype to avoid an error.
16985 Use char because int might match the return type of a GCC
16986 builtin and then its argument prototype would still apply. */
16994 return compress2 ();
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17006 $as_echo "$ac_try_echo") >&5
17007 (eval "$ac_link") 2>conftest.er1
17009 grep -v '^ *+' conftest.er1 >conftest.err
17011 cat conftest.err >&5
17012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17013 (exit $ac_status); } && {
17014 test -z "$ac_c_werror_flag" ||
17015 test ! -s conftest.err
17016 } && test -s conftest$ac_exeext && {
17017 test "$cross_compiling" = yes ||
17018 $as_test_x conftest$ac_exeext
17020 ac_cv_lib_z_compress2=yes
17022 $as_echo "$as_me: failed program was
:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ac_cv_lib_z_compress2=no
17028 rm -rf conftest.dSYM
17029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17030 conftest$ac_exeext conftest.$ac_ext
17031 LIBS=$ac_check_lib_save_LIBS
17033 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress2" >&5
17034 $as_echo "$ac_cv_lib_z_compress2" >&6; }
17035 if test "x
$ac_cv_lib_z_compress2" = x""yes; then
17036 cat >>confdefs.h <<_ACEOF
17037 #define HAVE_LIBZ 1
17043 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
17044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17045 { { $as_echo "$as_me:$LINENO: error:
17046 *** compress2() missing, zlib-devel package required
17047 See \`config.log' for more details.
" >&5
17048 $as_echo "$as_me: error
:
17049 *** compress2
() missing
, zlib-devel package required
17050 See \
`config.log' for more details." >&2;}
17051 { (exit 1); exit 1; }; }; }
17056 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
17057 $as_echo_n "checking for uncompress in -lz... " >&6; }
17058 if test "${ac_cv_lib_z_uncompress+set}" = set; then
17059 $as_echo_n "(cached) " >&6
17061 ac_check_lib_save_LIBS=$LIBS
17063 cat >conftest.$ac_ext <<_ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17076 char uncompress ();
17080 return uncompress ();
17085 rm -f conftest.$ac_objext conftest$ac_exeext
17086 if { (ac_try="$ac_link"
17087 case "(($ac_try" in
17088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17089 *) ac_try_echo
=$ac_try;;
17091 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17092 $as_echo "$ac_try_echo") >&5
17093 (eval "$ac_link") 2>conftest.er1
17095 grep -v '^ *+' conftest.er1
>conftest.err
17097 cat conftest.err
>&5
17098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && {
17100 test -z "$ac_c_werror_flag" ||
17101 test ! -s conftest.err
17102 } && test -s conftest
$ac_exeext && {
17103 test "$cross_compiling" = yes ||
17104 $as_test_x conftest
$ac_exeext
17106 ac_cv_lib_z_uncompress
=yes
17108 $as_echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.
$ac_ext >&5
17111 ac_cv_lib_z_uncompress
=no
17114 rm -rf conftest.dSYM
17115 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17116 conftest
$ac_exeext conftest.
$ac_ext
17117 LIBS
=$ac_check_lib_save_LIBS
17119 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
17120 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17121 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then
17122 cat >>confdefs.h
<<_ACEOF
17123 #define HAVE_LIBZ 1
17129 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17131 { { $as_echo "$as_me:$LINENO: error:
17132 *** uncompress() missing, zlib-devel package required
17133 See \`config.log' for more details." >&5
17134 $as_echo "$as_me: error:
17135 *** uncompress() missing, zlib-devel package required
17136 See \`config.log' for more details." >&2;}
17137 { (exit 1); exit 1; }; }; }
17142 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
17143 $as_echo_n "checking for crc32 in -lz... " >&6; }
17144 if test "${ac_cv_lib_z_crc32+set}" = set; then
17145 $as_echo_n "(cached) " >&6
17147 ac_check_lib_save_LIBS
=$LIBS
17149 cat >conftest.
$ac_ext <<_ACEOF
17152 cat confdefs.h
>>conftest.
$ac_ext
17153 cat >>conftest.
$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17171 rm -f conftest.
$ac_objext conftest
$ac_exeext
17172 if { (ac_try
="$ac_link"
17173 case "(($ac_try" in
17174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17178 $as_echo "$ac_try_echo") >&5
17179 (eval "$ac_link") 2>conftest.er1
17181 grep -v '^ *+' conftest.er1 >conftest.err
17183 cat conftest.err >&5
17184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && {
17186 test -z "$ac_c_werror_flag" ||
17187 test ! -s conftest.err
17188 } && test -s conftest$ac_exeext && {
17189 test "$cross_compiling" = yes ||
17190 $as_test_x conftest$ac_exeext
17192 ac_cv_lib_z_crc32=yes
17194 $as_echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ac_cv_lib_z_crc32=no
17200 rm -rf conftest.dSYM
17201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202 conftest$ac_exeext conftest.$ac_ext
17203 LIBS=$ac_check_lib_save_LIBS
17205 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
17206 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17207 if test "x$ac_cv_lib_z_crc32" = x""yes; then
17208 cat >>confdefs.h <<_ACEOF
17209 #define HAVE_LIBZ 1
17215 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17217 { { $as_echo "$as_me:$LINENO: error
:
17218 *** crc32
() missing
, zlib-devel package required
17219 See \
`config.log' for more details." >&5
17220 $as_echo "$as_me: error:
17221 *** crc32() missing, zlib-devel package required
17222 See \`config.log
' for more details." >&2;}
17223 { (exit 1); exit 1; }; }; }
17230 cat >>confdefs.h <<\_ACEOF
17231 #define HAVE_ZLIB 1
17238 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17239 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17240 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17241 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17242 $as_echo_n "(cached) " >&6
17244 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17245 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17247 # Is the header compilable?
17248 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
17249 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 $ac_includes_default
17257 #include <uuid/uuid.h>
17259 rm -f conftest.$ac_objext
17260 if { (ac_try="$ac_compile"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17266 $as_echo "$ac_try_echo") >&5
17267 (eval "$ac_compile") 2>conftest.er1
17269 grep -v '^
*+' conftest.er1 >conftest.err
17271 cat conftest.err >&5
17272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } && {
17274 test -z "$ac_c_werror_flag" ||
17275 test ! -s conftest.err
17276 } && test -s conftest.$ac_objext; then
17277 ac_header_compiler=yes
17279 $as_echo "$as_me: failed program was:" >&5
17280 sed 's
/^
/|
/' conftest.$ac_ext >&5
17282 ac_header_compiler=no
17285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17287 $as_echo "$ac_header_compiler" >&6; }
17289 # Is the header present?
17290 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17291 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
17292 cat >conftest.$ac_ext <<_ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <uuid/uuid.h>
17300 if { (ac_try="$ac_cpp conftest.$ac_ext"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17306 $as_echo "$ac_try_echo") >&5
17307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17309 grep -v '^
*+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } >/dev/null && {
17314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17317 ac_header_preproc=yes
17319 $as_echo "$as_me: failed program was:" >&5
17320 sed 's
/^
/|
/' conftest.$ac_ext >&5
17322 ac_header_preproc=no
17325 rm -f conftest.err conftest.$ac_ext
17326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17327 $as_echo "$ac_header_preproc" >&6; }
17329 # So? What about this header?
17330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17332 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17333 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17334 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
17335 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
17336 ac_header_preproc=yes
17339 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17340 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17341 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
17342 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
17343 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17344 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17345 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
17346 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
17347 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
17348 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
17349 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17350 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17354 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17355 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17356 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17357 $as_echo_n "(cached) " >&6
17359 ac_cv_header_uuid_uuid_h=$ac_header_preproc
17361 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17362 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17365 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17368 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17369 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
17370 { { $as_echo "$as_me:$LINENO: error:
17371 *** uuid/uuid.h missing, libuuid-devel package required
17372 See \`config.log
' for more details." >&5
17373 $as_echo "$as_me: error:
17374 *** uuid/uuid.h missing, libuuid-devel package required
17375 See \`config.log' for more details.
" >&2;}
17376 { (exit 1); exit 1; }; }; }
17382 { $as_echo "$as_me:$LINENO: checking
for uuid_generate
in -luuid" >&5
17383 $as_echo_n "checking
for uuid_generate
in -luuid...
" >&6; }
17384 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17385 $as_echo_n "(cached
) " >&6
17387 ac_check_lib_save_LIBS=$LIBS
17388 LIBS="-luuid $LIBS"
17389 cat >conftest.$ac_ext <<_ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17396 /* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17402 char uuid_generate ();
17406 return uuid_generate ();
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17418 $as_echo "$ac_try_echo") >&5
17419 (eval "$ac_link") 2>conftest.er1
17421 grep -v '^ *+' conftest.er1 >conftest.err
17423 cat conftest.err >&5
17424 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest$ac_exeext && {
17429 test "$cross_compiling" = yes ||
17430 $as_test_x conftest$ac_exeext
17432 ac_cv_lib_uuid_uuid_generate=yes
17434 $as_echo "$as_me: failed program was
:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 ac_cv_lib_uuid_uuid_generate=no
17440 rm -rf conftest.dSYM
17441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17442 conftest$ac_exeext conftest.$ac_ext
17443 LIBS=$ac_check_lib_save_LIBS
17445 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_generate" >&5
17446 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17447 if test "x
$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17448 cat >>confdefs.h <<_ACEOF
17449 #define HAVE_LIBUUID 1
17452 LIBS="-luuid $LIBS"
17455 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
17456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17457 { { $as_echo "$as_me:$LINENO: error:
17458 *** uuid_generate() missing, libuuid-devel package required
17459 See \`config.log' for more details.
" >&5
17460 $as_echo "$as_me: error
:
17461 *** uuid_generate
() missing
, libuuid-devel package required
17462 See \
`config.log' for more details." >&2;}
17463 { (exit 1); exit 1; }; }; }
17468 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
17469 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17470 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17471 $as_echo_n "(cached) " >&6
17473 ac_check_lib_save_LIBS=$LIBS
17474 LIBS="-luuid $LIBS"
17475 cat >conftest.$ac_ext <<_ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17488 char uuid_is_null ();
17492 return uuid_is_null ();
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17501 *) ac_try_echo
=$ac_try;;
17503 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17504 $as_echo "$ac_try_echo") >&5
17505 (eval "$ac_link") 2>conftest.er1
17507 grep -v '^ *+' conftest.er1
>conftest.err
17509 cat conftest.err
>&5
17510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } && {
17512 test -z "$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17514 } && test -s conftest
$ac_exeext && {
17515 test "$cross_compiling" = yes ||
17516 $as_test_x conftest
$ac_exeext
17518 ac_cv_lib_uuid_uuid_is_null
=yes
17520 $as_echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.
$ac_ext >&5
17523 ac_cv_lib_uuid_uuid_is_null
=no
17526 rm -rf conftest.dSYM
17527 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17528 conftest
$ac_exeext conftest.
$ac_ext
17529 LIBS
=$ac_check_lib_save_LIBS
17531 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17532 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17533 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then
17534 cat >>confdefs.h
<<_ACEOF
17535 #define HAVE_LIBUUID 1
17538 LIBS
="-luuid $LIBS"
17541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17543 { { $as_echo "$as_me:$LINENO: error:
17544 *** uuid_is_null() missing, libuuid-devel package required
17545 See \`config.log' for more details." >&5
17546 $as_echo "$as_me: error:
17547 *** uuid_is_null() missing, libuuid-devel package required
17548 See \`config.log' for more details." >&2;}
17549 { (exit 1); exit 1; }; }; }
17556 cat >>confdefs.h
<<\_ACEOF
17557 #define HAVE_LIBUUID 1
17563 # Check whether --with-blkid was given.
17564 if test "${with_blkid+set}" = set; then
17565 withval
=$with_blkid;
17572 if test "x$with_blkid" != xno
; then
17574 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17575 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17576 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17577 $as_echo_n "(cached) " >&6
17579 ac_check_lib_save_LIBS
=$LIBS
17580 LIBS
="-lblkid $LIBS"
17581 cat >conftest.
$ac_ext <<_ACEOF
17584 cat confdefs.h
>>conftest.
$ac_ext
17585 cat >>conftest.
$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17588 /* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17594 char blkid_get_cache ();
17598 return blkid_get_cache ();
17603 rm -f conftest.
$ac_objext conftest
$ac_exeext
17604 if { (ac_try
="$ac_link"
17605 case "(($ac_try" in
17606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17610 $as_echo "$ac_try_echo") >&5
17611 (eval "$ac_link") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest$ac_exeext && {
17621 test "$cross_compiling" = yes ||
17622 $as_test_x conftest$ac_exeext
17624 ac_cv_lib_blkid_blkid_get_cache=yes
17626 $as_echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_cv_lib_blkid_blkid_get_cache=no
17632 rm -rf conftest.dSYM
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17635 LIBS=$ac_check_lib_save_LIBS
17637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17638 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17639 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
17641 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
17642 $as_echo_n "checking for blkid zfs support... " >&6; }
17645 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17646 >/dev/null 2>/dev/null
17647 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17648 dd of=$ZFS_DEV bs=1k count=8 \
17649 seek=132 conv=notrunc &>/dev/null \
17650 >/dev/null 2>/dev/null
17652 saved_LDFLAGS="$LDFLAGS"
17655 if test "$cross_compiling" = yes; then
17656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17658 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
17659 See \
`config.log' for more details." >&5
17660 $as_echo "$as_me: error: cannot run test program while cross compiling
17661 See \`config.log
' for more details." >&2;}
17662 { (exit 1); exit 1; }; }; }
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17672 #include <blkid/blkid.h>
17681 if (blkid_get_cache(&cache, NULL) < 0)
17684 value = blkid_get_tag_value(cache, "TYPE",
17687 blkid_put_cache(cache);
17691 if (strcmp(value, "zfs")) {
17693 blkid_put_cache(cache);
17698 blkid_put_cache(cache);
17704 rm -f conftest$ac_exeext
17705 if { (ac_try="$ac_link"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17711 $as_echo "$ac_try_echo") >&5
17712 (eval "$ac_link") 2>&5
17714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17721 $as_echo "$ac_try_echo") >&5
17722 (eval "$ac_try") 2>&5
17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17728 { $as_echo "$as_me:$LINENO: result: yes" >&5
17729 $as_echo "yes" >&6; }
17733 cat >>confdefs.h <<\_ACEOF
17734 #define HAVE_LIBBLKID 1
17739 $as_echo "$as_me: program exited with status $ac_status" >&5
17740 $as_echo "$as_me: failed program was:" >&5
17741 sed 's
/^
/|
/' conftest.$ac_ext >&5
17743 ( exit $ac_status )
17746 { $as_echo "$as_me:$LINENO: result: no" >&5
17747 $as_echo "no" >&6; }
17748 if test "x$with_blkid" != xcheck; then
17749 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17750 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
17751 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17752 See \`config.log
' for more details." >&5
17753 $as_echo "$as_me: error: --with-blkid given but unavailable
17754 See \`config.log' for more details.
" >&2;}
17755 { (exit 1); exit 1; }; }; }
17760 rm -rf conftest.dSYM
17761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17766 LDFLAGS="$saved_LDFLAGS"
17770 if test "x
$with_blkid" != xcheck; then
17771 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
17772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17773 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17774 See \`config.log' for more details.
" >&5
17775 $as_echo "$as_me: error
: --with-blkid given but unavailable
17776 See \
`config.log' for more details." >&2;}
17777 { (exit 1); exit 1; }; }; }
17789 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17790 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17792 saved_flags="$CFLAGS"
17793 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17795 if test "$cross_compiling" = yes; then
17796 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17798 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
17799 See \
`config.log' for more details." >&5
17800 $as_echo "$as_me: error: cannot run test program while cross compiling
17801 See \`config.log
' for more details." >&2;}
17802 { (exit 1); exit 1; }; }; }
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17819 rm -f conftest$ac_exeext
17820 if { (ac_try="$ac_link"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17826 $as_echo "$ac_try_echo") >&5
17827 (eval "$ac_link") 2>&5
17829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17836 $as_echo "$ac_try_echo") >&5
17837 (eval "$ac_try") 2>&5
17839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17842 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17843 { $as_echo "$as_me:$LINENO: result: yes" >&5
17844 $as_echo "yes" >&6; }
17847 $as_echo "$as_me: program exited with status $ac_status" >&5
17848 $as_echo "$as_me: failed program was:" >&5
17849 sed 's
/^
/|
/' conftest.$ac_ext >&5
17851 ( exit $ac_status )
17854 { $as_echo "$as_me:$LINENO: result: no" >&5
17855 $as_echo "no" >&6; }
17858 rm -rf conftest.dSYM
17859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17864 CFLAGS="$saved_flags"
17869 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17870 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
17872 saved_CFLAGS="$CFLAGS"
17873 CFLAGS="-fstack-check"
17874 saved_LDFLAGS="$LDFLAGS"
17875 LDFLAGS="-lpthread"
17877 if test "$cross_compiling" = yes; then
17878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17879 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
17880 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17881 See \`config.log
' for more details." >&5
17882 $as_echo "$as_me: error: cannot run test program while cross compiling
17883 See \`config.log' for more details.
" >&2;}
17884 { (exit 1); exit 1; }; }; }
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17893 #include <pthread.h>
17894 #include <sys/resource.h>
17895 #include <unistd.h>
17896 #include <bits/local_lim.h>
17898 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17899 #define STACK_SIZE 8192
17900 #define BUFSIZE 4096
17902 void * func(void *arg)
17912 pthread_attr_t attr;
17917 setrlimit(RLIMIT_CORE, &l);
17918 pthread_attr_init(&attr);
17919 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17920 pthread_attr_setguardsize(&attr, PAGESIZE);
17921 pthread_create(&tid, &attr, func, NULL);
17922 pthread_join(tid, NULL);
17928 rm -f conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17934 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17935 $as_echo "$ac_try_echo") >&5
17936 (eval "$ac_link") 2>&5
17938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17940 { (case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17944 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17945 $as_echo "$ac_try_echo") >&5
17946 (eval "$ac_try") 2>&5
17948 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17949 (exit $ac_status); }; }; then
17951 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17952 $as_echo "no
" >&6; }
17955 $as_echo "$as_me: program exited with status
$ac_status" >&5
17956 $as_echo "$as_me: failed program was
:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ( exit $ac_status )
17962 cat >>confdefs.h <<\_ACEOF
17963 #define NPTL_GUARD_WITHIN_STACK 1
17966 { $as_echo "$as_me:$LINENO: result
: yes" >&5
17967 $as_echo "yes" >&6; }
17970 rm -rf conftest.dSYM
17971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17975 CFLAGS="$saved_CFLAGS"
17976 LDFLAGS="$saved_LDFLAGS"
17981 { $as_echo "$as_me:$LINENO: result
: Error
!" >&5
17982 $as_echo "Error
!" >&6; }
17983 { { $as_echo "$as_me:$LINENO: error
: Bad value
\"$ZFS_CONFIG\" for --with-config,
17984 user kernel|user|all|srpm
" >&5
17985 $as_echo "$as_me: error
: Bad value
\"$ZFS_CONFIG\" for --with-config,
17986 user kernel|user|all|srpm
" >&2;}
17987 { (exit 1); exit 1; }; } ;;
17990 if test "$ZFS_CONFIG" = user ||
17991 test "$ZFS_CONFIG" = all; then
17993 CONFIG_USER_FALSE='#'
17995 CONFIG_USER_TRUE='#'
17999 if test "$ZFS_CONFIG" = kernel ||
18000 test "$ZFS_CONFIG" = all; then
18001 CONFIG_KERNEL_TRUE=
18002 CONFIG_KERNEL_FALSE='#'
18004 CONFIG_KERNEL_TRUE='#'
18005 CONFIG_KERNEL_FALSE=
18010 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled
" >&5
18011 $as_echo_n "checking whether debugging is enabled...
" >&6; }
18012 # Check whether --enable-debug was given.
18013 if test "${enable_debug+set}" = set; then
18014 enableval=$enable_debug;
18020 if test "x
$enable_debug" = xyes; then
18022 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
18023 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
18024 DEBUG_CFLAGS="-DDEBUG -Werror"
18025 DEBUG_STACKFLAGS="-fstack-check"
18029 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
18030 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
18031 DEBUG_CFLAGS="-DNDEBUG"
18032 DEBUG_STACKFLAGS=""
18039 { $as_echo "$as_me:$LINENO: result
: $enable_debug" >&5
18040 $as_echo "$enable_debug" >&6; }
18043 ac_config_files="$ac_config_files Makefile etc
/Makefile man
/Makefile man
/man
8/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 cmd
/Makefile cmd
/zdb
/Makefile cmd
/zfs
/Makefile cmd
/zinject
/Makefile cmd
/zpool
/Makefile cmd
/zpool_id
/Makefile cmd
/zpool_layout
/Makefile cmd
/ztest
/Makefile cmd
/zpios
/Makefile module
/Makefile module
/avl
/Makefile module
/nvpair
/Makefile module
/unicode
/Makefile module
/zcommon
/Makefile module
/zfs
/Makefile module
/zpios
/Makefile include
/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
/zpool-layout
/Makefile
scripts
/common.sh zfs.spec zfs-modules.spec zfs-script-config.sh
"
18046 cat >confcache <<\_ACEOF
18047 # This file is a shell script that caches the results of configure
18048 # tests run on this system so they can be shared between configure
18049 # scripts and configure runs, see configure's option --config-cache.
18050 # It is not useful on other systems. If it contains results you don't
18051 # want to keep, you may remove or edit it.
18053 # config.status only pays attention to the cache file if you give it
18054 # the --recheck option to rerun configure.
18056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18058 # following values.
18062 # The following way of writing the cache mishandles newlines in values,
18063 # but we know of no workaround that is simple, portable, and efficient.
18064 # So, we kill variables containing newlines.
18065 # Ultrix sh set writes to stderr and can't be redirected directly,
18066 # and sets the high bit in the cache file unless we assign to the vars.
18068 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18069 eval ac_val=\$$ac_var
18073 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: cache variable
$ac_var contains a newline
" >&5
18074 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18077 _ | IFS | as_nl) ;; #(
18078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18079 *) $as_unset $ac_var ;;
18085 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18086 *${as_nl}ac_space=\ *)
18087 # `set' does not quote correctly, so add quotes (double-quote
18088 # substitution turns \\\\ into \\, and sed turns \\ into \).
18091 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18094 # `set' quotes correctly as required by POSIX, so do not add quotes.
18095 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18104 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18106 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18108 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18109 if test -w "$cache_file"; then
18110 test "x
$cache_file" != "x
/dev
/null
" &&
18111 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
18112 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18113 cat confcache >$cache_file
18115 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
18116 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18121 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18122 # Let make expand exec_prefix.
18123 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18125 DEFS=-DHAVE_CONFIG_H
18129 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
18130 # 1. Remove the extension, and $U if already installed.
18131 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18132 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18133 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18134 # will be set to the directory where LIBOBJS objects are built.
18135 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
18136 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
18138 LIBOBJS=$ac_libobjs
18140 LTLIBOBJS=$ac_ltlibobjs
18143 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18144 { { $as_echo "$as_me:$LINENO: error
: conditional
\"MAINTAINER_MODE
\" was never defined.
18145 Usually this means the macro was only invoked conditionally.
" >&5
18146 $as_echo "$as_me: error
: conditional
\"MAINTAINER_MODE
\" was never defined.
18147 Usually this means the macro was only invoked conditionally.
" >&2;}
18148 { (exit 1); exit 1; }; }
18150 if test -n "$EXEEXT"; then
18152 am__EXEEXT_FALSE='#'
18154 am__EXEEXT_TRUE='#'
18158 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18159 { { $as_echo "$as_me:$LINENO: error
: conditional
\"AMDEP
\" was never defined.
18160 Usually this means the macro was only invoked conditionally.
" >&5
18161 $as_echo "$as_me: error
: conditional
\"AMDEP
\" was never defined.
18162 Usually this means the macro was only invoked conditionally.
" >&2;}
18163 { (exit 1); exit 1; }; }
18165 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18166 { { $as_echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCC
\" was never defined.
18167 Usually this means the macro was only invoked conditionally.
" >&5
18168 $as_echo "$as_me: error
: conditional
\"am__fastdepCC
\" was never defined.
18169 Usually this means the macro was only invoked conditionally.
" >&2;}
18170 { (exit 1); exit 1; }; }
18172 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18173 { { $as_echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCCAS
\" was never defined.
18174 Usually this means the macro was only invoked conditionally.
" >&5
18175 $as_echo "$as_me: error
: conditional
\"am__fastdepCCAS
\" was never defined.
18176 Usually this means the macro was only invoked conditionally.
" >&2;}
18177 { (exit 1); exit 1; }; }
18179 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18180 { { $as_echo "$as_me:$LINENO: error
: conditional
\"CONFIG_USER
\" was never defined.
18181 Usually this means the macro was only invoked conditionally.
" >&5
18182 $as_echo "$as_me: error
: conditional
\"CONFIG_USER
\" was never defined.
18183 Usually this means the macro was only invoked conditionally.
" >&2;}
18184 { (exit 1); exit 1; }; }
18186 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18187 { { $as_echo "$as_me:$LINENO: error
: conditional
\"CONFIG_KERNEL
\" was never defined.
18188 Usually this means the macro was only invoked conditionally.
" >&5
18189 $as_echo "$as_me: error
: conditional
\"CONFIG_KERNEL
\" was never defined.
18190 Usually this means the macro was only invoked conditionally.
" >&2;}
18191 { (exit 1); exit 1; }; }
18194 : ${CONFIG_STATUS=./config.status}
18196 ac_clean_files_save=$ac_clean_files
18197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18198 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
18199 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
18200 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18202 # Generated by $as_me.
18203 # Run this file to recreate the current configuration.
18204 # Compiler output produced by configure, useful for debugging
18205 # configure, is in config.log if it exists.
18208 ac_cs_recheck=false
18210 SHELL=\${CONFIG_SHELL-$SHELL}
18213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18214 ## --------------------- ##
18215 ## M4sh Initialization. ##
18216 ## --------------------- ##
18218 # Be more Bourne compatible
18219 DUALCASE=1; export DUALCASE # for MKS sh
18220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18224 # is contrary to our usage. Disable this feature.
18225 alias -g '${1+"$@"}'='"$@
"'
18226 setopt NO_GLOB_SUBST
18228 case `(set -o) 2>/dev/null` in
18229 *posix*) set -o posix ;;
18238 # Avoid depending upon Character Ranges.
18239 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18240 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18241 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18242 as_cr_digits='0123456789'
18243 as_cr_alnum=$as_cr_Letters$as_cr_digits
18248 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18249 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18250 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18251 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18252 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
18253 as_echo='printf %s\n'
18254 as_echo_n='printf %s'
18256 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
18257 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18258 as_echo_n='/usr/ucb/echo -n'
18260 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
18261 as_echo_n_body='eval
18265 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
18266 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
18268 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
18270 export as_echo_n_body
18271 as_echo_n='sh -c $as_echo_n_body as_echo'
18273 export as_echo_body
18274 as_echo='sh -c $as_echo_body as_echo'
18277 # The user is always right.
18278 if test "${PATH_SEPARATOR+set}" != set; then
18280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18286 # Support unset when possible.
18287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18295 # We need space, tab and new line, in precisely that order. Quoting is
18296 # there to prevent editors from complaining about space-tab.
18297 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18298 # splitting by setting IFS to empty value.)
18301 # Find who we are. Look in the path if we contain no directory separator.
18303 *[\\/]* ) as_myself=$0 ;;
18304 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18305 for as_dir in $PATH
18308 test -z "$as_dir" && as_dir=.
18309 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18315 # We did not find ourselves, most probably we were run as `sh COMMAND'
18316 # in which case we are not to be found in the path.
18317 if test "x
$as_myself" = x; then
18320 if test ! -f "$as_myself"; then
18321 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
18322 { (exit 1); exit 1; }
18325 # Work around bugs in pre-3.0 UWIN ksh.
18326 for as_var in ENV MAIL MAILPATH
18327 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18339 # Required to use basename.
18340 if expr a : '\(a\)' >/dev/null 2>&1 &&
18341 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
18347 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
18348 as_basename=basename
18354 # Name of the executable.
18355 as_me=`$as_basename -- "$0" ||
18356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18357 X"$0" : 'X\(//\)$' \| \
18358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18360 sed '/^.*\/\([^/][^/]*\)\/*$/{
18379 as_lineno_1=$LINENO
18380 as_lineno_2=$LINENO
18381 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
18382 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
18384 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18385 # uniformly replaced by the line number. The first 'sed' inserts a
18386 # line-number line after each line using $LINENO; the second 'sed'
18387 # does the real work. The second script uses 'N' to pair each
18388 # line-number line with the line containing $LINENO, and appends
18389 # trailing '-' during substitution so that $LINENO is not a special
18390 # case at line end.
18391 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18392 # scripts with optimization help from Paolo Bonzini. Blame Lee
18393 # E. McMahon (1931-1989) for sed's syntax. :-)
18405 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18408 ' >$as_me.lineno &&
18409 chmod +x "$as_me.lineno
" ||
18410 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
18411 { (exit 1); exit 1; }; }
18413 # Don't try to exec as it changes $[0], causing all sort of problems
18414 # (the dirname of $[0] is not the place where we might find the
18415 # original and so on. Autoconf is especially sensitive to this).
18416 . ".
/$as_me.lineno
"
18417 # Exit status is that of the last command.
18422 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
18428 ECHO_C= ECHO_N= ECHO_T=
18429 case `echo -n x` in
18431 case `echo 'x\c'` in
18432 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18438 if expr a : '\(a\)' >/dev/null 2>&1 &&
18439 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
18445 rm -f conf$$ conf$$.exe conf$$.file
18446 if test -d conf$$.dir; then
18447 rm -f conf$$.dir/conf$$.file
18450 mkdir conf$$.dir 2>/dev/null
18452 if (echo >conf$$.file) 2>/dev/null; then
18453 if ln -s conf$$.file conf$$ 2>/dev/null; then
18455 # ... but there are two gotchas:
18456 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18457 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18458 # In both cases, we have to default to `cp -p'.
18459 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18461 elif ln conf$$.file conf$$ 2>/dev/null; then
18469 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18470 rmdir conf$$.dir 2>/dev/null
18472 if mkdir -p . 2>/dev/null; then
18475 test -d ./-p && rmdir ./-p
18479 if test -x / >/dev/null 2>&1; then
18480 as_test_x='test -x'
18482 if ls -dL / >/dev/null 2>&1; then
18489 if test -d "$1"; then
18495 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18496 ???[sx]*):;;*)false;;esac;fi
18500 as_executable_p=$as_test_x
18502 # Sed expression to map a string onto a valid CPP name.
18503 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18505 # Sed expression to map a string onto a valid variable name.
18506 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18511 # Save the log message, to keep $[0] and so on meaningful, and to
18512 # report actual input values of CONFIG_FILES etc. instead of their
18513 # values after options handling.
18515 This
file was extended by
$as_me, which was
18516 generated by GNU Autoconf
2.63. Invocation
command line was
18518 CONFIG_FILES
= $CONFIG_FILES
18519 CONFIG_HEADERS
= $CONFIG_HEADERS
18520 CONFIG_LINKS
= $CONFIG_LINKS
18521 CONFIG_COMMANDS
= $CONFIG_COMMANDS
18524 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
18529 case $ac_config_files in *"
18530 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18533 case $ac_config_headers in *"
18534 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18539 # Files that config.status was made for.
18540 config_files="$ac_config_files"
18541 config_headers="$ac_config_headers"
18542 config_commands="$ac_config_commands"
18546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18548 \
`$as_me' instantiates files from templates according to the
18549 current configuration.
18551 Usage: $0 [OPTION]... [FILE]...
18553 -h, --help print this help, then exit
18554 -V, --version print version number and configuration settings, then exit
18555 -q, --quiet, --silent
18556 do not print progress messages
18557 -d, --debug don't remove temporary files
18558 --recheck update $as_me by reconfiguring in the same conditions
18559 --file=FILE[:TEMPLATE]
18560 instantiate the configuration file FILE
18561 --header=FILE[:TEMPLATE]
18562 instantiate the configuration header FILE
18564 Configuration files:
18567 Configuration headers:
18570 Configuration commands:
18573 Report bugs to <bug-autoconf@gnu.org>."
18576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18579 configured by $0, generated by GNU Autoconf 2.63,
18580 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18582 Copyright (C) 2008 Free Software Foundation, Inc.
18583 This config.status script is free software; the Free Software Foundation
18584 gives unlimited permission to copy, distribute and modify it."
18591 test -n "\$AWK" || AWK=awk
18594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18595 # The default lists apply if the user does not specify any file.
18601 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18602 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18613 # Handling of the options.
18614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18616 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18617 $as_echo "$ac_cs_version"; exit ;;
18618 --debug | --debu | --deb | --de | --d | -d )
18620 --file | --fil | --fi | --f )
18623 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
18625 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18626 ac_need_defaults=false;;
18627 --header | --heade | --head | --hea )
18630 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
18632 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18633 ac_need_defaults=false;;
18635 # Conflict between --help and --header
18636 { $as_echo "$as_me: error: ambiguous option: $1
18637 Try \`$0 --help' for more information." >&2
18638 { (exit 1); exit 1; }; };;
18639 --help | --hel | -h )
18640 $as_echo "$ac_cs_usage"; exit ;;
18641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18642 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18645 # This is an error.
18646 -*) { $as_echo "$as_me: error: unrecognized option: $1
18647 Try \`$0 --help' for more information.
" >&2
18648 { (exit 1); exit 1; }; } ;;
18650 *) ac_config_targets="$ac_config_targets $1"
18651 ac_need_defaults=false ;;
18657 ac_configure_extra_args=
18659 if $ac_cs_silent; then
18661 ac_configure_extra_args="$ac_configure_extra_args --silent"
18665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18666 if \$ac_cs_recheck; then
18667 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18669 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
18670 CONFIG_SHELL='$SHELL'
18671 export CONFIG_SHELL
18676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18681 ## Running $as_me. ##
18687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18691 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18694 # The HP-UX ksh and POSIX shell print the target directory to stdout
18695 # if CDPATH is set.
18696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18698 sed_quote_subst='$sed_quote_subst'
18699 double_quote_subst='$double_quote_subst'
18700 delay_variable_subst='$delay_variable_subst'
18701 macro_version='`$ECHO "X
$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18702 macro_revision='`$ECHO "X
$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18703 enable_shared='`$ECHO "X
$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18704 enable_static='`$ECHO "X
$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18705 pic_mode='`$ECHO "X
$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18706 enable_fast_install='`$ECHO "X
$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18707 host_alias='`$ECHO "X
$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18708 host='`$ECHO "X
$host" | $Xsed -e "$delay_single_quote_subst"`'
18709 host_os='`$ECHO "X
$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18710 build_alias='`$ECHO "X
$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18711 build='`$ECHO "X
$build" | $Xsed -e "$delay_single_quote_subst"`'
18712 build_os='`$ECHO "X
$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18713 SED='`$ECHO "X
$SED" | $Xsed -e "$delay_single_quote_subst"`'
18714 Xsed='`$ECHO "X
$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18715 GREP='`$ECHO "X
$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18716 EGREP='`$ECHO "X
$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18717 FGREP='`$ECHO "X
$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18718 LD='`$ECHO "X
$LD" | $Xsed -e "$delay_single_quote_subst"`'
18719 NM='`$ECHO "X
$NM" | $Xsed -e "$delay_single_quote_subst"`'
18720 LN_S='`$ECHO "X
$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18721 max_cmd_len='`$ECHO "X
$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18722 ac_objext='`$ECHO "X
$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18723 exeext='`$ECHO "X
$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18724 lt_unset='`$ECHO "X
$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18725 lt_SP2NL='`$ECHO "X
$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18726 lt_NL2SP='`$ECHO "X
$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18727 reload_flag='`$ECHO "X
$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18728 reload_cmds='`$ECHO "X
$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18729 OBJDUMP='`$ECHO "X
$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18730 deplibs_check_method='`$ECHO "X
$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18731 file_magic_cmd='`$ECHO "X
$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18732 AR='`$ECHO "X
$AR" | $Xsed -e "$delay_single_quote_subst"`'
18733 AR_FLAGS='`$ECHO "X
$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18734 STRIP='`$ECHO "X
$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18735 RANLIB='`$ECHO "X
$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18736 old_postinstall_cmds='`$ECHO "X
$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18737 old_postuninstall_cmds='`$ECHO "X
$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18738 old_archive_cmds='`$ECHO "X
$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18739 CC='`$ECHO "X
$CC" | $Xsed -e "$delay_single_quote_subst"`'
18740 CFLAGS='`$ECHO "X
$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18741 compiler='`$ECHO "X
$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18742 GCC='`$ECHO "X
$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18743 lt_cv_sys_global_symbol_pipe='`$ECHO "X
$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18744 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X
$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18745 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"`'
18746 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"`'
18747 objdir='`$ECHO "X
$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18748 SHELL='`$ECHO "X
$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18749 ECHO='`$ECHO "X
$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18750 MAGIC_CMD='`$ECHO "X
$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18751 lt_prog_compiler_no_builtin_flag='`$ECHO "X
$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18752 lt_prog_compiler_wl='`$ECHO "X
$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18753 lt_prog_compiler_pic='`$ECHO "X
$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18754 lt_prog_compiler_static='`$ECHO "X
$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18755 lt_cv_prog_compiler_c_o='`$ECHO "X
$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18756 need_locks='`$ECHO "X
$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18757 DSYMUTIL='`$ECHO "X
$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18758 NMEDIT='`$ECHO "X
$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18759 LIPO='`$ECHO "X
$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18760 OTOOL='`$ECHO "X
$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18761 OTOOL64='`$ECHO "X
$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18762 libext='`$ECHO "X
$libext" | $Xsed -e "$delay_single_quote_subst"`'
18763 shrext_cmds='`$ECHO "X
$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18764 extract_expsyms_cmds='`$ECHO "X
$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18765 archive_cmds_need_lc='`$ECHO "X
$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18766 enable_shared_with_static_runtimes='`$ECHO "X
$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18767 export_dynamic_flag_spec='`$ECHO "X
$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18768 whole_archive_flag_spec='`$ECHO "X
$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18769 compiler_needs_object='`$ECHO "X
$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18770 old_archive_from_new_cmds='`$ECHO "X
$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18771 old_archive_from_expsyms_cmds='`$ECHO "X
$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18772 archive_cmds='`$ECHO "X
$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18773 archive_expsym_cmds='`$ECHO "X
$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18774 module_cmds='`$ECHO "X
$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18775 module_expsym_cmds='`$ECHO "X
$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18776 with_gnu_ld='`$ECHO "X
$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18777 allow_undefined_flag='`$ECHO "X
$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18778 no_undefined_flag='`$ECHO "X
$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18779 hardcode_libdir_flag_spec='`$ECHO "X
$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18780 hardcode_libdir_flag_spec_ld='`$ECHO "X
$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18781 hardcode_libdir_separator='`$ECHO "X
$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18782 hardcode_direct='`$ECHO "X
$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18783 hardcode_direct_absolute='`$ECHO "X
$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18784 hardcode_minus_L='`$ECHO "X
$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18785 hardcode_shlibpath_var='`$ECHO "X
$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18786 hardcode_automatic='`$ECHO "X
$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18787 inherit_rpath='`$ECHO "X
$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18788 link_all_deplibs='`$ECHO "X
$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18789 fix_srcfile_path='`$ECHO "X
$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18790 always_export_symbols='`$ECHO "X
$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18791 export_symbols_cmds='`$ECHO "X
$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18792 exclude_expsyms='`$ECHO "X
$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18793 include_expsyms='`$ECHO "X
$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18794 prelink_cmds='`$ECHO "X
$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18795 file_list_spec='`$ECHO "X
$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18796 variables_saved_for_relink='`$ECHO "X
$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18797 need_lib_prefix='`$ECHO "X
$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18798 need_version='`$ECHO "X
$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18799 version_type='`$ECHO "X
$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18800 runpath_var='`$ECHO "X
$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18801 shlibpath_var='`$ECHO "X
$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18802 shlibpath_overrides_runpath='`$ECHO "X
$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18803 libname_spec='`$ECHO "X
$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18804 library_names_spec='`$ECHO "X
$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18805 soname_spec='`$ECHO "X
$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18806 postinstall_cmds='`$ECHO "X
$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18807 postuninstall_cmds='`$ECHO "X
$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18808 finish_cmds='`$ECHO "X
$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18809 finish_eval='`$ECHO "X
$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18810 hardcode_into_libs='`$ECHO "X
$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18811 sys_lib_search_path_spec='`$ECHO "X
$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18812 sys_lib_dlsearch_path_spec='`$ECHO "X
$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18813 hardcode_action='`$ECHO "X
$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18814 enable_dlopen='`$ECHO "X
$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18815 enable_dlopen_self='`$ECHO "X
$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18816 enable_dlopen_self_static='`$ECHO "X
$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18817 old_striplib='`$ECHO "X
$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18818 striplib='`$ECHO "X
$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18821 LTCFLAGS='$LTCFLAGS'
18822 compiler='$compiler_DEFAULT'
18824 # Quote evaled strings.
18836 deplibs_check_method \
18845 lt_cv_sys_global_symbol_pipe \
18846 lt_cv_sys_global_symbol_to_cdecl \
18847 lt_cv_sys_global_symbol_to_c_name_address \
18848 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18851 lt_prog_compiler_no_builtin_flag \
18852 lt_prog_compiler_wl \
18853 lt_prog_compiler_pic \
18854 lt_prog_compiler_static \
18855 lt_cv_prog_compiler_c_o \
18863 export_dynamic_flag_spec \
18864 whole_archive_flag_spec \
18865 compiler_needs_object \
18867 allow_undefined_flag \
18868 no_undefined_flag \
18869 hardcode_libdir_flag_spec \
18870 hardcode_libdir_flag_spec_ld \
18871 hardcode_libdir_separator \
18876 variables_saved_for_relink \
18878 library_names_spec \
18883 case \`eval \\\\\$ECHO "X
\\\\\$\
$var"\` in
18884 *[\\\\\\\`\\"\\\$
]*)
18885 eval "lt_\$var=\\\\\\"\\\
`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18888 eval "lt_\$var=\\\\\\"\\\$\
$var\\\\\\""
18893 # Double-quote double-evaled strings.
18894 for var
in reload_cmds \
18895 old_postinstall_cmds \
18896 old_postuninstall_cmds \
18898 extract_expsyms_cmds \
18899 old_archive_from_new_cmds \
18900 old_archive_from_expsyms_cmds \
18902 archive_expsym_cmds \
18904 module_expsym_cmds \
18905 export_symbols_cmds \
18908 postuninstall_cmds \
18910 sys_lib_search_path_spec \
18911 sys_lib_dlsearch_path_spec
; do
18912 case \
`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18913 *[\\\\\\\
`\\"\\\$]*)
18914 eval "lt_\$var=\\\\\\"\\\`\\\
$ECHO \\"X\\\$\$var\\" |
\\\
$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\
`\\\\\\""
18917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18922 # Fix-up fallback echo if it was mangled by the above quoting rules.
18924 *'\\\$0 --fallback-echo"') lt_ECHO=\`\
$ECHO "X\$lt_ECHO" | \
$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\
`
18928 ac_aux_dir='$ac_aux_dir'
18929 xsi_shell='$xsi_shell'
18930 lt_shell_append='$lt_shell_append'
18932 # See if we are running on zsh, and set the options which allow our
18933 # commands through without removal of \ escapes INIT.
18934 if test -n "\${ZSH_VERSION+set}" ; then
18935 setopt NO_GLOB_SUBST
18941 TIMESTAMP='$TIMESTAMP'
18950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18952 # Handling of arguments.
18953 for ac_config_target in $ac_config_targets
18955 case $ac_config_target in
18956 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
18957 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18958 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18959 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18960 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
18961 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18962 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
18963 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18964 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
18965 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
18966 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
18967 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
18968 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
18969 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
18970 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
18971 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
18972 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
18973 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
18974 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
18975 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
18976 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
18977 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
18978 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
18979 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
18980 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
18981 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
18982 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
18983 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
18984 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
18985 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
18986 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
18987 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
18988 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
18989 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
18990 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
18991 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
18992 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
18993 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
18994 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
18995 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
18996 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
18997 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
18998 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
18999 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19000 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
19001 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
19002 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
19003 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
19004 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19005 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
19006 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
19007 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
19008 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
19009 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
19010 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
19011 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
19012 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
19014 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19015 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19016 { (exit 1); exit 1; }; };;
19021 # If the user did not use the arguments to specify the items to instantiate,
19022 # then the envvar interface is used. Set only those that are not.
19023 # We use the long form for the default assignment because of an extremely
19024 # bizarre bug on SunOS 4.1.3.
19025 if $ac_need_defaults; then
19026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19031 # Have a temporary directory for convenience. Make it in the build tree
19032 # simply because there is no reason against having it here, and in addition,
19033 # creating and moving files from /tmp can sometimes cause problems.
19034 # Hook for its removal unless debugging.
19035 # Note that there is a small window in which the directory will not be cleaned:
19036 # after its creation but before its name has been assigned to `$tmp'.
19040 trap 'exit_status
=$?
19041 { test -z "$tmp" ||
test ! -d "$tmp" ||
rm -fr "$tmp"; } && exit $exit_status
19043 trap '{ (exit 1); exit 1; }' 1 2 13 15
19045 # Create a (secure) tmp directory for tmp files.
19048 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19049 test -n "$tmp" && test -d "$tmp"
19052 tmp=./conf$$-$RANDOM
19053 (umask 077 && mkdir "$tmp")
19056 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19057 { (exit 1); exit 1; }
19060 # Set up the scripts for CONFIG_FILES section.
19061 # No need to generate them if there are no CONFIG_FILES.
19062 # This happens for instance with `./config.status config.h'.
19063 if test -n "$CONFIG_FILES"; then
19067 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19068 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19071 ac_cs_awk_cr
=$ac_cr
19074 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19079 echo "cat >conf$$subs.awk <<_ACEOF" &&
19080 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19082 } >conf$$subs.sh ||
19083 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19084 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19085 { (exit 1); exit 1; }; }
19086 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19088 for ac_last_try in false false false false false :; do
19089 . ./conf$$subs.sh ||
19090 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19091 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19092 { (exit 1); exit 1; }; }
19094 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19095 if test $ac_delim_n = $ac_delim_num; then
19097 elif $ac_last_try; then
19098 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19099 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19100 { (exit 1); exit 1; }; }
19102 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19105 rm -f conf$$subs.sh
19107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19108 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
19112 s/^/S["/; s
/!.
*/"]=/
19122 s/\(.\{148\}\).*/\1/
19124 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19129 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19136 s/\(.\{148\}\).*/\1/
19138 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19142 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19147 ' <conf$$subs.awk | sed '
19152 ' >>$CONFIG_STATUS || ac_write_fail=1
19153 rm -f conf$$subs.awk
19154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19156 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
19157 for (key in S) S_is_set[key] = 1
19163 nfields = split(line, field, "@
")
19165 len = length(field[1])
19166 for (i = 2; i < nfields; i++) {
19168 keylen = length(key)
19169 if (S_is_set[key]) {
19171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19172 len += length(value) + length(field[++i])
19183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19184 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19185 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19188 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
19189 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
19190 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
19191 { (exit 1); exit 1; }; }
19194 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19195 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
19196 # trailing colons and then remove the whole line if VPATH becomes empty
19197 # (actually we leave an empty line to preserve line numbers).
19198 if test "x
$srcdir" = x.; then
19199 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19200 s/:*\$(srcdir):*/:/
19201 s/:*\${srcdir}:*/:/
19203 s/^\([^=]*=[ ]*\):*/\1/
19209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19210 fi # test -n "$CONFIG_FILES"
19212 # Set up the scripts for CONFIG_HEADERS section.
19213 # No need to generate them if there are no CONFIG_HEADERS.
19214 # This happens for instance with `./config.status Makefile'.
19215 if test -n "$CONFIG_HEADERS"; then
19216 cat >"$tmp/defines.
awk" <<\_ACAWK ||
19220 # Transform confdefs.h into an awk script `defines.awk', embedded as
19221 # here-document in config.status, that substitutes the proper values into
19222 # config.h.in to produce config.h.
19224 # Create a delimiter string that does not exist in confdefs.h, to ease
19225 # handling of long lines.
19227 for ac_last_try in false false :; do
19228 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
19229 if test -z "$ac_t"; then
19231 elif $ac_last_try; then
19232 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
19233 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
19234 { (exit 1); exit 1; }; }
19236 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19240 # For the awk script, D is an array of macro values keyed by name,
19241 # likewise P contains macro parameters if any. Preserve backslash
19242 # newline sequences.
19244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19246 s/.\{148\}/&'"$ac_delim"'/g
19249 s/^[ ]*#[ ]*define[ ][ ]*/ /
19256 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19258 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
19262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
19263 D["\
1"]=" \
3\\\\\\n
"\\/p
19265 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
19270 s/.\{148\}/&'"$ac_delim"'/g
19275 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
19278 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
19280 ' <confdefs.h | sed '
19281 s/'"$ac_delim"'/"\\\
19282 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19285 for (key in D) D_is_set[key] = 1
19288 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19290 split(line, arg, " ")
19291 if (arg[1] == "#") {
19295 defundef
= substr
(arg
[1], 2)
19298 split(mac1
, mac2
, "(") #)
19300 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
19301 if (D_is_set
[macro
]) {
19302 # Preserve the white space surrounding the "#".
19303 print prefix
"define", macro P
[macro
] D
[macro
]
19306 # Replace #undef with comments. This is necessary, for example,
19307 # in the case of _POSIX_SOURCE, which is predefined and required
19308 # on some systems where configure will not decide to define it.
19309 if (defundef
== "undef") {
19310 print
"/*", prefix defundef
, macro
, "*/"
19318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19319 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19320 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19321 { (exit 1); exit 1; }; }
19322 fi # test -n "$CONFIG_HEADERS"
19325 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19330 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19332 case $ac_mode$ac_tag in
19334 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19335 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19336 { (exit 1); exit 1; }; };;
19337 :[FH
]-) ac_tag
=-:-;;
19338 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19355 -) ac_f
="$tmp/stdin";;
19356 *) # Look for the file first in the build tree, then in the source tree
19357 # (if the path is not absolute). The absolute path cannot be DOS-style,
19358 # because $ac_f cannot contain `:'.
19362 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19364 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19365 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19366 { (exit 1); exit 1; }; };;
19368 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19369 ac_file_inputs
="$ac_file_inputs '$ac_f'"
19372 # Let's still pretend it is `configure' which instantiates (i.e., don't
19373 # use $as_me), people would be surprised to read:
19374 # /* config.h. Generated by config.status. */
19375 configure_input
='Generated from '`
19376 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19378 if test x
"$ac_file" != x-
; then
19379 configure_input
="$ac_file. $configure_input"
19380 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19381 $as_echo "$as_me: creating $ac_file" >&6;}
19383 # Neutralize special characters interpreted by sed in replacement strings.
19384 case $configure_input in #(
19385 *\
&* |
*\|
* |
*\\* )
19386 ac_sed_conf_input
=`$as_echo "$configure_input" |
19387 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19388 *) ac_sed_conf_input
=$configure_input;;
19392 *:-:* |
*:-) cat >"$tmp/stdin" \
19393 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19394 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19395 { (exit 1); exit 1; }; } ;;
19400 ac_dir
=`$as_dirname -- "$ac_file" ||
19401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19402 X"$ac_file" : 'X\(//\)[^/]' \| \
19403 X"$ac_file" : 'X\(//\)$' \| \
19404 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19405 $as_echo X"$ac_file" |
19406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19410 /^X\(\/\/\)[^/].*/{
19425 -*) as_dir
=.
/$as_dir;;
19427 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
19431 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19432 *) as_qdir
=$as_dir;;
19434 as_dirs
="'$as_qdir' $as_dirs"
19435 as_dir
=`$as_dirname -- "$as_dir" ||
19436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19437 X"$as_dir" : 'X\(//\)[^/]' \| \
19438 X"$as_dir" : 'X\(//\)$' \| \
19439 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19440 $as_echo X"$as_dir" |
19441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19445 /^X\(\/\/\)[^/].*/{
19458 test -d "$as_dir" && break
19460 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19461 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19462 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19463 { (exit 1); exit 1; }; }; }
19467 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19469 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19470 # A ".." for each directory in $ac_dir_suffix.
19471 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19472 case $ac_top_builddir_sub in
19473 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19474 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19477 ac_abs_top_builddir
=$ac_pwd
19478 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19479 # for backward compatibility:
19480 ac_top_builddir
=$ac_top_build_prefix
19483 .
) # We are building in place.
19485 ac_top_srcdir
=$ac_top_builddir_sub
19486 ac_abs_top_srcdir
=$ac_pwd ;;
19487 [\\/]* | ?
:[\\/]* ) # Absolute name.
19488 ac_srcdir
=$srcdir$ac_dir_suffix;
19489 ac_top_srcdir
=$srcdir
19490 ac_abs_top_srcdir
=$srcdir ;;
19491 *) # Relative name.
19492 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19493 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19494 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19496 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19506 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19507 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19509 ac_MKDIR_P
=$MKDIR_P
19511 [\\/$
]* | ?
:[\\/]* ) ;;
19512 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19517 # If the template does not know about datarootdir, expand it.
19518 # FIXME: This hack should be removed a few years after 2.60.
19519 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19532 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19533 *datarootdir
*) ac_datarootdir_seen
=yes;;
19534 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19535 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19536 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19539 ac_datarootdir_hack='
19540 s&@datadir@&$datadir&g
19541 s&@docdir@&$docdir&g
19542 s&@infodir@&$infodir&g
19543 s&@localedir@&$localedir&g
19544 s&@mandir@&$mandir&g
19545 s&\\\${datarootdir}&$datarootdir&g' ;;
19549 # Neutralize VPATH when `$srcdir' = `.'.
19550 # Shell code in configure.ac might set extrasub.
19551 # FIXME: do we really want to maintain this feature?
19552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19553 ac_sed_extra="$ac_vpsub
19556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19558 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19559 s|@configure_input@|
$ac_sed_conf_input|
;t t
19560 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19561 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19562 s
&@srcdir@
&$ac_srcdir&;t t
19563 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19564 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19565 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19566 s
&@builddir@
&$ac_builddir&;t t
19567 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19568 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19569 s
&@INSTALL@
&$ac_INSTALL&;t t
19570 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19571 $ac_datarootdir_hack
19573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
19574 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
19575 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
19576 { (exit 1); exit 1; }; }
19578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19579 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
19580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19581 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19582 which seems to be undefined. Please make sure it is defined." >&5
19583 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19584 which seems to be undefined. Please make sure it is defined." >&2;}
19588 -) cat "$tmp/out" && rm -f "$tmp/out";;
19589 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19591 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19592 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19593 { (exit 1); exit 1; }; }
19599 if test x"$ac_file" != x-; then
19601 $as_echo "/* $configure_input */" \
19602 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19603 } >"$tmp/config.h" \
19604 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19605 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19606 { (exit 1); exit 1; }; }
19607 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19608 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19609 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19612 mv "$tmp/config.h" "$ac_file" \
19613 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19614 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19615 { (exit 1); exit 1; }; }
19618 $as_echo "/* $configure_input */" \
19619 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19620 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19621 $as_echo "$as_me: error: could not create -" >&2;}
19622 { (exit 1); exit 1; }; }
19624 # Compute "$ac_file"'s index
in $config_headers.
19627 for _am_header
in $config_headers :; do
19628 case $_am_header in
19629 $_am_arg |
$_am_arg:* )
19632 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19635 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19636 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637 X"$_am_arg" : 'X\(//\)[^/]' \| \
19638 X"$_am_arg" : 'X\(//\)$' \| \
19639 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19640 $as_echo X"$_am_arg" |
19641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19645 /^X\(\/\/\)[^/].*/{
19657 s/.*/./; q'`/stamp-h
$_am_stamp_count
19660 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19661 $as_echo "$as_me: executing $ac_file commands" >&6;}
19666 case $ac_file$ac_mode in
19668 (mv zfs_config.h zfs_config.h.tmp
&&
19669 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
19670 rm zfs_config.h.tmp
) ||
exit 1 ;;
19671 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19672 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19673 # are listed without --file. Let's play safe and only enable the eval
19674 # if we detect the quoting.
19675 case $CONFIG_FILES in
19676 *\'*) eval set x
"$CONFIG_FILES" ;;
19677 *) set x
$CONFIG_FILES ;;
19682 # Strip MF so we end up with the name of the file.
19683 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19684 # Check whether this is an Automake generated Makefile or not.
19685 # We used to match only the files named `Makefile.in', but
19686 # some people rename them; so instead we look at the file content.
19687 # Grep'ing the first line is not enough: some people post-process
19688 # each Makefile.in and add a new line on top of each file to say so.
19689 # Grep'ing the whole file is not good either: AIX grep has a line
19690 # limit of 2048, but all sed's we know have understand at least 4000.
19691 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19692 dirpart
=`$as_dirname -- "$mf" ||
19693 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19694 X"$mf" : 'X\(//\)[^/]' \| \
19695 X"$mf" : 'X\(//\)$' \| \
19696 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19702 /^X\(\/\/\)[^/].*/{
19718 # Extract the definition of DEPDIR, am__include, and am__quote
19719 # from the Makefile without running `make'.
19720 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19721 test -z "$DEPDIR" && continue
19722 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19723 test -z "am__include" && continue
19724 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19725 # When using ansi2knr, U may be empty or an underscore; expand it
19726 U
=`sed -n 's/^U = //p' < "$mf"`
19727 # Find all dependency output files, they are included files with
19728 # $(DEPDIR) in their names. We invoke sed twice because it is the
19729 # simplest approach to changing $(DEPDIR) to its actual value in the
19731 for file in `sed -n "
19732 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19733 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19734 # Make sure the directory exists.
19735 test -f "$dirpart/$file" && continue
19736 fdir
=`$as_dirname -- "$file" ||
19737 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19738 X"$file" : 'X\(//\)[^/]' \| \
19739 X"$file" : 'X\(//\)$' \| \
19740 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19741 $as_echo X"$file" |
19742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19746 /^X\(\/\/\)[^/].*/{
19759 { as_dir
=$dirpart/$fdir
19761 -*) as_dir
=.
/$as_dir;;
19763 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
19767 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19768 *) as_qdir
=$as_dir;;
19770 as_dirs
="'$as_qdir' $as_dirs"
19771 as_dir
=`$as_dirname -- "$as_dir" ||
19772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19773 X"$as_dir" : 'X\(//\)[^/]' \| \
19774 X"$as_dir" : 'X\(//\)$' \| \
19775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19776 $as_echo X"$as_dir" |
19777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19781 /^X\(\/\/\)[^/].*/{
19794 test -d "$as_dir" && break
19796 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19797 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19798 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19799 { (exit 1); exit 1; }; }; }
19800 # echo "creating $dirpart/$file"
19801 echo '# dummy' > "$dirpart/$file"
19808 # See if we are running on zsh, and set the options which allow our
19809 # commands through without removal of \ escapes.
19810 if test -n "${ZSH_VERSION+set}" ; then
19811 setopt NO_GLOB_SUBST
19814 cfgfile
="${ofile}T"
19815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19818 cat <<_LT_EOF >> "$cfgfile"
19821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19826 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19827 # 2006, 2007, 2008 Free Software Foundation, Inc.
19828 # Written by Gordon Matzigkeit, 1996
19830 # This file is part of GNU Libtool.
19832 # GNU Libtool is free software; you can redistribute it and/or
19833 # modify it under the terms of the GNU General Public License as
19834 # published by the Free Software Foundation; either version 2 of
19835 # the License, or (at your option) any later version.
19837 # As a special exception to the GNU General Public License,
19838 # if you distribute this file as part of a program or library that
19839 # is built using GNU Libtool, you may include this file under the
19840 # same distribution terms that you use for the rest of that program.
19842 # GNU Libtool is distributed in the hope that it will be useful,
19843 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19844 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19845 # GNU General Public License for more details.
19847 # You should have received a copy of the GNU General Public License
19848 # along with GNU Libtool; see the file COPYING. If not, a copy
19849 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19850 # obtained by writing to the Free Software Foundation, Inc.,
19851 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19854 # The names of the tagged configurations supported by this script.
19857 # ### BEGIN LIBTOOL CONFIG
19859 # Which release of libtool.m4 was used?
19860 macro_version=$macro_version
19861 macro_revision=$macro_revision
19863 # Whether or not to build shared libraries.
19864 build_libtool_libs=$enable_shared
19866 # Whether or not to build static libraries.
19867 build_old_libs=$enable_static
19869 # What type of objects to build.
19872 # Whether or not to optimize for fast installation.
19873 fast_install=$enable_fast_install
19876 host_alias=$host_alias
19880 # The build system.
19881 build_alias=$build_alias
19885 # A sed program that does not truncate output.
19888 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19889 Xsed="\$SED -e 1s/^X//"
19891 # A grep program that handles long lines.
19897 # A literal string matcher.
19900 # A BSD- or MS-compatible name lister.
19903 # Whether we need soft or hard links.
19906 # What is the maximum length of a command?
19907 max_cmd_len=$max_cmd_len
19909 # Object file suffix (normally "o").
19912 # Executable file suffix (normally "").
19915 # whether the shell understands "unset".
19918 # turn spaces into newlines.
19921 # turn newlines into spaces.
19924 # How to create reloadable object files.
19925 reload_flag=$lt_reload_flag
19926 reload_cmds=$lt_reload_cmds
19928 # An object symbol dumper.
19929 OBJDUMP=$lt_OBJDUMP
19931 # Method to check whether dependent libraries are shared objects.
19932 deplibs_check_method=$lt_deplibs_check_method
19934 # Command to use when deplibs_check_method == "file_magic".
19935 file_magic_cmd=$lt_file_magic_cmd
19939 AR_FLAGS=$lt_AR_FLAGS
19941 # A symbol stripping program.
19944 # Commands used to install an old-style archive.
19946 old_postinstall_cmds=$lt_old_postinstall_cmds
19947 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19952 # LTCC compiler flags.
19953 LTCFLAGS=$lt_CFLAGS
19955 # Take the output of nm and produce a listing of raw symbols and C names.
19956 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19958 # Transform the output of nm in a proper C declaration.
19959 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19961 # Transform the output of nm in a C name address pair.
19962 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19964 # Transform the output of nm in a C name address pair when lib prefix is needed.
19965 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19967 # The name of the directory that contains temporary libtool files.
19970 # Shell to use when invoking shell scripts.
19973 # An echo program that does not interpret backslashes.
19976 # Used to examine libraries when file_magic_cmd begins with "file".
19977 MAGIC_CMD=$MAGIC_CMD
19979 # Must we lock files when doing compilation?
19980 need_locks=$lt_need_locks
19982 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19983 DSYMUTIL=$lt_DSYMUTIL
19985 # Tool to change global to local symbols on Mac OS X.
19988 # Tool to manipulate fat objects and archives on Mac OS X.
19991 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19994 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19995 OTOOL64=$lt_OTOOL64
19997 # Old archive suffix (normally "a").
20000 # Shared library suffix (normally ".so").
20001 shrext_cmds=$lt_shrext_cmds
20003 # The commands to extract the exported symbol list from a shared archive.
20004 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20006 # Variables whose values should be saved in libtool wrapper scripts and
20007 # restored at link time.
20008 variables_saved_for_relink=$lt_variables_saved_for_relink
20010 # Do we need the "lib" prefix for modules?
20011 need_lib_prefix=$need_lib_prefix
20013 # Do we need a version for libraries?
20014 need_version=$need_version
20016 # Library versioning type.
20017 version_type=$version_type
20019 # Shared library runtime path variable.
20020 runpath_var=$runpath_var
20022 # Shared library path variable.
20023 shlibpath_var=$shlibpath_var
20025 # Is shlibpath searched before the hard-coded library search path?
20026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20028 # Format of library name prefix.
20029 libname_spec=$lt_libname_spec
20031 # List of archive names. First name is the real one, the rest are links.
20032 # The last name is the one that the linker finds with -lNAME
20033 library_names_spec=$lt_library_names_spec
20035 # The coded name of the library, if different from the real name.
20036 soname_spec=$lt_soname_spec
20038 # Command to use after installation of a shared archive.
20039 postinstall_cmds=$lt_postinstall_cmds
20041 # Command to use after uninstallation of a shared archive.
20042 postuninstall_cmds=$lt_postuninstall_cmds
20044 # Commands used to finish a libtool library installation in a directory.
20045 finish_cmds=$lt_finish_cmds
20047 # As "finish_cmds", except a single script fragment to be evaled but
20049 finish_eval=$lt_finish_eval
20051 # Whether we should hardcode library paths into libraries.
20052 hardcode_into_libs=$hardcode_into_libs
20054 # Compile-time system search path for libraries.
20055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20057 # Run-time system search path for libraries.
20058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20060 # Whether dlopen is supported.
20061 dlopen_support=$enable_dlopen
20063 # Whether dlopen of programs is supported.
20064 dlopen_self=$enable_dlopen_self
20066 # Whether dlopen of statically linked programs is supported.
20067 dlopen_self_static=$enable_dlopen_self_static
20069 # Commands to strip libraries.
20070 old_striplib=$lt_old_striplib
20071 striplib=$lt_striplib
20074 # The linker used to build libraries.
20077 # Commands used to build an old-style archive.
20078 old_archive_cmds=$lt_old_archive_cmds
20080 # A language specific compiler.
20083 # Is the compiler the GNU compiler?
20086 # Compiler flag to turn off builtin functions.
20087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20089 # How to pass a linker flag through the compiler.
20090 wl=$lt_lt_prog_compiler_wl
20092 # Additional compiler flags for building library objects.
20093 pic_flag=$lt_lt_prog_compiler_pic
20095 # Compiler flag to prevent dynamic linking.
20096 link_static_flag=$lt_lt_prog_compiler_static
20098 # Does compiler simultaneously support -c and -o options?
20099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20101 # Whether or not to add -lc for building shared libraries.
20102 build_libtool_need_lc=$archive_cmds_need_lc
20104 # Whether or not to disallow shared libs when runtime libs are static.
20105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20107 # Compiler flag to allow reflexive dlopens.
20108 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20110 # Compiler flag to generate shared objects directly from archives.
20111 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20113 # Whether the compiler copes with passing no objects directly.
20114 compiler_needs_object=$lt_compiler_needs_object
20116 # Create an old-style archive from a shared archive.
20117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20119 # Create a temporary old-style archive to link instead of a shared archive.
20120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20122 # Commands used to build a shared archive.
20123 archive_cmds=$lt_archive_cmds
20124 archive_expsym_cmds=$lt_archive_expsym_cmds
20126 # Commands used to build a loadable module if different from building
20127 # a shared archive.
20128 module_cmds=$lt_module_cmds
20129 module_expsym_cmds=$lt_module_expsym_cmds
20131 # Whether we are building with GNU ld or not.
20132 with_gnu_ld=$lt_with_gnu_ld
20134 # Flag that allows shared libraries with undefined symbols to be built.
20135 allow_undefined_flag=$lt_allow_undefined_flag
20137 # Flag that enforces no undefined symbols.
20138 no_undefined_flag=$lt_no_undefined_flag
20140 # Flag to hardcode \$libdir into a binary during linking.
20141 # This must work even if \$libdir does not exist
20142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20144 # If ld is used when linking, flag to hardcode \$libdir into a binary
20145 # during linking. This must work even if \$libdir does not exist.
20146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20148 # Whether we need a single "-rpath" flag with a separated argument.
20149 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20152 # DIR into the resulting binary.
20153 hardcode_direct=$hardcode_direct
20155 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20156 # DIR into the resulting binary and the resulting library dependency is
20157 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20158 # library is relocated.
20159 hardcode_direct_absolute=$hardcode_direct_absolute
20161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20162 # into the resulting binary.
20163 hardcode_minus_L=$hardcode_minus_L
20165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20166 # into the resulting binary.
20167 hardcode_shlibpath_var=$hardcode_shlibpath_var
20169 # Set to "yes" if building a shared library automatically hardcodes DIR
20170 # into the library and all subsequent libraries and executables linked
20172 hardcode_automatic=$hardcode_automatic
20174 # Set to yes if linker adds runtime paths of dependent libraries
20175 # to runtime path list.
20176 inherit_rpath=$inherit_rpath
20178 # Whether libtool must link a program against all its dependency libraries.
20179 link_all_deplibs=$link_all_deplibs
20181 # Fix the shell variable \$srcfile for the compiler.
20182 fix_srcfile_path=$lt_fix_srcfile_path
20184 # Set to "yes" if exported symbols are required.
20185 always_export_symbols=$always_export_symbols
20187 # The commands to list exported symbols.
20188 export_symbols_cmds=$lt_export_symbols_cmds
20190 # Symbols that should not be listed in the preloaded symbols.
20191 exclude_expsyms=$lt_exclude_expsyms
20193 # Symbols that must always be exported.
20194 include_expsyms=$lt_include_expsyms
20196 # Commands necessary for linking programs (against libraries) with templates.
20197 prelink_cmds=$lt_prelink_cmds
20199 # Specify filename containing input files.
20200 file_list_spec=$lt_file_list_spec
20202 # How to hardcode a shared library path into an executable.
20203 hardcode_action=$hardcode_action
20205 # ### END LIBTOOL CONFIG
20211 cat <<\_LT_EOF
>> "$cfgfile"
20212 # AIX sometimes has problems with the GCC collect2 program. For some
20213 # reason, if we set the COLLECT_NAMES environment variable, the problems
20214 # vanish in a puff of smoke.
20215 if test "X${COLLECT_NAMES+set}" != Xset
; then
20217 export COLLECT_NAMES
20224 ltmain
="$ac_aux_dir/ltmain.sh"
20227 # We use sed instead of cat because bash on DJGPP gets confused if
20228 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20229 # text mode, it properly converts lines to CR/LF. This bash problem
20230 # is reportedly fixed, but why not run on old versions too?
20231 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20232 ||
(rm -f "$cfgfile"; exit 1)
20236 cat << \_LT_EOF
>> "$cfgfile"
20238 # func_dirname file append nondir_replacement
20239 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20240 # otherwise set result to NONDIR_REPLACEMENT.
20244 */*) func_dirname_result
="${1%/*}${2}" ;;
20245 * ) func_dirname_result
="${3}" ;;
20249 # func_basename file
20252 func_basename_result
="${1##*/}"
20255 # func_dirname_and_basename file append nondir_replacement
20256 # perform func_basename and func_dirname in a single function
20258 # dirname: Compute the dirname of FILE. If nonempty,
20259 # add APPEND to the result, otherwise set result
20260 # to NONDIR_REPLACEMENT.
20261 # value returned in "$func_dirname_result"
20262 # basename: Compute filename of FILE.
20263 # value retuned in "$func_basename_result"
20264 # Implementation must be kept synchronized with func_dirname
20265 # and func_basename. For efficiency, we do not delegate to
20266 # those functions but instead duplicate the functionality here.
20267 func_dirname_and_basename
()
20270 */*) func_dirname_result
="${1%/*}${2}" ;;
20271 * ) func_dirname_result
="${3}" ;;
20273 func_basename_result
="${1##*/}"
20276 # func_stripname prefix suffix name
20277 # strip PREFIX and SUFFIX off of NAME.
20278 # PREFIX and SUFFIX must not contain globbing or regex special
20279 # characters, hashes, percent signs, but SUFFIX may contain a leading
20280 # dot (in which case that matches only a dot).
20283 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20284 # positional parameters, so assign one to ordinary parameter first.
20285 func_stripname_result
=${3}
20286 func_stripname_result
=${func_stripname_result#"${1}"}
20287 func_stripname_result
=${func_stripname_result%"${2}"}
20293 func_opt_split_opt
=${1%%=*}
20294 func_opt_split_arg
=${1#*=}
20301 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
20302 *) func_lo2o_result
=${1} ;;
20306 # func_xform libobj-or-source
20309 func_xform_result
=${1%.*}.lo
20312 # func_arith arithmetic-term...
20315 func_arith_result
=$
(( $
* ))
20319 # STRING may not start with a hyphen.
20322 func_len_result
=${#1}
20327 *) # Bourne compatible functions.
20328 cat << \_LT_EOF
>> "$cfgfile"
20330 # func_dirname file append nondir_replacement
20331 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20332 # otherwise set result to NONDIR_REPLACEMENT.
20335 # Extract subdirectory from the argument.
20336 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20337 if test "X$func_dirname_result" = "X${1}"; then
20338 func_dirname_result
="${3}"
20340 func_dirname_result
="$func_dirname_result${2}"
20344 # func_basename file
20347 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
20351 # func_stripname prefix suffix name
20352 # strip PREFIX and SUFFIX off of NAME.
20353 # PREFIX and SUFFIX must not contain globbing or regex special
20354 # characters, hashes, percent signs, but SUFFIX may contain a leading
20355 # dot (in which case that matches only a dot).
20356 # func_strip_suffix prefix name
20360 .
*) func_stripname_result
=`$ECHO "X${3}" \
20361 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20362 *) func_stripname_result
=`$ECHO "X${3}" \
20363 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20368 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
20369 my_sed_long_arg
='1s/^-[^=]*=//'
20374 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20375 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20381 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20384 # func_xform libobj-or-source
20387 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20390 # func_arith arithmetic-term...
20393 func_arith_result
=`expr "$@"`
20397 # STRING may not start with a hyphen.
20400 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20406 case $lt_shell_append in
20408 cat << \_LT_EOF
>> "$cfgfile"
20410 # func_append var value
20411 # Append VALUE to the end of shell variable VAR.
20419 cat << \_LT_EOF
>> "$cfgfile"
20421 # func_append var value
20422 # Append VALUE to the end of shell variable VAR.
20433 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20434 ||
(rm -f "$cfgfile"; exit 1)
20436 mv -f "$cfgfile" "$ofile" ||
20437 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20446 { (exit 0); exit 0; }
20448 chmod +x
$CONFIG_STATUS
20449 ac_clean_files
=$ac_clean_files_save
20451 test $ac_write_fail = 0 ||
20452 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20453 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20454 { (exit 1); exit 1; }; }
20457 # configure is writing to config.log, and then calls config.status.
20458 # config.status does its own redirection, appending to config.log.
20459 # Unfortunately, on DOS this fails, as config.log is still kept open
20460 # by configure, so config.status won't be able to write to it; its
20461 # output is simply discarded. So we exec the FD to /dev/null,
20462 # effectively closing config.log, so it can be properly (re)opened and
20463 # appended to by config.status. When coming back to configure, we
20464 # need to make the FD available again.
20465 if test "$no_create" != yes; then
20467 ac_config_status_args
=
20468 test "$silent" = yes &&
20469 ac_config_status_args
="$ac_config_status_args --quiet"
20471 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20473 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20474 # would make configure fail if this is the last instruction.
20475 $ac_cs_success ||
{ (exit 1); exit 1; }
20477 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20478 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20479 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}