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
835 am__fastdepCCAS_FALSE
884 INSTALL_STRIP_PROGRAM
902 MAINTAINER_MODE_FALSE
953 program_transform_name
965 enable_option_checking
966 enable_maintainer_mode
968 enable_dependency_tracking
983 ac_precious_vars
='build_alias
996 # Initialize some variables set by options.
998 ac_init_version
=false
999 ac_unrecognized_opts
=
1000 ac_unrecognized_sep
=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file
=/dev
/null
1010 program_transform_name
=s
,x
,x
,
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir
='${exec_prefix}/bin'
1025 sbindir
='${exec_prefix}/sbin'
1026 libexecdir
='${exec_prefix}/libexec'
1027 datarootdir
='${prefix}/share'
1028 datadir
='${datarootdir}'
1029 sysconfdir
='${prefix}/etc'
1030 sharedstatedir
='${prefix}/com'
1031 localstatedir
='${prefix}/var'
1032 includedir
='${prefix}/include'
1033 oldincludedir
='/usr/include'
1034 docdir
='${datarootdir}/doc/${PACKAGE}'
1035 infodir
='${datarootdir}/info'
1040 libdir
='${exec_prefix}/lib'
1041 localedir
='${datarootdir}/locale'
1042 mandir
='${datarootdir}/man'
1048 # If the previous option needs an argument, assign it.
1049 if test -n "$ac_prev"; then
1050 eval $ac_prev=\
$ac_option
1056 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060 # Accept the important Cygnus configure options, so we can diagnose typos.
1062 case $ac_dashdash$ac_option in
1066 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1068 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1069 bindir
=$ac_optarg ;;
1071 -build |
--build |
--buil |
--bui |
--bu)
1072 ac_prev
=build_alias
;;
1073 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1074 build_alias
=$ac_optarg ;;
1076 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1077 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1078 ac_prev
=cache_file
;;
1079 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1080 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1081 cache_file
=$ac_optarg ;;
1083 --config-cache |
-C)
1084 cache_file
=config.cache
;;
1086 -datadir |
--datadir |
--datadi |
--datad)
1088 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1089 datadir
=$ac_optarg ;;
1091 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1092 |
--dataroo |
--dataro |
--datar)
1093 ac_prev
=datarootdir
;;
1094 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1095 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1096 datarootdir
=$ac_optarg ;;
1098 -disable-* |
--disable-*)
1099 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1102 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_useropt_orig
=$ac_useropt
1105 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_
$ac_useropt"
1110 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1111 ac_unrecognized_sep
=', ';;
1113 eval enable_
$ac_useropt=no
;;
1115 -docdir |
--docdir |
--docdi |
--doc |
--do)
1117 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1118 docdir
=$ac_optarg ;;
1120 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1122 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1123 dvidir
=$ac_optarg ;;
1125 -enable-* |
--enable-*)
1126 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1129 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1130 { (exit 1); exit 1; }; }
1131 ac_useropt_orig
=$ac_useropt
1132 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "enable_
$ac_useropt"
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
1140 eval enable_
$ac_useropt=\
$ac_optarg ;;
1142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1144 |
--exec |
--exe |
--ex)
1145 ac_prev
=exec_prefix
;;
1146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1148 |
--exec=* |
--exe=* |
--ex=*)
1149 exec_prefix
=$ac_optarg ;;
1151 -gas |
--gas |
--ga |
--g)
1152 # Obsolete; use --with-gas.
1155 -help |
--help |
--hel |
--he |
-h)
1156 ac_init_help
=long
;;
1157 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1158 ac_init_help
=recursive
;;
1159 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1160 ac_init_help
=short
;;
1162 -host |
--host |
--hos |
--ho)
1163 ac_prev
=host_alias
;;
1164 -host=* |
--host=* |
--hos=* |
--ho=*)
1165 host_alias
=$ac_optarg ;;
1167 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1169 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1171 htmldir
=$ac_optarg ;;
1173 -includedir |
--includedir |
--includedi |
--included |
--include \
1174 |
--includ |
--inclu |
--incl |
--inc)
1175 ac_prev
=includedir
;;
1176 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1177 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1178 includedir
=$ac_optarg ;;
1180 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1182 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1183 infodir
=$ac_optarg ;;
1185 -libdir |
--libdir |
--libdi |
--libd)
1187 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1188 libdir
=$ac_optarg ;;
1190 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1191 |
--libexe |
--libex |
--libe)
1192 ac_prev
=libexecdir
;;
1193 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1194 |
--libexe=* |
--libex=* |
--libe=*)
1195 libexecdir
=$ac_optarg ;;
1197 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1198 ac_prev
=localedir
;;
1199 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1200 localedir
=$ac_optarg ;;
1202 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1203 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1204 ac_prev
=localstatedir
;;
1205 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1206 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1207 localstatedir
=$ac_optarg ;;
1209 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1211 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1212 mandir
=$ac_optarg ;;
1214 -nfp |
--nfp |
--nf)
1215 # Obsolete; use --without-fp.
1218 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1219 |
--no-cr |
--no-c |
-n)
1222 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1223 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1226 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1227 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1228 |
--oldin |
--oldi |
--old |
--ol |
--o)
1229 ac_prev
=oldincludedir
;;
1230 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1231 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1232 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1233 oldincludedir
=$ac_optarg ;;
1235 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1237 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1238 prefix
=$ac_optarg ;;
1240 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1241 |
--program-pre |
--program-pr |
--program-p)
1242 ac_prev
=program_prefix
;;
1243 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1244 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1245 program_prefix
=$ac_optarg ;;
1247 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1248 |
--program-suf |
--program-su |
--program-s)
1249 ac_prev
=program_suffix
;;
1250 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1251 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1252 program_suffix
=$ac_optarg ;;
1254 -program-transform-name |
--program-transform-name \
1255 |
--program-transform-nam |
--program-transform-na \
1256 |
--program-transform-n |
--program-transform- \
1257 |
--program-transform |
--program-transfor \
1258 |
--program-transfo |
--program-transf \
1259 |
--program-trans |
--program-tran \
1260 |
--progr-tra |
--program-tr |
--program-t)
1261 ac_prev
=program_transform_name
;;
1262 -program-transform-name=* |
--program-transform-name=* \
1263 |
--program-transform-nam=* |
--program-transform-na=* \
1264 |
--program-transform-n=* |
--program-transform-=* \
1265 |
--program-transform=* |
--program-transfor=* \
1266 |
--program-transfo=* |
--program-transf=* \
1267 |
--program-trans=* |
--program-tran=* \
1268 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1269 program_transform_name
=$ac_optarg ;;
1271 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1273 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1274 pdfdir
=$ac_optarg ;;
1276 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1278 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1281 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1282 |
-silent |
--silent |
--silen |
--sile |
--sil)
1285 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1287 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1289 sbindir
=$ac_optarg ;;
1291 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1292 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1293 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1295 ac_prev
=sharedstatedir
;;
1296 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1297 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1298 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1300 sharedstatedir
=$ac_optarg ;;
1302 -site |
--site |
--sit)
1304 -site=* |
--site=* |
--sit=*)
1307 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1309 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1310 srcdir
=$ac_optarg ;;
1312 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1313 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1314 ac_prev
=sysconfdir
;;
1315 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1316 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1317 sysconfdir
=$ac_optarg ;;
1319 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1320 ac_prev
=target_alias
;;
1321 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1322 target_alias
=$ac_optarg ;;
1324 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1327 -version |
--version |
--versio |
--versi |
--vers |
-V)
1328 ac_init_version
=: ;;
1331 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1334 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1335 { (exit 1); exit 1; }; }
1336 ac_useropt_orig
=$ac_useropt
1337 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1342 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1343 ac_unrecognized_sep
=', ';;
1345 eval with_
$ac_useropt=\
$ac_optarg ;;
1347 -without-* |
--without-*)
1348 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1351 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1352 { (exit 1); exit 1; }; }
1353 ac_useropt_orig
=$ac_useropt
1354 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1359 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1360 ac_unrecognized_sep
=', ';;
1362 eval with_
$ac_useropt=no
;;
1365 # Obsolete; use --with-x.
1368 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1369 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1370 ac_prev
=x_includes
;;
1371 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1372 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1373 x_includes
=$ac_optarg ;;
1375 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1376 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1377 ac_prev
=x_libraries
;;
1378 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1379 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1380 x_libraries
=$ac_optarg ;;
1382 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1383 Try \`$0 --help' for more information." >&2
1384 { (exit 1); exit 1; }; }
1388 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1391 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1392 { (exit 1); exit 1; }; }
1393 eval $ac_envvar=\
$ac_optarg
1394 export $ac_envvar ;;
1397 # FIXME: should be removed in autoconf 3.0.
1398 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1399 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1400 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1401 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1407 if test -n "$ac_prev"; then
1408 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1409 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1410 { (exit 1); exit 1; }; }
1413 if test -n "$ac_unrecognized_opts"; then
1414 case $enable_option_checking in
1416 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1417 { (exit 1); exit 1; }; } ;;
1418 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 # Check all directory arguments for consistency.
1423 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424 datadir sysconfdir sharedstatedir localstatedir includedir \
1425 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426 libdir localedir mandir
1428 eval ac_val
=\$
$ac_var
1429 # Remove trailing slashes.
1432 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433 eval $ac_var=\
$ac_val;;
1435 # Be sure to have absolute directory names.
1437 [\\/$
]* | ?
:[\\/]* ) continue;;
1438 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1440 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1441 { (exit 1); exit 1; }; }
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1449 target
=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x
; then
1453 if test "x$build_alias" = x
; then
1454 cross_compiling
=maybe
1455 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1456 If a cross compiler is detected then cross compile mode will be used." >&2
1457 elif test "x$build_alias" != "x$host_alias"; then
1463 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1465 test "$silent" = yes && exec 6>/dev
/null
1468 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1469 ac_ls_di
=`ls -di .` &&
1470 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1471 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1472 { (exit 1); exit 1; }; }
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1475 { (exit 1); exit 1; }; }
1478 # Find the source files, if location was not specified.
1479 if test -z "$srcdir"; then
1480 ac_srcdir_defaulted
=yes
1481 # Try the directory containing this script, then the parent directory.
1482 ac_confdir
=`$as_dirname -- "$as_myself" ||
1483 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1484 X"$as_myself" : 'X\(//\)[^/]' \| \
1485 X"$as_myself" : 'X\(//\)$' \| \
1486 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1487 $as_echo X"$as_myself" |
1488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1510 ac_srcdir_defaulted
=no
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1514 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1515 { (exit 1); exit 1; }; }
1517 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1519 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1520 { (exit 1); exit 1; }; }
1522 # When building in place, set srcdir=.
1523 if test "$ac_abs_confdir" = "$ac_pwd"; then
1526 # Remove unnecessary trailing slashes from srcdir.
1527 # Double slashes in file names in object file debugging info
1528 # mess up M-x gdb in Emacs.
1530 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1532 for ac_var
in $ac_precious_vars; do
1533 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1534 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1535 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1536 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1540 # Report the --help message.
1542 if test "$ac_init_help" = "long"; then
1543 # Omit some internal or obsolete options to make the list less imposing.
1544 # This message is too long to be a string in the A/UX 3.1 sh.
1546 \`configure' configures this package to adapt to many kinds of systems.
1548 Usage: $0 [OPTION]... [VAR=VALUE]...
1550 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1551 VAR=VALUE. See below for descriptions of some of the useful variables.
1553 Defaults for the options are specified in brackets.
1556 -h, --help display this help and exit
1557 --help=short display options specific to this package
1558 --help=recursive display the short help of all the included packages
1559 -V, --version display version information and exit
1560 -q, --quiet, --silent do not print \`checking...' messages
1561 --cache-file=FILE cache test results in FILE [disabled]
1562 -C, --config-cache alias for \`--cache-file=config.cache'
1563 -n, --no-create do not create output files
1564 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1566 Installation directories:
1567 --prefix=PREFIX install architecture-independent files in PREFIX
1568 [$ac_default_prefix]
1569 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1572 By default, \`make install' will install all the files in
1573 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1574 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1575 for instance \`--prefix=\$HOME'.
1577 For better control, use the options below.
1579 Fine tuning of the installation directories:
1580 --bindir=DIR user executables [EPREFIX/bin]
1581 --sbindir=DIR system admin executables [EPREFIX/sbin]
1582 --libexecdir=DIR program executables [EPREFIX/libexec]
1583 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1584 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1585 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1586 --libdir=DIR object code libraries [EPREFIX/lib]
1587 --includedir=DIR C header files [PREFIX/include]
1588 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1589 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1590 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1591 --infodir=DIR info documentation [DATAROOTDIR/info]
1592 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1593 --mandir=DIR man documentation [DATAROOTDIR/man]
1594 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1595 --htmldir=DIR html documentation [DOCDIR]
1596 --dvidir=DIR dvi documentation [DOCDIR]
1597 --pdfdir=DIR pdf documentation [DOCDIR]
1598 --psdir=DIR ps documentation [DOCDIR]
1604 --program-prefix=PREFIX prepend PREFIX to installed program names
1605 --program-suffix=SUFFIX append SUFFIX to installed program names
1606 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1609 --build=BUILD configure
for building on BUILD
[guessed
]
1610 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1611 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1615 if test -n "$ac_init_help"; then
1620 --disable-option-checking ignore unrecognized
--enable/--with options
1621 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1622 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1623 --enable-maintainer-mode enable make rules and dependencies not useful
1624 (and sometimes confusing
) to the casual installer
1625 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1626 --disable-silent-rules verbose build output (undo: `make V
=0')
1627 --disable-dependency-tracking speeds up one-time build
1628 --enable-dependency-tracking do not reject slow dependency extractors
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --enable-debug Enable generic debug support [default=no]
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-pic try to use only PIC/non-PIC objects [default=use
1641 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1642 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1643 --with-linux=PATH Path to kernel source
1644 --with-linux-obj=PATH Path to kernel build objects
1645 --with-spl=PATH Path to spl source
1646 --with-spl-obj=PATH Path to spl build objects
1647 --with-blkid support blkid caching [default=check]
1649 Some influential environment variables:
1650 CC C compiler command
1651 CFLAGS C compiler flags
1652 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1653 nonstandard directory <lib dir>
1654 LIBS libraries to pass to the linker, e.g. -l<library>
1655 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1656 you have headers in a nonstandard directory <include dir>
1658 CCAS assembler compiler command (defaults to CC)
1659 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1661 Use these variables to override the choices made by `configure' or to
help
1662 it to
find libraries and programs with nonstandard names
/locations.
1668 if test "$ac_init_help" = "recursive"; then
1669 # If there are subdirs, report their specific --help.
1670 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1671 test -d "$ac_dir" ||
1672 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1677 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1679 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1680 # A ".." for each directory in $ac_dir_suffix.
1681 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1682 case $ac_top_builddir_sub in
1683 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1684 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1687 ac_abs_top_builddir
=$ac_pwd
1688 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1689 # for backward compatibility:
1690 ac_top_builddir
=$ac_top_build_prefix
1693 .
) # We are building in place.
1695 ac_top_srcdir
=$ac_top_builddir_sub
1696 ac_abs_top_srcdir
=$ac_pwd ;;
1697 [\\/]* | ?
:[\\/]* ) # Absolute name.
1698 ac_srcdir
=$srcdir$ac_dir_suffix;
1699 ac_top_srcdir
=$srcdir
1700 ac_abs_top_srcdir
=$srcdir ;;
1702 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1703 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1704 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1706 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1708 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1709 # Check for guested configure.
1710 if test -f "$ac_srcdir/configure.gnu"; then
1712 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1713 elif test -f "$ac_srcdir/configure"; then
1715 $SHELL "$ac_srcdir/configure" --help=recursive
1717 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1719 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1723 test -n "$ac_init_help" && exit $ac_status
1724 if $ac_init_version; then
1727 generated by GNU Autoconf
2.63
1729 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1730 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1731 This configure
script is free software
; the Free Software Foundation
1732 gives unlimited permission to copy
, distribute and modify it.
1736 cat >config.log
<<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1740 It was created by $as_me, which was
1741 generated by GNU Autoconf 2.63. Invocation command line was
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1776 test -z "$as_dir" && as_dir
=.
1777 $as_echo "PATH: $as_dir"
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1801 ac_must_keep_next
=false
1807 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1808 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1809 |
-silent |
--silent |
--silen |
--sile |
--sil)
1812 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1817 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1818 if test $ac_must_keep_next = true
; then
1819 ac_must_keep_next
=false
# Got value, back to normal.
1822 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1823 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1824 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1825 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1826 case "$ac_configure_args0 " in
1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1830 -* ) ac_must_keep_next
=true
;;
1833 ac_configure_args
="$ac_configure_args '$ac_arg'"
1838 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1839 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log. We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847 # Save into config.log some information that might help in debugging.
1852 ## ---------------- ##
1853 ## Cache variables. ##
1854 ## ---------------- ##
1857 # The following way of writing the cache mishandles newlines in values,
1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1860 eval ac_val=\$$ac_var
1864 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1868 _ | IFS | as_nl) ;; #(
1869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1870 *) $as_unset $ac_var ;;
1875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876 *${as_nl}ac_space=\ *)
1878 "s/'\''/'\''\\\\'\'''\''/g;
1879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890 ## ----------------- ##
1891 ## Output variables. ##
1892 ## ----------------- ##
1895 for ac_var in $ac_subst_vars
1897 eval ac_val=\$$ac_var
1899 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901 $as_echo "$ac_var='\''$ac_val'\''"
1905 if test -n "$ac_subst_files"; then
1907 ## ------------------- ##
1908 ## File substitutions. ##
1909 ## ------------------- ##
1912 for ac_var
in $ac_subst_files
1914 eval ac_val
=\$
$ac_var
1916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918 $as_echo "$ac_var='\''$ac_val'\''"
1923 if test -s confdefs.h; then
1933 test "$ac_signal" != 0 &&
1934 $as_echo "$as_me: caught signal $ac_signal"
1935 $as_echo "$as_me: exit $exit_status"
1937 rm -f core *.core core.conftest.* &&
1938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1941 for ac_signal
in 1 2 13 15; do
1942 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1947 rm -f -r conftest
* confdefs.h
1949 # Predefined preprocessor variables.
1951 cat >>confdefs.h
<<_ACEOF
1952 #define PACKAGE_NAME "$PACKAGE_NAME"
1956 cat >>confdefs.h
<<_ACEOF
1957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1961 cat >>confdefs.h
<<_ACEOF
1962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1966 cat >>confdefs.h
<<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1971 cat >>confdefs.h
<<_ACEOF
1972 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1976 # Let the site file select an alternate cache file if it wants to.
1977 # Prefer an explicitly selected file to automatically selected ones.
1980 if test -n "$CONFIG_SITE"; then
1981 ac_site_file1
=$CONFIG_SITE
1982 elif test "x$prefix" != xNONE
; then
1983 ac_site_file1
=$prefix/share
/config.site
1984 ac_site_file2
=$prefix/etc
/config.site
1986 ac_site_file1
=$ac_default_prefix/share
/config.site
1987 ac_site_file2
=$ac_default_prefix/etc
/config.site
1989 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1991 test "x$ac_site_file" = xNONE
&& continue
1992 if test -r "$ac_site_file"; then
1993 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1995 sed 's/^/| /' "$ac_site_file" >&5
2000 if test -r "$cache_file"; then
2001 # Some versions of bash will fail to source /dev/null (special
2002 # files actually), so we avoid doing that.
2003 if test -f "$cache_file"; then
2004 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2005 $as_echo "$as_me: loading cache $cache_file" >&6;}
2007 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2008 *) .
"./$cache_file";;
2012 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2013 $as_echo "$as_me: creating cache $cache_file" >&6;}
2017 # Check that the precious variables saved in the cache have kept the same
2019 ac_cache_corrupted
=false
2020 for ac_var
in $ac_precious_vars; do
2021 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2022 eval ac_new_set
=\
$ac_env_${ac_var}_set
2023 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2024 eval ac_new_val
=\
$ac_env_${ac_var}_value
2025 case $ac_old_set,$ac_new_set in
2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2028 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2029 ac_cache_corrupted
=: ;;
2031 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2032 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2033 ac_cache_corrupted
=: ;;
2036 if test "x$ac_old_val" != "x$ac_new_val"; then
2037 # differences in whitespace do not lead to failure.
2038 ac_old_val_w
=`echo x $ac_old_val`
2039 ac_new_val_w
=`echo x $ac_new_val`
2040 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2041 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2042 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2043 ac_cache_corrupted
=:
2045 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2046 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2047 eval $ac_var=\
$ac_old_val
2049 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2050 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2051 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2052 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2055 # Pass precious variables to config.status.
2056 if test "$ac_new_set" = set; then
2058 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2059 *) ac_arg
=$ac_var=$ac_new_val ;;
2061 case " $ac_configure_args " in
2062 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2063 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2067 if $ac_cache_corrupted; then
2068 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2071 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2072 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2073 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2074 { (exit 1); exit 1; }; }
2094 ac_cpp
='$CPP $CPPFLAGS'
2095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2101 ac_cpp
='$CPP $CPPFLAGS'
2102 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2111 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2112 $as_echo_n "checking metadata... " >&6; }
2115 _zfs_ac_meta_got_file
=no
2116 if test -f "$META"; then
2117 _zfs_ac_meta_got_file
=yes
2119 ZFS_META_NAME
=`perl -n\
2120 -e "BEGIN { \\$key=shift @ARGV; }"\
2121 -e "next unless s/^\s*\\$key[:=]//i;"\
2122 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2125 -e "s/^(['\"])(.*)\1/\\$2/;"\
2127 -e "END { print \\$val if defined \\$val; }"\
2128 '(?:NAME|PROJECT|PACKAGE)' $META`;
2129 if test -n "$ZFS_META_NAME"; then
2131 cat >>confdefs.h
<<_ACEOF
2132 #define ZFS_META_NAME "$ZFS_META_NAME"
2138 ZFS_META_VERSION
=`perl -n\
2139 -e "BEGIN { \\$key=shift @ARGV; }"\
2140 -e "next unless s/^\s*\\$key[:=]//i;"\
2141 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2144 -e "s/^(['\"])(.*)\1/\\$2/;"\
2146 -e "END { print \\$val if defined \\$val; }"\
2148 if test -n "$ZFS_META_VERSION"; then
2150 cat >>confdefs.h
<<_ACEOF
2151 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2157 ZFS_META_RELEASE
=`perl -n\
2158 -e "BEGIN { \\$key=shift @ARGV; }"\
2159 -e "next unless s/^\s*\\$key[:=]//i;"\
2160 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2163 -e "s/^(['\"])(.*)\1/\\$2/;"\
2165 -e "END { print \\$val if defined \\$val; }"\
2167 if test -n "$ZFS_META_RELEASE"; then
2169 cat >>confdefs.h
<<_ACEOF
2170 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2176 ZFS_META_LICENSE
=`perl -n\
2177 -e "BEGIN { \\$key=shift @ARGV; }"\
2178 -e "next unless s/^\s*\\$key[:=]//i;"\
2179 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2182 -e "s/^(['\"])(.*)\1/\\$2/;"\
2184 -e "END { print \\$val if defined \\$val; }"\
2186 if test -n "$ZFS_META_LICENSE"; then
2188 cat >>confdefs.h
<<_ACEOF
2189 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2195 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2196 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2197 test -n "$ZFS_META_RELEASE" &&
2198 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2200 cat >>confdefs.h
<<_ACEOF
2201 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2207 ZFS_META_DATA
=`perl -n\
2208 -e "BEGIN { \\$key=shift @ARGV; }"\
2209 -e "next unless s/^\s*\\$key[:=]//i;"\
2210 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2213 -e "s/^(['\"])(.*)\1/\\$2/;"\
2215 -e "END { print \\$val if defined \\$val; }"\
2217 if test -n "$ZFS_META_DATA"; then
2219 cat >>confdefs.h
<<_ACEOF
2220 #define ZFS_META_DATA "$ZFS_META_DATA"
2226 ZFS_META_AUTHOR
=`perl -n\
2227 -e "BEGIN { \\$key=shift @ARGV; }"\
2228 -e "next unless s/^\s*\\$key[:=]//i;"\
2229 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2232 -e "s/^(['\"])(.*)\1/\\$2/;"\
2234 -e "END { print \\$val if defined \\$val; }"\
2236 if test -n "$ZFS_META_AUTHOR"; then
2238 cat >>confdefs.h
<<_ACEOF
2239 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2246 ZFS_META_LT_CURRENT
=`perl -n\
2247 -e "BEGIN { \\$key=shift @ARGV; }"\
2248 -e "next unless s/^\s*\\$key[:=]//i;"\
2249 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2252 -e "s/^(['\"])(.*)\1/\\$2/;"\
2254 -e "END { print \\$val if defined \\$val; }"\
2255 'LT_CURRENT' $META`;
2256 ZFS_META_LT_REVISION
=`perl -n\
2257 -e "BEGIN { \\$key=shift @ARGV; }"\
2258 -e "next unless s/^\s*\\$key[:=]//i;"\
2259 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2262 -e "s/^(['\"])(.*)\1/\\$2/;"\
2264 -e "END { print \\$val if defined \\$val; }"\
2265 'LT_REVISION' $META`;
2266 ZFS_META_LT_AGE
=`perl -n\
2267 -e "BEGIN { \\$key=shift @ARGV; }"\
2268 -e "next unless s/^\s*\\$key[:=]//i;"\
2269 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2272 -e "s/^(['\"])(.*)\1/\\$2/;"\
2274 -e "END { print \\$val if defined \\$val; }"\
2276 if test -n "$ZFS_META_LT_CURRENT" \
2277 -o -n "$ZFS_META_LT_REVISION" \
2278 -o -n "$ZFS_META_LT_AGE"; then
2279 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2280 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2281 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2283 cat >>confdefs.h
<<_ACEOF
2284 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2288 cat >>confdefs.h
<<_ACEOF
2289 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2293 cat >>confdefs.h
<<_ACEOF
2294 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2303 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2304 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2308 for ac_dir
in config
"$srcdir"/config
; do
2309 if test -f "$ac_dir/install-sh"; then
2311 ac_install_sh
="$ac_aux_dir/install-sh -c"
2313 elif test -f "$ac_dir/install.sh"; then
2315 ac_install_sh
="$ac_aux_dir/install.sh -c"
2317 elif test -f "$ac_dir/shtool"; then
2319 ac_install_sh
="$ac_aux_dir/shtool install -c"
2323 if test -z "$ac_aux_dir"; then
2324 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2325 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2326 { (exit 1); exit 1; }; }
2329 # These three variables are undocumented and unsupported,
2330 # and are intended to be withdrawn in a future Autoconf release.
2331 # They can cause serious problems if a builder's source tree is in a directory
2332 # whose full name contains unusual characters.
2333 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2334 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2335 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338 # Make sure we can run config.sub.
2339 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2340 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2341 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2342 { (exit 1); exit 1; }; }
2344 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if test "${ac_cv_build+set}" = set; then
2347 $as_echo_n "(cached) " >&6
2349 ac_build_alias
=$build_alias
2350 test "x$ac_build_alias" = x
&&
2351 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x
&&
2353 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2354 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2355 { (exit 1); exit 1; }; }
2356 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2357 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2358 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2359 { (exit 1); exit 1; }; }
2362 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2363 $as_echo "$ac_cv_build" >&6; }
2364 case $ac_cv_build in
2366 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2367 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2368 { (exit 1); exit 1; }; };;
2371 ac_save_IFS
=$IFS; IFS
='-'
2377 # Remember, the first character of IFS is used to create $*,
2378 # except with old shells:
2381 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2384 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2385 $as_echo_n "checking host system type... " >&6; }
2386 if test "${ac_cv_host+set}" = set; then
2387 $as_echo_n "(cached) " >&6
2389 if test "x$host_alias" = x
; then
2390 ac_cv_host
=$ac_cv_build
2392 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2393 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2394 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2395 { (exit 1); exit 1; }; }
2399 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2400 $as_echo "$ac_cv_host" >&6; }
2403 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2404 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2405 { (exit 1); exit 1; }; };;
2408 ac_save_IFS
=$IFS; IFS
='-'
2414 # Remember, the first character of IFS is used to create $*,
2415 # except with old shells:
2418 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2421 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2422 $as_echo_n "checking target system type... " >&6; }
2423 if test "${ac_cv_target+set}" = set; then
2424 $as_echo_n "(cached) " >&6
2426 if test "x$target_alias" = x
; then
2427 ac_cv_target
=$ac_cv_host
2429 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2430 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2431 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2432 { (exit 1); exit 1; }; }
2436 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2437 $as_echo "$ac_cv_target" >&6; }
2438 case $ac_cv_target in
2440 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2441 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2442 { (exit 1); exit 1; }; };;
2444 target
=$ac_cv_target
2445 ac_save_IFS
=$IFS; IFS
='-'
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2455 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2458 # The aliases save the names the user supplied, while $host etc.
2459 # will get canonicalized.
2460 test -n "$target_alias" &&
2461 test "$program_prefix$program_suffix$program_transform_name" = \
2463 program_prefix
=${target_alias}-
2465 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2466 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2467 # Check whether --enable-maintainer-mode was given.
2468 if test "${enable_maintainer_mode+set}" = set; then
2469 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2471 USE_MAINTAINER_MODE
=no
2474 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2475 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2476 if test $USE_MAINTAINER_MODE = yes; then
2477 MAINTAINER_MODE_TRUE
=
2478 MAINTAINER_MODE_FALSE
='#'
2480 MAINTAINER_MODE_TRUE
='#'
2481 MAINTAINER_MODE_FALSE
=
2484 MAINT
=$MAINTAINER_MODE_TRUE
2487 # Check whether --enable-silent-rules was given.
2488 if test "${enable_silent_rules+set}" = set; then
2489 enableval
=$enable_silent_rules;
2492 case $enable_silent_rules in
2493 yes) AM_DEFAULT_VERBOSITY
=0;;
2494 no
) AM_DEFAULT_VERBOSITY
=1;;
2495 *) AM_DEFAULT_VERBOSITY
=1;;
2499 am__api_version='1.11'
2501 # Find a good install program. We prefer a C program (faster),
2502 # so one script is as good as another. But avoid the broken or
2503 # incompatible versions:
2504 # SysV /etc/install, /usr/sbin/install
2505 # SunOS /usr/etc/install
2506 # IRIX /sbin/install
2508 # AmigaOS /C/install, which installs bootblocks on floppy discs
2509 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512 # OS/2's system install, which has a completely different semantic
2513 # ./install, which can be erroneously created by make from ./install.sh.
2514 # Reject install programs that cannot install multiple files.
2515 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2516 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2517 if test -z "$INSTALL"; then
2518 if test "${ac_cv_path_install+set}" = set; then
2519 $as_echo_n "(cached) " >&6
2521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir
=.
2526 # Account for people who put trailing slashes in PATH elements.
2528 .
/ | .
// |
/cC
/* | \
2529 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2530 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2536 for ac_prog
in ginstall scoinst
install; do
2537 for ac_exec_ext
in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2539 if test $ac_prog = install &&
2540 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2543 elif test $ac_prog = install &&
2544 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one
> conftest.one
2550 echo two
> conftest.two
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2553 test -s conftest.one
&& test -s conftest.two
&&
2554 test -s conftest.dir
/conftest.one
&&
2555 test -s conftest.dir
/conftest.two
2557 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2570 rm -rf conftest.one conftest.two conftest.dir
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL
=$ac_cv_path_install
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL
=$ac_install_sh
2583 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2584 $as_echo "$INSTALL" >&6; }
2586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587 # It thinks the first close brace ends the variable substitution.
2588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2592 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2594 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2595 $as_echo_n "checking whether build environment is sane... " >&6; }
2598 echo timestamp
> conftest.
file
2599 # Reject unsafe characters in $srcdir or the absolute working directory
2600 # name. Accept space and tab only in the latter.
2604 *[\\\"\
#\$\&\'\`$am_lf]*)
2605 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2606 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2607 { (exit 1); exit 1; }; };;
2610 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2611 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2612 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2613 { (exit 1); exit 1; }; };;
2616 # Do `set' in a subshell so we don't clobber the current shell's
2617 # arguments. Must try -L first in case configure is actually a
2618 # symlink; some systems play weird games with the mod time of symlinks
2619 # (eg FreeBSD returns the mod time of the symlink's containing
2622 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2623 if test "$*" = "X"; then
2625 set X
`ls -t "$srcdir/configure" conftest.file`
2628 if test "$*" != "X $srcdir/configure conftest.file" \
2629 && test "$*" != "X conftest.file $srcdir/configure"; then
2631 # If neither matched, then we have a broken ls. This can happen
2632 # if, for instance, CONFIG_SHELL is bash and it inherits a
2633 # broken ls alias from the environment. This has actually
2634 # happened. Such a system could not be considered "sane".
2635 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2636 alias in your environment" >&5
2637 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2638 alias in your environment" >&2;}
2639 { (exit 1); exit 1; }; }
2642 test "$2" = conftest.
file
2648 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2649 Check your system clock" >&5
2650 $as_echo "$as_me: error: newly created file is older than distributed files!
2651 Check your system clock" >&2;}
2652 { (exit 1); exit 1; }; }
2654 { $as_echo "$as_me:$LINENO: result: yes" >&5
2655 $as_echo "yes" >&6; }
2656 test "$program_prefix" != NONE
&&
2657 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2658 # Use a double $ so make ignores it.
2659 test "$program_suffix" != NONE
&&
2660 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2661 # Double any \ or $.
2662 # By default was `s,x,x', remove it if useless.
2663 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2664 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2666 # expand $ac_aux_dir to an absolute path
2667 am_aux_dir
=`cd $ac_aux_dir && pwd`
2669 if test x
"${MISSING+set}" != xset
; then
2672 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2674 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2677 # Use eval to expand $SHELL
2678 if eval "$MISSING --run true"; then
2679 am_missing_run
="$MISSING --run "
2682 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2683 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2686 if test x
"${install_sh}" != xset
; then
2689 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2691 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2695 # Installed binaries are usually stripped using `strip' when the user
2696 # run `make install-strip'. However `strip' might not be the right
2697 # tool to use in cross-compilation environments, therefore Automake
2698 # will honor the `STRIP' environment variable to overrule this program.
2699 if test "$cross_compiling" != no
; then
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2702 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_STRIP+set}" = set; then
2706 $as_echo_n "(cached) " >&6
2708 if test -n "$STRIP"; then
2709 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir
=.
2716 for ac_exec_ext
in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 STRIP
=$ac_cv_prog_STRIP
2729 if test -n "$STRIP"; then
2730 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2731 $as_echo "$STRIP" >&6; }
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734 $as_echo "no" >&6; }
2739 if test -z "$ac_cv_prog_STRIP"; then
2741 # Extract the first word of "strip", so it can be a program name with args.
2742 set dummy strip
; ac_word
=$2
2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2746 $as_echo_n "(cached) " >&6
2748 if test -n "$ac_ct_STRIP"; then
2749 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir
=.
2756 for ac_exec_ext
in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_ac_ct_STRIP
="strip"
2759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2769 if test -n "$ac_ct_STRIP"; then
2770 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2771 $as_echo "$ac_ct_STRIP" >&6; }
2773 { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2777 if test "x$ac_ct_STRIP" = x
; then
2780 case $cross_compiling:$ac_tool_warned in
2782 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784 ac_tool_warned
=yes ;;
2789 STRIP
="$ac_cv_prog_STRIP"
2793 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2795 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2796 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2797 if test -z "$MKDIR_P"; then
2798 if test "${ac_cv_path_mkdir+set}" = set; then
2799 $as_echo_n "(cached) " >&6
2801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2802 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2805 test -z "$as_dir" && as_dir
=.
2806 for ac_prog
in mkdir gmkdir
; do
2807 for ac_exec_ext
in '' $ac_executable_extensions; do
2808 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2809 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2810 'mkdir (GNU coreutils) '* | \
2811 'mkdir (coreutils) '* | \
2812 'mkdir (fileutils) '4.1*)
2813 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2823 if test "${ac_cv_path_mkdir+set}" = set; then
2824 MKDIR_P
="$ac_cv_path_mkdir -p"
2826 # As a last resort, use the slow shell script. Don't cache a
2827 # value for MKDIR_P within a source directory, because that will
2828 # break other packages using the cache if that directory is
2829 # removed, or if the value is a relative name.
2830 test -d .
/--version && rmdir .
/--version
2831 MKDIR_P
="$ac_install_sh -d"
2834 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2835 $as_echo "$MKDIR_P" >&6; }
2839 [\\/$
]* | ?
:[\\/]*) ;;
2840 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2843 for ac_prog
in gawk mawk nawk
awk
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy
$ac_prog; ac_word
=$2
2847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_AWK+set}" = set; then
2850 $as_echo_n "(cached) " >&6
2852 if test -n "$AWK"; then
2853 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir
=.
2860 for ac_exec_ext
in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_AWK
="$ac_prog"
2863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test -n "$AWK"; then
2874 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2875 $as_echo "$AWK" >&6; }
2877 { $as_echo "$as_me:$LINENO: result: no" >&5
2878 $as_echo "no" >&6; }
2882 test -n "$AWK" && break
2885 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2886 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2888 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2889 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2890 $as_echo_n "(cached) " >&6
2892 cat >conftest.
make <<\_ACEOF
2895 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2898 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2900 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2902 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2906 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2907 { $as_echo "$as_me:$LINENO: result: yes" >&5
2908 $as_echo "yes" >&6; }
2911 { $as_echo "$as_me:$LINENO: result: no" >&5
2912 $as_echo "no" >&6; }
2913 SET_MAKE
="MAKE=${MAKE-make}"
2916 rm -rf .tst
2>/dev
/null
2917 mkdir .tst
2>/dev
/null
2918 if test -d .tst
; then
2923 rmdir .tst
2>/dev
/null
2925 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2926 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2927 # is not polluted with repeated "-I."
2928 am__isrc
=' -I$(srcdir)'
2929 # test to see if srcdir already configured
2930 if test -f $srcdir/config.status
; then
2931 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2932 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2933 { (exit 1); exit 1; }; }
2937 # test whether we have cygpath
2938 if test -z "$CYGPATH_W"; then
2939 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2940 CYGPATH_W
='cygpath -w'
2947 # Define the identity of the package.
2948 PACKAGE
=$ZFS_META_NAME
2949 VERSION
=$ZFS_META_VERSION
2952 cat >>confdefs.h
<<_ACEOF
2953 #define PACKAGE "$PACKAGE"
2957 cat >>confdefs.h
<<_ACEOF
2958 #define VERSION "$VERSION"
2961 # Some tools Automake needs.
2963 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2966 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2969 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2972 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2975 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2977 # We need awk for the "check" target. The system "awk" is bad on
2979 # Always define AMTAR for backward compatibility.
2981 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2983 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2989 ac_config_headers
="$ac_config_headers zfs_config.h"
2992 # Find a good install program. We prefer a C program (faster),
2993 # so one script is as good as another. But avoid the broken or
2994 # incompatible versions:
2995 # SysV /etc/install, /usr/sbin/install
2996 # SunOS /usr/etc/install
2997 # IRIX /sbin/install
2999 # AmigaOS /C/install, which installs bootblocks on floppy discs
3000 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3003 # OS/2's system install, which has a completely different semantic
3004 # ./install, which can be erroneously created by make from ./install.sh.
3005 # Reject install programs that cannot install multiple files.
3006 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3007 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3008 if test -z "$INSTALL"; then
3009 if test "${ac_cv_path_install+set}" = set; then
3010 $as_echo_n "(cached) " >&6
3012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir
=.
3017 # Account for people who put trailing slashes in PATH elements.
3019 .
/ | .
// |
/cC
/* | \
3020 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3021 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3024 # OSF1 and SCO ODT 3.0 have their own names for install.
3025 # Don't use installbsd from OSF since it installs stuff as root
3027 for ac_prog
in ginstall scoinst
install; do
3028 for ac_exec_ext
in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3030 if test $ac_prog = install &&
3031 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3032 # AIX install. It has an incompatible calling convention.
3034 elif test $ac_prog = install &&
3035 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3036 # program-specific install script used by HP pwplus--don't use.
3039 rm -rf conftest.one conftest.two conftest.dir
3040 echo one
> conftest.one
3041 echo two
> conftest.two
3043 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3044 test -s conftest.one
&& test -s conftest.two
&&
3045 test -s conftest.dir
/conftest.one
&&
3046 test -s conftest.dir
/conftest.two
3048 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3061 rm -rf conftest.one conftest.two conftest.dir
3064 if test "${ac_cv_path_install+set}" = set; then
3065 INSTALL
=$ac_cv_path_install
3067 # As a last resort, use the slow shell script. Don't cache a
3068 # value for INSTALL within a source directory, because that will
3069 # break other packages using the cache if that directory is
3070 # removed, or if the value is a relative name.
3071 INSTALL
=$ac_install_sh
3074 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3075 $as_echo "$INSTALL" >&6; }
3077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3078 # It thinks the first close brace ends the variable substitution.
3079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3083 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3086 ac_cpp
='$CPP $CPPFLAGS'
3087 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3090 if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3092 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC
="$CC" # Let the user override the test.
3101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir
=.
3106 for ac_exec_ext
in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 if test -n "$CC"; then
3120 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3123 { $as_echo "$as_me:$LINENO: result: no" >&5
3124 $as_echo "no" >&6; }
3129 if test -z "$ac_cv_prog_CC"; then
3131 # Extract the first word of "gcc", so it can be a program name with args.
3132 set dummy gcc
; ac_word
=$2
3133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir
=.
3146 for ac_exec_ext
in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_ac_ct_CC
="gcc"
3149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3163 { $as_echo "$as_me:$LINENO: result: no" >&5
3164 $as_echo "no" >&6; }
3167 if test "x$ac_ct_CC" = x
; then
3170 case $cross_compiling:$ac_tool_warned in
3172 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned
=yes ;;
3182 if test -z "$CC"; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3185 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then
3189 $as_echo_n "(cached) " >&6
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC
="$CC" # Let the user override the test.
3194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3198 test -z "$as_dir" && as_dir
=.
3199 for ac_exec_ext
in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3216 { $as_echo "$as_me:$LINENO: result: no" >&5
3217 $as_echo "no" >&6; }
3223 if test -z "$CC"; then
3224 # Extract the first word of "cc", so it can be a program name with args.
3225 set dummy cc
; ac_word
=$2
3226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if test "${ac_cv_prog_CC+set}" = set; then
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC
="$CC" # Let the user override the test.
3235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir
=.
3240 for ac_exec_ext
in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3243 ac_prog_rejected
=yes
3247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test $ac_prog_rejected = yes; then
3255 # We found a bogon in the path, so make sure we never use it.
3256 set dummy
$ac_cv_prog_CC
3258 if test $# != 0; then
3259 # We chose a different compiler from the bogus one.
3260 # However, it has the same basename, so the bogon will be chosen
3261 # first if we set CC to just the basename; use the full file name.
3263 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3273 { $as_echo "$as_me:$LINENO: result: no" >&5
3274 $as_echo "no" >&6; }
3279 if test -z "$CC"; then
3280 if test -n "$ac_tool_prefix"; then
3281 for ac_prog
in cl.exe
3283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3284 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC
="$CC" # Let the user override the test.
3293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir
=.
3298 for ac_exec_ext
in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3315 { $as_echo "$as_me:$LINENO: result: no" >&5
3316 $as_echo "no" >&6; }
3320 test -n "$CC" && break
3323 if test -z "$CC"; then
3325 for ac_prog
in cl.exe
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy
$ac_prog; ac_word
=$2
3329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$ac_ct_CC"; then
3335 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_ac_ct_CC
="$ac_prog"
3345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3355 if test -n "$ac_ct_CC"; then
3356 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3357 $as_echo "$ac_ct_CC" >&6; }
3359 { $as_echo "$as_me:$LINENO: result: no" >&5
3360 $as_echo "no" >&6; }
3364 test -n "$ac_ct_CC" && break
3367 if test "x$ac_ct_CC" = x
; then
3370 case $cross_compiling:$ac_tool_warned in
3372 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3374 ac_tool_warned
=yes ;;
3383 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3386 See \`config.log' for more details." >&5
3387 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details." >&2;}
3389 { (exit 1); exit 1; }; }; }
3391 # Provide some information about the compiler.
3392 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3395 { (ac_try
="$ac_compiler --version >&5"
3397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3401 $as_echo "$ac_try_echo") >&5
3402 (eval "$ac_compiler --version >&5") 2>&5
3404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }
3406 { (ac_try="$ac_compiler -v >&5"
3408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3409 *) ac_try_echo
=$ac_try;;
3411 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3412 $as_echo "$ac_try_echo") >&5
3413 (eval "$ac_compiler -v >&5") 2>&5
3415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }
3417 { (ac_try
="$ac_compiler -V >&5"
3419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3423 $as_echo "$ac_try_echo") >&5
3424 (eval "$ac_compiler -V >&5") 2>&5
3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3444 ac_clean_files_save=$ac_clean_files
3445 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3446 # Try to create an executable without -o first, disregard a.out.
3447 # It will help us diagnose broken compilers, and finding out an intuition
3449 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3450 $as_echo_n "checking for C compiler default output file name... " >&6; }
3451 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3453 # The possible output files:
3454 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3457 for ac_file in $ac_files
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3466 if { (ac_try="$ac_link_default"
3468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3469 *) ac_try_echo
=$ac_try;;
3471 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3472 $as_echo "$ac_try_echo") >&5
3473 (eval "$ac_link_default") 2>&5
3475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; then
3477 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3478 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3479 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3480 # so that the user can short-circuit this test for compilers unknown to
3482 for ac_file
in $ac_files ''
3484 test -f "$ac_file" ||
continue
3486 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3489 # We found the default executable, but exeext='' is most
3493 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3495 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497 # We set ac_cv_exeext here because the later test for it is not
3498 # safe: cross compilers may not add the suffix if given an `-o'
3499 # argument, so we may need to know it at that point already.
3500 # Even if this section looks crufty: it has the advantage of
3507 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3513 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3514 $as_echo "$ac_file" >&6; }
3515 if test -z "$ac_file"; then
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.
$ac_ext >&5
3519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3522 See \`config.log' for more details." >&5
3523 $as_echo "$as_me: error: C compiler cannot create executables
3524 See \`config.log' for more details." >&2;}
3525 { (exit 77); exit 77; }; }; }
3528 ac_exeext
=$ac_cv_exeext
3530 # Check that the compiler produces executables we can run. If not, either
3531 # the compiler is broken, or we cross compile.
3532 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3533 $as_echo_n "checking whether the C compiler works... " >&6; }
3534 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3535 # If not cross compiling, check that we can run a simple program.
3536 if test "$cross_compiling" != yes; then
3537 if { ac_try
='./$ac_file'
3538 { (case "(($ac_try" in
3539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3543 $as_echo "$ac_try_echo") >&5
3544 (eval "$ac_try") 2>&5
3546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3550 if test "$cross_compiling" = maybe; then
3553 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3556 If you meant to cross compile
, use \
`--host'.
3557 See \`config.log
' for more details." >&5
3558 $as_echo "$as_me: error: cannot run C compiled programs.
3559 If you meant to cross compile, use \`--host'.
3560 See \
`config.log' for more details." >&2;}
3561 { (exit 1); exit 1; }; }; }
3565 { $as_echo "$as_me:$LINENO: result: yes" >&5
3566 $as_echo "yes" >&6; }
3568 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3569 ac_clean_files=$ac_clean_files_save
3570 # Check that the compiler produces executables we can run. If not, either
3571 # the compiler is broken, or we cross compile.
3572 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3573 $as_echo_n "checking whether we are cross compiling... " >&6; }
3574 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3575 $as_echo "$cross_compiling" >&6; }
3577 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3578 $as_echo_n "checking for suffix of executables... " >&6; }
3579 if { (ac_try="$ac_link"
3581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3582 *) ac_try_echo
=$ac_try;;
3584 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3585 $as_echo "$ac_try_echo") >&5
3586 (eval "$ac_link") 2>&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; then
3590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3592 # work properly (i.e., refer to `conftest.exe'), while it won't with
3594 for ac_file
in conftest.exe conftest conftest.
*; do
3595 test -f "$ac_file" ||
continue
3597 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3598 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3607 See \`config.log' for more details." >&5
3608 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3609 See \`config.log' for more details." >&2;}
3610 { (exit 1); exit 1; }; }; }
3613 rm -f conftest
$ac_cv_exeext
3614 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3615 $as_echo "$ac_cv_exeext" >&6; }
3617 rm -f conftest.
$ac_ext
3618 EXEEXT
=$ac_cv_exeext
3620 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3621 $as_echo_n "checking for suffix of object files... " >&6; }
3622 if test "${ac_cv_objext+set}" = set; then
3623 $as_echo_n "(cached) " >&6
3625 cat >conftest.
$ac_ext <<_ACEOF
3628 cat confdefs.h
>>conftest.
$ac_ext
3629 cat >>conftest.
$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3640 rm -f conftest.o conftest.obj
3641 if { (ac_try
="$ac_compile"
3643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3647 $as_echo "$ac_try_echo") >&5
3648 (eval "$ac_compile") 2>&5
3650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; then
3652 for ac_file in conftest.o conftest.obj conftest.*; do
3653 test -f "$ac_file" || continue;
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3667 See \
`config.log' for more details." >&5
3668 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3669 See \`config.log
' for more details." >&2;}
3670 { (exit 1); exit 1; }; }; }
3673 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3675 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3676 $as_echo "$ac_cv_objext" >&6; }
3677 OBJEXT=$ac_cv_objext
3679 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3681 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3712 grep -v '^
*+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's
/^
/|
/' conftest.$ac_ext >&5
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3734 if test $ac_compiler_gnu = yes; then
3739 ac_test_CFLAGS=${CFLAGS+set}
3740 ac_save_CFLAGS=$CFLAGS
3741 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3743 if test "${ac_cv_prog_cc_g+set}" = set; then
3744 $as_echo_n "(cached) " >&6
3746 ac_save_c_werror_flag=$ac_c_werror_flag
3747 ac_c_werror_flag=yes
3750 cat >conftest.$ac_ext <<_ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^
*+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's
/^
/|
/' conftest.$ac_ext >&5
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3814 grep -v '^
*+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's
/^
/|
/' conftest.$ac_ext >&5
3827 ac_c_werror_flag=$ac_save_c_werror_flag
3829 cat >conftest.$ac_ext <<_ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3844 rm -f conftest.$ac_objext
3845 if { (ac_try="$ac_compile"
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851 $as_echo "$ac_try_echo") >&5
3852 (eval "$ac_compile") 2>conftest.er1
3854 grep -v '^
*+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && {
3859 test -z "$ac_c_werror_flag" ||
3860 test ! -s conftest.err
3861 } && test -s conftest.$ac_objext; then
3864 $as_echo "$as_me: failed program was:" >&5
3865 sed 's
/^
/|
/' conftest.$ac_ext >&5
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 ac_c_werror_flag=$ac_save_c_werror_flag
3879 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3880 $as_echo "$ac_cv_prog_cc_g" >&6; }
3881 if test "$ac_test_CFLAGS" = set; then
3882 CFLAGS=$ac_save_CFLAGS
3883 elif test $ac_cv_prog_cc_g = yes; then
3884 if test "$GCC" = yes; then
3890 if test "$GCC" = yes; then
3896 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3897 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3898 if test "${ac_cv_prog_cc_c89+set}" = set; then
3899 $as_echo_n "(cached) " >&6
3901 ac_cv_prog_cc_c89=no
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3911 #include <sys/types.h>
3912 #include <sys/stat.h>
3913 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3914 struct buf
{ int x
; };
3915 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3916 static char
*e
(p
, i
)
3922 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3927 s
= g
(p
, va_arg
(v
,int
));
3932 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3933 function prototypes and stuff
, but not
'\xHH' hex character constants.
3934 These don
't provoke an error unfortunately, instead are silently treated
3935 as 'x
'. The following induces an error, until -std is added to get
3936 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3937 array size at least. It's necessary to
write '\x00'==0 to get something
3938 that
's true only with -std. */
3939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3942 inside strings and character constants. */
3944 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3946 int test (int i, double x);
3947 struct s1 {int (*f) (int a);};
3948 struct s2 {int (*f) (double a);};
3949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3963 CC="$ac_save_CC $ac_arg"
3964 rm -f conftest.$ac_objext
3965 if { (ac_try="$ac_compile"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_compile") 2>conftest.er1
3974 grep -v '^
*+' conftest.er1 >conftest.err
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest.$ac_objext; then
3982 ac_cv_prog_cc_c89=$ac_arg
3984 $as_echo "$as_me: failed program was:" >&5
3985 sed 's
/^
/|
/' conftest.$ac_ext >&5
3990 rm -f core conftest.err conftest.$ac_objext
3991 test "x$ac_cv_prog_cc_c89" != "xno" && break
3993 rm -f conftest.$ac_ext
3998 case "x$ac_cv_prog_cc_c89" in
4000 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4001 $as_echo "none needed" >&6; } ;;
4003 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4004 $as_echo "unsupported" >&6; } ;;
4006 CC="$CC $ac_cv_prog_cc_c89"
4007 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4015 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017 DEPDIR="${am__leading_dot}deps"
4019 ac_config_commands="$ac_config_commands depfiles"
4022 am_make=${MAKE-make}
4023 cat > confinc << 'END
'
4025 @echo this is the am__doit target
4028 # If we don't
find an include directive
, just comment out the code.
4029 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4030 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4034 # First try GNU make style include.
4035 echo "include confinc" > confmf
4036 # Ignore all kinds of additional output from `make'.
4037 case `$am_make -s -f confmf 2> /dev/null` in #(
4038 *the\ am__doit\ target
*)
4044 # Now try BSD make style include.
4045 if test "$am__include" = "#"; then
4046 echo '.include "confinc"' > confmf
4047 case `$am_make -s -f confmf 2> /dev/null` in #(
4048 *the\ am__doit\ target
*)
4049 am__include
=.include
4057 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4058 $as_echo "$_am_result" >&6; }
4059 rm -f confinc confmf
4061 # Check whether --enable-dependency-tracking was given.
4062 if test "${enable_dependency_tracking+set}" = set; then
4063 enableval
=$enable_dependency_tracking;
4066 if test "x$enable_dependency_tracking" != xno
; then
4067 am_depcomp
="$ac_aux_dir/depcomp"
4070 if test "x$enable_dependency_tracking" != xno; then
4080 depcc
="$CC" am_compiler_list
=
4082 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4083 $as_echo_n "checking dependency style of $depcc... " >&6; }
4084 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4085 $as_echo_n "(cached) " >&6
4087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4088 # We make a subdir and do the tests there. Otherwise we can end up
4089 # making bogus files that we don't know about and never remove. For
4090 # instance it was reported that on HP-UX the gcc test will end up
4091 # making a dummy file named `D' -- because `-MD' means `put the output
4094 # Copy depcomp to subdir because otherwise we won't find it if we're
4095 # using a relative directory.
4096 cp "$am_depcomp" conftest.dir
4098 # We will build objects and dependencies in a subdirectory because
4099 # it helps to detect inapplicable dependency modes. For instance
4100 # both Tru64's cc and ICC support -MD to output dependencies as a
4101 # side effect of compilation, but ICC will put the dependencies in
4102 # the current directory while Tru64 will put them in the object
4106 am_cv_CC_dependencies_compiler_type
=none
4107 if test "$am_compiler_list" = ""; then
4108 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4111 case " $depcc " in #(
4112 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4115 for depmode
in $am_compiler_list; do
4116 # Setup a source with many dependencies, because some compilers
4117 # like to wrap large dependency lists on column 80 (with \), and
4118 # we should not choose a depcomp mode which is confused by this.
4120 # We need to recreate these files for each test, as the compiler may
4121 # overwrite some of them when testing with obscure command lines.
4122 # This happens at least with the AIX C compiler.
4124 for i
in 1 2 3 4 5 6; do
4125 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4126 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4127 # Solaris 8's {/usr,}/bin/sh.
4128 touch sub
/conftst
$i.h
4130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4133 # mode. It turns out that the SunPro C++ compiler does not properly
4134 # handle `-M -o', and we need to detect this. Also, some Intel
4135 # versions had trouble with output in subdirs
4136 am__obj
=sub
/conftest.
${OBJEXT-o}
4137 am__minus_obj
="-o $am__obj"
4140 # This depmode causes a compiler race in universal mode.
4141 test "$am__universal" = false ||
continue
4144 # after this tag, mechanisms are not by side-effect, so they'll
4145 # only be used when explicitly requested
4146 if test "x$enable_dependency_tracking" = xyes
; then
4152 msvisualcpp | msvcmsys
)
4153 # This compiler won't grok `-c -o', but also, the minuso test has
4154 # not run yet. These depmodes are late enough in the game, and
4155 # so weak that their functioning should not be impacted.
4156 am__obj
=conftest.
${OBJEXT-o}
4161 if depmode
=$depmode \
4162 source=sub
/conftest.c object
=$am__obj \
4163 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4164 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4165 >/dev
/null
2>conftest.err
&&
4166 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4167 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4168 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4169 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4170 # icc doesn't choke on unknown options, it will just issue warnings
4171 # or remarks (even with -Werror). So we grep stderr for any message
4172 # that says an option was ignored or not supported.
4173 # When given -MP, icc 7.0 and 7.1 complain thusly:
4174 # icc: Command line warning: ignoring option '-M'; no argument required
4175 # The diagnosis changed in icc 8.0:
4176 # icc: Command line remark: option '-MP' not supported
4177 if (grep 'ignoring option' conftest.err ||
4178 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4179 am_cv_CC_dependencies_compiler_type
=$depmode
4188 am_cv_CC_dependencies_compiler_type
=none
4192 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4193 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4194 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4197 test "x$enable_dependency_tracking" != xno \
4198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4200 am__fastdepCC_FALSE
='#'
4202 am__fastdepCC_TRUE
='#'
4203 am__fastdepCC_FALSE
=
4209 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4210 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4215 macro_version
='2.2.6'
4216 macro_revision
='1.3012'
4230 ltmain
="$ac_aux_dir/ltmain.sh"
4232 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4233 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4234 if test "${ac_cv_path_SED+set}" = set; then
4235 $as_echo_n "(cached) " >&6
4237 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4238 for ac_i
in 1 2 3 4 5 6 7; do
4239 ac_script
="$ac_script$as_nl$ac_script"
4241 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4242 $as_unset ac_script || ac_script
=
4243 if test -z "$SED"; then
4244 ac_path_SED_found
=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir
=.
4251 for ac_prog
in sed gsed
; do
4252 for ac_exec_ext
in '' $ac_executable_extensions; do
4253 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4254 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4255 # Check for GNU ac_path_SED and select it if it is found.
4256 # Check for GNU $ac_path_SED
4257 case `"$ac_path_SED" --version 2>&1` in
4259 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4262 $as_echo_n 0123456789 >"conftest.in"
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 $as_echo '' >> "conftest.nl"
4269 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4270 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4271 ac_count
=`expr $ac_count + 1`
4272 if test $ac_count -gt ${ac_path_SED_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_SED
="$ac_path_SED"
4275 ac_path_SED_max
=$ac_count
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4280 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4283 $ac_path_SED_found && break 3
4288 if test -z "$ac_cv_path_SED"; then
4289 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4290 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4291 { (exit 1); exit 1; }; }
4298 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4299 $as_echo "$ac_cv_path_SED" >&6; }
4300 SED
="$ac_cv_path_SED"
4303 test -z "$SED" && SED
=sed
4304 Xsed
="$SED -e 1s/^X//"
4316 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4317 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4318 if test "${ac_cv_path_GREP+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4321 if test -z "$GREP"; then
4322 ac_path_GREP_found
=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4325 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4328 test -z "$as_dir" && as_dir
=.
4329 for ac_prog
in grep ggrep
; do
4330 for ac_exec_ext
in '' $ac_executable_extensions; do
4331 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4332 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4333 # Check for GNU ac_path_GREP and select it if it is found.
4334 # Check for GNU $ac_path_GREP
4335 case `"$ac_path_GREP" --version 2>&1` in
4337 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4340 $as_echo_n 0123456789 >"conftest.in"
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 $as_echo 'GREP' >> "conftest.nl"
4347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4348 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4349 ac_count
=`expr $ac_count + 1`
4350 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_GREP
="$ac_path_GREP"
4353 ac_path_GREP_max
=$ac_count
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4358 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4361 $ac_path_GREP_found && break 3
4366 if test -z "$ac_cv_path_GREP"; then
4367 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4368 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4369 { (exit 1); exit 1; }; }
4372 ac_cv_path_GREP
=$GREP
4376 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4377 $as_echo "$ac_cv_path_GREP" >&6; }
4378 GREP
="$ac_cv_path_GREP"
4381 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4382 $as_echo_n "checking for egrep... " >&6; }
4383 if test "${ac_cv_path_EGREP+set}" = set; then
4384 $as_echo_n "(cached) " >&6
4386 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4387 then ac_cv_path_EGREP
="$GREP -E"
4389 if test -z "$EGREP"; then
4390 ac_path_EGREP_found
=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4393 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4396 test -z "$as_dir" && as_dir
=.
4397 for ac_prog
in egrep; do
4398 for ac_exec_ext
in '' $ac_executable_extensions; do
4399 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4400 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4401 # Check for GNU ac_path_EGREP and select it if it is found.
4402 # Check for GNU $ac_path_EGREP
4403 case `"$ac_path_EGREP" --version 2>&1` in
4405 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4408 $as_echo_n 0123456789 >"conftest.in"
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'EGREP' >> "conftest.nl"
4415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4416 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4417 ac_count
=`expr $ac_count + 1`
4418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_EGREP
="$ac_path_EGREP"
4421 ac_path_EGREP_max
=$ac_count
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4426 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4429 $ac_path_EGREP_found && break 3
4434 if test -z "$ac_cv_path_EGREP"; then
4435 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4436 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4437 { (exit 1); exit 1; }; }
4440 ac_cv_path_EGREP
=$EGREP
4445 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4446 $as_echo "$ac_cv_path_EGREP" >&6; }
4447 EGREP
="$ac_cv_path_EGREP"
4450 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4451 $as_echo_n "checking for fgrep... " >&6; }
4452 if test "${ac_cv_path_FGREP+set}" = set; then
4453 $as_echo_n "(cached) " >&6
4455 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4456 then ac_cv_path_FGREP
="$GREP -F"
4458 if test -z "$FGREP"; then
4459 ac_path_FGREP_found
=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4462 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4465 test -z "$as_dir" && as_dir
=.
4466 for ac_prog
in fgrep
; do
4467 for ac_exec_ext
in '' $ac_executable_extensions; do
4468 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4470 # Check for GNU ac_path_FGREP and select it if it is found.
4471 # Check for GNU $ac_path_FGREP
4472 case `"$ac_path_FGREP" --version 2>&1` in
4474 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4477 $as_echo_n 0123456789 >"conftest.in"
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'FGREP' >> "conftest.nl"
4484 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4485 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4486 ac_count
=`expr $ac_count + 1`
4487 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_FGREP
="$ac_path_FGREP"
4490 ac_path_FGREP_max
=$ac_count
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4495 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4498 $ac_path_FGREP_found && break 3
4503 if test -z "$ac_cv_path_FGREP"; then
4504 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4505 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4506 { (exit 1); exit 1; }; }
4509 ac_cv_path_FGREP
=$FGREP
4514 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4515 $as_echo "$ac_cv_path_FGREP" >&6; }
4516 FGREP
="$ac_cv_path_FGREP"
4519 test -z "$GREP" && GREP
=grep
4539 # Check whether --with-gnu-ld was given.
4540 if test "${with_gnu_ld+set}" = set; then
4541 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4547 if test "$GCC" = yes; then
4548 # Check if gcc -print-prog-name=ld gives a path.
4549 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4550 $as_echo_n "checking for ld used by $CC... " >&6; }
4553 # gcc leaves a trailing carriage return which upsets mingw
4554 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4556 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4559 # Accept absolute paths.
4561 re_direlt
='/[^/][^/]*/\.\./'
4562 # Canonicalize the pathname of ld
4563 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4564 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4565 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4567 test -z "$LD" && LD
="$ac_prog"
4570 # If it fails, then pretend we aren't using GCC.
4574 # If it is relative, then search for the first ld in PATH.
4578 elif test "$with_gnu_ld" = yes; then
4579 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4580 $as_echo_n "checking for GNU ld... " >&6; }
4582 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4583 $as_echo_n "checking for non-GNU ld... " >&6; }
4585 if test "${lt_cv_path_LD+set}" = set; then
4586 $as_echo_n "(cached) " >&6
4588 if test -z "$LD"; then
4589 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4590 for ac_dir
in $PATH; do
4592 test -z "$ac_dir" && ac_dir
=.
4593 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4594 lt_cv_path_LD
="$ac_dir/$ac_prog"
4595 # Check to see if the program is GNU ld. I'd rather use --version,
4596 # but apparently some variants of GNU ld only accept -v.
4597 # Break only if it was the GNU/non-GNU ld that we prefer.
4598 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4599 *GNU
* |
*'with BFD'*)
4600 test "$with_gnu_ld" != no
&& break
4603 test "$with_gnu_ld" != yes && break
4610 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4615 if test -n "$LD"; then
4616 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4617 $as_echo "$LD" >&6; }
4619 { $as_echo "$as_me:$LINENO: result: no" >&5
4620 $as_echo "no" >&6; }
4622 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4623 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4624 { (exit 1); exit 1; }; }
4625 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4626 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4627 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4628 $as_echo_n "(cached) " >&6
4630 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4631 case `$LD -v 2>&1 </dev/null` in
4632 *GNU
* |
*'with BFD'*)
4633 lt_cv_prog_gnu_ld
=yes
4636 lt_cv_prog_gnu_ld
=no
4640 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4641 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4642 with_gnu_ld
=$lt_cv_prog_gnu_ld
4652 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4653 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4654 if test "${lt_cv_path_NM+set}" = set; then
4655 $as_echo_n "(cached) " >&6
4657 if test -n "$NM"; then
4658 # Let the user override the test.
4661 lt_nm_to_check
="${ac_tool_prefix}nm"
4662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663 lt_nm_to_check
="$lt_nm_to_check nm"
4665 for lt_tmp_nm
in $lt_nm_to_check; do
4666 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4667 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4669 test -z "$ac_dir" && ac_dir
=.
4670 tmp_nm
="$ac_dir/$lt_tmp_nm"
4671 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4672 # Check to see if the nm accepts a BSD-compat flag.
4673 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4674 # nm: unknown option "B" ignored
4675 # Tru64's nm complains that /dev/null is an invalid object file
4676 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4677 */dev
/null
* |
*'Invalid file or object type'*)
4678 lt_cv_path_NM
="$tmp_nm -B"
4682 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4684 lt_cv_path_NM
="$tmp_nm -p"
4688 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689 continue # so that we can try to find one that supports BSD flags
4698 : ${lt_cv_path_NM=no}
4701 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4702 $as_echo "$lt_cv_path_NM" >&6; }
4703 if test "$lt_cv_path_NM" != "no"; then
4706 # Didn't find any BSD compatible name lister, look for dumpbin.
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4712 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4715 $as_echo_n "(cached) " >&6
4717 if test -n "$DUMPBIN"; then
4718 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir
=.
4725 for ac_exec_ext
in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4728 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 DUMPBIN
=$ac_cv_prog_DUMPBIN
4738 if test -n "$DUMPBIN"; then
4739 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4740 $as_echo "$DUMPBIN" >&6; }
4742 { $as_echo "$as_me:$LINENO: result: no" >&5
4743 $as_echo "no" >&6; }
4747 test -n "$DUMPBIN" && break
4750 if test -z "$DUMPBIN"; then
4751 ac_ct_DUMPBIN
=$DUMPBIN
4752 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4754 # Extract the first word of "$ac_prog", so it can be a program name with args.
4755 set dummy
$ac_prog; ac_word
=$2
4756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4761 if test -n "$ac_ct_DUMPBIN"; then
4762 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir
=.
4769 for ac_exec_ext
in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4782 if test -n "$ac_ct_DUMPBIN"; then
4783 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4784 $as_echo "$ac_ct_DUMPBIN" >&6; }
4786 { $as_echo "$as_me:$LINENO: result: no" >&5
4787 $as_echo "no" >&6; }
4791 test -n "$ac_ct_DUMPBIN" && break
4794 if test "x$ac_ct_DUMPBIN" = x
; then
4797 case $cross_compiling:$ac_tool_warned in
4799 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801 ac_tool_warned
=yes ;;
4803 DUMPBIN
=$ac_ct_DUMPBIN
4808 if test "$DUMPBIN" != ":"; then
4812 test -z "$NM" && NM
=nm
4819 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4820 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4821 if test "${lt_cv_nm_interface+set}" = set; then
4822 $as_echo_n "(cached) " >&6
4824 lt_cv_nm_interface
="BSD nm"
4825 echo "int some_variable = 0;" > conftest.
$ac_ext
4826 (eval echo "\"\$as_me:4826: $ac_compile\"" >&5)
4827 (eval "$ac_compile" 2>conftest.err
)
4828 cat conftest.err
>&5
4829 (eval echo "\"\$as_me:4829: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4830 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4831 cat conftest.err
>&5
4832 (eval echo "\"\$as_me:4832: output\"" >&5)
4833 cat conftest.out
>&5
4834 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4835 lt_cv_nm_interface
="MS dumpbin"
4839 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4840 $as_echo "$lt_cv_nm_interface" >&6; }
4842 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4843 $as_echo_n "checking whether ln -s works... " >&6; }
4845 if test "$LN_S" = "ln -s"; then
4846 { $as_echo "$as_me:$LINENO: result: yes" >&5
4847 $as_echo "yes" >&6; }
4849 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4850 $as_echo "no, using $LN_S" >&6; }
4853 # find the maximum length of command line arguments
4854 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4855 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4856 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4857 $as_echo_n "(cached) " >&6
4864 # On DJGPP, this test can blow up pretty badly due to problems in libc
4865 # (any single argument exceeding 2000 bytes causes a buffer overrun
4866 # during glob expansion). Even if it were fixed, the result of this
4867 # check would be larger than it should be.
4868 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4872 # Under GNU Hurd, this test is not required because there is
4873 # no limit to the length of command line arguments.
4874 # Libtool will interpret -1 as no limit whatsoever
4875 lt_cv_sys_max_cmd_len
=-1;
4878 cygwin
* | mingw
* | cegcc
*)
4879 # On Win9x/ME, this test blows up -- it succeeds, but takes
4880 # about 5 minutes as the teststring grows exponentially.
4881 # Worse, since 9x/ME are not pre-emptively multitasking,
4882 # you end up with a "frozen" computer, even though with patience
4883 # the test eventually succeeds (with a max line length of 256k).
4884 # Instead, let's just punt: use the minimum linelength reported by
4885 # all of the supported platforms: 8192 (on NT/2K/XP).
4886 lt_cv_sys_max_cmd_len
=8192;
4890 # On AmigaOS with pdksh, this test takes hours, literally.
4891 # So we just punt and use a minimum line length of 8192.
4892 lt_cv_sys_max_cmd_len
=8192;
4895 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4896 # This has been around since 386BSD, at least. Likely further.
4897 if test -x /sbin
/sysctl
; then
4898 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4899 elif test -x /usr
/sbin
/sysctl
; then
4900 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4902 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4904 # And add a safety zone
4905 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4906 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4910 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4911 lt_cv_sys_max_cmd_len
=196608
4915 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4916 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4917 # nice to cause kernel panics so lets avoid the loop below.
4918 # First set a reasonable default.
4919 lt_cv_sys_max_cmd_len
=16384
4921 if test -x /sbin
/sysconfig
; then
4922 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4923 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4928 lt_cv_sys_max_cmd_len
=102400
4930 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4931 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4932 if test -n "$kargmax"; then
4933 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4935 lt_cv_sys_max_cmd_len
=32768
4939 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4940 if test -n "$lt_cv_sys_max_cmd_len"; then
4941 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4942 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4944 # Make teststring a little bigger before we do anything with it.
4945 # a 1K string should be a reasonable start.
4946 for i
in 1 2 3 4 5 6 7 8 ; do
4947 teststring
=$teststring$teststring
4949 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4950 # If test is not a shell built-in, we'll probably end up computing a
4951 # maximum length that is only half of the actual maximum length, but
4953 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4954 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4955 test $i != 17 # 1/2 MB should be enough
4958 teststring
=$teststring$teststring
4960 # Only check the string length outside the loop.
4961 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4963 # Add a significant safety factor because C++ compilers can tack on
4964 # massive amounts of additional arguments before passing them to the
4965 # linker. It appears as though 1/2 is a usable value.
4966 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4973 if test -n $lt_cv_sys_max_cmd_len ; then
4974 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4975 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4977 { $as_echo "$as_me:$LINENO: result: none" >&5
4978 $as_echo "none" >&6; }
4980 max_cmd_len
=$lt_cv_sys_max_cmd_len
4991 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4992 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4993 # Try some XSI features
4996 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4998 && eval 'test $(( 1 + 1 )) -eq 2 \
4999 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5001 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5002 $as_echo "$xsi_shell" >&6; }
5005 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5006 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5008 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5010 && lt_shell_append=yes
5011 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5012 $as_echo "$lt_shell_append" >&6; }
5015 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5025 # test EBCDIC or ASCII
5026 case `echo X|tr X '\101'` in
5027 A) # ASCII based system
5028 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5029 lt_SP2NL='tr \040 \012'
5030 lt_NL2SP='tr \015\012 \040\040'
5032 *) # EBCDIC based system
5033 lt_SP2NL='tr \100 \n'
5034 lt_NL2SP='tr \r\n \100\100'
5046 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5047 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5048 if test "${lt_cv_ld_reload_flag+set}" = set; then
5049 $as_echo_n "(cached
) " >&6
5051 lt_cv_ld_reload_flag='-r'
5053 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5054 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5055 reload_flag=$lt_cv_ld_reload_flag
5056 case $reload_flag in
5058 *) reload_flag=" $reload_flag" ;;
5060 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5063 if test "$GCC" = yes; then
5064 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5082 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5083 $as_echo_n "checking
for $ac_word...
" >&6; }
5084 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5085 $as_echo_n "(cached
) " >&6
5087 if test -n "$OBJDUMP"; then
5088 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5098 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5107 OBJDUMP=$ac_cv_prog_OBJDUMP
5108 if test -n "$OBJDUMP"; then
5109 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5110 $as_echo "$OBJDUMP" >&6; }
5112 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5113 $as_echo "no
" >&6; }
5118 if test -z "$ac_cv_prog_OBJDUMP"; then
5119 ac_ct_OBJDUMP=$OBJDUMP
5120 # Extract the first word of "objdump
", so it can be a program name with args.
5121 set dummy objdump; ac_word=$2
5122 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5123 $as_echo_n "checking
for $ac_word...
" >&6; }
5124 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5125 $as_echo_n "(cached
) " >&6
5127 if test -n "$ac_ct_OBJDUMP"; then
5128 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5138 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5147 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5148 if test -n "$ac_ct_OBJDUMP"; then
5149 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5150 $as_echo "$ac_ct_OBJDUMP" >&6; }
5152 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5153 $as_echo "no
" >&6; }
5156 if test "x
$ac_ct_OBJDUMP" = x; then
5159 case $cross_compiling:$ac_tool_warned in
5161 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5162 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5163 ac_tool_warned=yes ;;
5165 OBJDUMP=$ac_ct_OBJDUMP
5168 OBJDUMP="$ac_cv_prog_OBJDUMP"
5171 test -z "$OBJDUMP" && OBJDUMP=objdump
5181 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5182 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5183 if test "${lt_cv_deplibs_check_method+set}" = set; then
5184 $as_echo_n "(cached
) " >&6
5186 lt_cv_file_magic_cmd='$MAGIC_CMD'
5187 lt_cv_file_magic_test_file=
5188 lt_cv_deplibs_check_method='unknown'
5189 # Need to set the preceding variable on all platforms that support
5190 # interlibrary dependencies.
5191 # 'none' -- dependencies not supported.
5192 # `unknown' -- same as none, but documents that we really don't know.
5193 # 'pass_all' -- all dependencies passed with no checks.
5194 # 'test_compile' -- check by making test program.
5195 # 'file_magic [[regex]]' -- check by looking for files in library path
5196 # which responds to the $file_magic_cmd with a given extended regex.
5197 # If you have `file' or equivalent on your system and you're not sure
5198 # whether `pass_all' will *always* work, you probably want this one.
5202 lt_cv_deplibs_check_method=pass_all
5206 lt_cv_deplibs_check_method=pass_all
5210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5211 lt_cv_file_magic_cmd='/usr/bin/file -L'
5212 lt_cv_file_magic_test_file=/shlib/libc.so
5216 # func_win32_libid is a shell function defined in ltmain.sh
5217 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5218 lt_cv_file_magic_cmd='func_win32_libid'
5222 # Base MSYS/MinGW do not provide the 'file' command needed by
5223 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5224 # unless we find 'file', for example because we are cross-compiling.
5225 if ( file / ) >/dev/null 2>&1; then
5226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5227 lt_cv_file_magic_cmd='func_win32_libid'
5229 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5230 lt_cv_file_magic_cmd='$OBJDUMP -f'
5235 # use the weaker test based on 'objdump'. See mingw*.
5236 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5237 lt_cv_file_magic_cmd='$OBJDUMP -f'
5240 darwin* | rhapsody*)
5241 lt_cv_deplibs_check_method=pass_all
5244 freebsd* | dragonfly*)
5245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5248 # Not sure whether the presence of OpenBSD here was a mistake.
5249 # Let's accept both of them until this is cleared up.
5250 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5251 lt_cv_file_magic_cmd=/usr/bin/file
5252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5256 lt_cv_deplibs_check_method=pass_all
5261 lt_cv_deplibs_check_method=pass_all
5264 hpux10.20* | hpux11*)
5265 lt_cv_file_magic_cmd=/usr/bin/file
5268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5269 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5272 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]'
5273 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5277 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5283 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5287 irix5* | irix6* | nonstopux*)
5289 *-32|*"-32 ") libmagic=32-bit;;
5290 *-n32|*"-n32 ") libmagic=N32;;
5291 *-64|*"-64 ") libmagic=64-bit;;
5292 *) libmagic=never-match;;
5294 lt_cv_deplibs_check_method=pass_all
5297 # This must be Linux ELF.
5298 linux* | k*bsd*-gnu)
5299 lt_cv_deplibs_check_method=pass_all
5303 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5312 lt_cv_file_magic_cmd=/usr/bin/file
5313 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5317 lt_cv_deplibs_check_method=pass_all
5321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5328 osf3* | osf4* | osf5*)
5329 lt_cv_deplibs_check_method=pass_all
5333 lt_cv_deplibs_check_method=pass_all
5337 lt_cv_deplibs_check_method=pass_all
5340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5341 lt_cv_deplibs_check_method=pass_all
5345 case $host_vendor in
5347 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]'
5348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5351 lt_cv_deplibs_check_method=pass_all
5354 lt_cv_file_magic_cmd='/bin/file'
5355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5358 lt_cv_file_magic_cmd='/bin/file'
5359 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5360 lt_cv_file_magic_test_file=/lib/libc.so
5363 lt_cv_deplibs_check_method=pass_all
5366 lt_cv_deplibs_check_method=pass_all
5372 lt_cv_deplibs_check_method=pass_all
5377 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5378 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5379 file_magic_cmd=$lt_cv_file_magic_cmd
5380 deplibs_check_method=$lt_cv_deplibs_check_method
5381 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5394 if test -n "$ac_tool_prefix"; then
5395 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5396 set dummy ${ac_tool_prefix}ar; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5398 $as_echo_n "checking
for $ac_word...
" >&6; }
5399 if test "${ac_cv_prog_AR+set}" = set; then
5400 $as_echo_n "(cached
) " >&6
5402 if test -n "$AR"; then
5403 ac_cv_prog_AR="$AR" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_AR="${ac_tool_prefix}ar"
5413 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5423 if test -n "$AR"; then
5424 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5425 $as_echo "$AR" >&6; }
5427 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5428 $as_echo "no
" >&6; }
5433 if test -z "$ac_cv_prog_AR"; then
5435 # Extract the first word of "ar", so it can be a program name with args.
5436 set dummy ar; ac_word=$2
5437 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5438 $as_echo_n "checking
for $ac_word...
" >&6; }
5439 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5440 $as_echo_n "(cached
) " >&6
5442 if test -n "$ac_ct_AR"; then
5443 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_ac_ct_AR="ar"
5453 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5462 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5463 if test -n "$ac_ct_AR"; then
5464 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5465 $as_echo "$ac_ct_AR" >&6; }
5467 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5468 $as_echo "no
" >&6; }
5471 if test "x
$ac_ct_AR" = x; then
5474 case $cross_compiling:$ac_tool_warned in
5476 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5477 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5478 ac_tool_warned=yes ;;
5486 test -z "$AR" && AR=ar
5487 test -z "$AR_FLAGS" && AR_FLAGS=cru
5499 if test -n "$ac_tool_prefix"; then
5500 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5501 set dummy ${ac_tool_prefix}strip; ac_word=$2
5502 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5503 $as_echo_n "checking
for $ac_word...
" >&6; }
5504 if test "${ac_cv_prog_STRIP+set}" = set; then
5505 $as_echo_n "(cached
) " >&6
5507 if test -n "$STRIP"; then
5508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5518 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5527 STRIP=$ac_cv_prog_STRIP
5528 if test -n "$STRIP"; then
5529 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5530 $as_echo "$STRIP" >&6; }
5532 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5533 $as_echo "no
" >&6; }
5538 if test -z "$ac_cv_prog_STRIP"; then
5540 # Extract the first word of "strip
", so it can be a program name with args.
5541 set dummy strip; ac_word=$2
5542 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5543 $as_echo_n "checking
for $ac_word...
" >&6; }
5544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5545 $as_echo_n "(cached
) " >&6
5547 if test -n "$ac_ct_STRIP"; then
5548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_ac_ct_STRIP="strip
"
5558 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568 if test -n "$ac_ct_STRIP"; then
5569 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5570 $as_echo "$ac_ct_STRIP" >&6; }
5572 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5573 $as_echo "no
" >&6; }
5576 if test "x
$ac_ct_STRIP" = x; then
5579 case $cross_compiling:$ac_tool_warned in
5581 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5582 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5583 ac_tool_warned=yes ;;
5588 STRIP="$ac_cv_prog_STRIP"
5591 test -z "$STRIP" && STRIP=:
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5601 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5602 $as_echo_n "checking
for $ac_word...
" >&6; }
5603 if test "${ac_cv_prog_RANLIB+set}" = set; then
5604 $as_echo_n "(cached
) " >&6
5606 if test -n "$RANLIB"; then
5607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5617 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5626 RANLIB=$ac_cv_prog_RANLIB
5627 if test -n "$RANLIB"; then
5628 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5629 $as_echo "$RANLIB" >&6; }
5631 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5632 $as_echo "no
" >&6; }
5637 if test -z "$ac_cv_prog_RANLIB"; then
5638 ac_ct_RANLIB=$RANLIB
5639 # Extract the first word of "ranlib
", so it can be a program name with args.
5640 set dummy ranlib; ac_word=$2
5641 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5642 $as_echo_n "checking
for $ac_word...
" >&6; }
5643 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5644 $as_echo_n "(cached
) " >&6
5646 if test -n "$ac_ct_RANLIB"; then
5647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5657 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5667 if test -n "$ac_ct_RANLIB"; then
5668 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5669 $as_echo "$ac_ct_RANLIB" >&6; }
5671 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5672 $as_echo "no
" >&6; }
5675 if test "x
$ac_ct_RANLIB" = x; then
5678 case $cross_compiling:$ac_tool_warned in
5680 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5681 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5682 ac_tool_warned=yes ;;
5684 RANLIB=$ac_ct_RANLIB
5687 RANLIB="$ac_cv_prog_RANLIB"
5690 test -z "$RANLIB" && RANLIB=:
5697 # Determine commands to create old-style static archives.
5698 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5699 old_postinstall_cmds='chmod 644 $oldlib'
5700 old_postuninstall_cmds=
5702 if test -n "$RANLIB"; then
5705 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5708 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5711 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5747 # If no C compiler was specified, use CC.
5750 # If no C compiler flags were specified, use CFLAGS.
5751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5753 # Allow CC to be a program name with arguments.
5757 # Check for command to grab the raw symbol name followed by C symbol from nm.
5758 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5759 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5760 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5761 $as_echo_n "(cached
) " >&6
5764 # These are sane defaults that work on at least a few old systems.
5765 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5767 # Character class describing NM global symbol codes.
5768 symcode='[BCDEGRST]'
5770 # Regexp to match symbols that can be accessed directly from C.
5771 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5773 # Define system-specific variables.
5778 cygwin* | mingw* | pw32* | cegcc*)
5779 symcode='[ABCDGISTW]'
5782 if test "$host_cpu" = ia64; then
5783 symcode='[ABCDEGRST]'
5787 symcode='[BCDEGRST]'
5790 symcode='[BCDEGQRST]'
5801 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5809 # If we're using GNU nm, then use its standard symbol codes.
5810 case `$NM -V 2>&1` in
5811 *GNU* | *'with BFD'*)
5812 symcode='[ABCDGIRSTW]' ;;
5815 # Transform an extracted symbol line into a proper C declaration.
5816 # Some systems (esp. on ia64) link data and code symbols differently,
5817 # so use this general approach.
5818 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5820 # Transform an extracted symbol line into symbol name and symbol address
5821 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5822 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'"
5824 # Handle CRLF in mingw tool chain
5828 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5832 # Try without a prefix underscore, then with it.
5833 for ac_symprfx in "" "_
"; do
5835 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5836 symxfrm="\\1 $ac_symprfx\\2 \\2"
5838 # Write the raw and C identifiers.
5839 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5840 # Fake it for dumpbin and say T for any non-static function
5841 # and D for any global variable.
5842 # Also find C++ and __fastcall symbols from MSVC++,
5843 # which start with @ or ?.
5844 lt_cv_sys_global_symbol_pipe="$AWK '"\
5845 " {last_section=section; section=\$ 3};"\
5846 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5847 " \$ 0!~/External *\|/{next};"\
5848 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5849 " {if(hide[section]) next};"\
5850 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5851 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5852 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5853 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5854 " ' prfx
=^
$ac_symprfx"
5856 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5859 # Check to see that the pipe works correctly.
5863 cat > conftest.$ac_ext <<_LT_EOF
5868 void nm_test_func(void);
5869 void nm_test_func(void){}
5873 int main(){nm_test_var='a';nm_test_func();return(0);}
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>&5
5879 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5880 (exit $ac_status); }; then
5881 # Now try to grab the symbols.
5883 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5884 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5886 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5887 (exit $ac_status); } && test -s "$nlist"; then
5888 # Try sorting and uniquifying the output.
5889 if sort "$nlist" | uniq > "$nlist"T; then
5890 mv -f "$nlist"T "$nlist"
5895 # Make sure that we snagged all the symbols we need.
5896 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5897 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5898 cat <<_LT_EOF > conftest.$ac_ext
5904 # Now generate the symbol file.
5905 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5907 cat <<_LT_EOF >> conftest.$ac_ext
5909 /* The mapping between symbol names and symbols. */
5914 lt__PROGRAM__LTX_preloaded_symbols[] =
5916 { "@PROGRAM@
", (void *) 0 },
5918 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5919 cat <<\_LT_EOF >> conftest.$ac_ext
5923 /* This works around a problem in FreeBSD linker */
5924 #ifdef FREEBSD_WORKAROUND
5925 static const void *lt_preloaded_setup() {
5926 return lt__PROGRAM__LTX_preloaded_symbols;
5934 # Now try linking the two files.
5935 mv conftest.$ac_objext conftstm.$ac_objext
5936 lt_save_LIBS="$LIBS"
5937 lt_save_CFLAGS="$CFLAGS"
5938 LIBS="conftstm.
$ac_objext"
5939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941 (eval $ac_link) 2>&5
5943 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5944 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5947 LIBS="$lt_save_LIBS"
5948 CFLAGS="$lt_save_CFLAGS"
5950 echo "cannot
find nm_test_func
in $nlist" >&5
5953 echo "cannot
find nm_test_var
in $nlist" >&5
5956 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5959 echo "$progname: failed program was
:" >&5
5960 cat conftest.$ac_ext >&5
5962 rm -rf conftest* conftst*
5964 # Do not use the global_symbol_pipe unless it works.
5965 if test "$pipe_works" = yes; then
5968 lt_cv_sys_global_symbol_pipe=
5974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5975 lt_cv_sys_global_symbol_to_cdecl=
5977 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5978 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5979 $as_echo "failed
" >&6; }
5981 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5982 $as_echo "ok
" >&6; }
6007 # Check whether --enable-libtool-lock was given.
6008 if test "${enable_libtool_lock+set}" = set; then
6009 enableval=$enable_libtool_lock;
6012 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6014 # Some flags need to be propagated to the compiler or linker for good
6018 # Find out which ABI we are using.
6019 echo 'int i;' > conftest.$ac_ext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>&5
6023 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6024 (exit $ac_status); }; then
6025 case `/usr/bin/file conftest.$ac_objext` in
6037 # Find out which ABI we are using.
6038 echo '#line 6038 "configure
"' > conftest.$ac_ext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6042 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6043 (exit $ac_status); }; then
6044 if test "$lt_cv_prog_gnu_ld" = yes; then
6045 case `/usr/bin/file conftest.$ac_objext` in
6047 LD="${LD-ld} -melf32bsmip"
6050 LD="${LD-ld} -melf32bmipn32"
6053 LD="${LD-ld} -melf64bmip"
6057 case `/usr/bin/file conftest.$ac_objext` in
6073 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6074 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6075 # Find out which ABI we are using.
6076 echo 'int i;' > conftest.$ac_ext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>&5
6080 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6081 (exit $ac_status); }; then
6082 case `/usr/bin/file conftest.o` in
6085 x86_64-*kfreebsd*-gnu)
6086 LD="${LD-ld} -m elf_i386_fbsd
"
6089 LD="${LD-ld} -m elf_i386
"
6091 ppc64-*linux*|powerpc64-*linux*)
6092 LD="${LD-ld} -m elf32ppclinux
"
6095 LD="${LD-ld} -m elf_s390
"
6098 LD="${LD-ld} -m elf32_sparc
"
6104 x86_64-*kfreebsd*-gnu)
6105 LD="${LD-ld} -m elf_x86_64_fbsd
"
6108 LD="${LD-ld} -m elf_x86_64
"
6110 ppc*-*linux*|powerpc*-*linux*)
6111 LD="${LD-ld} -m elf64ppc
"
6113 s390*-*linux*|s390*-*tpf*)
6114 LD="${LD-ld} -m elf64_s390
"
6117 LD="${LD-ld} -m elf64_sparc
"
6127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6128 SAVE_CFLAGS="$CFLAGS"
6129 CFLAGS="$CFLAGS -belf"
6130 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6131 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6132 if test "${lt_cv_cc_needs_belf+set}" = set; then
6133 $as_echo_n "(cached
) " >&6
6136 ac_cpp='$CPP $CPPFLAGS'
6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (ac_try="$ac_link"
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6162 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_link") 2>conftest.er1
6166 grep -v '^ *+' conftest.er1 >conftest.err
6168 cat conftest.err >&5
6169 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest$ac_exeext && {
6174 test "$cross_compiling" = yes ||
6175 $as_test_x conftest$ac_exeext
6177 lt_cv_cc_needs_belf=yes
6179 $as_echo "$as_me: failed program was
:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 lt_cv_cc_needs_belf=no
6185 rm -rf conftest.dSYM
6186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6187 conftest$ac_exeext conftest.$ac_ext
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6196 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6197 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6198 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6199 CFLAGS="$SAVE_CFLAGS"
6203 # Find out which ABI we are using.
6204 echo 'int i;' > conftest.$ac_ext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>&5
6208 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6209 (exit $ac_status); }; then
6210 case `/usr/bin/file conftest.o` in
6212 case $lt_cv_prog_gnu_ld in
6213 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6215 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6227 need_locks="$enable_libtool_lock"
6231 rhapsody* | darwin*)
6232 if test -n "$ac_tool_prefix"; then
6233 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6234 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6235 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6236 $as_echo_n "checking
for $ac_word...
" >&6; }
6237 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6238 $as_echo_n "(cached
) " >&6
6240 if test -n "$DSYMUTIL"; then
6241 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6251 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6260 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6261 if test -n "$DSYMUTIL"; then
6262 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6263 $as_echo "$DSYMUTIL" >&6; }
6265 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6266 $as_echo "no
" >&6; }
6271 if test -z "$ac_cv_prog_DSYMUTIL"; then
6272 ac_ct_DSYMUTIL=$DSYMUTIL
6273 # Extract the first word of "dsymutil
", so it can be a program name with args.
6274 set dummy dsymutil; ac_word=$2
6275 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6276 $as_echo_n "checking
for $ac_word...
" >&6; }
6277 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6278 $as_echo_n "(cached
) " >&6
6280 if test -n "$ac_ct_DSYMUTIL"; then
6281 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6291 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6300 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6301 if test -n "$ac_ct_DSYMUTIL"; then
6302 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6303 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6305 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6306 $as_echo "no
" >&6; }
6309 if test "x
$ac_ct_DSYMUTIL" = x; then
6312 case $cross_compiling:$ac_tool_warned in
6314 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6315 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6316 ac_tool_warned=yes ;;
6318 DSYMUTIL=$ac_ct_DSYMUTIL
6321 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6326 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6328 $as_echo_n "checking
for $ac_word...
" >&6; }
6329 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6330 $as_echo_n "(cached
) " >&6
6332 if test -n "$NMEDIT"; then
6333 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6343 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6352 NMEDIT=$ac_cv_prog_NMEDIT
6353 if test -n "$NMEDIT"; then
6354 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6355 $as_echo "$NMEDIT" >&6; }
6357 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6358 $as_echo "no
" >&6; }
6363 if test -z "$ac_cv_prog_NMEDIT"; then
6364 ac_ct_NMEDIT=$NMEDIT
6365 # Extract the first word of "nmedit
", so it can be a program name with args.
6366 set dummy nmedit; ac_word=$2
6367 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6368 $as_echo_n "checking
for $ac_word...
" >&6; }
6369 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6370 $as_echo_n "(cached
) " >&6
6372 if test -n "$ac_ct_NMEDIT"; then
6373 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6383 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6392 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6393 if test -n "$ac_ct_NMEDIT"; then
6394 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6395 $as_echo "$ac_ct_NMEDIT" >&6; }
6397 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6398 $as_echo "no
" >&6; }
6401 if test "x
$ac_ct_NMEDIT" = x; then
6404 case $cross_compiling:$ac_tool_warned in
6406 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6407 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6408 ac_tool_warned=yes ;;
6410 NMEDIT=$ac_ct_NMEDIT
6413 NMEDIT="$ac_cv_prog_NMEDIT"
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6419 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6420 $as_echo_n "checking
for $ac_word...
" >&6; }
6421 if test "${ac_cv_prog_LIPO+set}" = set; then
6422 $as_echo_n "(cached
) " >&6
6424 if test -n "$LIPO"; then
6425 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6435 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6444 LIPO=$ac_cv_prog_LIPO
6445 if test -n "$LIPO"; then
6446 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6447 $as_echo "$LIPO" >&6; }
6449 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6450 $as_echo "no
" >&6; }
6455 if test -z "$ac_cv_prog_LIPO"; then
6457 # Extract the first word of "lipo
", so it can be a program name with args.
6458 set dummy lipo; ac_word=$2
6459 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6460 $as_echo_n "checking
for $ac_word...
" >&6; }
6461 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6462 $as_echo_n "(cached
) " >&6
6464 if test -n "$ac_ct_LIPO"; then
6465 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_LIPO="lipo
"
6475 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6484 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6485 if test -n "$ac_ct_LIPO"; then
6486 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6487 $as_echo "$ac_ct_LIPO" >&6; }
6489 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6490 $as_echo "no
" >&6; }
6493 if test "x
$ac_ct_LIPO" = x; then
6496 case $cross_compiling:$ac_tool_warned in
6498 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6499 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6500 ac_tool_warned=yes ;;
6505 LIPO="$ac_cv_prog_LIPO"
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}otool; ac_word=$2
6511 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6512 $as_echo_n "checking
for $ac_word...
" >&6; }
6513 if test "${ac_cv_prog_OTOOL+set}" = set; then
6514 $as_echo_n "(cached
) " >&6
6516 if test -n "$OTOOL"; then
6517 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6527 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6536 OTOOL=$ac_cv_prog_OTOOL
6537 if test -n "$OTOOL"; then
6538 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6539 $as_echo "$OTOOL" >&6; }
6541 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6542 $as_echo "no
" >&6; }
6547 if test -z "$ac_cv_prog_OTOOL"; then
6549 # Extract the first word of "otool
", so it can be a program name with args.
6550 set dummy otool; ac_word=$2
6551 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6552 $as_echo_n "checking
for $ac_word...
" >&6; }
6553 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6554 $as_echo_n "(cached
) " >&6
6556 if test -n "$ac_ct_OTOOL"; then
6557 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_OTOOL="otool
"
6567 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6576 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6577 if test -n "$ac_ct_OTOOL"; then
6578 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6579 $as_echo "$ac_ct_OTOOL" >&6; }
6581 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6582 $as_echo "no
" >&6; }
6585 if test "x
$ac_ct_OTOOL" = x; then
6588 case $cross_compiling:$ac_tool_warned in
6590 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6591 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6592 ac_tool_warned=yes ;;
6597 OTOOL="$ac_cv_prog_OTOOL"
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6603 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6604 $as_echo_n "checking
for $ac_word...
" >&6; }
6605 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6606 $as_echo_n "(cached
) " >&6
6608 if test -n "$OTOOL64"; then
6609 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6619 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6628 OTOOL64=$ac_cv_prog_OTOOL64
6629 if test -n "$OTOOL64"; then
6630 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6631 $as_echo "$OTOOL64" >&6; }
6633 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6634 $as_echo "no
" >&6; }
6639 if test -z "$ac_cv_prog_OTOOL64"; then
6640 ac_ct_OTOOL64=$OTOOL64
6641 # Extract the first word of "otool64
", so it can be a program name with args.
6642 set dummy otool64; ac_word=$2
6643 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6644 $as_echo_n "checking
for $ac_word...
" >&6; }
6645 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6646 $as_echo_n "(cached
) " >&6
6648 if test -n "$ac_ct_OTOOL64"; then
6649 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6659 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6668 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6669 if test -n "$ac_ct_OTOOL64"; then
6670 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6671 $as_echo "$ac_ct_OTOOL64" >&6; }
6673 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6674 $as_echo "no
" >&6; }
6677 if test "x
$ac_ct_OTOOL64" = x; then
6680 case $cross_compiling:$ac_tool_warned in
6682 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6683 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6684 ac_tool_warned=yes ;;
6686 OTOOL64=$ac_ct_OTOOL64
6689 OTOOL64="$ac_cv_prog_OTOOL64"
6718 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6719 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6720 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6721 $as_echo_n "(cached
) " >&6
6723 lt_cv_apple_cc_single_mod=no
6724 if test -z "${LT_MULTI_MODULE}"; then
6725 # By default we will add the -single_module flag. You can override
6726 # by either setting the environment variable LT_MULTI_MODULE
6727 # non-empty at configure time, or by adding -multi_module to the
6729 rm -rf libconftest.dylib*
6730 echo "int foo
(void
){return 1;}" > conftest.c
6731 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6732 -dynamiclib -Wl,-single_module conftest.c
" >&5
6733 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6734 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6736 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6737 lt_cv_apple_cc_single_mod=yes
6739 cat conftest.err >&5
6741 rm -rf libconftest.dylib*
6745 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6746 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6747 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6748 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6749 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6750 $as_echo_n "(cached
) " >&6
6752 lt_cv_ld_exported_symbols_list=no
6753 save_LDFLAGS=$LDFLAGS
6754 echo "_main
" > conftest.sym
6755 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6756 cat >conftest.$ac_ext <<_ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6771 rm -f conftest.$ac_objext conftest$ac_exeext
6772 if { (ac_try="$ac_link"
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6777 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6778 $as_echo "$ac_try_echo") >&5
6779 (eval "$ac_link") 2>conftest.er1
6781 grep -v '^ *+' conftest.er1 >conftest.err
6783 cat conftest.err >&5
6784 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest$ac_exeext && {
6789 test "$cross_compiling" = yes ||
6790 $as_test_x conftest$ac_exeext
6792 lt_cv_ld_exported_symbols_list=yes
6794 $as_echo "$as_me: failed program was
:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 lt_cv_ld_exported_symbols_list=no
6800 rm -rf conftest.dSYM
6801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6802 conftest$ac_exeext conftest.$ac_ext
6803 LDFLAGS="$save_LDFLAGS"
6806 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6807 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6809 rhapsody* | darwin1.[012])
6810 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6812 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6813 darwin*) # darwin 5.x on
6814 # if running on 10.5 or later, the deployment target defaults
6815 # to the OS version, if on x86, and 10.4, the deployment
6816 # target defaults to 10.4. Don't you love it?
6817 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6818 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6819 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6821 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6823 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6827 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6828 _lt_dar_single_mod='$single_module'
6830 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6831 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6833 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6835 if test "$DSYMUTIL" != ":"; then
6836 _lt_dsymutil='~$DSYMUTIL $lib || :'
6844 ac_cpp='$CPP $CPPFLAGS'
6845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6848 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6849 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6850 # On Suns, sometimes $CPP names a directory.
6851 if test -n "$CPP" && test -d "$CPP"; then
6854 if test -z "$CPP"; then
6855 if test "${ac_cv_prog_CPP+set}" = set; then
6856 $as_echo_n "(cached
) " >&6
6858 # Double quotes because CPP needs to be expanded
6859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6862 for ac_c_preproc_warn_flag in '' yes
6864 # Use a header file that comes with gcc, so configuring glibc
6865 # with a fresh cross-compiler works.
6866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6867 # <limits.h> exists even on freestanding compilers.
6868 # On the NeXT, cc -E runs the code through the compiler's parser,
6869 # not just through cpp. "Syntax error
" is here to catch this case.
6870 cat >conftest.$ac_ext <<_ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6877 # include <limits.h>
6879 # include <assert.h>
6883 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6888 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6896 (exit $ac_status); } >/dev/null && {
6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6902 $as_echo "$as_me: failed program was
:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 # Broken: fails on valid input.
6909 rm -f conftest.err conftest.$ac_ext
6911 # OK, works on sane cases. Now check whether nonexistent headers
6912 # can be detected and how.
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <ac_nonexistent.h>
6921 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6926 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6927 $as_echo "$ac_try_echo") >&5
6928 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6930 grep -v '^ *+' conftest.er1 >conftest.err
6932 cat conftest.err >&5
6933 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6934 (exit $ac_status); } >/dev/null && {
6935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936 test ! -s conftest.err
6938 # Broken: success on invalid input.
6941 $as_echo "$as_me: failed program was
:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6944 # Passes both tests.
6949 rm -f conftest.err conftest.$ac_ext
6952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6953 rm -f conftest.err conftest.$ac_ext
6954 if $ac_preproc_ok; then
6966 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6967 $as_echo "$CPP" >&6; }
6969 for ac_c_preproc_warn_flag in '' yes
6971 # Use a header file that comes with gcc, so configuring glibc
6972 # with a fresh cross-compiler works.
6973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974 # <limits.h> exists even on freestanding compilers.
6975 # On the NeXT, cc -E runs the code through the compiler's parser,
6976 # not just through cpp. "Syntax error
" is here to catch this case.
6977 cat >conftest.$ac_ext <<_ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6984 # include <limits.h>
6986 # include <assert.h>
6990 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6999 grep -v '^ *+' conftest.er1 >conftest.err
7001 cat conftest.err >&5
7002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7003 (exit $ac_status); } >/dev/null && {
7004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7009 $as_echo "$as_me: failed program was
:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 # Broken: fails on valid input.
7016 rm -f conftest.err conftest.$ac_ext
7018 # OK, works on sane cases. Now check whether nonexistent headers
7019 # can be detected and how.
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <ac_nonexistent.h>
7028 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7033 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7034 $as_echo "$ac_try_echo") >&5
7035 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7037 grep -v '^ *+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7041 (exit $ac_status); } >/dev/null && {
7042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7045 # Broken: success on invalid input.
7048 $as_echo "$as_me: failed program was
:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 # Passes both tests.
7056 rm -f conftest.err conftest.$ac_ext
7059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7060 rm -f conftest.err conftest.$ac_ext
7061 if $ac_preproc_ok; then
7064 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7066 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7067 See \`config.log' for more details.
" >&5
7068 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7069 See \
`config.log' for more details." >&2;}
7070 { (exit 1); exit 1; }; }; }
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7081 $as_echo_n "checking for ANSI C header files... " >&6; }
7082 if test "${ac_cv_header_stdc+set}" = set; then
7083 $as_echo_n "(cached) " >&6
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7108 *) ac_try_echo
=$ac_try;;
7110 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7111 $as_echo "$ac_try_echo") >&5
7112 (eval "$ac_compile") 2>conftest.er1
7114 grep -v '^ *+' conftest.er1
>conftest.err
7116 cat conftest.err
>&5
7117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } && {
7119 test -z "$ac_c_werror_flag" ||
7120 test ! -s conftest.err
7121 } && test -s conftest.
$ac_objext; then
7122 ac_cv_header_stdc
=yes
7124 $as_echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.
$ac_ext >&5
7127 ac_cv_header_stdc
=no
7130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7132 if test $ac_cv_header_stdc = yes; then
7133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7134 cat >conftest.
$ac_ext <<_ACEOF
7137 cat confdefs.h
>>conftest.
$ac_ext
7138 cat >>conftest.
$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7144 $EGREP "memchr" >/dev
/null
2>&1; then
7147 ac_cv_header_stdc
=no
7153 if test $ac_cv_header_stdc = yes; then
7154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7155 cat >conftest.
$ac_ext <<_ACEOF
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7165 $EGREP "free" >/dev
/null
2>&1; then
7168 ac_cv_header_stdc
=no
7174 if test $ac_cv_header_stdc = yes; then
7175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7176 if test "$cross_compiling" = yes; then
7179 cat >conftest.
$ac_ext <<_ACEOF
7182 cat confdefs.h
>>conftest.
$ac_ext
7183 cat >>conftest.
$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7187 #if ((' ' & 0x0FF) == 0x020)
7188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7191 # define ISLOWER(c) \
7192 (('a' <= (c) && (c) <= 'i') \
7193 || ('j' <= (c) && (c) <= 'r') \
7194 || ('s' <= (c) && (c) <= 'z'))
7195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7203 for (i = 0; i < 256; i++)
7204 if (XOR (islower (i), ISLOWER (i))
7205 || toupper (i) != TOUPPER (i))
7210 rm -f conftest
$ac_exeext
7211 if { (ac_try
="$ac_link"
7213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217 $as_echo "$ac_try_echo") >&5
7218 (eval "$ac_link") 2>&5
7220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7222 { (case "(($ac_try" in
7223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7224 *) ac_try_echo
=$ac_try;;
7226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228 (eval "$ac_try") 2>&5
7230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7234 $as_echo "$as_me: program exited with status $ac_status" >&5
7235 $as_echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.
$ac_ext >&5
7239 ac_cv_header_stdc
=no
7241 rm -rf conftest.dSYM
7242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7249 $as_echo "$ac_cv_header_stdc" >&6; }
7250 if test $ac_cv_header_stdc = yes; then
7252 cat >>confdefs.h
<<\_ACEOF
7253 #define STDC_HEADERS 1
7258 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7268 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7269 inttypes.h stdint.h unistd.h
7271 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7273 $as_echo_n "checking for $ac_header... " >&6; }
7274 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7275 $as_echo_n "(cached) " >&6
7277 cat >conftest.
$ac_ext <<_ACEOF
7280 cat confdefs.h
>>conftest.
$ac_ext
7281 cat >>conftest.
$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 $ac_includes_default
7285 #include <$ac_header>
7287 rm -f conftest.
$ac_objext
7288 if { (ac_try
="$ac_compile"
7290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7294 $as_echo "$ac_try_echo") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7297 grep -v '^ *+' conftest.er1 >conftest.err
7299 cat conftest.err >&5
7300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 eval "$as_ac_Header=yes"
7307 $as_echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 eval "$as_ac_Header=no"
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 ac_res=`eval 'as_val=${'$as_ac_Header'}
7316 $as_echo "$as_val"'`
7317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7318 $as_echo "$ac_res" >&6; }
7319 as_val=`eval 'as_val=${'$as_ac_Header'}
7320 $as_echo "$as_val"'`
7321 if test "x$as_val" = x""yes; then
7322 cat >>confdefs.h <<_ACEOF
7323 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7332 for ac_header in dlfcn.h
7334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 $as_echo_n "checking for $ac_header... " >&6; }
7337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7338 $as_echo_n "(cached) " >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 $ac_includes_default
7348 #include <$ac_header>
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7354 *) ac_try_echo
=$ac_try;;
7356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7357 $as_echo "$ac_try_echo") >&5
7358 (eval "$ac_compile") 2>conftest.er1
7360 grep -v '^ *+' conftest.er1
>conftest.err
7362 cat conftest.err
>&5
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest.
$ac_objext; then
7368 eval "$as_ac_Header=yes"
7370 $as_echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.
$ac_ext >&5
7373 eval "$as_ac_Header=no"
7376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7379 $as_echo "$as_val"'`
7380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7381 $as_echo "$ac_res" >&6; }
7382 as_val
=`eval 'as_val=${'$as_ac_Header'}
7383 $as_echo "$as_val"'`
7384 if test "x$as_val" = x
""yes; then
7385 cat >>confdefs.h
<<_ACEOF
7386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 # Check whether --enable-shared was given.
7406 if test "${enable_shared+set}" = set; then
7407 enableval
=$enable_shared; p
=${PACKAGE-default}
7409 yes) enable_shared
=yes ;;
7410 no
) enable_shared
=no
;;
7413 # Look at the argument we got. We use all the common list separators.
7414 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7415 for pkg
in $enableval; do
7417 if test "X$pkg" = "X$p"; then
7436 # Check whether --enable-static was given.
7437 if test "${enable_static+set}" = set; then
7438 enableval
=$enable_static; p
=${PACKAGE-default}
7440 yes) enable_static
=yes ;;
7441 no
) enable_static
=no
;;
7444 # Look at the argument we got. We use all the common list separators.
7445 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7446 for pkg
in $enableval; do
7448 if test "X$pkg" = "X$p"; then
7468 # Check whether --with-pic was given.
7469 if test "${with_pic+set}" = set; then
7470 withval
=$with_pic; pic_mode
="$withval"
7476 test -z "$pic_mode" && pic_mode
=default
7484 # Check whether --enable-fast-install was given.
7485 if test "${enable_fast_install+set}" = set; then
7486 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7488 yes) enable_fast_install
=yes ;;
7489 no
) enable_fast_install
=no
;;
7491 enable_fast_install
=no
7492 # Look at the argument we got. We use all the common list separators.
7493 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7494 for pkg
in $enableval; do
7496 if test "X$pkg" = "X$p"; then
7497 enable_fast_install
=yes
7504 enable_fast_install
=yes
7517 # This can be used to rebuild libtool when needed
7518 LIBTOOL_DEPS
="$ltmain"
7520 # Always use our own libtool.
7521 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7547 test -z "$LN_S" && LN_S
="ln -s"
7562 if test -n "${ZSH_VERSION+set}" ; then
7563 setopt NO_GLOB_SUBST
7566 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7567 $as_echo_n "checking for objdir... " >&6; }
7568 if test "${lt_cv_objdir+set}" = set; then
7569 $as_echo_n "(cached) " >&6
7571 rm -f .libs
2>/dev
/null
7572 mkdir .libs
2>/dev
/null
7573 if test -d .libs
; then
7576 # MS-DOS does not allow filenames that begin with a dot.
7579 rmdir .libs
2>/dev
/null
7581 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7582 $as_echo "$lt_cv_objdir" >&6; }
7583 objdir
=$lt_cv_objdir
7589 cat >>confdefs.h
<<_ACEOF
7590 #define LT_OBJDIR "$lt_cv_objdir/"
7611 # AIX sometimes has problems with the GCC collect2 program. For some
7612 # reason, if we set the COLLECT_NAMES environment variable, the problems
7613 # vanish in a puff of smoke.
7614 if test "X${COLLECT_NAMES+set}" != Xset
; then
7616 export COLLECT_NAMES
7621 # Sed substitution that helps us do robust quoting. It backslashifies
7622 # metacharacters that are still active within double-quoted strings.
7623 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7625 # Same as above, but do not quote variable references.
7626 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7628 # Sed substitution to delay expansion of an escaped shell variable in a
7629 # double_quote_subst'ed string.
7630 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7632 # Sed substitution to delay expansion of an escaped single quote.
7633 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7635 # Sed substitution to avoid accidental globbing in evaled expressions
7636 no_glob_subst
='s/\*/\\\*/g'
7640 can_build_shared
=yes
7642 # All known linkers require a `.a' archive for static linking (except MSVC,
7643 # which needs '.lib').
7646 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7649 old_CFLAGS
="$CFLAGS"
7651 # Set sane defaults for various variables
7652 test -z "$CC" && CC
=cc
7653 test -z "$LTCC" && LTCC
=$CC
7654 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7655 test -z "$LD" && LD
=ld
7656 test -z "$ac_objext" && ac_objext
=o
7658 for cc_temp
in $compiler""; do
7660 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7661 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7666 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7669 # Only perform the check for file, if the check method requires it
7670 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7671 case $deplibs_check_method in
7673 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7674 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7675 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7681 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7684 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7685 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7686 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7687 for ac_dir
in $ac_dummy; do
7689 test -z "$ac_dir" && ac_dir
=.
7690 if test -f $ac_dir/${ac_tool_prefix}file; then
7691 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7692 if test -n "$file_magic_test_file"; then
7693 case $deplibs_check_method in
7695 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7696 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7697 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7698 $EGREP "$file_magic_regex" > /dev
/null
; then
7703 *** Warning: the command libtool uses to detect shared libraries,
7704 *** $file_magic_cmd, produces output that libtool cannot recognize.
7705 *** The result is that libtool may fail to recognize shared libraries
7706 *** as such. This will affect the creation of libtool libraries that
7707 *** depend on shared libraries, but programs linked with such libtool
7708 *** libraries will work regardless of this problem. Nevertheless, you
7709 *** may want to report the problem to your system manager and/or to
7710 *** bug-libtool@gnu.org
7720 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7725 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7726 if test -n "$MAGIC_CMD"; then
7727 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7728 $as_echo "$MAGIC_CMD" >&6; }
7730 { $as_echo "$as_me:$LINENO: result: no" >&5
7731 $as_echo "no" >&6; }
7738 if test -z "$lt_cv_path_MAGIC_CMD"; then
7739 if test -n "$ac_tool_prefix"; then
7740 { $as_echo "$as_me:$LINENO: checking for file" >&5
7741 $as_echo_n "checking for file... " >&6; }
7742 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7743 $as_echo_n "(cached) " >&6
7747 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7750 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7751 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7752 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7753 for ac_dir
in $ac_dummy; do
7755 test -z "$ac_dir" && ac_dir
=.
7756 if test -f $ac_dir/file; then
7757 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7758 if test -n "$file_magic_test_file"; then
7759 case $deplibs_check_method in
7761 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7762 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7763 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7764 $EGREP "$file_magic_regex" > /dev
/null
; then
7769 *** Warning: the command libtool uses to detect shared libraries,
7770 *** $file_magic_cmd, produces output that libtool cannot recognize.
7771 *** The result is that libtool may fail to recognize shared libraries
7772 *** as such. This will affect the creation of libtool libraries that
7773 *** depend on shared libraries, but programs linked with such libtool
7774 *** libraries will work regardless of this problem. Nevertheless, you
7775 *** may want to report the problem to your system manager and/or to
7776 *** bug-libtool@gnu.org
7786 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7791 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7792 if test -n "$MAGIC_CMD"; then
7793 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7794 $as_echo "$MAGIC_CMD" >&6; }
7796 { $as_echo "$as_me:$LINENO: result: no" >&5
7797 $as_echo "no" >&6; }
7810 # Use C for the default configuration in the libtool script
7814 ac_cpp
='$CPP $CPPFLAGS'
7815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7820 # Source file extension for C test sources.
7823 # Object file extension for compiled C test sources.
7827 # Code to be used in simple compile tests
7828 lt_simple_compile_test_code
="int some_variable = 0;"
7830 # Code to be used in simple link tests
7831 lt_simple_link_test_code
='int main(){return(0);}'
7839 # If no C compiler was specified, use CC.
7842 # If no C compiler flags were specified, use CFLAGS.
7843 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7845 # Allow CC to be a program name with arguments.
7848 # Save the default compiler, since it gets overwritten when the other
7849 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7850 compiler_DEFAULT
=$CC
7852 # save warnings/boilerplate of simple test code
7853 ac_outfile
=conftest.
$ac_objext
7854 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7855 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7856 _lt_compiler_boilerplate
=`cat conftest.err`
7859 ac_outfile
=conftest.
$ac_objext
7860 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7861 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7862 _lt_linker_boilerplate
=`cat conftest.err`
7866 if test -n "$compiler"; then
7868 lt_prog_compiler_no_builtin_flag
=
7870 if test "$GCC" = yes; then
7871 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7873 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7874 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7875 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7876 $as_echo_n "(cached) " >&6
7878 lt_cv_prog_compiler_rtti_exceptions
=no
7879 ac_outfile
=conftest.
$ac_objext
7880 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7881 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7882 # Insert the option either (1) after the last *FLAGS variable, or
7883 # (2) before a word containing "conftest.", or (3) at the end.
7884 # Note that $ac_compile itself does not contain backslashes and begins
7885 # with a dollar sign (not a hyphen), so the echo should work correctly.
7886 # The option is referenced via a variable to avoid confusing sed.
7887 lt_compile
=`echo "$ac_compile" | $SED \
7888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7890 -e 's:$: $lt_compiler_flag:'`
7891 (eval echo "\"\$as_me:7891: $lt_compile\"" >&5)
7892 (eval "$lt_compile" 2>conftest.err
)
7894 cat conftest.err
>&5
7895 echo "$as_me:7895: \$? = $ac_status" >&5
7896 if (exit $ac_status) && test -s "$ac_outfile"; then
7897 # The compiler can only warn and ignore the option if not recognized
7898 # So say no if there are warnings other than the usual output.
7899 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7900 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7901 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7902 lt_cv_prog_compiler_rtti_exceptions
=yes
7908 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7909 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7911 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7912 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7924 lt_prog_compiler_wl
=
7925 lt_prog_compiler_pic
=
7926 lt_prog_compiler_static
=
7928 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7929 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7931 if test "$GCC" = yes; then
7932 lt_prog_compiler_wl
='-Wl,'
7933 lt_prog_compiler_static
='-static'
7937 # All AIX code is PIC.
7938 if test "$host_cpu" = ia64
; then
7939 # AIX 5 now supports IA64 processor
7940 lt_prog_compiler_static
='-Bstatic'
7947 # see comment about AmigaOS4 .so support
7948 lt_prog_compiler_pic
='-fPIC'
7951 # FIXME: we need at least 68020 code to build shared libraries, but
7952 # adding the `-m68020' flag to GCC prevents building anything better,
7954 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7959 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7960 # PIC is the default for these OSes.
7963 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7964 # This hack is so that the source file can tell whether it is being
7965 # built for inclusion in a dll (and should export symbols for example).
7966 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7967 # (--disable-auto-import) libraries
7968 lt_prog_compiler_pic
='-DDLL_EXPORT'
7971 darwin
* | rhapsody
*)
7972 # PIC is the default on this platform
7973 # Common symbols not allowed in MH_DYLIB files
7974 lt_prog_compiler_pic
='-fno-common'
7978 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7979 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7980 # sets the default TLS model and affects inlining.
7986 lt_prog_compiler_pic
='-fPIC'
7992 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7993 # Instead, we relocate shared libraries at runtime.
7997 # Just because we use GCC doesn't mean we suddenly get shared libraries
7998 # on systems that don't support them.
7999 lt_prog_compiler_can_build_shared
=no
8004 # QNX uses GNU C++, but need to define -shared option too, otherwise
8006 lt_prog_compiler_pic
='-fPIC -shared'
8010 if test -d /usr
/nec
; then
8011 lt_prog_compiler_pic
=-Kconform_pic
8016 lt_prog_compiler_pic
='-fPIC'
8020 # PORTME Check for flag to pass linker flags through the system compiler.
8023 lt_prog_compiler_wl
='-Wl,'
8024 if test "$host_cpu" = ia64
; then
8025 # AIX 5 now supports IA64 processor
8026 lt_prog_compiler_static
='-Bstatic'
8028 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8032 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8033 # This hack is so that the source file can tell whether it is being
8034 # built for inclusion in a dll (and should export symbols for example).
8035 lt_prog_compiler_pic
='-DDLL_EXPORT'
8038 hpux9
* | hpux10
* | hpux11
*)
8039 lt_prog_compiler_wl
='-Wl,'
8040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8047 lt_prog_compiler_pic
='+Z'
8050 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8051 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8054 irix5
* | irix6
* | nonstopux
*)
8055 lt_prog_compiler_wl
='-Wl,'
8056 # PIC (with -KPIC) is the default.
8057 lt_prog_compiler_static
='-non_shared'
8060 linux
* | k
*bsd
*-gnu)
8061 case $cc_basename in
8062 # old Intel for x86_64 which still supported -KPIC.
8064 lt_prog_compiler_wl
='-Wl,'
8065 lt_prog_compiler_pic
='-KPIC'
8066 lt_prog_compiler_static
='-static'
8068 # icc used to be incompatible with GCC.
8069 # ICC 10 doesn't accept -KPIC any more.
8071 lt_prog_compiler_wl
='-Wl,'
8072 lt_prog_compiler_pic
='-fPIC'
8073 lt_prog_compiler_static
='-static'
8075 # Lahey Fortran 8.1.
8077 lt_prog_compiler_wl
='-Wl,'
8078 lt_prog_compiler_pic
='--shared'
8079 lt_prog_compiler_static
='--static'
8081 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8082 # Portland Group compilers (*not* the Pentium gcc compiler,
8083 # which looks to be a dead project)
8084 lt_prog_compiler_wl
='-Wl,'
8085 lt_prog_compiler_pic
='-fpic'
8086 lt_prog_compiler_static
='-Bstatic'
8089 lt_prog_compiler_wl
='-Wl,'
8090 # All Alpha code is PIC.
8091 lt_prog_compiler_static
='-non_shared'
8094 # IBM XL C 8.0/Fortran 10.1 on PPC
8095 lt_prog_compiler_wl
='-Wl,'
8096 lt_prog_compiler_pic
='-qpic'
8097 lt_prog_compiler_static
='-qstaticlink'
8100 case `$CC -V 2>&1 | sed 5q` in
8103 lt_prog_compiler_pic
='-KPIC'
8104 lt_prog_compiler_static
='-Bstatic'
8105 lt_prog_compiler_wl
='-Wl,'
8108 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8109 lt_prog_compiler_pic
='-KPIC'
8110 lt_prog_compiler_static
='-Bstatic'
8111 lt_prog_compiler_wl
=''
8119 lt_prog_compiler_pic
='-KPIC'
8120 lt_prog_compiler_static
='-Bstatic'
8124 # QNX uses GNU C++, but need to define -shared option too, otherwise
8126 lt_prog_compiler_pic
='-fPIC -shared'
8129 osf3
* | osf4
* | osf5
*)
8130 lt_prog_compiler_wl
='-Wl,'
8131 # All OSF/1 code is PIC.
8132 lt_prog_compiler_static
='-non_shared'
8136 lt_prog_compiler_static
='-non_shared'
8140 lt_prog_compiler_pic
='-KPIC'
8141 lt_prog_compiler_static
='-Bstatic'
8142 case $cc_basename in
8144 lt_prog_compiler_wl
='-Qoption ld ';;
8146 lt_prog_compiler_wl
='-Wl,';;
8151 lt_prog_compiler_wl
='-Qoption ld '
8152 lt_prog_compiler_pic
='-PIC'
8153 lt_prog_compiler_static
='-Bstatic'
8156 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8157 lt_prog_compiler_wl
='-Wl,'
8158 lt_prog_compiler_pic
='-KPIC'
8159 lt_prog_compiler_static
='-Bstatic'
8163 if test -d /usr
/nec
;then
8164 lt_prog_compiler_pic
='-Kconform_pic'
8165 lt_prog_compiler_static
='-Bstatic'
8169 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8170 lt_prog_compiler_wl
='-Wl,'
8171 lt_prog_compiler_pic
='-KPIC'
8172 lt_prog_compiler_static
='-Bstatic'
8176 lt_prog_compiler_wl
='-Wl,'
8177 lt_prog_compiler_can_build_shared
=no
8181 lt_prog_compiler_pic
='-pic'
8182 lt_prog_compiler_static
='-Bstatic'
8186 lt_prog_compiler_can_build_shared
=no
8192 # For platforms which do not support PIC, -DPIC is meaningless:
8194 lt_prog_compiler_pic
=
8197 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8200 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8201 $as_echo "$lt_prog_compiler_pic" >&6; }
8209 # Check to make sure the PIC flag actually works.
8211 if test -n "$lt_prog_compiler_pic"; then
8212 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8213 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8214 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8215 $as_echo_n "(cached) " >&6
8217 lt_cv_prog_compiler_pic_works
=no
8218 ac_outfile
=conftest.
$ac_objext
8219 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8220 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8221 # Insert the option either (1) after the last *FLAGS variable, or
8222 # (2) before a word containing "conftest.", or (3) at the end.
8223 # Note that $ac_compile itself does not contain backslashes and begins
8224 # with a dollar sign (not a hyphen), so the echo should work correctly.
8225 # The option is referenced via a variable to avoid confusing sed.
8226 lt_compile
=`echo "$ac_compile" | $SED \
8227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229 -e 's:$: $lt_compiler_flag:'`
8230 (eval echo "\"\$as_me:8230: $lt_compile\"" >&5)
8231 (eval "$lt_compile" 2>conftest.err
)
8233 cat conftest.err
>&5
8234 echo "$as_me:8234: \$? = $ac_status" >&5
8235 if (exit $ac_status) && test -s "$ac_outfile"; then
8236 # The compiler can only warn and ignore the option if not recognized
8237 # So say no if there are warnings other than the usual output.
8238 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8239 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8240 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8241 lt_cv_prog_compiler_pic_works
=yes
8247 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8248 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8250 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8251 case $lt_prog_compiler_pic in
8253 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8256 lt_prog_compiler_pic
=
8257 lt_prog_compiler_can_build_shared
=no
8268 # Check to make sure the static flag actually works.
8270 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8271 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8272 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8273 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8274 $as_echo_n "(cached) " >&6
8276 lt_cv_prog_compiler_static_works
=no
8277 save_LDFLAGS
="$LDFLAGS"
8278 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8279 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8280 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8281 # The linker can only warn and ignore the option if not recognized
8282 # So say no if there are warnings
8283 if test -s conftest.err
; then
8284 # Append any errors to the config.log.
8285 cat conftest.err
1>&5
8286 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8287 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8288 if diff conftest.exp conftest.er2
>/dev
/null
; then
8289 lt_cv_prog_compiler_static_works
=yes
8292 lt_cv_prog_compiler_static_works
=yes
8296 LDFLAGS
="$save_LDFLAGS"
8299 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8300 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8302 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8305 lt_prog_compiler_static
=
8314 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8315 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8316 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8317 $as_echo_n "(cached) " >&6
8319 lt_cv_prog_compiler_c_o
=no
8320 $RM -r conftest
2>/dev
/null
8324 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8326 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8327 # Insert the option either (1) after the last *FLAGS variable, or
8328 # (2) before a word containing "conftest.", or (3) at the end.
8329 # Note that $ac_compile itself does not contain backslashes and begins
8330 # with a dollar sign (not a hyphen), so the echo should work correctly.
8331 lt_compile
=`echo "$ac_compile" | $SED \
8332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8334 -e 's:$: $lt_compiler_flag:'`
8335 (eval echo "\"\$as_me:8335: $lt_compile\"" >&5)
8336 (eval "$lt_compile" 2>out
/conftest.err
)
8338 cat out
/conftest.err
>&5
8339 echo "$as_me:8339: \$? = $ac_status" >&5
8340 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8342 # The compiler can only warn and ignore the option if not recognized
8343 # So say no if there are warnings
8344 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8345 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8346 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8347 lt_cv_prog_compiler_c_o
=yes
8352 # SGI C++ compiler will create directory out/ii_files/ for
8353 # template instantiation
8354 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8355 $RM out
/* && rmdir out
8361 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8362 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8369 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8370 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8371 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8372 $as_echo_n "(cached) " >&6
8374 lt_cv_prog_compiler_c_o
=no
8375 $RM -r conftest
2>/dev
/null
8379 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8381 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8382 # Insert the option either (1) after the last *FLAGS variable, or
8383 # (2) before a word containing "conftest.", or (3) at the end.
8384 # Note that $ac_compile itself does not contain backslashes and begins
8385 # with a dollar sign (not a hyphen), so the echo should work correctly.
8386 lt_compile
=`echo "$ac_compile" | $SED \
8387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8389 -e 's:$: $lt_compiler_flag:'`
8390 (eval echo "\"\$as_me:8390: $lt_compile\"" >&5)
8391 (eval "$lt_compile" 2>out
/conftest.err
)
8393 cat out
/conftest.err
>&5
8394 echo "$as_me:8394: \$? = $ac_status" >&5
8395 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8397 # The compiler can only warn and ignore the option if not recognized
8398 # So say no if there are warnings
8399 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8400 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8401 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8402 lt_cv_prog_compiler_c_o
=yes
8407 # SGI C++ compiler will create directory out/ii_files/ for
8408 # template instantiation
8409 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8410 $RM out
/* && rmdir out
8416 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8417 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8422 hard_links
="nottested"
8423 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8424 # do not overwrite the value of need_locks provided by the user
8425 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8426 $as_echo_n "checking if we can lock with hard links... " >&6; }
8429 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8431 ln conftest.a conftest.b
2>&5 || hard_links
=no
8432 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8433 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8434 $as_echo "$hard_links" >&6; }
8435 if test "$hard_links" = no
; then
8436 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8437 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8449 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8450 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8453 allow_undefined_flag
=
8454 always_export_symbols
=no
8456 archive_expsym_cmds
=
8457 compiler_needs_object
=no
8458 enable_shared_with_static_runtimes
=no
8459 export_dynamic_flag_spec
=
8460 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8461 hardcode_automatic
=no
8463 hardcode_direct_absolute
=no
8464 hardcode_libdir_flag_spec
=
8465 hardcode_libdir_flag_spec_ld
=
8466 hardcode_libdir_separator
=
8468 hardcode_shlibpath_var
=unsupported
8470 link_all_deplibs
=unknown
8473 old_archive_from_new_cmds
=
8474 old_archive_from_expsyms_cmds
=
8475 thread_safe_flag_spec
=
8476 whole_archive_flag_spec
=
8477 # include_expsyms should be a list of space-separated symbols to be *always*
8478 # included in the symbol list
8480 # exclude_expsyms can be an extended regexp of symbols to exclude
8481 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8483 # as well as any symbol that contains `d'.
8484 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8486 # platforms (ab)use it in PIC code, but their linkers get confused if
8487 # the symbol is explicitly referenced. Since portable code cannot
8488 # rely on this symbol name, it's probably fine to never include it in
8489 # preloaded symbol tables.
8490 # Exclude shared library initialization/finalization symbols.
8491 extract_expsyms_cmds
=
8494 cygwin
* | mingw
* | pw32
* | cegcc
*)
8495 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8496 # When not using gcc, we currently assume that we are using
8497 # Microsoft Visual C++.
8498 if test "$GCC" != yes; then
8503 # we just hope/assume this is gcc and not c89 (= MSVC++)
8512 if test "$with_gnu_ld" = yes; then
8513 # If archive_cmds runs LD, not CC, wlarc should be empty
8516 # Set some defaults for GNU ld with shared library support. These
8517 # are reset later if shared libraries are not supported. Putting them
8518 # here allows them to be overridden if necessary.
8519 runpath_var
=LD_RUN_PATH
8520 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8521 export_dynamic_flag_spec
='${wl}--export-dynamic'
8522 # ancient GNU ld didn't support --whole-archive et. al.
8523 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8524 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8526 whole_archive_flag_spec
=
8528 supports_anon_versioning
=no
8529 case `$LD -v 2>&1` in
8530 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8531 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8532 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8533 *\
2.11.
*) ;; # other 2.11 versions
8534 *) supports_anon_versioning
=yes ;;
8537 # See if GNU ld supports shared libraries.
8540 # On AIX/PPC, the GNU linker is very broken
8541 if test "$host_cpu" != ia64
; then
8545 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8546 *** to be unable to reliably create shared libraries on AIX.
8547 *** Therefore, libtool is disabling shared libraries support. If you
8548 *** really care for shared libraries, you may want to modify your PATH
8549 *** so that a non-GNU linker is found, and then restart.
8558 # see comment about AmigaOS4 .so support
8559 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560 archive_expsym_cmds
=''
8563 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)'
8564 hardcode_libdir_flag_spec
='-L$libdir'
8565 hardcode_minus_L
=yes
8571 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8572 allow_undefined_flag
=unsupported
8573 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8574 # support --undefined. This deserves some investigation. FIXME
8575 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581 cygwin
* | mingw
* | pw32
* | cegcc
*)
8582 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8583 # as there is no search path for DLLs.
8584 hardcode_libdir_flag_spec
='-L$libdir'
8585 allow_undefined_flag
=unsupported
8586 always_export_symbols
=no
8587 enable_shared_with_static_runtimes
=yes
8588 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8590 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8591 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8592 # If the export-symbols file already is a .def file (1st line
8593 # is EXPORTS), use it as is; otherwise, prepend...
8594 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8595 cp $export_symbols $output_objdir/$soname.def;
8597 echo EXPORTS > $output_objdir/$soname.def;
8598 cat $export_symbols >> $output_objdir/$soname.def;
8600 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8608 hardcode_shlibpath_var
=no
8609 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8610 export_dynamic_flag_spec
='${wl}-E'
8611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8612 # Instead, shared libraries are loaded at an image base (0x10000000 by
8613 # default) and relocated if they conflict, which is a slow very memory
8614 # consuming and fragmenting process. To avoid this, we pick a random,
8615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8617 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8618 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'
8621 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8623 if test "$host_os" = linux-dietlibc
; then
8624 case $cc_basename in
8625 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8628 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8629 && test "$tmp_diet" = no
8632 tmp_sharedflag
='-shared'
8633 case $cc_basename,$host_cpu in
8634 pgcc
*) # Portland Group C compiler
8635 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'
8636 tmp_addflag
=' $pic_flag'
8638 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8639 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'
8640 tmp_addflag
=' $pic_flag -Mnomain' ;;
8641 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8642 tmp_addflag
=' -i_dynamic' ;;
8643 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8644 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8645 ifc
* | ifort
*) # Intel Fortran compiler
8646 tmp_addflag
=' -nofor_main' ;;
8647 lf95
*) # Lahey Fortran 8.1
8648 whole_archive_flag_spec
=
8649 tmp_sharedflag
='--shared' ;;
8650 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8651 tmp_sharedflag
='-qmkshrobj'
8654 case `$CC -V 2>&1 | sed 5q` in
8655 *Sun\ C
*) # Sun C 5.9
8656 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'
8657 compiler_needs_object
=yes
8658 tmp_sharedflag
='-G' ;;
8659 *Sun\ F
*) # Sun Fortran 8.3
8660 tmp_sharedflag
='-G' ;;
8662 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664 if test "x$supports_anon_versioning" = xyes
; then
8665 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8667 echo "local: *; };" >> $output_objdir/$libname.ver~
8668 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8671 case $cc_basename in
8673 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8674 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8675 hardcode_libdir_flag_spec
=
8676 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8677 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8678 if test "x$supports_anon_versioning" = xyes
; then
8679 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8681 echo "local: *; };" >> $output_objdir/$libname.ver~
8682 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8692 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8693 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8696 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8702 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8706 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8707 *** create shared libraries on Solaris systems. Therefore, libtool
8708 *** is disabling shared libraries support. We urge you to upgrade GNU
8709 *** binutils to release 2.9.1 or newer. Another option is to modify
8710 *** your PATH or compiler configuration so that the native linker is
8711 *** used, and then restart.
8714 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8715 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8722 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8723 case `$LD -v 2>&1` in
8724 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8728 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8729 *** reliably create shared libraries on SCO systems. Therefore, libtool
8730 *** is disabling shared libraries support. We urge you to upgrade GNU
8731 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8732 *** your PATH or compiler configuration so that the native linker is
8733 *** used, and then restart.
8738 # For security reasons, it is highly recommended that you always
8739 # use absolute paths for naming shared libraries, and exclude the
8740 # DT_RUNPATH tag from executables and libraries. But doing so
8741 # requires that you compile everything twice, which is a pain.
8742 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8743 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8744 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8745 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8754 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757 hardcode_shlibpath_var
=no
8761 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8762 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770 if test "$ld_shlibs" = no
; then
8772 hardcode_libdir_flag_spec
=
8773 export_dynamic_flag_spec
=
8774 whole_archive_flag_spec
=
8777 # PORTME fill in a description of your system's linker (not GNU ld)
8780 allow_undefined_flag
=unsupported
8781 always_export_symbols
=yes
8782 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'
8783 # Note: this linker hardcodes the directories in LIBPATH if there
8784 # are no directories specified by -L.
8785 hardcode_minus_L
=yes
8786 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8787 # Neither direct hardcoding nor static linking is supported with a
8789 hardcode_direct
=unsupported
8794 if test "$host_cpu" = ia64
; then
8795 # On IA64, the linker does run time linking by default, so we don't
8796 # have to do anything special.
8797 aix_use_runtimelinking
=no
8798 exp_sym_flag
='-Bexport'
8801 # If we're using GNU nm, then we don't want the "-C" option.
8802 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8803 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8804 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'
8806 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'
8808 aix_use_runtimelinking
=no
8810 # Test if we are trying to use run time linking or normal
8811 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8812 # need to do runtime linking.
8813 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8814 for ld_flag
in $LDFLAGS; do
8815 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8816 aix_use_runtimelinking
=yes
8823 exp_sym_flag
='-bexport'
8824 no_entry_flag
='-bnoentry'
8827 # When large executables or shared objects are built, AIX ld can
8828 # have problems creating the table of contents. If linking a library
8829 # or program results in "error TOC overflow" add -mminimal-toc to
8830 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8831 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8835 hardcode_direct_absolute
=yes
8836 hardcode_libdir_separator
=':'
8837 link_all_deplibs
=yes
8838 file_list_spec
='${wl}-f,'
8840 if test "$GCC" = yes; then
8841 case $host_os in aix4.
[012]|aix4.
[012].
*)
8842 # We only want to do this on AIX 4.2 and lower, the check
8843 # below for broken collect2 doesn't work under 4.3+
8844 collect2name
=`${CC} -print-prog-name=collect2`
8845 if test -f "$collect2name" &&
8846 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8848 # We have reworked collect2
8851 # We have old collect2
8852 hardcode_direct
=unsupported
8853 # It fails to find uninstalled libraries when the uninstalled
8854 # path is not listed in the libpath. Setting hardcode_minus_L
8855 # to unsupported forces relinking
8856 hardcode_minus_L
=yes
8857 hardcode_libdir_flag_spec
='-L$libdir'
8858 hardcode_libdir_separator
=
8862 shared_flag
='-shared'
8863 if test "$aix_use_runtimelinking" = yes; then
8864 shared_flag
="$shared_flag "'${wl}-G'
8868 if test "$host_cpu" = ia64
; then
8869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8870 # chokes on -Wl,-G. The following line is correct:
8873 if test "$aix_use_runtimelinking" = yes; then
8874 shared_flag
='${wl}-G'
8876 shared_flag
='${wl}-bM:SRE'
8881 export_dynamic_flag_spec
='${wl}-bexpall'
8882 # It seems that -bexpall does not export symbols beginning with
8883 # underscore (_), so it is better to generate a list of symbols to export.
8884 always_export_symbols
=yes
8885 if test "$aix_use_runtimelinking" = yes; then
8886 # Warning - without using the other runtime loading flags (-brtl),
8887 # -berok will link without error, but may produce a broken library.
8888 allow_undefined_flag
='-berok'
8889 # Determine the default libpath from the value encoded in an
8891 cat >conftest.
$ac_ext <<_ACEOF
8894 cat confdefs.h
>>conftest.
$ac_ext
8895 cat >>conftest.
$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8906 rm -f conftest.
$ac_objext conftest
$ac_exeext
8907 if { (ac_try
="$ac_link"
8909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8913 $as_echo "$ac_try_echo") >&5
8914 (eval "$ac_link") 2>conftest.er1
8916 grep -v '^ *+' conftest.er1 >conftest.err
8918 cat conftest.err >&5
8919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && {
8921 test -z "$ac_c_werror_flag" ||
8922 test ! -s conftest.err
8923 } && test -s conftest$ac_exeext && {
8924 test "$cross_compiling" = yes ||
8925 $as_test_x conftest$ac_exeext
8928 lt_aix_libpath_sed='
8929 /Import File Strings/,/^$/ {
8935 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8936 # Check for a 64-bit object if we didn't find anything.
8937 if test -z "$aix_libpath"; then
8938 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8941 $as_echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8947 rm -rf conftest.dSYM
8948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8949 conftest$ac_exeext conftest.$ac_ext
8950 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8952 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8953 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"
8955 if test "$host_cpu" = ia64; then
8956 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8957 allow_undefined_flag="-z nodefs"
8958 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"
8960 # Determine the default libpath from the value encoded in an
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8981 *) ac_try_echo
=$ac_try;;
8983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8984 $as_echo "$ac_try_echo") >&5
8985 (eval "$ac_link") 2>conftest.er1
8987 grep -v '^ *+' conftest.er1
>conftest.err
8989 cat conftest.err
>&5
8990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } && {
8992 test -z "$ac_c_werror_flag" ||
8993 test ! -s conftest.err
8994 } && test -s conftest
$ac_exeext && {
8995 test "$cross_compiling" = yes ||
8996 $as_test_x conftest
$ac_exeext
8999 lt_aix_libpath_sed
='
9000 /Import File Strings/,/^$/ {
9006 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9007 # Check for a 64-bit object if we didn't find anything.
9008 if test -z "$aix_libpath"; then
9009 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9012 $as_echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.
$ac_ext >&5
9018 rm -rf conftest.dSYM
9019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9020 conftest
$ac_exeext conftest.
$ac_ext
9021 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9023 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9024 # Warning - without using the other run time loading flags,
9025 # -berok will link without error, but may produce a broken library.
9026 no_undefined_flag
=' ${wl}-bernotok'
9027 allow_undefined_flag
=' ${wl}-berok'
9028 # Exported symbols can be pulled into shared objects from archives
9029 whole_archive_flag_spec
='$convenience'
9030 archive_cmds_need_lc
=yes
9031 # This is similar to how AIX traditionally builds its shared libraries.
9032 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'
9040 # see comment about AmigaOS4 .so support
9041 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042 archive_expsym_cmds
=''
9045 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)'
9046 hardcode_libdir_flag_spec
='-L$libdir'
9047 hardcode_minus_L
=yes
9053 export_dynamic_flag_spec
=-rdynamic
9056 cygwin
* | mingw
* | pw32
* | cegcc
*)
9057 # When not using gcc, we currently assume that we are using
9058 # Microsoft Visual C++.
9059 # hardcode_libdir_flag_spec is actually meaningless, as there is
9060 # no search path for DLLs.
9061 hardcode_libdir_flag_spec
=' '
9062 allow_undefined_flag
=unsupported
9063 # Tell ltmain to make .lib files, not .a files.
9065 # Tell ltmain to make .dll files, not .so files.
9067 # FIXME: Setting linknames here is a bad hack.
9068 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9069 # The linker will automatically build a .lib file if we build a DLL.
9070 old_archive_from_new_cmds
='true'
9071 # FIXME: Should let the user specify the lib program.
9072 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9073 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9074 enable_shared_with_static_runtimes
=yes
9077 darwin
* | rhapsody
*)
9080 archive_cmds_need_lc
=no
9082 hardcode_automatic
=yes
9083 hardcode_shlibpath_var
=unsupported
9084 whole_archive_flag_spec
=''
9085 link_all_deplibs
=yes
9086 allow_undefined_flag
="$_lt_dar_allow_undefined"
9087 case $cc_basename in
9088 ifort
*) _lt_dar_can_shared
=yes ;;
9089 *) _lt_dar_can_shared
=$GCC ;;
9091 if test "$_lt_dar_can_shared" = "yes"; then
9092 output_verbose_link_cmd
=echo
9093 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9094 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9095 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}"
9096 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}"
9105 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9106 hardcode_libdir_flag_spec
='-L$libdir'
9107 hardcode_shlibpath_var
=no
9114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9115 # support. Future versions do this automatically, but an explicit c++rt0.o
9116 # does not break anything, and helps significantly (at the cost of a little
9119 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9120 hardcode_libdir_flag_spec
='-R$libdir'
9122 hardcode_shlibpath_var
=no
9125 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9127 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_minus_L
=yes
9130 hardcode_shlibpath_var
=no
9133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9134 freebsd
* | dragonfly
*)
9135 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9136 hardcode_libdir_flag_spec
='-R$libdir'
9138 hardcode_shlibpath_var
=no
9142 if test "$GCC" = yes; then
9143 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'
9145 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'
9147 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9148 hardcode_libdir_separator
=:
9151 # hardcode_minus_L: Not really in the search PATH,
9152 # but as the default location of the library.
9153 hardcode_minus_L
=yes
9154 export_dynamic_flag_spec
='${wl}-E'
9158 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9159 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9163 if test "$with_gnu_ld" = no
; then
9164 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9165 hardcode_libdir_flag_spec_ld
='+b $libdir'
9166 hardcode_libdir_separator
=:
9168 hardcode_direct_absolute
=yes
9169 export_dynamic_flag_spec
='${wl}-E'
9170 # hardcode_minus_L: Not really in the search PATH,
9171 # but as the default location of the library.
9172 hardcode_minus_L
=yes
9177 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9180 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9183 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9186 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9202 if test "$with_gnu_ld" = no
; then
9203 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9204 hardcode_libdir_separator
=:
9209 hardcode_shlibpath_var
=no
9213 hardcode_direct_absolute
=yes
9214 export_dynamic_flag_spec
='${wl}-E'
9216 # hardcode_minus_L: Not really in the search PATH,
9217 # but as the default location of the library.
9218 hardcode_minus_L
=yes
9224 irix5
* | irix6
* | nonstopux
*)
9225 if test "$GCC" = yes; then
9226 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'
9227 # Try to use the -exported_symbol ld option, if it does not
9228 # work, assume that -exports_file does not work either and
9229 # implicitly export all symbols.
9230 save_LDFLAGS
="$LDFLAGS"
9231 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9232 cat >conftest.
$ac_ext <<_ACEOF
9235 rm -f conftest.
$ac_objext conftest
$ac_exeext
9236 if { (ac_try
="$ac_link"
9238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9239 *) ac_try_echo=$ac_try;;
9241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9242 $as_echo "$ac_try_echo") >&5
9243 (eval "$ac_link") 2>conftest.er1
9245 grep -v '^ *+' conftest.er1 >conftest.err
9247 cat conftest.err >&5
9248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } && {
9250 test -z "$ac_c_werror_flag" ||
9251 test ! -s conftest.err
9252 } && test -s conftest$ac_exeext && {
9253 test "$cross_compiling" = yes ||
9254 $as_test_x conftest$ac_exeext
9256 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'
9259 $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9265 rm -rf conftest.dSYM
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LDFLAGS="$save_LDFLAGS"
9270 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'
9271 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'
9273 archive_cmds_need_lc='no'
9274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275 hardcode_libdir_separator=:
9277 link_all_deplibs=yes
9281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9286 hardcode_libdir_flag_spec='-R$libdir'
9288 hardcode_shlibpath_var=no
9292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 hardcode_libdir_separator=:
9296 hardcode_shlibpath_var=no
9303 if test -f /usr/libexec/ld.so; then
9305 hardcode_shlibpath_var=no
9306 hardcode_direct_absolute=yes
9307 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9311 export_dynamic_flag_spec='${wl}-E'
9314 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_libdir_flag_spec='-R$libdir'
9319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_minus_L=yes
9332 allow_undefined_flag=unsupported
9333 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'
9334 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9338 if test "$GCC" = yes; then
9339 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9340 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'
9342 allow_undefined_flag=' -expect_unresolved \*'
9343 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'
9345 archive_cmds_need_lc='no'
9346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347 hardcode_libdir_separator=:
9350 osf4* | osf5*) # as osf3* with the addition of -msym flag
9351 if test "$GCC" = yes; then
9352 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9353 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'
9354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9356 allow_undefined_flag=' -expect_unresolved \*'
9357 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'
9358 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~
9359 $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'
9361 # Both c and cxx compiler support -rpath directly
9362 hardcode_libdir_flag_spec='-rpath $libdir'
9364 archive_cmds_need_lc='no'
9365 hardcode_libdir_separator=:
9369 no_undefined_flag=' -z defs'
9370 if test "$GCC" = yes; then
9372 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9374 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9376 case `$CC -V 2>&1` in
9379 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9381 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9385 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9387 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9391 hardcode_libdir_flag_spec='-R$libdir'
9392 hardcode_shlibpath_var=no
9394 solaris2.[0-5] | solaris2.[0-5].*) ;;
9396 # The compiler driver will combine and reorder linker options,
9397 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9398 # but is careful enough not to reorder.
9399 # Supported since Solaris 2.6 (maybe 2.5.1?)
9400 if test "$GCC" = yes; then
9401 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9403 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9407 link_all_deplibs
=yes
9411 if test "x$host_vendor" = xsequent
; then
9412 # Use $CC to link under sequent, because it throws in some extra .o
9413 # files that make .init and .fini sections work.
9414 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9418 hardcode_libdir_flag_spec
='-L$libdir'
9420 hardcode_minus_L
=yes
9421 hardcode_shlibpath_var
=no
9425 case $host_vendor in
9427 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_direct
=yes # is this really true???
9431 ## LD is ld it makes a PLAMLIB
9432 ## CC just makes a GrossModule.
9433 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9434 reload_cmds
='$CC -r -o $output$reload_objs'
9438 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9442 runpath_var
='LD_RUN_PATH'
9443 hardcode_shlibpath_var
=no
9447 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9448 hardcode_shlibpath_var
=no
9449 export_dynamic_flag_spec
='-Bexport'
9453 if test -d /usr
/nec
; then
9454 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_shlibpath_var
=no
9456 runpath_var
=LD_RUN_PATH
9457 hardcode_runpath_var
=yes
9462 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9463 no_undefined_flag
='${wl}-z,text'
9464 archive_cmds_need_lc
=no
9465 hardcode_shlibpath_var
=no
9466 runpath_var
='LD_RUN_PATH'
9468 if test "$GCC" = yes; then
9469 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9473 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477 sysv5
* | sco3.2v5
* | sco5v6
*)
9478 # Note: We can NOT use -z defs as we might desire, because we do not
9479 # link with -lc, and that would cause any symbols used from libc to
9480 # always be unresolved, which means just about no library would
9481 # ever link correctly. If we're not using GNU ld we use -z text
9482 # though, which does catch some bad symbols but isn't as heavy-handed
9484 no_undefined_flag
='${wl}-z,text'
9485 allow_undefined_flag
='${wl}-z,nodefs'
9486 archive_cmds_need_lc
=no
9487 hardcode_shlibpath_var
=no
9488 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9489 hardcode_libdir_separator
=':'
9490 link_all_deplibs
=yes
9491 export_dynamic_flag_spec
='${wl}-Bexport'
9492 runpath_var
='LD_RUN_PATH'
9494 if test "$GCC" = yes; then
9495 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505 hardcode_libdir_flag_spec
='-L$libdir'
9506 hardcode_shlibpath_var
=no
9514 if test x
$host_vendor = xsni
; then
9516 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9517 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9523 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9524 $as_echo "$ld_shlibs" >&6; }
9525 test "$ld_shlibs" = no
&& can_build_shared
=no
9527 with_gnu_ld
=$with_gnu_ld
9544 # Do we need to explicitly link libc?
9546 case "x$archive_cmds_need_lc" in
9548 # Assume -lc should be added
9549 archive_cmds_need_lc
=yes
9551 if test "$enable_shared" = yes && test "$GCC" = yes; then
9552 case $archive_cmds in
9554 # FIXME: we may have to deal with multi-command sequences.
9557 # Test whether the compiler implicitly links with -lc since on some
9558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9559 # to ld, don't add -lc before -lgcc.
9560 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9561 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9563 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566 (eval $ac_compile) 2>&5
9568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } 2>conftest.err
; then
9572 libobjs
=conftest.
$ac_objext
9574 wl
=$lt_prog_compiler_wl
9575 pic_flag
=$lt_prog_compiler_pic
9581 lt_save_allow_undefined_flag
=$allow_undefined_flag
9582 allow_undefined_flag
=
9583 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9584 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }
9589 archive_cmds_need_lc
=no
9591 archive_cmds_need_lc
=yes
9593 allow_undefined_flag
=$lt_save_allow_undefined_flag
9595 cat conftest.err
1>&5
9598 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9599 $as_echo "$archive_cmds_need_lc" >&6; }
9762 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9763 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9765 if test "$GCC" = yes; then
9767 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9768 *) lt_awk_arg
="/^libraries:/" ;;
9770 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9771 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9772 # if the path contains ";" then we assume it to be the separator
9773 # otherwise default to the standard path separator (i.e. ":") - it is
9774 # assumed that no part of a normal pathname contains ";" but that should
9775 # okay in the real world where ";" in dirpaths is itself problematic.
9776 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9778 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9780 # Ok, now we have the path, separated by spaces, we can step through it
9781 # and add multilib dir if necessary.
9782 lt_tmp_lt_search_path_spec
=
9783 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9784 for lt_sys_path
in $lt_search_path_spec; do
9785 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9786 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9788 test -d "$lt_sys_path" && \
9789 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9792 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9793 BEGIN {RS=" "; FS="/|\n";} {
9796 for (lt_i = NF; lt_i > 0; lt_i--) {
9797 if ($lt_i != "" && $lt_i != ".") {
9798 if ($lt_i == "..") {
9801 if (lt_count == 0) {
9802 lt_foo="/" $lt_i lt_foo;
9809 if (lt_foo != "") { lt_freq[lt_foo]++; }
9810 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9812 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9814 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9817 libname_spec
='lib$name'
9825 shlibpath_overrides_runpath
=unknown
9827 dynamic_linker
="$host_os ld.so"
9828 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9829 need_lib_prefix
=unknown
9830 hardcode_into_libs
=no
9832 # when you set need_version to no, make sure it does not cause -set_version
9833 # flags to be left without arguments
9834 need_version
=unknown
9839 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9840 shlibpath_var
=LIBPATH
9842 # AIX 3 has no versioning support, so we append a major version to the name.
9843 soname_spec
='${libname}${release}${shared_ext}$major'
9850 hardcode_into_libs
=yes
9851 if test "$host_cpu" = ia64
; then
9852 # AIX 5 supports IA64
9853 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9854 shlibpath_var
=LD_LIBRARY_PATH
9856 # With GCC up to 2.95.x, collect2 would create an import file
9857 # for dependence libraries. The import file would start with
9858 # the line `#! .'. This would cause the generated library to
9859 # depend on `.', always an invalid library. This was fixed in
9860 # development snapshots of GCC prior to 3.0.
9862 aix4 | aix4.
[01] | aix4.
[01].
*)
9863 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9865 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9872 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9873 # soname into executable. Probably we can add versioning support to
9874 # collect2, so additional links can be useful in future.
9875 if test "$aix_use_runtimelinking" = yes; then
9876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9877 # instead of lib<name>.a to let people know that these are not
9878 # typical AIX shared libraries.
9879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 # We preserve .a as extension for shared libraries through AIX4.2
9882 # and later when we are not doing run time linking.
9883 library_names_spec
='${libname}${release}.a $libname.a'
9884 soname_spec
='${libname}${release}${shared_ext}$major'
9886 shlibpath_var
=LIBPATH
9893 # Since July 2007 AmigaOS4 officially supports .so libraries.
9894 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 library_names_spec
='$libname.ixlibrary $libname.a'
9899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9900 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'
9906 library_names_spec
='${libname}${shared_ext}'
9907 dynamic_linker
="$host_os ld.so"
9908 shlibpath_var
=LIBRARY_PATH
9914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 soname_spec
='${libname}${release}${shared_ext}$major'
9916 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9917 shlibpath_var
=LD_LIBRARY_PATH
9918 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9919 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9920 # the default ld.so.conf also contains /usr/contrib/lib and
9921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9922 # libtool to hard-code these into programs
9925 cygwin
* | mingw
* | pw32
* | cegcc
*)
9926 version_type
=windows
9931 case $GCC,$host_os in
9932 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9933 library_names_spec
='$libname.dll.a'
9934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9935 postinstall_cmds
='base_file=`basename \${file}`~
9936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9937 dldir=$destdir/`dirname \$dlpath`~
9938 test -d \$dldir || mkdir -p \$dldir~
9939 $install_prog $dir/$dlname \$dldir/$dlname~
9940 chmod a+x \$dldir/$dlname~
9941 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9942 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9944 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9945 dlpath=$dir/\$dldll~
9947 shlibpath_overrides_runpath
=yes
9951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9952 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9953 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9956 # MinGW DLLs use traditional 'lib' prefix
9957 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9959 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9960 # It is most probably a Windows format PATH printed by
9961 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9962 # path with ; separators, and with drive letters. We can handle the
9963 # drive letters (cygwin fileutils understands them), so leave them,
9964 # especially as we might pass files found there to a mingw objdump,
9965 # which wouldn't understand a cygwinified path. Ahh.
9966 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9968 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9972 # pw32 DLLs use 'pw' prefix rather than 'lib'
9973 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9982 dynamic_linker
='Win32 ld.exe'
9983 # FIXME: first we should search . and the directory the executable is in
9987 darwin
* | rhapsody
*)
9988 dynamic_linker
="$host_os dyld"
9992 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9993 soname_spec
='${libname}${release}${major}$shared_ext'
9994 shlibpath_overrides_runpath
=yes
9995 shlibpath_var
=DYLD_LIBRARY_PATH
9996 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9998 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9999 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10007 soname_spec
='${libname}${release}${shared_ext}$major'
10008 shlibpath_var
=LD_LIBRARY_PATH
10015 freebsd
* | dragonfly
*)
10016 # DragonFly does not have aout. When/if they implement a new
10017 # versioning mechanism, adjust this.
10018 if test -x /usr
/bin
/objformat
; then
10019 objformat
=`/usr/bin/objformat`
10022 freebsd
[123]*) objformat
=aout
;;
10023 *) objformat
=elf
;;
10026 version_type
=freebsd-
$objformat
10027 case $version_type in
10029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10034 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10038 shlibpath_var
=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath
=yes
10043 freebsd3.
[01]* | freebsdelf3.
[01]*)
10044 shlibpath_overrides_runpath
=yes
10045 hardcode_into_libs
=yes
10047 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10048 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10049 shlibpath_overrides_runpath
=no
10050 hardcode_into_libs
=yes
10052 *) # from 4.6 on, and DragonFly
10053 shlibpath_overrides_runpath
=yes
10054 hardcode_into_libs
=yes
10063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10064 soname_spec
='${libname}${release}${shared_ext}$major'
10065 shlibpath_var
=LD_LIBRARY_PATH
10066 hardcode_into_libs
=yes
10069 hpux9
* | hpux10
* | hpux11
*)
10070 # Give a soname corresponding to the major version so that dld.sl refuses to
10071 # link against other versions.
10078 hardcode_into_libs
=yes
10079 dynamic_linker
="$host_os dld.so"
10080 shlibpath_var
=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083 soname_spec
='${libname}${release}${shared_ext}$major'
10084 if test "X$HPUX_IA64_MODE" = X32
; then
10085 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10087 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10089 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10093 hardcode_into_libs
=yes
10094 dynamic_linker
="$host_os dld.sl"
10095 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10096 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 soname_spec
='${libname}${release}${shared_ext}$major'
10099 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10100 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10104 dynamic_linker
="$host_os dld.sl"
10105 shlibpath_var
=SHLIB_PATH
10106 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 soname_spec
='${libname}${release}${shared_ext}$major'
10111 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10112 postinstall_cmds
='chmod 555 $lib'
10119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120 soname_spec
='${libname}${release}${shared_ext}$major'
10121 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10122 shlibpath_var
=LD_LIBRARY_PATH
10123 shlibpath_overrides_runpath
=no
10124 hardcode_into_libs
=yes
10127 irix5
* | irix6
* | nonstopux
*)
10129 nonstopux
*) version_type
=nonstopux
;;
10131 if test "$lt_cv_prog_gnu_ld" = yes; then
10139 soname_spec
='${libname}${release}${shared_ext}$major'
10140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10142 irix5
* | nonstopux
*)
10143 libsuff
= shlibsuff
=
10146 case $LD in # libtool.m4 will add one of these switches to LD
10147 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10148 libsuff
= shlibsuff
= libmagic
=32-bit;;
10149 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10150 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10151 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10152 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10153 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10157 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10158 shlibpath_overrides_runpath
=no
10159 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10160 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10161 hardcode_into_libs
=yes
10164 # No shared lib support for Linux oldld, aout, or coff.
10165 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10169 # This must be Linux ELF.
10170 linux
* | k
*bsd
*-gnu)
10174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 soname_spec
='${libname}${release}${shared_ext}$major'
10176 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10177 shlibpath_var
=LD_LIBRARY_PATH
10178 shlibpath_overrides_runpath
=no
10179 # Some binutils ld are patched to set DT_RUNPATH
10180 save_LDFLAGS
=$LDFLAGS
10181 save_libdir
=$libdir
10182 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10183 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10184 cat >conftest.
$ac_ext <<_ACEOF
10187 cat confdefs.h
>>conftest.
$ac_ext
10188 cat >>conftest.
$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10199 rm -f conftest.
$ac_objext conftest
$ac_exeext
10200 if { (ac_try
="$ac_link"
10201 case "(($ac_try" in
10202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10206 $as_echo "$ac_try_echo") >&5
10207 (eval "$ac_link") 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest$ac_exeext && {
10217 test "$cross_compiling" = yes ||
10218 $as_test_x conftest$ac_exeext
10220 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10221 shlibpath_overrides_runpath=yes
10225 $as_echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10231 rm -rf conftest.dSYM
10232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10233 conftest$ac_exeext conftest.$ac_ext
10234 LDFLAGS=$save_LDFLAGS
10235 libdir=$save_libdir
10237 # This implies no fast_install, which is unacceptable.
10238 # Some rework will be needed to allow for fast_install
10239 # before this can be enabled.
10240 hardcode_into_libs=yes
10242 # Add ABI-specific directories to the system library path.
10243 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10245 # Append ld.so.conf contents to the search path
10246 if test -f /etc/ld.so.conf; then
10247 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' ' '`
10248 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10251 # We used to test for /lib/ld.so.1 and disable shared libraries on
10252 # powerpc, because MkLinux only supported shared libraries with the
10253 # GNU dynamic linker. Since this was broken with cross compilers,
10254 # most powerpc-linux boxes support dynamic linking these days and
10255 # people can always --disable-shared, the test was removed, and we
10256 # assume the GNU/Linux dynamic linker is in use.
10257 dynamic_linker='GNU/Linux ld.so'
10264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267 dynamic_linker='NetBSD (a.out) ld.so'
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 dynamic_linker='NetBSD ld.elf_so'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 shlibpath_overrides_runpath=yes
10275 hardcode_into_libs=yes
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=no
10293 hardcode_into_libs=yes
10294 dynamic_linker='ldqnx.so'
10299 sys_lib_dlsearch_path_spec="/usr/lib"
10301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10303 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10304 *) need_version=no ;;
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10311 openbsd2.[89] | openbsd2.[89].*)
10312 shlibpath_overrides_runpath=no
10315 shlibpath_overrides_runpath=yes
10319 shlibpath_overrides_runpath=yes
10324 libname_spec='$name'
10327 library_names_spec='$libname${shared_ext} $libname.a'
10328 dynamic_linker='OS/2 ld.exe'
10329 shlibpath_var=LIBPATH
10332 osf3* | osf4* | osf5*)
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 shlibpath_overrides_runpath=yes
10355 hardcode_into_libs=yes
10356 # ldd complains unless libraries are executable
10357 postinstall_cmds='chmod +x $lib'
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10363 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes
10366 if test "$with_gnu_ld" = yes; then
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 case $host_vendor in
10379 shlibpath_overrides_runpath=no
10381 runpath_var=LD_RUN_PATH
10389 shlibpath_overrides_runpath=no
10390 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10396 if test -d /usr/nec ;then
10398 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10399 soname_spec='$libname${shared_ext}.$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10405 version_type=freebsd-elf
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath=yes
10412 hardcode_into_libs=yes
10413 if test "$with_gnu_ld" = yes; then
10414 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10416 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10419 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10423 sys_lib_dlsearch_path_spec='/usr/lib'
10427 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 shlibpath_overrides_runpath=no
10434 hardcode_into_libs=yes
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10448 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10449 $as_echo "$dynamic_linker" >&6; }
10450 test "$dynamic_linker" = no && can_build_shared=no
10452 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10453 if test "$GCC" = yes; then
10454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10457 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10458 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10460 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10461 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10550 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10551 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10553 if test -n "$hardcode_libdir_flag_spec" ||
10554 test -n "$runpath_var" ||
10555 test "X$hardcode_automatic" = "Xyes" ; then
10557 # We can hardcode non-existent directories.
10558 if test "$hardcode_direct" != no &&
10559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10560 # have to relink, otherwise we might link with an installed library
10561 # when we should be linking with a yet-to-be-installed one
10562 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10563 test "$hardcode_minus_L" != no; then
10564 # Linking always hardcodes the temporary library directory.
10565 hardcode_action=relink
10567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10568 hardcode_action=immediate
10571 # We cannot hardcode anything, or else we can only hardcode existing
10573 hardcode_action=unsupported
10575 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10576 $as_echo "$hardcode_action" >&6; }
10578 if test "$hardcode_action" = relink ||
10579 test "$inherit_rpath" = yes; then
10580 # Fast installation is not supported
10581 enable_fast_install=no
10582 elif test "$shlibpath_overrides_runpath" = yes ||
10583 test "$enable_shared" = no; then
10584 # Fast installation is not necessary
10585 enable_fast_install=needless
10593 if test "x$enable_dlopen" != xyes; then
10594 enable_dlopen=unknown
10595 enable_dlopen_self=unknown
10596 enable_dlopen_self_static=unknown
10603 lt_cv_dlopen="load_add_on"
10605 lt_cv_dlopen_self=yes
10608 mingw* | pw32* | cegcc*)
10609 lt_cv_dlopen="LoadLibrary"
10614 lt_cv_dlopen="dlopen"
10619 # if libdl is installed we need to link against it
10620 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10622 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10623 $as_echo_n "(cached) " >&6
10625 ac_check_lib_save_LIBS=$LIBS
10627 cat >conftest.$ac_ext <<_ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10634 /* Override any GCC internal prototype to avoid an error.
10635 Use char because int might match the return type of a GCC
10636 builtin and then its argument prototype would still apply. */
10649 rm -f conftest.$ac_objext conftest$ac_exeext
10650 if { (ac_try="$ac_link"
10651 case "(($ac_try" in
10652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10653 *) ac_try_echo
=$ac_try;;
10655 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10656 $as_echo "$ac_try_echo") >&5
10657 (eval "$ac_link") 2>conftest.er1
10659 grep -v '^ *+' conftest.er1
>conftest.err
10661 cat conftest.err
>&5
10662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest
$ac_exeext && {
10667 test "$cross_compiling" = yes ||
10668 $as_test_x conftest
$ac_exeext
10670 ac_cv_lib_dl_dlopen
=yes
10672 $as_echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.
$ac_ext >&5
10675 ac_cv_lib_dl_dlopen
=no
10678 rm -rf conftest.dSYM
10679 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10680 conftest
$ac_exeext conftest.
$ac_ext
10681 LIBS
=$ac_check_lib_save_LIBS
10683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10684 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10685 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10686 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10689 lt_cv_dlopen
="dyld"
10691 lt_cv_dlopen_self
=yes
10698 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10699 $as_echo_n "checking for shl_load... " >&6; }
10700 if test "${ac_cv_func_shl_load+set}" = set; then
10701 $as_echo_n "(cached) " >&6
10703 cat >conftest.
$ac_ext <<_ACEOF
10706 cat confdefs.h
>>conftest.
$ac_ext
10707 cat >>conftest.
$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10711 #define shl_load innocuous_shl_load
10713 /* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char shl_load (); below.
10715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716 <limits.h> exists even on freestanding compilers. */
10719 # include <limits.h>
10721 # include <assert.h>
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10733 /* The GNU C library defines this for functions which it implements
10734 to always fail with ENOSYS. Some functions are actually named
10735 something starting with __ and the normal name is an alias. */
10736 #if defined __stub_shl_load || defined __stub___shl_load
10743 return shl_load ();
10748 rm -f conftest.
$ac_objext conftest
$ac_exeext
10749 if { (ac_try
="$ac_link"
10750 case "(($ac_try" in
10751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10755 $as_echo "$ac_try_echo") >&5
10756 (eval "$ac_link") 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest$ac_exeext && {
10766 test "$cross_compiling" = yes ||
10767 $as_test_x conftest$ac_exeext
10769 ac_cv_func_shl_load=yes
10771 $as_echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 ac_cv_func_shl_load=no
10777 rm -rf conftest.dSYM
10778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10779 conftest$ac_exeext conftest.$ac_ext
10781 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10782 $as_echo "$ac_cv_func_shl_load" >&6; }
10783 if test "x$ac_cv_func_shl_load" = x""yes; then
10784 lt_cv_dlopen="shl_load"
10786 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10787 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10789 $as_echo_n "(cached) " >&6
10791 ac_check_lib_save_LIBS=$LIBS
10793 cat >conftest.$ac_ext <<_ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10800 /* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
10810 return shl_load ();
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (ac_try="$ac_link"
10817 case "(($ac_try" in
10818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10819 *) ac_try_echo
=$ac_try;;
10821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10822 $as_echo "$ac_try_echo") >&5
10823 (eval "$ac_link") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1
>conftest.err
10827 cat conftest.err
>&5
10828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest
$ac_exeext && {
10833 test "$cross_compiling" = yes ||
10834 $as_test_x conftest
$ac_exeext
10836 ac_cv_lib_dld_shl_load
=yes
10838 $as_echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.
$ac_ext >&5
10841 ac_cv_lib_dld_shl_load
=no
10844 rm -rf conftest.dSYM
10845 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10846 conftest
$ac_exeext conftest.
$ac_ext
10847 LIBS
=$ac_check_lib_save_LIBS
10849 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10850 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10851 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10852 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10854 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10855 $as_echo_n "checking for dlopen... " >&6; }
10856 if test "${ac_cv_func_dlopen+set}" = set; then
10857 $as_echo_n "(cached) " >&6
10859 cat >conftest.
$ac_ext <<_ACEOF
10862 cat confdefs.h
>>conftest.
$ac_ext
10863 cat >>conftest.
$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10865 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10867 #define dlopen innocuous_dlopen
10869 /* System header to define __stub macros and hopefully few prototypes,
10870 which can conflict with char dlopen (); below.
10871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10872 <limits.h> exists even on freestanding compilers. */
10875 # include <limits.h>
10877 # include <assert.h>
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10889 /* The GNU C library defines this for functions which it implements
10890 to always fail with ENOSYS. Some functions are actually named
10891 something starting with __ and the normal name is an alias. */
10892 #if defined __stub_dlopen || defined __stub___dlopen
10904 rm -f conftest.
$ac_objext conftest
$ac_exeext
10905 if { (ac_try
="$ac_link"
10906 case "(($ac_try" in
10907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10911 $as_echo "$ac_try_echo") >&5
10912 (eval "$ac_link") 2>conftest.er1
10914 grep -v '^ *+' conftest.er1 >conftest.err
10916 cat conftest.err >&5
10917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest$ac_exeext && {
10922 test "$cross_compiling" = yes ||
10923 $as_test_x conftest$ac_exeext
10925 ac_cv_func_dlopen=yes
10927 $as_echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_func_dlopen=no
10933 rm -rf conftest.dSYM
10934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10935 conftest$ac_exeext conftest.$ac_ext
10937 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10938 $as_echo "$ac_cv_func_dlopen" >&6; }
10939 if test "x$ac_cv_func_dlopen" = x""yes; then
10940 lt_cv_dlopen="dlopen"
10942 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10943 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10945 $as_echo_n "(cached) " >&6
10947 ac_check_lib_save_LIBS=$LIBS
10949 cat >conftest.$ac_ext <<_ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10956 /* Override any GCC internal prototype to avoid an error.
10957 Use char because int might match the return type of a GCC
10958 builtin and then its argument prototype would still apply. */
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (ac_try="$ac_link"
10973 case "(($ac_try" in
10974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10975 *) ac_try_echo
=$ac_try;;
10977 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979 (eval "$ac_link") 2>conftest.er1
10981 grep -v '^ *+' conftest.er1
>conftest.err
10983 cat conftest.err
>&5
10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest
$ac_exeext && {
10989 test "$cross_compiling" = yes ||
10990 $as_test_x conftest
$ac_exeext
10992 ac_cv_lib_dl_dlopen
=yes
10994 $as_echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.
$ac_ext >&5
10997 ac_cv_lib_dl_dlopen
=no
11000 rm -rf conftest.dSYM
11001 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11002 conftest
$ac_exeext conftest.
$ac_ext
11003 LIBS
=$ac_check_lib_save_LIBS
11005 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11006 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11007 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11008 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11010 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11011 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11012 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11013 $as_echo_n "(cached) " >&6
11015 ac_check_lib_save_LIBS
=$LIBS
11016 LIBS
="-lsvld $LIBS"
11017 cat >conftest.
$ac_ext <<_ACEOF
11020 cat confdefs.h
>>conftest.
$ac_ext
11021 cat >>conftest.
$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11024 /* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11039 rm -f conftest.
$ac_objext conftest
$ac_exeext
11040 if { (ac_try
="$ac_link"
11041 case "(($ac_try" in
11042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11046 $as_echo "$ac_try_echo") >&5
11047 (eval "$ac_link") 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && {
11054 test -z "$ac_c_werror_flag" ||
11055 test ! -s conftest.err
11056 } && test -s conftest$ac_exeext && {
11057 test "$cross_compiling" = yes ||
11058 $as_test_x conftest$ac_exeext
11060 ac_cv_lib_svld_dlopen=yes
11062 $as_echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_cv_lib_svld_dlopen=no
11068 rm -rf conftest.dSYM
11069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LIBS=$ac_check_lib_save_LIBS
11073 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11074 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11075 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11078 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11079 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11080 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11081 $as_echo_n "(cached) " >&6
11083 ac_check_lib_save_LIBS=$LIBS
11085 cat >conftest.$ac_ext <<_ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11092 /* Override any GCC internal prototype to avoid an error.
11093 Use char because int might match the return type of a GCC
11094 builtin and then its argument prototype would still apply. */
11102 return dld_link ();
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11111 *) ac_try_echo
=$ac_try;;
11113 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11114 $as_echo "$ac_try_echo") >&5
11115 (eval "$ac_link") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1
>conftest.err
11119 cat conftest.err
>&5
11120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest
$ac_exeext && {
11125 test "$cross_compiling" = yes ||
11126 $as_test_x conftest
$ac_exeext
11128 ac_cv_lib_dld_dld_link
=yes
11130 $as_echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.
$ac_ext >&5
11133 ac_cv_lib_dld_dld_link
=no
11136 rm -rf conftest.dSYM
11137 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11138 conftest
$ac_exeext conftest.
$ac_ext
11139 LIBS
=$ac_check_lib_save_LIBS
11141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11142 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11143 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11144 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11165 if test "x$lt_cv_dlopen" != xno
; then
11171 case $lt_cv_dlopen in
11173 save_CPPFLAGS
="$CPPFLAGS"
11174 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11176 save_LDFLAGS
="$LDFLAGS"
11177 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11180 LIBS
="$lt_cv_dlopen_libs $LIBS"
11182 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11183 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11184 if test "${lt_cv_dlopen_self+set}" = set; then
11185 $as_echo_n "(cached) " >&6
11187 if test "$cross_compiling" = yes; then :
11188 lt_cv_dlopen_self
=cross
11190 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11191 lt_status
=$lt_dlunknown
11192 cat > conftest.
$ac_ext <<_LT_EOF
11193 #line 11193 "configure"
11194 #include "confdefs.h"
11203 # define LT_DLGLOBAL RTLD_GLOBAL
11206 # define LT_DLGLOBAL DL_GLOBAL
11208 # define LT_DLGLOBAL 0
11212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11213 find out it does not work in some platform. */
11214 #ifndef LT_DLLAZY_OR_NOW
11216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11219 # define LT_DLLAZY_OR_NOW DL_LAZY
11222 # define LT_DLLAZY_OR_NOW RTLD_NOW
11225 # define LT_DLLAZY_OR_NOW DL_NOW
11227 # define LT_DLLAZY_OR_NOW 0
11234 void fnord() { int i=42;}
11237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11238 int status = $lt_dlunknown;
11242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11244 /* dlclose (self); */
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11257 (.
/conftest
; exit; ) >&5 2>/dev
/null
11259 case x
$lt_status in
11260 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11261 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11262 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11265 # compilation failed
11266 lt_cv_dlopen_self
=no
11273 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11274 $as_echo "$lt_cv_dlopen_self" >&6; }
11276 if test "x$lt_cv_dlopen_self" = xyes
; then
11277 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11278 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11279 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11280 if test "${lt_cv_dlopen_self_static+set}" = set; then
11281 $as_echo_n "(cached) " >&6
11283 if test "$cross_compiling" = yes; then :
11284 lt_cv_dlopen_self_static
=cross
11286 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11287 lt_status
=$lt_dlunknown
11288 cat > conftest.
$ac_ext <<_LT_EOF
11289 #line 11289 "configure"
11290 #include "confdefs.h"
11299 # define LT_DLGLOBAL RTLD_GLOBAL
11302 # define LT_DLGLOBAL DL_GLOBAL
11304 # define LT_DLGLOBAL 0
11308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11309 find out it does not work in some platform. */
11310 #ifndef LT_DLLAZY_OR_NOW
11312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11315 # define LT_DLLAZY_OR_NOW DL_LAZY
11318 # define LT_DLLAZY_OR_NOW RTLD_NOW
11321 # define LT_DLLAZY_OR_NOW DL_NOW
11323 # define LT_DLLAZY_OR_NOW 0
11330 void fnord() { int i=42;}
11333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11334 int status = $lt_dlunknown;
11338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11339 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11340 /* dlclose (self); */
11348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349 (eval $ac_link) 2>&5
11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11353 (.
/conftest
; exit; ) >&5 2>/dev
/null
11355 case x
$lt_status in
11356 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11357 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11358 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11361 # compilation failed
11362 lt_cv_dlopen_self_static
=no
11369 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11370 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11373 CPPFLAGS
="$save_CPPFLAGS"
11374 LDFLAGS
="$save_LDFLAGS"
11379 case $lt_cv_dlopen_self in
11380 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11381 *) enable_dlopen_self
=unknown
;;
11384 case $lt_cv_dlopen_self_static in
11385 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11386 *) enable_dlopen_self_static
=unknown
;;
11408 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11409 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11410 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11411 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11412 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11413 { $as_echo "$as_me:$LINENO: result: yes" >&5
11414 $as_echo "yes" >&6; }
11416 # FIXME - insert some real tests, host_os isn't really good enough
11419 if test -n "$STRIP" ; then
11420 striplib
="$STRIP -x"
11421 old_striplib
="$STRIP -S"
11422 { $as_echo "$as_me:$LINENO: result: yes" >&5
11423 $as_echo "yes" >&6; }
11425 { $as_echo "$as_me:$LINENO: result: no" >&5
11426 $as_echo "no" >&6; }
11430 { $as_echo "$as_me:$LINENO: result: no" >&5
11431 $as_echo "no" >&6; }
11447 # Report which library types will actually be built
11448 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11449 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11450 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11451 $as_echo "$can_build_shared" >&6; }
11453 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11454 $as_echo_n "checking whether to build shared libraries... " >&6; }
11455 test "$can_build_shared" = "no" && enable_shared
=no
11457 # On AIX, shared libraries and static libraries use the same namespace, and
11458 # are all built from PIC.
11461 test "$enable_shared" = yes && enable_static
=no
11462 if test -n "$RANLIB"; then
11463 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11464 postinstall_cmds
='$RANLIB $lib'
11469 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11470 test "$enable_shared" = yes && enable_static
=no
11474 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11475 $as_echo "$enable_shared" >&6; }
11477 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11478 $as_echo_n "checking whether to build static libraries... " >&6; }
11479 # Make sure either enable_shared or enable_static is yes.
11480 test "$enable_shared" = yes || enable_static
=yes
11481 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11482 $as_echo "$enable_static" >&6; }
11489 ac_cpp
='$CPP $CPPFLAGS'
11490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11508 ac_config_commands
="$ac_config_commands libtool"
11513 # Only expand once:
11516 # By default we simply use the C compiler to build assembly code.
11518 test "${CCAS+set}" = set || CCAS
=$CC
11519 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11523 depcc
="$CCAS" am_compiler_list
=
11525 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11526 $as_echo_n "checking dependency style of $depcc... " >&6; }
11527 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11528 $as_echo_n "(cached) " >&6
11530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11531 # We make a subdir and do the tests there. Otherwise we can end up
11532 # making bogus files that we don't know about and never remove. For
11533 # instance it was reported that on HP-UX the gcc test will end up
11534 # making a dummy file named `D' -- because `-MD' means `put the output
11537 # Copy depcomp to subdir because otherwise we won't find it if we're
11538 # using a relative directory.
11539 cp "$am_depcomp" conftest.dir
11541 # We will build objects and dependencies in a subdirectory because
11542 # it helps to detect inapplicable dependency modes. For instance
11543 # both Tru64's cc and ICC support -MD to output dependencies as a
11544 # side effect of compilation, but ICC will put the dependencies in
11545 # the current directory while Tru64 will put them in the object
11549 am_cv_CCAS_dependencies_compiler_type
=none
11550 if test "$am_compiler_list" = ""; then
11551 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11553 am__universal
=false
11556 for depmode
in $am_compiler_list; do
11557 # Setup a source with many dependencies, because some compilers
11558 # like to wrap large dependency lists on column 80 (with \), and
11559 # we should not choose a depcomp mode which is confused by this.
11561 # We need to recreate these files for each test, as the compiler may
11562 # overwrite some of them when testing with obscure command lines.
11563 # This happens at least with the AIX C compiler.
11565 for i
in 1 2 3 4 5 6; do
11566 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11568 # Solaris 8's {/usr,}/bin/sh.
11569 touch sub
/conftst
$i.h
11571 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11574 # mode. It turns out that the SunPro C++ compiler does not properly
11575 # handle `-M -o', and we need to detect this. Also, some Intel
11576 # versions had trouble with output in subdirs
11577 am__obj
=sub
/conftest.
${OBJEXT-o}
11578 am__minus_obj
="-o $am__obj"
11581 # This depmode causes a compiler race in universal mode.
11582 test "$am__universal" = false ||
continue
11585 # after this tag, mechanisms are not by side-effect, so they'll
11586 # only be used when explicitly requested
11587 if test "x$enable_dependency_tracking" = xyes
; then
11593 msvisualcpp | msvcmsys
)
11594 # This compiler won't grok `-c -o', but also, the minuso test has
11595 # not run yet. These depmodes are late enough in the game, and
11596 # so weak that their functioning should not be impacted.
11597 am__obj
=conftest.
${OBJEXT-o}
11602 if depmode
=$depmode \
11603 source=sub
/conftest.c object
=$am__obj \
11604 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11605 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11606 >/dev
/null
2>conftest.err
&&
11607 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11608 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11609 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11610 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11611 # icc doesn't choke on unknown options, it will just issue warnings
11612 # or remarks (even with -Werror). So we grep stderr for any message
11613 # that says an option was ignored or not supported.
11614 # When given -MP, icc 7.0 and 7.1 complain thusly:
11615 # icc: Command line warning: ignoring option '-M'; no argument required
11616 # The diagnosis changed in icc 8.0:
11617 # icc: Command line remark: option '-MP' not supported
11618 if (grep 'ignoring option' conftest.err ||
11619 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11620 am_cv_CCAS_dependencies_compiler_type
=$depmode
11627 rm -rf conftest.dir
11629 am_cv_CCAS_dependencies_compiler_type
=none
11633 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11634 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11635 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11638 test "x$enable_dependency_tracking" != xno \
11639 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11640 am__fastdepCCAS_TRUE
=
11641 am__fastdepCCAS_FALSE
='#'
11643 am__fastdepCCAS_TRUE
='#'
11644 am__fastdepCCAS_FALSE
=
11650 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11651 $as_echo_n "checking zfs author... " >&6; }
11652 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11653 $as_echo "$ZFS_META_AUTHOR" >&6; }
11655 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11656 $as_echo_n "checking zfs license... " >&6; }
11657 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11658 $as_echo "$ZFS_META_LICENSE" >&6; }
11665 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11666 $as_echo_n "checking whether $RPM is available... " >&6; }
11667 if tmp
=$
($RPM --version 2>/dev
/null
); then
11669 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11671 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11672 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11677 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11678 $as_echo "$HAVE_RPM" >&6; }
11683 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11684 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11685 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11687 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11689 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11690 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11695 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11696 $as_echo "$HAVE_RPMBUILD" >&6; }
11711 DPKGBUILD
=dpkg-buildpackage
11713 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11714 $as_echo_n "checking whether $DPKG is available... " >&6; }
11715 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11717 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11719 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11720 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11725 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11726 $as_echo "$HAVE_DPKG" >&6; }
11731 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11732 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11733 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11735 DPKGBUILD_VERSION
=$
(echo $tmp | \
11736 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11738 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11739 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11744 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11745 $as_echo "$HAVE_DPKGBUILD" >&6; }
11761 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11762 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11763 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11765 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11767 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11768 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11773 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11774 $as_echo "$HAVE_ALIEN" >&6; }
11784 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11785 $as_echo_n "checking linux distribution... " >&6; }
11786 if test -f /etc
/redhat-release
; then
11788 elif test -f /etc
/fedora-release
; then
11790 elif test -f /etc
/debian_version
; then
11792 elif test -f /etc
/lsb-release
; then
11794 elif test -f /etc
/SuSE-release
; then
11796 elif test -f /etc
/slackware-version
; then
11798 elif test -f /etc
/gentoo-release
; then
11803 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11804 $as_echo "$VENDOR" >&6; }
11807 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11808 $as_echo_n "checking default package type... " >&6; }
11810 fedora
) DEFAULT_PACKAGE
=rpm
;;
11811 redhat
) DEFAULT_PACKAGE
=rpm
;;
11812 sles
) DEFAULT_PACKAGE
=rpm
;;
11813 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11814 debian
) DEFAULT_PACKAGE
=deb
;;
11815 slackware
) DEFAULT_PACKAGE
=tgz
;;
11816 *) DEFAULT_PACKAGE
=rpm
;;
11819 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11820 $as_echo "$DEFAULT_PACKAGE" >&6; }
11825 TOPDIR
=`readlink -f ${srcdir}`
11829 MODDIR
=$TOPDIR/module
11830 SCRIPTDIR
=$TOPDIR/scripts
11831 TARGET_ASM_DIR
=asm-generic
11843 # Check whether --with-config was given.
11844 if test "${with_config+set}" = set; then
11845 withval
=$with_config; ZFS_CONFIG
="$withval"
11849 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11850 $as_echo_n "checking zfs config... " >&6; }
11851 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11852 $as_echo "$ZFS_CONFIG" >&6; };
11855 case "$ZFS_CONFIG" in
11859 # Check whether --with-linux was given.
11860 if test "${with_linux+set}" = set; then
11861 withval
=$with_linux; kernelsrc
="$withval"
11866 # Check whether --with-linux-obj was given.
11867 if test "${with_linux_obj+set}" = set; then
11868 withval
=$with_linux_obj; kernelbuild
="$withval"
11872 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11873 $as_echo_n "checking kernel source directory... " >&6; }
11874 if test -z "$kernelsrc"; then
11875 headersdir
="/lib/modules/$(uname -r)/build"
11876 if test -e "$headersdir"; then
11877 sourcelink
=$
(readlink
-f "$headersdir")
11879 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
11881 2>/dev
/null |
grep -v obj |
tail -1)
11884 if test -n "$sourcelink" && test -e ${sourcelink}; then
11885 kernelsrc
=`readlink -f ${sourcelink}`
11887 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11888 $as_echo "Not found" >&6; }
11889 { { $as_echo "$as_me:$LINENO: error:
11890 *** Please make sure the kernel devel package for your distribution
11891 *** is installed then try again. If that fails you can specify the
11892 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11893 $as_echo "$as_me: error:
11894 *** Please make sure the kernel devel package for your distribution
11895 *** is installed then try again. If that fails you can specify the
11896 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11897 { (exit 1); exit 1; }; }
11900 if test "$kernelsrc" = "NONE"; then
11905 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11906 $as_echo "$kernelsrc" >&6; }
11907 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11908 $as_echo_n "checking kernel build directory... " >&6; }
11909 if test -z "$kernelbuild"; then
11910 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11911 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11912 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
11913 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
11914 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
11915 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
11917 kernelbuild
=${kernelsrc}
11920 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11921 $as_echo "$kernelbuild" >&6; }
11923 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11924 $as_echo_n "checking kernel source version... " >&6; }
11925 utsrelease1
=$kernelbuild/include
/linux
/version.h
11926 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
11927 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
11928 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
11929 utsrelease
=linux
/version.h
11930 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
11931 utsrelease
=linux
/utsrelease.h
11932 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
11933 utsrelease
=generated
/utsrelease.h
11936 if test "$utsrelease"; then
11937 kernsrcver
=`(echo "#include <$utsrelease>";
11938 echo "kernsrcver=UTS_RELEASE") |
11939 cpp -I $kernelbuild/include |
11940 grep "^kernsrcver=" | cut -d \" -f 2`
11942 if test -z "$kernsrcver"; then
11943 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11944 $as_echo "Not found" >&6; }
11945 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11946 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11947 { (exit 1); exit 1; }; }
11950 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11951 $as_echo "Not found" >&6; }
11952 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11953 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11954 { (exit 1); exit 1; }; }
11957 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11958 $as_echo "$kernsrcver" >&6; }
11961 LINUX_OBJ
=${kernelbuild}
11962 LINUX_VERSION
=${kernsrcver}
11969 modpost
=$LINUX/scripts
/Makefile.modpost
11970 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11971 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11972 if test -f "$modpost"; then
11973 if grep -q Modules.symvers
$modpost; then
11974 LINUX_SYMBOLS
=Modules.symvers
11976 LINUX_SYMBOLS
=Module.symvers
11981 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11982 $as_echo "$LINUX_SYMBOLS" >&6; }
11988 # Check whether --with-spl was given.
11989 if test "${with_spl+set}" = set; then
11990 withval
=$with_spl; splsrc
="$withval"
11995 # Check whether --with-spl-obj was given.
11996 if test "${with_spl_obj+set}" = set; then
11997 withval
=$with_spl_obj; splbuild
="$withval"
12002 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12003 $as_echo_n "checking spl source directory... " >&6; }
12004 if test -z "$splsrc"; then
12005 sourcelink
=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12006 2>/dev/null | tail -1`
12008 if test -z "$sourcelink" ||
test ! -e $sourcelink; then
12012 if test -e $sourcelink; then
12013 splsrc
=`readlink -f ${sourcelink}`
12015 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12016 $as_echo "Not found" >&6; }
12017 { { $as_echo "$as_me:$LINENO: error:
12018 *** Please make sure the spl devel package for your distribution
12019 *** is installed then try again. If that fails you can specify the
12020 *** location of the spl source with the '--with-spl=PATH' option." >&5
12021 $as_echo "$as_me: error:
12022 *** Please make sure the spl devel package for your distribution
12023 *** is installed then try again. If that fails you can specify the
12024 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12025 { (exit 1); exit 1; }; }
12028 if test "$splsrc" = "NONE"; then
12034 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12035 $as_echo "$splsrc" >&6; }
12036 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12037 $as_echo_n "checking spl build directory... " >&6; }
12038 if test -z "$splbuild"; then
12039 if test -d ${splsrc}/module
; then
12040 splbuild
=${splsrc}/module
12045 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12046 $as_echo "$splbuild" >&6; }
12048 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12049 $as_echo_n "checking spl source version... " >&6; }
12050 if test -r $splbuild/spl_config.h
&&
12051 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12053 splsrcver
=`(echo "#include <spl_config.h>";
12054 echo "splsrcver=SPL_META_VERSION") |
12056 grep "^splsrcver=" | cut -d \" -f 2`
12059 if test -z "$splsrcver"; then
12060 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12061 $as_echo "Not found" >&6; }
12062 { { $as_echo "$as_me:$LINENO: error:
12063 *** Cannot determine the version of the spl source.
12064 *** Please prepare the spl source before running this script" >&5
12065 $as_echo "$as_me: error:
12066 *** Cannot determine the version of the spl source.
12067 *** Please prepare the spl source before running this script" >&2;}
12068 { (exit 1); exit 1; }; }
12071 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12072 $as_echo "$splsrcver" >&6; }
12075 SPL_OBJ
=${splbuild}
12076 SPL_VERSION
=${splsrcver}
12083 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12084 $as_echo_n "checking spl file name for module symbols... " >&6; }
12085 if test -r $SPL_OBJ/Module.symvers
; then
12086 SPL_SYMBOLS
=Module.symvers
12087 elif test -r $SPL_OBJ/Modules.symvers
; then
12088 SPL_SYMBOLS
=Modules.symvers
12090 SPL_SYMBOLS
=$LINUX_SYMBOLS
12093 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12094 $as_echo "$SPL_SYMBOLS" >&6; }
12100 if test "$ZFS_META_LICENSE" = CDDL
; then
12101 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12102 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12105 cat confdefs.h
- <<_ACEOF >conftest.c
12108 cat confdefs.h
>>conftest.
$ac_ext
12109 cat >>conftest.
$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12113 #ifndef AUTOCONF_INCLUDED
12114 #include <linux/config.h>
12121 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12122 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12132 rm -Rf build
&& mkdir
-p build
12133 echo "obj-m := conftest.o" >build
/Makefile
12134 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'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12146 { $as_echo "$as_me:$LINENO: result: yes" >&5
12147 $as_echo "yes" >&6; }
12148 { { $as_echo "$as_me:$LINENO: error:
12149 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12150 *** incompatible with the CDDL license. You must rebuild
12151 *** your kernel without this option." >&5
12152 $as_echo "$as_me: error:
12153 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12154 *** incompatible with the CDDL license. You must rebuild
12155 *** your kernel without this option." >&2;}
12156 { (exit 1); exit 1; }; }
12159 $as_echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.
$ac_ext >&5
12162 { $as_echo "$as_me:$LINENO: result: no" >&5
12163 $as_echo "no" >&6; }
12176 if test "$ZFS_META_LICENSE" = GPL
; then
12178 cat >>confdefs.h
<<\_ACEOF
12179 #define HAVE_GPL_ONLY_SYMBOLS 1
12185 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12186 $as_echo_n "checking block device operation prototypes... " >&6; }
12189 cat confdefs.h
- <<_ACEOF >conftest.c
12192 cat confdefs.h
>>conftest.
$ac_ext
12193 cat >>conftest.
$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12197 #include <linux/blkdev.h>
12203 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12204 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12205 int (*blk_ioctl) (struct block_device *, fmode_t,
12206 unsigned, unsigned long) = NULL;
12207 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12208 unsigned, unsigned long) = NULL;
12209 struct block_device_operations blk_ops = {
12211 .release = blk_release,
12212 .ioctl = blk_ioctl,
12213 .compat_ioctl = blk_compat_ioctl,
12216 blk_ops.open(NULL, 0);
12217 blk_ops.release(NULL, 0);
12218 blk_ops.ioctl(NULL, 0, 0, 0);
12219 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12228 rm -Rf build
&& mkdir
-p build
12229 echo "obj-m := conftest.o" >build
/Makefile
12230 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'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12242 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12243 $as_echo "struct block_device" >&6; }
12245 cat >>confdefs.h
<<\_ACEOF
12246 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12251 $as_echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.
$ac_ext >&5
12254 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12255 $as_echo "struct inode" >&6; }
12265 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12266 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12269 cat confdefs.h
- <<_ACEOF >conftest.c
12272 cat confdefs.h
>>conftest.
$ac_ext
12273 cat >>conftest.
$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12277 #include <linux/types.h>
12292 rm -Rf build
&& mkdir
-p build
12293 echo "obj-m := conftest.o" >build
/Makefile
12294 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'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12306 { $as_echo "$as_me:$LINENO: result: yes" >&5
12307 $as_echo "yes" >&6; }
12309 cat >>confdefs.h
<<\_ACEOF
12310 #define HAVE_FMODE_T 1
12315 $as_echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.
$ac_ext >&5
12318 { $as_echo "$as_me:$LINENO: result: no" >&5
12319 $as_echo "no" >&6; }
12330 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12331 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12334 cat confdefs.h
- <<_ACEOF >conftest.c
12337 cat confdefs.h
>>conftest.
$ac_ext
12338 cat >>conftest.
$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12342 #include <linux/kobject.h>
12349 val = KOBJ_NAME_LEN;
12358 rm -Rf build
&& mkdir
-p build
12359 echo "obj-m := conftest.o" >build
/Makefile
12360 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'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12372 { $as_echo "$as_me:$LINENO: result: yes" >&5
12373 $as_echo "yes" >&6; }
12375 cat >>confdefs.h
<<\_ACEOF
12376 #define HAVE_KOBJ_NAME_LEN 1
12381 $as_echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.
$ac_ext >&5
12384 { $as_echo "$as_me:$LINENO: result: no" >&5
12385 $as_echo "no" >&6; }
12396 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12397 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12398 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12399 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12401 if test $rc -ne 0; then
12403 for file in fs
/block_dev.c
; do
12404 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev
/null
12406 if test $rc -eq 0; then
12411 if test $export -eq 0; then
12412 { $as_echo "$as_me:$LINENO: result: no" >&5
12413 $as_echo "no" >&6; }
12416 { $as_echo "$as_me:$LINENO: result: yes" >&5
12417 $as_echo "yes" >&6; }
12419 cat >>confdefs.h
<<\_ACEOF
12420 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12425 { $as_echo "$as_me:$LINENO: result: yes" >&5
12426 $as_echo "yes" >&6; }
12428 cat >>confdefs.h
<<\_ACEOF
12429 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12436 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12437 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12440 cat confdefs.h
- <<_ACEOF >conftest.c
12443 cat confdefs.h
>>conftest.
$ac_ext
12444 cat >>conftest.
$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12448 #include <linux/buffer_head.h>
12454 struct block_device *bdev;
12455 invalidate_bdev(bdev);
12464 rm -Rf build
&& mkdir
-p build
12465 echo "obj-m := conftest.o" >build
/Makefile
12466 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'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12478 { $as_echo "$as_me:$LINENO: result: yes" >&5
12479 $as_echo "yes" >&6; }
12481 cat >>confdefs.h
<<\_ACEOF
12482 #define HAVE_1ARG_INVALIDATE_BDEV 1
12487 $as_echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.
$ac_ext >&5
12490 { $as_echo "$as_me:$LINENO: result: no" >&5
12491 $as_echo "no" >&6; }
12502 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12503 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12506 cat confdefs.h
- <<_ACEOF >conftest.c
12509 cat confdefs.h
>>conftest.
$ac_ext
12510 cat >>conftest.
$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12514 #include <linux/blkdev.h>
12520 struct block_device *bdev = NULL;
12521 bdev_logical_block_size(bdev);
12530 rm -Rf build
&& mkdir
-p build
12531 echo "obj-m := conftest.o" >build
/Makefile
12532 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'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12544 { $as_echo "$as_me:$LINENO: result: yes" >&5
12545 $as_echo "yes" >&6; }
12547 cat >>confdefs.h
<<\_ACEOF
12548 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12553 $as_echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.
$ac_ext >&5
12556 { $as_echo "$as_me:$LINENO: result: no" >&5
12557 $as_echo "no" >&6; }
12568 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12569 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12570 EXTRA_KCFLAGS
="-Werror"
12573 cat confdefs.h
- <<_ACEOF >conftest.c
12576 cat confdefs.h
>>conftest.
$ac_ext
12577 cat >>conftest.
$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12581 #include <linux/bio.h>
12588 (void)bio_empty_barrier(&bio);
12597 rm -Rf build
&& mkdir
-p build
12598 echo "obj-m := conftest.o" >build
/Makefile
12599 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'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12611 { $as_echo "$as_me:$LINENO: result: yes" >&5
12612 $as_echo "yes" >&6; }
12614 cat >>confdefs.h
<<\_ACEOF
12615 #define HAVE_BIO_EMPTY_BARRIER 1
12620 $as_echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.
$ac_ext >&5
12623 { $as_echo "$as_me:$LINENO: result: no" >&5
12624 $as_echo "no" >&6; }
12635 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12636 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12637 tmp_flags
="$EXTRA_KCFLAGS"
12638 EXTRA_KCFLAGS
="-Werror"
12641 cat confdefs.h
- <<_ACEOF >conftest.c
12644 cat confdefs.h
>>conftest.
$ac_ext
12645 cat >>conftest.
$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12649 #include <linux/bio.h>
12655 void (*wanted_end_io)(struct bio *, int) = NULL;
12656 bio_end_io_t *local_end_io;
12658 local_end_io = wanted_end_io;
12667 rm -Rf build
&& mkdir
-p build
12668 echo "obj-m := conftest.o" >build
/Makefile
12669 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'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12681 { $as_echo "$as_me:$LINENO: result: yes" >&5
12682 $as_echo "yes" >&6; }
12684 cat >>confdefs.h
<<\_ACEOF
12685 #define HAVE_2ARGS_BIO_END_IO_T 1
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.
$ac_ext >&5
12693 { $as_echo "$as_me:$LINENO: result: no" >&5
12694 $as_echo "no" >&6; }
12703 EXTRA_KCFLAGS
="$tmp_flags"
12706 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
12707 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
12710 cat confdefs.h
- <<_ACEOF >conftest.c
12713 cat confdefs.h
>>conftest.
$ac_ext
12714 cat >>conftest.
$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12718 #include <linux/bio.h>
12725 flags = BIO_RW_SYNCIO;
12734 rm -Rf build
&& mkdir
-p build
12735 echo "obj-m := conftest.o" >build
/Makefile
12736 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'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; }; then
12748 { $as_echo "$as_me:$LINENO: result: yes" >&5
12749 $as_echo "yes" >&6; }
12751 cat >>confdefs.h
<<\_ACEOF
12752 #define HAVE_BIO_RW_SYNCIO 1
12757 $as_echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.
$ac_ext >&5
12760 { $as_echo "$as_me:$LINENO: result: no" >&5
12761 $as_echo "no" >&6; }
12772 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
12773 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
12776 cat confdefs.h
- <<_ACEOF >conftest.c
12779 cat confdefs.h
>>conftest.
$ac_ext
12780 cat >>conftest.
$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12784 #include <linux/blkdev.h>
12790 struct request *req = NULL;
12791 (void) blk_end_request(req, 0, 0);
12800 rm -Rf build
&& mkdir
-p build
12801 echo "obj-m := conftest.o" >build
/Makefile
12802 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'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12814 { $as_echo "$as_me:$LINENO: result: yes" >&5
12815 $as_echo "yes" >&6; }
12817 cat >>confdefs.h
<<\_ACEOF
12818 #define HAVE_BLK_END_REQUEST 1
12823 $as_echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.
$ac_ext >&5
12826 { $as_echo "$as_me:$LINENO: result: no" >&5
12827 $as_echo "no" >&6; }
12837 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
12838 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
12841 cat confdefs.h
- <<_ACEOF >conftest.c
12844 cat confdefs.h
>>conftest.
$ac_ext
12845 cat >>conftest.
$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12849 #include <linux/module.h>
12850 #include <linux/blkdev.h>
12852 MODULE_LICENSE("CDDL");
12858 struct request *req = NULL;
12859 (void) blk_end_request(req, 0, 0);
12868 rm -Rf build
&& mkdir
-p build
12869 echo "obj-m := conftest.o" >build
/Makefile
12870 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'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12882 { $as_echo "$as_me:$LINENO: result: no" >&5
12883 $as_echo "no" >&6; }
12886 $as_echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.
$ac_ext >&5
12889 { $as_echo "$as_me:$LINENO: result: yes" >&5
12890 $as_echo "yes" >&6; }
12892 cat >>confdefs.h
<<\_ACEOF
12893 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
12906 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
12907 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
12910 cat confdefs.h
- <<_ACEOF >conftest.c
12913 cat confdefs.h
>>conftest.
$ac_ext
12914 cat >>conftest.
$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12918 #include <linux/blkdev.h>
12924 struct request_queue *q = NULL;
12925 (void) blk_fetch_request(q);
12934 rm -Rf build
&& mkdir
-p build
12935 echo "obj-m := conftest.o" >build
/Makefile
12936 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'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12948 { $as_echo "$as_me:$LINENO: result: yes" >&5
12949 $as_echo "yes" >&6; }
12951 cat >>confdefs.h
<<\_ACEOF
12952 #define HAVE_BLK_FETCH_REQUEST 1
12957 $as_echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.
$ac_ext >&5
12960 { $as_echo "$as_me:$LINENO: result: no" >&5
12961 $as_echo "no" >&6; }
12972 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
12973 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
12976 cat confdefs.h
- <<_ACEOF >conftest.c
12979 cat confdefs.h
>>conftest.
$ac_ext
12980 cat >>conftest.
$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12984 #include <linux/blkdev.h>
12990 struct request_queue *q = NULL;
12991 struct request *req = NULL;
12992 blk_requeue_request(q, req);
13001 rm -Rf build
&& mkdir
-p build
13002 echo "obj-m := conftest.o" >build
/Makefile
13003 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'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13015 { $as_echo "$as_me:$LINENO: result: yes" >&5
13016 $as_echo "yes" >&6; }
13018 cat >>confdefs.h
<<\_ACEOF
13019 #define HAVE_BLK_REQUEUE_REQUEST 1
13024 $as_echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.
$ac_ext >&5
13027 { $as_echo "$as_me:$LINENO: result: no" >&5
13028 $as_echo "no" >&6; }
13039 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13040 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13043 cat confdefs.h
- <<_ACEOF >conftest.c
13046 cat confdefs.h
>>conftest.
$ac_ext
13047 cat >>conftest.
$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13051 #include <linux/blkdev.h>
13057 struct request *req = NULL;
13058 (void) blk_rq_bytes(req);
13067 rm -Rf build
&& mkdir
-p build
13068 echo "obj-m := conftest.o" >build
/Makefile
13069 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'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082 $as_echo "yes" >&6; }
13084 cat >>confdefs.h
<<\_ACEOF
13085 #define HAVE_BLK_RQ_BYTES 1
13090 $as_echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.
$ac_ext >&5
13093 { $as_echo "$as_me:$LINENO: result: no" >&5
13094 $as_echo "no" >&6; }
13104 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13105 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13108 cat confdefs.h
- <<_ACEOF >conftest.c
13111 cat confdefs.h
>>conftest.
$ac_ext
13112 cat >>conftest.
$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13116 #include <linux/module.h>
13117 #include <linux/blkdev.h>
13119 MODULE_LICENSE("CDDL");
13125 struct request *req = NULL;
13126 (void) blk_rq_bytes(req);
13135 rm -Rf build
&& mkdir
-p build
13136 echo "obj-m := conftest.o" >build
/Makefile
13137 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'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13149 { $as_echo "$as_me:$LINENO: result: no" >&5
13150 $as_echo "no" >&6; }
13153 $as_echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.
$ac_ext >&5
13156 { $as_echo "$as_me:$LINENO: result: yes" >&5
13157 $as_echo "yes" >&6; }
13159 cat >>confdefs.h
<<\_ACEOF
13160 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13173 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13174 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13177 cat confdefs.h
- <<_ACEOF >conftest.c
13180 cat confdefs.h
>>conftest.
$ac_ext
13181 cat >>conftest.
$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13185 #include <linux/blkdev.h>
13191 struct request *req = NULL;
13192 (void) blk_rq_pos(req);
13201 rm -Rf build
&& mkdir
-p build
13202 echo "obj-m := conftest.o" >build
/Makefile
13203 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'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13215 { $as_echo "$as_me:$LINENO: result: yes" >&5
13216 $as_echo "yes" >&6; }
13218 cat >>confdefs.h
<<\_ACEOF
13219 #define HAVE_BLK_RQ_POS 1
13224 $as_echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.
$ac_ext >&5
13227 { $as_echo "$as_me:$LINENO: result: no" >&5
13228 $as_echo "no" >&6; }
13239 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13240 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13243 cat confdefs.h
- <<_ACEOF >conftest.c
13246 cat confdefs.h
>>conftest.
$ac_ext
13247 cat >>conftest.
$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13251 #include <linux/blkdev.h>
13257 struct request *req = NULL;
13258 (void) blk_rq_sectors(req);
13267 rm -Rf build
&& mkdir
-p build
13268 echo "obj-m := conftest.o" >build
/Makefile
13269 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'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13281 { $as_echo "$as_me:$LINENO: result: yes" >&5
13282 $as_echo "yes" >&6; }
13284 cat >>confdefs.h
<<\_ACEOF
13285 #define HAVE_BLK_RQ_SECTORS 1
13290 $as_echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.
$ac_ext >&5
13293 { $as_echo "$as_me:$LINENO: result: no" >&5
13294 $as_echo "no" >&6; }
13305 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13306 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13309 cat confdefs.h
- <<_ACEOF >conftest.c
13312 cat confdefs.h
>>conftest.
$ac_ext
13313 cat >>conftest.
$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13317 #include <linux/blkdev.h>
13323 struct gendisk *disk = NULL;
13324 (void) get_disk_ro(disk);
13333 rm -Rf build
&& mkdir
-p build
13334 echo "obj-m := conftest.o" >build
/Makefile
13335 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'
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13347 { $as_echo "$as_me:$LINENO: result: yes" >&5
13348 $as_echo "yes" >&6; }
13350 cat >>confdefs.h
<<\_ACEOF
13351 #define HAVE_GET_DISK_RO 1
13356 $as_echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.
$ac_ext >&5
13359 { $as_echo "$as_me:$LINENO: result: no" >&5
13360 $as_echo "no" >&6; }
13371 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13372 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13375 cat confdefs.h
- <<_ACEOF >conftest.c
13378 cat confdefs.h
>>conftest.
$ac_ext
13379 cat >>conftest.
$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13383 #include <linux/blkdev.h>
13389 struct request *req = NULL;
13390 (void) rq_is_sync(req);
13399 rm -Rf build
&& mkdir
-p build
13400 echo "obj-m := conftest.o" >build
/Makefile
13401 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'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13413 { $as_echo "$as_me:$LINENO: result: yes" >&5
13414 $as_echo "yes" >&6; }
13416 cat >>confdefs.h
<<\_ACEOF
13417 #define HAVE_RQ_IS_SYNC 1
13422 $as_echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.
$ac_ext >&5
13425 { $as_echo "$as_me:$LINENO: result: no" >&5
13426 $as_echo "no" >&6; }
13437 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13438 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13441 cat confdefs.h
- <<_ACEOF >conftest.c
13444 cat confdefs.h
>>conftest.
$ac_ext
13445 cat >>conftest.
$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13449 #include <linux/blkdev.h>
13455 struct bio_vec *bv;
13456 struct req_iterator iter;
13457 struct request *req = NULL;
13458 rq_for_each_segment(bv, req, iter) { }
13467 rm -Rf build
&& mkdir
-p build
13468 echo "obj-m := conftest.o" >build
/Makefile
13469 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'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13481 { $as_echo "$as_me:$LINENO: result: yes" >&5
13482 $as_echo "yes" >&6; }
13484 cat >>confdefs.h
<<\_ACEOF
13485 #define HAVE_RQ_FOR_EACH_SEGMENT 1
13490 $as_echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.
$ac_ext >&5
13493 { $as_echo "$as_me:$LINENO: result: no" >&5
13494 $as_echo "no" >&6; }
13505 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
13506 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
13507 KERNELCPPFLAGS
="$KERNELCPPFLAGS -I$SPL"
13508 KERNELCPPFLAGS
="$KERNELCPPFLAGS -I$SPL/include"
13509 KERNELCPPFLAGS
="$KERNELCPPFLAGS -include $SPL/spl_config.h"
13510 KERNELCPPFLAGS
="$KERNELCPPFLAGS -include $TOPDIR/zfs_config.h"
13512 if test "$LINUX_OBJ" != "$LINUX"; then
13513 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
13521 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
13522 $as_echo_n "checking for target asm dir... " >&6; }
13523 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13525 case $TARGET_ARCH in
13527 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13530 TARGET_ASM_DIR
=asm-generic
13535 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13536 $as_echo "$TARGET_ASM_DIR" >&6; }
13539 { $as_echo "$as_me:$LINENO: checking for sa_init in -lshare" >&5
13540 $as_echo_n "checking for sa_init in -lshare... " >&6; }
13541 if test "${ac_cv_lib_share_sa_init+set}" = set; then
13542 $as_echo_n "(cached) " >&6
13544 ac_check_lib_save_LIBS
=$LIBS
13545 LIBS
="-lshare $LIBS"
13546 cat >conftest.
$ac_ext <<_ACEOF
13549 cat confdefs.h
>>conftest.
$ac_ext
13550 cat >>conftest.
$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13568 rm -f conftest.
$ac_objext conftest
$ac_exeext
13569 if { (ac_try
="$ac_link"
13570 case "(($ac_try" in
13571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13575 $as_echo "$ac_try_echo") >&5
13576 (eval "$ac_link") 2>conftest.er1
13578 grep -v '^ *+' conftest.er1 >conftest.err
13580 cat conftest.err >&5
13581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest$ac_exeext && {
13586 test "$cross_compiling" = yes ||
13587 $as_test_x conftest$ac_exeext
13589 ac_cv_lib_share_sa_init=yes
13591 $as_echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_cv_lib_share_sa_init=no
13597 rm -rf conftest.dSYM
13598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13599 conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_share_sa_init" >&5
13603 $as_echo "$ac_cv_lib_share_sa_init" >&6; }
13604 if test "x$ac_cv_lib_share_sa_init" = x""yes; then
13606 cat >>confdefs.h <<\_ACEOF
13607 #define HAVE_LIBSHARE 1
13614 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
13615 $as_echo_n "checking for ioctl()... " >&6; }
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 #include <unistd.h>
13625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 $EGREP "ioctl" >/dev/null 2>&1; then
13633 cat >conftest.$ac_ext <<_ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13639 #include <sys/ioctl.h>
13642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13643 $EGREP "ioctl" >/dev/null 2>&1; then
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656 #include <stropts.h>
13659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13660 $EGREP "ioctl" >/dev/null 2>&1; then
13668 if test $is_unistd = yes; then
13671 cat >>confdefs.h <<\_ACEOF
13672 #define HAVE_IOCTL_IN_UNISTD_H 1
13677 if test $is_sys_ioctl = yes; then
13680 cat >>confdefs.h <<\_ACEOF
13681 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
13684 elif test $is_stropts = yes; then
13686 cat >>confdefs.h <<\_ACEOF
13687 #define HAVE_IOCTL_IN_STROPTS_H 1
13695 if test $result = no; then
13696 { $as_echo "$as_me:$LINENO: result: no" >&5
13697 $as_echo "no" >&6; }
13698 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
13699 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
13700 { (exit 1); exit 1; }; }
13702 { $as_echo "$as_me:$LINENO: result: yes" >&5
13703 $as_echo "yes" >&6; }
13709 if test "${ac_cv_header_zlib_h+set}" = set; then
13710 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
13711 $as_echo_n "checking for zlib.h... " >&6; }
13712 if test "${ac_cv_header_zlib_h+set}" = set; then
13713 $as_echo_n "(cached) " >&6
13715 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13716 $as_echo "$ac_cv_header_zlib_h" >&6; }
13718 # Is the header compilable?
13719 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
13720 $as_echo_n "checking zlib.h usability... " >&6; }
13721 cat >conftest.$ac_ext <<_ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13730 rm -f conftest.$ac_objext
13731 if { (ac_try="$ac_compile"
13732 case "(($ac_try" in
13733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13734 *) ac_try_echo
=$ac_try;;
13736 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13737 $as_echo "$ac_try_echo") >&5
13738 (eval "$ac_compile") 2>conftest.er1
13740 grep -v '^ *+' conftest.er1
>conftest.err
13742 cat conftest.err
>&5
13743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && {
13745 test -z "$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 } && test -s conftest.
$ac_objext; then
13748 ac_header_compiler
=yes
13750 $as_echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.
$ac_ext >&5
13753 ac_header_compiler
=no
13756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13757 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13758 $as_echo "$ac_header_compiler" >&6; }
13760 # Is the header present?
13761 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
13762 $as_echo_n "checking zlib.h presence... " >&6; }
13763 cat >conftest.
$ac_ext <<_ACEOF
13766 cat confdefs.h
>>conftest.
$ac_ext
13767 cat >>conftest.
$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13771 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13772 case "(($ac_try" in
13773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13777 $as_echo "$ac_try_echo") >&5
13778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13780 grep -v '^ *+' conftest.er1 >conftest.err
13782 cat conftest.err >&5
13783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } >/dev/null && {
13785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13786 test ! -s conftest.err
13788 ac_header_preproc=yes
13790 $as_echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13793 ac_header_preproc=no
13796 rm -f conftest.err conftest.$ac_ext
13797 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13798 $as_echo "$ac_header_preproc" >&6; }
13800 # So? What about this header?
13801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13803 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13804 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13805 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13806 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13807 ac_header_preproc=yes
13810 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13811 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13812 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13813 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13814 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13815 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13816 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13817 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13818 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13819 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13820 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13821 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13825 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
13826 $as_echo_n "checking for zlib.h... " >&6; }
13827 if test "${ac_cv_header_zlib_h+set}" = set; then
13828 $as_echo_n "(cached) " >&6
13830 ac_cv_header_zlib_h=$ac_header_preproc
13832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13833 $as_echo "$ac_cv_header_zlib_h" >&6; }
13836 if test "x$ac_cv_header_zlib_h" = x""yes; then
13839 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13841 { { $as_echo "$as_me:$LINENO: error
:
13842 *** zlib.h missing
, zlib-devel package required
13843 See \
`config.log' for more details." >&5
13844 $as_echo "$as_me: error:
13845 *** zlib.h missing, zlib-devel package required
13846 See \`config.log
' for more details." >&2;}
13847 { (exit 1); exit 1; }; }; }
13853 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13854 $as_echo_n "checking for compress2 in -lz... " >&6; }
13855 if test "${ac_cv_lib_z_compress2+set}" = set; then
13856 $as_echo_n "(cached) " >&6
13858 ac_check_lib_save_LIBS=$LIBS
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13877 return compress2 ();
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (ac_try="$ac_link"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13889 $as_echo "$ac_try_echo") >&5
13890 (eval "$ac_link") 2>conftest.er1
13892 grep -v '^
*+' conftest.er1 >conftest.err
13894 cat conftest.err >&5
13895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } && {
13897 test -z "$ac_c_werror_flag" ||
13898 test ! -s conftest.err
13899 } && test -s conftest$ac_exeext && {
13900 test "$cross_compiling" = yes ||
13901 $as_test_x conftest$ac_exeext
13903 ac_cv_lib_z_compress2=yes
13905 $as_echo "$as_me: failed program was:" >&5
13906 sed 's
/^
/|
/' conftest.$ac_ext >&5
13908 ac_cv_lib_z_compress2=no
13911 rm -rf conftest.dSYM
13912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13913 conftest$ac_exeext conftest.$ac_ext
13914 LIBS=$ac_check_lib_save_LIBS
13916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13917 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13918 if test "x$ac_cv_lib_z_compress2" = x""yes; then
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_LIBZ 1
13926 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13927 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
13928 { { $as_echo "$as_me:$LINENO: error:
13929 *** compress2() missing, zlib-devel package required
13930 See \`config.log
' for more details." >&5
13931 $as_echo "$as_me: error:
13932 *** compress2() missing, zlib-devel package required
13933 See \`config.log' for more details.
" >&2;}
13934 { (exit 1); exit 1; }; }; }
13939 { $as_echo "$as_me:$LINENO: checking
for uncompress in -lz" >&5
13940 $as_echo_n "checking
for uncompress in -lz...
" >&6; }
13941 if test "${ac_cv_lib_z_uncompress+set}" = set; then
13942 $as_echo_n "(cached
) " >&6
13944 ac_check_lib_save_LIBS=$LIBS
13946 cat >conftest.$ac_ext <<_ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13953 /* Override any GCC internal prototype to avoid an error.
13954 Use char because int might match the return type of a GCC
13955 builtin and then its argument prototype would still apply. */
13959 char uncompress ();
13963 return uncompress ();
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (ac_try="$ac_link"
13970 case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13974 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13975 $as_echo "$ac_try_echo") >&5
13976 (eval "$ac_link") 2>conftest.er1
13978 grep -v '^ *+' conftest.er1 >conftest.err
13980 cat conftest.err >&5
13981 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13982 (exit $ac_status); } && {
13983 test -z "$ac_c_werror_flag" ||
13984 test ! -s conftest.err
13985 } && test -s conftest$ac_exeext && {
13986 test "$cross_compiling" = yes ||
13987 $as_test_x conftest$ac_exeext
13989 ac_cv_lib_z_uncompress=yes
13991 $as_echo "$as_me: failed program was
:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13994 ac_cv_lib_z_uncompress=no
13997 rm -rf conftest.dSYM
13998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13999 conftest$ac_exeext conftest.$ac_ext
14000 LIBS=$ac_check_lib_save_LIBS
14002 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_uncompress" >&5
14003 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
14004 if test "x
$ac_cv_lib_z_uncompress" = x""yes; then
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_LIBZ 1
14012 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
14013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14014 { { $as_echo "$as_me:$LINENO: error:
14015 *** uncompress() missing, zlib-devel package required
14016 See \`config.log' for more details.
" >&5
14017 $as_echo "$as_me: error
:
14018 *** uncompress() missing
, zlib-devel package required
14019 See \
`config.log' for more details." >&2;}
14020 { (exit 1); exit 1; }; }; }
14025 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
14026 $as_echo_n "checking for crc32 in -lz... " >&6; }
14027 if test "${ac_cv_lib_z_crc32+set}" = set; then
14028 $as_echo_n "(cached) " >&6
14030 ac_check_lib_save_LIBS=$LIBS
14032 cat >conftest.$ac_ext <<_ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14039 /* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14054 rm -f conftest.$ac_objext conftest$ac_exeext
14055 if { (ac_try="$ac_link"
14056 case "(($ac_try" in
14057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14058 *) ac_try_echo
=$ac_try;;
14060 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14061 $as_echo "$ac_try_echo") >&5
14062 (eval "$ac_link") 2>conftest.er1
14064 grep -v '^ *+' conftest.er1
>conftest.err
14066 cat conftest.err
>&5
14067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && {
14069 test -z "$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 } && test -s conftest
$ac_exeext && {
14072 test "$cross_compiling" = yes ||
14073 $as_test_x conftest
$ac_exeext
14075 ac_cv_lib_z_crc32
=yes
14077 $as_echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.
$ac_ext >&5
14080 ac_cv_lib_z_crc32
=no
14083 rm -rf conftest.dSYM
14084 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14085 conftest
$ac_exeext conftest.
$ac_ext
14086 LIBS
=$ac_check_lib_save_LIBS
14088 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
14089 $as_echo "$ac_cv_lib_z_crc32" >&6; }
14090 if test "x$ac_cv_lib_z_crc32" = x
""yes; then
14091 cat >>confdefs.h
<<_ACEOF
14092 #define HAVE_LIBZ 1
14098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14100 { { $as_echo "$as_me:$LINENO: error:
14101 *** crc32() missing, zlib-devel package required
14102 See \`config.log' for more details." >&5
14103 $as_echo "$as_me: error:
14104 *** crc32() missing, zlib-devel package required
14105 See \`config.log' for more details." >&2;}
14106 { (exit 1); exit 1; }; }; }
14113 cat >>confdefs.h
<<\_ACEOF
14114 #define HAVE_ZLIB 1
14121 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14122 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14123 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14124 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14125 $as_echo_n "(cached) " >&6
14127 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14128 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14130 # Is the header compilable?
14131 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14132 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
14133 cat >conftest.
$ac_ext <<_ACEOF
14136 cat confdefs.h
>>conftest.
$ac_ext
14137 cat >>conftest.
$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 $ac_includes_default
14140 #include <uuid/uuid.h>
14142 rm -f conftest.
$ac_objext
14143 if { (ac_try
="$ac_compile"
14144 case "(($ac_try" in
14145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14149 $as_echo "$ac_try_echo") >&5
14150 (eval "$ac_compile") 2>conftest.er1
14152 grep -v '^ *+' conftest.er1 >conftest.err
14154 cat conftest.err >&5
14155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } && {
14157 test -z "$ac_c_werror_flag" ||
14158 test ! -s conftest.err
14159 } && test -s conftest.$ac_objext; then
14160 ac_header_compiler=yes
14162 $as_echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_header_compiler=no
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14170 $as_echo "$ac_header_compiler" >&6; }
14172 # Is the header present?
14173 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
14174 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
14175 cat >conftest.$ac_ext <<_ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 #include <uuid/uuid.h>
14183 if { (ac_try="$ac_cpp conftest.$ac_ext"
14184 case "(($ac_try" in
14185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14186 *) ac_try_echo
=$ac_try;;
14188 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14189 $as_echo "$ac_try_echo") >&5
14190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14192 grep -v '^ *+' conftest.er1
>conftest.err
14194 cat conftest.err
>&5
14195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } >/dev
/null
&& {
14197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14200 ac_header_preproc
=yes
14202 $as_echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.
$ac_ext >&5
14205 ac_header_preproc
=no
14208 rm -f conftest.err conftest.
$ac_ext
14209 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14210 $as_echo "$ac_header_preproc" >&6; }
14212 # So? What about this header?
14213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14215 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
14216 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14217 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
14218 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
14219 ac_header_preproc
=yes
14222 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
14223 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
14224 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
14225 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
14226 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
14227 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
14228 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
14229 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
14230 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
14231 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
14232 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
14233 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
14237 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14238 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14239 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14240 $as_echo_n "(cached) " >&6
14242 ac_cv_header_uuid_uuid_h
=$ac_header_preproc
14244 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14245 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14248 if test "x$ac_cv_header_uuid_uuid_h" = x
""yes; then
14251 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14253 { { $as_echo "$as_me:$LINENO: error:
14254 *** uuid/uuid.h missing, libuuid-devel package required
14255 See \`config.log' for more details." >&5
14256 $as_echo "$as_me: error:
14257 *** uuid/uuid.h missing, libuuid-devel package required
14258 See \`config.log' for more details." >&2;}
14259 { (exit 1); exit 1; }; }; }
14265 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
14266 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
14267 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
14268 $as_echo_n "(cached) " >&6
14270 ac_check_lib_save_LIBS
=$LIBS
14271 LIBS
="-luuid $LIBS"
14272 cat >conftest.
$ac_ext <<_ACEOF
14275 cat confdefs.h
>>conftest.
$ac_ext
14276 cat >>conftest.
$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14279 /* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14285 char uuid_generate ();
14289 return uuid_generate ();
14294 rm -f conftest.
$ac_objext conftest
$ac_exeext
14295 if { (ac_try
="$ac_link"
14296 case "(($ac_try" in
14297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14301 $as_echo "$ac_try_echo") >&5
14302 (eval "$ac_link") 2>conftest.er1
14304 grep -v '^ *+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && {
14309 test -z "$ac_c_werror_flag" ||
14310 test ! -s conftest.err
14311 } && test -s conftest$ac_exeext && {
14312 test "$cross_compiling" = yes ||
14313 $as_test_x conftest$ac_exeext
14315 ac_cv_lib_uuid_uuid_generate=yes
14317 $as_echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 ac_cv_lib_uuid_uuid_generate=no
14323 rm -rf conftest.dSYM
14324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14325 conftest$ac_exeext conftest.$ac_ext
14326 LIBS=$ac_check_lib_save_LIBS
14328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
14329 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
14330 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
14331 cat >>confdefs.h <<_ACEOF
14332 #define HAVE_LIBUUID 1
14335 LIBS="-luuid $LIBS"
14338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14340 { { $as_echo "$as_me:$LINENO: error
:
14341 *** uuid_generate
() missing
, libuuid-devel package required
14342 See \
`config.log' for more details." >&5
14343 $as_echo "$as_me: error:
14344 *** uuid_generate() missing, libuuid-devel package required
14345 See \`config.log
' for more details." >&2;}
14346 { (exit 1); exit 1; }; }; }
14351 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
14352 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
14353 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
14354 $as_echo_n "(cached) " >&6
14356 ac_check_lib_save_LIBS=$LIBS
14357 LIBS="-luuid $LIBS"
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14365 /* Override any GCC internal prototype to avoid an error.
14366 Use char because int might match the return type of a GCC
14367 builtin and then its argument prototype would still apply. */
14371 char uuid_is_null ();
14375 return uuid_is_null ();
14380 rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14387 $as_echo "$ac_try_echo") >&5
14388 (eval "$ac_link") 2>conftest.er1
14390 grep -v '^
*+' conftest.er1 >conftest.err
14392 cat conftest.err >&5
14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest$ac_exeext && {
14398 test "$cross_compiling" = yes ||
14399 $as_test_x conftest$ac_exeext
14401 ac_cv_lib_uuid_uuid_is_null=yes
14403 $as_echo "$as_me: failed program was:" >&5
14404 sed 's
/^
/|
/' conftest.$ac_ext >&5
14406 ac_cv_lib_uuid_uuid_is_null=no
14409 rm -rf conftest.dSYM
14410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14411 conftest$ac_exeext conftest.$ac_ext
14412 LIBS=$ac_check_lib_save_LIBS
14414 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
14415 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
14416 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
14417 cat >>confdefs.h <<_ACEOF
14418 #define HAVE_LIBUUID 1
14421 LIBS="-luuid $LIBS"
14424 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14425 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
14426 { { $as_echo "$as_me:$LINENO: error:
14427 *** uuid_is_null() missing, libuuid-devel package required
14428 See \`config.log
' for more details." >&5
14429 $as_echo "$as_me: error:
14430 *** uuid_is_null() missing, libuuid-devel package required
14431 See \`config.log' for more details.
" >&2;}
14432 { (exit 1); exit 1; }; }; }
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_LIBUUID 1
14446 # Check whether --with-blkid was given.
14447 if test "${with_blkid+set}" = set; then
14448 withval=$with_blkid;
14455 if test "x
$with_blkid" != xno; then
14457 { $as_echo "$as_me:$LINENO: checking
for blkid_get_cache
in -lblkid" >&5
14458 $as_echo_n "checking
for blkid_get_cache
in -lblkid...
" >&6; }
14459 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
14460 $as_echo_n "(cached
) " >&6
14462 ac_check_lib_save_LIBS=$LIBS
14463 LIBS="-lblkid $LIBS"
14464 cat >conftest.$ac_ext <<_ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14471 /* Override any GCC internal prototype to avoid an error.
14472 Use char because int might match the return type of a GCC
14473 builtin and then its argument prototype would still apply. */
14477 char blkid_get_cache ();
14481 return blkid_get_cache ();
14486 rm -f conftest.$ac_objext conftest$ac_exeext
14487 if { (ac_try="$ac_link"
14488 case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14492 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14493 $as_echo "$ac_try_echo") >&5
14494 (eval "$ac_link") 2>conftest.er1
14496 grep -v '^ *+' conftest.er1 >conftest.err
14498 cat conftest.err >&5
14499 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14500 (exit $ac_status); } && {
14501 test -z "$ac_c_werror_flag" ||
14502 test ! -s conftest.err
14503 } && test -s conftest$ac_exeext && {
14504 test "$cross_compiling" = yes ||
14505 $as_test_x conftest$ac_exeext
14507 ac_cv_lib_blkid_blkid_get_cache=yes
14509 $as_echo "$as_me: failed program was
:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14512 ac_cv_lib_blkid_blkid_get_cache=no
14515 rm -rf conftest.dSYM
14516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14517 conftest$ac_exeext conftest.$ac_ext
14518 LIBS=$ac_check_lib_save_LIBS
14520 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_blkid_blkid_get_cache" >&5
14521 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
14522 if test "x
$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
14524 { $as_echo "$as_me:$LINENO: checking
for blkid zfs support
" >&5
14525 $as_echo_n "checking
for blkid zfs support...
" >&6; }
14528 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
14529 >/dev/null 2>/dev/null
14530 echo -en "\x0c\xb1\xba\
0\
0\
0\
0\
0" | \
14531 dd of=$ZFS_DEV bs=1k count=8 \
14532 seek=132 conv=notrunc &>/dev/null \
14533 >/dev/null 2>/dev/null
14535 saved_LDFLAGS="$LDFLAGS"
14538 if test "$cross_compiling" = yes; then
14539 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
14540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14541 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14542 See \`config.log' for more details.
" >&5
14543 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
14544 See \
`config.log' for more details." >&2;}
14545 { (exit 1); exit 1; }; }; }
14547 cat >conftest.$ac_ext <<_ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14555 #include <blkid/blkid.h>
14564 if (blkid_get_cache(&cache, NULL) < 0)
14567 value = blkid_get_tag_value(cache, "TYPE",
14570 blkid_put_cache(cache);
14574 if (strcmp(value, "zfs")) {
14576 blkid_put_cache(cache);
14581 blkid_put_cache(cache);
14587 rm -f conftest$ac_exeext
14588 if { (ac_try="$ac_link"
14589 case "(($ac_try" in
14590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14591 *) ac_try_echo
=$ac_try;;
14593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14594 $as_echo "$ac_try_echo") >&5
14595 (eval "$ac_link") 2>&5
14597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14599 { (case "(($ac_try" in
14600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14604 $as_echo "$ac_try_echo") >&5
14605 (eval "$ac_try") 2>&5
14607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
14611 { $as_echo "$as_me:$LINENO: result: yes" >&5
14612 $as_echo "yes" >&6; }
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_LIBBLKID 1
14622 $as_echo "$as_me: program exited with status $ac_status" >&5
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 ( exit $ac_status )
14629 { $as_echo "$as_me:$LINENO: result: no" >&5
14630 $as_echo "no" >&6; }
14631 if test "x$with_blkid" != xcheck; then
14632 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14634 { { $as_echo "$as_me:$LINENO: error
: --with-blkid given but unavailable
14635 See \
`config.log' for more details." >&5
14636 $as_echo "$as_me: error: --with-blkid given but unavailable
14637 See \`config.log
' for more details." >&2;}
14638 { (exit 1); exit 1; }; }; }
14643 rm -rf conftest.dSYM
14644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14649 LDFLAGS="$saved_LDFLAGS"
14653 if test "x$with_blkid" != xcheck; then
14654 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14655 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
14656 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
14657 See \`config.log
' for more details." >&5
14658 $as_echo "$as_me: error: --with-blkid given but unavailable
14659 See \`config.log' for more details.
" >&2;}
14660 { (exit 1); exit 1; }; }; }
14672 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
14673 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
14675 saved_flags="$CFLAGS"
14676 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
14678 if test "$cross_compiling" = yes; then
14679 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
14680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14681 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14682 See \`config.log' for more details.
" >&5
14683 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
14684 See \
`config.log' for more details." >&2;}
14685 { (exit 1); exit 1; }; }; }
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14702 rm -f conftest$ac_exeext
14703 if { (ac_try="$ac_link"
14704 case "(($ac_try" in
14705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14706 *) ac_try_echo
=$ac_try;;
14708 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14709 $as_echo "$ac_try_echo") >&5
14710 (eval "$ac_link") 2>&5
14712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14714 { (case "(($ac_try" in
14715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14719 $as_echo "$ac_try_echo") >&5
14720 (eval "$ac_try") 2>&5
14722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14725 FRAME_LARGER_THAN=-Wframe-larger-than=1024
14726 { $as_echo "$as_me:$LINENO: result: yes" >&5
14727 $as_echo "yes" >&6; }
14730 $as_echo "$as_me: program exited with status $ac_status" >&5
14731 $as_echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 ( exit $ac_status )
14737 { $as_echo "$as_me:$LINENO: result: no" >&5
14738 $as_echo "no" >&6; }
14741 rm -rf conftest.dSYM
14742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14747 CFLAGS="$saved_flags"
14752 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
14753 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
14755 saved_CFLAGS="$CFLAGS"
14756 CFLAGS="-fstack-check"
14757 saved_LDFLAGS="$LDFLAGS"
14758 LDFLAGS="-lpthread"
14760 if test "$cross_compiling" = yes; then
14761 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14763 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
14764 See \
`config.log' for more details." >&5
14765 $as_echo "$as_me: error: cannot run test program while cross compiling
14766 See \`config.log
' for more details." >&2;}
14767 { (exit 1); exit 1; }; }; }
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14776 #include <pthread.h>
14777 #include <sys/resource.h>
14778 #include <unistd.h>
14779 #include <bits/local_lim.h>
14781 #define PAGESIZE (sysconf(_SC_PAGESIZE))
14782 #define STACK_SIZE 8192
14783 #define BUFSIZE 4096
14785 void * func(void *arg)
14795 pthread_attr_t attr;
14800 setrlimit(RLIMIT_CORE, &l);
14801 pthread_attr_init(&attr);
14802 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
14803 pthread_attr_setguardsize(&attr, PAGESIZE);
14804 pthread_create(&tid, &attr, func, NULL);
14805 pthread_join(tid, NULL);
14811 rm -f conftest$ac_exeext
14812 if { (ac_try="$ac_link"
14813 case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14818 $as_echo "$ac_try_echo") >&5
14819 (eval "$ac_link") 2>&5
14821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14828 $as_echo "$ac_try_echo") >&5
14829 (eval "$ac_try") 2>&5
14831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14834 { $as_echo "$as_me:$LINENO: result: no" >&5
14835 $as_echo "no" >&6; }
14838 $as_echo "$as_me: program exited with status $ac_status" >&5
14839 $as_echo "$as_me: failed program was:" >&5
14840 sed 's
/^
/|
/' conftest.$ac_ext >&5
14842 ( exit $ac_status )
14845 cat >>confdefs.h <<\_ACEOF
14846 #define NPTL_GUARD_WITHIN_STACK 1
14849 { $as_echo "$as_me:$LINENO: result: yes" >&5
14850 $as_echo "yes" >&6; }
14853 rm -rf conftest.dSYM
14854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14858 CFLAGS="$saved_CFLAGS"
14859 LDFLAGS="$saved_LDFLAGS"
14865 # Check whether --with-linux was given.
14866 if test "${with_linux+set}" = set; then
14867 withval=$with_linux; kernelsrc="$withval"
14872 # Check whether --with-linux-obj was given.
14873 if test "${with_linux_obj+set}" = set; then
14874 withval=$with_linux_obj; kernelbuild="$withval"
14878 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
14879 $as_echo_n "checking kernel source directory... " >&6; }
14880 if test -z "$kernelsrc"; then
14881 headersdir="/lib/modules/$(uname -r)/build"
14882 if test -e "$headersdir"; then
14883 sourcelink=$(readlink -f "$headersdir")
14885 sourcelink=$(ls -1d /usr/src/kernels/* \
14887 2>/dev/null | grep -v obj | tail -1)
14890 if test -n "$sourcelink" && test -e ${sourcelink}; then
14891 kernelsrc=`readlink -f ${sourcelink}`
14893 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14894 $as_echo "Not found" >&6; }
14895 { { $as_echo "$as_me:$LINENO: error:
14896 *** Please make sure the kernel devel package for your distribution
14897 *** is installed then try again. If that fails you can specify the
14898 *** location of the kernel source with the '--with-linux=PATH
' option." >&5
14899 $as_echo "$as_me: error:
14900 *** Please make sure the kernel devel package for your distribution
14901 *** is installed then try again. If that fails you can specify the
14902 *** location of the kernel source with the '--with-linux=PATH
' option." >&2;}
14903 { (exit 1); exit 1; }; }
14906 if test "$kernelsrc" = "NONE"; then
14911 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
14912 $as_echo "$kernelsrc" >&6; }
14913 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
14914 $as_echo_n "checking kernel build directory... " >&6; }
14915 if test -z "$kernelbuild"; then
14916 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
14917 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
14918 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
14919 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
14920 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
14921 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
14923 kernelbuild=${kernelsrc}
14926 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
14927 $as_echo "$kernelbuild" >&6; }
14929 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
14930 $as_echo_n "checking kernel source version... " >&6; }
14931 utsrelease1=$kernelbuild/include/linux/version.h
14932 utsrelease2=$kernelbuild/include/linux/utsrelease.h
14933 utsrelease3=$kernelbuild/include/generated/utsrelease.h
14934 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
14935 utsrelease=linux/version.h
14936 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
14937 utsrelease=linux/utsrelease.h
14938 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
14939 utsrelease=generated/utsrelease.h
14942 if test "$utsrelease"; then
14943 kernsrcver=`(echo "#include <$utsrelease>";
14944 echo "kernsrcver=UTS_RELEASE") |
14945 cpp -I $kernelbuild/include |
14946 grep "^kernsrcver=" | cut -d \" -f 2`
14948 if test -z "$kernsrcver"; then
14949 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14950 $as_echo "Not found" >&6; }
14951 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
14952 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
14953 { (exit 1); exit 1; }; }
14956 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14957 $as_echo "Not found" >&6; }
14958 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
14959 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
14960 { (exit 1); exit 1; }; }
14963 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
14964 $as_echo "$kernsrcver" >&6; }
14967 LINUX_OBJ=${kernelbuild}
14968 LINUX_VERSION=${kernsrcver}
14975 modpost=$LINUX/scripts/Makefile.modpost
14976 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
14977 $as_echo_n "checking kernel file name for module symbols... " >&6; }
14978 if test -f "$modpost"; then
14979 if grep -q Modules.symvers $modpost; then
14980 LINUX_SYMBOLS=Modules.symvers
14982 LINUX_SYMBOLS=Module.symvers
14987 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
14988 $as_echo "$LINUX_SYMBOLS" >&6; }
14994 # Check whether --with-spl was given.
14995 if test "${with_spl+set}" = set; then
14996 withval=$with_spl; splsrc="$withval"
15001 # Check whether --with-spl-obj was given.
15002 if test "${with_spl_obj+set}" = set; then
15003 withval=$with_spl_obj; splbuild="$withval"
15008 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
15009 $as_echo_n "checking spl source directory... " >&6; }
15010 if test -z "$splsrc"; then
15011 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
15012 2>/dev/null | tail -1`
15014 if test -z "$sourcelink" || test ! -e $sourcelink; then
15018 if test -e $sourcelink; then
15019 splsrc=`readlink -f ${sourcelink}`
15021 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15022 $as_echo "Not found" >&6; }
15023 { { $as_echo "$as_me:$LINENO: error:
15024 *** Please make sure the spl devel package for your distribution
15025 *** is installed then try again. If that fails you can specify the
15026 *** location of the spl source with the '--with-spl=PATH
' option." >&5
15027 $as_echo "$as_me: error:
15028 *** Please make sure the spl devel package for your distribution
15029 *** is installed then try again. If that fails you can specify the
15030 *** location of the spl source with the '--with-spl=PATH
' option." >&2;}
15031 { (exit 1); exit 1; }; }
15034 if test "$splsrc" = "NONE"; then
15040 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
15041 $as_echo "$splsrc" >&6; }
15042 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
15043 $as_echo_n "checking spl build directory... " >&6; }
15044 if test -z "$splbuild"; then
15045 if test -d ${splsrc}/module; then
15046 splbuild=${splsrc}/module
15051 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
15052 $as_echo "$splbuild" >&6; }
15054 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
15055 $as_echo_n "checking spl source version... " >&6; }
15056 if test -r $splbuild/spl_config.h &&
15057 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
15059 splsrcver=`(echo "#include <spl_config.h>";
15060 echo "splsrcver=SPL_META_VERSION") |
15062 grep "^splsrcver=" | cut -d \" -f 2`
15065 if test -z "$splsrcver"; then
15066 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15067 $as_echo "Not found" >&6; }
15068 { { $as_echo "$as_me:$LINENO: error:
15069 *** Cannot determine the version of the spl source.
15070 *** Please prepare the spl source before running this script" >&5
15071 $as_echo "$as_me: error:
15072 *** Cannot determine the version of the spl source.
15073 *** Please prepare the spl source before running this script" >&2;}
15074 { (exit 1); exit 1; }; }
15077 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
15078 $as_echo "$splsrcver" >&6; }
15081 SPL_OBJ=${splbuild}
15082 SPL_VERSION=${splsrcver}
15089 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
15090 $as_echo_n "checking spl file name for module symbols... " >&6; }
15091 if test -r $SPL_OBJ/Module.symvers; then
15092 SPL_SYMBOLS=Module.symvers
15093 elif test -r $SPL_OBJ/Modules.symvers; then
15094 SPL_SYMBOLS=Modules.symvers
15096 SPL_SYMBOLS=$LINUX_SYMBOLS
15099 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
15100 $as_echo "$SPL_SYMBOLS" >&6; }
15106 if test "$ZFS_META_LICENSE" = CDDL; then
15107 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
15108 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
15111 cat confdefs.h - <<_ACEOF >conftest.c
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15119 #ifndef AUTOCONF_INCLUDED
15120 #include <linux/config.h>
15127 #ifndef CONFIG_DEBUG_LOCK_ALLOC
15128 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
15138 rm -Rf build && mkdir -p build
15139 echo "obj-m := conftest.o" >build/Makefile
15140 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
'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15152 { $as_echo "$as_me:$LINENO: result: yes" >&5
15153 $as_echo "yes" >&6; }
15154 { { $as_echo "$as_me:$LINENO: error:
15155 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
15156 *** incompatible with the CDDL license. You must rebuild
15157 *** your kernel without this option." >&5
15158 $as_echo "$as_me: error:
15159 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
15160 *** incompatible with the CDDL license. You must rebuild
15161 *** your kernel without this option." >&2;}
15162 { (exit 1); exit 1; }; }
15165 $as_echo "$as_me: failed program was:" >&5
15166 sed 's
/^
/|
/' conftest.$ac_ext >&5
15168 { $as_echo "$as_me:$LINENO: result: no" >&5
15169 $as_echo "no" >&6; }
15182 if test "$ZFS_META_LICENSE" = GPL; then
15184 cat >>confdefs.h <<\_ACEOF
15185 #define HAVE_GPL_ONLY_SYMBOLS 1
15191 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
15192 $as_echo_n "checking block device operation prototypes... " >&6; }
15195 cat confdefs.h - <<_ACEOF >conftest.c
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15203 #include <linux/blkdev.h>
15209 int (*blk_open) (struct block_device *, fmode_t) = NULL;
15210 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
15211 int (*blk_ioctl) (struct block_device *, fmode_t,
15212 unsigned, unsigned long) = NULL;
15213 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
15214 unsigned, unsigned long) = NULL;
15215 struct block_device_operations blk_ops = {
15217 .release = blk_release,
15218 .ioctl = blk_ioctl,
15219 .compat_ioctl = blk_compat_ioctl,
15222 blk_ops.open(NULL, 0);
15223 blk_ops.release(NULL, 0);
15224 blk_ops.ioctl(NULL, 0, 0, 0);
15225 blk_ops.compat_ioctl(NULL, 0, 0, 0);
15234 rm -Rf build && mkdir -p build
15235 echo "obj-m := conftest.o" >build/Makefile
15236 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
'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15248 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
15249 $as_echo "struct block_device" >&6; }
15251 cat >>confdefs.h <<\_ACEOF
15252 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
15257 $as_echo "$as_me: failed program was:" >&5
15258 sed 's
/^
/|
/' conftest.$ac_ext >&5
15260 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
15261 $as_echo "struct inode" >&6; }
15271 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15272 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
15275 cat confdefs.h - <<_ACEOF >conftest.c
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h. */
15283 #include <linux/types.h>
15298 rm -Rf build && mkdir -p build
15299 echo "obj-m := conftest.o" >build/Makefile
15300 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
'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15312 { $as_echo "$as_me:$LINENO: result: yes" >&5
15313 $as_echo "yes" >&6; }
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_FMODE_T 1
15321 $as_echo "$as_me: failed program was:" >&5
15322 sed 's
/^
/|
/' conftest.$ac_ext >&5
15324 { $as_echo "$as_me:$LINENO: result: no" >&5
15325 $as_echo "no" >&6; }
15336 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
15337 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
15340 cat confdefs.h - <<_ACEOF >conftest.c
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15348 #include <linux/kobject.h>
15355 val = KOBJ_NAME_LEN;
15364 rm -Rf build && mkdir -p build
15365 echo "obj-m := conftest.o" >build/Makefile
15366 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
'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15378 { $as_echo "$as_me:$LINENO: result: yes" >&5
15379 $as_echo "yes" >&6; }
15381 cat >>confdefs.h <<\_ACEOF
15382 #define HAVE_KOBJ_NAME_LEN 1
15387 $as_echo "$as_me: failed program was:" >&5
15388 sed 's
/^
/|
/' conftest.$ac_ext >&5
15390 { $as_echo "$as_me:$LINENO: result: no" >&5
15391 $as_echo "no" >&6; }
15402 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
15403 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
15404 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
15405 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15407 if test $rc -ne 0; then
15409 for file in fs/block_dev.c; do
15410 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
15412 if test $rc -eq 0; then
15417 if test $export -eq 0; then
15418 { $as_echo "$as_me:$LINENO: result: no" >&5
15419 $as_echo "no" >&6; }
15422 { $as_echo "$as_me:$LINENO: result: yes" >&5
15423 $as_echo "yes" >&6; }
15425 cat >>confdefs.h <<\_ACEOF
15426 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15431 { $as_echo "$as_me:$LINENO: result: yes" >&5
15432 $as_echo "yes" >&6; }
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15442 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
15443 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15446 cat confdefs.h - <<_ACEOF >conftest.c
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15454 #include <linux/buffer_head.h>
15460 struct block_device *bdev;
15461 invalidate_bdev(bdev);
15470 rm -Rf build && mkdir -p build
15471 echo "obj-m := conftest.o" >build/Makefile
15472 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
'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15484 { $as_echo "$as_me:$LINENO: result: yes" >&5
15485 $as_echo "yes" >&6; }
15487 cat >>confdefs.h <<\_ACEOF
15488 #define HAVE_1ARG_INVALIDATE_BDEV 1
15493 $as_echo "$as_me: failed program was:" >&5
15494 sed 's
/^
/|
/' conftest.$ac_ext >&5
15496 { $as_echo "$as_me:$LINENO: result: no" >&5
15497 $as_echo "no" >&6; }
15508 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
15509 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15512 cat confdefs.h - <<_ACEOF >conftest.c
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15520 #include <linux/blkdev.h>
15526 struct block_device *bdev = NULL;
15527 bdev_logical_block_size(bdev);
15536 rm -Rf build && mkdir -p build
15537 echo "obj-m := conftest.o" >build/Makefile
15538 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
'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15550 { $as_echo "$as_me:$LINENO: result: yes" >&5
15551 $as_echo "yes" >&6; }
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
15559 $as_echo "$as_me: failed program was:" >&5
15560 sed 's
/^
/|
/' conftest.$ac_ext >&5
15562 { $as_echo "$as_me:$LINENO: result: no" >&5
15563 $as_echo "no" >&6; }
15574 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
15575 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
15576 EXTRA_KCFLAGS="-Werror"
15579 cat confdefs.h - <<_ACEOF >conftest.c
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15587 #include <linux/bio.h>
15594 (void)bio_empty_barrier(&bio);
15603 rm -Rf build && mkdir -p build
15604 echo "obj-m := conftest.o" >build/Makefile
15605 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
'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15617 { $as_echo "$as_me:$LINENO: result: yes" >&5
15618 $as_echo "yes" >&6; }
15620 cat >>confdefs.h <<\_ACEOF
15621 #define HAVE_BIO_EMPTY_BARRIER 1
15626 $as_echo "$as_me: failed program was:" >&5
15627 sed 's
/^
/|
/' conftest.$ac_ext >&5
15629 { $as_echo "$as_me:$LINENO: result: no" >&5
15630 $as_echo "no" >&6; }
15641 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
15642 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
15643 tmp_flags="$EXTRA_KCFLAGS"
15644 EXTRA_KCFLAGS="-Werror"
15647 cat confdefs.h - <<_ACEOF >conftest.c
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15655 #include <linux/bio.h>
15661 void (*wanted_end_io)(struct bio *, int) = NULL;
15662 bio_end_io_t *local_end_io;
15664 local_end_io = wanted_end_io;
15673 rm -Rf build && mkdir -p build
15674 echo "obj-m := conftest.o" >build/Makefile
15675 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
'
15676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15687 { $as_echo "$as_me:$LINENO: result: yes" >&5
15688 $as_echo "yes" >&6; }
15690 cat >>confdefs.h <<\_ACEOF
15691 #define HAVE_2ARGS_BIO_END_IO_T 1
15696 $as_echo "$as_me: failed program was:" >&5
15697 sed 's
/^
/|
/' conftest.$ac_ext >&5
15699 { $as_echo "$as_me:$LINENO: result: no" >&5
15700 $as_echo "no" >&6; }
15709 EXTRA_KCFLAGS="$tmp_flags"
15712 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
15713 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
15716 cat confdefs.h - <<_ACEOF >conftest.c
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15724 #include <linux/bio.h>
15731 flags = BIO_RW_SYNCIO;
15740 rm -Rf build && mkdir -p build
15741 echo "obj-m := conftest.o" >build/Makefile
15742 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
'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15754 { $as_echo "$as_me:$LINENO: result: yes" >&5
15755 $as_echo "yes" >&6; }
15757 cat >>confdefs.h <<\_ACEOF
15758 #define HAVE_BIO_RW_SYNCIO 1
15763 $as_echo "$as_me: failed program was:" >&5
15764 sed 's
/^
/|
/' conftest.$ac_ext >&5
15766 { $as_echo "$as_me:$LINENO: result: no" >&5
15767 $as_echo "no" >&6; }
15778 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
15779 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
15782 cat confdefs.h - <<_ACEOF >conftest.c
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15790 #include <linux/blkdev.h>
15796 struct request *req = NULL;
15797 (void) blk_end_request(req, 0, 0);
15806 rm -Rf build && mkdir -p build
15807 echo "obj-m := conftest.o" >build/Makefile
15808 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
'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; }; then
15820 { $as_echo "$as_me:$LINENO: result: yes" >&5
15821 $as_echo "yes" >&6; }
15823 cat >>confdefs.h <<\_ACEOF
15824 #define HAVE_BLK_END_REQUEST 1
15829 $as_echo "$as_me: failed program was:" >&5
15830 sed 's
/^
/|
/' conftest.$ac_ext >&5
15832 { $as_echo "$as_me:$LINENO: result: no" >&5
15833 $as_echo "no" >&6; }
15843 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
15844 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
15847 cat confdefs.h - <<_ACEOF >conftest.c
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15855 #include <linux/module.h>
15856 #include <linux/blkdev.h>
15858 MODULE_LICENSE("CDDL");
15864 struct request *req = NULL;
15865 (void) blk_end_request(req, 0, 0);
15874 rm -Rf build && mkdir -p build
15875 echo "obj-m := conftest.o" >build/Makefile
15876 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
'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15888 { $as_echo "$as_me:$LINENO: result: no" >&5
15889 $as_echo "no" >&6; }
15892 $as_echo "$as_me: failed program was:" >&5
15893 sed 's
/^
/|
/' conftest.$ac_ext >&5
15895 { $as_echo "$as_me:$LINENO: result: yes" >&5
15896 $as_echo "yes" >&6; }
15898 cat >>confdefs.h <<\_ACEOF
15899 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
15912 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
15913 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
15916 cat confdefs.h - <<_ACEOF >conftest.c
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15924 #include <linux/blkdev.h>
15930 struct request_queue *q = NULL;
15931 (void) blk_fetch_request(q);
15940 rm -Rf build && mkdir -p build
15941 echo "obj-m := conftest.o" >build/Makefile
15942 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
'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15954 { $as_echo "$as_me:$LINENO: result: yes" >&5
15955 $as_echo "yes" >&6; }
15957 cat >>confdefs.h <<\_ACEOF
15958 #define HAVE_BLK_FETCH_REQUEST 1
15963 $as_echo "$as_me: failed program was:" >&5
15964 sed 's
/^
/|
/' conftest.$ac_ext >&5
15966 { $as_echo "$as_me:$LINENO: result: no" >&5
15967 $as_echo "no" >&6; }
15978 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
15979 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
15982 cat confdefs.h - <<_ACEOF >conftest.c
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15990 #include <linux/blkdev.h>
15996 struct request_queue *q = NULL;
15997 struct request *req = NULL;
15998 blk_requeue_request(q, req);
16007 rm -Rf build && mkdir -p build
16008 echo "obj-m := conftest.o" >build/Makefile
16009 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
'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16021 { $as_echo "$as_me:$LINENO: result: yes" >&5
16022 $as_echo "yes" >&6; }
16024 cat >>confdefs.h <<\_ACEOF
16025 #define HAVE_BLK_REQUEUE_REQUEST 1
16030 $as_echo "$as_me: failed program was:" >&5
16031 sed 's
/^
/|
/' conftest.$ac_ext >&5
16033 { $as_echo "$as_me:$LINENO: result: no" >&5
16034 $as_echo "no" >&6; }
16045 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
16046 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
16049 cat confdefs.h - <<_ACEOF >conftest.c
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16057 #include <linux/blkdev.h>
16063 struct request *req = NULL;
16064 (void) blk_rq_bytes(req);
16073 rm -Rf build && mkdir -p build
16074 echo "obj-m := conftest.o" >build/Makefile
16075 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
'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16087 { $as_echo "$as_me:$LINENO: result: yes" >&5
16088 $as_echo "yes" >&6; }
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_BLK_RQ_BYTES 1
16096 $as_echo "$as_me: failed program was:" >&5
16097 sed 's
/^
/|
/' conftest.$ac_ext >&5
16099 { $as_echo "$as_me:$LINENO: result: no" >&5
16100 $as_echo "no" >&6; }
16110 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
16111 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
16114 cat confdefs.h - <<_ACEOF >conftest.c
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16122 #include <linux/module.h>
16123 #include <linux/blkdev.h>
16125 MODULE_LICENSE("CDDL");
16131 struct request *req = NULL;
16132 (void) blk_rq_bytes(req);
16141 rm -Rf build && mkdir -p build
16142 echo "obj-m := conftest.o" >build/Makefile
16143 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
'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16155 { $as_echo "$as_me:$LINENO: result: no" >&5
16156 $as_echo "no" >&6; }
16159 $as_echo "$as_me: failed program was:" >&5
16160 sed 's
/^
/|
/' conftest.$ac_ext >&5
16162 { $as_echo "$as_me:$LINENO: result: yes" >&5
16163 $as_echo "yes" >&6; }
16165 cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
16179 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
16180 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
16183 cat confdefs.h - <<_ACEOF >conftest.c
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16191 #include <linux/blkdev.h>
16197 struct request *req = NULL;
16198 (void) blk_rq_pos(req);
16207 rm -Rf build && mkdir -p build
16208 echo "obj-m := conftest.o" >build/Makefile
16209 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
'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16221 { $as_echo "$as_me:$LINENO: result: yes" >&5
16222 $as_echo "yes" >&6; }
16224 cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_BLK_RQ_POS 1
16230 $as_echo "$as_me: failed program was:" >&5
16231 sed 's
/^
/|
/' conftest.$ac_ext >&5
16233 { $as_echo "$as_me:$LINENO: result: no" >&5
16234 $as_echo "no" >&6; }
16245 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
16246 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
16249 cat confdefs.h - <<_ACEOF >conftest.c
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16257 #include <linux/blkdev.h>
16263 struct request *req = NULL;
16264 (void) blk_rq_sectors(req);
16273 rm -Rf build && mkdir -p build
16274 echo "obj-m := conftest.o" >build/Makefile
16275 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
'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16287 { $as_echo "$as_me:$LINENO: result: yes" >&5
16288 $as_echo "yes" >&6; }
16290 cat >>confdefs.h <<\_ACEOF
16291 #define HAVE_BLK_RQ_SECTORS 1
16296 $as_echo "$as_me: failed program was:" >&5
16297 sed 's
/^
/|
/' conftest.$ac_ext >&5
16299 { $as_echo "$as_me:$LINENO: result: no" >&5
16300 $as_echo "no" >&6; }
16311 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
16312 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16315 cat confdefs.h - <<_ACEOF >conftest.c
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16323 #include <linux/blkdev.h>
16329 struct gendisk *disk = NULL;
16330 (void) get_disk_ro(disk);
16339 rm -Rf build && mkdir -p build
16340 echo "obj-m := conftest.o" >build/Makefile
16341 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
'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16353 { $as_echo "$as_me:$LINENO: result: yes" >&5
16354 $as_echo "yes" >&6; }
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_GET_DISK_RO 1
16362 $as_echo "$as_me: failed program was:" >&5
16363 sed 's
/^
/|
/' conftest.$ac_ext >&5
16365 { $as_echo "$as_me:$LINENO: result: no" >&5
16366 $as_echo "no" >&6; }
16377 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
16378 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
16381 cat confdefs.h - <<_ACEOF >conftest.c
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16389 #include <linux/blkdev.h>
16395 struct request *req = NULL;
16396 (void) rq_is_sync(req);
16405 rm -Rf build && mkdir -p build
16406 echo "obj-m := conftest.o" >build/Makefile
16407 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
'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16419 { $as_echo "$as_me:$LINENO: result: yes" >&5
16420 $as_echo "yes" >&6; }
16422 cat >>confdefs.h <<\_ACEOF
16423 #define HAVE_RQ_IS_SYNC 1
16428 $as_echo "$as_me: failed program was:" >&5
16429 sed 's
/^
/|
/' conftest.$ac_ext >&5
16431 { $as_echo "$as_me:$LINENO: result: no" >&5
16432 $as_echo "no" >&6; }
16443 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
16444 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
16447 cat confdefs.h - <<_ACEOF >conftest.c
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16455 #include <linux/blkdev.h>
16461 struct bio_vec *bv;
16462 struct req_iterator iter;
16463 struct request *req = NULL;
16464 rq_for_each_segment(bv, req, iter) { }
16473 rm -Rf build && mkdir -p build
16474 echo "obj-m := conftest.o" >build/Makefile
16475 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
'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16487 { $as_echo "$as_me:$LINENO: result: yes" >&5
16488 $as_echo "yes" >&6; }
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE_RQ_FOR_EACH_SEGMENT 1
16496 $as_echo "$as_me: failed program was:" >&5
16497 sed 's
/^
/|
/' conftest.$ac_ext >&5
16499 { $as_echo "$as_me:$LINENO: result: no" >&5
16500 $as_echo "no" >&6; }
16511 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
16512 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
16513 KERNELCPPFLAGS="$KERNELCPPFLAGS -I$SPL"
16514 KERNELCPPFLAGS="$KERNELCPPFLAGS -I$SPL/include"
16515 KERNELCPPFLAGS="$KERNELCPPFLAGS -include $SPL/spl_config.h"
16516 KERNELCPPFLAGS="$KERNELCPPFLAGS -include $TOPDIR/zfs_config.h"
16518 if test "$LINUX_OBJ" != "$LINUX"; then
16519 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16527 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
16528 $as_echo_n "checking for target asm dir... " >&6; }
16529 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
16531 case $TARGET_ARCH in
16533 TARGET_ASM_DIR=asm-${TARGET_ARCH}
16536 TARGET_ASM_DIR=asm-generic
16541 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
16542 $as_echo "$TARGET_ASM_DIR" >&6; }
16545 { $as_echo "$as_me:$LINENO: checking for sa_init in -lshare" >&5
16546 $as_echo_n "checking for sa_init in -lshare... " >&6; }
16547 if test "${ac_cv_lib_share_sa_init+set}" = set; then
16548 $as_echo_n "(cached) " >&6
16550 ac_check_lib_save_LIBS=$LIBS
16551 LIBS="-lshare $LIBS"
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16559 /* Override any GCC internal prototype to avoid an error.
16560 Use char because int might match the return type of a GCC
16561 builtin and then its argument prototype would still apply. */
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (ac_try="$ac_link"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16581 $as_echo "$ac_try_echo") >&5
16582 (eval "$ac_link") 2>conftest.er1
16584 grep -v '^
*+' conftest.er1 >conftest.err
16586 cat conftest.err >&5
16587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && {
16589 test -z "$ac_c_werror_flag" ||
16590 test ! -s conftest.err
16591 } && test -s conftest$ac_exeext && {
16592 test "$cross_compiling" = yes ||
16593 $as_test_x conftest$ac_exeext
16595 ac_cv_lib_share_sa_init=yes
16597 $as_echo "$as_me: failed program was:" >&5
16598 sed 's
/^
/|
/' conftest.$ac_ext >&5
16600 ac_cv_lib_share_sa_init=no
16603 rm -rf conftest.dSYM
16604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16605 conftest$ac_exeext conftest.$ac_ext
16606 LIBS=$ac_check_lib_save_LIBS
16608 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_share_sa_init" >&5
16609 $as_echo "$ac_cv_lib_share_sa_init" >&6; }
16610 if test "x$ac_cv_lib_share_sa_init" = x""yes; then
16612 cat >>confdefs.h <<\_ACEOF
16613 #define HAVE_LIBSHARE 1
16620 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
16621 $as_echo_n "checking for ioctl()... " >&6; }
16622 cat >conftest.$ac_ext <<_ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 #include <unistd.h>
16631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16632 $EGREP "ioctl" >/dev/null 2>&1; then
16639 cat >conftest.$ac_ext <<_ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16645 #include <sys/ioctl.h>
16648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16649 $EGREP "ioctl" >/dev/null 2>&1; then
16656 cat >conftest.$ac_ext <<_ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 #include <stropts.h>
16665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16666 $EGREP "ioctl" >/dev/null 2>&1; then
16674 if test $is_unistd = yes; then
16677 cat >>confdefs.h <<\_ACEOF
16678 #define HAVE_IOCTL_IN_UNISTD_H 1
16683 if test $is_sys_ioctl = yes; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
16690 elif test $is_stropts = yes; then
16692 cat >>confdefs.h <<\_ACEOF
16693 #define HAVE_IOCTL_IN_STROPTS_H 1
16701 if test $result = no; then
16702 { $as_echo "$as_me:$LINENO: result: no" >&5
16703 $as_echo "no" >&6; }
16704 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
16705 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
16706 { (exit 1); exit 1; }; }
16708 { $as_echo "$as_me:$LINENO: result: yes" >&5
16709 $as_echo "yes" >&6; }
16715 if test "${ac_cv_header_zlib_h+set}" = set; then
16716 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16717 $as_echo_n "checking for zlib.h... " >&6; }
16718 if test "${ac_cv_header_zlib_h+set}" = set; then
16719 $as_echo_n "(cached) " >&6
16721 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16722 $as_echo "$ac_cv_header_zlib_h" >&6; }
16724 # Is the header compilable?
16725 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
16726 $as_echo_n "checking zlib.h usability... " >&6; }
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 $ac_includes_default
16736 rm -f conftest.$ac_objext
16737 if { (ac_try="$ac_compile"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16743 $as_echo "$ac_try_echo") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16746 grep -v '^
*+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } && {
16751 test -z "$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 } && test -s conftest.$ac_objext; then
16754 ac_header_compiler=yes
16756 $as_echo "$as_me: failed program was:" >&5
16757 sed 's
/^
/|
/' conftest.$ac_ext >&5
16759 ac_header_compiler=no
16762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16764 $as_echo "$ac_header_compiler" >&6; }
16766 # Is the header present?
16767 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16768 $as_echo_n "checking zlib.h presence... " >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16777 if { (ac_try="$ac_cpp conftest.$ac_ext"
16778 case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16783 $as_echo "$ac_try_echo") >&5
16784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16786 grep -v '^
*+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } >/dev/null && {
16791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16794 ac_header_preproc=yes
16796 $as_echo "$as_me: failed program was:" >&5
16797 sed 's
/^
/|
/' conftest.$ac_ext >&5
16799 ac_header_preproc=no
16802 rm -f conftest.err conftest.$ac_ext
16803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16804 $as_echo "$ac_header_preproc" >&6; }
16806 # So? What about this header?
16807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16809 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16810 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16811 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
16812 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
16813 ac_header_preproc=yes
16816 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16817 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16818 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
16819 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
16820 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16821 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16822 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
16823 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16824 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
16825 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
16826 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16827 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
16831 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16832 $as_echo_n "checking for zlib.h... " >&6; }
16833 if test "${ac_cv_header_zlib_h+set}" = set; then
16834 $as_echo_n "(cached) " >&6
16836 ac_cv_header_zlib_h=$ac_header_preproc
16838 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16839 $as_echo "$ac_cv_header_zlib_h" >&6; }
16842 if test "x$ac_cv_header_zlib_h" = x""yes; then
16845 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16846 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
16847 { { $as_echo "$as_me:$LINENO: error:
16848 *** zlib.h missing, zlib-devel package required
16849 See \`config.log
' for more details." >&5
16850 $as_echo "$as_me: error:
16851 *** zlib.h missing, zlib-devel package required
16852 See \`config.log' for more details.
" >&2;}
16853 { (exit 1); exit 1; }; }; }
16859 { $as_echo "$as_me:$LINENO: checking
for compress2
in -lz" >&5
16860 $as_echo_n "checking
for compress2
in -lz...
" >&6; }
16861 if test "${ac_cv_lib_z_compress2+set}" = set; then
16862 $as_echo_n "(cached
) " >&6
16864 ac_check_lib_save_LIBS=$LIBS
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16883 return compress2 ();
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (ac_try="$ac_link"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16895 $as_echo "$ac_try_echo") >&5
16896 (eval "$ac_link") 2>conftest.er1
16898 grep -v '^ *+' conftest.er1 >conftest.err
16900 cat conftest.err >&5
16901 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16902 (exit $ac_status); } && {
16903 test -z "$ac_c_werror_flag" ||
16904 test ! -s conftest.err
16905 } && test -s conftest$ac_exeext && {
16906 test "$cross_compiling" = yes ||
16907 $as_test_x conftest$ac_exeext
16909 ac_cv_lib_z_compress2=yes
16911 $as_echo "$as_me: failed program was
:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_cv_lib_z_compress2=no
16917 rm -rf conftest.dSYM
16918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16919 conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16922 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress2" >&5
16923 $as_echo "$ac_cv_lib_z_compress2" >&6; }
16924 if test "x
$ac_cv_lib_z_compress2" = x""yes; then
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_LIBZ 1
16932 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
16933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16934 { { $as_echo "$as_me:$LINENO: error:
16935 *** compress2() missing, zlib-devel package required
16936 See \`config.log' for more details.
" >&5
16937 $as_echo "$as_me: error
:
16938 *** compress2
() missing
, zlib-devel package required
16939 See \
`config.log' for more details." >&2;}
16940 { (exit 1); exit 1; }; }; }
16945 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
16946 $as_echo_n "checking for uncompress in -lz... " >&6; }
16947 if test "${ac_cv_lib_z_uncompress+set}" = set; then
16948 $as_echo_n "(cached) " >&6
16950 ac_check_lib_save_LIBS=$LIBS
16952 cat >conftest.$ac_ext <<_ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16959 /* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16965 char uncompress ();
16969 return uncompress ();
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (ac_try="$ac_link"
16976 case "(($ac_try" in
16977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16978 *) ac_try_echo
=$ac_try;;
16980 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16981 $as_echo "$ac_try_echo") >&5
16982 (eval "$ac_link") 2>conftest.er1
16984 grep -v '^ *+' conftest.er1
>conftest.err
16986 cat conftest.err
>&5
16987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } && {
16989 test -z "$ac_c_werror_flag" ||
16990 test ! -s conftest.err
16991 } && test -s conftest
$ac_exeext && {
16992 test "$cross_compiling" = yes ||
16993 $as_test_x conftest
$ac_exeext
16995 ac_cv_lib_z_uncompress
=yes
16997 $as_echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.
$ac_ext >&5
17000 ac_cv_lib_z_uncompress
=no
17003 rm -rf conftest.dSYM
17004 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17005 conftest
$ac_exeext conftest.
$ac_ext
17006 LIBS
=$ac_check_lib_save_LIBS
17008 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
17009 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17010 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then
17011 cat >>confdefs.h
<<_ACEOF
17012 #define HAVE_LIBZ 1
17018 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17020 { { $as_echo "$as_me:$LINENO: error:
17021 *** uncompress() missing, zlib-devel package required
17022 See \`config.log' for more details." >&5
17023 $as_echo "$as_me: error:
17024 *** uncompress() missing, zlib-devel package required
17025 See \`config.log' for more details." >&2;}
17026 { (exit 1); exit 1; }; }; }
17031 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
17032 $as_echo_n "checking for crc32 in -lz... " >&6; }
17033 if test "${ac_cv_lib_z_crc32+set}" = set; then
17034 $as_echo_n "(cached) " >&6
17036 ac_check_lib_save_LIBS
=$LIBS
17038 cat >conftest.
$ac_ext <<_ACEOF
17041 cat confdefs.h
>>conftest.
$ac_ext
17042 cat >>conftest.
$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17060 rm -f conftest.
$ac_objext conftest
$ac_exeext
17061 if { (ac_try
="$ac_link"
17062 case "(($ac_try" in
17063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17067 $as_echo "$ac_try_echo") >&5
17068 (eval "$ac_link") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest$ac_exeext && {
17078 test "$cross_compiling" = yes ||
17079 $as_test_x conftest$ac_exeext
17081 ac_cv_lib_z_crc32=yes
17083 $as_echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_cv_lib_z_crc32=no
17089 rm -rf conftest.dSYM
17090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17091 conftest$ac_exeext conftest.$ac_ext
17092 LIBS=$ac_check_lib_save_LIBS
17094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
17095 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17096 if test "x$ac_cv_lib_z_crc32" = x""yes; then
17097 cat >>confdefs.h <<_ACEOF
17098 #define HAVE_LIBZ 1
17104 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17106 { { $as_echo "$as_me:$LINENO: error
:
17107 *** crc32
() missing
, zlib-devel package required
17108 See \
`config.log' for more details." >&5
17109 $as_echo "$as_me: error:
17110 *** crc32() missing, zlib-devel package required
17111 See \`config.log
' for more details." >&2;}
17112 { (exit 1); exit 1; }; }; }
17119 cat >>confdefs.h <<\_ACEOF
17120 #define HAVE_ZLIB 1
17127 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17128 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17129 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17130 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17131 $as_echo_n "(cached) " >&6
17133 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17134 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17136 # Is the header compilable?
17137 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
17138 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 $ac_includes_default
17146 #include <uuid/uuid.h>
17148 rm -f conftest.$ac_objext
17149 if { (ac_try="$ac_compile"
17150 case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17155 $as_echo "$ac_try_echo") >&5
17156 (eval "$ac_compile") 2>conftest.er1
17158 grep -v '^
*+' conftest.er1 >conftest.err
17160 cat conftest.err >&5
17161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && {
17163 test -z "$ac_c_werror_flag" ||
17164 test ! -s conftest.err
17165 } && test -s conftest.$ac_objext; then
17166 ac_header_compiler=yes
17168 $as_echo "$as_me: failed program was:" >&5
17169 sed 's
/^
/|
/' conftest.$ac_ext >&5
17171 ac_header_compiler=no
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17176 $as_echo "$ac_header_compiler" >&6; }
17178 # Is the header present?
17179 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17180 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <uuid/uuid.h>
17189 if { (ac_try="$ac_cpp conftest.$ac_ext"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17198 grep -v '^
*+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } >/dev/null && {
17203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17206 ac_header_preproc=yes
17208 $as_echo "$as_me: failed program was:" >&5
17209 sed 's
/^
/|
/' conftest.$ac_ext >&5
17211 ac_header_preproc=no
17214 rm -f conftest.err conftest.$ac_ext
17215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17216 $as_echo "$ac_header_preproc" >&6; }
17218 # So? What about this header?
17219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17221 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17222 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17223 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
17224 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
17225 ac_header_preproc=yes
17228 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17229 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17230 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
17231 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
17232 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17233 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17234 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
17235 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
17236 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
17237 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
17238 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17239 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17243 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17244 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17245 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17246 $as_echo_n "(cached) " >&6
17248 ac_cv_header_uuid_uuid_h=$ac_header_preproc
17250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17251 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17254 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17257 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17258 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
17259 { { $as_echo "$as_me:$LINENO: error:
17260 *** uuid/uuid.h missing, libuuid-devel package required
17261 See \`config.log
' for more details." >&5
17262 $as_echo "$as_me: error:
17263 *** uuid/uuid.h missing, libuuid-devel package required
17264 See \`config.log' for more details.
" >&2;}
17265 { (exit 1); exit 1; }; }; }
17271 { $as_echo "$as_me:$LINENO: checking
for uuid_generate
in -luuid" >&5
17272 $as_echo_n "checking
for uuid_generate
in -luuid...
" >&6; }
17273 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17274 $as_echo_n "(cached
) " >&6
17276 ac_check_lib_save_LIBS=$LIBS
17277 LIBS="-luuid $LIBS"
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17285 /* Override any GCC internal prototype to avoid an error.
17286 Use char because int might match the return type of a GCC
17287 builtin and then its argument prototype would still apply. */
17291 char uuid_generate ();
17295 return uuid_generate ();
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17306 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17307 $as_echo "$ac_try_echo") >&5
17308 (eval "$ac_link") 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17314 (exit $ac_status); } && {
17315 test -z "$ac_c_werror_flag" ||
17316 test ! -s conftest.err
17317 } && test -s conftest$ac_exeext && {
17318 test "$cross_compiling" = yes ||
17319 $as_test_x conftest$ac_exeext
17321 ac_cv_lib_uuid_uuid_generate=yes
17323 $as_echo "$as_me: failed program was
:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 ac_cv_lib_uuid_uuid_generate=no
17329 rm -rf conftest.dSYM
17330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17334 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_generate" >&5
17335 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17336 if test "x
$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17337 cat >>confdefs.h <<_ACEOF
17338 #define HAVE_LIBUUID 1
17341 LIBS="-luuid $LIBS"
17344 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
17345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17346 { { $as_echo "$as_me:$LINENO: error:
17347 *** uuid_generate() missing, libuuid-devel package required
17348 See \`config.log' for more details.
" >&5
17349 $as_echo "$as_me: error
:
17350 *** uuid_generate
() missing
, libuuid-devel package required
17351 See \
`config.log' for more details." >&2;}
17352 { (exit 1); exit 1; }; }; }
17357 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
17358 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17359 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17360 $as_echo_n "(cached) " >&6
17362 ac_check_lib_save_LIBS=$LIBS
17363 LIBS="-luuid $LIBS"
17364 cat >conftest.$ac_ext <<_ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17371 /* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17377 char uuid_is_null ();
17381 return uuid_is_null ();
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (ac_try="$ac_link"
17388 case "(($ac_try" in
17389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17390 *) ac_try_echo
=$ac_try;;
17392 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17393 $as_echo "$ac_try_echo") >&5
17394 (eval "$ac_link") 2>conftest.er1
17396 grep -v '^ *+' conftest.er1
>conftest.err
17398 cat conftest.err
>&5
17399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && {
17401 test -z "$ac_c_werror_flag" ||
17402 test ! -s conftest.err
17403 } && test -s conftest
$ac_exeext && {
17404 test "$cross_compiling" = yes ||
17405 $as_test_x conftest
$ac_exeext
17407 ac_cv_lib_uuid_uuid_is_null
=yes
17409 $as_echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.
$ac_ext >&5
17412 ac_cv_lib_uuid_uuid_is_null
=no
17415 rm -rf conftest.dSYM
17416 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17417 conftest
$ac_exeext conftest.
$ac_ext
17418 LIBS
=$ac_check_lib_save_LIBS
17420 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17421 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17422 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then
17423 cat >>confdefs.h
<<_ACEOF
17424 #define HAVE_LIBUUID 1
17427 LIBS
="-luuid $LIBS"
17430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17432 { { $as_echo "$as_me:$LINENO: error:
17433 *** uuid_is_null() missing, libuuid-devel package required
17434 See \`config.log' for more details." >&5
17435 $as_echo "$as_me: error:
17436 *** uuid_is_null() missing, libuuid-devel package required
17437 See \`config.log' for more details." >&2;}
17438 { (exit 1); exit 1; }; }; }
17445 cat >>confdefs.h
<<\_ACEOF
17446 #define HAVE_LIBUUID 1
17452 # Check whether --with-blkid was given.
17453 if test "${with_blkid+set}" = set; then
17454 withval
=$with_blkid;
17461 if test "x$with_blkid" != xno
; then
17463 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17464 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17465 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17466 $as_echo_n "(cached) " >&6
17468 ac_check_lib_save_LIBS
=$LIBS
17469 LIBS
="-lblkid $LIBS"
17470 cat >conftest.
$ac_ext <<_ACEOF
17473 cat confdefs.h
>>conftest.
$ac_ext
17474 cat >>conftest.
$ac_ext <<_ACEOF
17475 /* end confdefs.h. */
17477 /* Override any GCC internal prototype to avoid an error.
17478 Use char because int might match the return type of a GCC
17479 builtin and then its argument prototype would still apply. */
17483 char blkid_get_cache ();
17487 return blkid_get_cache ();
17492 rm -f conftest.
$ac_objext conftest
$ac_exeext
17493 if { (ac_try
="$ac_link"
17494 case "(($ac_try" in
17495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17499 $as_echo "$ac_try_echo") >&5
17500 (eval "$ac_link") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest$ac_exeext && {
17510 test "$cross_compiling" = yes ||
17511 $as_test_x conftest$ac_exeext
17513 ac_cv_lib_blkid_blkid_get_cache=yes
17515 $as_echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ac_cv_lib_blkid_blkid_get_cache=no
17521 rm -rf conftest.dSYM
17522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17523 conftest$ac_exeext conftest.$ac_ext
17524 LIBS=$ac_check_lib_save_LIBS
17526 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17527 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17528 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
17530 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
17531 $as_echo_n "checking for blkid zfs support... " >&6; }
17534 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17535 >/dev/null 2>/dev/null
17536 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17537 dd of=$ZFS_DEV bs=1k count=8 \
17538 seek=132 conv=notrunc &>/dev/null \
17539 >/dev/null 2>/dev/null
17541 saved_LDFLAGS="$LDFLAGS"
17544 if test "$cross_compiling" = yes; then
17545 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17547 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
17548 See \
`config.log' for more details." >&5
17549 $as_echo "$as_me: error: cannot run test program while cross compiling
17550 See \`config.log
' for more details." >&2;}
17551 { (exit 1); exit 1; }; }; }
17553 cat >conftest.$ac_ext <<_ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17561 #include <blkid/blkid.h>
17570 if (blkid_get_cache(&cache, NULL) < 0)
17573 value = blkid_get_tag_value(cache, "TYPE",
17576 blkid_put_cache(cache);
17580 if (strcmp(value, "zfs")) {
17582 blkid_put_cache(cache);
17587 blkid_put_cache(cache);
17593 rm -f conftest$ac_exeext
17594 if { (ac_try="$ac_link"
17595 case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17600 $as_echo "$ac_try_echo") >&5
17601 (eval "$ac_link") 2>&5
17603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
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_try") 2>&5
17613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17617 { $as_echo "$as_me:$LINENO: result: yes" >&5
17618 $as_echo "yes" >&6; }
17622 cat >>confdefs.h <<\_ACEOF
17623 #define HAVE_LIBBLKID 1
17628 $as_echo "$as_me: program exited with status $ac_status" >&5
17629 $as_echo "$as_me: failed program was:" >&5
17630 sed 's
/^
/|
/' conftest.$ac_ext >&5
17632 ( exit $ac_status )
17635 { $as_echo "$as_me:$LINENO: result: no" >&5
17636 $as_echo "no" >&6; }
17637 if test "x$with_blkid" != xcheck; then
17638 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17639 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
17640 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17641 See \`config.log
' for more details." >&5
17642 $as_echo "$as_me: error: --with-blkid given but unavailable
17643 See \`config.log' for more details.
" >&2;}
17644 { (exit 1); exit 1; }; }; }
17649 rm -rf conftest.dSYM
17650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17655 LDFLAGS="$saved_LDFLAGS"
17659 if test "x
$with_blkid" != xcheck; then
17660 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
17661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17662 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17663 See \`config.log' for more details.
" >&5
17664 $as_echo "$as_me: error
: --with-blkid given but unavailable
17665 See \
`config.log' for more details." >&2;}
17666 { (exit 1); exit 1; }; }; }
17678 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17679 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17681 saved_flags="$CFLAGS"
17682 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17684 if test "$cross_compiling" = yes; then
17685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17687 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
17688 See \
`config.log' for more details." >&5
17689 $as_echo "$as_me: error: cannot run test program while cross compiling
17690 See \`config.log
' for more details." >&2;}
17691 { (exit 1); exit 1; }; }; }
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17708 rm -f conftest$ac_exeext
17709 if { (ac_try="$ac_link"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17715 $as_echo "$ac_try_echo") >&5
17716 (eval "$ac_link") 2>&5
17718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17725 $as_echo "$ac_try_echo") >&5
17726 (eval "$ac_try") 2>&5
17728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17731 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17732 { $as_echo "$as_me:$LINENO: result: yes" >&5
17733 $as_echo "yes" >&6; }
17736 $as_echo "$as_me: program exited with status $ac_status" >&5
17737 $as_echo "$as_me: failed program was:" >&5
17738 sed 's
/^
/|
/' conftest.$ac_ext >&5
17740 ( exit $ac_status )
17743 { $as_echo "$as_me:$LINENO: result: no" >&5
17744 $as_echo "no" >&6; }
17747 rm -rf conftest.dSYM
17748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17753 CFLAGS="$saved_flags"
17758 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17759 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
17761 saved_CFLAGS="$CFLAGS"
17762 CFLAGS="-fstack-check"
17763 saved_LDFLAGS="$LDFLAGS"
17764 LDFLAGS="-lpthread"
17766 if test "$cross_compiling" = yes; then
17767 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17768 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
17769 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17770 See \`config.log
' for more details." >&5
17771 $as_echo "$as_me: error: cannot run test program while cross compiling
17772 See \`config.log' for more details.
" >&2;}
17773 { (exit 1); exit 1; }; }; }
17775 cat >conftest.$ac_ext <<_ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17782 #include <pthread.h>
17783 #include <sys/resource.h>
17784 #include <unistd.h>
17785 #include <bits/local_lim.h>
17787 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17788 #define STACK_SIZE 8192
17789 #define BUFSIZE 4096
17791 void * func(void *arg)
17801 pthread_attr_t attr;
17806 setrlimit(RLIMIT_CORE, &l);
17807 pthread_attr_init(&attr);
17808 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17809 pthread_attr_setguardsize(&attr, PAGESIZE);
17810 pthread_create(&tid, &attr, func, NULL);
17811 pthread_join(tid, NULL);
17817 rm -f conftest$ac_exeext
17818 if { (ac_try="$ac_link"
17819 case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17823 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17824 $as_echo "$ac_try_echo") >&5
17825 (eval "$ac_link") 2>&5
17827 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17833 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17834 $as_echo "$ac_try_echo") >&5
17835 (eval "$ac_try") 2>&5
17837 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17838 (exit $ac_status); }; }; then
17840 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17841 $as_echo "no
" >&6; }
17844 $as_echo "$as_me: program exited with status
$ac_status" >&5
17845 $as_echo "$as_me: failed program was
:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ( exit $ac_status )
17851 cat >>confdefs.h <<\_ACEOF
17852 #define NPTL_GUARD_WITHIN_STACK 1
17855 { $as_echo "$as_me:$LINENO: result
: yes" >&5
17856 $as_echo "yes" >&6; }
17859 rm -rf conftest.dSYM
17860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17864 CFLAGS="$saved_CFLAGS"
17865 LDFLAGS="$saved_LDFLAGS"
17870 { $as_echo "$as_me:$LINENO: result
: Error
!" >&5
17871 $as_echo "Error
!" >&6; }
17872 { { $as_echo "$as_me:$LINENO: error
: Bad value
\"$ZFS_CONFIG\" for --with-config,
17873 user kernel|user|all|srpm
" >&5
17874 $as_echo "$as_me: error
: Bad value
\"$ZFS_CONFIG\" for --with-config,
17875 user kernel|user|all|srpm
" >&2;}
17876 { (exit 1); exit 1; }; } ;;
17879 if test "$ZFS_CONFIG" = user ||
17880 test "$ZFS_CONFIG" = all; then
17882 CONFIG_USER_FALSE='#'
17884 CONFIG_USER_TRUE='#'
17888 if test "$ZFS_CONFIG" = kernel ||
17889 test "$ZFS_CONFIG" = all; then
17890 CONFIG_KERNEL_TRUE=
17891 CONFIG_KERNEL_FALSE='#'
17893 CONFIG_KERNEL_TRUE='#'
17894 CONFIG_KERNEL_FALSE=
17899 cat >.script-config <<EOF
17901 KERNELBUILD=${LINUX_OBJ}
17902 KERNELSRCVER=${LINUX_VERSION}
17903 KERNELMOD=/lib/modules/\${KERNELSRCVER}/kernel
17906 SPLBUILD=${SPL_OBJ}
17907 SPLSRCVER=${SPL_VERSION}
17910 BUILDDIR=${BUILDDIR}
17914 SCRIPTDIR=${SCRIPTDIR}
17915 ETCDIR=\${TOPDIR}/etc
17916 DEVDIR=\${TOPDIR}/dev
17917 ZPOOLDIR=\${TOPDIR}/scripts/zpool-config
17918 ZPIOSDIR=\${TOPDIR}/scripts/zpios-test
17919 ZPIOSPROFILEDIR=\${TOPDIR}/scripts/zpios-profile
17921 ZDB=\${CMDDIR}/zdb/zdb
17922 ZFS=\${CMDDIR}/zfs/zfs
17923 ZINJECT=\${CMDDIR}/zinject/zinject
17924 ZPOOL=\${CMDDIR}/zpool/zpool
17925 ZPOOL_ID=\${CMDDIR}/zpool_id/zpool_id
17926 ZTEST=\${CMDDIR}/ztest/ztest
17927 ZPIOS=\${CMDDIR}/zpios/zpios
17929 COMMON_SH=\${SCRIPTDIR}/common.sh
17930 ZFS_SH=\${SCRIPTDIR}/zfs.sh
17931 ZPOOL_CREATE_SH=\${SCRIPTDIR}/zpool-create.sh
17932 ZPIOS_SH=\${SCRIPTDIR}/zpios.sh
17933 ZPIOS_SURVEY_SH=\${SCRIPTDIR}/zpios-survey.sh
17938 KERNEL_MODULES=( \\
17939 \${KERNELMOD}/lib/zlib_deflate/zlib_deflate.ko \\
17943 \${SPLBUILD}/spl/spl.ko \\
17944 \${SPLBUILD}/splat/splat.ko \\
17948 \${MODDIR}/avl/zavl.ko \\
17949 \${MODDIR}/nvpair/znvpair.ko \\
17950 \${MODDIR}/unicode/zunicode.ko \\
17951 \${MODDIR}/zcommon/zcommon.ko \\
17952 \${MODDIR}/zfs/zfs.ko \\
17956 \${MODDIR}/zpios/zpios.ko \\
17960 \${KERNEL_MODULES[*]} \\
17961 \${SPL_MODULES[*]} \\
17962 \${ZFS_MODULES[*]} \\
17968 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled
" >&5
17969 $as_echo_n "checking whether debugging is enabled...
" >&6; }
17970 # Check whether --enable-debug was given.
17971 if test "${enable_debug+set}" = set; then
17972 enableval=$enable_debug;
17978 if test "x
$enable_debug" = xyes; then
17980 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
17981 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
17982 DEBUG_CFLAGS="-DDEBUG -Werror"
17983 DEBUG_STACKFLAGS="-fstack-check"
17987 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
17988 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
17989 DEBUG_CFLAGS="-DNDEBUG"
17990 DEBUG_STACKFLAGS=""
17997 { $as_echo "$as_me:$LINENO: result
: $enable_debug" >&5
17998 $as_echo "$enable_debug" >&6; }
18001 ac_config_files="$ac_config_files Makefile config
/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
/libavl
/Makefile lib
/libefi
/Makefile lib
/libnvpair
/Makefile lib
/libunicode
/Makefile lib
/libuutil
/Makefile lib
/libzpool
/Makefile lib
/libzpool
/include
/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
scripts
/Makefile
scripts
/common.sh zfs.spec zfs-modules.spec
"
18004 cat >confcache <<\_ACEOF
18005 # This file is a shell script that caches the results of configure
18006 # tests run on this system so they can be shared between configure
18007 # scripts and configure runs, see configure's option --config-cache.
18008 # It is not useful on other systems. If it contains results you don't
18009 # want to keep, you may remove or edit it.
18011 # config.status only pays attention to the cache file if you give it
18012 # the --recheck option to rerun configure.
18014 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18015 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18016 # following values.
18020 # The following way of writing the cache mishandles newlines in values,
18021 # but we know of no workaround that is simple, portable, and efficient.
18022 # So, we kill variables containing newlines.
18023 # Ultrix sh set writes to stderr and can't be redirected directly,
18024 # and sets the high bit in the cache file unless we assign to the vars.
18026 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18027 eval ac_val=\$$ac_var
18031 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: cache variable
$ac_var contains a newline
" >&5
18032 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18035 _ | IFS | as_nl) ;; #(
18036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18037 *) $as_unset $ac_var ;;
18043 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18044 *${as_nl}ac_space=\ *)
18045 # `set' does not quote correctly, so add quotes (double-quote
18046 # substitution turns \\\\ into \\, and sed turns \\ into \).
18049 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18052 # `set' quotes correctly as required by POSIX, so do not add quotes.
18053 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18062 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18064 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18066 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18067 if test -w "$cache_file"; then
18068 test "x
$cache_file" != "x
/dev
/null
" &&
18069 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
18070 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18071 cat confcache >$cache_file
18073 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
18074 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18079 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18080 # Let make expand exec_prefix.
18081 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18083 DEFS=-DHAVE_CONFIG_H
18087 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
18088 # 1. Remove the extension, and $U if already installed.
18089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18090 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18092 # will be set to the directory where LIBOBJS objects are built.
18093 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
18094 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
18096 LIBOBJS=$ac_libobjs
18098 LTLIBOBJS=$ac_ltlibobjs
18101 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18102 { { $as_echo "$as_me:$LINENO: error
: conditional
\"MAINTAINER_MODE
\" was never defined.
18103 Usually this means the macro was only invoked conditionally.
" >&5
18104 $as_echo "$as_me: error
: conditional
\"MAINTAINER_MODE
\" was never defined.
18105 Usually this means the macro was only invoked conditionally.
" >&2;}
18106 { (exit 1); exit 1; }; }
18108 if test -n "$EXEEXT"; then
18110 am__EXEEXT_FALSE='#'
18112 am__EXEEXT_TRUE='#'
18116 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18117 { { $as_echo "$as_me:$LINENO: error
: conditional
\"AMDEP
\" was never defined.
18118 Usually this means the macro was only invoked conditionally.
" >&5
18119 $as_echo "$as_me: error
: conditional
\"AMDEP
\" was never defined.
18120 Usually this means the macro was only invoked conditionally.
" >&2;}
18121 { (exit 1); exit 1; }; }
18123 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18124 { { $as_echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCC
\" was never defined.
18125 Usually this means the macro was only invoked conditionally.
" >&5
18126 $as_echo "$as_me: error
: conditional
\"am__fastdepCC
\" was never defined.
18127 Usually this means the macro was only invoked conditionally.
" >&2;}
18128 { (exit 1); exit 1; }; }
18130 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18131 { { $as_echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCCAS
\" was never defined.
18132 Usually this means the macro was only invoked conditionally.
" >&5
18133 $as_echo "$as_me: error
: conditional
\"am__fastdepCCAS
\" was never defined.
18134 Usually this means the macro was only invoked conditionally.
" >&2;}
18135 { (exit 1); exit 1; }; }
18137 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18138 { { $as_echo "$as_me:$LINENO: error
: conditional
\"CONFIG_USER
\" was never defined.
18139 Usually this means the macro was only invoked conditionally.
" >&5
18140 $as_echo "$as_me: error
: conditional
\"CONFIG_USER
\" was never defined.
18141 Usually this means the macro was only invoked conditionally.
" >&2;}
18142 { (exit 1); exit 1; }; }
18144 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18145 { { $as_echo "$as_me:$LINENO: error
: conditional
\"CONFIG_KERNEL
\" was never defined.
18146 Usually this means the macro was only invoked conditionally.
" >&5
18147 $as_echo "$as_me: error
: conditional
\"CONFIG_KERNEL
\" was never defined.
18148 Usually this means the macro was only invoked conditionally.
" >&2;}
18149 { (exit 1); exit 1; }; }
18152 : ${CONFIG_STATUS=./config.status}
18154 ac_clean_files_save=$ac_clean_files
18155 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18156 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
18157 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
18158 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160 # Generated by $as_me.
18161 # Run this file to recreate the current configuration.
18162 # Compiler output produced by configure, useful for debugging
18163 # configure, is in config.log if it exists.
18166 ac_cs_recheck=false
18168 SHELL=\${CONFIG_SHELL-$SHELL}
18171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18172 ## --------------------- ##
18173 ## M4sh Initialization. ##
18174 ## --------------------- ##
18176 # Be more Bourne compatible
18177 DUALCASE=1; export DUALCASE # for MKS sh
18178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18181 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18182 # is contrary to our usage. Disable this feature.
18183 alias -g '${1+"$@"}'='"$@
"'
18184 setopt NO_GLOB_SUBST
18186 case `(set -o) 2>/dev/null` in
18187 *posix*) set -o posix ;;
18196 # Avoid depending upon Character Ranges.
18197 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18198 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18199 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18200 as_cr_digits='0123456789'
18201 as_cr_alnum=$as_cr_Letters$as_cr_digits
18206 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18207 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18209 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18210 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
18211 as_echo='printf %s\n'
18212 as_echo_n='printf %s'
18214 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
18215 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18216 as_echo_n='/usr/ucb/echo -n'
18218 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
18219 as_echo_n_body='eval
18223 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
18224 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
18226 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
18228 export as_echo_n_body
18229 as_echo_n='sh -c $as_echo_n_body as_echo'
18231 export as_echo_body
18232 as_echo='sh -c $as_echo_body as_echo'
18235 # The user is always right.
18236 if test "${PATH_SEPARATOR+set}" != set; then
18238 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18239 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18244 # Support unset when possible.
18245 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18253 # We need space, tab and new line, in precisely that order. Quoting is
18254 # there to prevent editors from complaining about space-tab.
18255 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18256 # splitting by setting IFS to empty value.)
18259 # Find who we are. Look in the path if we contain no directory separator.
18261 *[\\/]* ) as_myself=$0 ;;
18262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18263 for as_dir in $PATH
18266 test -z "$as_dir" && as_dir=.
18267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18273 # We did not find ourselves, most probably we were run as `sh COMMAND'
18274 # in which case we are not to be found in the path.
18275 if test "x
$as_myself" = x; then
18278 if test ! -f "$as_myself"; then
18279 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
18280 { (exit 1); exit 1; }
18283 # Work around bugs in pre-3.0 UWIN ksh.
18284 for as_var in ENV MAIL MAILPATH
18285 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18297 # Required to use basename.
18298 if expr a : '\(a\)' >/dev/null 2>&1 &&
18299 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
18305 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
18306 as_basename=basename
18312 # Name of the executable.
18313 as_me=`$as_basename -- "$0" ||
18314 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18315 X"$0" : 'X\(//\)$' \| \
18316 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18318 sed '/^.*\/\([^/][^/]*\)\/*$/{
18337 as_lineno_1=$LINENO
18338 as_lineno_2=$LINENO
18339 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
18340 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
18342 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18343 # uniformly replaced by the line number. The first 'sed' inserts a
18344 # line-number line after each line using $LINENO; the second 'sed'
18345 # does the real work. The second script uses 'N' to pair each
18346 # line-number line with the line containing $LINENO, and appends
18347 # trailing '-' during substitution so that $LINENO is not a special
18348 # case at line end.
18349 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18350 # scripts with optimization help from Paolo Bonzini. Blame Lee
18351 # E. McMahon (1931-1989) for sed's syntax. :-)
18363 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18366 ' >$as_me.lineno &&
18367 chmod +x "$as_me.lineno
" ||
18368 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
18369 { (exit 1); exit 1; }; }
18371 # Don't try to exec as it changes $[0], causing all sort of problems
18372 # (the dirname of $[0] is not the place where we might find the
18373 # original and so on. Autoconf is especially sensitive to this).
18374 . ".
/$as_me.lineno
"
18375 # Exit status is that of the last command.
18380 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
18386 ECHO_C= ECHO_N= ECHO_T=
18387 case `echo -n x` in
18389 case `echo 'x\c'` in
18390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18396 if expr a : '\(a\)' >/dev/null 2>&1 &&
18397 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
18403 rm -f conf$$ conf$$.exe conf$$.file
18404 if test -d conf$$.dir; then
18405 rm -f conf$$.dir/conf$$.file
18408 mkdir conf$$.dir 2>/dev/null
18410 if (echo >conf$$.file) 2>/dev/null; then
18411 if ln -s conf$$.file conf$$ 2>/dev/null; then
18413 # ... but there are two gotchas:
18414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18416 # In both cases, we have to default to `cp -p'.
18417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18419 elif ln conf$$.file conf$$ 2>/dev/null; then
18427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18428 rmdir conf$$.dir 2>/dev/null
18430 if mkdir -p . 2>/dev/null; then
18433 test -d ./-p && rmdir ./-p
18437 if test -x / >/dev/null 2>&1; then
18438 as_test_x='test -x'
18440 if ls -dL / >/dev/null 2>&1; then
18447 if test -d "$1"; then
18453 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18454 ???[sx]*):;;*)false;;esac;fi
18458 as_executable_p=$as_test_x
18460 # Sed expression to map a string onto a valid CPP name.
18461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18463 # Sed expression to map a string onto a valid variable name.
18464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18469 # Save the log message, to keep $[0] and so on meaningful, and to
18470 # report actual input values of CONFIG_FILES etc. instead of their
18471 # values after options handling.
18473 This
file was extended by
$as_me, which was
18474 generated by GNU Autoconf
2.63. Invocation
command line was
18476 CONFIG_FILES
= $CONFIG_FILES
18477 CONFIG_HEADERS
= $CONFIG_HEADERS
18478 CONFIG_LINKS
= $CONFIG_LINKS
18479 CONFIG_COMMANDS
= $CONFIG_COMMANDS
18482 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
18487 case $ac_config_files in *"
18488 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18491 case $ac_config_headers in *"
18492 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18497 # Files that config.status was made for.
18498 config_files="$ac_config_files"
18499 config_headers="$ac_config_headers"
18500 config_commands="$ac_config_commands"
18504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18506 \
`$as_me' instantiates files from templates according to the
18507 current configuration.
18509 Usage: $0 [OPTION]... [FILE]...
18511 -h, --help print this help, then exit
18512 -V, --version print version number and configuration settings, then exit
18513 -q, --quiet, --silent
18514 do not print progress messages
18515 -d, --debug don't remove temporary files
18516 --recheck update $as_me by reconfiguring in the same conditions
18517 --file=FILE[:TEMPLATE]
18518 instantiate the configuration file FILE
18519 --header=FILE[:TEMPLATE]
18520 instantiate the configuration header FILE
18522 Configuration files:
18525 Configuration headers:
18528 Configuration commands:
18531 Report bugs to <bug-autoconf@gnu.org>."
18534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18537 configured by $0, generated by GNU Autoconf 2.63,
18538 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18540 Copyright (C) 2008 Free Software Foundation, Inc.
18541 This config.status script is free software; the Free Software Foundation
18542 gives unlimited permission to copy, distribute and modify it."
18549 test -n "\$AWK" || AWK=awk
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18553 # The default lists apply if the user does not specify any file.
18559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18560 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18571 # Handling of the options.
18572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18574 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18575 $as_echo "$ac_cs_version"; exit ;;
18576 --debug | --debu | --deb | --de | --d | -d )
18578 --file | --fil | --fi | --f )
18581 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
18583 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18584 ac_need_defaults=false;;
18585 --header | --heade | --head | --hea )
18588 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
18590 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18591 ac_need_defaults=false;;
18593 # Conflict between --help and --header
18594 { $as_echo "$as_me: error: ambiguous option: $1
18595 Try \`$0 --help' for more information." >&2
18596 { (exit 1); exit 1; }; };;
18597 --help | --hel | -h )
18598 $as_echo "$ac_cs_usage"; exit ;;
18599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18603 # This is an error.
18604 -*) { $as_echo "$as_me: error: unrecognized option: $1
18605 Try \`$0 --help' for more information.
" >&2
18606 { (exit 1); exit 1; }; } ;;
18608 *) ac_config_targets="$ac_config_targets $1"
18609 ac_need_defaults=false ;;
18615 ac_configure_extra_args=
18617 if $ac_cs_silent; then
18619 ac_configure_extra_args="$ac_configure_extra_args --silent"
18623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18624 if \$ac_cs_recheck; then
18625 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18627 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
18628 CONFIG_SHELL='$SHELL'
18629 export CONFIG_SHELL
18634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18638 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18639 ## Running $as_me. ##
18645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18649 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18652 # The HP-UX ksh and POSIX shell print the target directory to stdout
18653 # if CDPATH is set.
18654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18656 sed_quote_subst='$sed_quote_subst'
18657 double_quote_subst='$double_quote_subst'
18658 delay_variable_subst='$delay_variable_subst'
18659 macro_version='`$ECHO "X
$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18660 macro_revision='`$ECHO "X
$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18661 enable_shared='`$ECHO "X
$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18662 enable_static='`$ECHO "X
$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18663 pic_mode='`$ECHO "X
$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18664 enable_fast_install='`$ECHO "X
$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18665 host_alias='`$ECHO "X
$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18666 host='`$ECHO "X
$host" | $Xsed -e "$delay_single_quote_subst"`'
18667 host_os='`$ECHO "X
$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18668 build_alias='`$ECHO "X
$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18669 build='`$ECHO "X
$build" | $Xsed -e "$delay_single_quote_subst"`'
18670 build_os='`$ECHO "X
$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18671 SED='`$ECHO "X
$SED" | $Xsed -e "$delay_single_quote_subst"`'
18672 Xsed='`$ECHO "X
$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18673 GREP='`$ECHO "X
$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18674 EGREP='`$ECHO "X
$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18675 FGREP='`$ECHO "X
$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18676 LD='`$ECHO "X
$LD" | $Xsed -e "$delay_single_quote_subst"`'
18677 NM='`$ECHO "X
$NM" | $Xsed -e "$delay_single_quote_subst"`'
18678 LN_S='`$ECHO "X
$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18679 max_cmd_len='`$ECHO "X
$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18680 ac_objext='`$ECHO "X
$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18681 exeext='`$ECHO "X
$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18682 lt_unset='`$ECHO "X
$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18683 lt_SP2NL='`$ECHO "X
$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18684 lt_NL2SP='`$ECHO "X
$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18685 reload_flag='`$ECHO "X
$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18686 reload_cmds='`$ECHO "X
$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18687 OBJDUMP='`$ECHO "X
$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18688 deplibs_check_method='`$ECHO "X
$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18689 file_magic_cmd='`$ECHO "X
$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18690 AR='`$ECHO "X
$AR" | $Xsed -e "$delay_single_quote_subst"`'
18691 AR_FLAGS='`$ECHO "X
$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18692 STRIP='`$ECHO "X
$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18693 RANLIB='`$ECHO "X
$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18694 old_postinstall_cmds='`$ECHO "X
$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18695 old_postuninstall_cmds='`$ECHO "X
$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18696 old_archive_cmds='`$ECHO "X
$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18697 CC='`$ECHO "X
$CC" | $Xsed -e "$delay_single_quote_subst"`'
18698 CFLAGS='`$ECHO "X
$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18699 compiler='`$ECHO "X
$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18700 GCC='`$ECHO "X
$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18701 lt_cv_sys_global_symbol_pipe='`$ECHO "X
$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18702 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X
$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18703 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"`'
18704 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"`'
18705 objdir='`$ECHO "X
$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18706 SHELL='`$ECHO "X
$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18707 ECHO='`$ECHO "X
$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18708 MAGIC_CMD='`$ECHO "X
$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18709 lt_prog_compiler_no_builtin_flag='`$ECHO "X
$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18710 lt_prog_compiler_wl='`$ECHO "X
$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18711 lt_prog_compiler_pic='`$ECHO "X
$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18712 lt_prog_compiler_static='`$ECHO "X
$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18713 lt_cv_prog_compiler_c_o='`$ECHO "X
$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18714 need_locks='`$ECHO "X
$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18715 DSYMUTIL='`$ECHO "X
$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18716 NMEDIT='`$ECHO "X
$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18717 LIPO='`$ECHO "X
$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18718 OTOOL='`$ECHO "X
$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18719 OTOOL64='`$ECHO "X
$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18720 libext='`$ECHO "X
$libext" | $Xsed -e "$delay_single_quote_subst"`'
18721 shrext_cmds='`$ECHO "X
$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18722 extract_expsyms_cmds='`$ECHO "X
$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18723 archive_cmds_need_lc='`$ECHO "X
$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18724 enable_shared_with_static_runtimes='`$ECHO "X
$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18725 export_dynamic_flag_spec='`$ECHO "X
$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18726 whole_archive_flag_spec='`$ECHO "X
$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18727 compiler_needs_object='`$ECHO "X
$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18728 old_archive_from_new_cmds='`$ECHO "X
$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18729 old_archive_from_expsyms_cmds='`$ECHO "X
$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18730 archive_cmds='`$ECHO "X
$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18731 archive_expsym_cmds='`$ECHO "X
$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18732 module_cmds='`$ECHO "X
$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18733 module_expsym_cmds='`$ECHO "X
$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18734 with_gnu_ld='`$ECHO "X
$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18735 allow_undefined_flag='`$ECHO "X
$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18736 no_undefined_flag='`$ECHO "X
$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18737 hardcode_libdir_flag_spec='`$ECHO "X
$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18738 hardcode_libdir_flag_spec_ld='`$ECHO "X
$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18739 hardcode_libdir_separator='`$ECHO "X
$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18740 hardcode_direct='`$ECHO "X
$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18741 hardcode_direct_absolute='`$ECHO "X
$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18742 hardcode_minus_L='`$ECHO "X
$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18743 hardcode_shlibpath_var='`$ECHO "X
$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18744 hardcode_automatic='`$ECHO "X
$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18745 inherit_rpath='`$ECHO "X
$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18746 link_all_deplibs='`$ECHO "X
$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18747 fix_srcfile_path='`$ECHO "X
$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18748 always_export_symbols='`$ECHO "X
$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18749 export_symbols_cmds='`$ECHO "X
$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18750 exclude_expsyms='`$ECHO "X
$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18751 include_expsyms='`$ECHO "X
$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18752 prelink_cmds='`$ECHO "X
$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18753 file_list_spec='`$ECHO "X
$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18754 variables_saved_for_relink='`$ECHO "X
$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18755 need_lib_prefix='`$ECHO "X
$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18756 need_version='`$ECHO "X
$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18757 version_type='`$ECHO "X
$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18758 runpath_var='`$ECHO "X
$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18759 shlibpath_var='`$ECHO "X
$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18760 shlibpath_overrides_runpath='`$ECHO "X
$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18761 libname_spec='`$ECHO "X
$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18762 library_names_spec='`$ECHO "X
$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18763 soname_spec='`$ECHO "X
$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18764 postinstall_cmds='`$ECHO "X
$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18765 postuninstall_cmds='`$ECHO "X
$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18766 finish_cmds='`$ECHO "X
$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18767 finish_eval='`$ECHO "X
$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18768 hardcode_into_libs='`$ECHO "X
$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18769 sys_lib_search_path_spec='`$ECHO "X
$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18770 sys_lib_dlsearch_path_spec='`$ECHO "X
$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18771 hardcode_action='`$ECHO "X
$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18772 enable_dlopen='`$ECHO "X
$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18773 enable_dlopen_self='`$ECHO "X
$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18774 enable_dlopen_self_static='`$ECHO "X
$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18775 old_striplib='`$ECHO "X
$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18776 striplib='`$ECHO "X
$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18779 LTCFLAGS='$LTCFLAGS'
18780 compiler='$compiler_DEFAULT'
18782 # Quote evaled strings.
18794 deplibs_check_method \
18803 lt_cv_sys_global_symbol_pipe \
18804 lt_cv_sys_global_symbol_to_cdecl \
18805 lt_cv_sys_global_symbol_to_c_name_address \
18806 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18809 lt_prog_compiler_no_builtin_flag \
18810 lt_prog_compiler_wl \
18811 lt_prog_compiler_pic \
18812 lt_prog_compiler_static \
18813 lt_cv_prog_compiler_c_o \
18821 export_dynamic_flag_spec \
18822 whole_archive_flag_spec \
18823 compiler_needs_object \
18825 allow_undefined_flag \
18826 no_undefined_flag \
18827 hardcode_libdir_flag_spec \
18828 hardcode_libdir_flag_spec_ld \
18829 hardcode_libdir_separator \
18834 variables_saved_for_relink \
18836 library_names_spec \
18841 case \`eval \\\\\$ECHO "X
\\\\\$\
$var"\` in
18842 *[\\\\\\\`\\"\\\$
]*)
18843 eval "lt_\$var=\\\\\\"\\\
`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18846 eval "lt_\$var=\\\\\\"\\\$\
$var\\\\\\""
18851 # Double-quote double-evaled strings.
18852 for var
in reload_cmds \
18853 old_postinstall_cmds \
18854 old_postuninstall_cmds \
18856 extract_expsyms_cmds \
18857 old_archive_from_new_cmds \
18858 old_archive_from_expsyms_cmds \
18860 archive_expsym_cmds \
18862 module_expsym_cmds \
18863 export_symbols_cmds \
18866 postuninstall_cmds \
18868 sys_lib_search_path_spec \
18869 sys_lib_dlsearch_path_spec
; do
18870 case \
`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18871 *[\\\\\\\
`\\"\\\$]*)
18872 eval "lt_\$var=\\\\\\"\\\`\\\
$ECHO \\"X\\\$\$var\\" |
\\\
$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\
`\\\\\\""
18875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18880 # Fix-up fallback echo if it was mangled by the above quoting rules.
18882 *'\\\$0 --fallback-echo"') lt_ECHO=\`\
$ECHO "X\$lt_ECHO" | \
$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\
`
18886 ac_aux_dir='$ac_aux_dir'
18887 xsi_shell='$xsi_shell'
18888 lt_shell_append='$lt_shell_append'
18890 # See if we are running on zsh, and set the options which allow our
18891 # commands through without removal of \ escapes INIT.
18892 if test -n "\${ZSH_VERSION+set}" ; then
18893 setopt NO_GLOB_SUBST
18899 TIMESTAMP='$TIMESTAMP'
18908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18910 # Handling of arguments.
18911 for ac_config_target in $ac_config_targets
18913 case $ac_config_target in
18914 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
18915 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18916 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18917 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18918 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
18919 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
18920 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18921 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
18922 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18923 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
18924 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
18925 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
18926 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
18927 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
18928 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
18929 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
18930 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
18931 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
18932 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
18933 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
18934 "lib/libzpool/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/include/Makefile" ;;
18935 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
18936 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
18937 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
18938 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
18939 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
18940 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
18941 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
18942 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
18943 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
18944 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
18945 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
18946 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
18947 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
18948 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
18949 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
18950 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
18951 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
18952 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18953 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
18954 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
18955 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
18957 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18958 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18959 { (exit 1); exit 1; }; };;
18964 # If the user did not use the arguments to specify the items to instantiate,
18965 # then the envvar interface is used. Set only those that are not.
18966 # We use the long form for the default assignment because of an extremely
18967 # bizarre bug on SunOS 4.1.3.
18968 if $ac_need_defaults; then
18969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18974 # Have a temporary directory for convenience. Make it in the build tree
18975 # simply because there is no reason against having it here, and in addition,
18976 # creating and moving files from /tmp can sometimes cause problems.
18977 # Hook for its removal unless debugging.
18978 # Note that there is a small window in which the directory will not be cleaned:
18979 # after its creation but before its name has been assigned to `$tmp'.
18983 trap 'exit_status
=$?
18984 { test -z "$tmp" ||
test ! -d "$tmp" ||
rm -fr "$tmp"; } && exit $exit_status
18986 trap '{ (exit 1); exit 1; }' 1 2 13 15
18988 # Create a (secure) tmp directory for tmp files.
18991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18992 test -n "$tmp" && test -d "$tmp"
18995 tmp=./conf$$-$RANDOM
18996 (umask 077 && mkdir "$tmp")
18999 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19000 { (exit 1); exit 1; }
19003 # Set up the scripts for CONFIG_FILES section.
19004 # No need to generate them if there are no CONFIG_FILES.
19005 # This happens for instance with `./config.status config.h'.
19006 if test -n "$CONFIG_FILES"; then
19010 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19014 ac_cs_awk_cr
=$ac_cr
19017 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19022 echo "cat >conf$$subs.awk <<_ACEOF" &&
19023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19025 } >conf$$subs.sh ||
19026 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19027 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19028 { (exit 1); exit 1; }; }
19029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19031 for ac_last_try in false false false false false :; do
19032 . ./conf$$subs.sh ||
19033 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19034 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19035 { (exit 1); exit 1; }; }
19037 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19038 if test $ac_delim_n = $ac_delim_num; then
19040 elif $ac_last_try; then
19041 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
19042 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
19043 { (exit 1); exit 1; }; }
19045 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19048 rm -f conf$$subs.sh
19050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19051 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
19055 s/^/S["/; s
/!.
*/"]=/
19065 s/\(.\{148\}\).*/\1/
19067 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19072 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19079 s/\(.\{148\}\).*/\1/
19081 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19085 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19090 ' <conf$$subs.awk | sed '
19095 ' >>$CONFIG_STATUS || ac_write_fail=1
19096 rm -f conf$$subs.awk
19097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19099 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
19100 for (key in S) S_is_set[key] = 1
19106 nfields = split(line, field, "@
")
19108 len = length(field[1])
19109 for (i = 2; i < nfields; i++) {
19111 keylen = length(key)
19112 if (S_is_set[key]) {
19114 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19115 len += length(value) + length(field[++i])
19126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19127 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19128 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19131 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
19132 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
19133 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
19134 { (exit 1); exit 1; }; }
19137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
19139 # trailing colons and then remove the whole line if VPATH becomes empty
19140 # (actually we leave an empty line to preserve line numbers).
19141 if test "x
$srcdir" = x.; then
19142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19143 s/:*\$(srcdir):*/:/
19144 s/:*\${srcdir}:*/:/
19146 s/^\([^=]*=[ ]*\):*/\1/
19152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19153 fi # test -n "$CONFIG_FILES"
19155 # Set up the scripts for CONFIG_HEADERS section.
19156 # No need to generate them if there are no CONFIG_HEADERS.
19157 # This happens for instance with `./config.status Makefile'.
19158 if test -n "$CONFIG_HEADERS"; then
19159 cat >"$tmp/defines.
awk" <<\_ACAWK ||
19163 # Transform confdefs.h into an awk script `defines.awk', embedded as
19164 # here-document in config.status, that substitutes the proper values into
19165 # config.h.in to produce config.h.
19167 # Create a delimiter string that does not exist in confdefs.h, to ease
19168 # handling of long lines.
19170 for ac_last_try in false false :; do
19171 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
19172 if test -z "$ac_t"; then
19174 elif $ac_last_try; then
19175 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
19176 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
19177 { (exit 1); exit 1; }; }
19179 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19183 # For the awk script, D is an array of macro values keyed by name,
19184 # likewise P contains macro parameters if any. Preserve backslash
19185 # newline sequences.
19187 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19189 s/.\{148\}/&'"$ac_delim"'/g
19192 s/^[ ]*#[ ]*define[ ][ ]*/ /
19199 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19201 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
19205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
19206 D["\
1"]=" \
3\\\\\\n
"\\/p
19208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
19213 s/.\{148\}/&'"$ac_delim"'/g
19218 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
19221 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
19223 ' <confdefs.h | sed '
19224 s/'"$ac_delim"'/"\\\
19225 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19228 for (key in D) D_is_set[key] = 1
19231 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19233 split(line, arg, " ")
19234 if (arg[1] == "#") {
19238 defundef
= substr
(arg
[1], 2)
19241 split(mac1
, mac2
, "(") #)
19243 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
19244 if (D_is_set
[macro
]) {
19245 # Preserve the white space surrounding the "#".
19246 print prefix
"define", macro P
[macro
] D
[macro
]
19249 # Replace #undef with comments. This is necessary, for example,
19250 # in the case of _POSIX_SOURCE, which is predefined and required
19251 # on some systems where configure will not decide to define it.
19252 if (defundef
== "undef") {
19253 print
"/*", prefix defundef
, macro
, "*/"
19261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19262 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19263 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19264 { (exit 1); exit 1; }; }
19265 fi # test -n "$CONFIG_HEADERS"
19268 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19273 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19275 case $ac_mode$ac_tag in
19277 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19278 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19279 { (exit 1); exit 1; }; };;
19280 :[FH
]-) ac_tag
=-:-;;
19281 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19298 -) ac_f
="$tmp/stdin";;
19299 *) # Look for the file first in the build tree, then in the source tree
19300 # (if the path is not absolute). The absolute path cannot be DOS-style,
19301 # because $ac_f cannot contain `:'.
19305 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19307 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19308 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19309 { (exit 1); exit 1; }; };;
19311 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19312 ac_file_inputs
="$ac_file_inputs '$ac_f'"
19315 # Let's still pretend it is `configure' which instantiates (i.e., don't
19316 # use $as_me), people would be surprised to read:
19317 # /* config.h. Generated by config.status. */
19318 configure_input
='Generated from '`
19319 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19321 if test x
"$ac_file" != x-
; then
19322 configure_input
="$ac_file. $configure_input"
19323 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19324 $as_echo "$as_me: creating $ac_file" >&6;}
19326 # Neutralize special characters interpreted by sed in replacement strings.
19327 case $configure_input in #(
19328 *\
&* |
*\|
* |
*\\* )
19329 ac_sed_conf_input
=`$as_echo "$configure_input" |
19330 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19331 *) ac_sed_conf_input
=$configure_input;;
19335 *:-:* |
*:-) cat >"$tmp/stdin" \
19336 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19338 { (exit 1); exit 1; }; } ;;
19343 ac_dir
=`$as_dirname -- "$ac_file" ||
19344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19345 X"$ac_file" : 'X\(//\)[^/]' \| \
19346 X"$ac_file" : 'X\(//\)$' \| \
19347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19348 $as_echo X"$ac_file" |
19349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19353 /^X\(\/\/\)[^/].*/{
19368 -*) as_dir
=.
/$as_dir;;
19370 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
19374 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19375 *) as_qdir
=$as_dir;;
19377 as_dirs
="'$as_qdir' $as_dirs"
19378 as_dir
=`$as_dirname -- "$as_dir" ||
19379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19380 X"$as_dir" : 'X\(//\)[^/]' \| \
19381 X"$as_dir" : 'X\(//\)$' \| \
19382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19383 $as_echo X"$as_dir" |
19384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19388 /^X\(\/\/\)[^/].*/{
19401 test -d "$as_dir" && break
19403 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19404 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19405 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19406 { (exit 1); exit 1; }; }; }
19410 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19412 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19413 # A ".." for each directory in $ac_dir_suffix.
19414 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19415 case $ac_top_builddir_sub in
19416 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19417 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19420 ac_abs_top_builddir
=$ac_pwd
19421 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19422 # for backward compatibility:
19423 ac_top_builddir
=$ac_top_build_prefix
19426 .
) # We are building in place.
19428 ac_top_srcdir
=$ac_top_builddir_sub
19429 ac_abs_top_srcdir
=$ac_pwd ;;
19430 [\\/]* | ?
:[\\/]* ) # Absolute name.
19431 ac_srcdir
=$srcdir$ac_dir_suffix;
19432 ac_top_srcdir
=$srcdir
19433 ac_abs_top_srcdir
=$srcdir ;;
19434 *) # Relative name.
19435 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19436 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19437 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19439 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19449 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19450 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19452 ac_MKDIR_P
=$MKDIR_P
19454 [\\/$
]* | ?
:[\\/]* ) ;;
19455 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19460 # If the template does not know about datarootdir, expand it.
19461 # FIXME: This hack should be removed a few years after 2.60.
19462 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19475 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19476 *datarootdir
*) ac_datarootdir_seen
=yes;;
19477 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19478 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19479 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19482 ac_datarootdir_hack='
19483 s&@datadir@&$datadir&g
19484 s&@docdir@&$docdir&g
19485 s&@infodir@&$infodir&g
19486 s&@localedir@&$localedir&g
19487 s&@mandir@&$mandir&g
19488 s&\\\${datarootdir}&$datarootdir&g' ;;
19492 # Neutralize VPATH when `$srcdir' = `.'.
19493 # Shell code in configure.ac might set extrasub.
19494 # FIXME: do we really want to maintain this feature?
19495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496 ac_sed_extra="$ac_vpsub
19499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19501 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19502 s|@configure_input@|
$ac_sed_conf_input|
;t t
19503 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19504 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19505 s
&@srcdir@
&$ac_srcdir&;t t
19506 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19507 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19508 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19509 s
&@builddir@
&$ac_builddir&;t t
19510 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19511 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19512 s
&@INSTALL@
&$ac_INSTALL&;t t
19513 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19514 $ac_datarootdir_hack
19516 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
19517 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
19518 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
19519 { (exit 1); exit 1; }; }
19521 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19522 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
19523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19524 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19525 which seems to be undefined. Please make sure it is defined." >&5
19526 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19527 which seems to be undefined. Please make sure it is defined." >&2;}
19531 -) cat "$tmp/out" && rm -f "$tmp/out";;
19532 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19534 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19535 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19536 { (exit 1); exit 1; }; }
19542 if test x"$ac_file" != x-; then
19544 $as_echo "/* $configure_input */" \
19545 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19546 } >"$tmp/config.h" \
19547 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19548 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19549 { (exit 1); exit 1; }; }
19550 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19551 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19552 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19555 mv "$tmp/config.h" "$ac_file" \
19556 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19557 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19558 { (exit 1); exit 1; }; }
19561 $as_echo "/* $configure_input */" \
19562 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19563 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19564 $as_echo "$as_me: error: could not create -" >&2;}
19565 { (exit 1); exit 1; }; }
19567 # Compute "$ac_file"'s index
in $config_headers.
19570 for _am_header
in $config_headers :; do
19571 case $_am_header in
19572 $_am_arg |
$_am_arg:* )
19575 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19578 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19579 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19580 X"$_am_arg" : 'X\(//\)[^/]' \| \
19581 X"$_am_arg" : 'X\(//\)$' \| \
19582 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19583 $as_echo X"$_am_arg" |
19584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19588 /^X\(\/\/\)[^/].*/{
19600 s/.*/./; q'`/stamp-h
$_am_stamp_count
19603 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19604 $as_echo "$as_me: executing $ac_file commands" >&6;}
19609 case $ac_file$ac_mode in
19611 (mv zfs_config.h zfs_config.h.tmp
&&
19612 awk -f config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
19613 rm zfs_config.h.tmp
) ||
exit 1 ;;
19614 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19615 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19616 # are listed without --file. Let's play safe and only enable the eval
19617 # if we detect the quoting.
19618 case $CONFIG_FILES in
19619 *\'*) eval set x
"$CONFIG_FILES" ;;
19620 *) set x
$CONFIG_FILES ;;
19625 # Strip MF so we end up with the name of the file.
19626 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19627 # Check whether this is an Automake generated Makefile or not.
19628 # We used to match only the files named `Makefile.in', but
19629 # some people rename them; so instead we look at the file content.
19630 # Grep'ing the first line is not enough: some people post-process
19631 # each Makefile.in and add a new line on top of each file to say so.
19632 # Grep'ing the whole file is not good either: AIX grep has a line
19633 # limit of 2048, but all sed's we know have understand at least 4000.
19634 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19635 dirpart
=`$as_dirname -- "$mf" ||
19636 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637 X"$mf" : 'X\(//\)[^/]' \| \
19638 X"$mf" : 'X\(//\)$' \| \
19639 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19645 /^X\(\/\/\)[^/].*/{
19661 # Extract the definition of DEPDIR, am__include, and am__quote
19662 # from the Makefile without running `make'.
19663 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19664 test -z "$DEPDIR" && continue
19665 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19666 test -z "am__include" && continue
19667 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19668 # When using ansi2knr, U may be empty or an underscore; expand it
19669 U
=`sed -n 's/^U = //p' < "$mf"`
19670 # Find all dependency output files, they are included files with
19671 # $(DEPDIR) in their names. We invoke sed twice because it is the
19672 # simplest approach to changing $(DEPDIR) to its actual value in the
19674 for file in `sed -n "
19675 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19676 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19677 # Make sure the directory exists.
19678 test -f "$dirpart/$file" && continue
19679 fdir
=`$as_dirname -- "$file" ||
19680 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19681 X"$file" : 'X\(//\)[^/]' \| \
19682 X"$file" : 'X\(//\)$' \| \
19683 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19684 $as_echo X"$file" |
19685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19689 /^X\(\/\/\)[^/].*/{
19702 { as_dir
=$dirpart/$fdir
19704 -*) as_dir
=.
/$as_dir;;
19706 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
19710 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19711 *) as_qdir
=$as_dir;;
19713 as_dirs
="'$as_qdir' $as_dirs"
19714 as_dir
=`$as_dirname -- "$as_dir" ||
19715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19716 X"$as_dir" : 'X\(//\)[^/]' \| \
19717 X"$as_dir" : 'X\(//\)$' \| \
19718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19719 $as_echo X"$as_dir" |
19720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19724 /^X\(\/\/\)[^/].*/{
19737 test -d "$as_dir" && break
19739 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19740 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19741 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19742 { (exit 1); exit 1; }; }; }
19743 # echo "creating $dirpart/$file"
19744 echo '# dummy' > "$dirpart/$file"
19751 # See if we are running on zsh, and set the options which allow our
19752 # commands through without removal of \ escapes.
19753 if test -n "${ZSH_VERSION+set}" ; then
19754 setopt NO_GLOB_SUBST
19757 cfgfile
="${ofile}T"
19758 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19761 cat <<_LT_EOF >> "$cfgfile"
19764 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19765 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19766 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19767 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19769 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19770 # 2006, 2007, 2008 Free Software Foundation, Inc.
19771 # Written by Gordon Matzigkeit, 1996
19773 # This file is part of GNU Libtool.
19775 # GNU Libtool is free software; you can redistribute it and/or
19776 # modify it under the terms of the GNU General Public License as
19777 # published by the Free Software Foundation; either version 2 of
19778 # the License, or (at your option) any later version.
19780 # As a special exception to the GNU General Public License,
19781 # if you distribute this file as part of a program or library that
19782 # is built using GNU Libtool, you may include this file under the
19783 # same distribution terms that you use for the rest of that program.
19785 # GNU Libtool is distributed in the hope that it will be useful,
19786 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19787 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19788 # GNU General Public License for more details.
19790 # You should have received a copy of the GNU General Public License
19791 # along with GNU Libtool; see the file COPYING. If not, a copy
19792 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19793 # obtained by writing to the Free Software Foundation, Inc.,
19794 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19797 # The names of the tagged configurations supported by this script.
19800 # ### BEGIN LIBTOOL CONFIG
19802 # Which release of libtool.m4 was used?
19803 macro_version=$macro_version
19804 macro_revision=$macro_revision
19806 # Whether or not to build shared libraries.
19807 build_libtool_libs=$enable_shared
19809 # Whether or not to build static libraries.
19810 build_old_libs=$enable_static
19812 # What type of objects to build.
19815 # Whether or not to optimize for fast installation.
19816 fast_install=$enable_fast_install
19819 host_alias=$host_alias
19823 # The build system.
19824 build_alias=$build_alias
19828 # A sed program that does not truncate output.
19831 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19832 Xsed="\$SED -e 1s/^X//"
19834 # A grep program that handles long lines.
19840 # A literal string matcher.
19843 # A BSD- or MS-compatible name lister.
19846 # Whether we need soft or hard links.
19849 # What is the maximum length of a command?
19850 max_cmd_len=$max_cmd_len
19852 # Object file suffix (normally "o").
19855 # Executable file suffix (normally "").
19858 # whether the shell understands "unset".
19861 # turn spaces into newlines.
19864 # turn newlines into spaces.
19867 # How to create reloadable object files.
19868 reload_flag=$lt_reload_flag
19869 reload_cmds=$lt_reload_cmds
19871 # An object symbol dumper.
19872 OBJDUMP=$lt_OBJDUMP
19874 # Method to check whether dependent libraries are shared objects.
19875 deplibs_check_method=$lt_deplibs_check_method
19877 # Command to use when deplibs_check_method == "file_magic".
19878 file_magic_cmd=$lt_file_magic_cmd
19882 AR_FLAGS=$lt_AR_FLAGS
19884 # A symbol stripping program.
19887 # Commands used to install an old-style archive.
19889 old_postinstall_cmds=$lt_old_postinstall_cmds
19890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19895 # LTCC compiler flags.
19896 LTCFLAGS=$lt_CFLAGS
19898 # Take the output of nm and produce a listing of raw symbols and C names.
19899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19901 # Transform the output of nm in a proper C declaration.
19902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19904 # Transform the output of nm in a C name address pair.
19905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19907 # Transform the output of nm in a C name address pair when lib prefix is needed.
19908 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19910 # The name of the directory that contains temporary libtool files.
19913 # Shell to use when invoking shell scripts.
19916 # An echo program that does not interpret backslashes.
19919 # Used to examine libraries when file_magic_cmd begins with "file".
19920 MAGIC_CMD=$MAGIC_CMD
19922 # Must we lock files when doing compilation?
19923 need_locks=$lt_need_locks
19925 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19926 DSYMUTIL=$lt_DSYMUTIL
19928 # Tool to change global to local symbols on Mac OS X.
19931 # Tool to manipulate fat objects and archives on Mac OS X.
19934 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19937 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19938 OTOOL64=$lt_OTOOL64
19940 # Old archive suffix (normally "a").
19943 # Shared library suffix (normally ".so").
19944 shrext_cmds=$lt_shrext_cmds
19946 # The commands to extract the exported symbol list from a shared archive.
19947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19949 # Variables whose values should be saved in libtool wrapper scripts and
19950 # restored at link time.
19951 variables_saved_for_relink=$lt_variables_saved_for_relink
19953 # Do we need the "lib" prefix for modules?
19954 need_lib_prefix=$need_lib_prefix
19956 # Do we need a version for libraries?
19957 need_version=$need_version
19959 # Library versioning type.
19960 version_type=$version_type
19962 # Shared library runtime path variable.
19963 runpath_var=$runpath_var
19965 # Shared library path variable.
19966 shlibpath_var=$shlibpath_var
19968 # Is shlibpath searched before the hard-coded library search path?
19969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19971 # Format of library name prefix.
19972 libname_spec=$lt_libname_spec
19974 # List of archive names. First name is the real one, the rest are links.
19975 # The last name is the one that the linker finds with -lNAME
19976 library_names_spec=$lt_library_names_spec
19978 # The coded name of the library, if different from the real name.
19979 soname_spec=$lt_soname_spec
19981 # Command to use after installation of a shared archive.
19982 postinstall_cmds=$lt_postinstall_cmds
19984 # Command to use after uninstallation of a shared archive.
19985 postuninstall_cmds=$lt_postuninstall_cmds
19987 # Commands used to finish a libtool library installation in a directory.
19988 finish_cmds=$lt_finish_cmds
19990 # As "finish_cmds", except a single script fragment to be evaled but
19992 finish_eval=$lt_finish_eval
19994 # Whether we should hardcode library paths into libraries.
19995 hardcode_into_libs=$hardcode_into_libs
19997 # Compile-time system search path for libraries.
19998 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20000 # Run-time system search path for libraries.
20001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20003 # Whether dlopen is supported.
20004 dlopen_support=$enable_dlopen
20006 # Whether dlopen of programs is supported.
20007 dlopen_self=$enable_dlopen_self
20009 # Whether dlopen of statically linked programs is supported.
20010 dlopen_self_static=$enable_dlopen_self_static
20012 # Commands to strip libraries.
20013 old_striplib=$lt_old_striplib
20014 striplib=$lt_striplib
20017 # The linker used to build libraries.
20020 # Commands used to build an old-style archive.
20021 old_archive_cmds=$lt_old_archive_cmds
20023 # A language specific compiler.
20026 # Is the compiler the GNU compiler?
20029 # Compiler flag to turn off builtin functions.
20030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20032 # How to pass a linker flag through the compiler.
20033 wl=$lt_lt_prog_compiler_wl
20035 # Additional compiler flags for building library objects.
20036 pic_flag=$lt_lt_prog_compiler_pic
20038 # Compiler flag to prevent dynamic linking.
20039 link_static_flag=$lt_lt_prog_compiler_static
20041 # Does compiler simultaneously support -c and -o options?
20042 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20044 # Whether or not to add -lc for building shared libraries.
20045 build_libtool_need_lc=$archive_cmds_need_lc
20047 # Whether or not to disallow shared libs when runtime libs are static.
20048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20050 # Compiler flag to allow reflexive dlopens.
20051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20053 # Compiler flag to generate shared objects directly from archives.
20054 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20056 # Whether the compiler copes with passing no objects directly.
20057 compiler_needs_object=$lt_compiler_needs_object
20059 # Create an old-style archive from a shared archive.
20060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20062 # Create a temporary old-style archive to link instead of a shared archive.
20063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20065 # Commands used to build a shared archive.
20066 archive_cmds=$lt_archive_cmds
20067 archive_expsym_cmds=$lt_archive_expsym_cmds
20069 # Commands used to build a loadable module if different from building
20070 # a shared archive.
20071 module_cmds=$lt_module_cmds
20072 module_expsym_cmds=$lt_module_expsym_cmds
20074 # Whether we are building with GNU ld or not.
20075 with_gnu_ld=$lt_with_gnu_ld
20077 # Flag that allows shared libraries with undefined symbols to be built.
20078 allow_undefined_flag=$lt_allow_undefined_flag
20080 # Flag that enforces no undefined symbols.
20081 no_undefined_flag=$lt_no_undefined_flag
20083 # Flag to hardcode \$libdir into a binary during linking.
20084 # This must work even if \$libdir does not exist
20085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20087 # If ld is used when linking, flag to hardcode \$libdir into a binary
20088 # during linking. This must work even if \$libdir does not exist.
20089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20091 # Whether we need a single "-rpath" flag with a separated argument.
20092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20094 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20095 # DIR into the resulting binary.
20096 hardcode_direct=$hardcode_direct
20098 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20099 # DIR into the resulting binary and the resulting library dependency is
20100 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20101 # library is relocated.
20102 hardcode_direct_absolute=$hardcode_direct_absolute
20104 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20105 # into the resulting binary.
20106 hardcode_minus_L=$hardcode_minus_L
20108 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20109 # into the resulting binary.
20110 hardcode_shlibpath_var=$hardcode_shlibpath_var
20112 # Set to "yes" if building a shared library automatically hardcodes DIR
20113 # into the library and all subsequent libraries and executables linked
20115 hardcode_automatic=$hardcode_automatic
20117 # Set to yes if linker adds runtime paths of dependent libraries
20118 # to runtime path list.
20119 inherit_rpath=$inherit_rpath
20121 # Whether libtool must link a program against all its dependency libraries.
20122 link_all_deplibs=$link_all_deplibs
20124 # Fix the shell variable \$srcfile for the compiler.
20125 fix_srcfile_path=$lt_fix_srcfile_path
20127 # Set to "yes" if exported symbols are required.
20128 always_export_symbols=$always_export_symbols
20130 # The commands to list exported symbols.
20131 export_symbols_cmds=$lt_export_symbols_cmds
20133 # Symbols that should not be listed in the preloaded symbols.
20134 exclude_expsyms=$lt_exclude_expsyms
20136 # Symbols that must always be exported.
20137 include_expsyms=$lt_include_expsyms
20139 # Commands necessary for linking programs (against libraries) with templates.
20140 prelink_cmds=$lt_prelink_cmds
20142 # Specify filename containing input files.
20143 file_list_spec=$lt_file_list_spec
20145 # How to hardcode a shared library path into an executable.
20146 hardcode_action=$hardcode_action
20148 # ### END LIBTOOL CONFIG
20154 cat <<\_LT_EOF
>> "$cfgfile"
20155 # AIX sometimes has problems with the GCC collect2 program. For some
20156 # reason, if we set the COLLECT_NAMES environment variable, the problems
20157 # vanish in a puff of smoke.
20158 if test "X${COLLECT_NAMES+set}" != Xset
; then
20160 export COLLECT_NAMES
20167 ltmain
="$ac_aux_dir/ltmain.sh"
20170 # We use sed instead of cat because bash on DJGPP gets confused if
20171 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20172 # text mode, it properly converts lines to CR/LF. This bash problem
20173 # is reportedly fixed, but why not run on old versions too?
20174 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20175 ||
(rm -f "$cfgfile"; exit 1)
20179 cat << \_LT_EOF
>> "$cfgfile"
20181 # func_dirname file append nondir_replacement
20182 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20183 # otherwise set result to NONDIR_REPLACEMENT.
20187 */*) func_dirname_result
="${1%/*}${2}" ;;
20188 * ) func_dirname_result
="${3}" ;;
20192 # func_basename file
20195 func_basename_result
="${1##*/}"
20198 # func_dirname_and_basename file append nondir_replacement
20199 # perform func_basename and func_dirname in a single function
20201 # dirname: Compute the dirname of FILE. If nonempty,
20202 # add APPEND to the result, otherwise set result
20203 # to NONDIR_REPLACEMENT.
20204 # value returned in "$func_dirname_result"
20205 # basename: Compute filename of FILE.
20206 # value retuned in "$func_basename_result"
20207 # Implementation must be kept synchronized with func_dirname
20208 # and func_basename. For efficiency, we do not delegate to
20209 # those functions but instead duplicate the functionality here.
20210 func_dirname_and_basename
()
20213 */*) func_dirname_result
="${1%/*}${2}" ;;
20214 * ) func_dirname_result
="${3}" ;;
20216 func_basename_result
="${1##*/}"
20219 # func_stripname prefix suffix name
20220 # strip PREFIX and SUFFIX off of NAME.
20221 # PREFIX and SUFFIX must not contain globbing or regex special
20222 # characters, hashes, percent signs, but SUFFIX may contain a leading
20223 # dot (in which case that matches only a dot).
20226 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20227 # positional parameters, so assign one to ordinary parameter first.
20228 func_stripname_result
=${3}
20229 func_stripname_result
=${func_stripname_result#"${1}"}
20230 func_stripname_result
=${func_stripname_result%"${2}"}
20236 func_opt_split_opt
=${1%%=*}
20237 func_opt_split_arg
=${1#*=}
20244 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
20245 *) func_lo2o_result
=${1} ;;
20249 # func_xform libobj-or-source
20252 func_xform_result
=${1%.*}.lo
20255 # func_arith arithmetic-term...
20258 func_arith_result
=$
(( $
* ))
20262 # STRING may not start with a hyphen.
20265 func_len_result
=${#1}
20270 *) # Bourne compatible functions.
20271 cat << \_LT_EOF
>> "$cfgfile"
20273 # func_dirname file append nondir_replacement
20274 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20275 # otherwise set result to NONDIR_REPLACEMENT.
20278 # Extract subdirectory from the argument.
20279 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20280 if test "X$func_dirname_result" = "X${1}"; then
20281 func_dirname_result
="${3}"
20283 func_dirname_result
="$func_dirname_result${2}"
20287 # func_basename file
20290 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
20294 # func_stripname prefix suffix name
20295 # strip PREFIX and SUFFIX off of NAME.
20296 # PREFIX and SUFFIX must not contain globbing or regex special
20297 # characters, hashes, percent signs, but SUFFIX may contain a leading
20298 # dot (in which case that matches only a dot).
20299 # func_strip_suffix prefix name
20303 .
*) func_stripname_result
=`$ECHO "X${3}" \
20304 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20305 *) func_stripname_result
=`$ECHO "X${3}" \
20306 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20311 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
20312 my_sed_long_arg
='1s/^-[^=]*=//'
20317 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20318 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20324 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20327 # func_xform libobj-or-source
20330 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20333 # func_arith arithmetic-term...
20336 func_arith_result
=`expr "$@"`
20340 # STRING may not start with a hyphen.
20343 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20349 case $lt_shell_append in
20351 cat << \_LT_EOF
>> "$cfgfile"
20353 # func_append var value
20354 # Append VALUE to the end of shell variable VAR.
20362 cat << \_LT_EOF
>> "$cfgfile"
20364 # func_append var value
20365 # Append VALUE to the end of shell variable VAR.
20376 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20377 ||
(rm -f "$cfgfile"; exit 1)
20379 mv -f "$cfgfile" "$ofile" ||
20380 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20389 { (exit 0); exit 0; }
20391 chmod +x
$CONFIG_STATUS
20392 ac_clean_files
=$ac_clean_files_save
20394 test $ac_write_fail = 0 ||
20395 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20396 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20397 { (exit 1); exit 1; }; }
20400 # configure is writing to config.log, and then calls config.status.
20401 # config.status does its own redirection, appending to config.log.
20402 # Unfortunately, on DOS this fails, as config.log is still kept open
20403 # by configure, so config.status won't be able to write to it; its
20404 # output is simply discarded. So we exec the FD to /dev/null,
20405 # effectively closing config.log, so it can be properly (re)opened and
20406 # appended to by config.status. When coming back to configure, we
20407 # need to make the FD available again.
20408 if test "$no_create" != yes; then
20410 ac_config_status_args
=
20411 test "$silent" = yes &&
20412 ac_config_status_args
="$ac_config_status_args --quiet"
20414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20417 # would make configure fail if this is the last instruction.
20418 $ac_cs_success ||
{ (exit 1); exit 1; }
20420 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20421 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20422 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}