2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for linux nfs-utils 1.1.6.
5 # Report bugs to <linux-nfs@vger.kernel.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
691 # maybe with a smaller string...
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 # Oops. We lost completely, so just stick with echo.
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
740 ac_default_prefix=/usr/local
742 ac_config_libobj_dir=.
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='linux nfs-utils'
752 PACKAGE_TARNAME='nfs-utils'
753 PACKAGE_VERSION='1.1.6'
754 PACKAGE_STRING='linux nfs-utils 1.1.6'
755 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
757 ac_default_prefix=/usr
758 # Factoring default headers for most tests.
759 ac_includes_default="\
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
771 # ifdef HAVE_STDLIB_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
794 ac_unique_file="support/include/config.h.in"
795 ac_subst_vars='LTLIBOBJS
886 MAINTAINER_MODE_FALSE
896 INSTALL_STRIP_PROGRAM
946 program_transform_name
958 enable_option_checking
959 enable_maintainer_mode
974 enable_dependency_tracking
986 ac_precious_vars='build_alias
1008 # Initialize some variables set by options.
1010 ac_init_version=false
1011 ac_unrecognized_opts=
1012 ac_unrecognized_sep=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1022 program_transform_name=s,x,x,
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 includedir='${prefix}/include'
1045 oldincludedir='/usr/include'
1046 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1047 infodir='${datarootdir}/info'
1052 libdir='${exec_prefix}/lib'
1053 localedir='${datarootdir}/locale'
1054 mandir='${datarootdir}/man'
1060 # If the previous option needs an argument, assign it.
1061 if test -n "$ac_prev"; then
1062 eval $ac_prev=\$ac_option
1068 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072 # Accept the important Cygnus configure options, so we can diagnose typos.
1074 case $ac_dashdash$ac_option in
1078 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081 bindir=$ac_optarg ;;
1083 -build | --build | --buil | --bui | --bu)
1084 ac_prev=build_alias ;;
1085 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086 build_alias=$ac_optarg ;;
1088 -cache-file | --cache-file | --cache-fil | --cache-fi \
1089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090 ac_prev=cache_file ;;
1091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093 cache_file=$ac_optarg ;;
1095 --config-cache | -C)
1096 cache_file=config.cache ;;
1098 -datadir | --datadir | --datadi | --datad)
1100 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101 datadir=$ac_optarg ;;
1103 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104 | --dataroo | --dataro | --datar)
1105 ac_prev=datarootdir ;;
1106 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108 datarootdir=$ac_optarg ;;
1110 -disable-* | --disable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "enable_$ac_useropt"
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval enable_$ac_useropt=no ;;
1127 -docdir | --docdir | --docdi | --doc | --do)
1129 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130 docdir=$ac_optarg ;;
1132 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135 dvidir=$ac_optarg ;;
1137 -enable-* | --enable-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "enable_$ac_useropt"
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval enable_$ac_useropt=\$ac_optarg ;;
1154 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156 | --exec | --exe | --ex)
1157 ac_prev=exec_prefix ;;
1158 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160 | --exec=* | --exe=* | --ex=*)
1161 exec_prefix=$ac_optarg ;;
1163 -gas | --gas | --ga | --g)
1164 # Obsolete; use --with-gas.
1167 -help | --help | --hel | --he | -h)
1168 ac_init_help=long ;;
1169 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170 ac_init_help=recursive ;;
1171 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172 ac_init_help=short ;;
1174 -host | --host | --hos | --ho)
1175 ac_prev=host_alias ;;
1176 -host=* | --host=* | --hos=* | --ho=*)
1177 host_alias=$ac_optarg ;;
1179 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183 htmldir=$ac_optarg ;;
1185 -includedir | --includedir | --includedi | --included | --include \
1186 | --includ | --inclu | --incl | --inc)
1187 ac_prev=includedir ;;
1188 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189 | --includ=* | --inclu=* | --incl=* | --inc=*)
1190 includedir=$ac_optarg ;;
1192 -infodir | --infodir | --infodi | --infod | --info | --inf)
1194 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195 infodir=$ac_optarg ;;
1197 -libdir | --libdir | --libdi | --libd)
1199 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200 libdir=$ac_optarg ;;
1202 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203 | --libexe | --libex | --libe)
1204 ac_prev=libexecdir ;;
1205 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206 | --libexe=* | --libex=* | --libe=*)
1207 libexecdir=$ac_optarg ;;
1209 -localedir | --localedir | --localedi | --localed | --locale)
1210 ac_prev=localedir ;;
1211 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212 localedir=$ac_optarg ;;
1214 -localstatedir | --localstatedir | --localstatedi | --localstated \
1215 | --localstate | --localstat | --localsta | --localst | --locals)
1216 ac_prev=localstatedir ;;
1217 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219 localstatedir=$ac_optarg ;;
1221 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224 mandir=$ac_optarg ;;
1226 -nfp | --nfp | --nf)
1227 # Obsolete; use --without-fp.
1230 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231 | --no-cr | --no-c | -n)
1234 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240 | --oldin | --oldi | --old | --ol | --o)
1241 ac_prev=oldincludedir ;;
1242 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245 oldincludedir=$ac_optarg ;;
1247 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250 prefix=$ac_optarg ;;
1252 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253 | --program-pre | --program-pr | --program-p)
1254 ac_prev=program_prefix ;;
1255 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257 program_prefix=$ac_optarg ;;
1259 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260 | --program-suf | --program-su | --program-s)
1261 ac_prev=program_suffix ;;
1262 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264 program_suffix=$ac_optarg ;;
1266 -program-transform-name | --program-transform-name \
1267 | --program-transform-nam | --program-transform-na \
1268 | --program-transform-n | --program-transform- \
1269 | --program-transform | --program-transfor \
1270 | --program-transfo | --program-transf \
1271 | --program-trans | --program-tran \
1272 | --progr-tra | --program-tr | --program-t)
1273 ac_prev=program_transform_name ;;
1274 -program-transform-name=* | --program-transform-name=* \
1275 | --program-transform-nam=* | --program-transform-na=* \
1276 | --program-transform-n=* | --program-transform-=* \
1277 | --program-transform=* | --program-transfor=* \
1278 | --program-transfo=* | --program-transf=* \
1279 | --program-trans=* | --program-tran=* \
1280 | --progr-tra=* | --program-tr=* | --program-t=*)
1281 program_transform_name=$ac_optarg ;;
1283 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286 pdfdir=$ac_optarg ;;
1288 -psdir | --psdir | --psdi | --psd | --ps)
1290 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294 | -silent | --silent | --silen | --sile | --sil)
1297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301 sbindir=$ac_optarg ;;
1303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305 | --sharedst | --shareds | --shared | --share | --shar \
1307 ac_prev=sharedstatedir ;;
1308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312 sharedstatedir=$ac_optarg ;;
1314 -site | --site | --sit)
1316 -site=* | --site=* | --sit=*)
1319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322 srcdir=$ac_optarg ;;
1324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325 | --syscon | --sysco | --sysc | --sys | --sy)
1326 ac_prev=sysconfdir ;;
1327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329 sysconfdir=$ac_optarg ;;
1331 -target | --target | --targe | --targ | --tar | --ta | --t)
1332 ac_prev=target_alias ;;
1333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334 target_alias=$ac_optarg ;;
1336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1339 -version | --version | --versio | --versi | --vers | -V)
1340 ac_init_version=: ;;
1343 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1347 { (exit 1); exit 1; }; }
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1357 eval with_$ac_useropt=\$ac_optarg ;;
1359 -without-* | --without-*)
1360 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1364 { (exit 1); exit 1; }; }
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1374 eval with_$ac_useropt=no ;;
1377 # Obsolete; use --with-x.
1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381 | --x-incl | --x-inc | --x-in | --x-i)
1382 ac_prev=x_includes ;;
1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385 x_includes=$ac_optarg ;;
1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389 ac_prev=x_libraries ;;
1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392 x_libraries=$ac_optarg ;;
1394 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1395 Try \`$0 --help' for more information." >&2
1396 { (exit 1); exit 1; }; }
1400 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1403 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1404 { (exit 1); exit 1; }; }
1405 eval $ac_envvar=\$ac_optarg
1406 export $ac_envvar ;;
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1419 if test -n "$ac_prev"; then
1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1422 { (exit 1); exit 1; }; }
1425 if test -n "$ac_unrecognized_opts"; then
1426 case $enable_option_checking in
1428 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1429 { (exit 1); exit 1; }; } ;;
1430 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434 # Check all directory arguments for consistency.
1435 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436 datadir sysconfdir sharedstatedir localstatedir includedir \
1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438 libdir localedir mandir
1440 eval ac_val=\$$ac_var
1441 # Remove trailing slashes.
1444 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445 eval $ac_var=\$ac_val;;
1447 # Be sure to have absolute directory names.
1449 [\\/$]* | ?:[\\/]* ) continue;;
1450 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1453 { (exit 1); exit 1; }; }
1456 # There might be people who depend on the old broken behavior: `$host'
1457 # used to hold the argument of --host etc.
1458 # FIXME: To remove some day.
1461 target=$target_alias
1463 # FIXME: To remove some day.
1464 if test "x$host_alias" != x; then
1465 if test "x$build_alias" = x; then
1466 cross_compiling=maybe
1467 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1468 If a cross compiler is detected then cross compile mode will be used." >&2
1469 elif test "x$build_alias" != "x$host_alias"; then
1475 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477 test "$silent" = yes && exec 6>/dev/null
1480 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1481 ac_ls_di=`ls -di .` &&
1482 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1483 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1484 { (exit 1); exit 1; }; }
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1487 { (exit 1); exit 1; }; }
1490 # Find the source files, if location was not specified.
1491 if test -z "$srcdir"; then
1492 ac_srcdir_defaulted=yes
1493 # Try the directory containing this script, then the parent directory.
1494 ac_confdir=`$as_dirname -- "$as_myself" ||
1495 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496 X"$as_myself" : 'X\(//\)[^/]' \| \
1497 X"$as_myself" : 'X\(//\)$' \| \
1498 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499 $as_echo X"$as_myself" |
1500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1522 ac_srcdir_defaulted=no
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1526 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1527 { (exit 1); exit 1; }; }
1529 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1532 { (exit 1); exit 1; }; }
1534 # When building in place, set srcdir=.
1535 if test "$ac_abs_confdir" = "$ac_pwd"; then
1538 # Remove unnecessary trailing slashes from srcdir.
1539 # Double slashes in file names in object file debugging info
1540 # mess up M-x gdb in Emacs.
1542 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 for ac_var in $ac_precious_vars; do
1545 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1546 eval ac_env_${ac_var}_value=\$${ac_var}
1547 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1552 # Report the --help message.
1554 if test "$ac_init_help" = "long"; then
1555 # Omit some internal or obsolete options to make the list less imposing.
1556 # This message is too long to be a string in the A/UX 3.1 sh.
1558 \`configure' configures linux nfs-utils 1.1.6 to adapt to many kinds of systems.
1560 Usage: $0 [OPTION]... [VAR=VALUE]...
1562 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563 VAR=VALUE. See below for descriptions of some of the useful variables.
1565 Defaults for the options are specified in brackets.
1568 -h, --help display this help and exit
1569 --help=short display options specific to this package
1570 --help=recursive display the short help of all the included packages
1571 -V, --version display version information and exit
1572 -q, --quiet, --silent do not print \`checking...' messages
1573 --cache-file=FILE cache test results in FILE [disabled]
1574 -C, --config-cache alias for \`--cache-file=config.cache'
1575 -n, --no-create do not create output files
1576 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1578 Installation directories:
1579 --prefix=PREFIX install architecture-independent files in PREFIX
1580 [$ac_default_prefix]
1581 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1584 By default, \`make install' will install all the files in
1585 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1586 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587 for instance \`--prefix=\$HOME'.
1589 For better control, use the options below.
1591 Fine tuning of the installation directories:
1592 --bindir=DIR user executables [EPREFIX/bin]
1593 --sbindir=DIR system admin executables [EPREFIX/sbin]
1594 --libexecdir=DIR program executables [EPREFIX/libexec]
1595 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1596 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1597 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1598 --libdir=DIR object code libraries [EPREFIX/lib]
1599 --includedir=DIR C header files [PREFIX/include]
1600 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1601 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1602 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1603 --infodir=DIR info documentation [DATAROOTDIR/info]
1604 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1605 --mandir=DIR man documentation [DATAROOTDIR/man]
1606 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1607 --htmldir=DIR html documentation [DOCDIR]
1608 --dvidir=DIR dvi documentation [DOCDIR]
1609 --pdfdir=DIR pdf documentation [DOCDIR]
1610 --psdir=DIR ps documentation [DOCDIR]
1616 --program-prefix=PREFIX prepend PREFIX to installed program names
1617 --program-suffix=SUFFIX append SUFFIX to installed program names
1618 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1621 --build=BUILD configure for building on BUILD [guessed]
1622 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1626 if test -n "$ac_init_help"; then
1627 case $ac_init_help in
1628 short | recursive ) echo "Configuration of linux nfs-utils 1.1.6:";;
1633 --disable-option-checking ignore unrecognized --enable/--with options
1634 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1635 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1636 --enable-maintainer-mode enable make rules and dependencies not useful
1637 (and sometimes confusing) to the casual installer
1638 --enable-nfsv3 enable support for NFSv3 [default=yes]
1639 --enable-nfsv4 enable support for NFSv4 [default=yes]
1640 --enable-gss enable support for rpcsec_gss [default=yes]
1641 --enable-kprefix install progs as rpc.knfsd etc
1642 --disable-uuid Exclude uuid support to avoid buggy libblkid
1643 --enable-mount Create mount.nfs and don't use the util-linux
1644 mount(8) functionality. [default=yes]
1645 --enable-tirpc enable use of TI-RPC [default=no]
1646 --enable-ipv6 enable support for IPv6 [default=no]
1647 --disable-dependency-tracking speeds up one-time build
1648 --enable-dependency-tracking do not reject slow dependency extractors
1649 --disable-largefile omit support for large files
1650 --enable-shared[=PKGS] build shared libraries [default=yes]
1651 --enable-static[=PKGS] build static libraries [default=yes]
1652 --enable-fast-install[=PKGS]
1653 optimize for fast installation [default=yes]
1654 --disable-libtool-lock avoid locking (might break parallel builds)
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-release=XXX set release to XXX [1]
1660 --with-statedir=/foo use state dir /foo /var/lib/nfs
1661 --with-statduser=rpcuser
1662 statd to run under [rpcuser or nobody]
1663 --with-start-statd=scriptname
1664 When an nfs filesystems is mounted with locking, run
1666 --with-rpcgen=internal use internal rpcgen instead of system one
1667 --with-tirpcinclude=DIR use TI-RPC headers in DIR
1668 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1669 (optionally in PATH)
1670 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1673 --with-tags[=TAGS] include additional configurations [automatic]
1674 --with-krb5=DIR use Kerberos v5 installation in DIR
1676 Some influential environment variables:
1677 CC C compiler command
1678 CFLAGS C compiler flags
1679 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1680 nonstandard directory <lib dir>
1681 LIBS libraries to pass to the linker, e.g. -l<library>
1682 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1683 you have headers in a nonstandard directory <include dir>
1685 CXX C++ compiler command
1686 CXXFLAGS C++ compiler flags
1687 CXXCPP C++ preprocessor
1688 F77 Fortran 77 compiler command
1689 FFLAGS Fortran 77 compiler flags
1690 PKG_CONFIG path to pkg-config utility
1692 C compiler flags for GSSGLUE, overriding pkg-config
1694 linker flags for GSSGLUE, overriding pkg-config
1696 C compiler flags for RPCSECGSS, overriding pkg-config
1698 linker flags for RPCSECGSS, overriding pkg-config
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1703 Report bugs to <linux-nfs@vger.kernel.org>.
1708 if test "$ac_init_help" = "recursive"; then
1709 # If there are subdirs, report their specific --help.
1710 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711 test -d "$ac_dir" ||
1712 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720 # A ".." for each directory in $ac_dir_suffix.
1721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722 case $ac_top_builddir_sub in
1723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1733 .) # We are building in place.
1735 ac_top_srcdir=$ac_top_builddir_sub
1736 ac_abs_top_srcdir=$ac_pwd ;;
1737 [\\/]* | ?:[\\/]* ) # Absolute name.
1738 ac_srcdir=$srcdir$ac_dir_suffix;
1739 ac_top_srcdir=$srcdir
1740 ac_abs_top_srcdir=$srcdir ;;
1742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743 ac_top_srcdir=$ac_top_build_prefix$srcdir
1744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1748 cd "$ac_dir" || { ac_status=$?; continue; }
1749 # Check for guested configure.
1750 if test -f "$ac_srcdir/configure.gnu"; then
1752 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753 elif test -f "$ac_srcdir/configure"; then
1755 $SHELL "$ac_srcdir/configure" --help=recursive
1757 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1759 cd "$ac_pwd" || { ac_status=$?; break; }
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1766 linux nfs-utils configure 1.1.6
1767 generated by GNU Autoconf 2.63
1769 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1770 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1771 This configure script is free software; the Free Software Foundation
1772 gives unlimited permission to copy, distribute and modify it.
1776 cat >config.log <<_ACEOF
1777 This file contains any messages produced by compilers while
1778 running configure, to aid debugging if configure makes a mistake.
1780 It was created by linux nfs-utils $as_me 1.1.6, which was
1781 generated by GNU Autoconf 2.63. Invocation command line was
1793 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1794 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1795 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1796 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1797 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1799 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1800 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1802 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1803 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1804 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1805 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1806 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1807 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1808 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 test -z "$as_dir" && as_dir=.
1817 $as_echo "PATH: $as_dir"
1833 # Keep a trace of the command line.
1834 # Strip out --no-create and --no-recursion so they do not pile up.
1835 # Strip out --silent because we don't want to record it for future runs.
1836 # Also quote any args containing shell meta-characters.
1837 # Make two passes to allow for proper duplicate-argument suppression.
1841 ac_must_keep_next=false
1847 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1849 | -silent | --silent | --silen | --sile | --sil)
1852 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1857 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1858 if test $ac_must_keep_next = true; then
1859 ac_must_keep_next=false # Got value, back to normal.
1862 *=* | --config-cache | -C | -disable-* | --disable-* \
1863 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1864 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1865 | -with-* | --with-* | -without-* | --without-* | --x)
1866 case "$ac_configure_args0 " in
1867 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1870 -* ) ac_must_keep_next=true ;;
1873 ac_configure_args="$ac_configure_args '$ac_arg'"
1878 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1879 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1881 # When interrupted or exit'd, cleanup temporary files, and complete
1882 # config.log. We remove comments because anyway the quotes in there
1883 # would cause problems or look ugly.
1884 # WARNING: Use '\'' to represent an apostrophe within the trap.
1885 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1886 trap 'exit_status=$?
1887 # Save into config.log some information that might help in debugging.
1892 ## ---------------- ##
1893 ## Cache variables. ##
1894 ## ---------------- ##
1897 # The following way of writing the cache mishandles newlines in values,
1899 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900 eval ac_val=\$$ac_var
1904 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1908 _ | IFS | as_nl) ;; #(
1909 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910 *) $as_unset $ac_var ;;
1915 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916 *${as_nl}ac_space=\ *)
1918 "s/'\''/'\''\\\\'\'''\''/g;
1919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1930 ## ----------------- ##
1931 ## Output variables. ##
1932 ## ----------------- ##
1935 for ac_var in $ac_subst_vars
1937 eval ac_val=\$$ac_var
1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941 $as_echo "$ac_var='\''$ac_val'\''"
1945 if test -n "$ac_subst_files"; then
1947 ## ------------------- ##
1948 ## File substitutions. ##
1949 ## ------------------- ##
1952 for ac_var in $ac_subst_files
1954 eval ac_val=\$$ac_var
1956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958 $as_echo "$ac_var='\''$ac_val'\''"
1963 if test -s confdefs.h; then
1973 test "$ac_signal" != 0 &&
1974 $as_echo "$as_me: caught signal $ac_signal"
1975 $as_echo "$as_me: exit $exit_status"
1977 rm -f core *.core core.conftest.* &&
1978 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1981 for ac_signal in 1 2 13 15; do
1982 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1986 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1987 rm -f -r conftest* confdefs.h
1989 # Predefined preprocessor variables.
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_NAME "$PACKAGE_NAME"
1996 cat >>confdefs.h <<_ACEOF
1997 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_STRING "$PACKAGE_STRING"
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2016 # Let the site file select an alternate cache file if it wants to.
2017 # Prefer an explicitly selected file to automatically selected ones.
2020 if test -n "$CONFIG_SITE"; then
2021 ac_site_file1=$CONFIG_SITE
2022 elif test "x$prefix" != xNONE; then
2023 ac_site_file1=$prefix/share/config.site
2024 ac_site_file2=$prefix/etc/config.site
2026 ac_site_file1=$ac_default_prefix/share/config.site
2027 ac_site_file2=$ac_default_prefix/etc/config.site
2029 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2031 test "x$ac_site_file" = xNONE && continue
2032 if test -r "$ac_site_file"; then
2033 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2034 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2035 sed 's/^/| /' "$ac_site_file" >&5
2040 if test -r "$cache_file"; then
2041 # Some versions of bash will fail to source /dev/null (special
2042 # files actually), so we avoid doing that.
2043 if test -f "$cache_file"; then
2044 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2045 $as_echo "$as_me: loading cache $cache_file" >&6;}
2047 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2048 *) . "./$cache_file";;
2052 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2053 $as_echo "$as_me: creating cache $cache_file" >&6;}
2057 # Check that the precious variables saved in the cache have kept the same
2059 ac_cache_corrupted=false
2060 for ac_var in $ac_precious_vars; do
2061 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2062 eval ac_new_set=\$ac_env_${ac_var}_set
2063 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2064 eval ac_new_val=\$ac_env_${ac_var}_value
2065 case $ac_old_set,$ac_new_set in
2067 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2068 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2069 ac_cache_corrupted=: ;;
2071 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2072 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2073 ac_cache_corrupted=: ;;
2076 if test "x$ac_old_val" != "x$ac_new_val"; then
2077 # differences in whitespace do not lead to failure.
2078 ac_old_val_w=`echo x $ac_old_val`
2079 ac_new_val_w=`echo x $ac_new_val`
2080 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2081 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2082 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2083 ac_cache_corrupted=:
2085 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2086 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2087 eval $ac_var=\$ac_old_val
2089 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2090 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2091 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2092 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2095 # Pass precious variables to config.status.
2096 if test "$ac_new_set" = set; then
2098 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 *) ac_arg=$ac_var=$ac_new_val ;;
2101 case " $ac_configure_args " in
2102 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2103 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2107 if $ac_cache_corrupted; then
2108 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2110 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2111 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2112 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2113 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2114 { (exit 1); exit 1; }; }
2142 ac_cpp='$CPP $CPPFLAGS'
2143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2150 if test -f "$ac_dir/install-sh"; then
2152 ac_install_sh="$ac_aux_dir/install-sh -c"
2154 elif test -f "$ac_dir/install.sh"; then
2156 ac_install_sh="$ac_aux_dir/install.sh -c"
2158 elif test -f "$ac_dir/shtool"; then
2160 ac_install_sh="$ac_aux_dir/shtool install -c"
2164 if test -z "$ac_aux_dir"; then
2165 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2166 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2167 { (exit 1); exit 1; }; }
2170 # These three variables are undocumented and unsupported,
2171 # and are intended to be withdrawn in a future Autoconf release.
2172 # They can cause serious problems if a builder's source tree is in a directory
2173 # whose full name contains unusual characters.
2174 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2175 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2176 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2179 # Make sure we can run config.sub.
2180 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2181 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2182 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2183 { (exit 1); exit 1; }; }
2185 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2186 $as_echo_n "checking build system type... " >&6; }
2187 if test "${ac_cv_build+set}" = set; then
2188 $as_echo_n "(cached) " >&6
2190 ac_build_alias=$build_alias
2191 test "x$ac_build_alias" = x &&
2192 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2193 test "x$ac_build_alias" = x &&
2194 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2195 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2196 { (exit 1); exit 1; }; }
2197 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2198 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2199 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2203 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2204 $as_echo "$ac_cv_build" >&6; }
2205 case $ac_cv_build in
2207 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2208 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2209 { (exit 1); exit 1; }; };;
2212 ac_save_IFS=$IFS; IFS='-'
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2222 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2225 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2226 $as_echo_n "checking host system type... " >&6; }
2227 if test "${ac_cv_host+set}" = set; then
2228 $as_echo_n "(cached) " >&6
2230 if test "x$host_alias" = x; then
2231 ac_cv_host=$ac_cv_build
2233 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2234 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2235 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2236 { (exit 1); exit 1; }; }
2240 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2241 $as_echo "$ac_cv_host" >&6; }
2244 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2245 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2246 { (exit 1); exit 1; }; };;
2249 ac_save_IFS=$IFS; IFS='-'
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2259 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2263 am__api_version='1.10'
2265 # Find a good install program. We prefer a C program (faster),
2266 # so one script is as good as another. But avoid the broken or
2267 # incompatible versions:
2268 # SysV /etc/install, /usr/sbin/install
2269 # SunOS /usr/etc/install
2270 # IRIX /sbin/install
2272 # AmigaOS /C/install, which installs bootblocks on floppy discs
2273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2276 # OS/2's system install, which has a completely different semantic
2277 # ./install, which can be erroneously created by make from ./install.sh.
2278 # Reject install programs that cannot install multiple files.
2279 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2281 if test -z "$INSTALL"; then
2282 if test "${ac_cv_path_install+set}" = set; then
2283 $as_echo_n "(cached) " >&6
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 # Account for people who put trailing slashes in PATH elements.
2292 ./ | .// | /cC/* | \
2293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2294 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2297 # OSF1 and SCO ODT 3.0 have their own names for install.
2298 # Don't use installbsd from OSF since it installs stuff as root
2300 for ac_prog in ginstall scoinst install; do
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2303 if test $ac_prog = install &&
2304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2305 # AIX install. It has an incompatible calling convention.
2307 elif test $ac_prog = install &&
2308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309 # program-specific install script used by HP pwplus--don't use.
2312 rm -rf conftest.one conftest.two conftest.dir
2313 echo one > conftest.one
2314 echo two > conftest.two
2316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2317 test -s conftest.one && test -s conftest.two &&
2318 test -s conftest.dir/conftest.one &&
2319 test -s conftest.dir/conftest.two
2321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334 rm -rf conftest.one conftest.two conftest.dir
2337 if test "${ac_cv_path_install+set}" = set; then
2338 INSTALL=$ac_cv_path_install
2340 # As a last resort, use the slow shell script. Don't cache a
2341 # value for INSTALL within a source directory, because that will
2342 # break other packages using the cache if that directory is
2343 # removed, or if the value is a relative name.
2344 INSTALL=$ac_install_sh
2347 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2348 $as_echo "$INSTALL" >&6; }
2350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2351 # It thinks the first close brace ends the variable substitution.
2352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2358 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2359 $as_echo_n "checking whether build environment is sane... " >&6; }
2362 echo timestamp > conftest.file
2363 # Do `set' in a subshell so we don't clobber the current shell's
2364 # arguments. Must try -L first in case configure is actually a
2365 # symlink; some systems play weird games with the mod time of symlinks
2366 # (eg FreeBSD returns the mod time of the symlink's containing
2369 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2370 if test "$*" = "X"; then
2372 set X `ls -t $srcdir/configure conftest.file`
2375 if test "$*" != "X $srcdir/configure conftest.file" \
2376 && test "$*" != "X conftest.file $srcdir/configure"; then
2378 # If neither matched, then we have a broken ls. This can happen
2379 # if, for instance, CONFIG_SHELL is bash and it inherits a
2380 # broken ls alias from the environment. This has actually
2381 # happened. Such a system could not be considered "sane".
2382 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2383 alias in your environment" >&5
2384 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2385 alias in your environment" >&2;}
2386 { (exit 1); exit 1; }; }
2389 test "$2" = conftest.file
2395 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2396 Check your system clock" >&5
2397 $as_echo "$as_me: error: newly created file is older than distributed files!
2398 Check your system clock" >&2;}
2399 { (exit 1); exit 1; }; }
2401 { $as_echo "$as_me:$LINENO: result: yes" >&5
2402 $as_echo "yes" >&6; }
2403 test "$program_prefix" != NONE &&
2404 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2405 # Use a double $ so make ignores it.
2406 test "$program_suffix" != NONE &&
2407 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2408 # Double any \ or $.
2409 # By default was `s,x,x', remove it if useless.
2410 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2411 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2413 # expand $ac_aux_dir to an absolute path
2414 am_aux_dir=`cd $ac_aux_dir && pwd`
2416 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2417 # Use eval to expand $SHELL
2418 if eval "$MISSING --run true"; then
2419 am_missing_run="$MISSING --run "
2422 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2426 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2427 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2428 if test -z "$MKDIR_P"; then
2429 if test "${ac_cv_path_mkdir+set}" = set; then
2430 $as_echo_n "(cached) " >&6
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2436 test -z "$as_dir" && as_dir=.
2437 for ac_prog in mkdir gmkdir; do
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2440 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2441 'mkdir (GNU coreutils) '* | \
2442 'mkdir (coreutils) '* | \
2443 'mkdir (fileutils) '4.1*)
2444 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2454 if test "${ac_cv_path_mkdir+set}" = set; then
2455 MKDIR_P="$ac_cv_path_mkdir -p"
2457 # As a last resort, use the slow shell script. Don't cache a
2458 # value for MKDIR_P within a source directory, because that will
2459 # break other packages using the cache if that directory is
2460 # removed, or if the value is a relative name.
2461 test -d ./--version && rmdir ./--version
2462 MKDIR_P="$ac_install_sh -d"
2465 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2466 $as_echo "$MKDIR_P" >&6; }
2470 [\\/$]* | ?:[\\/]*) ;;
2471 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2474 for ac_prog in gawk mawk nawk awk
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if test "${ac_cv_prog_AWK+set}" = set; then
2481 $as_echo_n "(cached) " >&6
2483 if test -n "$AWK"; then
2484 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_AWK="$ac_prog"
2494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 if test -n "$AWK"; then
2505 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2506 $as_echo "$AWK" >&6; }
2508 { $as_echo "$as_me:$LINENO: result: no" >&5
2509 $as_echo "no" >&6; }
2513 test -n "$AWK" && break
2516 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2517 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2519 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2520 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2521 $as_echo_n "(cached) " >&6
2523 cat >conftest.make <<\_ACEOF
2526 @echo '@@@%%%=$(MAKE)=@@@%%%'
2528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2529 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2531 eval ac_cv_prog_make_${ac_make}_set=yes;;
2533 eval ac_cv_prog_make_${ac_make}_set=no;;
2537 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2538 { $as_echo "$as_me:$LINENO: result: yes" >&5
2539 $as_echo "yes" >&6; }
2542 { $as_echo "$as_me:$LINENO: result: no" >&5
2543 $as_echo "no" >&6; }
2544 SET_MAKE="MAKE=${MAKE-make}"
2547 rm -rf .tst 2>/dev/null
2548 mkdir .tst 2>/dev/null
2549 if test -d .tst; then
2554 rmdir .tst 2>/dev/null
2556 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2557 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2558 # is not polluted with repeated "-I."
2559 am__isrc=' -I$(srcdir)'
2560 # test to see if srcdir already configured
2561 if test -f $srcdir/config.status; then
2562 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2563 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2564 { (exit 1); exit 1; }; }
2568 # test whether we have cygpath
2569 if test -z "$CYGPATH_W"; then
2570 if (cygpath --version) >/dev/null 2>/dev/null; then
2571 CYGPATH_W='cygpath -w'
2578 # Define the identity of the package.
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE "$PACKAGE"
2588 cat >>confdefs.h <<_ACEOF
2589 #define VERSION "$VERSION"
2592 # Some tools Automake needs.
2594 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2597 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2600 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2603 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2606 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2608 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2610 # Installed binaries are usually stripped using `strip' when the user
2611 # run `make install-strip'. However `strip' might not be the right
2612 # tool to use in cross-compilation environments, therefore Automake
2613 # will honor the `STRIP' environment variable to overrule this program.
2614 if test "$cross_compiling" != no; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}strip; ac_word=$2
2618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_STRIP+set}" = set; then
2621 $as_echo_n "(cached) " >&6
2623 if test -n "$STRIP"; then
2624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 STRIP=$ac_cv_prog_STRIP
2644 if test -n "$STRIP"; then
2645 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2646 $as_echo "$STRIP" >&6; }
2648 { $as_echo "$as_me:$LINENO: result: no" >&5
2649 $as_echo "no" >&6; }
2654 if test -z "$ac_cv_prog_STRIP"; then
2656 # Extract the first word of "strip", so it can be a program name with args.
2657 set dummy strip; ac_word=$2
2658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$ac_ct_STRIP"; then
2664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_ac_ct_STRIP="strip"
2674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2684 if test -n "$ac_ct_STRIP"; then
2685 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2686 $as_echo "$ac_ct_STRIP" >&6; }
2688 { $as_echo "$as_me:$LINENO: result: no" >&5
2689 $as_echo "no" >&6; }
2692 if test "x$ac_ct_STRIP" = x; then
2695 case $cross_compiling:$ac_tool_warned in
2697 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2704 STRIP="$ac_cv_prog_STRIP"
2708 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710 # We need awk for the "check" target. The system "awk" is bad on
2712 # Always define AMTAR for backward compatibility.
2714 AMTAR=${AMTAR-"${am_missing_run}tar"}
2716 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2724 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2725 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2726 # Check whether --enable-maintainer-mode was given.
2727 if test "${enable_maintainer_mode+set}" = set; then
2728 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2730 USE_MAINTAINER_MODE=no
2733 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2734 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2735 if test $USE_MAINTAINER_MODE = yes; then
2736 MAINTAINER_MODE_TRUE=
2737 MAINTAINER_MODE_FALSE='#'
2739 MAINTAINER_MODE_TRUE='#'
2740 MAINTAINER_MODE_FALSE=
2743 MAINT=$MAINTAINER_MODE_TRUE
2748 # Check whether --with-release was given.
2749 if test "${with_release+set}" = set; then
2750 withval=$with_release; RELEASE=$withval
2757 # Check whether --with-statedir was given.
2758 if test "${with_statedir+set}" = set; then
2759 withval=$with_statedir; statedir=$withval
2761 statedir=/var/lib/nfs
2766 # Check whether --with-statduser was given.
2767 if test "${with_statduser+set}" = set; then
2768 withval=$with_statduser; statduser=$withval
2770 if test "x$cross_compiling" = "xno"; then
2771 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2783 # Check whether --with-start-statd was given.
2784 if test "${with_start_statd+set}" = set; then
2785 withval=$with_start_statd; startstatd=$withval
2787 startstatd=/usr/sbin/start-statd
2793 cat >>confdefs.h <<_ACEOF
2794 #define START_STATD "$startstatd"
2797 # Check whether --enable-nfsv3 was given.
2798 if test "${enable_nfsv3+set}" = set; then
2799 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2804 if test "$enable_nfsv3" = yes; then
2806 cat >>confdefs.h <<\_ACEOF
2807 #define NFS3_SUPPORTED 1
2814 # Check whether --enable-nfsv4 was given.
2815 if test "${enable_nfsv4+set}" = set; then
2816 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2821 if test "$enable_nfsv4" = yes; then
2823 cat >>confdefs.h <<\_ACEOF
2824 #define NFS4_SUPPORTED 1
2834 if test "$enable_nfsv4" = "yes"; then
2836 CONFIG_NFSV4_FALSE='#'
2838 CONFIG_NFSV4_TRUE='#'
2842 # Check whether --enable-gss was given.
2843 if test "${enable_gss+set}" = set; then
2844 enableval=$enable_gss; enable_gss=$enableval
2849 if test "$enable_gss" = yes; then
2851 cat >>confdefs.h <<\_ACEOF
2852 #define GSS_SUPPORTED 1
2865 if test "$enable_gss" = "yes"; then
2867 CONFIG_GSS_FALSE='#'
2873 # Check whether --enable-kprefix was given.
2874 if test "${enable_kprefix+set}" = set; then
2875 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2882 # Check whether --with-rpcgen was given.
2883 if test "${with_rpcgen+set}" = set; then
2884 withval=$with_rpcgen; rpcgen_path=$withval
2890 if test "$rpcgen_path" == "yes"; then
2891 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2892 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2893 elif test "$rpcgen_path" != "internal"; then
2894 RPCGEN_PATH=$rpcgen_path
2897 if test "$RPCGEN_PATH" == ""; then
2899 CONFIG_RPCGEN_FALSE='#'
2901 CONFIG_RPCGEN_TRUE='#'
2902 CONFIG_RPCGEN_FALSE=
2905 # Check whether --enable-uuid was given.
2906 if test "${enable_uuid+set}" = set; then
2907 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2909 choose_blkid=default
2912 # Check whether --enable-mount was given.
2913 if test "${enable_mount+set}" = set; then
2914 enableval=$enable_mount; enable_mount=$enableval
2919 if test "$enable_mount" = "yes"; then
2921 CONFIG_MOUNT_FALSE='#'
2923 CONFIG_MOUNT_TRUE='#'
2927 # Check whether --enable-tirpc was given.
2928 if test "${enable_tirpc+set}" = set; then
2929 enableval=$enable_tirpc; enable_tirpc=$enableval
2934 # Check whether --enable-ipv6 was given.
2935 if test "${enable_ipv6+set}" = set; then
2936 enableval=$enable_ipv6; enable_ipv6=$enableval
2941 if test "$enable_ipv6" = yes; then
2943 cat >>confdefs.h <<\_ACEOF
2944 #define IPV6_SUPPORTED 1
2951 if test "$enable_ipv6" = "yes"; then
2953 CONFIG_IPV6_FALSE='#'
2955 CONFIG_IPV6_TRUE='#'
2960 DEPDIR="${am__leading_dot}deps"
2962 ac_config_commands="$ac_config_commands depfiles"
2965 am_make=${MAKE-make}
2966 cat > confinc << 'END'
2971 # If we don't find an include directive, just comment out the code.
2972 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2973 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2977 # First try GNU make style include.
2978 echo "include confinc" > confmf
2979 # We grep out `Entering directory' and `Leaving directory'
2980 # messages which can occur if `w' ends up in MAKEFLAGS.
2981 # In particular we don't look at `^make:' because GNU make might
2982 # be invoked under some other name (usually "gmake"), in which
2983 # case it prints its new name instead of `make'.
2984 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2989 # Now try BSD make style include.
2990 if test "$am__include" = "#"; then
2991 echo '.include "confinc"' > confmf
2992 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2993 am__include=.include
3000 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3001 $as_echo "$_am_result" >&6; }
3002 rm -f confinc confmf
3004 # Check whether --enable-dependency-tracking was given.
3005 if test "${enable_dependency_tracking+set}" = set; then
3006 enableval=$enable_dependency_tracking;
3009 if test "x$enable_dependency_tracking" != xno; then
3010 am_depcomp="$ac_aux_dir/depcomp"
3013 if test "x$enable_dependency_tracking" != xno; then
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then
3033 $as_echo_n "(cached) " >&6
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 if test -n "$CC"; then
3057 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3060 { $as_echo "$as_me:$LINENO: result: no" >&5
3061 $as_echo "no" >&6; }
3066 if test -z "$ac_cv_prog_CC"; then
3068 # Extract the first word of "gcc", so it can be a program name with args.
3069 set dummy gcc; ac_word=$2
3070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3073 $as_echo_n "(cached) " >&6
3075 if test -n "$ac_ct_CC"; then
3076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_ac_ct_CC="gcc"
3086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096 if test -n "$ac_ct_CC"; then
3097 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3098 $as_echo "$ac_ct_CC" >&6; }
3100 { $as_echo "$as_me:$LINENO: result: no" >&5
3101 $as_echo "no" >&6; }
3104 if test "x$ac_ct_CC" = x; then
3107 case $cross_compiling:$ac_tool_warned in
3109 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111 ac_tool_warned=yes ;;
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}cc; ac_word=$2
3123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC="${ac_tool_prefix}cc"
3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3154 $as_echo "no" >&6; }
3160 if test -z "$CC"; then
3161 # Extract the first word of "cc", so it can be a program name with args.
3162 set dummy cc; ac_word=$2
3163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected=yes
3184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy $ac_cv_prog_CC
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3210 { $as_echo "$as_me:$LINENO: result: no" >&5
3211 $as_echo "no" >&6; }
3216 if test -z "$CC"; then
3217 if test -n "$ac_tool_prefix"; then
3218 for ac_prog in cl.exe
3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_CC+set}" = set; then
3225 $as_echo_n "(cached) " >&6
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 if test -n "$CC"; then
3249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3252 { $as_echo "$as_me:$LINENO: result: no" >&5
3253 $as_echo "no" >&6; }
3257 test -n "$CC" && break
3260 if test -z "$CC"; then
3262 for ac_prog in cl.exe
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265 set dummy $ac_prog; ac_word=$2
3266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3269 $as_echo_n "(cached) " >&6
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_ac_ct_CC="$ac_prog"
3282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3294 $as_echo "$ac_ct_CC" >&6; }
3296 { $as_echo "$as_me:$LINENO: result: no" >&5
3297 $as_echo "no" >&6; }
3301 test -n "$ac_ct_CC" && break
3304 if test "x$ac_ct_CC" = x; then
3307 case $cross_compiling:$ac_tool_warned in
3309 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311 ac_tool_warned=yes ;;
3320 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3325 See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }; }
3328 # Provide some information about the compiler.
3329 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3332 { (ac_try="$ac_compiler --version >&5"
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339 (eval "$ac_compiler --version >&5") 2>&5
3341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }
3343 { (ac_try="$ac_compiler -v >&5"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3349 $as_echo "$ac_try_echo") >&5
3350 (eval "$ac_compiler -v >&5") 2>&5
3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354 { (ac_try="$ac_compiler -V >&5"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compiler -V >&5") 2>&5
3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3381 ac_clean_files_save=$ac_clean_files
3382 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383 # Try to create an executable without -o first, disregard a.out.
3384 # It will help us diagnose broken compilers, and finding out an intuition
3386 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; }
3388 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3390 # The possible output files:
3391 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3394 for ac_file in $ac_files
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3403 if { (ac_try="$ac_link_default"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409 $as_echo "$ac_try_echo") >&5
3410 (eval "$ac_link_default") 2>&5
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; then
3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3417 # so that the user can short-circuit this test for compilers unknown to
3419 for ac_file in $ac_files ''
3421 test -f "$ac_file" || continue
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3426 # We found the default executable, but exeext='' is most
3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434 # We set ac_cv_exeext here because the later test for it is not
3435 # safe: cross compilers may not add the suffix if given an `-o'
3436 # argument, so we may need to know it at that point already.
3437 # Even if this section looks crufty: it has the advantage of
3444 test "$ac_cv_exeext" = no && ac_cv_exeext=
3450 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3451 $as_echo "$ac_file" >&6; }
3452 if test -z "$ac_file"; then
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: C compiler cannot create executables
3461 See \`config.log' for more details." >&2;}
3462 { (exit 77); exit 77; }; }; }
3465 ac_exeext=$ac_cv_exeext
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3472 # If not cross compiling, check that we can run a simple program.
3473 if test "$cross_compiling" != yes; then
3474 if { ac_try='./$ac_file'
3475 { (case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_try") 2>&5
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3487 if test "$cross_compiling" = maybe; then
3490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details." >&5
3495 $as_echo "$as_me: error: cannot run C compiled programs.
3496 If you meant to cross compile, use \`--host'.
3497 See \`config.log' for more details." >&2;}
3498 { (exit 1); exit 1; }; }; }
3502 { $as_echo "$as_me:$LINENO: result: yes" >&5
3503 $as_echo "yes" >&6; }
3505 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3506 ac_clean_files=$ac_clean_files_save
3507 # Check that the compiler produces executables we can run. If not, either
3508 # the compiler is broken, or we cross compile.
3509 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3510 $as_echo_n "checking whether we are cross compiling... " >&6; }
3511 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3512 $as_echo "$cross_compiling" >&6; }
3514 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3515 $as_echo_n "checking for suffix of executables... " >&6; }
3516 if { (ac_try="$ac_link"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_link") 2>&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; then
3527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3529 # work properly (i.e., refer to `conftest.exe'), while it won't with
3531 for ac_file in conftest.exe conftest conftest.*; do
3532 test -f "$ac_file" || continue
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3544 See \`config.log' for more details." >&5
3545 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }; }
3550 rm -f conftest$ac_cv_exeext
3551 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3552 $as_echo "$ac_cv_exeext" >&6; }
3554 rm -f conftest.$ac_ext
3555 EXEEXT=$ac_cv_exeext
3557 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3558 $as_echo_n "checking for suffix of object files... " >&6; }
3559 if test "${ac_cv_objext+set}" = set; then
3560 $as_echo_n "(cached) " >&6
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3577 rm -f conftest.o conftest.obj
3578 if { (ac_try="$ac_compile"
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3584 $as_echo "$ac_try_echo") >&5
3585 (eval "$ac_compile") 2>&5
3587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; then
3589 for ac_file in conftest.o conftest.obj conftest.*; do
3590 test -f "$ac_file" || continue;
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3598 $as_echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }; }
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 $as_echo_n "(cached) " >&6
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* 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
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3791 grep -v '^ *+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3827 if test "$GCC" = yes; then
3833 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3838 ac_cv_prog_cc_c89=no
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3864 s = g (p, va_arg (v,int));
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 CC="$ac_save_CC $ac_arg"
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 ac_cv_prog_cc_c89=$ac_arg
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f core conftest.err conftest.$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
3930 rm -f conftest.$ac_ext
3935 case "x$ac_cv_prog_cc_c89" in
3937 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3938 $as_echo "none needed" >&6; } ;;
3940 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3941 $as_echo "unsupported" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 depcc="$CC" am_compiler_list=
3957 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3958 $as_echo_n "checking dependency style of $depcc... " >&6; }
3959 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3960 $as_echo_n "(cached) " >&6
3962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3963 # We make a subdir and do the tests there. Otherwise we can end up
3964 # making bogus files that we don't know about and never remove. For
3965 # instance it was reported that on HP-UX the gcc test will end up
3966 # making a dummy file named `D' -- because `-MD' means `put the output
3969 # Copy depcomp to subdir because otherwise we won't find it if we're
3970 # using a relative directory.
3971 cp "$am_depcomp" conftest.dir
3973 # We will build objects and dependencies in a subdirectory because
3974 # it helps to detect inapplicable dependency modes. For instance
3975 # both Tru64's cc and ICC support -MD to output dependencies as a
3976 # side effect of compilation, but ICC will put the dependencies in
3977 # the current directory while Tru64 will put them in the object
3981 am_cv_CC_dependencies_compiler_type=none
3982 if test "$am_compiler_list" = ""; then
3983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3985 for depmode in $am_compiler_list; do
3986 # Setup a source with many dependencies, because some compilers
3987 # like to wrap large dependency lists on column 80 (with \), and
3988 # we should not choose a depcomp mode which is confused by this.
3990 # We need to recreate these files for each test, as the compiler may
3991 # overwrite some of them when testing with obscure command lines.
3992 # This happens at least with the AIX C compiler.
3994 for i in 1 2 3 4 5 6; do
3995 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3996 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3997 # Solaris 8's {/usr,}/bin/sh.
3998 touch sub/conftst$i.h
4000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4004 # after this tag, mechanisms are not by side-effect, so they'll
4005 # only be used when explicitly requested
4006 if test "x$enable_dependency_tracking" = xyes; then
4014 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4015 # mode. It turns out that the SunPro C++ compiler does not properly
4016 # handle `-M -o', and we need to detect this.
4017 if depmode=$depmode \
4018 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4020 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4021 >/dev/null 2>conftest.err &&
4022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4024 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4026 # icc doesn't choke on unknown options, it will just issue warnings
4027 # or remarks (even with -Werror). So we grep stderr for any message
4028 # that says an option was ignored or not supported.
4029 # When given -MP, icc 7.0 and 7.1 complain thusly:
4030 # icc: Command line warning: ignoring option '-M'; no argument required
4031 # The diagnosis changed in icc 8.0:
4032 # icc: Command line remark: option '-MP' not supported
4033 if (grep 'ignoring option' conftest.err ||
4034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4035 am_cv_CC_dependencies_compiler_type=$depmode
4044 am_cv_CC_dependencies_compiler_type=none
4048 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4053 test "x$enable_dependency_tracking" != xno \
4054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4056 am__fastdepCC_FALSE='#'
4058 am__fastdepCC_TRUE='#'
4059 am__fastdepCC_FALSE=
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4075 if test -z "$CPP"; then
4076 if test "${ac_cv_prog_CPP+set}" = set; then
4077 $as_echo_n "(cached) " >&6
4079 # Double quotes because CPP needs to be expanded
4080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083 for ac_c_preproc_warn_flag in '' yes
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4098 # include <limits.h>
4100 # include <assert.h>
4104 if { (ac_try="$ac_cpp conftest.$ac_ext"
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null && {
4118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 # Broken: fails on valid input.
4130 rm -f conftest.err conftest.$ac_ext
4132 # OK, works on sane cases. Now check whether nonexistent headers
4133 # can be detected and how.
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <ac_nonexistent.h>
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null && {
4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4159 # Broken: success on invalid input.
4162 $as_echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 # Passes both tests.
4170 rm -f conftest.err conftest.$ac_ext
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then
4187 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4188 $as_echo "$CPP" >&6; }
4190 for ac_c_preproc_warn_flag in '' yes
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4205 # include <limits.h>
4207 # include <assert.h>
4211 if { (ac_try="$ac_cpp conftest.$ac_ext"
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev/null && {
4225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4230 $as_echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 # Broken: fails on valid input.
4237 rm -f conftest.err conftest.$ac_ext
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
4241 cat >conftest.$ac_ext <<_ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4249 if { (ac_try="$ac_cpp conftest.$ac_ext"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255 $as_echo "$ac_try_echo") >&5
4256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } >/dev/null && {
4263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4264 test ! -s conftest.err
4266 # Broken: success on invalid input.
4269 $as_echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4272 # Passes both tests.
4277 rm -f conftest.err conftest.$ac_ext
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then
4285 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4288 See \`config.log' for more details." >&5
4289 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details." >&2;}
4291 { (exit 1); exit 1; }; }; }
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4302 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4303 if test "${ac_cv_path_GREP+set}" = set; then
4304 $as_echo_n "(cached) " >&6
4306 if test -z "$GREP"; then
4307 ac_path_GREP_found=false
4308 # Loop through the user's path and test for each of PROGNAME-LIST
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 test -z "$as_dir" && as_dir=.
4314 for ac_prog in grep ggrep; do
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4317 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4318 # Check for GNU ac_path_GREP and select it if it is found.
4319 # Check for GNU $ac_path_GREP
4320 case `"$ac_path_GREP" --version 2>&1` in
4322 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4325 $as_echo_n 0123456789 >"conftest.in"
4328 cat "conftest.in" "conftest.in" >"conftest.tmp"
4329 mv "conftest.tmp" "conftest.in"
4330 cp "conftest.in" "conftest.nl"
4331 $as_echo 'GREP' >> "conftest.nl"
4332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334 ac_count=`expr $ac_count + 1`
4335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4336 # Best one so far, save it but keep looking for a better one
4337 ac_cv_path_GREP="$ac_path_GREP"
4338 ac_path_GREP_max=$ac_count
4340 # 10*(2^10) chars as input seems more than enough
4341 test $ac_count -gt 10 && break
4343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 $ac_path_GREP_found && break 3
4351 if test -z "$ac_cv_path_GREP"; then
4352 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4353 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4354 { (exit 1); exit 1; }; }
4357 ac_cv_path_GREP=$GREP
4361 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4362 $as_echo "$ac_cv_path_GREP" >&6; }
4363 GREP="$ac_cv_path_GREP"
4366 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4367 $as_echo_n "checking for egrep... " >&6; }
4368 if test "${ac_cv_path_EGREP+set}" = set; then
4369 $as_echo_n "(cached) " >&6
4371 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4372 then ac_cv_path_EGREP="$GREP -E"
4374 if test -z "$EGREP"; then
4375 ac_path_EGREP_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in egrep; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4386 # Check for GNU ac_path_EGREP and select it if it is found.
4387 # Check for GNU $ac_path_EGREP
4388 case `"$ac_path_EGREP" --version 2>&1` in
4390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4393 $as_echo_n 0123456789 >"conftest.in"
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo 'EGREP' >> "conftest.nl"
4400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 ac_count=`expr $ac_count + 1`
4403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_EGREP="$ac_path_EGREP"
4406 ac_path_EGREP_max=$ac_count
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 $ac_path_EGREP_found && break 3
4419 if test -z "$ac_cv_path_EGREP"; then
4420 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4421 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4422 { (exit 1); exit 1; }; }
4425 ac_cv_path_EGREP=$EGREP
4430 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4431 $as_echo "$ac_cv_path_EGREP" >&6; }
4432 EGREP="$ac_cv_path_EGREP"
4435 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4436 $as_echo_n "checking for ANSI C header files... " >&6; }
4437 if test "${ac_cv_header_stdc+set}" = set; then
4438 $as_echo_n "(cached) " >&6
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4466 $as_echo "$ac_try_echo") >&5
4467 (eval "$ac_compile") 2>conftest.er1
4469 grep -v '^ *+' conftest.er1 >conftest.err
4471 cat conftest.err >&5
4472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && {
4474 test -z "$ac_c_werror_flag" ||
4475 test ! -s conftest.err
4476 } && test -s conftest.$ac_objext; then
4477 ac_cv_header_stdc=yes
4479 $as_echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ac_cv_header_stdc=no
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 if test $ac_cv_header_stdc = yes; then
4488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499 $EGREP "memchr" >/dev/null 2>&1; then
4502 ac_cv_header_stdc=no
4508 if test $ac_cv_header_stdc = yes; then
4509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4520 $EGREP "free" >/dev/null 2>&1; then
4523 ac_cv_header_stdc=no
4529 if test $ac_cv_header_stdc = yes; then
4530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4531 if test "$cross_compiling" = yes; then
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4542 #if ((' ' & 0x0FF) == 0x020)
4543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4546 # define ISLOWER(c) \
4547 (('a' <= (c) && (c) <= 'i') \
4548 || ('j' <= (c) && (c) <= 'r') \
4549 || ('s' <= (c) && (c) <= 'z'))
4550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4558 for (i = 0; i < 256; i++)
4559 if (XOR (islower (i), ISLOWER (i))
4560 || toupper (i) != TOUPPER (i))
4565 rm -f conftest$ac_exeext
4566 if { (ac_try="$ac_link"
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4572 $as_echo "$ac_try_echo") >&5
4573 (eval "$ac_link") 2>&5
4575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4577 { (case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582 $as_echo "$ac_try_echo") >&5
4583 (eval "$ac_try") 2>&5
4585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4589 $as_echo "$as_me: program exited with status $ac_status" >&5
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4594 ac_cv_header_stdc=no
4596 rm -rf conftest.dSYM
4597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4604 $as_echo "$ac_cv_header_stdc" >&6; }
4605 if test $ac_cv_header_stdc = yes; then
4607 cat >>confdefs.h <<\_ACEOF
4608 #define STDC_HEADERS 1
4613 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4623 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4624 inttypes.h stdint.h unistd.h
4626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4628 $as_echo_n "checking for $ac_header... " >&6; }
4629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4630 $as_echo_n "(cached) " >&6
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4640 #include <$ac_header>
4642 rm -f conftest.$ac_objext
4643 if { (ac_try="$ac_compile"
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4649 $as_echo "$ac_try_echo") >&5
4650 (eval "$ac_compile") 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && {
4657 test -z "$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4659 } && test -s conftest.$ac_objext; then
4660 eval "$as_ac_Header=yes"
4662 $as_echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 eval "$as_ac_Header=no"
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_res=`eval 'as_val=${'$as_ac_Header'}
4671 $as_echo "$as_val"'`
4672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4673 $as_echo "$ac_res" >&6; }
4674 as_val=`eval 'as_val=${'$as_ac_Header'}
4675 $as_echo "$as_val"'`
4676 if test "x$as_val" = x""yes; then
4677 cat >>confdefs.h <<_ACEOF
4678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4689 # Check whether --with-tirpcinclude was given.
4690 if test "${with_tirpcinclude+set}" = set; then
4691 withval=$with_tirpcinclude; tirpc_header_dir=$withval
4693 tirpc_header_dir=/usr/include/tirpc
4698 if test "$enable_tirpc" = yes; then
4701 { $as_echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
4702 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
4703 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
4704 $as_echo_n "(cached) " >&6
4706 ac_check_lib_save_LIBS=$LIBS
4707 LIBS="-ltirpc $LIBS"
4708 cat >conftest.$ac_ext <<_ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4715 /* Override any GCC internal prototype to avoid an error.
4716 Use char because int might match the return type of a GCC
4717 builtin and then its argument prototype would still apply. */
4721 char clnt_tli_create ();
4725 return clnt_tli_create ();
4730 rm -f conftest.$ac_objext conftest$ac_exeext
4731 if { (ac_try="$ac_link"
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4737 $as_echo "$ac_try_echo") >&5
4738 (eval "$ac_link") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest$ac_exeext && {
4748 test "$cross_compiling" = yes ||
4749 $as_test_x conftest$ac_exeext
4751 ac_cv_lib_tirpc_clnt_tli_create=yes
4753 $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 ac_cv_lib_tirpc_clnt_tli_create=no
4759 rm -rf conftest.dSYM
4760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4761 conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
4765 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
4766 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then
4767 cat >>confdefs.h <<_ACEOF
4768 #define HAVE_LIBTIRPC 1
4771 LIBS="-ltirpc $LIBS"
4774 { { $as_echo "$as_me:$LINENO: error: libtirpc not found." >&5
4775 $as_echo "$as_me: error: libtirpc not found." >&2;}
4776 { (exit 1); exit 1; }; }
4781 for ac_header in ${tirpc_header_dir}/netconfig.h
4783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4786 $as_echo_n "checking for $ac_header... " >&6; }
4787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4788 $as_echo_n "(cached) " >&6
4790 ac_res=`eval 'as_val=${'$as_ac_Header'}
4791 $as_echo "$as_val"'`
4792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4793 $as_echo "$ac_res" >&6; }
4795 # Is the header compilable?
4796 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4797 $as_echo_n "checking $ac_header usability... " >&6; }
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 $ac_includes_default
4805 #include <$ac_header>
4807 rm -f conftest.$ac_objext
4808 if { (ac_try="$ac_compile"
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4814 $as_echo "$ac_try_echo") >&5
4815 (eval "$ac_compile") 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } && {
4822 test -z "$ac_c_werror_flag" ||
4823 test ! -s conftest.err
4824 } && test -s conftest.$ac_objext; then
4825 ac_header_compiler=yes
4827 $as_echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 ac_header_compiler=no
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4835 $as_echo "$ac_header_compiler" >&6; }
4837 # Is the header present?
4838 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4839 $as_echo_n "checking $ac_header presence... " >&6; }
4840 cat >conftest.$ac_ext <<_ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 #include <$ac_header>
4848 if { (ac_try="$ac_cpp conftest.$ac_ext"
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4854 $as_echo "$ac_try_echo") >&5
4855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4857 grep -v '^ *+' conftest.er1 >conftest.err
4859 cat conftest.err >&5
4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } >/dev/null && {
4862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4865 ac_header_preproc=yes
4867 $as_echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4870 ac_header_preproc=no
4873 rm -f conftest.err conftest.$ac_ext
4874 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4875 $as_echo "$ac_header_preproc" >&6; }
4877 # So? What about this header?
4878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4881 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4884 ac_header_preproc=yes
4887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4888 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4890 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4892 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4894 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4898 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4900 ## ---------------------------------------- ##
4901 ## Report this to linux-nfs@vger.kernel.org ##
4902 ## ---------------------------------------- ##
4904 ) | sed "s/^/$as_me: WARNING: /" >&2
4907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4908 $as_echo_n "checking for $ac_header... " >&6; }
4909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4910 $as_echo_n "(cached) " >&6
4912 eval "$as_ac_Header=\$ac_header_preproc"
4914 ac_res=`eval 'as_val=${'$as_ac_Header'}
4915 $as_echo "$as_val"'`
4916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4917 $as_echo "$ac_res" >&6; }
4920 as_val=`eval 'as_val=${'$as_ac_Header'}
4921 $as_echo "$as_val"'`
4922 if test "x$as_val" = x""yes; then
4923 cat >>confdefs.h <<_ACEOF
4924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4928 { { $as_echo "$as_me:$LINENO: error: libtirpc headers not found." >&5
4929 $as_echo "$as_me: error: libtirpc headers not found." >&2;}
4930 { (exit 1); exit 1; }; }
4935 AM_CPPFLAGS="-I${tirpc_header_dir}"
4942 # Check whether user wants TCP wrappers support
4946 # Check whether --with-tcp-wrappers was given.
4947 if test "${with_tcp_wrappers+set}" = set; then
4948 withval=$with_tcp_wrappers; with_tcpw=$withval
4953 if test "x$with_tcpw" != "xno" ; then
4955 saved_LDFLAGS="$LDFLAGS"
4956 saved_CPPFLAGS="$CPPFLAGS"
4957 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
4958 if test -d "${with_tcpw}/lib"; then
4959 if test -n "${need_dash_r}"; then
4960 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
4962 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
4965 if test -n "${need_dash_r}"; then
4966 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
4968 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
4971 if test -d "${with_tcpw}/include"; then
4972 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
4974 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
4978 LIBS="$LIBWRAP $LIBS"
4979 { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
4980 $as_echo_n "checking for libwrap... " >&6; }
4981 cat >conftest.$ac_ext <<_ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4989 int deny_severity = 0, allow_severity = 0;
4999 rm -f conftest.$ac_objext conftest$ac_exeext
5000 if { (ac_try="$ac_link"
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5006 $as_echo "$ac_try_echo") >&5
5007 (eval "$ac_link") 2>conftest.er1
5009 grep -v '^ *+' conftest.er1 >conftest.err
5011 cat conftest.err >&5
5012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && {
5014 test -z "$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 } && test -s conftest$ac_exeext && {
5017 test "$cross_compiling" = yes ||
5018 $as_test_x conftest$ac_exeext
5021 { $as_echo "$as_me:$LINENO: result: yes" >&5
5022 $as_echo "yes" >&6; }
5025 cat >>confdefs.h <<\_ACEOF
5030 cat >>confdefs.h <<\_ACEOF
5031 #define HAVE_LIBWRAP 1
5035 cat >>confdefs.h <<\_ACEOF
5036 #define HAVE_TCP_WRAPPER 1
5042 $as_echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5046 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
5047 $as_echo "$as_me: error: *** libwrap missing" >&2;}
5048 { (exit 1); exit 1; }; }
5053 rm -rf conftest.dSYM
5054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5055 conftest$ac_exeext conftest.$ac_ext
5063 # Arrange for large-file support
5064 # Check whether --enable-largefile was given.
5065 if test "${enable_largefile+set}" = set; then
5066 enableval=$enable_largefile;
5069 if test "$enable_largefile" != no; then
5071 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5072 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5073 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5074 $as_echo_n "(cached) " >&6
5076 ac_cv_sys_largefile_CC=no
5077 if test "$GCC" != yes; then
5080 # IRIX 6.2 and later do not support large files by default,
5081 # so use the C compiler's -n32 option if that helps.
5082 cat >conftest.$ac_ext <<_ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #include <sys/types.h>
5089 /* Check that off_t can represent 2**63 - 1 correctly.
5090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5091 since some C++ compilers masquerading as C compilers
5092 incorrectly reject 9223372036854775807. */
5093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5095 && LARGE_OFF_T % 2147483647 == 1)
5105 rm -f conftest.$ac_objext
5106 if { (ac_try="$ac_compile"
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112 $as_echo "$ac_try_echo") >&5
5113 (eval "$ac_compile") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
5125 $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5131 rm -f core conftest.err conftest.$ac_objext
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5140 $as_echo "$ac_try_echo") >&5
5141 (eval "$ac_compile") 2>conftest.er1
5143 grep -v '^ *+' conftest.er1 >conftest.err
5145 cat conftest.err >&5
5146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && {
5148 test -z "$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5150 } && test -s conftest.$ac_objext; then
5151 ac_cv_sys_largefile_CC=' -n32'; break
5153 $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5159 rm -f core conftest.err conftest.$ac_objext
5163 rm -f conftest.$ac_ext
5166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5167 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5168 if test "$ac_cv_sys_largefile_CC" != no; then
5169 CC=$CC$ac_cv_sys_largefile_CC
5172 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5173 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5174 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5175 $as_echo_n "(cached) " >&6
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 #include <sys/types.h>
5185 /* Check that off_t can represent 2**63 - 1 correctly.
5186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5187 since some C++ compilers masquerading as C compilers
5188 incorrectly reject 9223372036854775807. */
5189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5191 && LARGE_OFF_T % 2147483647 == 1)
5201 rm -f conftest.$ac_objext
5202 if { (ac_try="$ac_compile"
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209 (eval "$ac_compile") 2>conftest.er1
5211 grep -v '^ *+' conftest.er1 >conftest.err
5213 cat conftest.err >&5
5214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest.$ac_objext; then
5219 ac_cv_sys_file_offset_bits=no; break
5221 $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 cat >conftest.$ac_ext <<_ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #define _FILE_OFFSET_BITS 64
5235 #include <sys/types.h>
5236 /* Check that off_t can represent 2**63 - 1 correctly.
5237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5238 since some C++ compilers masquerading as C compilers
5239 incorrectly reject 9223372036854775807. */
5240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5242 && LARGE_OFF_T % 2147483647 == 1)
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5259 $as_echo "$ac_try_echo") >&5
5260 (eval "$ac_compile") 2>conftest.er1
5262 grep -v '^ *+' conftest.er1 >conftest.err
5264 cat conftest.err >&5
5265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } && {
5267 test -z "$ac_c_werror_flag" ||
5268 test ! -s conftest.err
5269 } && test -s conftest.$ac_objext; then
5270 ac_cv_sys_file_offset_bits=64; break
5272 $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ac_cv_sys_file_offset_bits=unknown
5283 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5284 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5285 case $ac_cv_sys_file_offset_bits in #(
5288 cat >>confdefs.h <<_ACEOF
5289 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5294 if test $ac_cv_sys_file_offset_bits = unknown; then
5295 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5296 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5297 if test "${ac_cv_sys_large_files+set}" = set; then
5298 $as_echo_n "(cached) " >&6
5301 cat >conftest.$ac_ext <<_ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 #include <sys/types.h>
5308 /* Check that off_t can represent 2**63 - 1 correctly.
5309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5310 since some C++ compilers masquerading as C compilers
5311 incorrectly reject 9223372036854775807. */
5312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5314 && LARGE_OFF_T % 2147483647 == 1)
5324 rm -f conftest.$ac_objext
5325 if { (ac_try="$ac_compile"
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5331 $as_echo "$ac_try_echo") >&5
5332 (eval "$ac_compile") 2>conftest.er1
5334 grep -v '^ *+' conftest.er1 >conftest.err
5336 cat conftest.err >&5
5337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } && {
5339 test -z "$ac_c_werror_flag" ||
5340 test ! -s conftest.err
5341 } && test -s conftest.$ac_objext; then
5342 ac_cv_sys_large_files=no; break
5344 $as_echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 cat >conftest.$ac_ext <<_ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 #define _LARGE_FILES 1
5358 #include <sys/types.h>
5359 /* Check that off_t can represent 2**63 - 1 correctly.
5360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5361 since some C++ compilers masquerading as C compilers
5362 incorrectly reject 9223372036854775807. */
5363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5365 && LARGE_OFF_T % 2147483647 == 1)
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5382 $as_echo "$ac_try_echo") >&5
5383 (eval "$ac_compile") 2>conftest.er1
5385 grep -v '^ *+' conftest.er1 >conftest.err
5387 cat conftest.err >&5
5388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && {
5390 test -z "$ac_c_werror_flag" ||
5391 test ! -s conftest.err
5392 } && test -s conftest.$ac_objext; then
5393 ac_cv_sys_large_files=1; break
5395 $as_echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 ac_cv_sys_large_files=unknown
5406 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5407 $as_echo "$ac_cv_sys_large_files" >&6; }
5408 case $ac_cv_sys_large_files in #(
5411 cat >>confdefs.h <<_ACEOF
5412 #define _LARGE_FILES $ac_cv_sys_large_files
5422 ac_config_headers="$ac_config_headers support/include/config.h"
5425 # Checks for programs.
5427 ac_cpp='$CXXCPP $CPPFLAGS'
5428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5431 if test -z "$CXX"; then
5432 if test -n "$CCC"; then
5435 if test -n "$ac_tool_prefix"; then
5436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if test "${ac_cv_prog_CXX+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5445 if test -n "$CXX"; then
5446 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 if test -n "$CXX"; then
5467 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5468 $as_echo "$CXX" >&6; }
5470 { $as_echo "$as_me:$LINENO: result: no" >&5
5471 $as_echo "no" >&6; }
5475 test -n "$CXX" && break
5478 if test -z "$CXX"; then
5480 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5482 # Extract the first word of "$ac_prog", so it can be a program name with args.
5483 set dummy $ac_prog; ac_word=$2
5484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5487 $as_echo_n "(cached) " >&6
5489 if test -n "$ac_ct_CXX"; then
5490 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_ac_ct_CXX="$ac_prog"
5500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5510 if test -n "$ac_ct_CXX"; then
5511 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5512 $as_echo "$ac_ct_CXX" >&6; }
5514 { $as_echo "$as_me:$LINENO: result: no" >&5
5515 $as_echo "no" >&6; }
5519 test -n "$ac_ct_CXX" && break
5522 if test "x$ac_ct_CXX" = x; then
5525 case $cross_compiling:$ac_tool_warned in
5527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned=yes ;;
5537 # Provide some information about the compiler.
5538 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5541 { (ac_try="$ac_compiler --version >&5"
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5547 $as_echo "$ac_try_echo") >&5
5548 (eval "$ac_compiler --version >&5") 2>&5
5550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }
5552 { (ac_try="$ac_compiler -v >&5"
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5558 $as_echo "$ac_try_echo") >&5
5559 (eval "$ac_compiler -v >&5") 2>&5
5561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }
5563 { (ac_try="$ac_compiler -V >&5"
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5569 $as_echo "$ac_try_echo") >&5
5570 (eval "$ac_compiler -V >&5") 2>&5
5572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }
5575 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5576 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5578 $as_echo_n "(cached) " >&6
5580 cat >conftest.$ac_ext <<_ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5605 $as_echo "$ac_try_echo") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_cxx_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
5618 $as_echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5628 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5629 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5630 if test $ac_compiler_gnu = yes; then
5635 ac_test_CXXFLAGS=${CXXFLAGS+set}
5636 ac_save_CXXFLAGS=$CXXFLAGS
5637 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5638 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5639 if test "${ac_cv_prog_cxx_g+set}" = set; then
5640 $as_echo_n "(cached) " >&6
5642 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5643 ac_cxx_werror_flag=yes
5646 cat >conftest.$ac_ext <<_ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668 $as_echo "$ac_try_echo") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_cxx_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5679 ac_cv_prog_cxx_g=yes
5681 $as_echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5700 rm -f conftest.$ac_objext
5701 if { (ac_try="$ac_compile"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5707 $as_echo "$ac_try_echo") >&5
5708 (eval "$ac_compile") 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && {
5715 test -z "$ac_cxx_werror_flag" ||
5716 test ! -s conftest.err
5717 } && test -s conftest.$ac_objext; then
5720 $as_echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5740 rm -f conftest.$ac_objext
5741 if { (ac_try="$ac_compile"
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5747 $as_echo "$ac_try_echo") >&5
5748 (eval "$ac_compile") 2>conftest.er1
5750 grep -v '^ *+' conftest.er1 >conftest.err
5752 cat conftest.err >&5
5753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } && {
5755 test -z "$ac_cxx_werror_flag" ||
5756 test ! -s conftest.err
5757 } && test -s conftest.$ac_objext; then
5758 ac_cv_prog_cxx_g=yes
5760 $as_echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5775 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5777 if test "$ac_test_CXXFLAGS" = set; then
5778 CXXFLAGS=$ac_save_CXXFLAGS
5779 elif test $ac_cv_prog_cxx_g = yes; then
5780 if test "$GXX" = yes; then
5786 if test "$GXX" = yes; then
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798 depcc="$CXX" am_compiler_list=
5800 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5801 $as_echo_n "checking dependency style of $depcc... " >&6; }
5802 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5803 $as_echo_n "(cached) " >&6
5805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5806 # We make a subdir and do the tests there. Otherwise we can end up
5807 # making bogus files that we don't know about and never remove. For
5808 # instance it was reported that on HP-UX the gcc test will end up
5809 # making a dummy file named `D' -- because `-MD' means `put the output
5812 # Copy depcomp to subdir because otherwise we won't find it if we're
5813 # using a relative directory.
5814 cp "$am_depcomp" conftest.dir
5816 # We will build objects and dependencies in a subdirectory because
5817 # it helps to detect inapplicable dependency modes. For instance
5818 # both Tru64's cc and ICC support -MD to output dependencies as a
5819 # side effect of compilation, but ICC will put the dependencies in
5820 # the current directory while Tru64 will put them in the object
5824 am_cv_CXX_dependencies_compiler_type=none
5825 if test "$am_compiler_list" = ""; then
5826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5828 for depmode in $am_compiler_list; do
5829 # Setup a source with many dependencies, because some compilers
5830 # like to wrap large dependency lists on column 80 (with \), and
5831 # we should not choose a depcomp mode which is confused by this.
5833 # We need to recreate these files for each test, as the compiler may
5834 # overwrite some of them when testing with obscure command lines.
5835 # This happens at least with the AIX C compiler.
5837 for i in 1 2 3 4 5 6; do
5838 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5839 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5840 # Solaris 8's {/usr,}/bin/sh.
5841 touch sub/conftst$i.h
5843 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5847 # after this tag, mechanisms are not by side-effect, so they'll
5848 # only be used when explicitly requested
5849 if test "x$enable_dependency_tracking" = xyes; then
5857 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5858 # mode. It turns out that the SunPro C++ compiler does not properly
5859 # handle `-M -o', and we need to detect this.
5860 if depmode=$depmode \
5861 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5863 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5864 >/dev/null 2>conftest.err &&
5865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5867 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5869 # icc doesn't choke on unknown options, it will just issue warnings
5870 # or remarks (even with -Werror). So we grep stderr for any message
5871 # that says an option was ignored or not supported.
5872 # When given -MP, icc 7.0 and 7.1 complain thusly:
5873 # icc: Command line warning: ignoring option '-M'; no argument required
5874 # The diagnosis changed in icc 8.0:
5875 # icc: Command line remark: option '-MP' not supported
5876 if (grep 'ignoring option' conftest.err ||
5877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5878 am_cv_CXX_dependencies_compiler_type=$depmode
5887 am_cv_CXX_dependencies_compiler_type=none
5891 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5892 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5893 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5896 test "x$enable_dependency_tracking" != xno \
5897 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5898 am__fastdepCXX_TRUE=
5899 am__fastdepCXX_FALSE='#'
5901 am__fastdepCXX_TRUE='#'
5902 am__fastdepCXX_FALSE=
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911 if test -n "$ac_tool_prefix"; then
5912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if test "${ac_cv_prog_CC+set}" = set; then
5917 $as_echo_n "(cached) " >&6
5919 if test -n "$CC"; then
5920 ac_cv_prog_CC="$CC" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 if test -n "$CC"; then
5941 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5942 $as_echo "$CC" >&6; }
5944 { $as_echo "$as_me:$LINENO: result: no" >&5
5945 $as_echo "no" >&6; }
5950 if test -z "$ac_cv_prog_CC"; then
5952 # Extract the first word of "gcc", so it can be a program name with args.
5953 set dummy gcc; ac_word=$2
5954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5957 $as_echo_n "(cached) " >&6
5959 if test -n "$ac_ct_CC"; then
5960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5969 ac_cv_prog_ac_ct_CC="gcc"
5970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5980 if test -n "$ac_ct_CC"; then
5981 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5982 $as_echo "$ac_ct_CC" >&6; }
5984 { $as_echo "$as_me:$LINENO: result: no" >&5
5985 $as_echo "no" >&6; }
5988 if test "x$ac_ct_CC" = x; then
5991 case $cross_compiling:$ac_tool_warned in
5993 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 ac_tool_warned=yes ;;
6003 if test -z "$CC"; then
6004 if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6006 set dummy ${ac_tool_prefix}cc; ac_word=$2
6007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if test "${ac_cv_prog_CC+set}" = set; then
6010 $as_echo_n "(cached) " >&6
6012 if test -n "$CC"; then
6013 ac_cv_prog_CC="$CC" # Let the user override the test.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_prog_CC="${ac_tool_prefix}cc"
6023 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 if test -n "$CC"; then
6034 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6035 $as_echo "$CC" >&6; }
6037 { $as_echo "$as_me:$LINENO: result: no" >&5
6038 $as_echo "no" >&6; }
6044 if test -z "$CC"; then
6045 # Extract the first word of "cc", so it can be a program name with args.
6046 set dummy cc; ac_word=$2
6047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if test "${ac_cv_prog_CC+set}" = set; then
6050 $as_echo_n "(cached) " >&6
6052 if test -n "$CC"; then
6053 ac_cv_prog_CC="$CC" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6064 ac_prog_rejected=yes
6068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 if test $ac_prog_rejected = yes; then
6076 # We found a bogon in the path, so make sure we never use it.
6077 set dummy $ac_cv_prog_CC
6079 if test $# != 0; then
6080 # We chose a different compiler from the bogus one.
6081 # However, it has the same basename, so the bogon will be chosen
6082 # first if we set CC to just the basename; use the full file name.
6084 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6090 if test -n "$CC"; then
6091 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6092 $as_echo "$CC" >&6; }
6094 { $as_echo "$as_me:$LINENO: result: no" >&5
6095 $as_echo "no" >&6; }
6100 if test -z "$CC"; then
6101 if test -n "$ac_tool_prefix"; then
6102 for ac_prog in cl.exe
6104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if test "${ac_cv_prog_CC+set}" = set; then
6109 $as_echo_n "(cached) " >&6
6111 if test -n "$CC"; then
6112 ac_cv_prog_CC="$CC" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 if test -n "$CC"; then
6133 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6134 $as_echo "$CC" >&6; }
6136 { $as_echo "$as_me:$LINENO: result: no" >&5
6137 $as_echo "no" >&6; }
6141 test -n "$CC" && break
6144 if test -z "$CC"; then
6146 for ac_prog in cl.exe
6148 # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6153 $as_echo_n "(cached) " >&6
6155 if test -n "$ac_ct_CC"; then
6156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_ac_ct_CC="$ac_prog"
6166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6176 if test -n "$ac_ct_CC"; then
6177 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6178 $as_echo "$ac_ct_CC" >&6; }
6180 { $as_echo "$as_me:$LINENO: result: no" >&5
6181 $as_echo "no" >&6; }
6185 test -n "$ac_ct_CC" && break
6188 if test "x$ac_ct_CC" = x; then
6191 case $cross_compiling:$ac_tool_warned in
6193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6204 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6206 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6207 See \`config.log' for more details." >&5
6208 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6209 See \`config.log' for more details." >&2;}
6210 { (exit 1); exit 1; }; }; }
6212 # Provide some information about the compiler.
6213 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6216 { (ac_try="$ac_compiler --version >&5"
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222 $as_echo "$ac_try_echo") >&5
6223 (eval "$ac_compiler --version >&5") 2>&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }
6227 { (ac_try="$ac_compiler -v >&5"
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6233 $as_echo "$ac_try_echo") >&5
6234 (eval "$ac_compiler -v >&5") 2>&5
6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }
6238 { (ac_try="$ac_compiler -V >&5"
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6244 $as_echo "$ac_try_echo") >&5
6245 (eval "$ac_compiler -V >&5") 2>&5
6247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }
6250 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6251 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6253 $as_echo_n "(cached) " >&6
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6273 rm -f conftest.$ac_objext
6274 if { (ac_try="$ac_compile"
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6280 $as_echo "$ac_try_echo") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.$ac_objext; then
6293 $as_echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6303 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6304 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6305 if test $ac_compiler_gnu = yes; then
6310 ac_test_CFLAGS=${CFLAGS+set}
6311 ac_save_CFLAGS=$CFLAGS
6312 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6313 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6314 if test "${ac_cv_prog_cc_g+set}" = set; then
6315 $as_echo_n "(cached) " >&6
6317 ac_save_c_werror_flag=$ac_c_werror_flag
6318 ac_c_werror_flag=yes
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6336 rm -f conftest.$ac_objext
6337 if { (ac_try="$ac_compile"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6343 $as_echo "$ac_try_echo") >&5
6344 (eval "$ac_compile") 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest.$ac_objext; then
6356 $as_echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6375 rm -f conftest.$ac_objext
6376 if { (ac_try="$ac_compile"
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_compile") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest.$ac_objext; then
6395 $as_echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 ac_c_werror_flag=$ac_save_c_werror_flag
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6415 rm -f conftest.$ac_objext
6416 if { (ac_try="$ac_compile"
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6422 $as_echo "$ac_try_echo") >&5
6423 (eval "$ac_compile") 2>conftest.er1
6425 grep -v '^ *+' conftest.er1 >conftest.err
6427 cat conftest.err >&5
6428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && {
6430 test -z "$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 } && test -s conftest.$ac_objext; then
6435 $as_echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 ac_c_werror_flag=$ac_save_c_werror_flag
6450 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6451 $as_echo "$ac_cv_prog_cc_g" >&6; }
6452 if test "$ac_test_CFLAGS" = set; then
6453 CFLAGS=$ac_save_CFLAGS
6454 elif test $ac_cv_prog_cc_g = yes; then
6455 if test "$GCC" = yes; then
6461 if test "$GCC" = yes; then
6467 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6468 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6469 if test "${ac_cv_prog_cc_c89+set}" = set; then
6470 $as_echo_n "(cached) " >&6
6472 ac_cv_prog_cc_c89=no
6474 cat >conftest.$ac_ext <<_ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6482 #include <sys/types.h>
6483 #include <sys/stat.h>
6484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6485 struct buf { int x; };
6486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6487 static char *e (p, i)
6493 static char *f (char * (*g) (char **, int), char **p, ...)
6498 s = g (p, va_arg (v,int));
6503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6504 function prototypes and stuff, but not '\xHH' hex character constants.
6505 These don't provoke an error unfortunately, instead are silently treated
6506 as 'x'. The following induces an error, until -std is added to get
6507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6508 array size at least. It's necessary to write '\x00'==0 to get something
6509 that's true only with -std. */
6510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6513 inside strings and character constants. */
6515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6517 int test (int i, double x);
6518 struct s1 {int (*f) (int a);};
6519 struct s2 {int (*f) (double a);};
6520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6532 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6534 CC="$ac_save_CC $ac_arg"
6535 rm -f conftest.$ac_objext
6536 if { (ac_try="$ac_compile"
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6542 $as_echo "$ac_try_echo") >&5
6543 (eval "$ac_compile") 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
6553 ac_cv_prog_cc_c89=$ac_arg
6555 $as_echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6561 rm -f core conftest.err conftest.$ac_objext
6562 test "x$ac_cv_prog_cc_c89" != "xno" && break
6564 rm -f conftest.$ac_ext
6569 case "x$ac_cv_prog_cc_c89" in
6571 { $as_echo "$as_me:$LINENO: result: none needed" >&5
6572 $as_echo "none needed" >&6; } ;;
6574 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6575 $as_echo "unsupported" >&6; } ;;
6577 CC="$CC $ac_cv_prog_cc_c89"
6578 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6579 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589 depcc="$CC" am_compiler_list=
6591 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6592 $as_echo_n "checking dependency style of $depcc... " >&6; }
6593 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6594 $as_echo_n "(cached) " >&6
6596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6597 # We make a subdir and do the tests there. Otherwise we can end up
6598 # making bogus files that we don't know about and never remove. For
6599 # instance it was reported that on HP-UX the gcc test will end up
6600 # making a dummy file named `D' -- because `-MD' means `put the output
6603 # Copy depcomp to subdir because otherwise we won't find it if we're
6604 # using a relative directory.
6605 cp "$am_depcomp" conftest.dir
6607 # We will build objects and dependencies in a subdirectory because
6608 # it helps to detect inapplicable dependency modes. For instance
6609 # both Tru64's cc and ICC support -MD to output dependencies as a
6610 # side effect of compilation, but ICC will put the dependencies in
6611 # the current directory while Tru64 will put them in the object
6615 am_cv_CC_dependencies_compiler_type=none
6616 if test "$am_compiler_list" = ""; then
6617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6619 for depmode in $am_compiler_list; do
6620 # Setup a source with many dependencies, because some compilers
6621 # like to wrap large dependency lists on column 80 (with \), and
6622 # we should not choose a depcomp mode which is confused by this.
6624 # We need to recreate these files for each test, as the compiler may
6625 # overwrite some of them when testing with obscure command lines.
6626 # This happens at least with the AIX C compiler.
6628 for i in 1 2 3 4 5 6; do
6629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6631 # Solaris 8's {/usr,}/bin/sh.
6632 touch sub/conftst$i.h
6634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6638 # after this tag, mechanisms are not by side-effect, so they'll
6639 # only be used when explicitly requested
6640 if test "x$enable_dependency_tracking" = xyes; then
6648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6649 # mode. It turns out that the SunPro C++ compiler does not properly
6650 # handle `-M -o', and we need to detect this.
6651 if depmode=$depmode \
6652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6655 >/dev/null 2>conftest.err &&
6656 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6658 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6660 # icc doesn't choke on unknown options, it will just issue warnings
6661 # or remarks (even with -Werror). So we grep stderr for any message
6662 # that says an option was ignored or not supported.
6663 # When given -MP, icc 7.0 and 7.1 complain thusly:
6664 # icc: Command line warning: ignoring option '-M'; no argument required
6665 # The diagnosis changed in icc 8.0:
6666 # icc: Command line remark: option '-MP' not supported
6667 if (grep 'ignoring option' conftest.err ||
6668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6669 am_cv_CC_dependencies_compiler_type=$depmode
6678 am_cv_CC_dependencies_compiler_type=none
6682 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6683 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6687 test "x$enable_dependency_tracking" != xno \
6688 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6690 am__fastdepCC_FALSE='#'
6692 am__fastdepCC_TRUE='#'
6693 am__fastdepCC_FALSE=
6698 ac_cpp='$CPP $CPPFLAGS'
6699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6702 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6703 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6704 # On Suns, sometimes $CPP names a directory.
6705 if test -n "$CPP" && test -d "$CPP"; then
6708 if test -z "$CPP"; then
6709 if test "${ac_cv_prog_CPP+set}" = set; then
6710 $as_echo_n "(cached) " >&6
6712 # Double quotes because CPP needs to be expanded
6713 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6716 for ac_c_preproc_warn_flag in '' yes
6718 # Use a header file that comes with gcc, so configuring glibc
6719 # with a fresh cross-compiler works.
6720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721 # <limits.h> exists even on freestanding compilers.
6722 # On the NeXT, cc -E runs the code through the compiler's parser,
6723 # not just through cpp. "Syntax error" is here to catch this case.
6724 cat >conftest.$ac_ext <<_ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6731 # include <limits.h>
6733 # include <assert.h>
6737 if { (ac_try="$ac_cpp conftest.$ac_ext"
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6743 $as_echo "$ac_try_echo") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev/null && {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6756 $as_echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 # Broken: fails on valid input.
6763 rm -f conftest.err conftest.$ac_ext
6765 # OK, works on sane cases. Now check whether nonexistent headers
6766 # can be detected and how.
6767 cat >conftest.$ac_ext <<_ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <ac_nonexistent.h>
6775 if { (ac_try="$ac_cpp conftest.$ac_ext"
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6781 $as_echo "$ac_try_echo") >&5
6782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } >/dev/null && {
6789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6792 # Broken: success on invalid input.
6795 $as_echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6798 # Passes both tests.
6803 rm -f conftest.err conftest.$ac_ext
6806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6807 rm -f conftest.err conftest.$ac_ext
6808 if $ac_preproc_ok; then
6820 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6821 $as_echo "$CPP" >&6; }
6823 for ac_c_preproc_warn_flag in '' yes
6825 # Use a header file that comes with gcc, so configuring glibc
6826 # with a fresh cross-compiler works.
6827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6828 # <limits.h> exists even on freestanding compilers.
6829 # On the NeXT, cc -E runs the code through the compiler's parser,
6830 # not just through cpp. "Syntax error" is here to catch this case.
6831 cat >conftest.$ac_ext <<_ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6838 # include <limits.h>
6840 # include <assert.h>
6844 if { (ac_try="$ac_cpp conftest.$ac_ext"
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850 $as_echo "$ac_try_echo") >&5
6851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6853 grep -v '^ *+' conftest.er1 >conftest.err
6855 cat conftest.err >&5
6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } >/dev/null && {
6858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6863 $as_echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 # Broken: fails on valid input.
6870 rm -f conftest.err conftest.$ac_ext
6872 # OK, works on sane cases. Now check whether nonexistent headers
6873 # can be detected and how.
6874 cat >conftest.$ac_ext <<_ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 #include <ac_nonexistent.h>
6882 if { (ac_try="$ac_cpp conftest.$ac_ext"
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } >/dev/null && {
6896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6899 # Broken: success on invalid input.
6902 $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 # Passes both tests.
6910 rm -f conftest.err conftest.$ac_ext
6913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6914 rm -f conftest.err conftest.$ac_ext
6915 if $ac_preproc_ok; then
6918 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6920 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6921 See \`config.log' for more details." >&5
6922 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6923 See \`config.log' for more details." >&2;}
6924 { (exit 1); exit 1; }; }; }
6928 ac_cpp='$CPP $CPPFLAGS'
6929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933 # Find a good install program. We prefer a C program (faster),
6934 # so one script is as good as another. But avoid the broken or
6935 # incompatible versions:
6936 # SysV /etc/install, /usr/sbin/install
6937 # SunOS /usr/etc/install
6938 # IRIX /sbin/install
6940 # AmigaOS /C/install, which installs bootblocks on floppy discs
6941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6944 # OS/2's system install, which has a completely different semantic
6945 # ./install, which can be erroneously created by make from ./install.sh.
6946 # Reject install programs that cannot install multiple files.
6947 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6948 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6949 if test -z "$INSTALL"; then
6950 if test "${ac_cv_path_install+set}" = set; then
6951 $as_echo_n "(cached) " >&6
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 # Account for people who put trailing slashes in PATH elements.
6960 ./ | .// | /cC/* | \
6961 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6962 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6965 # OSF1 and SCO ODT 3.0 have their own names for install.
6966 # Don't use installbsd from OSF since it installs stuff as root
6968 for ac_prog in ginstall scoinst install; do
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6971 if test $ac_prog = install &&
6972 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6973 # AIX install. It has an incompatible calling convention.
6975 elif test $ac_prog = install &&
6976 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6977 # program-specific install script used by HP pwplus--don't use.
6980 rm -rf conftest.one conftest.two conftest.dir
6981 echo one > conftest.one
6982 echo two > conftest.two
6984 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6985 test -s conftest.one && test -s conftest.two &&
6986 test -s conftest.dir/conftest.one &&
6987 test -s conftest.dir/conftest.two
6989 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7002 rm -rf conftest.one conftest.two conftest.dir
7005 if test "${ac_cv_path_install+set}" = set; then
7006 INSTALL=$ac_cv_path_install
7008 # As a last resort, use the slow shell script. Don't cache a
7009 # value for INSTALL within a source directory, because that will
7010 # break other packages using the cache if that directory is
7011 # removed, or if the value is a relative name.
7012 INSTALL=$ac_install_sh
7015 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7016 $as_echo "$INSTALL" >&6; }
7018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7019 # It thinks the first close brace ends the variable substitution.
7020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7026 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7027 $as_echo_n "checking whether ln -s works... " >&6; }
7029 if test "$LN_S" = "ln -s"; then
7030 { $as_echo "$as_me:$LINENO: result: yes" >&5
7031 $as_echo "yes" >&6; }
7033 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7034 $as_echo "no, using $LN_S" >&6; }
7037 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7038 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7040 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7041 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7042 $as_echo_n "(cached) " >&6
7044 cat >conftest.make <<\_ACEOF
7047 @echo '@@@%%%=$(MAKE)=@@@%%%'
7049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7050 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7052 eval ac_cv_prog_make_${ac_make}_set=yes;;
7054 eval ac_cv_prog_make_${ac_make}_set=no;;
7058 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7059 { $as_echo "$as_me:$LINENO: result: yes" >&5
7060 $as_echo "yes" >&6; }
7063 { $as_echo "$as_me:$LINENO: result: no" >&5
7064 $as_echo "no" >&6; }
7065 SET_MAKE="MAKE=${MAKE-make}"
7068 # Check whether --enable-shared was given.
7069 if test "${enable_shared+set}" = set; then
7070 enableval=$enable_shared; p=${PACKAGE-default}
7072 yes) enable_shared=yes ;;
7073 no) enable_shared=no ;;
7076 # Look at the argument we got. We use all the common list separators.
7077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7078 for pkg in $enableval; do
7080 if test "X$pkg" = "X$p"; then
7092 # Check whether --enable-static was given.
7093 if test "${enable_static+set}" = set; then
7094 enableval=$enable_static; p=${PACKAGE-default}
7096 yes) enable_static=yes ;;
7097 no) enable_static=no ;;
7100 # Look at the argument we got. We use all the common list separators.
7101 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7102 for pkg in $enableval; do
7104 if test "X$pkg" = "X$p"; then
7116 # Check whether --enable-fast-install was given.
7117 if test "${enable_fast_install+set}" = set; then
7118 enableval=$enable_fast_install; p=${PACKAGE-default}
7120 yes) enable_fast_install=yes ;;
7121 no) enable_fast_install=no ;;
7123 enable_fast_install=no
7124 # Look at the argument we got. We use all the common list separators.
7125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7126 for pkg in $enableval; do
7128 if test "X$pkg" = "X$p"; then
7129 enable_fast_install=yes
7136 enable_fast_install=yes
7140 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7141 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7142 if test "${lt_cv_path_SED+set}" = set; then
7143 $as_echo_n "(cached) " >&6
7145 # Loop through the user's path and test for sed and gsed.
7146 # Then use that list of sed's as ones to test for truncation.
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 test -z "$as_dir" && as_dir=.
7152 for lt_ac_prog in sed gsed; do
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
7155 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7163 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7164 # along with /bin/sed that truncates output.
7165 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7166 test ! -f $lt_ac_sed && continue
7167 cat /dev/null > conftest.in
7169 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7170 # Check for GNU sed and select it if it is found.
7171 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7172 lt_cv_path_SED=$lt_ac_sed
7176 cat conftest.in conftest.in >conftest.tmp
7177 mv conftest.tmp conftest.in
7178 cp conftest.in conftest.nl
7180 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7181 cmp -s conftest.out conftest.nl || break
7182 # 10000 chars as input seems more than enough
7183 test $lt_ac_count -gt 10 && break
7184 lt_ac_count=`expr $lt_ac_count + 1`
7185 if test $lt_ac_count -gt $lt_ac_max; then
7186 lt_ac_max=$lt_ac_count
7187 lt_cv_path_SED=$lt_ac_sed
7196 { $as_echo "$as_me:$LINENO: result: $SED" >&5
7197 $as_echo "$SED" >&6; }
7200 # Check whether --with-gnu-ld was given.
7201 if test "${with_gnu_ld+set}" = set; then
7202 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7208 if test "$GCC" = yes; then
7209 # Check if gcc -print-prog-name=ld gives a path.
7210 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7211 $as_echo_n "checking for ld used by $CC... " >&6; }
7214 # gcc leaves a trailing carriage return which upsets mingw
7215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7220 # Accept absolute paths.
7222 re_direlt='/[^/][^/]*/\.\./'
7223 # Canonicalize the pathname of ld
7224 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7225 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7226 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7228 test -z "$LD" && LD="$ac_prog"
7231 # If it fails, then pretend we aren't using GCC.
7235 # If it is relative, then search for the first ld in PATH.
7239 elif test "$with_gnu_ld" = yes; then
7240 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7241 $as_echo_n "checking for GNU ld... " >&6; }
7243 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7244 $as_echo_n "checking for non-GNU ld... " >&6; }
7246 if test "${lt_cv_path_LD+set}" = set; then
7247 $as_echo_n "(cached) " >&6
7249 if test -z "$LD"; then
7250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7251 for ac_dir in $PATH; do
7253 test -z "$ac_dir" && ac_dir=.
7254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7255 lt_cv_path_LD="$ac_dir/$ac_prog"
7256 # Check to see if the program is GNU ld. I'd rather use --version,
7257 # but apparently some variants of GNU ld only accept -v.
7258 # Break only if it was the GNU/non-GNU ld that we prefer.
7259 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7260 *GNU* | *'with BFD'*)
7261 test "$with_gnu_ld" != no && break
7264 test "$with_gnu_ld" != yes && break
7271 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7276 if test -n "$LD"; then
7277 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7278 $as_echo "$LD" >&6; }
7280 { $as_echo "$as_me:$LINENO: result: no" >&5
7281 $as_echo "no" >&6; }
7283 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7284 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7285 { (exit 1); exit 1; }; }
7286 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7287 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7288 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7289 $as_echo_n "(cached) " >&6
7291 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7292 case `$LD -v 2>&1 </dev/null` in
7293 *GNU* | *'with BFD'*)
7294 lt_cv_prog_gnu_ld=yes
7297 lt_cv_prog_gnu_ld=no
7301 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7302 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7303 with_gnu_ld=$lt_cv_prog_gnu_ld
7306 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7307 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7308 if test "${lt_cv_ld_reload_flag+set}" = set; then
7309 $as_echo_n "(cached) " >&6
7311 lt_cv_ld_reload_flag='-r'
7313 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7314 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7315 reload_flag=$lt_cv_ld_reload_flag
7316 case $reload_flag in
7318 *) reload_flag=" $reload_flag" ;;
7320 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7323 if test "$GCC" = yes; then
7324 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7331 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7332 $as_echo_n "checking for BSD-compatible nm... " >&6; }
7333 if test "${lt_cv_path_NM+set}" = set; then
7334 $as_echo_n "(cached) " >&6
7336 if test -n "$NM"; then
7337 # Let the user override the test.
7340 lt_nm_to_check="${ac_tool_prefix}nm"
7341 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7342 lt_nm_to_check="$lt_nm_to_check nm"
7344 for lt_tmp_nm in $lt_nm_to_check; do
7345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7346 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7348 test -z "$ac_dir" && ac_dir=.
7349 tmp_nm="$ac_dir/$lt_tmp_nm"
7350 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7351 # Check to see if the nm accepts a BSD-compat flag.
7352 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7353 # nm: unknown option "B" ignored
7354 # Tru64's nm complains that /dev/null is an invalid object file
7355 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7356 */dev/null* | *'Invalid file or object type'*)
7357 lt_cv_path_NM="$tmp_nm -B"
7361 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7363 lt_cv_path_NM="$tmp_nm -p"
7367 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7368 continue # so that we can try to find one that supports BSD flags
7377 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7380 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7381 $as_echo "$lt_cv_path_NM" >&6; }
7384 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7386 if test "${lt_cv_deplibs_check_method+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7389 lt_cv_file_magic_cmd='$MAGIC_CMD'
7390 lt_cv_file_magic_test_file=
7391 lt_cv_deplibs_check_method='unknown'
7392 # Need to set the preceding variable on all platforms that support
7393 # interlibrary dependencies.
7394 # 'none' -- dependencies not supported.
7395 # `unknown' -- same as none, but documents that we really don't know.
7396 # 'pass_all' -- all dependencies passed with no checks.
7397 # 'test_compile' -- check by making test program.
7398 # 'file_magic [[regex]]' -- check by looking for files in library path
7399 # which responds to the $file_magic_cmd with a given extended regex.
7400 # If you have `file' or equivalent on your system and you're not sure
7401 # whether `pass_all' will *always* work, you probably want this one.
7405 lt_cv_deplibs_check_method=pass_all
7409 lt_cv_deplibs_check_method=pass_all
7413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7414 lt_cv_file_magic_cmd='/usr/bin/file -L'
7415 lt_cv_file_magic_test_file=/shlib/libc.so
7419 # func_win32_libid is a shell function defined in ltmain.sh
7420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7421 lt_cv_file_magic_cmd='func_win32_libid'
7425 # Base MSYS/MinGW do not provide the 'file' command needed by
7426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7427 # unless we find 'file', for example because we are cross-compiling.
7428 if ( file / ) >/dev/null 2>&1; then
7429 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7430 lt_cv_file_magic_cmd='func_win32_libid'
7432 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7433 lt_cv_file_magic_cmd='$OBJDUMP -f'
7437 darwin* | rhapsody*)
7438 lt_cv_deplibs_check_method=pass_all
7441 freebsd* | dragonfly*)
7442 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7445 # Not sure whether the presence of OpenBSD here was a mistake.
7446 # Let's accept both of them until this is cleared up.
7447 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7448 lt_cv_file_magic_cmd=/usr/bin/file
7449 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7453 lt_cv_deplibs_check_method=pass_all
7458 lt_cv_deplibs_check_method=pass_all
7461 hpux10.20* | hpux11*)
7462 lt_cv_file_magic_cmd=/usr/bin/file
7465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7466 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7469 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]'
7470 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7473 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7474 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7480 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7484 irix5* | irix6* | nonstopux*)
7486 *-32|*"-32 ") libmagic=32-bit;;
7487 *-n32|*"-n32 ") libmagic=N32;;
7488 *-64|*"-64 ") libmagic=64-bit;;
7489 *) libmagic=never-match;;
7491 lt_cv_deplibs_check_method=pass_all
7494 # This must be Linux ELF.
7495 linux* | k*bsd*-gnu)
7496 lt_cv_deplibs_check_method=pass_all
7500 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7509 lt_cv_file_magic_cmd=/usr/bin/file
7510 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7514 lt_cv_deplibs_check_method=unknown
7518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7525 osf3* | osf4* | osf5*)
7526 lt_cv_deplibs_check_method=pass_all
7530 lt_cv_deplibs_check_method=pass_all
7534 lt_cv_deplibs_check_method=pass_all
7538 case $host_vendor in
7540 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]'
7541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7544 lt_cv_deplibs_check_method=pass_all
7547 lt_cv_file_magic_cmd='/bin/file'
7548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7551 lt_cv_file_magic_cmd='/bin/file'
7552 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7553 lt_cv_file_magic_test_file=/lib/libc.so
7556 lt_cv_deplibs_check_method=pass_all
7559 lt_cv_deplibs_check_method=pass_all
7564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7565 lt_cv_deplibs_check_method=pass_all
7570 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7571 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7572 file_magic_cmd=$lt_cv_file_magic_cmd
7573 deplibs_check_method=$lt_cv_deplibs_check_method
7574 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7579 # If no C compiler was specified, use CC.
7582 # If no C compiler flags were specified, use CFLAGS.
7583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7585 # Allow CC to be a program name with arguments.
7588 # Check whether --enable-libtool-lock was given.
7589 if test "${enable_libtool_lock+set}" = set; then
7590 enableval=$enable_libtool_lock;
7593 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7595 # Some flags need to be propagated to the compiler or linker for good
7599 # Find out which ABI we are using.
7600 echo 'int i;' > conftest.$ac_ext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>&5
7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; then
7606 case `/usr/bin/file conftest.$ac_objext` in
7618 # Find out which ABI we are using.
7619 echo '#line 7619 "configure"' > conftest.$ac_ext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7621 (eval $ac_compile) 2>&5
7623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; then
7625 if test "$lt_cv_prog_gnu_ld" = yes; then
7626 case `/usr/bin/file conftest.$ac_objext` in
7628 LD="${LD-ld} -melf32bsmip"
7631 LD="${LD-ld} -melf32bmipn32"
7634 LD="${LD-ld} -melf64bmip"
7638 case `/usr/bin/file conftest.$ac_objext` in
7654 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7655 s390*-*linux*|sparc*-*linux*)
7656 # Find out which ABI we are using.
7657 echo 'int i;' > conftest.$ac_ext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659 (eval $ac_compile) 2>&5
7661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; then
7663 case `/usr/bin/file conftest.o` in
7666 x86_64-*kfreebsd*-gnu)
7667 LD="${LD-ld} -m elf_i386_fbsd"
7670 LD="${LD-ld} -m elf_i386"
7672 ppc64-*linux*|powerpc64-*linux*)
7673 LD="${LD-ld} -m elf32ppclinux"
7676 LD="${LD-ld} -m elf_s390"
7679 LD="${LD-ld} -m elf32_sparc"
7686 x86_64-*kfreebsd*-gnu)
7687 LD="${LD-ld} -m elf_x86_64_fbsd"
7690 LD="${LD-ld} -m elf_x86_64"
7692 ppc*-*linux*|powerpc*-*linux*)
7693 LD="${LD-ld} -m elf64ppc"
7696 LD="${LD-ld} -m elf64_s390"
7699 LD="${LD-ld} -m elf64_sparc"
7709 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7710 SAVE_CFLAGS="$CFLAGS"
7711 CFLAGS="$CFLAGS -belf"
7712 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7713 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7714 if test "${lt_cv_cc_needs_belf+set}" = set; then
7715 $as_echo_n "(cached) " >&6
7718 ac_cpp='$CPP $CPPFLAGS'
7719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 cat >conftest.$ac_ext <<_ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (ac_try="$ac_link"
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7745 $as_echo "$ac_try_echo") >&5
7746 (eval "$ac_link") 2>conftest.er1
7748 grep -v '^ *+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest$ac_exeext && {
7756 test "$cross_compiling" = yes ||
7757 $as_test_x conftest$ac_exeext
7759 lt_cv_cc_needs_belf=yes
7761 $as_echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7764 lt_cv_cc_needs_belf=no
7767 rm -rf conftest.dSYM
7768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7769 conftest$ac_exeext conftest.$ac_ext
7771 ac_cpp='$CPP $CPPFLAGS'
7772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7778 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7779 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7780 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7781 CFLAGS="$SAVE_CFLAGS"
7785 # Find out which ABI we are using.
7786 echo 'int i;' > conftest.$ac_ext
7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788 (eval $ac_compile) 2>&5
7790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; then
7792 case `/usr/bin/file conftest.o` in
7794 case $lt_cv_prog_gnu_ld in
7795 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7797 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7811 need_locks="$enable_libtool_lock"
7815 for ac_header in dlfcn.h
7817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7819 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7820 $as_echo_n "checking for $ac_header... " >&6; }
7821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7822 $as_echo_n "(cached) " >&6
7824 ac_res=`eval 'as_val=${'$as_ac_Header'}
7825 $as_echo "$as_val"'`
7826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7827 $as_echo "$ac_res" >&6; }
7829 # Is the header compilable?
7830 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7831 $as_echo_n "checking $ac_header usability... " >&6; }
7832 cat >conftest.$ac_ext <<_ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838 $ac_includes_default
7839 #include <$ac_header>
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7848 $as_echo "$ac_try_echo") >&5
7849 (eval "$ac_compile") 2>conftest.er1
7851 grep -v '^ *+' conftest.er1 >conftest.err
7853 cat conftest.err >&5
7854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } && {
7856 test -z "$ac_c_werror_flag" ||
7857 test ! -s conftest.err
7858 } && test -s conftest.$ac_objext; then
7859 ac_header_compiler=yes
7861 $as_echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ac_header_compiler=no
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7869 $as_echo "$ac_header_compiler" >&6; }
7871 # Is the header present?
7872 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7873 $as_echo_n "checking $ac_header presence... " >&6; }
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <$ac_header>
7882 if { (ac_try="$ac_cpp conftest.$ac_ext"
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7888 $as_echo "$ac_try_echo") >&5
7889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7891 grep -v '^ *+' conftest.er1 >conftest.err
7893 cat conftest.err >&5
7894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } >/dev/null && {
7896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7897 test ! -s conftest.err
7899 ac_header_preproc=yes
7901 $as_echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ac_header_preproc=no
7907 rm -f conftest.err conftest.$ac_ext
7908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7909 $as_echo "$ac_header_preproc" >&6; }
7911 # So? What about this header?
7912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7915 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7918 ac_header_preproc=yes
7921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7922 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7924 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7926 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7928 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7932 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7934 ## ---------------------------------------- ##
7935 ## Report this to linux-nfs@vger.kernel.org ##
7936 ## ---------------------------------------- ##
7938 ) | sed "s/^/$as_me: WARNING: /" >&2
7941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7942 $as_echo_n "checking for $ac_header... " >&6; }
7943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7944 $as_echo_n "(cached) " >&6
7946 eval "$as_ac_Header=\$ac_header_preproc"
7948 ac_res=`eval 'as_val=${'$as_ac_Header'}
7949 $as_echo "$as_val"'`
7950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7951 $as_echo "$ac_res" >&6; }
7954 as_val=`eval 'as_val=${'$as_ac_Header'}
7955 $as_echo "$as_val"'`
7956 if test "x$as_val" = x""yes; then
7957 cat >>confdefs.h <<_ACEOF
7958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7967 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7968 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7969 (test "X$CXX" != "Xg++"))) ; then
7971 ac_cpp='$CXXCPP $CPPFLAGS'
7972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7975 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7976 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7977 if test -z "$CXXCPP"; then
7978 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7979 $as_echo_n "(cached) " >&6
7981 # Double quotes because CXXCPP needs to be expanded
7982 for CXXCPP in "$CXX -E" "/lib/cpp"
7985 for ac_cxx_preproc_warn_flag in '' yes
7987 # Use a header file that comes with gcc, so configuring glibc
7988 # with a fresh cross-compiler works.
7989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7990 # <limits.h> exists even on freestanding compilers.
7991 # On the NeXT, cc -E runs the code through the compiler's parser,
7992 # not just through cpp. "Syntax error" is here to catch this case.
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8000 # include <limits.h>
8002 # include <assert.h>
8006 if { (ac_try="$ac_cpp conftest.$ac_ext"
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012 $as_echo "$ac_try_echo") >&5
8013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8015 grep -v '^ *+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } >/dev/null && {
8020 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8021 test ! -s conftest.err
8025 $as_echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 # Broken: fails on valid input.
8032 rm -f conftest.err conftest.$ac_ext
8034 # OK, works on sane cases. Now check whether nonexistent headers
8035 # can be detected and how.
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 #include <ac_nonexistent.h>
8044 if { (ac_try="$ac_cpp conftest.$ac_ext"
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1 >conftest.err
8055 cat conftest.err >&5
8056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev/null && {
8058 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8059 test ! -s conftest.err
8061 # Broken: success on invalid input.
8064 $as_echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 # Passes both tests.
8072 rm -f conftest.err conftest.$ac_ext
8075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8076 rm -f conftest.err conftest.$ac_ext
8077 if $ac_preproc_ok; then
8082 ac_cv_prog_CXXCPP=$CXXCPP
8085 CXXCPP=$ac_cv_prog_CXXCPP
8087 ac_cv_prog_CXXCPP=$CXXCPP
8089 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8090 $as_echo "$CXXCPP" >&6; }
8092 for ac_cxx_preproc_warn_flag in '' yes
8094 # Use a header file that comes with gcc, so configuring glibc
8095 # with a fresh cross-compiler works.
8096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8097 # <limits.h> exists even on freestanding compilers.
8098 # On the NeXT, cc -E runs the code through the compiler's parser,
8099 # not just through cpp. "Syntax error" is here to catch this case.
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8107 # include <limits.h>
8109 # include <assert.h>
8113 if { (ac_try="$ac_cpp conftest.$ac_ext"
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8119 $as_echo "$ac_try_echo") >&5
8120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } >/dev/null && {
8127 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8128 test ! -s conftest.err
8132 $as_echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 # Broken: fails on valid input.
8139 rm -f conftest.err conftest.$ac_ext
8141 # OK, works on sane cases. Now check whether nonexistent headers
8142 # can be detected and how.
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #include <ac_nonexistent.h>
8151 if { (ac_try="$ac_cpp conftest.$ac_ext"
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157 $as_echo "$ac_try_echo") >&5
8158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8160 grep -v '^ *+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } >/dev/null && {
8165 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8166 test ! -s conftest.err
8168 # Broken: success on invalid input.
8171 $as_echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 # Passes both tests.
8179 rm -f conftest.err conftest.$ac_ext
8182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8183 rm -f conftest.err conftest.$ac_ext
8184 if $ac_preproc_ok; then
8187 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8189 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8190 See \`config.log' for more details." >&5
8191 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8192 See \`config.log' for more details." >&2;}
8193 { (exit 1); exit 1; }; }; }
8197 ac_cpp='$CXXCPP $CPPFLAGS'
8198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8206 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8207 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8209 if test -n "$ac_tool_prefix"; then
8210 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if test "${ac_cv_prog_F77+set}" = set; then
8217 $as_echo_n "(cached) " >&6
8219 if test -n "$F77"; then
8220 ac_cv_prog_F77="$F77" # Let the user override the test.
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 if test -n "$F77"; then
8241 { $as_echo "$as_me:$LINENO: result: $F77" >&5
8242 $as_echo "$F77" >&6; }
8244 { $as_echo "$as_me:$LINENO: result: no" >&5
8245 $as_echo "no" >&6; }
8249 test -n "$F77" && break
8252 if test -z "$F77"; then
8254 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8256 # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy $ac_prog; ac_word=$2
8258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8261 $as_echo_n "(cached) " >&6
8263 if test -n "$ac_ct_F77"; then
8264 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_ac_ct_F77="$ac_prog"
8274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8284 if test -n "$ac_ct_F77"; then
8285 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8286 $as_echo "$ac_ct_F77" >&6; }
8288 { $as_echo "$as_me:$LINENO: result: no" >&5
8289 $as_echo "no" >&6; }
8293 test -n "$ac_ct_F77" && break
8296 if test "x$ac_ct_F77" = x; then
8299 case $cross_compiling:$ac_tool_warned in
8301 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303 ac_tool_warned=yes ;;
8310 # Provide some information about the compiler.
8311 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8314 { (ac_try="$ac_compiler --version >&5"
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8320 $as_echo "$ac_try_echo") >&5
8321 (eval "$ac_compiler --version >&5") 2>&5
8323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }
8325 { (ac_try="$ac_compiler -v >&5"
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8331 $as_echo "$ac_try_echo") >&5
8332 (eval "$ac_compiler -v >&5") 2>&5
8334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }
8336 { (ac_try="$ac_compiler -V >&5"
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343 (eval "$ac_compiler -V >&5") 2>&5
8345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }
8349 # If we don't use `.F' as extension, the preprocessor is not run on the
8350 # input file. (Note that this only needs to work for GNU compilers.)
8353 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8354 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
8355 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8356 $as_echo_n "(cached) " >&6
8358 cat >conftest.$ac_ext <<_ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (ac_try="$ac_compile"
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8373 $as_echo "$ac_try_echo") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_f77_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest.$ac_objext; then
8386 $as_echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8396 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8397 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
8399 ac_test_FFLAGS=${FFLAGS+set}
8400 ac_save_FFLAGS=$FFLAGS
8402 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8403 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
8404 if test "${ac_cv_prog_f77_g+set}" = set; then
8405 $as_echo_n "(cached) " >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8413 rm -f conftest.$ac_objext
8414 if { (ac_try="$ac_compile"
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8420 $as_echo "$ac_try_echo") >&5
8421 (eval "$ac_compile") 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && {
8428 test -z "$ac_f77_werror_flag" ||
8429 test ! -s conftest.err
8430 } && test -s conftest.$ac_objext; then
8431 ac_cv_prog_f77_g=yes
8433 $as_echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8443 $as_echo "$ac_cv_prog_f77_g" >&6; }
8444 if test "$ac_test_FFLAGS" = set; then
8445 FFLAGS=$ac_save_FFLAGS
8446 elif test $ac_cv_prog_f77_g = yes; then
8447 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8460 if test $ac_compiler_gnu = yes; then
8466 ac_cpp='$CPP $CPPFLAGS'
8467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8474 # find the maximum length of command line arguments
8475 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8476 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8477 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8478 $as_echo_n "(cached) " >&6
8485 # On DJGPP, this test can blow up pretty badly due to problems in libc
8486 # (any single argument exceeding 2000 bytes causes a buffer overrun
8487 # during glob expansion). Even if it were fixed, the result of this
8488 # check would be larger than it should be.
8489 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8493 # Under GNU Hurd, this test is not required because there is
8494 # no limit to the length of command line arguments.
8495 # Libtool will interpret -1 as no limit whatsoever
8496 lt_cv_sys_max_cmd_len=-1;
8500 # On Win9x/ME, this test blows up -- it succeeds, but takes
8501 # about 5 minutes as the teststring grows exponentially.
8502 # Worse, since 9x/ME are not pre-emptively multitasking,
8503 # you end up with a "frozen" computer, even though with patience
8504 # the test eventually succeeds (with a max line length of 256k).
8505 # Instead, let's just punt: use the minimum linelength reported by
8506 # all of the supported platforms: 8192 (on NT/2K/XP).
8507 lt_cv_sys_max_cmd_len=8192;
8511 # On AmigaOS with pdksh, this test takes hours, literally.
8512 # So we just punt and use a minimum line length of 8192.
8513 lt_cv_sys_max_cmd_len=8192;
8516 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8517 # This has been around since 386BSD, at least. Likely further.
8518 if test -x /sbin/sysctl; then
8519 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8520 elif test -x /usr/sbin/sysctl; then
8521 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8523 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8525 # And add a safety zone
8526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8531 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8532 lt_cv_sys_max_cmd_len=196608
8536 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8537 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8538 # nice to cause kernel panics so lets avoid the loop below.
8539 # First set a reasonable default.
8540 lt_cv_sys_max_cmd_len=16384
8542 if test -x /sbin/sysconfig; then
8543 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8544 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8549 lt_cv_sys_max_cmd_len=102400
8551 sysv5* | sco5v6* | sysv4.2uw2*)
8552 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8553 if test -n "$kargmax"; then
8554 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8556 lt_cv_sys_max_cmd_len=32768
8560 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8561 if test -n "$lt_cv_sys_max_cmd_len"; then
8562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8565 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8566 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8567 = "XX$teststring") >/dev/null 2>&1 &&
8568 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8569 lt_cv_sys_max_cmd_len=$new_result &&
8570 test $i != 17 # 1/2 MB should be enough
8573 teststring=$teststring$teststring
8576 # Add a significant safety factor because C++ compilers can tack on massive
8577 # amounts of additional arguments before passing them to the linker.
8578 # It appears as though 1/2 is a usable value.
8579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8586 if test -n $lt_cv_sys_max_cmd_len ; then
8587 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8588 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8590 { $as_echo "$as_me:$LINENO: result: none" >&5
8591 $as_echo "none" >&6; }
8598 # Check for command to grab the raw symbol name followed by C symbol from nm.
8599 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8600 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8601 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8602 $as_echo_n "(cached) " >&6
8605 # These are sane defaults that work on at least a few old systems.
8606 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8608 # Character class describing NM global symbol codes.
8609 symcode='[BCDEGRST]'
8611 # Regexp to match symbols that can be accessed directly from C.
8612 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8614 # Transform an extracted symbol line into a proper C declaration
8615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8617 # Transform an extracted symbol line into symbol name and symbol address
8618 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8620 # Define system-specific variables.
8625 cygwin* | mingw* | pw32*)
8626 symcode='[ABCDGISTW]'
8628 hpux*) # Its linker distinguishes data from code symbols
8629 if test "$host_cpu" = ia64; then
8630 symcode='[ABCDEGRST]'
8632 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8633 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8635 linux* | k*bsd*-gnu)
8636 if test "$host_cpu" = ia64; then
8637 symcode='[ABCDGIRSTW]'
8638 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8639 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8643 symcode='[BCDEGRST]'
8646 symcode='[BCDEGQRST]'
8657 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8665 # Handle CRLF in mingw tool chain
8669 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8673 # If we're using GNU nm, then use its standard symbol codes.
8674 case `$NM -V 2>&1` in
8675 *GNU* | *'with BFD'*)
8676 symcode='[ABCDGIRSTW]' ;;
8679 # Try without a prefix undercore, then with it.
8680 for ac_symprfx in "" "_"; do
8682 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8683 symxfrm="\\1 $ac_symprfx\\2 \\2"
8685 # Write the raw and C identifiers.
8686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8688 # Check to see that the pipe works correctly.
8692 cat > conftest.$ac_ext <<EOF
8697 void nm_test_func(){}
8701 int main(){nm_test_var='a';nm_test_func();return(0);}
8704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705 (eval $ac_compile) 2>&5
8707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; then
8709 # Now try to grab the symbols.
8711 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8712 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && test -s "$nlist"; then
8716 # Try sorting and uniquifying the output.
8717 if sort "$nlist" | uniq > "$nlist"T; then
8718 mv -f "$nlist"T "$nlist"
8723 # Make sure that we snagged all the symbols we need.
8724 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8725 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8726 cat <<EOF > conftest.$ac_ext
8732 # Now generate the symbol file.
8733 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8735 cat <<EOF >> conftest.$ac_ext
8736 #if defined (__STDC__) && __STDC__
8737 # define lt_ptr_t void *
8739 # define lt_ptr_t char *
8743 /* The mapping between symbol names and symbols. */
8748 lt_preloaded_symbols[] =
8751 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8752 cat <<\EOF >> conftest.$ac_ext
8760 # Now try linking the two files.
8761 mv conftest.$ac_objext conftstm.$ac_objext
8762 lt_save_LIBS="$LIBS"
8763 lt_save_CFLAGS="$CFLAGS"
8764 LIBS="conftstm.$ac_objext"
8765 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767 (eval $ac_link) 2>&5
8769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8773 LIBS="$lt_save_LIBS"
8774 CFLAGS="$lt_save_CFLAGS"
8776 echo "cannot find nm_test_func in $nlist" >&5
8779 echo "cannot find nm_test_var in $nlist" >&5
8782 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8785 echo "$progname: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8788 rm -rf conftest* conftst*
8790 # Do not use the global_symbol_pipe unless it works.
8791 if test "$pipe_works" = yes; then
8794 lt_cv_sys_global_symbol_pipe=
8800 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8801 lt_cv_sys_global_symbol_to_cdecl=
8803 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8804 { $as_echo "$as_me:$LINENO: result: failed" >&5
8805 $as_echo "failed" >&6; }
8807 { $as_echo "$as_me:$LINENO: result: ok" >&5
8808 $as_echo "ok" >&6; }
8811 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8812 $as_echo_n "checking for objdir... " >&6; }
8813 if test "${lt_cv_objdir+set}" = set; then
8814 $as_echo_n "(cached) " >&6
8816 rm -f .libs 2>/dev/null
8817 mkdir .libs 2>/dev/null
8818 if test -d .libs; then
8821 # MS-DOS does not allow filenames that begin with a dot.
8824 rmdir .libs 2>/dev/null
8826 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8827 $as_echo "$lt_cv_objdir" >&6; }
8828 objdir=$lt_cv_objdir
8836 # AIX sometimes has problems with the GCC collect2 program. For some
8837 # reason, if we set the COLLECT_NAMES environment variable, the problems
8838 # vanish in a puff of smoke.
8839 if test "X${COLLECT_NAMES+set}" != Xset; then
8841 export COLLECT_NAMES
8846 # Sed substitution that helps us do robust quoting. It backslashifies
8847 # metacharacters that are still active within double-quoted strings.
8848 Xsed='sed -e 1s/^X//'
8849 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8851 # Same as above, but do not quote variable references.
8852 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8854 # Sed substitution to delay expansion of an escaped shell variable in a
8855 # double_quote_subst'ed string.
8856 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8858 # Sed substitution to avoid accidental globbing in evaled expressions
8859 no_glob_subst='s/\*/\\\*/g'
8865 default_ofile=libtool
8866 can_build_shared=yes
8868 # All known linkers require a `.a' archive for static linking (except MSVC,
8869 # which needs '.lib').
8871 ltmain="$ac_aux_dir/ltmain.sh"
8872 ofile="$default_ofile"
8873 with_gnu_ld="$lt_cv_prog_gnu_ld"
8875 if test -n "$ac_tool_prefix"; then
8876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8877 set dummy ${ac_tool_prefix}ar; ac_word=$2
8878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_AR+set}" = set; then
8881 $as_echo_n "(cached) " >&6
8883 if test -n "$AR"; then
8884 ac_cv_prog_AR="$AR" # Let the user override the test.
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_AR="${ac_tool_prefix}ar"
8894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 if test -n "$AR"; then
8905 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8906 $as_echo "$AR" >&6; }
8908 { $as_echo "$as_me:$LINENO: result: no" >&5
8909 $as_echo "no" >&6; }
8914 if test -z "$ac_cv_prog_AR"; then
8916 # Extract the first word of "ar", so it can be a program name with args.
8917 set dummy ar; ac_word=$2
8918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8921 $as_echo_n "(cached) " >&6
8923 if test -n "$ac_ct_AR"; then
8924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_prog_ac_ct_AR="ar"
8934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8944 if test -n "$ac_ct_AR"; then
8945 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8946 $as_echo "$ac_ct_AR" >&6; }
8948 { $as_echo "$as_me:$LINENO: result: no" >&5
8949 $as_echo "no" >&6; }
8952 if test "x$ac_ct_AR" = x; then
8955 case $cross_compiling:$ac_tool_warned in
8957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8959 ac_tool_warned=yes ;;
8967 if test -n "$ac_tool_prefix"; then
8968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if test "${ac_cv_prog_RANLIB+set}" = set; then
8973 $as_echo_n "(cached) " >&6
8975 if test -n "$RANLIB"; then
8976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 RANLIB=$ac_cv_prog_RANLIB
8996 if test -n "$RANLIB"; then
8997 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8998 $as_echo "$RANLIB" >&6; }
9000 { $as_echo "$as_me:$LINENO: result: no" >&5
9001 $as_echo "no" >&6; }
9006 if test -z "$ac_cv_prog_RANLIB"; then
9007 ac_ct_RANLIB=$RANLIB
9008 # Extract the first word of "ranlib", so it can be a program name with args.
9009 set dummy ranlib; ac_word=$2
9010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9013 $as_echo_n "(cached) " >&6
9015 if test -n "$ac_ct_RANLIB"; then
9016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025 ac_cv_prog_ac_ct_RANLIB="ranlib"
9026 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9036 if test -n "$ac_ct_RANLIB"; then
9037 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9038 $as_echo "$ac_ct_RANLIB" >&6; }
9040 { $as_echo "$as_me:$LINENO: result: no" >&5
9041 $as_echo "no" >&6; }
9044 if test "x$ac_ct_RANLIB" = x; then
9047 case $cross_compiling:$ac_tool_warned in
9049 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9051 ac_tool_warned=yes ;;
9053 RANLIB=$ac_ct_RANLIB
9056 RANLIB="$ac_cv_prog_RANLIB"
9059 if test -n "$ac_tool_prefix"; then
9060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9061 set dummy ${ac_tool_prefix}strip; ac_word=$2
9062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if test "${ac_cv_prog_STRIP+set}" = set; then
9065 $as_echo_n "(cached) " >&6
9067 if test -n "$STRIP"; then
9068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 STRIP=$ac_cv_prog_STRIP
9088 if test -n "$STRIP"; then
9089 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9090 $as_echo "$STRIP" >&6; }
9092 { $as_echo "$as_me:$LINENO: result: no" >&5
9093 $as_echo "no" >&6; }
9098 if test -z "$ac_cv_prog_STRIP"; then
9100 # Extract the first word of "strip", so it can be a program name with args.
9101 set dummy strip; ac_word=$2
9102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9105 $as_echo_n "(cached) " >&6
9107 if test -n "$ac_ct_STRIP"; then
9108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9117 ac_cv_prog_ac_ct_STRIP="strip"
9118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9128 if test -n "$ac_ct_STRIP"; then
9129 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9130 $as_echo "$ac_ct_STRIP" >&6; }
9132 { $as_echo "$as_me:$LINENO: result: no" >&5
9133 $as_echo "no" >&6; }
9136 if test "x$ac_ct_STRIP" = x; then
9139 case $cross_compiling:$ac_tool_warned in
9141 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9143 ac_tool_warned=yes ;;
9148 STRIP="$ac_cv_prog_STRIP"
9153 old_CFLAGS="$CFLAGS"
9155 # Set sane defaults for various variables
9156 test -z "$AR" && AR=ar
9157 test -z "$AR_FLAGS" && AR_FLAGS=cru
9158 test -z "$AS" && AS=as
9159 test -z "$CC" && CC=cc
9160 test -z "$LTCC" && LTCC=$CC
9161 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9162 test -z "$DLLTOOL" && DLLTOOL=dlltool
9163 test -z "$LD" && LD=ld
9164 test -z "$LN_S" && LN_S="ln -s"
9165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9166 test -z "$NM" && NM=nm
9167 test -z "$SED" && SED=sed
9168 test -z "$OBJDUMP" && OBJDUMP=objdump
9169 test -z "$RANLIB" && RANLIB=:
9170 test -z "$STRIP" && STRIP=:
9171 test -z "$ac_objext" && ac_objext=o
9173 # Determine commands to create old-style static archives.
9174 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9175 old_postinstall_cmds='chmod 644 $oldlib'
9176 old_postuninstall_cmds=
9178 if test -n "$RANLIB"; then
9181 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9184 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9187 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9190 for cc_temp in $compiler""; do
9192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9198 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9201 # Only perform the check for file, if the check method requires it
9202 case $deplibs_check_method in
9204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9205 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9206 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9207 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9208 $as_echo_n "(cached) " >&6
9212 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9215 lt_save_MAGIC_CMD="$MAGIC_CMD"
9216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9217 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9218 for ac_dir in $ac_dummy; do
9220 test -z "$ac_dir" && ac_dir=.
9221 if test -f $ac_dir/${ac_tool_prefix}file; then
9222 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9223 if test -n "$file_magic_test_file"; then
9224 case $deplibs_check_method in
9226 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9228 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9229 $EGREP "$file_magic_regex" > /dev/null; then
9234 *** Warning: the command libtool uses to detect shared libraries,
9235 *** $file_magic_cmd, produces output that libtool cannot recognize.
9236 *** The result is that libtool may fail to recognize shared libraries
9237 *** as such. This will affect the creation of libtool libraries that
9238 *** depend on shared libraries, but programs linked with such libtool
9239 *** libraries will work regardless of this problem. Nevertheless, you
9240 *** may want to report the problem to your system manager and/or to
9241 *** bug-libtool@gnu.org
9251 MAGIC_CMD="$lt_save_MAGIC_CMD"
9256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9257 if test -n "$MAGIC_CMD"; then
9258 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9259 $as_echo "$MAGIC_CMD" >&6; }
9261 { $as_echo "$as_me:$LINENO: result: no" >&5
9262 $as_echo "no" >&6; }
9265 if test -z "$lt_cv_path_MAGIC_CMD"; then
9266 if test -n "$ac_tool_prefix"; then
9267 { $as_echo "$as_me:$LINENO: checking for file" >&5
9268 $as_echo_n "checking for file... " >&6; }
9269 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9270 $as_echo_n "(cached) " >&6
9274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9277 lt_save_MAGIC_CMD="$MAGIC_CMD"
9278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9280 for ac_dir in $ac_dummy; do
9282 test -z "$ac_dir" && ac_dir=.
9283 if test -f $ac_dir/file; then
9284 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9285 if test -n "$file_magic_test_file"; then
9286 case $deplibs_check_method in
9288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9291 $EGREP "$file_magic_regex" > /dev/null; then
9296 *** Warning: the command libtool uses to detect shared libraries,
9297 *** $file_magic_cmd, produces output that libtool cannot recognize.
9298 *** The result is that libtool may fail to recognize shared libraries
9299 *** as such. This will affect the creation of libtool libraries that
9300 *** depend on shared libraries, but programs linked with such libtool
9301 *** libraries will work regardless of this problem. Nevertheless, you
9302 *** may want to report the problem to your system manager and/or to
9303 *** bug-libtool@gnu.org
9313 MAGIC_CMD="$lt_save_MAGIC_CMD"
9318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9319 if test -n "$MAGIC_CMD"; then
9320 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9321 $as_echo "$MAGIC_CMD" >&6; }
9323 { $as_echo "$as_me:$LINENO: result: no" >&5
9324 $as_echo "no" >&6; }
9338 rhapsody* | darwin*)
9339 if test -n "$ac_tool_prefix"; then
9340 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9341 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9345 $as_echo_n "(cached) " >&6
9347 if test -n "$DSYMUTIL"; then
9348 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 test -z "$as_dir" && as_dir=.
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9357 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9368 if test -n "$DSYMUTIL"; then
9369 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9370 $as_echo "$DSYMUTIL" >&6; }
9372 { $as_echo "$as_me:$LINENO: result: no" >&5
9373 $as_echo "no" >&6; }
9378 if test -z "$ac_cv_prog_DSYMUTIL"; then
9379 ac_ct_DSYMUTIL=$DSYMUTIL
9380 # Extract the first word of "dsymutil", so it can be a program name with args.
9381 set dummy dsymutil; ac_word=$2
9382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9383 $as_echo_n "checking for $ac_word... " >&6; }
9384 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9385 $as_echo_n "(cached) " >&6
9387 if test -n "$ac_ct_DSYMUTIL"; then
9388 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 test -z "$as_dir" && as_dir=.
9395 for ac_exec_ext in '' $ac_executable_extensions; do
9396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9397 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9407 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9408 if test -n "$ac_ct_DSYMUTIL"; then
9409 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9410 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9412 { $as_echo "$as_me:$LINENO: result: no" >&5
9413 $as_echo "no" >&6; }
9416 if test "x$ac_ct_DSYMUTIL" = x; then
9419 case $cross_compiling:$ac_tool_warned in
9421 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9423 ac_tool_warned=yes ;;
9425 DSYMUTIL=$ac_ct_DSYMUTIL
9428 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9431 if test -n "$ac_tool_prefix"; then
9432 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9433 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9435 $as_echo_n "checking for $ac_word... " >&6; }
9436 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9437 $as_echo_n "(cached) " >&6
9439 if test -n "$NMEDIT"; then
9440 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9459 NMEDIT=$ac_cv_prog_NMEDIT
9460 if test -n "$NMEDIT"; then
9461 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9462 $as_echo "$NMEDIT" >&6; }
9464 { $as_echo "$as_me:$LINENO: result: no" >&5
9465 $as_echo "no" >&6; }
9470 if test -z "$ac_cv_prog_NMEDIT"; then
9471 ac_ct_NMEDIT=$NMEDIT
9472 # Extract the first word of "nmedit", so it can be a program name with args.
9473 set dummy nmedit; ac_word=$2
9474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9477 $as_echo_n "(cached) " >&6
9479 if test -n "$ac_ct_NMEDIT"; then
9480 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 test -z "$as_dir" && as_dir=.
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9489 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9500 if test -n "$ac_ct_NMEDIT"; then
9501 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9502 $as_echo "$ac_ct_NMEDIT" >&6; }
9504 { $as_echo "$as_me:$LINENO: result: no" >&5
9505 $as_echo "no" >&6; }
9508 if test "x$ac_ct_NMEDIT" = x; then
9511 case $cross_compiling:$ac_tool_warned in
9513 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9515 ac_tool_warned=yes ;;
9517 NMEDIT=$ac_ct_NMEDIT
9520 NMEDIT="$ac_cv_prog_NMEDIT"
9524 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9525 $as_echo_n "checking for -single_module linker flag... " >&6; }
9526 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9527 $as_echo_n "(cached) " >&6
9529 lt_cv_apple_cc_single_mod=no
9530 if test -z "${LT_MULTI_MODULE}"; then
9531 # By default we will add the -single_module flag. You can override
9532 # by either setting the environment variable LT_MULTI_MODULE
9533 # non-empty at configure time, or by adding -multi_module to the
9535 echo "int foo(void){return 1;}" > conftest.c
9536 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9537 -dynamiclib ${wl}-single_module conftest.c
9538 if test -f libconftest.dylib; then
9539 lt_cv_apple_cc_single_mod=yes
9540 rm -rf libconftest.dylib*
9545 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9546 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9547 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9548 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9549 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9550 $as_echo_n "(cached) " >&6
9552 lt_cv_ld_exported_symbols_list=no
9553 save_LDFLAGS=$LDFLAGS
9554 echo "_main" > conftest.sym
9555 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9578 $as_echo "$ac_try_echo") >&5
9579 (eval "$ac_link") 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest$ac_exeext && {
9589 test "$cross_compiling" = yes ||
9590 $as_test_x conftest$ac_exeext
9592 lt_cv_ld_exported_symbols_list=yes
9594 $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 lt_cv_ld_exported_symbols_list=no
9600 rm -rf conftest.dSYM
9601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602 conftest$ac_exeext conftest.$ac_ext
9603 LDFLAGS="$save_LDFLAGS"
9606 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9607 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9609 rhapsody* | darwin1.[0123])
9610 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9614 # if running on 10.5 or later, the deployment target defaults
9615 # to the OS version, if on x86, and 10.4, the deployment
9616 # target defaults to 10.4. Don't you love it?
9617 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9618 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9621 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9623 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9627 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9628 _lt_dar_single_mod='$single_module'
9630 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9631 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9633 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9635 if test "$DSYMUTIL" != ":"; then
9636 _lt_dsymutil="~$DSYMUTIL \$lib || :"
9647 # Check whether --enable-libtool-lock was given.
9648 if test "${enable_libtool_lock+set}" = set; then
9649 enableval=$enable_libtool_lock;
9652 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9655 # Check whether --with-pic was given.
9656 if test "${with_pic+set}" = set; then
9657 withval=$with_pic; pic_mode="$withval"
9662 test -z "$pic_mode" && pic_mode=default
9664 # Use C for the default configuration in the libtool script
9668 ac_cpp='$CPP $CPPFLAGS'
9669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9674 # Source file extension for C test sources.
9677 # Object file extension for compiled C test sources.
9681 # Code to be used in simple compile tests
9682 lt_simple_compile_test_code="int some_variable = 0;"
9684 # Code to be used in simple link tests
9685 lt_simple_link_test_code='int main(){return(0);}'
9688 # If no C compiler was specified, use CC.
9691 # If no C compiler flags were specified, use CFLAGS.
9692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9694 # Allow CC to be a program name with arguments.
9698 # save warnings/boilerplate of simple test code
9699 ac_outfile=conftest.$ac_objext
9700 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9702 _lt_compiler_boilerplate=`cat conftest.err`
9705 ac_outfile=conftest.$ac_objext
9706 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9708 _lt_linker_boilerplate=`cat conftest.err`
9713 lt_prog_compiler_no_builtin_flag=
9715 if test "$GCC" = yes; then
9716 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9719 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9720 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9721 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9722 $as_echo_n "(cached) " >&6
9724 lt_cv_prog_compiler_rtti_exceptions=no
9725 ac_outfile=conftest.$ac_objext
9726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9727 lt_compiler_flag="-fno-rtti -fno-exceptions"
9728 # Insert the option either (1) after the last *FLAGS variable, or
9729 # (2) before a word containing "conftest.", or (3) at the end.
9730 # Note that $ac_compile itself does not contain backslashes and begins
9731 # with a dollar sign (not a hyphen), so the echo should work correctly.
9732 # The option is referenced via a variable to avoid confusing sed.
9733 lt_compile=`echo "$ac_compile" | $SED \
9734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9736 -e 's:$: $lt_compiler_flag:'`
9737 (eval echo "\"\$as_me:9737: $lt_compile\"" >&5)
9738 (eval "$lt_compile" 2>conftest.err)
9740 cat conftest.err >&5
9741 echo "$as_me:9741: \$? = $ac_status" >&5
9742 if (exit $ac_status) && test -s "$ac_outfile"; then
9743 # The compiler can only warn and ignore the option if not recognized
9744 # So say no if there are warnings other than the usual output.
9745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9748 lt_cv_prog_compiler_rtti_exceptions=yes
9754 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9755 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9757 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9758 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9765 lt_prog_compiler_wl=
9766 lt_prog_compiler_pic=
9767 lt_prog_compiler_static=
9769 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9770 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9772 if test "$GCC" = yes; then
9773 lt_prog_compiler_wl='-Wl,'
9774 lt_prog_compiler_static='-static'
9778 # All AIX code is PIC.
9779 if test "$host_cpu" = ia64; then
9780 # AIX 5 now supports IA64 processor
9781 lt_prog_compiler_static='-Bstatic'
9786 # FIXME: we need at least 68020 code to build shared libraries, but
9787 # adding the `-m68020' flag to GCC prevents building anything better,
9789 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9792 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9793 # PIC is the default for these OSes.
9796 mingw* | cygwin* | pw32* | os2*)
9797 # This hack is so that the source file can tell whether it is being
9798 # built for inclusion in a dll (and should export symbols for example).
9799 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9800 # (--disable-auto-import) libraries
9801 lt_prog_compiler_pic='-DDLL_EXPORT'
9804 darwin* | rhapsody*)
9805 # PIC is the default on this platform
9806 # Common symbols not allowed in MH_DYLIB files
9807 lt_prog_compiler_pic='-fno-common'
9811 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9812 # Instead, we relocate shared libraries at runtime.
9816 # Just because we use GCC doesn't mean we suddenly get shared libraries
9817 # on systems that don't support them.
9818 lt_prog_compiler_can_build_shared=no
9823 if test -d /usr/nec; then
9824 lt_prog_compiler_pic=-Kconform_pic
9829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9836 lt_prog_compiler_pic='-fPIC'
9842 lt_prog_compiler_pic='-fPIC'
9846 # PORTME Check for flag to pass linker flags through the system compiler.
9849 lt_prog_compiler_wl='-Wl,'
9850 if test "$host_cpu" = ia64; then
9851 # AIX 5 now supports IA64 processor
9852 lt_prog_compiler_static='-Bstatic'
9854 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9858 # PIC is the default on this platform
9859 # Common symbols not allowed in MH_DYLIB files
9860 case $cc_basename in
9862 lt_prog_compiler_pic='-qnocommon'
9863 lt_prog_compiler_wl='-Wl,'
9868 mingw* | cygwin* | pw32* | os2*)
9869 # This hack is so that the source file can tell whether it is being
9870 # built for inclusion in a dll (and should export symbols for example).
9871 lt_prog_compiler_pic='-DDLL_EXPORT'
9874 hpux9* | hpux10* | hpux11*)
9875 lt_prog_compiler_wl='-Wl,'
9876 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9883 lt_prog_compiler_pic='+Z'
9886 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9887 lt_prog_compiler_static='${wl}-a ${wl}archive'
9890 irix5* | irix6* | nonstopux*)
9891 lt_prog_compiler_wl='-Wl,'
9892 # PIC (with -KPIC) is the default.
9893 lt_prog_compiler_static='-non_shared'
9897 lt_prog_compiler_pic='-KPIC'
9898 lt_prog_compiler_static='-Bstatic'
9901 linux* | k*bsd*-gnu)
9902 case $cc_basename in
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='-KPIC'
9906 lt_prog_compiler_static='-static'
9908 pgcc* | pgf77* | pgf90* | pgf95*)
9909 # Portland Group compilers (*not* the Pentium gcc compiler,
9910 # which looks to be a dead project)
9911 lt_prog_compiler_wl='-Wl,'
9912 lt_prog_compiler_pic='-fpic'
9913 lt_prog_compiler_static='-Bstatic'
9916 lt_prog_compiler_wl='-Wl,'
9917 # All Alpha code is PIC.
9918 lt_prog_compiler_static='-non_shared'
9921 case `$CC -V 2>&1 | sed 5q` in
9924 lt_prog_compiler_pic='-KPIC'
9925 lt_prog_compiler_static='-Bstatic'
9926 lt_prog_compiler_wl='-Wl,'
9929 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9930 lt_prog_compiler_pic='-KPIC'
9931 lt_prog_compiler_static='-Bstatic'
9932 lt_prog_compiler_wl=''
9939 osf3* | osf4* | osf5*)
9940 lt_prog_compiler_wl='-Wl,'
9941 # All OSF/1 code is PIC.
9942 lt_prog_compiler_static='-non_shared'
9946 lt_prog_compiler_static='-non_shared'
9950 lt_prog_compiler_pic='-KPIC'
9951 lt_prog_compiler_static='-Bstatic'
9952 case $cc_basename in
9954 lt_prog_compiler_wl='-Qoption ld ';;
9956 lt_prog_compiler_wl='-Wl,';;
9961 lt_prog_compiler_wl='-Qoption ld '
9962 lt_prog_compiler_pic='-PIC'
9963 lt_prog_compiler_static='-Bstatic'
9966 sysv4 | sysv4.2uw2* | sysv4.3*)
9967 lt_prog_compiler_wl='-Wl,'
9968 lt_prog_compiler_pic='-KPIC'
9969 lt_prog_compiler_static='-Bstatic'
9973 if test -d /usr/nec ;then
9974 lt_prog_compiler_pic='-Kconform_pic'
9975 lt_prog_compiler_static='-Bstatic'
9979 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9980 lt_prog_compiler_wl='-Wl,'
9981 lt_prog_compiler_pic='-KPIC'
9982 lt_prog_compiler_static='-Bstatic'
9986 lt_prog_compiler_wl='-Wl,'
9987 lt_prog_compiler_can_build_shared=no
9991 lt_prog_compiler_pic='-pic'
9992 lt_prog_compiler_static='-Bstatic'
9996 lt_prog_compiler_can_build_shared=no
10001 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10002 $as_echo "$lt_prog_compiler_pic" >&6; }
10005 # Check to make sure the PIC flag actually works.
10007 if test -n "$lt_prog_compiler_pic"; then
10009 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10010 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10011 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10012 $as_echo_n "(cached) " >&6
10014 lt_cv_prog_compiler_pic_works=no
10015 ac_outfile=conftest.$ac_objext
10016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10017 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10018 # Insert the option either (1) after the last *FLAGS variable, or
10019 # (2) before a word containing "conftest.", or (3) at the end.
10020 # Note that $ac_compile itself does not contain backslashes and begins
10021 # with a dollar sign (not a hyphen), so the echo should work correctly.
10022 # The option is referenced via a variable to avoid confusing sed.
10023 lt_compile=`echo "$ac_compile" | $SED \
10024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10026 -e 's:$: $lt_compiler_flag:'`
10027 (eval echo "\"\$as_me:10027: $lt_compile\"" >&5)
10028 (eval "$lt_compile" 2>conftest.err)
10030 cat conftest.err >&5
10031 echo "$as_me:10031: \$? = $ac_status" >&5
10032 if (exit $ac_status) && test -s "$ac_outfile"; then
10033 # The compiler can only warn and ignore the option if not recognized
10034 # So say no if there are warnings other than the usual output.
10035 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10037 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10038 lt_cv_prog_compiler_pic_works=yes
10044 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10045 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10047 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10048 case $lt_prog_compiler_pic in
10050 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10053 lt_prog_compiler_pic=
10054 lt_prog_compiler_can_build_shared=no
10059 # For platforms which do not support PIC, -DPIC is meaningless:
10061 lt_prog_compiler_pic=
10064 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10069 # Check to make sure the static flag actually works.
10071 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10072 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10073 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10074 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10075 $as_echo_n "(cached) " >&6
10077 lt_cv_prog_compiler_static_works=no
10078 save_LDFLAGS="$LDFLAGS"
10079 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10080 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10081 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10082 # The linker can only warn and ignore the option if not recognized
10083 # So say no if there are warnings
10084 if test -s conftest.err; then
10085 # Append any errors to the config.log.
10086 cat conftest.err 1>&5
10087 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10089 if diff conftest.exp conftest.er2 >/dev/null; then
10090 lt_cv_prog_compiler_static_works=yes
10093 lt_cv_prog_compiler_static_works=yes
10097 LDFLAGS="$save_LDFLAGS"
10100 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10101 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10103 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10106 lt_prog_compiler_static=
10110 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10111 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10112 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10113 $as_echo_n "(cached) " >&6
10115 lt_cv_prog_compiler_c_o=no
10116 $rm -r conftest 2>/dev/null
10120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10122 lt_compiler_flag="-o out/conftest2.$ac_objext"
10123 # Insert the option either (1) after the last *FLAGS variable, or
10124 # (2) before a word containing "conftest.", or (3) at the end.
10125 # Note that $ac_compile itself does not contain backslashes and begins
10126 # with a dollar sign (not a hyphen), so the echo should work correctly.
10127 lt_compile=`echo "$ac_compile" | $SED \
10128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10130 -e 's:$: $lt_compiler_flag:'`
10131 (eval echo "\"\$as_me:10131: $lt_compile\"" >&5)
10132 (eval "$lt_compile" 2>out/conftest.err)
10134 cat out/conftest.err >&5
10135 echo "$as_me:10135: \$? = $ac_status" >&5
10136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10138 # The compiler can only warn and ignore the option if not recognized
10139 # So say no if there are warnings
10140 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10143 lt_cv_prog_compiler_c_o=yes
10148 # SGI C++ compiler will create directory out/ii_files/ for
10149 # template instantiation
10150 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10151 $rm out/* && rmdir out
10157 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10158 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10161 hard_links="nottested"
10162 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10163 # do not overwrite the value of need_locks provided by the user
10164 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10165 $as_echo_n "checking if we can lock with hard links... " >&6; }
10168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10170 ln conftest.a conftest.b 2>&5 || hard_links=no
10171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10172 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10173 $as_echo "$hard_links" >&6; }
10174 if test "$hard_links" = no; then
10175 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10176 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10183 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10184 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10187 allow_undefined_flag=
10188 enable_shared_with_static_runtimes=no
10190 archive_expsym_cmds=
10191 old_archive_From_new_cmds=
10192 old_archive_from_expsyms_cmds=
10193 export_dynamic_flag_spec=
10194 whole_archive_flag_spec=
10195 thread_safe_flag_spec=
10196 hardcode_libdir_flag_spec=
10197 hardcode_libdir_flag_spec_ld=
10198 hardcode_libdir_separator=
10200 hardcode_minus_L=no
10201 hardcode_shlibpath_var=unsupported
10202 link_all_deplibs=unknown
10203 hardcode_automatic=no
10205 module_expsym_cmds=
10206 always_export_symbols=no
10207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10208 # include_expsyms should be a list of space-separated symbols to be *always*
10209 # included in the symbol list
10211 # exclude_expsyms can be an extended regexp of symbols to exclude
10212 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10213 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10214 # as well as any symbol that contains `d'.
10215 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10216 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10217 # platforms (ab)use it in PIC code, but their linkers get confused if
10218 # the symbol is explicitly referenced. Since portable code cannot
10219 # rely on this symbol name, it's probably fine to never include it in
10220 # preloaded symbol tables.
10221 # Exclude shared library initialization/finalization symbols.
10222 extract_expsyms_cmds=
10223 # Just being paranoid about ensuring that cc_basename is set.
10224 for cc_temp in $compiler""; do
10226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10232 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10235 cygwin* | mingw* | pw32*)
10236 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10237 # When not using gcc, we currently assume that we are using
10238 # Microsoft Visual C++.
10239 if test "$GCC" != yes; then
10244 # we just hope/assume this is gcc and not c89 (= MSVC++)
10253 if test "$with_gnu_ld" = yes; then
10254 # If archive_cmds runs LD, not CC, wlarc should be empty
10257 # Set some defaults for GNU ld with shared library support. These
10258 # are reset later if shared libraries are not supported. Putting them
10259 # here allows them to be overridden if necessary.
10260 runpath_var=LD_RUN_PATH
10261 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10262 export_dynamic_flag_spec='${wl}--export-dynamic'
10263 # ancient GNU ld didn't support --whole-archive et. al.
10264 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10265 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10267 whole_archive_flag_spec=
10269 supports_anon_versioning=no
10270 case `$LD -v 2>/dev/null` in
10271 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10272 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10273 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10274 *\ 2.11.*) ;; # other 2.11 versions
10275 *) supports_anon_versioning=yes ;;
10278 # See if GNU ld supports shared libraries.
10281 # On AIX/PPC, the GNU linker is very broken
10282 if test "$host_cpu" != ia64; then
10286 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10287 *** to be unable to reliably create shared libraries on AIX.
10288 *** Therefore, libtool is disabling shared libraries support. If you
10289 *** really care for shared libraries, you may want to modify your PATH
10290 *** so that a non-GNU linker is found, and then restart.
10297 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)'
10298 hardcode_libdir_flag_spec='-L$libdir'
10299 hardcode_minus_L=yes
10301 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10302 # that the semantics of dynamic libraries on AmigaOS, at least up
10303 # to version 4, is to share data among multiple programs linked
10304 # with the same dynamic library. Since this doesn't match the
10305 # behavior of shared libraries on other platforms, we can't use
10311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10312 allow_undefined_flag=unsupported
10313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10314 # support --undefined. This deserves some investigation. FIXME
10315 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10321 cygwin* | mingw* | pw32*)
10322 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10323 # as there is no search path for DLLs.
10324 hardcode_libdir_flag_spec='-L$libdir'
10325 allow_undefined_flag=unsupported
10326 always_export_symbols=no
10327 enable_shared_with_static_runtimes=yes
10328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10330 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10332 # If the export-symbols file already is a .def file (1st line
10333 # is EXPORTS), use it as is; otherwise, prepend...
10334 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10335 cp $export_symbols $output_objdir/$soname.def;
10337 echo EXPORTS > $output_objdir/$soname.def;
10338 cat $export_symbols >> $output_objdir/$soname.def;
10340 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10348 hardcode_shlibpath_var=no
10349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10350 export_dynamic_flag_spec='${wl}-E'
10351 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10352 # Instead, shared libraries are loaded at an image base (0x10000000 by
10353 # default) and relocated if they conflict, which is a slow very memory
10354 # consuming and fragmenting process. To avoid this, we pick a random,
10355 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10356 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10358 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'
10361 gnu* | linux* | k*bsd*-gnu)
10362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10364 case $cc_basename,$host_cpu in
10365 pgcc*) # Portland Group C compiler
10366 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'
10367 tmp_addflag=' $pic_flag'
10369 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10370 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'
10371 tmp_addflag=' $pic_flag -Mnomain' ;;
10372 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10373 tmp_addflag=' -i_dynamic' ;;
10374 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10375 tmp_addflag=' -i_dynamic -nofor_main' ;;
10376 ifc* | ifort*) # Intel Fortran compiler
10377 tmp_addflag=' -nofor_main' ;;
10379 case `$CC -V 2>&1 | sed 5q` in
10380 *Sun\ C*) # Sun C 5.9
10381 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'
10382 tmp_sharedflag='-G' ;;
10383 *Sun\ F*) # Sun Fortran 8.3
10384 tmp_sharedflag='-G' ;;
10386 tmp_sharedflag='-shared' ;;
10388 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390 if test $supports_anon_versioning = yes; then
10391 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10392 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10393 $echo "local: *; };" >> $output_objdir/$libname.ver~
10394 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10402 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10403 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10412 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10416 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10417 *** create shared libraries on Solaris systems. Therefore, libtool
10418 *** is disabling shared libraries support. We urge you to upgrade GNU
10419 *** binutils to release 2.9.1 or newer. Another option is to modify
10420 *** your PATH or compiler configuration so that the native linker is
10421 *** used, and then restart.
10424 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10433 case `$LD -v 2>&1` in
10434 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10438 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10439 *** reliably create shared libraries on SCO systems. Therefore, libtool
10440 *** is disabling shared libraries support. We urge you to upgrade GNU
10441 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10442 *** your PATH or compiler configuration so that the native linker is
10443 *** used, and then restart.
10448 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10449 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10460 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10462 hardcode_direct=yes
10463 hardcode_shlibpath_var=no
10467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10476 if test "$ld_shlibs" = no; then
10478 hardcode_libdir_flag_spec=
10479 export_dynamic_flag_spec=
10480 whole_archive_flag_spec=
10483 # PORTME fill in a description of your system's linker (not GNU ld)
10486 allow_undefined_flag=unsupported
10487 always_export_symbols=yes
10488 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'
10489 # Note: this linker hardcodes the directories in LIBPATH if there
10490 # are no directories specified by -L.
10491 hardcode_minus_L=yes
10492 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10493 # Neither direct hardcoding nor static linking is supported with a
10495 hardcode_direct=unsupported
10500 if test "$host_cpu" = ia64; then
10501 # On IA64, the linker does run time linking by default, so we don't
10502 # have to do anything special.
10503 aix_use_runtimelinking=no
10504 exp_sym_flag='-Bexport'
10507 # If we're using GNU nm, then we don't want the "-C" option.
10508 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10509 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10510 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'
10512 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'
10514 aix_use_runtimelinking=no
10516 # Test if we are trying to use run time linking or normal
10517 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10518 # need to do runtime linking.
10519 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10520 for ld_flag in $LDFLAGS; do
10521 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10522 aix_use_runtimelinking=yes
10529 exp_sym_flag='-bexport'
10530 no_entry_flag='-bnoentry'
10533 # When large executables or shared objects are built, AIX ld can
10534 # have problems creating the table of contents. If linking a library
10535 # or program results in "error TOC overflow" add -mminimal-toc to
10536 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10537 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10540 hardcode_direct=yes
10541 hardcode_libdir_separator=':'
10542 link_all_deplibs=yes
10544 if test "$GCC" = yes; then
10545 case $host_os in aix4.[012]|aix4.[012].*)
10546 # We only want to do this on AIX 4.2 and lower, the check
10547 # below for broken collect2 doesn't work under 4.3+
10548 collect2name=`${CC} -print-prog-name=collect2`
10549 if test -f "$collect2name" && \
10550 strings "$collect2name" | grep resolve_lib_name >/dev/null
10552 # We have reworked collect2
10555 # We have old collect2
10556 hardcode_direct=unsupported
10557 # It fails to find uninstalled libraries when the uninstalled
10558 # path is not listed in the libpath. Setting hardcode_minus_L
10559 # to unsupported forces relinking
10560 hardcode_minus_L=yes
10561 hardcode_libdir_flag_spec='-L$libdir'
10562 hardcode_libdir_separator=
10566 shared_flag='-shared'
10567 if test "$aix_use_runtimelinking" = yes; then
10568 shared_flag="$shared_flag "'${wl}-G'
10572 if test "$host_cpu" = ia64; then
10573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10574 # chokes on -Wl,-G. The following line is correct:
10577 if test "$aix_use_runtimelinking" = yes; then
10578 shared_flag='${wl}-G'
10580 shared_flag='${wl}-bM:SRE'
10585 # It seems that -bexpall does not export symbols beginning with
10586 # underscore (_), so it is better to generate a list of symbols to export.
10587 always_export_symbols=yes
10588 if test "$aix_use_runtimelinking" = yes; then
10589 # Warning - without using the other runtime loading flags (-brtl),
10590 # -berok will link without error, but may produce a broken library.
10591 allow_undefined_flag='-berok'
10592 # Determine the default libpath from the value encoded in an empty executable.
10593 cat >conftest.$ac_ext <<_ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616 (eval "$ac_link") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1 >conftest.err
10620 cat conftest.err >&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext && {
10626 test "$cross_compiling" = yes ||
10627 $as_test_x conftest$ac_exeext
10630 lt_aix_libpath_sed='
10631 /Import File Strings/,/^$/ {
10637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10638 # Check for a 64-bit object if we didn't find anything.
10639 if test -z "$aix_libpath"; then
10640 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10643 $as_echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10649 rm -rf conftest.dSYM
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651 conftest$ac_exeext conftest.$ac_ext
10652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10654 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10655 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10657 if test "$host_cpu" = ia64; then
10658 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10659 allow_undefined_flag="-z nodefs"
10660 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"
10662 # Determine the default libpath from the value encoded in an empty executable.
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10685 $as_echo "$ac_try_echo") >&5
10686 (eval "$ac_link") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest$ac_exeext && {
10696 test "$cross_compiling" = yes ||
10697 $as_test_x conftest$ac_exeext
10700 lt_aix_libpath_sed='
10701 /Import File Strings/,/^$/ {
10707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10708 # Check for a 64-bit object if we didn't find anything.
10709 if test -z "$aix_libpath"; then
10710 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10713 $as_echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10719 rm -rf conftest.dSYM
10720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10721 conftest$ac_exeext conftest.$ac_ext
10722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10724 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10725 # Warning - without using the other run time loading flags,
10726 # -berok will link without error, but may produce a broken library.
10727 no_undefined_flag=' ${wl}-bernotok'
10728 allow_undefined_flag=' ${wl}-berok'
10729 # Exported symbols can be pulled into shared objects from archives
10730 whole_archive_flag_spec='$convenience'
10731 archive_cmds_need_lc=yes
10732 # This is similar to how AIX traditionally builds its shared libraries.
10733 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'
10739 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)'
10740 hardcode_libdir_flag_spec='-L$libdir'
10741 hardcode_minus_L=yes
10742 # see comment about different semantics on the GNU ld section
10747 export_dynamic_flag_spec=-rdynamic
10750 cygwin* | mingw* | pw32*)
10751 # When not using gcc, we currently assume that we are using
10752 # Microsoft Visual C++.
10753 # hardcode_libdir_flag_spec is actually meaningless, as there is
10754 # no search path for DLLs.
10755 hardcode_libdir_flag_spec=' '
10756 allow_undefined_flag=unsupported
10757 # Tell ltmain to make .lib files, not .a files.
10759 # Tell ltmain to make .dll files, not .so files.
10761 # FIXME: Setting linknames here is a bad hack.
10762 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10763 # The linker will automatically build a .lib file if we build a DLL.
10764 old_archive_From_new_cmds='true'
10765 # FIXME: Should let the user specify the lib program.
10766 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10767 fix_srcfile_path='`cygpath -w "$srcfile"`'
10768 enable_shared_with_static_runtimes=yes
10771 darwin* | rhapsody*)
10773 rhapsody* | darwin1.[012])
10774 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10777 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10778 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10780 case ${MACOSX_DEPLOYMENT_TARGET} in
10782 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10785 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10791 archive_cmds_need_lc=no
10793 hardcode_automatic=yes
10794 hardcode_shlibpath_var=unsupported
10795 whole_archive_flag_spec=''
10796 link_all_deplibs=yes
10797 if test "$GCC" = yes ; then
10798 output_verbose_link_cmd='echo'
10799 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10800 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10801 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}"
10802 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}"
10804 case $cc_basename in
10806 output_verbose_link_cmd='echo'
10807 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10808 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10810 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10811 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822 hardcode_libdir_flag_spec='-L$libdir'
10823 hardcode_shlibpath_var=no
10830 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10831 # support. Future versions do this automatically, but an explicit c++rt0.o
10832 # does not break anything, and helps significantly (at the cost of a little
10835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10836 hardcode_libdir_flag_spec='-R$libdir'
10837 hardcode_direct=yes
10838 hardcode_shlibpath_var=no
10841 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_direct=yes
10845 hardcode_minus_L=yes
10846 hardcode_shlibpath_var=no
10849 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10850 freebsd* | dragonfly*)
10851 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10852 hardcode_libdir_flag_spec='-R$libdir'
10853 hardcode_direct=yes
10854 hardcode_shlibpath_var=no
10858 if test "$GCC" = yes; then
10859 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'
10861 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'
10863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10864 hardcode_libdir_separator=:
10865 hardcode_direct=yes
10867 # hardcode_minus_L: Not really in the search PATH,
10868 # but as the default location of the library.
10869 hardcode_minus_L=yes
10870 export_dynamic_flag_spec='${wl}-E'
10874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10877 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10879 if test "$with_gnu_ld" = no; then
10880 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10881 hardcode_libdir_separator=:
10883 hardcode_direct=yes
10884 export_dynamic_flag_spec='${wl}-E'
10886 # hardcode_minus_L: Not really in the search PATH,
10887 # but as the default location of the library.
10888 hardcode_minus_L=yes
10893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10896 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10908 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10918 if test "$with_gnu_ld" = no; then
10919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10920 hardcode_libdir_separator=:
10924 hardcode_libdir_flag_spec_ld='+b $libdir'
10926 hardcode_shlibpath_var=no
10929 hardcode_direct=yes
10930 export_dynamic_flag_spec='${wl}-E'
10932 # hardcode_minus_L: Not really in the search PATH,
10933 # but as the default location of the library.
10934 hardcode_minus_L=yes
10940 irix5* | irix6* | nonstopux*)
10941 if test "$GCC" = yes; then
10942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10944 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10945 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10948 hardcode_libdir_separator=:
10949 link_all_deplibs=yes
10953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10958 hardcode_libdir_flag_spec='-R$libdir'
10959 hardcode_direct=yes
10960 hardcode_shlibpath_var=no
10964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_direct=yes
10966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10967 hardcode_libdir_separator=:
10968 hardcode_shlibpath_var=no
10972 if test -f /usr/libexec/ld.so; then
10973 hardcode_direct=yes
10974 hardcode_shlibpath_var=no
10975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10976 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10977 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10978 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10979 export_dynamic_flag_spec='${wl}-E'
10982 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10984 hardcode_libdir_flag_spec='-R$libdir'
10987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10988 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10998 hardcode_libdir_flag_spec='-L$libdir'
10999 hardcode_minus_L=yes
11000 allow_undefined_flag=unsupported
11001 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'
11002 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11006 if test "$GCC" = yes; then
11007 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11008 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11010 allow_undefined_flag=' -expect_unresolved \*'
11011 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11014 hardcode_libdir_separator=:
11017 osf4* | osf5*) # as osf3* with the addition of -msym flag
11018 if test "$GCC" = yes; then
11019 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11020 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11023 allow_undefined_flag=' -expect_unresolved \*'
11024 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11025 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11026 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11028 # Both c and cxx compiler support -rpath directly
11029 hardcode_libdir_flag_spec='-rpath $libdir'
11031 hardcode_libdir_separator=:
11035 no_undefined_flag=' -z text'
11036 if test "$GCC" = yes; then
11038 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11039 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11040 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11043 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11044 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11047 hardcode_libdir_flag_spec='-R$libdir'
11048 hardcode_shlibpath_var=no
11050 solaris2.[0-5] | solaris2.[0-5].*) ;;
11052 # The compiler driver will combine and reorder linker options,
11053 # but understands `-z linker_flag'. GCC discards it without `$wl',
11054 # but is careful enough not to reorder.
11055 # Supported since Solaris 2.6 (maybe 2.5.1?)
11056 if test "$GCC" = yes; then
11057 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11059 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11063 link_all_deplibs=yes
11067 if test "x$host_vendor" = xsequent; then
11068 # Use $CC to link under sequent, because it throws in some extra .o
11069 # files that make .init and .fini sections work.
11070 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11072 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11074 hardcode_libdir_flag_spec='-L$libdir'
11075 hardcode_direct=yes
11076 hardcode_minus_L=yes
11077 hardcode_shlibpath_var=no
11081 case $host_vendor in
11083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11084 hardcode_direct=yes # is this really true???
11087 ## LD is ld it makes a PLAMLIB
11088 ## CC just makes a GrossModule.
11089 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11090 reload_cmds='$CC -r -o $output$reload_objs'
11094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11095 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11098 runpath_var='LD_RUN_PATH'
11099 hardcode_shlibpath_var=no
11103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11104 hardcode_shlibpath_var=no
11105 export_dynamic_flag_spec='-Bexport'
11109 if test -d /usr/nec; then
11110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11111 hardcode_shlibpath_var=no
11112 runpath_var=LD_RUN_PATH
11113 hardcode_runpath_var=yes
11118 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11119 no_undefined_flag='${wl}-z,text'
11120 archive_cmds_need_lc=no
11121 hardcode_shlibpath_var=no
11122 runpath_var='LD_RUN_PATH'
11124 if test "$GCC" = yes; then
11125 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11128 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133 sysv5* | sco3.2v5* | sco5v6*)
11134 # Note: We can NOT use -z defs as we might desire, because we do not
11135 # link with -lc, and that would cause any symbols used from libc to
11136 # always be unresolved, which means just about no library would
11137 # ever link correctly. If we're not using GNU ld we use -z text
11138 # though, which does catch some bad symbols but isn't as heavy-handed
11140 no_undefined_flag='${wl}-z,text'
11141 allow_undefined_flag='${wl}-z,nodefs'
11142 archive_cmds_need_lc=no
11143 hardcode_shlibpath_var=no
11144 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11145 hardcode_libdir_separator=':'
11146 link_all_deplibs=yes
11147 export_dynamic_flag_spec='${wl}-Bexport'
11148 runpath_var='LD_RUN_PATH'
11150 if test "$GCC" = yes; then
11151 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11154 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11155 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11161 hardcode_libdir_flag_spec='-L$libdir'
11162 hardcode_shlibpath_var=no
11171 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11172 $as_echo "$ld_shlibs" >&6; }
11173 test "$ld_shlibs" = no && can_build_shared=no
11176 # Do we need to explicitly link libc?
11178 case "x$archive_cmds_need_lc" in
11180 # Assume -lc should be added
11181 archive_cmds_need_lc=yes
11183 if test "$enable_shared" = yes && test "$GCC" = yes; then
11184 case $archive_cmds in
11186 # FIXME: we may have to deal with multi-command sequences.
11189 # Test whether the compiler implicitly links with -lc since on some
11190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11191 # to ld, don't add -lc before -lgcc.
11192 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11193 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198 (eval $ac_compile) 2>&5
11200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } 2>conftest.err; then
11204 libobjs=conftest.$ac_objext
11206 wl=$lt_prog_compiler_wl
11207 pic_flag=$lt_prog_compiler_pic
11213 lt_save_allow_undefined_flag=$allow_undefined_flag
11214 allow_undefined_flag=
11215 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11216 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }
11221 archive_cmds_need_lc=no
11223 archive_cmds_need_lc=yes
11225 allow_undefined_flag=$lt_save_allow_undefined_flag
11227 cat conftest.err 1>&5
11230 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11231 $as_echo "$archive_cmds_need_lc" >&6; }
11238 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11240 library_names_spec=
11241 libname_spec='lib$name'
11245 postuninstall_cmds=
11249 shlibpath_overrides_runpath=unknown
11251 dynamic_linker="$host_os ld.so"
11252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11254 if test "$GCC" = yes; then
11256 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11257 *) lt_awk_arg="/^libraries:/" ;;
11259 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11260 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11261 # if the path contains ";" then we assume it to be the separator
11262 # otherwise default to the standard path separator (i.e. ":") - it is
11263 # assumed that no part of a normal pathname contains ";" but that should
11264 # okay in the real world where ";" in dirpaths is itself problematic.
11265 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11267 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11269 # Ok, now we have the path, separated by spaces, we can step through it
11270 # and add multilib dir if necessary.
11271 lt_tmp_lt_search_path_spec=
11272 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11273 for lt_sys_path in $lt_search_path_spec; do
11274 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11275 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11277 test -d "$lt_sys_path" && \
11278 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11281 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11282 BEGIN {RS=" "; FS="/|\n";} {
11285 for (lt_i = NF; lt_i > 0; lt_i--) {
11286 if ($lt_i != "" && $lt_i != ".") {
11287 if ($lt_i == "..") {
11290 if (lt_count == 0) {
11291 lt_foo="/" $lt_i lt_foo;
11298 if (lt_foo != "") { lt_freq[lt_foo]++; }
11299 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11301 sys_lib_search_path_spec=`echo $lt_search_path_spec`
11303 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11305 need_lib_prefix=unknown
11306 hardcode_into_libs=no
11308 # when you set need_version to no, make sure it does not cause -set_version
11309 # flags to be left without arguments
11310 need_version=unknown
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11316 shlibpath_var=LIBPATH
11318 # AIX 3 has no versioning support, so we append a major version to the name.
11319 soname_spec='${libname}${release}${shared_ext}$major'
11326 hardcode_into_libs=yes
11327 if test "$host_cpu" = ia64; then
11328 # AIX 5 supports IA64
11329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11330 shlibpath_var=LD_LIBRARY_PATH
11332 # With GCC up to 2.95.x, collect2 would create an import file
11333 # for dependence libraries. The import file would start with
11334 # the line `#! .'. This would cause the generated library to
11335 # depend on `.', always an invalid library. This was fixed in
11336 # development snapshots of GCC prior to 3.0.
11338 aix4 | aix4.[01] | aix4.[01].*)
11339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11341 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11344 can_build_shared=no
11348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11349 # soname into executable. Probably we can add versioning support to
11350 # collect2, so additional links can be useful in future.
11351 if test "$aix_use_runtimelinking" = yes; then
11352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11353 # instead of lib<name>.a to let people know that these are not
11354 # typical AIX shared libraries.
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 # We preserve .a as extension for shared libraries through AIX4.2
11358 # and later when we are not doing run time linking.
11359 library_names_spec='${libname}${release}.a $libname.a'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11362 shlibpath_var=LIBPATH
11367 library_names_spec='$libname.ixlibrary $libname.a'
11368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11369 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'
11373 library_names_spec='${libname}${shared_ext}'
11374 dynamic_linker="$host_os ld.so"
11375 shlibpath_var=LIBRARY_PATH
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11387 # the default ld.so.conf also contains /usr/contrib/lib and
11388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11389 # libtool to hard-code these into programs
11392 cygwin* | mingw* | pw32*)
11393 version_type=windows
11398 case $GCC,$host_os in
11399 yes,cygwin* | yes,mingw* | yes,pw32*)
11400 library_names_spec='$libname.dll.a'
11401 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11402 postinstall_cmds='base_file=`basename \${file}`~
11403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11404 dldir=$destdir/`dirname \$dlpath`~
11405 test -d \$dldir || mkdir -p \$dldir~
11406 $install_prog $dir/$dlname \$dldir/$dlname~
11407 chmod a+x \$dldir/$dlname'
11408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409 dlpath=$dir/\$dldll~
11411 shlibpath_overrides_runpath=yes
11415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11420 # MinGW DLLs use traditional 'lib' prefix
11421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11423 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11424 # It is most probably a Windows format PATH printed by
11425 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11426 # path with ; separators, and with drive letters. We can handle the
11427 # drive letters (cygwin fileutils understands them), so leave them,
11428 # especially as we might pass files found there to a mingw objdump,
11429 # which wouldn't understand a cygwinified path. Ahh.
11430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11436 # pw32 DLLs use 'pw' prefix rather than 'lib'
11437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11446 dynamic_linker='Win32 ld.exe'
11447 # FIXME: first we should search . and the directory the executable is in
11451 darwin* | rhapsody*)
11452 dynamic_linker="$host_os dyld"
11453 version_type=darwin
11456 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11457 soname_spec='${libname}${release}${major}$shared_ext'
11458 shlibpath_overrides_runpath=yes
11459 shlibpath_var=DYLD_LIBRARY_PATH
11460 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11479 freebsd* | dragonfly*)
11480 # DragonFly does not have aout. When/if they implement a new
11481 # versioning mechanism, adjust this.
11482 if test -x /usr/bin/objformat; then
11483 objformat=`/usr/bin/objformat`
11486 freebsd[123]*) objformat=aout ;;
11487 *) objformat=elf ;;
11490 version_type=freebsd-$objformat
11491 case $version_type in
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11502 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=yes
11507 freebsd3.[01]* | freebsdelf3.[01]*)
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11511 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11512 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11513 shlibpath_overrides_runpath=no
11514 hardcode_into_libs=yes
11516 *) # from 4.6 on, and DragonFly
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 hardcode_into_libs=yes
11533 hpux9* | hpux10* | hpux11*)
11534 # Give a soname corresponding to the major version so that dld.sl refuses to
11535 # link against other versions.
11542 hardcode_into_libs=yes
11543 dynamic_linker="$host_os dld.so"
11544 shlibpath_var=LD_LIBRARY_PATH
11545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 if test "X$HPUX_IA64_MODE" = X32; then
11549 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11551 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11557 hardcode_into_libs=yes
11558 dynamic_linker="$host_os dld.sl"
11559 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11568 dynamic_linker="$host_os dld.sl"
11569 shlibpath_var=SHLIB_PATH
11570 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 soname_spec='${libname}${release}${shared_ext}$major'
11575 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11576 postinstall_cmds='chmod 555 $lib'
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=no
11588 hardcode_into_libs=yes
11591 irix5* | irix6* | nonstopux*)
11593 nonstopux*) version_type=nonstopux ;;
11595 if test "$lt_cv_prog_gnu_ld" = yes; then
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11606 irix5* | nonstopux*)
11607 libsuff= shlibsuff=
11610 case $LD in # libtool.m4 will add one of these switches to LD
11611 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11612 libsuff= shlibsuff= libmagic=32-bit;;
11613 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11614 libsuff=32 shlibsuff=N32 libmagic=N32;;
11615 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11616 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11617 *) libsuff= shlibsuff= libmagic=never-match;;
11621 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11622 shlibpath_overrides_runpath=no
11623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11625 hardcode_into_libs=yes
11628 # No shared lib support for Linux oldld, aout, or coff.
11629 linux*oldld* | linux*aout* | linux*coff*)
11633 # This must be Linux ELF.
11634 linux* | k*bsd*-gnu)
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=no
11643 # This implies no fast_install, which is unacceptable.
11644 # Some rework will be needed to allow for fast_install
11645 # before this can be enabled.
11646 hardcode_into_libs=yes
11647 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11648 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11650 # Append ld.so.conf contents to the search path
11651 if test -f /etc/ld.so.conf; then
11652 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' ' '`
11653 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11656 # We used to test for /lib/ld.so.1 and disable shared libraries on
11657 # powerpc, because MkLinux only supported shared libraries with the
11658 # GNU dynamic linker. Since this was broken with cross compilers,
11659 # most powerpc-linux boxes support dynamic linking these days and
11660 # people can always --disable-shared, the test was removed, and we
11661 # assume the GNU/Linux dynamic linker is in use.
11662 dynamic_linker='GNU/Linux ld.so'
11669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672 dynamic_linker='NetBSD (a.out) ld.so'
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 dynamic_linker='NetBSD ld.elf_so'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=yes
11680 hardcode_into_libs=yes
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=yes
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695 soname_spec='${libname}${release}${shared_ext}$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=yes
11702 sys_lib_dlsearch_path_spec="/usr/lib"
11704 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11706 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11707 *) need_version=no ;;
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11714 openbsd2.[89] | openbsd2.[89].*)
11715 shlibpath_overrides_runpath=no
11718 shlibpath_overrides_runpath=yes
11722 shlibpath_overrides_runpath=yes
11727 libname_spec='$name'
11730 library_names_spec='$libname${shared_ext} $libname.a'
11731 dynamic_linker='OS/2 ld.exe'
11732 shlibpath_var=LIBPATH
11735 osf3* | osf4* | osf5*)
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11743 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath=yes
11758 hardcode_into_libs=yes
11759 # ldd complains unless libraries are executable
11760 postinstall_cmds='chmod +x $lib'
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11766 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 shlibpath_overrides_runpath=yes
11769 if test "$with_gnu_ld" = yes; then
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778 soname_spec='${libname}${release}${shared_ext}$major'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 case $host_vendor in
11782 shlibpath_overrides_runpath=no
11784 export_dynamic_flag_spec='${wl}-Blargedynsym'
11785 runpath_var=LD_RUN_PATH
11793 shlibpath_overrides_runpath=no
11794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11800 if test -d /usr/nec ;then
11802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11803 soname_spec='$libname${shared_ext}.$major'
11804 shlibpath_var=LD_LIBRARY_PATH
11808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11809 version_type=freebsd-elf
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 hardcode_into_libs=yes
11816 if test "$with_gnu_ld" = yes; then
11817 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11818 shlibpath_overrides_runpath=no
11820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11821 shlibpath_overrides_runpath=yes
11824 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11828 sys_lib_dlsearch_path_spec='/usr/lib'
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 soname_spec='${libname}${release}${shared_ext}$major'
11835 shlibpath_var=LD_LIBRARY_PATH
11842 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11843 $as_echo "$dynamic_linker" >&6; }
11844 test "$dynamic_linker" = no && can_build_shared=no
11846 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11847 $as_echo_n "(cached) " >&6
11849 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11852 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11853 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11854 $as_echo_n "(cached) " >&6
11856 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11859 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11861 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11862 if test "$GCC" = yes; then
11863 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11866 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11867 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11869 if test -n "$hardcode_libdir_flag_spec" || \
11870 test -n "$runpath_var" || \
11871 test "X$hardcode_automatic" = "Xyes" ; then
11873 # We can hardcode non-existant directories.
11874 if test "$hardcode_direct" != no &&
11875 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11876 # have to relink, otherwise we might link with an installed library
11877 # when we should be linking with a yet-to-be-installed one
11878 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11879 test "$hardcode_minus_L" != no; then
11880 # Linking always hardcodes the temporary library directory.
11881 hardcode_action=relink
11883 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11884 hardcode_action=immediate
11887 # We cannot hardcode anything, or else we can only hardcode existing
11889 hardcode_action=unsupported
11891 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11892 $as_echo "$hardcode_action" >&6; }
11894 if test "$hardcode_action" = relink; then
11895 # Fast installation is not supported
11896 enable_fast_install=no
11897 elif test "$shlibpath_overrides_runpath" = yes ||
11898 test "$enable_shared" = no; then
11899 # Fast installation is not necessary
11900 enable_fast_install=needless
11905 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11906 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11907 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11908 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11909 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11910 { $as_echo "$as_me:$LINENO: result: yes" >&5
11911 $as_echo "yes" >&6; }
11913 # FIXME - insert some real tests, host_os isn't really good enough
11916 if test -n "$STRIP" ; then
11917 striplib="$STRIP -x"
11918 old_striplib="$STRIP -S"
11919 { $as_echo "$as_me:$LINENO: result: yes" >&5
11920 $as_echo "yes" >&6; }
11922 { $as_echo "$as_me:$LINENO: result: no" >&5
11923 $as_echo "no" >&6; }
11927 { $as_echo "$as_me:$LINENO: result: no" >&5
11928 $as_echo "no" >&6; }
11933 if test "x$enable_dlopen" != xyes; then
11934 enable_dlopen=unknown
11935 enable_dlopen_self=unknown
11936 enable_dlopen_self_static=unknown
11943 lt_cv_dlopen="load_add_on"
11945 lt_cv_dlopen_self=yes
11949 lt_cv_dlopen="LoadLibrary"
11954 lt_cv_dlopen="dlopen"
11959 # if libdl is installed we need to link against it
11960 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11963 $as_echo_n "(cached) " >&6
11965 ac_check_lib_save_LIBS=$LIBS
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11974 /* Override any GCC internal prototype to avoid an error.
11975 Use char because int might match the return type of a GCC
11976 builtin and then its argument prototype would still apply. */
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11996 $as_echo "$ac_try_echo") >&5
11997 (eval "$ac_link") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest$ac_exeext && {
12007 test "$cross_compiling" = yes ||
12008 $as_test_x conftest$ac_exeext
12010 ac_cv_lib_dl_dlopen=yes
12012 $as_echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_cv_lib_dl_dlopen=no
12018 rm -rf conftest.dSYM
12019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12020 conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12025 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12029 lt_cv_dlopen="dyld"
12031 lt_cv_dlopen_self=yes
12038 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12039 $as_echo_n "checking for shl_load... " >&6; }
12040 if test "${ac_cv_func_shl_load+set}" = set; then
12041 $as_echo_n "(cached) " >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12051 #define shl_load innocuous_shl_load
12053 /* System header to define __stub macros and hopefully few prototypes,
12054 which can conflict with char shl_load (); below.
12055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056 <limits.h> exists even on freestanding compilers. */
12059 # include <limits.h>
12061 # include <assert.h>
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12073 /* The GNU C library defines this for functions which it implements
12074 to always fail with ENOSYS. Some functions are actually named
12075 something starting with __ and the normal name is an alias. */
12076 #if defined __stub_shl_load || defined __stub___shl_load
12083 return shl_load ();
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12095 $as_echo "$ac_try_echo") >&5
12096 (eval "$ac_link") 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 } && test -s conftest$ac_exeext && {
12106 test "$cross_compiling" = yes ||
12107 $as_test_x conftest$ac_exeext
12109 ac_cv_func_shl_load=yes
12111 $as_echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_cv_func_shl_load=no
12117 rm -rf conftest.dSYM
12118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12119 conftest$ac_exeext conftest.$ac_ext
12121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12122 $as_echo "$ac_cv_func_shl_load" >&6; }
12123 if test "x$ac_cv_func_shl_load" = x""yes; then
12124 lt_cv_dlopen="shl_load"
12126 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12127 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12128 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12129 $as_echo_n "(cached) " >&6
12131 ac_check_lib_save_LIBS=$LIBS
12133 cat >conftest.$ac_ext <<_ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12150 return shl_load ();
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12162 $as_echo "$ac_try_echo") >&5
12163 (eval "$ac_link") 2>conftest.er1
12165 grep -v '^ *+' conftest.er1 >conftest.err
12167 cat conftest.err >&5
12168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } && {
12170 test -z "$ac_c_werror_flag" ||
12171 test ! -s conftest.err
12172 } && test -s conftest$ac_exeext && {
12173 test "$cross_compiling" = yes ||
12174 $as_test_x conftest$ac_exeext
12176 ac_cv_lib_dld_shl_load=yes
12178 $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_cv_lib_dld_shl_load=no
12184 rm -rf conftest.dSYM
12185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12190 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12191 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12192 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12194 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12195 $as_echo_n "checking for dlopen... " >&6; }
12196 if test "${ac_cv_func_dlopen+set}" = set; then
12197 $as_echo_n "(cached) " >&6
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12207 #define dlopen innocuous_dlopen
12209 /* System header to define __stub macros and hopefully few prototypes,
12210 which can conflict with char dlopen (); below.
12211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212 <limits.h> exists even on freestanding compilers. */
12215 # include <limits.h>
12217 # include <assert.h>
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
12229 /* The GNU C library defines this for functions which it implements
12230 to always fail with ENOSYS. Some functions are actually named
12231 something starting with __ and the normal name is an alias. */
12232 #if defined __stub_dlopen || defined __stub___dlopen
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (ac_try="$ac_link"
12246 case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12251 $as_echo "$ac_try_echo") >&5
12252 (eval "$ac_link") 2>conftest.er1
12254 grep -v '^ *+' conftest.er1 >conftest.err
12256 cat conftest.err >&5
12257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } && {
12259 test -z "$ac_c_werror_flag" ||
12260 test ! -s conftest.err
12261 } && test -s conftest$ac_exeext && {
12262 test "$cross_compiling" = yes ||
12263 $as_test_x conftest$ac_exeext
12265 ac_cv_func_dlopen=yes
12267 $as_echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_cv_func_dlopen=no
12273 rm -rf conftest.dSYM
12274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12275 conftest$ac_exeext conftest.$ac_ext
12277 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12278 $as_echo "$ac_cv_func_dlopen" >&6; }
12279 if test "x$ac_cv_func_dlopen" = x""yes; then
12280 lt_cv_dlopen="dlopen"
12282 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12285 $as_echo_n "(cached) " >&6
12287 ac_check_lib_save_LIBS=$LIBS
12289 cat >conftest.$ac_ext <<_ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (ac_try="$ac_link"
12313 case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12318 $as_echo "$ac_try_echo") >&5
12319 (eval "$ac_link") 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } && {
12326 test -z "$ac_c_werror_flag" ||
12327 test ! -s conftest.err
12328 } && test -s conftest$ac_exeext && {
12329 test "$cross_compiling" = yes ||
12330 $as_test_x conftest$ac_exeext
12332 ac_cv_lib_dl_dlopen=yes
12334 $as_echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 ac_cv_lib_dl_dlopen=no
12340 rm -rf conftest.dSYM
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12346 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12347 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12350 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12351 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12352 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12353 $as_echo_n "(cached) " >&6
12355 ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-lsvld $LIBS"
12357 cat >conftest.$ac_ext <<_ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (ac_try="$ac_link"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12386 $as_echo "$ac_try_echo") >&5
12387 (eval "$ac_link") 2>conftest.er1
12389 grep -v '^ *+' conftest.er1 >conftest.err
12391 cat conftest.err >&5
12392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } && {
12394 test -z "$ac_c_werror_flag" ||
12395 test ! -s conftest.err
12396 } && test -s conftest$ac_exeext && {
12397 test "$cross_compiling" = yes ||
12398 $as_test_x conftest$ac_exeext
12400 ac_cv_lib_svld_dlopen=yes
12402 $as_echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 ac_cv_lib_svld_dlopen=no
12408 rm -rf conftest.dSYM
12409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12410 conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12413 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12414 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12415 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12418 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12419 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12420 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12421 $as_echo_n "(cached) " >&6
12423 ac_check_lib_save_LIBS=$LIBS
12425 cat >conftest.$ac_ext <<_ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12432 /* Override any GCC internal prototype to avoid an error.
12433 Use char because int might match the return type of a GCC
12434 builtin and then its argument prototype would still apply. */
12442 return dld_link ();
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (ac_try="$ac_link"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12454 $as_echo "$ac_try_echo") >&5
12455 (eval "$ac_link") 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && {
12462 test -z "$ac_c_werror_flag" ||
12463 test ! -s conftest.err
12464 } && test -s conftest$ac_exeext && {
12465 test "$cross_compiling" = yes ||
12466 $as_test_x conftest$ac_exeext
12468 ac_cv_lib_dld_dld_link=yes
12470 $as_echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_cv_lib_dld_dld_link=no
12476 rm -rf conftest.dSYM
12477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12478 conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12481 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12482 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12483 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12484 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12505 if test "x$lt_cv_dlopen" != xno; then
12511 case $lt_cv_dlopen in
12513 save_CPPFLAGS="$CPPFLAGS"
12514 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12516 save_LDFLAGS="$LDFLAGS"
12517 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12520 LIBS="$lt_cv_dlopen_libs $LIBS"
12522 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12523 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12524 if test "${lt_cv_dlopen_self+set}" = set; then
12525 $as_echo_n "(cached) " >&6
12527 if test "$cross_compiling" = yes; then :
12528 lt_cv_dlopen_self=cross
12530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12531 lt_status=$lt_dlunknown
12532 cat > conftest.$ac_ext <<EOF
12533 #line 12533 "configure"
12534 #include "confdefs.h"
12543 # define LT_DLGLOBAL RTLD_GLOBAL
12546 # define LT_DLGLOBAL DL_GLOBAL
12548 # define LT_DLGLOBAL 0
12552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12553 find out it does not work in some platform. */
12554 #ifndef LT_DLLAZY_OR_NOW
12556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12559 # define LT_DLLAZY_OR_NOW DL_LAZY
12562 # define LT_DLLAZY_OR_NOW RTLD_NOW
12565 # define LT_DLLAZY_OR_NOW DL_NOW
12567 # define LT_DLLAZY_OR_NOW 0
12575 extern "C" void exit (int);
12578 void fnord() { int i=42;}
12581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12582 int status = $lt_dlunknown;
12586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12587 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12588 /* dlclose (self); */
12596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>&5
12599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12601 (./conftest; exit; ) >&5 2>/dev/null
12603 case x$lt_status in
12604 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12605 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12606 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12609 # compilation failed
12610 lt_cv_dlopen_self=no
12617 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12618 $as_echo "$lt_cv_dlopen_self" >&6; }
12620 if test "x$lt_cv_dlopen_self" = xyes; then
12621 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12622 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12623 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12624 if test "${lt_cv_dlopen_self_static+set}" = set; then
12625 $as_echo_n "(cached) " >&6
12627 if test "$cross_compiling" = yes; then :
12628 lt_cv_dlopen_self_static=cross
12630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12631 lt_status=$lt_dlunknown
12632 cat > conftest.$ac_ext <<EOF
12633 #line 12633 "configure"
12634 #include "confdefs.h"
12643 # define LT_DLGLOBAL RTLD_GLOBAL
12646 # define LT_DLGLOBAL DL_GLOBAL
12648 # define LT_DLGLOBAL 0
12652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12653 find out it does not work in some platform. */
12654 #ifndef LT_DLLAZY_OR_NOW
12656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12659 # define LT_DLLAZY_OR_NOW DL_LAZY
12662 # define LT_DLLAZY_OR_NOW RTLD_NOW
12665 # define LT_DLLAZY_OR_NOW DL_NOW
12667 # define LT_DLLAZY_OR_NOW 0
12675 extern "C" void exit (int);
12678 void fnord() { int i=42;}
12681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12682 int status = $lt_dlunknown;
12686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12688 /* dlclose (self); */
12696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697 (eval $ac_link) 2>&5
12699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12701 (./conftest; exit; ) >&5 2>/dev/null
12703 case x$lt_status in
12704 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12705 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12706 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12709 # compilation failed
12710 lt_cv_dlopen_self_static=no
12717 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12718 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12721 CPPFLAGS="$save_CPPFLAGS"
12722 LDFLAGS="$save_LDFLAGS"
12727 case $lt_cv_dlopen_self in
12728 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12729 *) enable_dlopen_self=unknown ;;
12732 case $lt_cv_dlopen_self_static in
12733 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12734 *) enable_dlopen_self_static=unknown ;;
12739 # Report which library types will actually be built
12740 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12741 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12742 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12743 $as_echo "$can_build_shared" >&6; }
12745 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12746 $as_echo_n "checking whether to build shared libraries... " >&6; }
12747 test "$can_build_shared" = "no" && enable_shared=no
12749 # On AIX, shared libraries and static libraries use the same namespace, and
12750 # are all built from PIC.
12753 test "$enable_shared" = yes && enable_static=no
12754 if test -n "$RANLIB"; then
12755 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12756 postinstall_cmds='$RANLIB $lib'
12761 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12762 test "$enable_shared" = yes && enable_static=no
12766 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12767 $as_echo "$enable_shared" >&6; }
12769 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12770 $as_echo_n "checking whether to build static libraries... " >&6; }
12771 # Make sure either enable_shared or enable_static is yes.
12772 test "$enable_shared" = yes || enable_static=yes
12773 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12774 $as_echo "$enable_static" >&6; }
12776 # The else clause should only fire when bootstrapping the
12777 # libtool distribution, otherwise you forgot to ship ltmain.sh
12778 # with your package, and you will get complaints that there are
12779 # no rules to generate ltmain.sh.
12780 if test -f "$ltmain"; then
12781 # See if we are running on zsh, and set the options which allow our commands through
12782 # without removal of \ escapes.
12783 if test -n "${ZSH_VERSION+set}" ; then
12784 setopt NO_GLOB_SUBST
12786 # Now quote all the things that may contain metacharacters while being
12787 # careful not to overquote the AC_SUBSTed values. We take copies of the
12788 # variables and quote the copies for generation of the libtool script.
12789 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12791 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12792 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12793 deplibs_check_method reload_flag reload_cmds need_locks \
12794 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12795 lt_cv_sys_global_symbol_to_c_name_address \
12796 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12797 old_postinstall_cmds old_postuninstall_cmds \
12801 lt_prog_compiler_wl \
12802 lt_prog_compiler_pic \
12803 lt_prog_compiler_static \
12804 lt_prog_compiler_no_builtin_flag \
12805 export_dynamic_flag_spec \
12806 thread_safe_flag_spec \
12807 whole_archive_flag_spec \
12808 enable_shared_with_static_runtimes \
12810 old_archive_from_new_cmds \
12815 compiler_lib_search_path \
12816 compiler_lib_search_dirs \
12818 archive_expsym_cmds \
12820 postuninstall_cmds \
12821 old_archive_from_expsyms_cmds \
12822 allow_undefined_flag \
12823 no_undefined_flag \
12824 export_symbols_cmds \
12825 hardcode_libdir_flag_spec \
12826 hardcode_libdir_flag_spec_ld \
12827 hardcode_libdir_separator \
12828 hardcode_automatic \
12830 module_expsym_cmds \
12831 lt_cv_prog_compiler_c_o \
12834 include_expsyms; do
12837 old_archive_cmds | \
12838 old_archive_from_new_cmds | \
12840 archive_expsym_cmds | \
12842 module_expsym_cmds | \
12843 old_archive_from_expsyms_cmds | \
12844 export_symbols_cmds | \
12845 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12846 postinstall_cmds | postuninstall_cmds | \
12847 old_postinstall_cmds | old_postuninstall_cmds | \
12848 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12849 # Double-quote double-evaled strings.
12850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12859 *'\$0 --fallback-echo"')
12860 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12864 cfgfile="${ofile}T"
12865 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12867 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
12868 $as_echo "$as_me: creating $ofile" >&6;}
12870 cat <<__EOF__ >> "$cfgfile"
12873 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12874 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12875 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12877 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12878 # Free Software Foundation, Inc.
12880 # This file is part of GNU Libtool:
12881 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12883 # This program is free software; you can redistribute it and/or modify
12884 # it under the terms of the GNU General Public License as published by
12885 # the Free Software Foundation; either version 2 of the License, or
12886 # (at your option) any later version.
12888 # This program is distributed in the hope that it will be useful, but
12889 # WITHOUT ANY WARRANTY; without even the implied warranty of
12890 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12891 # General Public License for more details.
12893 # You should have received a copy of the GNU General Public License
12894 # along with this program; if not, write to the Free Software
12895 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12897 # As a special exception to the GNU General Public License, if you
12898 # distribute this file as part of a program that contains a
12899 # configuration script generated by Autoconf, you may include it under
12900 # the same distribution terms that you use for the rest of that program.
12902 # A sed program that does not truncate output.
12905 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12906 Xsed="$SED -e 1s/^X//"
12908 # The HP-UX ksh and POSIX shell print the target directory to stdout
12909 # if CDPATH is set.
12910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12912 # The names of the tagged configurations supported by this script.
12915 # ### BEGIN LIBTOOL CONFIG
12917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12919 # Shell to use when invoking shell scripts.
12922 # Whether or not to build shared libraries.
12923 build_libtool_libs=$enable_shared
12925 # Whether or not to build static libraries.
12926 build_old_libs=$enable_static
12928 # Whether or not to add -lc for building shared libraries.
12929 build_libtool_need_lc=$archive_cmds_need_lc
12931 # Whether or not to disallow shared libs when runtime libs are static
12932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12934 # Whether or not to optimize for fast installation.
12935 fast_install=$enable_fast_install
12938 host_alias=$host_alias
12942 # The build system.
12943 build_alias=$build_alias
12947 # An echo program that does not interpret backslashes.
12952 AR_FLAGS=$lt_AR_FLAGS
12957 # LTCC compiler flags.
12958 LTCFLAGS=$lt_LTCFLAGS
12960 # A language-specific compiler.
12963 # Is the compiler the GNU C compiler?
12969 # The linker used to build libraries.
12972 # Whether we need hard or soft links.
12975 # A BSD-compatible nm program.
12978 # A symbol stripping program
12981 # Used to examine libraries when file_magic_cmd begins "file"
12982 MAGIC_CMD=$MAGIC_CMD
12984 # Used on cygwin: DLL creation program.
12987 # Used on cygwin: object dumper.
12990 # Used on cygwin: assembler.
12993 # The name of the directory that contains temporary libtool files.
12996 # How to create reloadable object files.
12997 reload_flag=$lt_reload_flag
12998 reload_cmds=$lt_reload_cmds
13000 # How to pass a linker flag through the compiler.
13001 wl=$lt_lt_prog_compiler_wl
13003 # Object file suffix (normally "o").
13004 objext="$ac_objext"
13006 # Old archive suffix (normally "a").
13009 # Shared library suffix (normally ".so").
13010 shrext_cmds='$shrext_cmds'
13012 # Executable file suffix (normally "").
13015 # Additional compiler flags for building library objects.
13016 pic_flag=$lt_lt_prog_compiler_pic
13019 # What is the maximum length of a command?
13020 max_cmd_len=$lt_cv_sys_max_cmd_len
13022 # Does compiler simultaneously support -c and -o options?
13023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13025 # Must we lock files when doing compilation?
13026 need_locks=$lt_need_locks
13028 # Do we need the lib prefix for modules?
13029 need_lib_prefix=$need_lib_prefix
13031 # Do we need a version for libraries?
13032 need_version=$need_version
13034 # Whether dlopen is supported.
13035 dlopen_support=$enable_dlopen
13037 # Whether dlopen of programs is supported.
13038 dlopen_self=$enable_dlopen_self
13040 # Whether dlopen of statically linked programs is supported.
13041 dlopen_self_static=$enable_dlopen_self_static
13043 # Compiler flag to prevent dynamic linking.
13044 link_static_flag=$lt_lt_prog_compiler_static
13046 # Compiler flag to turn off builtin functions.
13047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13049 # Compiler flag to allow reflexive dlopens.
13050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13052 # Compiler flag to generate shared objects directly from archives.
13053 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13055 # Compiler flag to generate thread-safe objects.
13056 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13058 # Library versioning type.
13059 version_type=$version_type
13061 # Format of library name prefix.
13062 libname_spec=$lt_libname_spec
13064 # List of archive names. First name is the real one, the rest are links.
13065 # The last name is the one that the linker finds with -lNAME.
13066 library_names_spec=$lt_library_names_spec
13068 # The coded name of the library, if different from the real name.
13069 soname_spec=$lt_soname_spec
13071 # Commands used to build and install an old-style archive.
13073 old_archive_cmds=$lt_old_archive_cmds
13074 old_postinstall_cmds=$lt_old_postinstall_cmds
13075 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13077 # Create an old-style archive from a shared archive.
13078 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13080 # Create a temporary old-style archive to link instead of a shared archive.
13081 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13083 # Commands used to build and install a shared archive.
13084 archive_cmds=$lt_archive_cmds
13085 archive_expsym_cmds=$lt_archive_expsym_cmds
13086 postinstall_cmds=$lt_postinstall_cmds
13087 postuninstall_cmds=$lt_postuninstall_cmds
13089 # Commands used to build a loadable module (assumed same as above if empty)
13090 module_cmds=$lt_module_cmds
13091 module_expsym_cmds=$lt_module_expsym_cmds
13093 # Commands to strip libraries.
13094 old_striplib=$lt_old_striplib
13095 striplib=$lt_striplib
13097 # Dependencies to place before the objects being linked to create a
13099 predep_objects=$lt_predep_objects
13101 # Dependencies to place after the objects being linked to create a
13103 postdep_objects=$lt_postdep_objects
13105 # Dependencies to place before the objects being linked to create a
13107 predeps=$lt_predeps
13109 # Dependencies to place after the objects being linked to create a
13111 postdeps=$lt_postdeps
13113 # The directories searched by this compiler when creating a shared
13115 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13117 # The library search path used internally by the compiler when linking
13118 # a shared library.
13119 compiler_lib_search_path=$lt_compiler_lib_search_path
13121 # Method to check whether dependent libraries are shared objects.
13122 deplibs_check_method=$lt_deplibs_check_method
13124 # Command to use when deplibs_check_method == file_magic.
13125 file_magic_cmd=$lt_file_magic_cmd
13127 # Flag that allows shared libraries with undefined symbols to be built.
13128 allow_undefined_flag=$lt_allow_undefined_flag
13130 # Flag that forces no undefined symbols.
13131 no_undefined_flag=$lt_no_undefined_flag
13133 # Commands used to finish a libtool library installation in a directory.
13134 finish_cmds=$lt_finish_cmds
13136 # Same as above, but a single script fragment to be evaled but not shown.
13137 finish_eval=$lt_finish_eval
13139 # Take the output of nm and produce a listing of raw symbols and C names.
13140 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13142 # Transform the output of nm in a proper C declaration
13143 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13145 # Transform the output of nm in a C name address pair
13146 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13148 # This is the shared library runtime path variable.
13149 runpath_var=$runpath_var
13151 # This is the shared library path variable.
13152 shlibpath_var=$shlibpath_var
13154 # Is shlibpath searched before the hard-coded library search path?
13155 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13157 # How to hardcode a shared library path into an executable.
13158 hardcode_action=$hardcode_action
13160 # Whether we should hardcode library paths into libraries.
13161 hardcode_into_libs=$hardcode_into_libs
13163 # Flag to hardcode \$libdir into a binary during linking.
13164 # This must work even if \$libdir does not exist.
13165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13167 # If ld is used when linking, flag to hardcode \$libdir into
13168 # a binary during linking. This must work even if \$libdir does
13170 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13172 # Whether we need a single -rpath flag with a separated argument.
13173 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13175 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13176 # resulting binary.
13177 hardcode_direct=$hardcode_direct
13179 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13180 # resulting binary.
13181 hardcode_minus_L=$hardcode_minus_L
13183 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13184 # the resulting binary.
13185 hardcode_shlibpath_var=$hardcode_shlibpath_var
13187 # Set to yes if building a shared library automatically hardcodes DIR into the library
13188 # and all subsequent libraries and executables linked against it.
13189 hardcode_automatic=$hardcode_automatic
13191 # Variables whose values should be saved in libtool wrapper scripts and
13192 # restored at relink time.
13193 variables_saved_for_relink="$variables_saved_for_relink"
13195 # Whether libtool must link a program against all its dependency libraries.
13196 link_all_deplibs=$link_all_deplibs
13198 # Compile-time system search path for libraries
13199 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13201 # Run-time system search path for libraries
13202 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13204 # Fix the shell variable \$srcfile for the compiler.
13205 fix_srcfile_path=$lt_fix_srcfile_path
13207 # Set to yes if exported symbols are required.
13208 always_export_symbols=$always_export_symbols
13210 # The commands to list exported symbols.
13211 export_symbols_cmds=$lt_export_symbols_cmds
13213 # The commands to extract the exported symbol list from a shared archive.
13214 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13216 # Symbols that should not be listed in the preloaded symbols.
13217 exclude_expsyms=$lt_exclude_expsyms
13219 # Symbols that must always be exported.
13220 include_expsyms=$lt_include_expsyms
13222 # ### END LIBTOOL CONFIG
13229 cat <<\EOF >> "$cfgfile"
13231 # AIX sometimes has problems with the GCC collect2 program. For some
13232 # reason, if we set the COLLECT_NAMES environment variable, the problems
13233 # vanish in a puff of smoke.
13234 if test "X${COLLECT_NAMES+set}" != Xset; then
13236 export COLLECT_NAMES
13242 # We use sed instead of cat because bash on DJGPP gets confused if
13243 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13244 # text mode, it properly converts lines to CR/LF. This bash problem
13245 # is reportedly fixed, but why not run on old versions too?
13246 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13248 mv -f "$cfgfile" "$ofile" || \
13249 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13253 # If there is no Makefile yet, we rely on a make rule to execute
13254 # `config.status --recheck' to rerun these tests and create the
13255 # libtool script then.
13256 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13257 if test -f "$ltmain_in"; then
13258 test -f Makefile && make "$ltmain"
13264 ac_cpp='$CPP $CPPFLAGS'
13265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13272 # Check whether --with-tags was given.
13273 if test "${with_tags+set}" = set; then
13274 withval=$with_tags; tagnames="$withval"
13278 if test -f "$ltmain" && test -n "$tagnames"; then
13279 if test ! -f "${ofile}"; then
13280 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13281 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13284 if test -z "$LTCC"; then
13285 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13286 if test -z "$LTCC"; then
13287 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13288 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13290 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13291 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13294 if test -z "$LTCFLAGS"; then
13295 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13298 # Extract list of available tagged configurations in $ofile.
13299 # Note that this assumes the entire list is on one line.
13300 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13303 for tagname in $tagnames; do
13305 # Check whether tagname contains only valid characters
13306 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13308 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13309 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
13310 { (exit 1); exit 1; }; }
13314 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13316 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13317 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13318 { (exit 1); exit 1; }; }
13321 # Update the list of available tags.
13322 if test -n "$tagname"; then
13323 echo appending configuration tag \"$tagname\" to $ofile
13327 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13328 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13329 (test "X$CXX" != "Xg++"))) ; then
13331 ac_cpp='$CXXCPP $CPPFLAGS'
13332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13339 archive_cmds_need_lc_CXX=no
13340 allow_undefined_flag_CXX=
13341 always_export_symbols_CXX=no
13342 archive_expsym_cmds_CXX=
13343 export_dynamic_flag_spec_CXX=
13344 hardcode_direct_CXX=no
13345 hardcode_libdir_flag_spec_CXX=
13346 hardcode_libdir_flag_spec_ld_CXX=
13347 hardcode_libdir_separator_CXX=
13348 hardcode_minus_L_CXX=no
13349 hardcode_shlibpath_var_CXX=unsupported
13350 hardcode_automatic_CXX=no
13352 module_expsym_cmds_CXX=
13353 link_all_deplibs_CXX=unknown
13354 old_archive_cmds_CXX=$old_archive_cmds
13355 no_undefined_flag_CXX=
13356 whole_archive_flag_spec_CXX=
13357 enable_shared_with_static_runtimes_CXX=no
13359 # Dependencies to place before and after the object being linked:
13360 predep_objects_CXX=
13361 postdep_objects_CXX=
13364 compiler_lib_search_path_CXX=
13365 compiler_lib_search_dirs_CXX=
13367 # Source file extension for C++ test sources.
13370 # Object file extension for compiled C++ test sources.
13374 # Code to be used in simple compile tests
13375 lt_simple_compile_test_code="int some_variable = 0;"
13377 # Code to be used in simple link tests
13378 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13380 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13382 # If no C compiler was specified, use CC.
13385 # If no C compiler flags were specified, use CFLAGS.
13386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13388 # Allow CC to be a program name with arguments.
13392 # save warnings/boilerplate of simple test code
13393 ac_outfile=conftest.$ac_objext
13394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13396 _lt_compiler_boilerplate=`cat conftest.err`
13399 ac_outfile=conftest.$ac_objext
13400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13402 _lt_linker_boilerplate=`cat conftest.err`
13406 # Allow CC to be a program name with arguments.
13411 lt_save_with_gnu_ld=$with_gnu_ld
13412 lt_save_path_LD=$lt_cv_path_LD
13413 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13414 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13416 $as_unset lt_cv_prog_gnu_ld
13418 if test -n "${lt_cv_path_LDCXX+set}"; then
13419 lt_cv_path_LD=$lt_cv_path_LDCXX
13421 $as_unset lt_cv_path_LD
13423 test -z "${LDCXX+set}" || LD=$LDCXX
13427 for cc_temp in $compiler""; do
13429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13435 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13438 # We don't want -fno-exception wen compiling C++ code, so set the
13439 # no_builtin_flag separately
13440 if test "$GXX" = yes; then
13441 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13443 lt_prog_compiler_no_builtin_flag_CXX=
13446 if test "$GXX" = yes; then
13447 # Set up default GNU C++ configuration
13450 # Check whether --with-gnu-ld was given.
13451 if test "${with_gnu_ld+set}" = set; then
13452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13458 if test "$GCC" = yes; then
13459 # Check if gcc -print-prog-name=ld gives a path.
13460 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13461 $as_echo_n "checking for ld used by $CC... " >&6; }
13464 # gcc leaves a trailing carriage return which upsets mingw
13465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13470 # Accept absolute paths.
13472 re_direlt='/[^/][^/]*/\.\./'
13473 # Canonicalize the pathname of ld
13474 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13475 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13476 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13478 test -z "$LD" && LD="$ac_prog"
13481 # If it fails, then pretend we aren't using GCC.
13485 # If it is relative, then search for the first ld in PATH.
13486 with_gnu_ld=unknown
13489 elif test "$with_gnu_ld" = yes; then
13490 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13491 $as_echo_n "checking for GNU ld... " >&6; }
13493 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13494 $as_echo_n "checking for non-GNU ld... " >&6; }
13496 if test "${lt_cv_path_LD+set}" = set; then
13497 $as_echo_n "(cached) " >&6
13499 if test -z "$LD"; then
13500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13501 for ac_dir in $PATH; do
13503 test -z "$ac_dir" && ac_dir=.
13504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13505 lt_cv_path_LD="$ac_dir/$ac_prog"
13506 # Check to see if the program is GNU ld. I'd rather use --version,
13507 # but apparently some variants of GNU ld only accept -v.
13508 # Break only if it was the GNU/non-GNU ld that we prefer.
13509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13510 *GNU* | *'with BFD'*)
13511 test "$with_gnu_ld" != no && break
13514 test "$with_gnu_ld" != yes && break
13521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13525 LD="$lt_cv_path_LD"
13526 if test -n "$LD"; then
13527 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13528 $as_echo "$LD" >&6; }
13530 { $as_echo "$as_me:$LINENO: result: no" >&5
13531 $as_echo "no" >&6; }
13533 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13534 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13535 { (exit 1); exit 1; }; }
13536 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13538 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13539 $as_echo_n "(cached) " >&6
13541 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13542 case `$LD -v 2>&1 </dev/null` in
13543 *GNU* | *'with BFD'*)
13544 lt_cv_prog_gnu_ld=yes
13547 lt_cv_prog_gnu_ld=no
13551 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13552 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13553 with_gnu_ld=$lt_cv_prog_gnu_ld
13557 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13558 # archiving commands below assume that GNU ld is being used.
13559 if test "$with_gnu_ld" = yes; then
13560 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13563 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13564 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566 # If archive_cmds runs LD, not CC, wlarc should be empty
13567 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13568 # investigate it a little bit more. (MM)
13571 # ancient GNU ld didn't support --whole-archive et. al.
13572 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13573 grep 'no-whole-archive' > /dev/null; then
13574 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13576 whole_archive_flag_spec_CXX=
13582 # A generic and very simple default shared library creation
13583 # command for GNU C++ for the case where it uses the native
13584 # linker, instead of GNU ld. If possible, this setting should
13585 # overridden to take advantage of the native linker features on
13586 # the platform it is being used on.
13587 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13590 # Commands to make compiler produce verbose output that lists
13591 # what "hidden" libraries, object files and flags are used when
13592 # linking a shared library.
13593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13601 # PORTME: fill in a description of your system's C++ link characteristics
13602 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13607 # FIXME: insert proper C++ library support
13611 if test "$host_cpu" = ia64; then
13612 # On IA64, the linker does run time linking by default, so we don't
13613 # have to do anything special.
13614 aix_use_runtimelinking=no
13615 exp_sym_flag='-Bexport'
13618 aix_use_runtimelinking=no
13620 # Test if we are trying to use run time linking or normal
13621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13622 # need to do runtime linking.
13623 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13624 for ld_flag in $LDFLAGS; do
13627 aix_use_runtimelinking=yes
13635 exp_sym_flag='-bexport'
13636 no_entry_flag='-bnoentry'
13639 # When large executables or shared objects are built, AIX ld can
13640 # have problems creating the table of contents. If linking a library
13641 # or program results in "error TOC overflow" add -mminimal-toc to
13642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13645 archive_cmds_CXX=''
13646 hardcode_direct_CXX=yes
13647 hardcode_libdir_separator_CXX=':'
13648 link_all_deplibs_CXX=yes
13650 if test "$GXX" = yes; then
13651 case $host_os in aix4.[012]|aix4.[012].*)
13652 # We only want to do this on AIX 4.2 and lower, the check
13653 # below for broken collect2 doesn't work under 4.3+
13654 collect2name=`${CC} -print-prog-name=collect2`
13655 if test -f "$collect2name" && \
13656 strings "$collect2name" | grep resolve_lib_name >/dev/null
13658 # We have reworked collect2
13661 # We have old collect2
13662 hardcode_direct_CXX=unsupported
13663 # It fails to find uninstalled libraries when the uninstalled
13664 # path is not listed in the libpath. Setting hardcode_minus_L
13665 # to unsupported forces relinking
13666 hardcode_minus_L_CXX=yes
13667 hardcode_libdir_flag_spec_CXX='-L$libdir'
13668 hardcode_libdir_separator_CXX=
13672 shared_flag='-shared'
13673 if test "$aix_use_runtimelinking" = yes; then
13674 shared_flag="$shared_flag "'${wl}-G'
13678 if test "$host_cpu" = ia64; then
13679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13680 # chokes on -Wl,-G. The following line is correct:
13683 if test "$aix_use_runtimelinking" = yes; then
13684 shared_flag='${wl}-G'
13686 shared_flag='${wl}-bM:SRE'
13691 # It seems that -bexpall does not export symbols beginning with
13692 # underscore (_), so it is better to generate a list of symbols to export.
13693 always_export_symbols_CXX=yes
13694 if test "$aix_use_runtimelinking" = yes; then
13695 # Warning - without using the other runtime loading flags (-brtl),
13696 # -berok will link without error, but may produce a broken library.
13697 allow_undefined_flag_CXX='-berok'
13698 # Determine the default libpath from the value encoded in an empty executable.
13699 cat >conftest.$ac_ext <<_ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13714 rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (ac_try="$ac_link"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13721 $as_echo "$ac_try_echo") >&5
13722 (eval "$ac_link") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } && {
13729 test -z "$ac_cxx_werror_flag" ||
13730 test ! -s conftest.err
13731 } && test -s conftest$ac_exeext && {
13732 test "$cross_compiling" = yes ||
13733 $as_test_x conftest$ac_exeext
13736 lt_aix_libpath_sed='
13737 /Import File Strings/,/^$/ {
13743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13744 # Check for a 64-bit object if we didn't find anything.
13745 if test -z "$aix_libpath"; then
13746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13749 $as_echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13755 rm -rf conftest.dSYM
13756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13757 conftest$ac_exeext conftest.$ac_ext
13758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13760 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13762 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13764 if test "$host_cpu" = ia64; then
13765 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13766 allow_undefined_flag_CXX="-z nodefs"
13767 archive_expsym_cmds_CXX="\$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"
13769 # Determine the default libpath from the value encoded in an empty executable.
13770 cat >conftest.$ac_ext <<_ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13792 $as_echo "$ac_try_echo") >&5
13793 (eval "$ac_link") 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } && {
13800 test -z "$ac_cxx_werror_flag" ||
13801 test ! -s conftest.err
13802 } && test -s conftest$ac_exeext && {
13803 test "$cross_compiling" = yes ||
13804 $as_test_x conftest$ac_exeext
13807 lt_aix_libpath_sed='
13808 /Import File Strings/,/^$/ {
13814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13815 # Check for a 64-bit object if we didn't find anything.
13816 if test -z "$aix_libpath"; then
13817 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13820 $as_echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13826 rm -rf conftest.dSYM
13827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13828 conftest$ac_exeext conftest.$ac_ext
13829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13831 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13832 # Warning - without using the other run time loading flags,
13833 # -berok will link without error, but may produce a broken library.
13834 no_undefined_flag_CXX=' ${wl}-bernotok'
13835 allow_undefined_flag_CXX=' ${wl}-berok'
13836 # Exported symbols can be pulled into shared objects from archives
13837 whole_archive_flag_spec_CXX='$convenience'
13838 archive_cmds_need_lc_CXX=yes
13839 # This is similar to how AIX traditionally builds its shared libraries.
13840 archive_expsym_cmds_CXX="\$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'
13846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13847 allow_undefined_flag_CXX=unsupported
13848 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13849 # support --undefined. This deserves some investigation. FIXME
13850 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13857 case $cc_basename in
13859 # FIXME: insert proper C++ library support
13865 cygwin* | mingw* | pw32*)
13866 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13867 # as there is no search path for DLLs.
13868 hardcode_libdir_flag_spec_CXX='-L$libdir'
13869 allow_undefined_flag_CXX=unsupported
13870 always_export_symbols_CXX=no
13871 enable_shared_with_static_runtimes_CXX=yes
13873 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13874 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13875 # If the export-symbols file already is a .def file (1st line
13876 # is EXPORTS), use it as is; otherwise, prepend...
13877 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13878 cp $export_symbols $output_objdir/$soname.def;
13880 echo EXPORTS > $output_objdir/$soname.def;
13881 cat $export_symbols >> $output_objdir/$soname.def;
13883 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13888 darwin* | rhapsody*)
13889 archive_cmds_need_lc_CXX=no
13890 hardcode_direct_CXX=no
13891 hardcode_automatic_CXX=yes
13892 hardcode_shlibpath_var_CXX=unsupported
13893 whole_archive_flag_spec_CXX=''
13894 link_all_deplibs_CXX=yes
13895 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13896 if test "$GXX" = yes ; then
13897 output_verbose_link_cmd='echo'
13898 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13899 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13900 archive_expsym_cmds_CXX="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}"
13901 module_expsym_cmds_CXX="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}"
13902 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13903 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13904 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13907 case $cc_basename in
13909 output_verbose_link_cmd='echo'
13910 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13911 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13913 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13914 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13924 case $cc_basename in
13926 # FIXME: insert proper C++ library support
13930 # Green Hills C++ Compiler
13931 # FIXME: insert proper C++ library support
13935 # FIXME: insert proper C++ library support
13941 # C++ shared libraries reported to be fairly broken before switch to ELF
13945 archive_cmds_need_lc_CXX=no
13947 freebsd* | dragonfly*)
13948 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13955 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13956 hardcode_libdir_separator_CXX=:
13957 export_dynamic_flag_spec_CXX='${wl}-E'
13958 hardcode_direct_CXX=yes
13959 hardcode_minus_L_CXX=yes # Not in the search PATH,
13960 # but as the default
13961 # location of the library.
13963 case $cc_basename in
13965 # FIXME: insert proper C++ library support
13969 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13970 # Commands to make compiler produce verbose output that lists
13971 # what "hidden" libraries, object files and flags are used when
13972 # linking a shared library.
13974 # There doesn't appear to be a way to prevent this compiler from
13975 # explicitly linking system object files so we need to strip them
13976 # from the output so that they don't get included in the library
13978 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13981 if test "$GXX" = yes; then
13982 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13984 # FIXME: insert proper C++ library support
13991 if test $with_gnu_ld = no; then
13992 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13993 hardcode_libdir_separator_CXX=:
13998 export_dynamic_flag_spec_CXX='${wl}-E'
14004 hardcode_direct_CXX=no
14005 hardcode_shlibpath_var_CXX=no
14008 hardcode_direct_CXX=yes
14009 hardcode_minus_L_CXX=yes # Not in the search PATH,
14010 # but as the default
14011 # location of the library.
14015 case $cc_basename in
14017 # FIXME: insert proper C++ library support
14023 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14026 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14029 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14032 # Commands to make compiler produce verbose output that lists
14033 # what "hidden" libraries, object files and flags are used when
14034 # linking a shared library.
14036 # There doesn't appear to be a way to prevent this compiler from
14037 # explicitly linking system object files so we need to strip them
14038 # from the output so that they don't get included in the library
14040 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14043 if test "$GXX" = yes; then
14044 if test $with_gnu_ld = no; then
14047 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14050 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14053 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14058 # FIXME: insert proper C++ library support
14065 hardcode_direct_CXX=no
14066 hardcode_shlibpath_var_CXX=no
14067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14068 export_dynamic_flag_spec_CXX='${wl}-E'
14069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14070 # Instead, shared libraries are loaded at an image base (0x10000000 by
14071 # default) and relocated if they conflict, which is a slow very memory
14072 # consuming and fragmenting process. To avoid this, we pick a random,
14073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14075 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14076 archive_expsym_cmds_CXX='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'
14079 case $cc_basename in
14082 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14084 # Archives containing C++ object files must be created using
14085 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14086 # necessary to make sure instantiated templates are included
14088 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14091 if test "$GXX" = yes; then
14092 if test "$with_gnu_ld" = no; then
14093 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14095 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14098 link_all_deplibs_CXX=yes
14101 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14102 hardcode_libdir_separator_CXX=:
14104 linux* | k*bsd*-gnu)
14105 case $cc_basename in
14107 # Kuck and Associates, Inc. (KAI) C++ Compiler
14109 # KCC will only create a shared library if the output file
14110 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14111 # to its proper name (with version) after linking.
14112 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14113 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14114 # Commands to make compiler produce verbose output that lists
14115 # what "hidden" libraries, object files and flags are used when
14116 # linking a shared library.
14118 # There doesn't appear to be a way to prevent this compiler from
14119 # explicitly linking system object files so we need to strip them
14120 # from the output so that they don't get included in the library
14122 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14124 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14127 # Archives containing C++ object files must be created using
14128 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14129 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14134 # version 8.0 and above of icpc choke on multiply defined symbols
14135 # if we add $predep_objects and $postdep_objects, however 7.1 and
14136 # earlier do not add the objects themselves.
14137 case `$CC -V 2>&1` in
14139 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14140 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14142 *) # Version 8.0 or newer
14145 ia64*) tmp_idyn=' -i_dynamic';;
14147 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14148 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14151 archive_cmds_need_lc_CXX=no
14152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14153 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14154 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14157 # Portland Group C++ compiler
14158 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14159 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14161 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14162 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14163 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14167 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14170 runpath_var=LD_RUN_PATH
14171 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14172 hardcode_libdir_separator_CXX=:
14174 # Commands to make compiler produce verbose output that lists
14175 # what "hidden" libraries, object files and flags are used when
14176 # linking a shared library.
14178 # There doesn't appear to be a way to prevent this compiler from
14179 # explicitly linking system object files so we need to strip them
14180 # from the output so that they don't get included in the library
14182 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14185 case `$CC -V 2>&1 | sed 5q` in
14188 no_undefined_flag_CXX=' -zdefs'
14189 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14190 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14191 hardcode_libdir_flag_spec_CXX='-R$libdir'
14192 whole_archive_flag_spec_CXX='${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'
14194 # Not sure whether something based on
14195 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14197 output_verbose_link_cmd='echo'
14199 # Archives containing C++ object files must be created using
14200 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14201 # necessary to make sure instantiated templates are included
14203 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14210 # FIXME: insert proper C++ library support
14214 # FIXME: insert proper C++ library support
14218 case $cc_basename in
14220 # FIXME: insert proper C++ library support
14224 # FIXME: insert proper C++ library support
14230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14231 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14233 hardcode_libdir_flag_spec_CXX='-R$libdir'
14234 hardcode_direct_CXX=yes
14235 hardcode_shlibpath_var_CXX=no
14237 # Workaround some broken pre-1.5 toolchains
14238 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14241 # C++ shared libraries are fairly broken
14245 if test -f /usr/libexec/ld.so; then
14246 hardcode_direct_CXX=yes
14247 hardcode_shlibpath_var_CXX=no
14248 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14249 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14251 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14252 export_dynamic_flag_spec_CXX='${wl}-E'
14253 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14255 output_verbose_link_cmd='echo'
14261 case $cc_basename in
14263 # Kuck and Associates, Inc. (KAI) C++ Compiler
14265 # KCC will only create a shared library if the output file
14266 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14267 # to its proper name (with version) after linking.
14268 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14271 hardcode_libdir_separator_CXX=:
14273 # Archives containing C++ object files must be created using
14274 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14275 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14279 # Rational C++ 2.4.1
14280 # FIXME: insert proper C++ library support
14284 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14285 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14287 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14288 hardcode_libdir_separator_CXX=:
14290 # Commands to make compiler produce verbose output that lists
14291 # what "hidden" libraries, object files and flags are used when
14292 # linking a shared library.
14294 # There doesn't appear to be a way to prevent this compiler from
14295 # explicitly linking system object files so we need to strip them
14296 # from the output so that they don't get included in the library
14298 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14301 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14302 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14303 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14306 hardcode_libdir_separator_CXX=:
14308 # Commands to make compiler produce verbose output that lists
14309 # what "hidden" libraries, object files and flags are used when
14310 # linking a shared library.
14311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14314 # FIXME: insert proper C++ library support
14321 case $cc_basename in
14323 # Kuck and Associates, Inc. (KAI) C++ Compiler
14325 # KCC will only create a shared library if the output file
14326 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14327 # to its proper name (with version) after linking.
14328 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14331 hardcode_libdir_separator_CXX=:
14333 # Archives containing C++ object files must be created using
14334 # the KAI C++ compiler.
14335 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14338 # Rational C++ 2.4.1
14339 # FIXME: insert proper C++ library support
14343 allow_undefined_flag_CXX=' -expect_unresolved \*'
14344 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14345 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14346 echo "-hidden">> $lib.exp~
14347 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
14350 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14351 hardcode_libdir_separator_CXX=:
14353 # Commands to make compiler produce verbose output that lists
14354 # what "hidden" libraries, object files and flags are used when
14355 # linking a shared library.
14357 # There doesn't appear to be a way to prevent this compiler from
14358 # explicitly linking system object files so we need to strip them
14359 # from the output so that they don't get included in the library
14361 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14364 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14365 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14366 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14368 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14369 hardcode_libdir_separator_CXX=:
14371 # Commands to make compiler produce verbose output that lists
14372 # what "hidden" libraries, object files and flags are used when
14373 # linking a shared library.
14374 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14377 # FIXME: insert proper C++ library support
14384 # FIXME: insert proper C++ library support
14388 case $cc_basename in
14391 # FIXME: insert proper C++ library support
14396 # FIXME: insert proper C++ library support
14400 # FIXME: insert proper C++ library support
14406 case $cc_basename in
14408 # Sun C++ 4.2, 5.x and Centerline C++
14409 archive_cmds_need_lc_CXX=yes
14410 no_undefined_flag_CXX=' -zdefs'
14411 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14412 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14413 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14415 hardcode_libdir_flag_spec_CXX='-R$libdir'
14416 hardcode_shlibpath_var_CXX=no
14418 solaris2.[0-5] | solaris2.[0-5].*) ;;
14420 # The compiler driver will combine and reorder linker options,
14421 # but understands `-z linker_flag'.
14422 # Supported since Solaris 2.6 (maybe 2.5.1?)
14423 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14426 link_all_deplibs_CXX=yes
14428 output_verbose_link_cmd='echo'
14430 # Archives containing C++ object files must be created using
14431 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14432 # necessary to make sure instantiated templates are included
14434 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14437 # Green Hills C++ Compiler
14438 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14440 # The C++ compiler must be used to create the archive.
14441 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14444 # GNU C++ compiler with Solaris linker
14445 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14446 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14447 if $CC --version | grep -v '^2\.7' > /dev/null; then
14448 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14449 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14450 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14452 # Commands to make compiler produce verbose output that lists
14453 # what "hidden" libraries, object files and flags are used when
14454 # linking a shared library.
14455 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14457 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14459 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14460 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14461 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14463 # Commands to make compiler produce verbose output that lists
14464 # what "hidden" libraries, object files and flags are used when
14465 # linking a shared library.
14466 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14469 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14471 solaris2.[0-5] | solaris2.[0-5].*) ;;
14473 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14481 no_undefined_flag_CXX='${wl}-z,text'
14482 archive_cmds_need_lc_CXX=no
14483 hardcode_shlibpath_var_CXX=no
14484 runpath_var='LD_RUN_PATH'
14486 case $cc_basename in
14488 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14497 sysv5* | sco3.2v5* | sco5v6*)
14498 # Note: We can NOT use -z defs as we might desire, because we do not
14499 # link with -lc, and that would cause any symbols used from libc to
14500 # always be unresolved, which means just about no library would
14501 # ever link correctly. If we're not using GNU ld we use -z text
14502 # though, which does catch some bad symbols but isn't as heavy-handed
14504 # For security reasons, it is highly recommended that you always
14505 # use absolute paths for naming shared libraries, and exclude the
14506 # DT_RUNPATH tag from executables and libraries. But doing so
14507 # requires that you compile everything twice, which is a pain.
14508 # So that behaviour is only enabled if SCOABSPATH is set to a
14509 # non-empty value in the environment. Most likely only useful for
14510 # creating official distributions of packages.
14511 # This is a hack until libtool officially supports absolute path
14512 # names for shared libraries.
14513 no_undefined_flag_CXX='${wl}-z,text'
14514 allow_undefined_flag_CXX='${wl}-z,nodefs'
14515 archive_cmds_need_lc_CXX=no
14516 hardcode_shlibpath_var_CXX=no
14517 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14518 hardcode_libdir_separator_CXX=':'
14519 link_all_deplibs_CXX=yes
14520 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14521 runpath_var='LD_RUN_PATH'
14523 case $cc_basename in
14525 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14526 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14529 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14535 case $cc_basename in
14537 # NonStop-UX NCC 3.20
14538 # FIXME: insert proper C++ library support
14542 # FIXME: insert proper C++ library support
14548 # FIXME: insert proper C++ library support
14552 # FIXME: insert proper C++ library support
14556 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14557 $as_echo "$ld_shlibs_CXX" >&6; }
14558 test "$ld_shlibs_CXX" = no && can_build_shared=no
14563 cat > conftest.$ac_ext <<EOF
14567 Foo (void) { a = 0; }
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>&5
14576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; then
14578 # Parse the compiler output and extract the necessary
14579 # objects, libraries and library flags.
14581 # Sentinel used to keep track of whether or not we are before
14582 # the conftest object file.
14583 pre_test_object_deps_done=no
14585 # The `*' in the case matches for architectures that use `case' in
14586 # $output_verbose_cmd can trigger glob expansion during the loop
14587 # eval without this substitution.
14588 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14590 for p in `eval $output_verbose_link_cmd`; do
14594 # Some compilers place space between "-{L,R}" and the path.
14595 # Remove the space.
14596 if test $p = "-L" \
14597 || test $p = "-R"; then
14604 if test "$pre_test_object_deps_done" = no; then
14607 # Internal compiler library paths should come after those
14608 # provided the user. The postdeps already come after the
14609 # user supplied libs so there is no need to process them.
14610 if test -z "$compiler_lib_search_path_CXX"; then
14611 compiler_lib_search_path_CXX="${prev}${p}"
14613 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14616 # The "-l" case would never come before the object being
14617 # linked, so don't bother handling this case.
14620 if test -z "$postdeps_CXX"; then
14621 postdeps_CXX="${prev}${p}"
14623 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14629 # This assumes that the test object file only shows up
14630 # once in the compiler output.
14631 if test "$p" = "conftest.$objext"; then
14632 pre_test_object_deps_done=yes
14636 if test "$pre_test_object_deps_done" = no; then
14637 if test -z "$predep_objects_CXX"; then
14638 predep_objects_CXX="$p"
14640 predep_objects_CXX="$predep_objects_CXX $p"
14643 if test -z "$postdep_objects_CXX"; then
14644 postdep_objects_CXX="$p"
14646 postdep_objects_CXX="$postdep_objects_CXX $p"
14651 *) ;; # Ignore the rest.
14659 echo "libtool.m4: error: problem compiling CXX test program"
14662 $rm -f confest.$objext
14664 compiler_lib_search_dirs_CXX=
14665 if test -n "$compiler_lib_search_path_CXX"; then
14666 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14669 # PORTME: override above test on systems where it is broken
14672 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14673 # hack all around it, let's just trust "g++" to DTRT.
14674 predep_objects_CXX=
14675 postdep_objects_CXX=
14680 case `$CC -V 2>&1 | sed 5q` in
14684 # The more standards-conforming stlport4 library is
14685 # incompatible with the Cstd library. Avoid specifying
14686 # it if it's in CXXFLAGS. Ignore libCrun as
14687 # -library=stlport4 depends on it.
14688 case " $CXX $CXXFLAGS " in
14689 *" -library=stlport4 "*)
14690 solaris_use_stlport4=yes
14693 if test "$solaris_use_stlport4" != yes; then
14694 postdeps_CXX='-library=Cstd -library=Crun'
14701 case $cc_basename in
14703 # The more standards-conforming stlport4 library is
14704 # incompatible with the Cstd library. Avoid specifying
14705 # it if it's in CXXFLAGS. Ignore libCrun as
14706 # -library=stlport4 depends on it.
14707 case " $CXX $CXXFLAGS " in
14708 *" -library=stlport4 "*)
14709 solaris_use_stlport4=yes
14713 # Adding this requires a known-good setup of shared libraries for
14714 # Sun compiler versions before 5.6, else PIC objects from an old
14715 # archive will be linked into the output, leading to subtle bugs.
14716 if test "$solaris_use_stlport4" != yes; then
14717 postdeps_CXX='-library=Cstd -library=Crun'
14724 case " $postdeps_CXX " in
14725 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14728 lt_prog_compiler_wl_CXX=
14729 lt_prog_compiler_pic_CXX=
14730 lt_prog_compiler_static_CXX=
14732 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14733 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14735 # C++ specific cases for pic, static, wl, etc.
14736 if test "$GXX" = yes; then
14737 lt_prog_compiler_wl_CXX='-Wl,'
14738 lt_prog_compiler_static_CXX='-static'
14742 # All AIX code is PIC.
14743 if test "$host_cpu" = ia64; then
14744 # AIX 5 now supports IA64 processor
14745 lt_prog_compiler_static_CXX='-Bstatic'
14749 # FIXME: we need at least 68020 code to build shared libraries, but
14750 # adding the `-m68020' flag to GCC prevents building anything better,
14752 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14755 # PIC is the default for these OSes.
14757 mingw* | cygwin* | os2* | pw32*)
14758 # This hack is so that the source file can tell whether it is being
14759 # built for inclusion in a dll (and should export symbols for example).
14760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14761 # (--disable-auto-import) libraries
14762 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14764 darwin* | rhapsody*)
14765 # PIC is the default on this platform
14766 # Common symbols not allowed in MH_DYLIB files
14767 lt_prog_compiler_pic_CXX='-fno-common'
14770 # DJGPP does not support shared libraries at all
14771 lt_prog_compiler_pic_CXX=
14774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14775 # Instead, we relocate shared libraries at runtime.
14778 if test -d /usr/nec; then
14779 lt_prog_compiler_pic_CXX=-Kconform_pic
14783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784 # not for PA HP-UX.
14789 lt_prog_compiler_pic_CXX='-fPIC'
14794 lt_prog_compiler_pic_CXX='-fPIC'
14800 # All AIX code is PIC.
14801 if test "$host_cpu" = ia64; then
14802 # AIX 5 now supports IA64 processor
14803 lt_prog_compiler_static_CXX='-Bstatic'
14805 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14809 case $cc_basename in
14811 # Green Hills C++ Compiler
14812 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14817 # PIC is the default on this platform
14818 # Common symbols not allowed in MH_DYLIB files
14819 case $cc_basename in
14821 lt_prog_compiler_pic_CXX='-qnocommon'
14822 lt_prog_compiler_wl_CXX='-Wl,'
14827 case $cc_basename in
14829 lt_prog_compiler_pic_CXX='-KPIC'
14832 # Green Hills C++ Compiler
14833 lt_prog_compiler_pic_CXX='-pic'
14839 freebsd* | dragonfly*)
14840 # FreeBSD uses GNU C++
14842 hpux9* | hpux10* | hpux11*)
14843 case $cc_basename in
14845 lt_prog_compiler_wl_CXX='-Wl,'
14846 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14847 if test "$host_cpu" != ia64; then
14848 lt_prog_compiler_pic_CXX='+Z'
14852 lt_prog_compiler_wl_CXX='-Wl,'
14853 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14859 lt_prog_compiler_pic_CXX='+Z'
14868 # This is c89, which is MS Visual C++ (no shared libs)
14869 # Anyone wants to do a port?
14871 irix5* | irix6* | nonstopux*)
14872 case $cc_basename in
14874 lt_prog_compiler_wl_CXX='-Wl,'
14875 lt_prog_compiler_static_CXX='-non_shared'
14876 # CC pic flag -KPIC is the default.
14882 linux* | k*bsd*-gnu)
14883 case $cc_basename in
14886 lt_prog_compiler_wl_CXX='--backend -Wl,'
14887 lt_prog_compiler_pic_CXX='-fPIC'
14891 lt_prog_compiler_wl_CXX='-Wl,'
14892 lt_prog_compiler_pic_CXX='-KPIC'
14893 lt_prog_compiler_static_CXX='-static'
14896 # Portland Group C++ compiler.
14897 lt_prog_compiler_wl_CXX='-Wl,'
14898 lt_prog_compiler_pic_CXX='-fpic'
14899 lt_prog_compiler_static_CXX='-Bstatic'
14903 # Make sure the PIC flag is empty. It appears that all Alpha
14904 # Linux and Compaq Tru64 Unix objects are PIC.
14905 lt_prog_compiler_pic_CXX=
14906 lt_prog_compiler_static_CXX='-non_shared'
14909 case `$CC -V 2>&1 | sed 5q` in
14912 lt_prog_compiler_pic_CXX='-KPIC'
14913 lt_prog_compiler_static_CXX='-Bstatic'
14914 lt_prog_compiler_wl_CXX='-Qoption ld '
14925 case $cc_basename in
14927 lt_prog_compiler_pic_CXX='-W c,exportall'
14935 osf3* | osf4* | osf5*)
14936 case $cc_basename in
14938 lt_prog_compiler_wl_CXX='--backend -Wl,'
14941 # Rational C++ 2.4.1
14942 lt_prog_compiler_pic_CXX='-pic'
14945 # Digital/Compaq C++
14946 lt_prog_compiler_wl_CXX='-Wl,'
14947 # Make sure the PIC flag is empty. It appears that all Alpha
14948 # Linux and Compaq Tru64 Unix objects are PIC.
14949 lt_prog_compiler_pic_CXX=
14950 lt_prog_compiler_static_CXX='-non_shared'
14959 case $cc_basename in
14961 # Sun C++ 4.2, 5.x and Centerline C++
14962 lt_prog_compiler_pic_CXX='-KPIC'
14963 lt_prog_compiler_static_CXX='-Bstatic'
14964 lt_prog_compiler_wl_CXX='-Qoption ld '
14967 # Green Hills C++ Compiler
14968 lt_prog_compiler_pic_CXX='-PIC'
14975 case $cc_basename in
14978 lt_prog_compiler_pic_CXX='-pic'
14979 lt_prog_compiler_static_CXX='-Bstatic'
14983 lt_prog_compiler_pic_CXX='-pic'
14990 case $cc_basename in
14992 # NonStop-UX NCC 3.20
14993 lt_prog_compiler_pic_CXX='-KPIC'
14999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15000 case $cc_basename in
15002 lt_prog_compiler_wl_CXX='-Wl,'
15003 lt_prog_compiler_pic_CXX='-KPIC'
15004 lt_prog_compiler_static_CXX='-Bstatic'
15011 lt_prog_compiler_can_build_shared_CXX=no
15016 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15017 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15020 # Check to make sure the PIC flag actually works.
15022 if test -n "$lt_prog_compiler_pic_CXX"; then
15024 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15026 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15027 $as_echo_n "(cached) " >&6
15029 lt_cv_prog_compiler_pic_works_CXX=no
15030 ac_outfile=conftest.$ac_objext
15031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15032 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15033 # Insert the option either (1) after the last *FLAGS variable, or
15034 # (2) before a word containing "conftest.", or (3) at the end.
15035 # Note that $ac_compile itself does not contain backslashes and begins
15036 # with a dollar sign (not a hyphen), so the echo should work correctly.
15037 # The option is referenced via a variable to avoid confusing sed.
15038 lt_compile=`echo "$ac_compile" | $SED \
15039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15041 -e 's:$: $lt_compiler_flag:'`
15042 (eval echo "\"\$as_me:15042: $lt_compile\"" >&5)
15043 (eval "$lt_compile" 2>conftest.err)
15045 cat conftest.err >&5
15046 echo "$as_me:15046: \$? = $ac_status" >&5
15047 if (exit $ac_status) && test -s "$ac_outfile"; then
15048 # The compiler can only warn and ignore the option if not recognized
15049 # So say no if there are warnings other than the usual output.
15050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15053 lt_cv_prog_compiler_pic_works_CXX=yes
15059 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15060 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15062 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15063 case $lt_prog_compiler_pic_CXX in
15065 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15068 lt_prog_compiler_pic_CXX=
15069 lt_prog_compiler_can_build_shared_CXX=no
15074 # For platforms which do not support PIC, -DPIC is meaningless:
15076 lt_prog_compiler_pic_CXX=
15079 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15084 # Check to make sure the static flag actually works.
15086 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15087 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15088 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15089 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15090 $as_echo_n "(cached) " >&6
15092 lt_cv_prog_compiler_static_works_CXX=no
15093 save_LDFLAGS="$LDFLAGS"
15094 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15095 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15096 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15097 # The linker can only warn and ignore the option if not recognized
15098 # So say no if there are warnings
15099 if test -s conftest.err; then
15100 # Append any errors to the config.log.
15101 cat conftest.err 1>&5
15102 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15104 if diff conftest.exp conftest.er2 >/dev/null; then
15105 lt_cv_prog_compiler_static_works_CXX=yes
15108 lt_cv_prog_compiler_static_works_CXX=yes
15112 LDFLAGS="$save_LDFLAGS"
15115 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15116 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15118 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15121 lt_prog_compiler_static_CXX=
15125 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15127 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15128 $as_echo_n "(cached) " >&6
15130 lt_cv_prog_compiler_c_o_CXX=no
15131 $rm -r conftest 2>/dev/null
15135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15137 lt_compiler_flag="-o out/conftest2.$ac_objext"
15138 # Insert the option either (1) after the last *FLAGS variable, or
15139 # (2) before a word containing "conftest.", or (3) at the end.
15140 # Note that $ac_compile itself does not contain backslashes and begins
15141 # with a dollar sign (not a hyphen), so the echo should work correctly.
15142 lt_compile=`echo "$ac_compile" | $SED \
15143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15145 -e 's:$: $lt_compiler_flag:'`
15146 (eval echo "\"\$as_me:15146: $lt_compile\"" >&5)
15147 (eval "$lt_compile" 2>out/conftest.err)
15149 cat out/conftest.err >&5
15150 echo "$as_me:15150: \$? = $ac_status" >&5
15151 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15153 # The compiler can only warn and ignore the option if not recognized
15154 # So say no if there are warnings
15155 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15156 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15157 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15158 lt_cv_prog_compiler_c_o_CXX=yes
15163 # SGI C++ compiler will create directory out/ii_files/ for
15164 # template instantiation
15165 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15166 $rm out/* && rmdir out
15172 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15173 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15176 hard_links="nottested"
15177 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15178 # do not overwrite the value of need_locks provided by the user
15179 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15180 $as_echo_n "checking if we can lock with hard links... " >&6; }
15183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15185 ln conftest.a conftest.b 2>&5 || hard_links=no
15186 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15187 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15188 $as_echo "$hard_links" >&6; }
15189 if test "$hard_links" = no; then
15190 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15191 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15198 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15199 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15201 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15204 # If we're using GNU nm, then we don't want the "-C" option.
15205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15206 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15207 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15209 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15213 export_symbols_cmds_CXX="$ltdll_cmds"
15216 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15219 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15222 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15224 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15225 $as_echo "$ld_shlibs_CXX" >&6; }
15226 test "$ld_shlibs_CXX" = no && can_build_shared=no
15229 # Do we need to explicitly link libc?
15231 case "x$archive_cmds_need_lc_CXX" in
15233 # Assume -lc should be added
15234 archive_cmds_need_lc_CXX=yes
15236 if test "$enable_shared" = yes && test "$GCC" = yes; then
15237 case $archive_cmds_CXX in
15239 # FIXME: we may have to deal with multi-command sequences.
15242 # Test whether the compiler implicitly links with -lc since on some
15243 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15244 # to ld, don't add -lc before -lgcc.
15245 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15246 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251 (eval $ac_compile) 2>&5
15253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } 2>conftest.err; then
15257 libobjs=conftest.$ac_objext
15259 wl=$lt_prog_compiler_wl_CXX
15260 pic_flag=$lt_prog_compiler_pic_CXX
15266 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15267 allow_undefined_flag_CXX=
15268 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15269 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }
15274 archive_cmds_need_lc_CXX=no
15276 archive_cmds_need_lc_CXX=yes
15278 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15280 cat conftest.err 1>&5
15283 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15284 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15291 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15292 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15293 library_names_spec=
15294 libname_spec='lib$name'
15298 postuninstall_cmds=
15302 shlibpath_overrides_runpath=unknown
15304 dynamic_linker="$host_os ld.so"
15305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15307 need_lib_prefix=unknown
15308 hardcode_into_libs=no
15310 # when you set need_version to no, make sure it does not cause -set_version
15311 # flags to be left without arguments
15312 need_version=unknown
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15318 shlibpath_var=LIBPATH
15320 # AIX 3 has no versioning support, so we append a major version to the name.
15321 soname_spec='${libname}${release}${shared_ext}$major'
15328 hardcode_into_libs=yes
15329 if test "$host_cpu" = ia64; then
15330 # AIX 5 supports IA64
15331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15332 shlibpath_var=LD_LIBRARY_PATH
15334 # With GCC up to 2.95.x, collect2 would create an import file
15335 # for dependence libraries. The import file would start with
15336 # the line `#! .'. This would cause the generated library to
15337 # depend on `.', always an invalid library. This was fixed in
15338 # development snapshots of GCC prior to 3.0.
15340 aix4 | aix4.[01] | aix4.[01].*)
15341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15346 can_build_shared=no
15350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15351 # soname into executable. Probably we can add versioning support to
15352 # collect2, so additional links can be useful in future.
15353 if test "$aix_use_runtimelinking" = yes; then
15354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15355 # instead of lib<name>.a to let people know that these are not
15356 # typical AIX shared libraries.
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 # We preserve .a as extension for shared libraries through AIX4.2
15360 # and later when we are not doing run time linking.
15361 library_names_spec='${libname}${release}.a $libname.a'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15364 shlibpath_var=LIBPATH
15369 library_names_spec='$libname.ixlibrary $libname.a'
15370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15371 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'
15375 library_names_spec='${libname}${shared_ext}'
15376 dynamic_linker="$host_os ld.so"
15377 shlibpath_var=LIBRARY_PATH
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15389 # the default ld.so.conf also contains /usr/contrib/lib and
15390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15391 # libtool to hard-code these into programs
15394 cygwin* | mingw* | pw32*)
15395 version_type=windows
15400 case $GCC,$host_os in
15401 yes,cygwin* | yes,mingw* | yes,pw32*)
15402 library_names_spec='$libname.dll.a'
15403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15404 postinstall_cmds='base_file=`basename \${file}`~
15405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15406 dldir=$destdir/`dirname \$dlpath`~
15407 test -d \$dldir || mkdir -p \$dldir~
15408 $install_prog $dir/$dlname \$dldir/$dlname~
15409 chmod a+x \$dldir/$dlname'
15410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15411 dlpath=$dir/\$dldll~
15413 shlibpath_overrides_runpath=yes
15417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15419 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15422 # MinGW DLLs use traditional 'lib' prefix
15423 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15425 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15426 # It is most probably a Windows format PATH printed by
15427 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15428 # path with ; separators, and with drive letters. We can handle the
15429 # drive letters (cygwin fileutils understands them), so leave them,
15430 # especially as we might pass files found there to a mingw objdump,
15431 # which wouldn't understand a cygwinified path. Ahh.
15432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15438 # pw32 DLLs use 'pw' prefix rather than 'lib'
15439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15445 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15448 dynamic_linker='Win32 ld.exe'
15449 # FIXME: first we should search . and the directory the executable is in
15453 darwin* | rhapsody*)
15454 dynamic_linker="$host_os dyld"
15455 version_type=darwin
15458 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15459 soname_spec='${libname}${release}${major}$shared_ext'
15460 shlibpath_overrides_runpath=yes
15461 shlibpath_var=DYLD_LIBRARY_PATH
15462 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 shlibpath_var=LD_LIBRARY_PATH
15480 freebsd* | dragonfly*)
15481 # DragonFly does not have aout. When/if they implement a new
15482 # versioning mechanism, adjust this.
15483 if test -x /usr/bin/objformat; then
15484 objformat=`/usr/bin/objformat`
15487 freebsd[123]*) objformat=aout ;;
15488 *) objformat=elf ;;
15491 version_type=freebsd-$objformat
15492 case $version_type in
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15503 shlibpath_var=LD_LIBRARY_PATH
15506 shlibpath_overrides_runpath=yes
15508 freebsd3.[01]* | freebsdelf3.[01]*)
15509 shlibpath_overrides_runpath=yes
15510 hardcode_into_libs=yes
15512 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15513 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15514 shlibpath_overrides_runpath=no
15515 hardcode_into_libs=yes
15517 *) # from 4.6 on, and DragonFly
15518 shlibpath_overrides_runpath=yes
15519 hardcode_into_libs=yes
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 hardcode_into_libs=yes
15534 hpux9* | hpux10* | hpux11*)
15535 # Give a soname corresponding to the major version so that dld.sl refuses to
15536 # link against other versions.
15543 hardcode_into_libs=yes
15544 dynamic_linker="$host_os dld.so"
15545 shlibpath_var=LD_LIBRARY_PATH
15546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 if test "X$HPUX_IA64_MODE" = X32; then
15550 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15558 hardcode_into_libs=yes
15559 dynamic_linker="$host_os dld.sl"
15560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15569 dynamic_linker="$host_os dld.sl"
15570 shlibpath_var=SHLIB_PATH
15571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15576 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15577 postinstall_cmds='chmod 555 $lib'
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15586 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=no
15589 hardcode_into_libs=yes
15592 irix5* | irix6* | nonstopux*)
15594 nonstopux*) version_type=nonstopux ;;
15596 if test "$lt_cv_prog_gnu_ld" = yes; then
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15607 irix5* | nonstopux*)
15608 libsuff= shlibsuff=
15611 case $LD in # libtool.m4 will add one of these switches to LD
15612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15613 libsuff= shlibsuff= libmagic=32-bit;;
15614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15615 libsuff=32 shlibsuff=N32 libmagic=N32;;
15616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15617 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15618 *) libsuff= shlibsuff= libmagic=never-match;;
15622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15623 shlibpath_overrides_runpath=no
15624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15626 hardcode_into_libs=yes
15629 # No shared lib support for Linux oldld, aout, or coff.
15630 linux*oldld* | linux*aout* | linux*coff*)
15634 # This must be Linux ELF.
15635 linux* | k*bsd*-gnu)
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 shlibpath_overrides_runpath=no
15644 # This implies no fast_install, which is unacceptable.
15645 # Some rework will be needed to allow for fast_install
15646 # before this can be enabled.
15647 hardcode_into_libs=yes
15648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15651 # Append ld.so.conf contents to the search path
15652 if test -f /etc/ld.so.conf; then
15653 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' ' '`
15654 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15657 # We used to test for /lib/ld.so.1 and disable shared libraries on
15658 # powerpc, because MkLinux only supported shared libraries with the
15659 # GNU dynamic linker. Since this was broken with cross compilers,
15660 # most powerpc-linux boxes support dynamic linking these days and
15661 # people can always --disable-shared, the test was removed, and we
15662 # assume the GNU/Linux dynamic linker is in use.
15663 dynamic_linker='GNU/Linux ld.so'
15670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15673 dynamic_linker='NetBSD (a.out) ld.so'
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 dynamic_linker='NetBSD ld.elf_so'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 shlibpath_overrides_runpath=yes
15681 hardcode_into_libs=yes
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 shlibpath_overrides_runpath=yes
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696 soname_spec='${libname}${release}${shared_ext}$major'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=yes
15703 sys_lib_dlsearch_path_spec="/usr/lib"
15705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15707 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15708 *) need_version=no ;;
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715 openbsd2.[89] | openbsd2.[89].*)
15716 shlibpath_overrides_runpath=no
15719 shlibpath_overrides_runpath=yes
15723 shlibpath_overrides_runpath=yes
15728 libname_spec='$name'
15731 library_names_spec='$libname${shared_ext} $libname.a'
15732 dynamic_linker='OS/2 ld.exe'
15733 shlibpath_var=LIBPATH
15736 osf3* | osf4* | osf5*)
15740 soname_spec='${libname}${release}${shared_ext}$major'
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 shlibpath_var=LD_LIBRARY_PATH
15758 shlibpath_overrides_runpath=yes
15759 hardcode_into_libs=yes
15760 # ldd complains unless libraries are executable
15761 postinstall_cmds='chmod +x $lib'
15766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 shlibpath_overrides_runpath=yes
15770 if test "$with_gnu_ld" = yes; then
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 case $host_vendor in
15783 shlibpath_overrides_runpath=no
15785 export_dynamic_flag_spec='${wl}-Blargedynsym'
15786 runpath_var=LD_RUN_PATH
15794 shlibpath_overrides_runpath=no
15795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15801 if test -d /usr/nec ;then
15803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15804 soname_spec='$libname${shared_ext}.$major'
15805 shlibpath_var=LD_LIBRARY_PATH
15809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15810 version_type=freebsd-elf
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 hardcode_into_libs=yes
15817 if test "$with_gnu_ld" = yes; then
15818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15819 shlibpath_overrides_runpath=no
15821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15822 shlibpath_overrides_runpath=yes
15825 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15829 sys_lib_dlsearch_path_spec='/usr/lib'
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15843 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15844 $as_echo "$dynamic_linker" >&6; }
15845 test "$dynamic_linker" = no && can_build_shared=no
15847 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15848 $as_echo_n "(cached) " >&6
15850 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15853 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15854 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15855 $as_echo_n "(cached) " >&6
15857 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15860 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15862 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15863 if test "$GCC" = yes; then
15864 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15867 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15868 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15869 hardcode_action_CXX=
15870 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15871 test -n "$runpath_var_CXX" || \
15872 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15874 # We can hardcode non-existant directories.
15875 if test "$hardcode_direct_CXX" != no &&
15876 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15877 # have to relink, otherwise we might link with an installed library
15878 # when we should be linking with a yet-to-be-installed one
15879 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15880 test "$hardcode_minus_L_CXX" != no; then
15881 # Linking always hardcodes the temporary library directory.
15882 hardcode_action_CXX=relink
15884 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15885 hardcode_action_CXX=immediate
15888 # We cannot hardcode anything, or else we can only hardcode existing
15890 hardcode_action_CXX=unsupported
15892 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15893 $as_echo "$hardcode_action_CXX" >&6; }
15895 if test "$hardcode_action_CXX" = relink; then
15896 # Fast installation is not supported
15897 enable_fast_install=no
15898 elif test "$shlibpath_overrides_runpath" = yes ||
15899 test "$enable_shared" = no; then
15900 # Fast installation is not necessary
15901 enable_fast_install=needless
15905 # The else clause should only fire when bootstrapping the
15906 # libtool distribution, otherwise you forgot to ship ltmain.sh
15907 # with your package, and you will get complaints that there are
15908 # no rules to generate ltmain.sh.
15909 if test -f "$ltmain"; then
15910 # See if we are running on zsh, and set the options which allow our commands through
15911 # without removal of \ escapes.
15912 if test -n "${ZSH_VERSION+set}" ; then
15913 setopt NO_GLOB_SUBST
15915 # Now quote all the things that may contain metacharacters while being
15916 # careful not to overquote the AC_SUBSTed values. We take copies of the
15917 # variables and quote the copies for generation of the libtool script.
15918 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15920 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15921 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15922 deplibs_check_method reload_flag reload_cmds need_locks \
15923 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15924 lt_cv_sys_global_symbol_to_c_name_address \
15925 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15926 old_postinstall_cmds old_postuninstall_cmds \
15930 lt_prog_compiler_wl_CXX \
15931 lt_prog_compiler_pic_CXX \
15932 lt_prog_compiler_static_CXX \
15933 lt_prog_compiler_no_builtin_flag_CXX \
15934 export_dynamic_flag_spec_CXX \
15935 thread_safe_flag_spec_CXX \
15936 whole_archive_flag_spec_CXX \
15937 enable_shared_with_static_runtimes_CXX \
15938 old_archive_cmds_CXX \
15939 old_archive_from_new_cmds_CXX \
15940 predep_objects_CXX \
15941 postdep_objects_CXX \
15944 compiler_lib_search_path_CXX \
15945 compiler_lib_search_dirs_CXX \
15947 archive_expsym_cmds_CXX \
15948 postinstall_cmds_CXX \
15949 postuninstall_cmds_CXX \
15950 old_archive_from_expsyms_cmds_CXX \
15951 allow_undefined_flag_CXX \
15952 no_undefined_flag_CXX \
15953 export_symbols_cmds_CXX \
15954 hardcode_libdir_flag_spec_CXX \
15955 hardcode_libdir_flag_spec_ld_CXX \
15956 hardcode_libdir_separator_CXX \
15957 hardcode_automatic_CXX \
15959 module_expsym_cmds_CXX \
15960 lt_cv_prog_compiler_c_o_CXX \
15961 fix_srcfile_path_CXX \
15962 exclude_expsyms_CXX \
15963 include_expsyms_CXX; do
15966 old_archive_cmds_CXX | \
15967 old_archive_from_new_cmds_CXX | \
15968 archive_cmds_CXX | \
15969 archive_expsym_cmds_CXX | \
15970 module_cmds_CXX | \
15971 module_expsym_cmds_CXX | \
15972 old_archive_from_expsyms_cmds_CXX | \
15973 export_symbols_cmds_CXX | \
15974 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15975 postinstall_cmds | postuninstall_cmds | \
15976 old_postinstall_cmds | old_postuninstall_cmds | \
15977 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15978 # Double-quote double-evaled strings.
15979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15988 *'\$0 --fallback-echo"')
15989 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15995 cat <<__EOF__ >> "$cfgfile"
15996 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16000 # Shell to use when invoking shell scripts.
16003 # Whether or not to build shared libraries.
16004 build_libtool_libs=$enable_shared
16006 # Whether or not to build static libraries.
16007 build_old_libs=$enable_static
16009 # Whether or not to add -lc for building shared libraries.
16010 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16012 # Whether or not to disallow shared libs when runtime libs are static
16013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16015 # Whether or not to optimize for fast installation.
16016 fast_install=$enable_fast_install
16019 host_alias=$host_alias
16023 # The build system.
16024 build_alias=$build_alias
16028 # An echo program that does not interpret backslashes.
16033 AR_FLAGS=$lt_AR_FLAGS
16038 # LTCC compiler flags.
16039 LTCFLAGS=$lt_LTCFLAGS
16041 # A language-specific compiler.
16042 CC=$lt_compiler_CXX
16044 # Is the compiler the GNU C compiler?
16050 # The linker used to build libraries.
16053 # Whether we need hard or soft links.
16056 # A BSD-compatible nm program.
16059 # A symbol stripping program
16062 # Used to examine libraries when file_magic_cmd begins "file"
16063 MAGIC_CMD=$MAGIC_CMD
16065 # Used on cygwin: DLL creation program.
16068 # Used on cygwin: object dumper.
16071 # Used on cygwin: assembler.
16074 # The name of the directory that contains temporary libtool files.
16077 # How to create reloadable object files.
16078 reload_flag=$lt_reload_flag
16079 reload_cmds=$lt_reload_cmds
16081 # How to pass a linker flag through the compiler.
16082 wl=$lt_lt_prog_compiler_wl_CXX
16084 # Object file suffix (normally "o").
16085 objext="$ac_objext"
16087 # Old archive suffix (normally "a").
16090 # Shared library suffix (normally ".so").
16091 shrext_cmds='$shrext_cmds'
16093 # Executable file suffix (normally "").
16096 # Additional compiler flags for building library objects.
16097 pic_flag=$lt_lt_prog_compiler_pic_CXX
16100 # What is the maximum length of a command?
16101 max_cmd_len=$lt_cv_sys_max_cmd_len
16103 # Does compiler simultaneously support -c and -o options?
16104 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16106 # Must we lock files when doing compilation?
16107 need_locks=$lt_need_locks
16109 # Do we need the lib prefix for modules?
16110 need_lib_prefix=$need_lib_prefix
16112 # Do we need a version for libraries?
16113 need_version=$need_version
16115 # Whether dlopen is supported.
16116 dlopen_support=$enable_dlopen
16118 # Whether dlopen of programs is supported.
16119 dlopen_self=$enable_dlopen_self
16121 # Whether dlopen of statically linked programs is supported.
16122 dlopen_self_static=$enable_dlopen_self_static
16124 # Compiler flag to prevent dynamic linking.
16125 link_static_flag=$lt_lt_prog_compiler_static_CXX
16127 # Compiler flag to turn off builtin functions.
16128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16130 # Compiler flag to allow reflexive dlopens.
16131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16133 # Compiler flag to generate shared objects directly from archives.
16134 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16136 # Compiler flag to generate thread-safe objects.
16137 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16139 # Library versioning type.
16140 version_type=$version_type
16142 # Format of library name prefix.
16143 libname_spec=$lt_libname_spec
16145 # List of archive names. First name is the real one, the rest are links.
16146 # The last name is the one that the linker finds with -lNAME.
16147 library_names_spec=$lt_library_names_spec
16149 # The coded name of the library, if different from the real name.
16150 soname_spec=$lt_soname_spec
16152 # Commands used to build and install an old-style archive.
16154 old_archive_cmds=$lt_old_archive_cmds_CXX
16155 old_postinstall_cmds=$lt_old_postinstall_cmds
16156 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16158 # Create an old-style archive from a shared archive.
16159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16161 # Create a temporary old-style archive to link instead of a shared archive.
16162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16164 # Commands used to build and install a shared archive.
16165 archive_cmds=$lt_archive_cmds_CXX
16166 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16167 postinstall_cmds=$lt_postinstall_cmds
16168 postuninstall_cmds=$lt_postuninstall_cmds
16170 # Commands used to build a loadable module (assumed same as above if empty)
16171 module_cmds=$lt_module_cmds_CXX
16172 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16174 # Commands to strip libraries.
16175 old_striplib=$lt_old_striplib
16176 striplib=$lt_striplib
16178 # Dependencies to place before the objects being linked to create a
16180 predep_objects=$lt_predep_objects_CXX
16182 # Dependencies to place after the objects being linked to create a
16184 postdep_objects=$lt_postdep_objects_CXX
16186 # Dependencies to place before the objects being linked to create a
16188 predeps=$lt_predeps_CXX
16190 # Dependencies to place after the objects being linked to create a
16192 postdeps=$lt_postdeps_CXX
16194 # The directories searched by this compiler when creating a shared
16196 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16198 # The library search path used internally by the compiler when linking
16199 # a shared library.
16200 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16202 # Method to check whether dependent libraries are shared objects.
16203 deplibs_check_method=$lt_deplibs_check_method
16205 # Command to use when deplibs_check_method == file_magic.
16206 file_magic_cmd=$lt_file_magic_cmd
16208 # Flag that allows shared libraries with undefined symbols to be built.
16209 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16211 # Flag that forces no undefined symbols.
16212 no_undefined_flag=$lt_no_undefined_flag_CXX
16214 # Commands used to finish a libtool library installation in a directory.
16215 finish_cmds=$lt_finish_cmds
16217 # Same as above, but a single script fragment to be evaled but not shown.
16218 finish_eval=$lt_finish_eval
16220 # Take the output of nm and produce a listing of raw symbols and C names.
16221 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16223 # Transform the output of nm in a proper C declaration
16224 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16226 # Transform the output of nm in a C name address pair
16227 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16229 # This is the shared library runtime path variable.
16230 runpath_var=$runpath_var
16232 # This is the shared library path variable.
16233 shlibpath_var=$shlibpath_var
16235 # Is shlibpath searched before the hard-coded library search path?
16236 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16238 # How to hardcode a shared library path into an executable.
16239 hardcode_action=$hardcode_action_CXX
16241 # Whether we should hardcode library paths into libraries.
16242 hardcode_into_libs=$hardcode_into_libs
16244 # Flag to hardcode \$libdir into a binary during linking.
16245 # This must work even if \$libdir does not exist.
16246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16248 # If ld is used when linking, flag to hardcode \$libdir into
16249 # a binary during linking. This must work even if \$libdir does
16251 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16253 # Whether we need a single -rpath flag with a separated argument.
16254 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16256 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16257 # resulting binary.
16258 hardcode_direct=$hardcode_direct_CXX
16260 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16261 # resulting binary.
16262 hardcode_minus_L=$hardcode_minus_L_CXX
16264 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16265 # the resulting binary.
16266 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16268 # Set to yes if building a shared library automatically hardcodes DIR into the library
16269 # and all subsequent libraries and executables linked against it.
16270 hardcode_automatic=$hardcode_automatic_CXX
16272 # Variables whose values should be saved in libtool wrapper scripts and
16273 # restored at relink time.
16274 variables_saved_for_relink="$variables_saved_for_relink"
16276 # Whether libtool must link a program against all its dependency libraries.
16277 link_all_deplibs=$link_all_deplibs_CXX
16279 # Compile-time system search path for libraries
16280 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16282 # Run-time system search path for libraries
16283 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16285 # Fix the shell variable \$srcfile for the compiler.
16286 fix_srcfile_path=$lt_fix_srcfile_path
16288 # Set to yes if exported symbols are required.
16289 always_export_symbols=$always_export_symbols_CXX
16291 # The commands to list exported symbols.
16292 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16294 # The commands to extract the exported symbol list from a shared archive.
16295 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16297 # Symbols that should not be listed in the preloaded symbols.
16298 exclude_expsyms=$lt_exclude_expsyms_CXX
16300 # Symbols that must always be exported.
16301 include_expsyms=$lt_include_expsyms_CXX
16303 # ### END LIBTOOL TAG CONFIG: $tagname
16309 # If there is no Makefile yet, we rely on a make rule to execute
16310 # `config.status --recheck' to rerun these tests and create the
16311 # libtool script then.
16312 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16313 if test -f "$ltmain_in"; then
16314 test -f Makefile && make "$ltmain"
16320 ac_cpp='$CPP $CPPFLAGS'
16321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16329 with_gnu_ldcxx=$with_gnu_ld
16330 with_gnu_ld=$lt_save_with_gnu_ld
16331 lt_cv_path_LDCXX=$lt_cv_path_LD
16332 lt_cv_path_LD=$lt_save_path_LD
16333 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16334 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16342 if test -n "$F77" && test "X$F77" != "Xno"; then
16345 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16346 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16347 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16350 archive_cmds_need_lc_F77=no
16351 allow_undefined_flag_F77=
16352 always_export_symbols_F77=no
16353 archive_expsym_cmds_F77=
16354 export_dynamic_flag_spec_F77=
16355 hardcode_direct_F77=no
16356 hardcode_libdir_flag_spec_F77=
16357 hardcode_libdir_flag_spec_ld_F77=
16358 hardcode_libdir_separator_F77=
16359 hardcode_minus_L_F77=no
16360 hardcode_automatic_F77=no
16362 module_expsym_cmds_F77=
16363 link_all_deplibs_F77=unknown
16364 old_archive_cmds_F77=$old_archive_cmds
16365 no_undefined_flag_F77=
16366 whole_archive_flag_spec_F77=
16367 enable_shared_with_static_runtimes_F77=no
16369 # Source file extension for f77 test sources.
16372 # Object file extension for compiled f77 test sources.
16376 # Code to be used in simple compile tests
16377 lt_simple_compile_test_code="\
16383 # Code to be used in simple link tests
16384 lt_simple_link_test_code="\
16389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16391 # If no C compiler was specified, use CC.
16394 # If no C compiler flags were specified, use CFLAGS.
16395 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16397 # Allow CC to be a program name with arguments.
16401 # save warnings/boilerplate of simple test code
16402 ac_outfile=conftest.$ac_objext
16403 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16404 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16405 _lt_compiler_boilerplate=`cat conftest.err`
16408 ac_outfile=conftest.$ac_objext
16409 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16410 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16411 _lt_linker_boilerplate=`cat conftest.err`
16415 # Allow CC to be a program name with arguments.
16420 for cc_temp in $compiler""; do
16422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16428 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16431 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16432 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16433 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16434 $as_echo "$can_build_shared" >&6; }
16436 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16437 $as_echo_n "checking whether to build shared libraries... " >&6; }
16438 test "$can_build_shared" = "no" && enable_shared=no
16440 # On AIX, shared libraries and static libraries use the same namespace, and
16441 # are all built from PIC.
16444 test "$enable_shared" = yes && enable_static=no
16445 if test -n "$RANLIB"; then
16446 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16447 postinstall_cmds='$RANLIB $lib'
16451 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16452 test "$enable_shared" = yes && enable_static=no
16456 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16457 $as_echo "$enable_shared" >&6; }
16459 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16460 $as_echo_n "checking whether to build static libraries... " >&6; }
16461 # Make sure either enable_shared or enable_static is yes.
16462 test "$enable_shared" = yes || enable_static=yes
16463 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16464 $as_echo "$enable_static" >&6; }
16469 lt_prog_compiler_wl_F77=
16470 lt_prog_compiler_pic_F77=
16471 lt_prog_compiler_static_F77=
16473 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16474 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16476 if test "$GCC" = yes; then
16477 lt_prog_compiler_wl_F77='-Wl,'
16478 lt_prog_compiler_static_F77='-static'
16482 # All AIX code is PIC.
16483 if test "$host_cpu" = ia64; then
16484 # AIX 5 now supports IA64 processor
16485 lt_prog_compiler_static_F77='-Bstatic'
16490 # FIXME: we need at least 68020 code to build shared libraries, but
16491 # adding the `-m68020' flag to GCC prevents building anything better,
16493 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16497 # PIC is the default for these OSes.
16500 mingw* | cygwin* | pw32* | os2*)
16501 # This hack is so that the source file can tell whether it is being
16502 # built for inclusion in a dll (and should export symbols for example).
16503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16504 # (--disable-auto-import) libraries
16505 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16508 darwin* | rhapsody*)
16509 # PIC is the default on this platform
16510 # Common symbols not allowed in MH_DYLIB files
16511 lt_prog_compiler_pic_F77='-fno-common'
16515 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16516 # Instead, we relocate shared libraries at runtime.
16520 # Just because we use GCC doesn't mean we suddenly get shared libraries
16521 # on systems that don't support them.
16522 lt_prog_compiler_can_build_shared_F77=no
16527 if test -d /usr/nec; then
16528 lt_prog_compiler_pic_F77=-Kconform_pic
16533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16534 # not for PA HP-UX.
16540 lt_prog_compiler_pic_F77='-fPIC'
16546 lt_prog_compiler_pic_F77='-fPIC'
16550 # PORTME Check for flag to pass linker flags through the system compiler.
16553 lt_prog_compiler_wl_F77='-Wl,'
16554 if test "$host_cpu" = ia64; then
16555 # AIX 5 now supports IA64 processor
16556 lt_prog_compiler_static_F77='-Bstatic'
16558 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16562 # PIC is the default on this platform
16563 # Common symbols not allowed in MH_DYLIB files
16564 case $cc_basename in
16566 lt_prog_compiler_pic_F77='-qnocommon'
16567 lt_prog_compiler_wl_F77='-Wl,'
16572 mingw* | cygwin* | pw32* | os2*)
16573 # This hack is so that the source file can tell whether it is being
16574 # built for inclusion in a dll (and should export symbols for example).
16575 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16578 hpux9* | hpux10* | hpux11*)
16579 lt_prog_compiler_wl_F77='-Wl,'
16580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16581 # not for PA HP-UX.
16587 lt_prog_compiler_pic_F77='+Z'
16590 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16591 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16594 irix5* | irix6* | nonstopux*)
16595 lt_prog_compiler_wl_F77='-Wl,'
16596 # PIC (with -KPIC) is the default.
16597 lt_prog_compiler_static_F77='-non_shared'
16601 lt_prog_compiler_pic_F77='-KPIC'
16602 lt_prog_compiler_static_F77='-Bstatic'
16605 linux* | k*bsd*-gnu)
16606 case $cc_basename in
16608 lt_prog_compiler_wl_F77='-Wl,'
16609 lt_prog_compiler_pic_F77='-KPIC'
16610 lt_prog_compiler_static_F77='-static'
16612 pgcc* | pgf77* | pgf90* | pgf95*)
16613 # Portland Group compilers (*not* the Pentium gcc compiler,
16614 # which looks to be a dead project)
16615 lt_prog_compiler_wl_F77='-Wl,'
16616 lt_prog_compiler_pic_F77='-fpic'
16617 lt_prog_compiler_static_F77='-Bstatic'
16620 lt_prog_compiler_wl_F77='-Wl,'
16621 # All Alpha code is PIC.
16622 lt_prog_compiler_static_F77='-non_shared'
16625 case `$CC -V 2>&1 | sed 5q` in
16628 lt_prog_compiler_pic_F77='-KPIC'
16629 lt_prog_compiler_static_F77='-Bstatic'
16630 lt_prog_compiler_wl_F77='-Wl,'
16633 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16634 lt_prog_compiler_pic_F77='-KPIC'
16635 lt_prog_compiler_static_F77='-Bstatic'
16636 lt_prog_compiler_wl_F77=''
16643 osf3* | osf4* | osf5*)
16644 lt_prog_compiler_wl_F77='-Wl,'
16645 # All OSF/1 code is PIC.
16646 lt_prog_compiler_static_F77='-non_shared'
16650 lt_prog_compiler_static_F77='-non_shared'
16654 lt_prog_compiler_pic_F77='-KPIC'
16655 lt_prog_compiler_static_F77='-Bstatic'
16656 case $cc_basename in
16657 f77* | f90* | f95*)
16658 lt_prog_compiler_wl_F77='-Qoption ld ';;
16660 lt_prog_compiler_wl_F77='-Wl,';;
16665 lt_prog_compiler_wl_F77='-Qoption ld '
16666 lt_prog_compiler_pic_F77='-PIC'
16667 lt_prog_compiler_static_F77='-Bstatic'
16670 sysv4 | sysv4.2uw2* | sysv4.3*)
16671 lt_prog_compiler_wl_F77='-Wl,'
16672 lt_prog_compiler_pic_F77='-KPIC'
16673 lt_prog_compiler_static_F77='-Bstatic'
16677 if test -d /usr/nec ;then
16678 lt_prog_compiler_pic_F77='-Kconform_pic'
16679 lt_prog_compiler_static_F77='-Bstatic'
16683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16684 lt_prog_compiler_wl_F77='-Wl,'
16685 lt_prog_compiler_pic_F77='-KPIC'
16686 lt_prog_compiler_static_F77='-Bstatic'
16690 lt_prog_compiler_wl_F77='-Wl,'
16691 lt_prog_compiler_can_build_shared_F77=no
16695 lt_prog_compiler_pic_F77='-pic'
16696 lt_prog_compiler_static_F77='-Bstatic'
16700 lt_prog_compiler_can_build_shared_F77=no
16705 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16706 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
16709 # Check to make sure the PIC flag actually works.
16711 if test -n "$lt_prog_compiler_pic_F77"; then
16713 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16714 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16715 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16716 $as_echo_n "(cached) " >&6
16718 lt_cv_prog_compiler_pic_works_F77=no
16719 ac_outfile=conftest.$ac_objext
16720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16721 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16722 # Insert the option either (1) after the last *FLAGS variable, or
16723 # (2) before a word containing "conftest.", or (3) at the end.
16724 # Note that $ac_compile itself does not contain backslashes and begins
16725 # with a dollar sign (not a hyphen), so the echo should work correctly.
16726 # The option is referenced via a variable to avoid confusing sed.
16727 lt_compile=`echo "$ac_compile" | $SED \
16728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730 -e 's:$: $lt_compiler_flag:'`
16731 (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
16732 (eval "$lt_compile" 2>conftest.err)
16734 cat conftest.err >&5
16735 echo "$as_me:16735: \$? = $ac_status" >&5
16736 if (exit $ac_status) && test -s "$ac_outfile"; then
16737 # The compiler can only warn and ignore the option if not recognized
16738 # So say no if there are warnings other than the usual output.
16739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16742 lt_cv_prog_compiler_pic_works_F77=yes
16748 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16749 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16751 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16752 case $lt_prog_compiler_pic_F77 in
16754 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16757 lt_prog_compiler_pic_F77=
16758 lt_prog_compiler_can_build_shared_F77=no
16763 # For platforms which do not support PIC, -DPIC is meaningless:
16765 lt_prog_compiler_pic_F77=
16768 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16773 # Check to make sure the static flag actually works.
16775 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16776 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16777 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16778 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16779 $as_echo_n "(cached) " >&6
16781 lt_cv_prog_compiler_static_works_F77=no
16782 save_LDFLAGS="$LDFLAGS"
16783 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16786 # The linker can only warn and ignore the option if not recognized
16787 # So say no if there are warnings
16788 if test -s conftest.err; then
16789 # Append any errors to the config.log.
16790 cat conftest.err 1>&5
16791 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16793 if diff conftest.exp conftest.er2 >/dev/null; then
16794 lt_cv_prog_compiler_static_works_F77=yes
16797 lt_cv_prog_compiler_static_works_F77=yes
16801 LDFLAGS="$save_LDFLAGS"
16804 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16805 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16807 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16810 lt_prog_compiler_static_F77=
16814 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16816 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16817 $as_echo_n "(cached) " >&6
16819 lt_cv_prog_compiler_c_o_F77=no
16820 $rm -r conftest 2>/dev/null
16824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16826 lt_compiler_flag="-o out/conftest2.$ac_objext"
16827 # Insert the option either (1) after the last *FLAGS variable, or
16828 # (2) before a word containing "conftest.", or (3) at the end.
16829 # Note that $ac_compile itself does not contain backslashes and begins
16830 # with a dollar sign (not a hyphen), so the echo should work correctly.
16831 lt_compile=`echo "$ac_compile" | $SED \
16832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16834 -e 's:$: $lt_compiler_flag:'`
16835 (eval echo "\"\$as_me:16835: $lt_compile\"" >&5)
16836 (eval "$lt_compile" 2>out/conftest.err)
16838 cat out/conftest.err >&5
16839 echo "$as_me:16839: \$? = $ac_status" >&5
16840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16842 # The compiler can only warn and ignore the option if not recognized
16843 # So say no if there are warnings
16844 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16847 lt_cv_prog_compiler_c_o_F77=yes
16852 # SGI C++ compiler will create directory out/ii_files/ for
16853 # template instantiation
16854 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16855 $rm out/* && rmdir out
16861 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16862 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16865 hard_links="nottested"
16866 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16867 # do not overwrite the value of need_locks provided by the user
16868 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16869 $as_echo_n "checking if we can lock with hard links... " >&6; }
16872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16874 ln conftest.a conftest.b 2>&5 || hard_links=no
16875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16876 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16877 $as_echo "$hard_links" >&6; }
16878 if test "$hard_links" = no; then
16879 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16880 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16887 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16888 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16891 allow_undefined_flag_F77=
16892 enable_shared_with_static_runtimes_F77=no
16894 archive_expsym_cmds_F77=
16895 old_archive_From_new_cmds_F77=
16896 old_archive_from_expsyms_cmds_F77=
16897 export_dynamic_flag_spec_F77=
16898 whole_archive_flag_spec_F77=
16899 thread_safe_flag_spec_F77=
16900 hardcode_libdir_flag_spec_F77=
16901 hardcode_libdir_flag_spec_ld_F77=
16902 hardcode_libdir_separator_F77=
16903 hardcode_direct_F77=no
16904 hardcode_minus_L_F77=no
16905 hardcode_shlibpath_var_F77=unsupported
16906 link_all_deplibs_F77=unknown
16907 hardcode_automatic_F77=no
16909 module_expsym_cmds_F77=
16910 always_export_symbols_F77=no
16911 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16912 # include_expsyms should be a list of space-separated symbols to be *always*
16913 # included in the symbol list
16914 include_expsyms_F77=
16915 # exclude_expsyms can be an extended regexp of symbols to exclude
16916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16918 # as well as any symbol that contains `d'.
16919 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16921 # platforms (ab)use it in PIC code, but their linkers get confused if
16922 # the symbol is explicitly referenced. Since portable code cannot
16923 # rely on this symbol name, it's probably fine to never include it in
16924 # preloaded symbol tables.
16925 # Exclude shared library initialization/finalization symbols.
16926 extract_expsyms_cmds=
16927 # Just being paranoid about ensuring that cc_basename is set.
16928 for cc_temp in $compiler""; do
16930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16936 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16939 cygwin* | mingw* | pw32*)
16940 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16941 # When not using gcc, we currently assume that we are using
16942 # Microsoft Visual C++.
16943 if test "$GCC" != yes; then
16948 # we just hope/assume this is gcc and not c89 (= MSVC++)
16957 if test "$with_gnu_ld" = yes; then
16958 # If archive_cmds runs LD, not CC, wlarc should be empty
16961 # Set some defaults for GNU ld with shared library support. These
16962 # are reset later if shared libraries are not supported. Putting them
16963 # here allows them to be overridden if necessary.
16964 runpath_var=LD_RUN_PATH
16965 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16966 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16967 # ancient GNU ld didn't support --whole-archive et. al.
16968 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16969 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16971 whole_archive_flag_spec_F77=
16973 supports_anon_versioning=no
16974 case `$LD -v 2>/dev/null` in
16975 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16976 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16977 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16978 *\ 2.11.*) ;; # other 2.11 versions
16979 *) supports_anon_versioning=yes ;;
16982 # See if GNU ld supports shared libraries.
16985 # On AIX/PPC, the GNU linker is very broken
16986 if test "$host_cpu" != ia64; then
16990 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16991 *** to be unable to reliably create shared libraries on AIX.
16992 *** Therefore, libtool is disabling shared libraries support. If you
16993 *** really care for shared libraries, you may want to modify your PATH
16994 *** so that a non-GNU linker is found, and then restart.
17001 archive_cmds_F77='$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)'
17002 hardcode_libdir_flag_spec_F77='-L$libdir'
17003 hardcode_minus_L_F77=yes
17005 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17006 # that the semantics of dynamic libraries on AmigaOS, at least up
17007 # to version 4, is to share data among multiple programs linked
17008 # with the same dynamic library. Since this doesn't match the
17009 # behavior of shared libraries on other platforms, we can't use
17015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17016 allow_undefined_flag_F77=unsupported
17017 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17018 # support --undefined. This deserves some investigation. FIXME
17019 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17025 cygwin* | mingw* | pw32*)
17026 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17027 # as there is no search path for DLLs.
17028 hardcode_libdir_flag_spec_F77='-L$libdir'
17029 allow_undefined_flag_F77=unsupported
17030 always_export_symbols_F77=no
17031 enable_shared_with_static_runtimes_F77=yes
17032 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17034 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17035 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17036 # If the export-symbols file already is a .def file (1st line
17037 # is EXPORTS), use it as is; otherwise, prepend...
17038 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17039 cp $export_symbols $output_objdir/$soname.def;
17041 echo EXPORTS > $output_objdir/$soname.def;
17042 cat $export_symbols >> $output_objdir/$soname.def;
17044 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17051 hardcode_direct_F77=no
17052 hardcode_shlibpath_var_F77=no
17053 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17054 export_dynamic_flag_spec_F77='${wl}-E'
17055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17056 # Instead, shared libraries are loaded at an image base (0x10000000 by
17057 # default) and relocated if they conflict, which is a slow very memory
17058 # consuming and fragmenting process. To avoid this, we pick a random,
17059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17060 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17061 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17062 archive_expsym_cmds_F77='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'
17065 gnu* | linux* | k*bsd*-gnu)
17066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17068 case $cc_basename,$host_cpu in
17069 pgcc*) # Portland Group C compiler
17070 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17071 tmp_addflag=' $pic_flag'
17073 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17074 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17075 tmp_addflag=' $pic_flag -Mnomain' ;;
17076 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17077 tmp_addflag=' -i_dynamic' ;;
17078 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17079 tmp_addflag=' -i_dynamic -nofor_main' ;;
17080 ifc* | ifort*) # Intel Fortran compiler
17081 tmp_addflag=' -nofor_main' ;;
17083 case `$CC -V 2>&1 | sed 5q` in
17084 *Sun\ C*) # Sun C 5.9
17085 whole_archive_flag_spec_F77='${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'
17086 tmp_sharedflag='-G' ;;
17087 *Sun\ F*) # Sun Fortran 8.3
17088 tmp_sharedflag='-G' ;;
17090 tmp_sharedflag='-shared' ;;
17092 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17094 if test $supports_anon_versioning = yes; then
17095 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17097 $echo "local: *; };" >> $output_objdir/$libname.ver~
17098 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17107 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17110 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17111 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17116 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17121 *** create shared libraries on Solaris systems. Therefore, libtool
17122 *** is disabling shared libraries support. We urge you to upgrade GNU
17123 *** binutils to release 2.9.1 or newer. Another option is to modify
17124 *** your PATH or compiler configuration so that the native linker is
17125 *** used, and then restart.
17128 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17129 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17130 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17137 case `$LD -v 2>&1` in
17138 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17142 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17143 *** reliably create shared libraries on SCO systems. Therefore, libtool
17144 *** is disabling shared libraries support. We urge you to upgrade GNU
17145 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17146 *** your PATH or compiler configuration so that the native linker is
17147 *** used, and then restart.
17152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17153 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17154 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17155 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17164 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17166 hardcode_direct_F77=yes
17167 hardcode_shlibpath_var_F77=no
17171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17172 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17173 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17180 if test "$ld_shlibs_F77" = no; then
17182 hardcode_libdir_flag_spec_F77=
17183 export_dynamic_flag_spec_F77=
17184 whole_archive_flag_spec_F77=
17187 # PORTME fill in a description of your system's linker (not GNU ld)
17190 allow_undefined_flag_F77=unsupported
17191 always_export_symbols_F77=yes
17192 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17193 # Note: this linker hardcodes the directories in LIBPATH if there
17194 # are no directories specified by -L.
17195 hardcode_minus_L_F77=yes
17196 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17197 # Neither direct hardcoding nor static linking is supported with a
17199 hardcode_direct_F77=unsupported
17204 if test "$host_cpu" = ia64; then
17205 # On IA64, the linker does run time linking by default, so we don't
17206 # have to do anything special.
17207 aix_use_runtimelinking=no
17208 exp_sym_flag='-Bexport'
17211 # If we're using GNU nm, then we don't want the "-C" option.
17212 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17213 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17214 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17216 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17218 aix_use_runtimelinking=no
17220 # Test if we are trying to use run time linking or normal
17221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17222 # need to do runtime linking.
17223 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17224 for ld_flag in $LDFLAGS; do
17225 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17226 aix_use_runtimelinking=yes
17233 exp_sym_flag='-bexport'
17234 no_entry_flag='-bnoentry'
17237 # When large executables or shared objects are built, AIX ld can
17238 # have problems creating the table of contents. If linking a library
17239 # or program results in "error TOC overflow" add -mminimal-toc to
17240 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17241 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17243 archive_cmds_F77=''
17244 hardcode_direct_F77=yes
17245 hardcode_libdir_separator_F77=':'
17246 link_all_deplibs_F77=yes
17248 if test "$GCC" = yes; then
17249 case $host_os in aix4.[012]|aix4.[012].*)
17250 # We only want to do this on AIX 4.2 and lower, the check
17251 # below for broken collect2 doesn't work under 4.3+
17252 collect2name=`${CC} -print-prog-name=collect2`
17253 if test -f "$collect2name" && \
17254 strings "$collect2name" | grep resolve_lib_name >/dev/null
17256 # We have reworked collect2
17259 # We have old collect2
17260 hardcode_direct_F77=unsupported
17261 # It fails to find uninstalled libraries when the uninstalled
17262 # path is not listed in the libpath. Setting hardcode_minus_L
17263 # to unsupported forces relinking
17264 hardcode_minus_L_F77=yes
17265 hardcode_libdir_flag_spec_F77='-L$libdir'
17266 hardcode_libdir_separator_F77=
17270 shared_flag='-shared'
17271 if test "$aix_use_runtimelinking" = yes; then
17272 shared_flag="$shared_flag "'${wl}-G'
17276 if test "$host_cpu" = ia64; then
17277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17278 # chokes on -Wl,-G. The following line is correct:
17281 if test "$aix_use_runtimelinking" = yes; then
17282 shared_flag='${wl}-G'
17284 shared_flag='${wl}-bM:SRE'
17289 # It seems that -bexpall does not export symbols beginning with
17290 # underscore (_), so it is better to generate a list of symbols to export.
17291 always_export_symbols_F77=yes
17292 if test "$aix_use_runtimelinking" = yes; then
17293 # Warning - without using the other runtime loading flags (-brtl),
17294 # -berok will link without error, but may produce a broken library.
17295 allow_undefined_flag_F77='-berok'
17296 # Determine the default libpath from the value encoded in an empty executable.
17297 cat >conftest.$ac_ext <<_ACEOF
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (ac_try="$ac_link"
17304 case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17309 $as_echo "$ac_try_echo") >&5
17310 (eval "$ac_link") 2>conftest.er1
17312 grep -v '^ *+' conftest.er1 >conftest.err
17314 cat conftest.err >&5
17315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && {
17317 test -z "$ac_f77_werror_flag" ||
17318 test ! -s conftest.err
17319 } && test -s conftest$ac_exeext && {
17320 test "$cross_compiling" = yes ||
17321 $as_test_x conftest$ac_exeext
17324 lt_aix_libpath_sed='
17325 /Import File Strings/,/^$/ {
17331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17332 # Check for a 64-bit object if we didn't find anything.
17333 if test -z "$aix_libpath"; then
17334 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17337 $as_echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17343 rm -rf conftest.dSYM
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17348 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17349 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17351 if test "$host_cpu" = ia64; then
17352 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17353 allow_undefined_flag_F77="-z nodefs"
17354 archive_expsym_cmds_F77="\$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"
17356 # Determine the default libpath from the value encoded in an empty executable.
17357 cat >conftest.$ac_ext <<_ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17369 $as_echo "$ac_try_echo") >&5
17370 (eval "$ac_link") 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_f77_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest$ac_exeext && {
17380 test "$cross_compiling" = yes ||
17381 $as_test_x conftest$ac_exeext
17384 lt_aix_libpath_sed='
17385 /Import File Strings/,/^$/ {
17391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17392 # Check for a 64-bit object if we didn't find anything.
17393 if test -z "$aix_libpath"; then
17394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17397 $as_echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17403 rm -rf conftest.dSYM
17404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17405 conftest$ac_exeext conftest.$ac_ext
17406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17408 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17409 # Warning - without using the other run time loading flags,
17410 # -berok will link without error, but may produce a broken library.
17411 no_undefined_flag_F77=' ${wl}-bernotok'
17412 allow_undefined_flag_F77=' ${wl}-berok'
17413 # Exported symbols can be pulled into shared objects from archives
17414 whole_archive_flag_spec_F77='$convenience'
17415 archive_cmds_need_lc_F77=yes
17416 # This is similar to how AIX traditionally builds its shared libraries.
17417 archive_expsym_cmds_F77="\$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'
17423 archive_cmds_F77='$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)'
17424 hardcode_libdir_flag_spec_F77='-L$libdir'
17425 hardcode_minus_L_F77=yes
17426 # see comment about different semantics on the GNU ld section
17431 export_dynamic_flag_spec_F77=-rdynamic
17434 cygwin* | mingw* | pw32*)
17435 # When not using gcc, we currently assume that we are using
17436 # Microsoft Visual C++.
17437 # hardcode_libdir_flag_spec is actually meaningless, as there is
17438 # no search path for DLLs.
17439 hardcode_libdir_flag_spec_F77=' '
17440 allow_undefined_flag_F77=unsupported
17441 # Tell ltmain to make .lib files, not .a files.
17443 # Tell ltmain to make .dll files, not .so files.
17445 # FIXME: Setting linknames here is a bad hack.
17446 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17447 # The linker will automatically build a .lib file if we build a DLL.
17448 old_archive_From_new_cmds_F77='true'
17449 # FIXME: Should let the user specify the lib program.
17450 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17451 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17452 enable_shared_with_static_runtimes_F77=yes
17455 darwin* | rhapsody*)
17457 rhapsody* | darwin1.[012])
17458 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17461 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17462 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17464 case ${MACOSX_DEPLOYMENT_TARGET} in
17466 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17469 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17475 archive_cmds_need_lc_F77=no
17476 hardcode_direct_F77=no
17477 hardcode_automatic_F77=yes
17478 hardcode_shlibpath_var_F77=unsupported
17479 whole_archive_flag_spec_F77=''
17480 link_all_deplibs_F77=yes
17481 if test "$GCC" = yes ; then
17482 output_verbose_link_cmd='echo'
17483 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17484 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17485 archive_expsym_cmds_F77="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}"
17486 module_expsym_cmds_F77="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}"
17488 case $cc_basename in
17490 output_verbose_link_cmd='echo'
17491 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17492 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17494 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17495 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17506 hardcode_libdir_flag_spec_F77='-L$libdir'
17507 hardcode_shlibpath_var_F77=no
17514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17515 # support. Future versions do this automatically, but an explicit c++rt0.o
17516 # does not break anything, and helps significantly (at the cost of a little
17519 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17520 hardcode_libdir_flag_spec_F77='-R$libdir'
17521 hardcode_direct_F77=yes
17522 hardcode_shlibpath_var_F77=no
17525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17527 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17528 hardcode_direct_F77=yes
17529 hardcode_minus_L_F77=yes
17530 hardcode_shlibpath_var_F77=no
17533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17534 freebsd* | dragonfly*)
17535 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17536 hardcode_libdir_flag_spec_F77='-R$libdir'
17537 hardcode_direct_F77=yes
17538 hardcode_shlibpath_var_F77=no
17542 if test "$GCC" = yes; then
17543 archive_cmds_F77='$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'
17545 archive_cmds_F77='$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'
17547 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17548 hardcode_libdir_separator_F77=:
17549 hardcode_direct_F77=yes
17551 # hardcode_minus_L: Not really in the search PATH,
17552 # but as the default location of the library.
17553 hardcode_minus_L_F77=yes
17554 export_dynamic_flag_spec_F77='${wl}-E'
17558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17559 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17561 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17563 if test "$with_gnu_ld" = no; then
17564 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17565 hardcode_libdir_separator_F77=:
17567 hardcode_direct_F77=yes
17568 export_dynamic_flag_spec_F77='${wl}-E'
17570 # hardcode_minus_L: Not really in the search PATH,
17571 # but as the default location of the library.
17572 hardcode_minus_L_F77=yes
17577 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17580 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17583 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17586 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17592 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17595 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17598 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17602 if test "$with_gnu_ld" = no; then
17603 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17604 hardcode_libdir_separator_F77=:
17608 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17609 hardcode_direct_F77=no
17610 hardcode_shlibpath_var_F77=no
17613 hardcode_direct_F77=yes
17614 export_dynamic_flag_spec_F77='${wl}-E'
17616 # hardcode_minus_L: Not really in the search PATH,
17617 # but as the default location of the library.
17618 hardcode_minus_L_F77=yes
17624 irix5* | irix6* | nonstopux*)
17625 if test "$GCC" = yes; then
17626 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17628 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17629 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17631 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17632 hardcode_libdir_separator_F77=:
17633 link_all_deplibs_F77=yes
17637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17640 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17642 hardcode_libdir_flag_spec_F77='-R$libdir'
17643 hardcode_direct_F77=yes
17644 hardcode_shlibpath_var_F77=no
17648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649 hardcode_direct_F77=yes
17650 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17651 hardcode_libdir_separator_F77=:
17652 hardcode_shlibpath_var_F77=no
17656 if test -f /usr/libexec/ld.so; then
17657 hardcode_direct_F77=yes
17658 hardcode_shlibpath_var_F77=no
17659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17660 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17661 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17662 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17663 export_dynamic_flag_spec_F77='${wl}-E'
17666 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17667 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17668 hardcode_libdir_flag_spec_F77='-R$libdir'
17671 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17672 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17682 hardcode_libdir_flag_spec_F77='-L$libdir'
17683 hardcode_minus_L_F77=yes
17684 allow_undefined_flag_F77=unsupported
17685 archive_cmds_F77='$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'
17686 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17690 if test "$GCC" = yes; then
17691 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17692 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17694 allow_undefined_flag_F77=' -expect_unresolved \*'
17695 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17697 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17698 hardcode_libdir_separator_F77=:
17701 osf4* | osf5*) # as osf3* with the addition of -msym flag
17702 if test "$GCC" = yes; then
17703 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17704 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17705 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17707 allow_undefined_flag_F77=' -expect_unresolved \*'
17708 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17709 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17710 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17712 # Both c and cxx compiler support -rpath directly
17713 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17715 hardcode_libdir_separator_F77=:
17719 no_undefined_flag_F77=' -z text'
17720 if test "$GCC" = yes; then
17722 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17723 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17724 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17727 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17728 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17731 hardcode_libdir_flag_spec_F77='-R$libdir'
17732 hardcode_shlibpath_var_F77=no
17734 solaris2.[0-5] | solaris2.[0-5].*) ;;
17736 # The compiler driver will combine and reorder linker options,
17737 # but understands `-z linker_flag'. GCC discards it without `$wl',
17738 # but is careful enough not to reorder.
17739 # Supported since Solaris 2.6 (maybe 2.5.1?)
17740 if test "$GCC" = yes; then
17741 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17743 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17747 link_all_deplibs_F77=yes
17751 if test "x$host_vendor" = xsequent; then
17752 # Use $CC to link under sequent, because it throws in some extra .o
17753 # files that make .init and .fini sections work.
17754 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17756 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17758 hardcode_libdir_flag_spec_F77='-L$libdir'
17759 hardcode_direct_F77=yes
17760 hardcode_minus_L_F77=yes
17761 hardcode_shlibpath_var_F77=no
17765 case $host_vendor in
17767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17768 hardcode_direct_F77=yes # is this really true???
17771 ## LD is ld it makes a PLAMLIB
17772 ## CC just makes a GrossModule.
17773 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17774 reload_cmds_F77='$CC -r -o $output$reload_objs'
17775 hardcode_direct_F77=no
17778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17779 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17782 runpath_var='LD_RUN_PATH'
17783 hardcode_shlibpath_var_F77=no
17787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788 hardcode_shlibpath_var_F77=no
17789 export_dynamic_flag_spec_F77='-Bexport'
17793 if test -d /usr/nec; then
17794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17795 hardcode_shlibpath_var_F77=no
17796 runpath_var=LD_RUN_PATH
17797 hardcode_runpath_var=yes
17802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17803 no_undefined_flag_F77='${wl}-z,text'
17804 archive_cmds_need_lc_F77=no
17805 hardcode_shlibpath_var_F77=no
17806 runpath_var='LD_RUN_PATH'
17808 if test "$GCC" = yes; then
17809 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17812 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17813 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17817 sysv5* | sco3.2v5* | sco5v6*)
17818 # Note: We can NOT use -z defs as we might desire, because we do not
17819 # link with -lc, and that would cause any symbols used from libc to
17820 # always be unresolved, which means just about no library would
17821 # ever link correctly. If we're not using GNU ld we use -z text
17822 # though, which does catch some bad symbols but isn't as heavy-handed
17824 no_undefined_flag_F77='${wl}-z,text'
17825 allow_undefined_flag_F77='${wl}-z,nodefs'
17826 archive_cmds_need_lc_F77=no
17827 hardcode_shlibpath_var_F77=no
17828 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17829 hardcode_libdir_separator_F77=':'
17830 link_all_deplibs_F77=yes
17831 export_dynamic_flag_spec_F77='${wl}-Bexport'
17832 runpath_var='LD_RUN_PATH'
17834 if test "$GCC" = yes; then
17835 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17838 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17839 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17845 hardcode_libdir_flag_spec_F77='-L$libdir'
17846 hardcode_shlibpath_var_F77=no
17855 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17856 $as_echo "$ld_shlibs_F77" >&6; }
17857 test "$ld_shlibs_F77" = no && can_build_shared=no
17860 # Do we need to explicitly link libc?
17862 case "x$archive_cmds_need_lc_F77" in
17864 # Assume -lc should be added
17865 archive_cmds_need_lc_F77=yes
17867 if test "$enable_shared" = yes && test "$GCC" = yes; then
17868 case $archive_cmds_F77 in
17870 # FIXME: we may have to deal with multi-command sequences.
17873 # Test whether the compiler implicitly links with -lc since on some
17874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17875 # to ld, don't add -lc before -lgcc.
17876 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17877 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17882 (eval $ac_compile) 2>&5
17884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } 2>conftest.err; then
17888 libobjs=conftest.$ac_objext
17890 wl=$lt_prog_compiler_wl_F77
17891 pic_flag=$lt_prog_compiler_pic_F77
17897 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17898 allow_undefined_flag_F77=
17899 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17900 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }
17905 archive_cmds_need_lc_F77=no
17907 archive_cmds_need_lc_F77=yes
17909 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17911 cat conftest.err 1>&5
17914 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17915 $as_echo "$archive_cmds_need_lc_F77" >&6; }
17922 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17923 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17924 library_names_spec=
17925 libname_spec='lib$name'
17929 postuninstall_cmds=
17933 shlibpath_overrides_runpath=unknown
17935 dynamic_linker="$host_os ld.so"
17936 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17938 need_lib_prefix=unknown
17939 hardcode_into_libs=no
17941 # when you set need_version to no, make sure it does not cause -set_version
17942 # flags to be left without arguments
17943 need_version=unknown
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17949 shlibpath_var=LIBPATH
17951 # AIX 3 has no versioning support, so we append a major version to the name.
17952 soname_spec='${libname}${release}${shared_ext}$major'
17959 hardcode_into_libs=yes
17960 if test "$host_cpu" = ia64; then
17961 # AIX 5 supports IA64
17962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17963 shlibpath_var=LD_LIBRARY_PATH
17965 # With GCC up to 2.95.x, collect2 would create an import file
17966 # for dependence libraries. The import file would start with
17967 # the line `#! .'. This would cause the generated library to
17968 # depend on `.', always an invalid library. This was fixed in
17969 # development snapshots of GCC prior to 3.0.
17971 aix4 | aix4.[01] | aix4.[01].*)
17972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17974 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17977 can_build_shared=no
17981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17982 # soname into executable. Probably we can add versioning support to
17983 # collect2, so additional links can be useful in future.
17984 if test "$aix_use_runtimelinking" = yes; then
17985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17986 # instead of lib<name>.a to let people know that these are not
17987 # typical AIX shared libraries.
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 # We preserve .a as extension for shared libraries through AIX4.2
17991 # and later when we are not doing run time linking.
17992 library_names_spec='${libname}${release}.a $libname.a'
17993 soname_spec='${libname}${release}${shared_ext}$major'
17995 shlibpath_var=LIBPATH
18000 library_names_spec='$libname.ixlibrary $libname.a'
18001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18002 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'
18006 library_names_spec='${libname}${shared_ext}'
18007 dynamic_linker="$host_os ld.so"
18008 shlibpath_var=LIBRARY_PATH
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 soname_spec='${libname}${release}${shared_ext}$major'
18016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18017 shlibpath_var=LD_LIBRARY_PATH
18018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18020 # the default ld.so.conf also contains /usr/contrib/lib and
18021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18022 # libtool to hard-code these into programs
18025 cygwin* | mingw* | pw32*)
18026 version_type=windows
18031 case $GCC,$host_os in
18032 yes,cygwin* | yes,mingw* | yes,pw32*)
18033 library_names_spec='$libname.dll.a'
18034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18035 postinstall_cmds='base_file=`basename \${file}`~
18036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18037 dldir=$destdir/`dirname \$dlpath`~
18038 test -d \$dldir || mkdir -p \$dldir~
18039 $install_prog $dir/$dlname \$dldir/$dlname~
18040 chmod a+x \$dldir/$dlname'
18041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18042 dlpath=$dir/\$dldll~
18044 shlibpath_overrides_runpath=yes
18048 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18049 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18050 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18053 # MinGW DLLs use traditional 'lib' prefix
18054 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18055 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18056 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18057 # It is most probably a Windows format PATH printed by
18058 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18059 # path with ; separators, and with drive letters. We can handle the
18060 # drive letters (cygwin fileutils understands them), so leave them,
18061 # especially as we might pass files found there to a mingw objdump,
18062 # which wouldn't understand a cygwinified path. Ahh.
18063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18069 # pw32 DLLs use 'pw' prefix rather than 'lib'
18070 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18076 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18079 dynamic_linker='Win32 ld.exe'
18080 # FIXME: first we should search . and the directory the executable is in
18084 darwin* | rhapsody*)
18085 dynamic_linker="$host_os dyld"
18086 version_type=darwin
18089 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18090 soname_spec='${libname}${release}${major}$shared_ext'
18091 shlibpath_overrides_runpath=yes
18092 shlibpath_var=DYLD_LIBRARY_PATH
18093 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18103 soname_spec='${libname}${release}${shared_ext}$major'
18104 shlibpath_var=LD_LIBRARY_PATH
18111 freebsd* | dragonfly*)
18112 # DragonFly does not have aout. When/if they implement a new
18113 # versioning mechanism, adjust this.
18114 if test -x /usr/bin/objformat; then
18115 objformat=`/usr/bin/objformat`
18118 freebsd[123]*) objformat=aout ;;
18119 *) objformat=elf ;;
18122 version_type=freebsd-$objformat
18123 case $version_type in
18125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18134 shlibpath_var=LD_LIBRARY_PATH
18137 shlibpath_overrides_runpath=yes
18139 freebsd3.[01]* | freebsdelf3.[01]*)
18140 shlibpath_overrides_runpath=yes
18141 hardcode_into_libs=yes
18143 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18144 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18145 shlibpath_overrides_runpath=no
18146 hardcode_into_libs=yes
18148 *) # from 4.6 on, and DragonFly
18149 shlibpath_overrides_runpath=yes
18150 hardcode_into_libs=yes
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18161 shlibpath_var=LD_LIBRARY_PATH
18162 hardcode_into_libs=yes
18165 hpux9* | hpux10* | hpux11*)
18166 # Give a soname corresponding to the major version so that dld.sl refuses to
18167 # link against other versions.
18174 hardcode_into_libs=yes
18175 dynamic_linker="$host_os dld.so"
18176 shlibpath_var=LD_LIBRARY_PATH
18177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 if test "X$HPUX_IA64_MODE" = X32; then
18181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18183 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18189 hardcode_into_libs=yes
18190 dynamic_linker="$host_os dld.sl"
18191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18200 dynamic_linker="$host_os dld.sl"
18201 shlibpath_var=SHLIB_PATH
18202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18208 postinstall_cmds='chmod 555 $lib'
18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18216 soname_spec='${libname}${release}${shared_ext}$major'
18217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18218 shlibpath_var=LD_LIBRARY_PATH
18219 shlibpath_overrides_runpath=no
18220 hardcode_into_libs=yes
18223 irix5* | irix6* | nonstopux*)
18225 nonstopux*) version_type=nonstopux ;;
18227 if test "$lt_cv_prog_gnu_ld" = yes; then
18235 soname_spec='${libname}${release}${shared_ext}$major'
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18238 irix5* | nonstopux*)
18239 libsuff= shlibsuff=
18242 case $LD in # libtool.m4 will add one of these switches to LD
18243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18244 libsuff= shlibsuff= libmagic=32-bit;;
18245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18246 libsuff=32 shlibsuff=N32 libmagic=N32;;
18247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18249 *) libsuff= shlibsuff= libmagic=never-match;;
18253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18254 shlibpath_overrides_runpath=no
18255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18257 hardcode_into_libs=yes
18260 # No shared lib support for Linux oldld, aout, or coff.
18261 linux*oldld* | linux*aout* | linux*coff*)
18265 # This must be Linux ELF.
18266 linux* | k*bsd*-gnu)
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271 soname_spec='${libname}${release}${shared_ext}$major'
18272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18273 shlibpath_var=LD_LIBRARY_PATH
18274 shlibpath_overrides_runpath=no
18275 # This implies no fast_install, which is unacceptable.
18276 # Some rework will be needed to allow for fast_install
18277 # before this can be enabled.
18278 hardcode_into_libs=yes
18279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18282 # Append ld.so.conf contents to the search path
18283 if test -f /etc/ld.so.conf; then
18284 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' ' '`
18285 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18288 # We used to test for /lib/ld.so.1 and disable shared libraries on
18289 # powerpc, because MkLinux only supported shared libraries with the
18290 # GNU dynamic linker. Since this was broken with cross compilers,
18291 # most powerpc-linux boxes support dynamic linking these days and
18292 # people can always --disable-shared, the test was removed, and we
18293 # assume the GNU/Linux dynamic linker is in use.
18294 dynamic_linker='GNU/Linux ld.so'
18301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18304 dynamic_linker='NetBSD (a.out) ld.so'
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18307 soname_spec='${libname}${release}${shared_ext}$major'
18308 dynamic_linker='NetBSD ld.elf_so'
18310 shlibpath_var=LD_LIBRARY_PATH
18311 shlibpath_overrides_runpath=yes
18312 hardcode_into_libs=yes
18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318 shlibpath_var=LD_LIBRARY_PATH
18319 shlibpath_overrides_runpath=yes
18326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18327 soname_spec='${libname}${release}${shared_ext}$major'
18328 shlibpath_var=LD_LIBRARY_PATH
18329 shlibpath_overrides_runpath=yes
18334 sys_lib_dlsearch_path_spec="/usr/lib"
18336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18338 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18339 *) need_version=no ;;
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18343 shlibpath_var=LD_LIBRARY_PATH
18344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18346 openbsd2.[89] | openbsd2.[89].*)
18347 shlibpath_overrides_runpath=no
18350 shlibpath_overrides_runpath=yes
18354 shlibpath_overrides_runpath=yes
18359 libname_spec='$name'
18362 library_names_spec='$libname${shared_ext} $libname.a'
18363 dynamic_linker='OS/2 ld.exe'
18364 shlibpath_var=LIBPATH
18367 osf3* | osf4* | osf5*)
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 shlibpath_var=LD_LIBRARY_PATH
18389 shlibpath_overrides_runpath=yes
18390 hardcode_into_libs=yes
18391 # ldd complains unless libraries are executable
18392 postinstall_cmds='chmod +x $lib'
18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18399 shlibpath_var=LD_LIBRARY_PATH
18400 shlibpath_overrides_runpath=yes
18401 if test "$with_gnu_ld" = yes; then
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18410 soname_spec='${libname}${release}${shared_ext}$major'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 case $host_vendor in
18414 shlibpath_overrides_runpath=no
18416 export_dynamic_flag_spec='${wl}-Blargedynsym'
18417 runpath_var=LD_RUN_PATH
18425 shlibpath_overrides_runpath=no
18426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18432 if test -d /usr/nec ;then
18434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18435 soname_spec='$libname${shared_ext}.$major'
18436 shlibpath_var=LD_LIBRARY_PATH
18440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18441 version_type=freebsd-elf
18444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18445 soname_spec='${libname}${release}${shared_ext}$major'
18446 shlibpath_var=LD_LIBRARY_PATH
18447 hardcode_into_libs=yes
18448 if test "$with_gnu_ld" = yes; then
18449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18450 shlibpath_overrides_runpath=no
18452 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18453 shlibpath_overrides_runpath=yes
18456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18460 sys_lib_dlsearch_path_spec='/usr/lib'
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 shlibpath_var=LD_LIBRARY_PATH
18474 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18475 $as_echo "$dynamic_linker" >&6; }
18476 test "$dynamic_linker" = no && can_build_shared=no
18478 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18479 $as_echo_n "(cached) " >&6
18481 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18484 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18485 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18486 $as_echo_n "(cached) " >&6
18488 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18491 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18494 if test "$GCC" = yes; then
18495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18498 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18500 hardcode_action_F77=
18501 if test -n "$hardcode_libdir_flag_spec_F77" || \
18502 test -n "$runpath_var_F77" || \
18503 test "X$hardcode_automatic_F77" = "Xyes" ; then
18505 # We can hardcode non-existant directories.
18506 if test "$hardcode_direct_F77" != no &&
18507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18508 # have to relink, otherwise we might link with an installed library
18509 # when we should be linking with a yet-to-be-installed one
18510 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18511 test "$hardcode_minus_L_F77" != no; then
18512 # Linking always hardcodes the temporary library directory.
18513 hardcode_action_F77=relink
18515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18516 hardcode_action_F77=immediate
18519 # We cannot hardcode anything, or else we can only hardcode existing
18521 hardcode_action_F77=unsupported
18523 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18524 $as_echo "$hardcode_action_F77" >&6; }
18526 if test "$hardcode_action_F77" = relink; then
18527 # Fast installation is not supported
18528 enable_fast_install=no
18529 elif test "$shlibpath_overrides_runpath" = yes ||
18530 test "$enable_shared" = no; then
18531 # Fast installation is not necessary
18532 enable_fast_install=needless
18536 # The else clause should only fire when bootstrapping the
18537 # libtool distribution, otherwise you forgot to ship ltmain.sh
18538 # with your package, and you will get complaints that there are
18539 # no rules to generate ltmain.sh.
18540 if test -f "$ltmain"; then
18541 # See if we are running on zsh, and set the options which allow our commands through
18542 # without removal of \ escapes.
18543 if test -n "${ZSH_VERSION+set}" ; then
18544 setopt NO_GLOB_SUBST
18546 # Now quote all the things that may contain metacharacters while being
18547 # careful not to overquote the AC_SUBSTed values. We take copies of the
18548 # variables and quote the copies for generation of the libtool script.
18549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18551 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18552 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18553 deplibs_check_method reload_flag reload_cmds need_locks \
18554 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18555 lt_cv_sys_global_symbol_to_c_name_address \
18556 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18557 old_postinstall_cmds old_postuninstall_cmds \
18561 lt_prog_compiler_wl_F77 \
18562 lt_prog_compiler_pic_F77 \
18563 lt_prog_compiler_static_F77 \
18564 lt_prog_compiler_no_builtin_flag_F77 \
18565 export_dynamic_flag_spec_F77 \
18566 thread_safe_flag_spec_F77 \
18567 whole_archive_flag_spec_F77 \
18568 enable_shared_with_static_runtimes_F77 \
18569 old_archive_cmds_F77 \
18570 old_archive_from_new_cmds_F77 \
18571 predep_objects_F77 \
18572 postdep_objects_F77 \
18575 compiler_lib_search_path_F77 \
18576 compiler_lib_search_dirs_F77 \
18578 archive_expsym_cmds_F77 \
18579 postinstall_cmds_F77 \
18580 postuninstall_cmds_F77 \
18581 old_archive_from_expsyms_cmds_F77 \
18582 allow_undefined_flag_F77 \
18583 no_undefined_flag_F77 \
18584 export_symbols_cmds_F77 \
18585 hardcode_libdir_flag_spec_F77 \
18586 hardcode_libdir_flag_spec_ld_F77 \
18587 hardcode_libdir_separator_F77 \
18588 hardcode_automatic_F77 \
18590 module_expsym_cmds_F77 \
18591 lt_cv_prog_compiler_c_o_F77 \
18592 fix_srcfile_path_F77 \
18593 exclude_expsyms_F77 \
18594 include_expsyms_F77; do
18597 old_archive_cmds_F77 | \
18598 old_archive_from_new_cmds_F77 | \
18599 archive_cmds_F77 | \
18600 archive_expsym_cmds_F77 | \
18601 module_cmds_F77 | \
18602 module_expsym_cmds_F77 | \
18603 old_archive_from_expsyms_cmds_F77 | \
18604 export_symbols_cmds_F77 | \
18605 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18606 postinstall_cmds | postuninstall_cmds | \
18607 old_postinstall_cmds | old_postuninstall_cmds | \
18608 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18609 # Double-quote double-evaled strings.
18610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18619 *'\$0 --fallback-echo"')
18620 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18626 cat <<__EOF__ >> "$cfgfile"
18627 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18629 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18631 # Shell to use when invoking shell scripts.
18634 # Whether or not to build shared libraries.
18635 build_libtool_libs=$enable_shared
18637 # Whether or not to build static libraries.
18638 build_old_libs=$enable_static
18640 # Whether or not to add -lc for building shared libraries.
18641 build_libtool_need_lc=$archive_cmds_need_lc_F77
18643 # Whether or not to disallow shared libs when runtime libs are static
18644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18646 # Whether or not to optimize for fast installation.
18647 fast_install=$enable_fast_install
18650 host_alias=$host_alias
18654 # The build system.
18655 build_alias=$build_alias
18659 # An echo program that does not interpret backslashes.
18664 AR_FLAGS=$lt_AR_FLAGS
18669 # LTCC compiler flags.
18670 LTCFLAGS=$lt_LTCFLAGS
18672 # A language-specific compiler.
18673 CC=$lt_compiler_F77
18675 # Is the compiler the GNU C compiler?
18681 # The linker used to build libraries.
18684 # Whether we need hard or soft links.
18687 # A BSD-compatible nm program.
18690 # A symbol stripping program
18693 # Used to examine libraries when file_magic_cmd begins "file"
18694 MAGIC_CMD=$MAGIC_CMD
18696 # Used on cygwin: DLL creation program.
18699 # Used on cygwin: object dumper.
18702 # Used on cygwin: assembler.
18705 # The name of the directory that contains temporary libtool files.
18708 # How to create reloadable object files.
18709 reload_flag=$lt_reload_flag
18710 reload_cmds=$lt_reload_cmds
18712 # How to pass a linker flag through the compiler.
18713 wl=$lt_lt_prog_compiler_wl_F77
18715 # Object file suffix (normally "o").
18716 objext="$ac_objext"
18718 # Old archive suffix (normally "a").
18721 # Shared library suffix (normally ".so").
18722 shrext_cmds='$shrext_cmds'
18724 # Executable file suffix (normally "").
18727 # Additional compiler flags for building library objects.
18728 pic_flag=$lt_lt_prog_compiler_pic_F77
18731 # What is the maximum length of a command?
18732 max_cmd_len=$lt_cv_sys_max_cmd_len
18734 # Does compiler simultaneously support -c and -o options?
18735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18737 # Must we lock files when doing compilation?
18738 need_locks=$lt_need_locks
18740 # Do we need the lib prefix for modules?
18741 need_lib_prefix=$need_lib_prefix
18743 # Do we need a version for libraries?
18744 need_version=$need_version
18746 # Whether dlopen is supported.
18747 dlopen_support=$enable_dlopen
18749 # Whether dlopen of programs is supported.
18750 dlopen_self=$enable_dlopen_self
18752 # Whether dlopen of statically linked programs is supported.
18753 dlopen_self_static=$enable_dlopen_self_static
18755 # Compiler flag to prevent dynamic linking.
18756 link_static_flag=$lt_lt_prog_compiler_static_F77
18758 # Compiler flag to turn off builtin functions.
18759 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18761 # Compiler flag to allow reflexive dlopens.
18762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18764 # Compiler flag to generate shared objects directly from archives.
18765 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18767 # Compiler flag to generate thread-safe objects.
18768 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18770 # Library versioning type.
18771 version_type=$version_type
18773 # Format of library name prefix.
18774 libname_spec=$lt_libname_spec
18776 # List of archive names. First name is the real one, the rest are links.
18777 # The last name is the one that the linker finds with -lNAME.
18778 library_names_spec=$lt_library_names_spec
18780 # The coded name of the library, if different from the real name.
18781 soname_spec=$lt_soname_spec
18783 # Commands used to build and install an old-style archive.
18785 old_archive_cmds=$lt_old_archive_cmds_F77
18786 old_postinstall_cmds=$lt_old_postinstall_cmds
18787 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18789 # Create an old-style archive from a shared archive.
18790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18792 # Create a temporary old-style archive to link instead of a shared archive.
18793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18795 # Commands used to build and install a shared archive.
18796 archive_cmds=$lt_archive_cmds_F77
18797 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18798 postinstall_cmds=$lt_postinstall_cmds
18799 postuninstall_cmds=$lt_postuninstall_cmds
18801 # Commands used to build a loadable module (assumed same as above if empty)
18802 module_cmds=$lt_module_cmds_F77
18803 module_expsym_cmds=$lt_module_expsym_cmds_F77
18805 # Commands to strip libraries.
18806 old_striplib=$lt_old_striplib
18807 striplib=$lt_striplib
18809 # Dependencies to place before the objects being linked to create a
18811 predep_objects=$lt_predep_objects_F77
18813 # Dependencies to place after the objects being linked to create a
18815 postdep_objects=$lt_postdep_objects_F77
18817 # Dependencies to place before the objects being linked to create a
18819 predeps=$lt_predeps_F77
18821 # Dependencies to place after the objects being linked to create a
18823 postdeps=$lt_postdeps_F77
18825 # The directories searched by this compiler when creating a shared
18827 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18829 # The library search path used internally by the compiler when linking
18830 # a shared library.
18831 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18833 # Method to check whether dependent libraries are shared objects.
18834 deplibs_check_method=$lt_deplibs_check_method
18836 # Command to use when deplibs_check_method == file_magic.
18837 file_magic_cmd=$lt_file_magic_cmd
18839 # Flag that allows shared libraries with undefined symbols to be built.
18840 allow_undefined_flag=$lt_allow_undefined_flag_F77
18842 # Flag that forces no undefined symbols.
18843 no_undefined_flag=$lt_no_undefined_flag_F77
18845 # Commands used to finish a libtool library installation in a directory.
18846 finish_cmds=$lt_finish_cmds
18848 # Same as above, but a single script fragment to be evaled but not shown.
18849 finish_eval=$lt_finish_eval
18851 # Take the output of nm and produce a listing of raw symbols and C names.
18852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18854 # Transform the output of nm in a proper C declaration
18855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18857 # Transform the output of nm in a C name address pair
18858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18860 # This is the shared library runtime path variable.
18861 runpath_var=$runpath_var
18863 # This is the shared library path variable.
18864 shlibpath_var=$shlibpath_var
18866 # Is shlibpath searched before the hard-coded library search path?
18867 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18869 # How to hardcode a shared library path into an executable.
18870 hardcode_action=$hardcode_action_F77
18872 # Whether we should hardcode library paths into libraries.
18873 hardcode_into_libs=$hardcode_into_libs
18875 # Flag to hardcode \$libdir into a binary during linking.
18876 # This must work even if \$libdir does not exist.
18877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18879 # If ld is used when linking, flag to hardcode \$libdir into
18880 # a binary during linking. This must work even if \$libdir does
18882 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18884 # Whether we need a single -rpath flag with a separated argument.
18885 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18887 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18888 # resulting binary.
18889 hardcode_direct=$hardcode_direct_F77
18891 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18892 # resulting binary.
18893 hardcode_minus_L=$hardcode_minus_L_F77
18895 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18896 # the resulting binary.
18897 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18899 # Set to yes if building a shared library automatically hardcodes DIR into the library
18900 # and all subsequent libraries and executables linked against it.
18901 hardcode_automatic=$hardcode_automatic_F77
18903 # Variables whose values should be saved in libtool wrapper scripts and
18904 # restored at relink time.
18905 variables_saved_for_relink="$variables_saved_for_relink"
18907 # Whether libtool must link a program against all its dependency libraries.
18908 link_all_deplibs=$link_all_deplibs_F77
18910 # Compile-time system search path for libraries
18911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18913 # Run-time system search path for libraries
18914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18916 # Fix the shell variable \$srcfile for the compiler.
18917 fix_srcfile_path=$lt_fix_srcfile_path
18919 # Set to yes if exported symbols are required.
18920 always_export_symbols=$always_export_symbols_F77
18922 # The commands to list exported symbols.
18923 export_symbols_cmds=$lt_export_symbols_cmds_F77
18925 # The commands to extract the exported symbol list from a shared archive.
18926 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18928 # Symbols that should not be listed in the preloaded symbols.
18929 exclude_expsyms=$lt_exclude_expsyms_F77
18931 # Symbols that must always be exported.
18932 include_expsyms=$lt_include_expsyms_F77
18934 # ### END LIBTOOL TAG CONFIG: $tagname
18940 # If there is no Makefile yet, we rely on a make rule to execute
18941 # `config.status --recheck' to rerun these tests and create the
18942 # libtool script then.
18943 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18944 if test -f "$ltmain_in"; then
18945 test -f Makefile && make "$ltmain"
18951 ac_cpp='$CPP $CPPFLAGS'
18952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18964 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18967 # Source file extension for Java test sources.
18970 # Object file extension for compiled Java test sources.
18974 # Code to be used in simple compile tests
18975 lt_simple_compile_test_code="class foo {}"
18977 # Code to be used in simple link tests
18978 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18982 # If no C compiler was specified, use CC.
18985 # If no C compiler flags were specified, use CFLAGS.
18986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18988 # Allow CC to be a program name with arguments.
18992 # save warnings/boilerplate of simple test code
18993 ac_outfile=conftest.$ac_objext
18994 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18996 _lt_compiler_boilerplate=`cat conftest.err`
18999 ac_outfile=conftest.$ac_objext
19000 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19002 _lt_linker_boilerplate=`cat conftest.err`
19006 # Allow CC to be a program name with arguments.
19011 for cc_temp in $compiler""; do
19013 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19014 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19019 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19022 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19023 archive_cmds_need_lc_GCJ=no
19025 old_archive_cmds_GCJ=$old_archive_cmds
19028 lt_prog_compiler_no_builtin_flag_GCJ=
19030 if test "$GCC" = yes; then
19031 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19034 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19035 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19036 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19037 $as_echo_n "(cached) " >&6
19039 lt_cv_prog_compiler_rtti_exceptions=no
19040 ac_outfile=conftest.$ac_objext
19041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19042 lt_compiler_flag="-fno-rtti -fno-exceptions"
19043 # Insert the option either (1) after the last *FLAGS variable, or
19044 # (2) before a word containing "conftest.", or (3) at the end.
19045 # Note that $ac_compile itself does not contain backslashes and begins
19046 # with a dollar sign (not a hyphen), so the echo should work correctly.
19047 # The option is referenced via a variable to avoid confusing sed.
19048 lt_compile=`echo "$ac_compile" | $SED \
19049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19051 -e 's:$: $lt_compiler_flag:'`
19052 (eval echo "\"\$as_me:19052: $lt_compile\"" >&5)
19053 (eval "$lt_compile" 2>conftest.err)
19055 cat conftest.err >&5
19056 echo "$as_me:19056: \$? = $ac_status" >&5
19057 if (exit $ac_status) && test -s "$ac_outfile"; then
19058 # The compiler can only warn and ignore the option if not recognized
19059 # So say no if there are warnings other than the usual output.
19060 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19063 lt_cv_prog_compiler_rtti_exceptions=yes
19069 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19070 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19072 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19073 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19080 lt_prog_compiler_wl_GCJ=
19081 lt_prog_compiler_pic_GCJ=
19082 lt_prog_compiler_static_GCJ=
19084 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19085 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19087 if test "$GCC" = yes; then
19088 lt_prog_compiler_wl_GCJ='-Wl,'
19089 lt_prog_compiler_static_GCJ='-static'
19093 # All AIX code is PIC.
19094 if test "$host_cpu" = ia64; then
19095 # AIX 5 now supports IA64 processor
19096 lt_prog_compiler_static_GCJ='-Bstatic'
19101 # FIXME: we need at least 68020 code to build shared libraries, but
19102 # adding the `-m68020' flag to GCC prevents building anything better,
19104 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19108 # PIC is the default for these OSes.
19111 mingw* | cygwin* | pw32* | os2*)
19112 # This hack is so that the source file can tell whether it is being
19113 # built for inclusion in a dll (and should export symbols for example).
19114 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19115 # (--disable-auto-import) libraries
19119 darwin* | rhapsody*)
19120 # PIC is the default on this platform
19121 # Common symbols not allowed in MH_DYLIB files
19122 lt_prog_compiler_pic_GCJ='-fno-common'
19126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19127 # Instead, we relocate shared libraries at runtime.
19131 # Just because we use GCC doesn't mean we suddenly get shared libraries
19132 # on systems that don't support them.
19133 lt_prog_compiler_can_build_shared_GCJ=no
19138 if test -d /usr/nec; then
19139 lt_prog_compiler_pic_GCJ=-Kconform_pic
19144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19145 # not for PA HP-UX.
19151 lt_prog_compiler_pic_GCJ='-fPIC'
19157 lt_prog_compiler_pic_GCJ='-fPIC'
19161 # PORTME Check for flag to pass linker flags through the system compiler.
19164 lt_prog_compiler_wl_GCJ='-Wl,'
19165 if test "$host_cpu" = ia64; then
19166 # AIX 5 now supports IA64 processor
19167 lt_prog_compiler_static_GCJ='-Bstatic'
19169 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19173 # PIC is the default on this platform
19174 # Common symbols not allowed in MH_DYLIB files
19175 case $cc_basename in
19177 lt_prog_compiler_pic_GCJ='-qnocommon'
19178 lt_prog_compiler_wl_GCJ='-Wl,'
19183 mingw* | cygwin* | pw32* | os2*)
19184 # This hack is so that the source file can tell whether it is being
19185 # built for inclusion in a dll (and should export symbols for example).
19189 hpux9* | hpux10* | hpux11*)
19190 lt_prog_compiler_wl_GCJ='-Wl,'
19191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19192 # not for PA HP-UX.
19198 lt_prog_compiler_pic_GCJ='+Z'
19201 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19202 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19205 irix5* | irix6* | nonstopux*)
19206 lt_prog_compiler_wl_GCJ='-Wl,'
19207 # PIC (with -KPIC) is the default.
19208 lt_prog_compiler_static_GCJ='-non_shared'
19212 lt_prog_compiler_pic_GCJ='-KPIC'
19213 lt_prog_compiler_static_GCJ='-Bstatic'
19216 linux* | k*bsd*-gnu)
19217 case $cc_basename in
19219 lt_prog_compiler_wl_GCJ='-Wl,'
19220 lt_prog_compiler_pic_GCJ='-KPIC'
19221 lt_prog_compiler_static_GCJ='-static'
19223 pgcc* | pgf77* | pgf90* | pgf95*)
19224 # Portland Group compilers (*not* the Pentium gcc compiler,
19225 # which looks to be a dead project)
19226 lt_prog_compiler_wl_GCJ='-Wl,'
19227 lt_prog_compiler_pic_GCJ='-fpic'
19228 lt_prog_compiler_static_GCJ='-Bstatic'
19231 lt_prog_compiler_wl_GCJ='-Wl,'
19232 # All Alpha code is PIC.
19233 lt_prog_compiler_static_GCJ='-non_shared'
19236 case `$CC -V 2>&1 | sed 5q` in
19239 lt_prog_compiler_pic_GCJ='-KPIC'
19240 lt_prog_compiler_static_GCJ='-Bstatic'
19241 lt_prog_compiler_wl_GCJ='-Wl,'
19244 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19245 lt_prog_compiler_pic_GCJ='-KPIC'
19246 lt_prog_compiler_static_GCJ='-Bstatic'
19247 lt_prog_compiler_wl_GCJ=''
19254 osf3* | osf4* | osf5*)
19255 lt_prog_compiler_wl_GCJ='-Wl,'
19256 # All OSF/1 code is PIC.
19257 lt_prog_compiler_static_GCJ='-non_shared'
19261 lt_prog_compiler_static_GCJ='-non_shared'
19265 lt_prog_compiler_pic_GCJ='-KPIC'
19266 lt_prog_compiler_static_GCJ='-Bstatic'
19267 case $cc_basename in
19268 f77* | f90* | f95*)
19269 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19271 lt_prog_compiler_wl_GCJ='-Wl,';;
19276 lt_prog_compiler_wl_GCJ='-Qoption ld '
19277 lt_prog_compiler_pic_GCJ='-PIC'
19278 lt_prog_compiler_static_GCJ='-Bstatic'
19281 sysv4 | sysv4.2uw2* | sysv4.3*)
19282 lt_prog_compiler_wl_GCJ='-Wl,'
19283 lt_prog_compiler_pic_GCJ='-KPIC'
19284 lt_prog_compiler_static_GCJ='-Bstatic'
19288 if test -d /usr/nec ;then
19289 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19290 lt_prog_compiler_static_GCJ='-Bstatic'
19294 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19295 lt_prog_compiler_wl_GCJ='-Wl,'
19296 lt_prog_compiler_pic_GCJ='-KPIC'
19297 lt_prog_compiler_static_GCJ='-Bstatic'
19301 lt_prog_compiler_wl_GCJ='-Wl,'
19302 lt_prog_compiler_can_build_shared_GCJ=no
19306 lt_prog_compiler_pic_GCJ='-pic'
19307 lt_prog_compiler_static_GCJ='-Bstatic'
19311 lt_prog_compiler_can_build_shared_GCJ=no
19316 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19317 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19320 # Check to make sure the PIC flag actually works.
19322 if test -n "$lt_prog_compiler_pic_GCJ"; then
19324 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19325 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19326 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
19327 $as_echo_n "(cached) " >&6
19329 lt_cv_prog_compiler_pic_works_GCJ=no
19330 ac_outfile=conftest.$ac_objext
19331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19332 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19333 # Insert the option either (1) after the last *FLAGS variable, or
19334 # (2) before a word containing "conftest.", or (3) at the end.
19335 # Note that $ac_compile itself does not contain backslashes and begins
19336 # with a dollar sign (not a hyphen), so the echo should work correctly.
19337 # The option is referenced via a variable to avoid confusing sed.
19338 lt_compile=`echo "$ac_compile" | $SED \
19339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19341 -e 's:$: $lt_compiler_flag:'`
19342 (eval echo "\"\$as_me:19342: $lt_compile\"" >&5)
19343 (eval "$lt_compile" 2>conftest.err)
19345 cat conftest.err >&5
19346 echo "$as_me:19346: \$? = $ac_status" >&5
19347 if (exit $ac_status) && test -s "$ac_outfile"; then
19348 # The compiler can only warn and ignore the option if not recognized
19349 # So say no if there are warnings other than the usual output.
19350 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19353 lt_cv_prog_compiler_pic_works_GCJ=yes
19359 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19360 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19362 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19363 case $lt_prog_compiler_pic_GCJ in
19365 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19368 lt_prog_compiler_pic_GCJ=
19369 lt_prog_compiler_can_build_shared_GCJ=no
19374 # For platforms which do not support PIC, -DPIC is meaningless:
19376 lt_prog_compiler_pic_GCJ=
19379 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19384 # Check to make sure the static flag actually works.
19386 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19387 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19388 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19389 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
19390 $as_echo_n "(cached) " >&6
19392 lt_cv_prog_compiler_static_works_GCJ=no
19393 save_LDFLAGS="$LDFLAGS"
19394 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19397 # The linker can only warn and ignore the option if not recognized
19398 # So say no if there are warnings
19399 if test -s conftest.err; then
19400 # Append any errors to the config.log.
19401 cat conftest.err 1>&5
19402 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19404 if diff conftest.exp conftest.er2 >/dev/null; then
19405 lt_cv_prog_compiler_static_works_GCJ=yes
19408 lt_cv_prog_compiler_static_works_GCJ=yes
19412 LDFLAGS="$save_LDFLAGS"
19415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19416 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19418 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19421 lt_prog_compiler_static_GCJ=
19425 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19427 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19428 $as_echo_n "(cached) " >&6
19430 lt_cv_prog_compiler_c_o_GCJ=no
19431 $rm -r conftest 2>/dev/null
19435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19437 lt_compiler_flag="-o out/conftest2.$ac_objext"
19438 # Insert the option either (1) after the last *FLAGS variable, or
19439 # (2) before a word containing "conftest.", or (3) at the end.
19440 # Note that $ac_compile itself does not contain backslashes and begins
19441 # with a dollar sign (not a hyphen), so the echo should work correctly.
19442 lt_compile=`echo "$ac_compile" | $SED \
19443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19445 -e 's:$: $lt_compiler_flag:'`
19446 (eval echo "\"\$as_me:19446: $lt_compile\"" >&5)
19447 (eval "$lt_compile" 2>out/conftest.err)
19449 cat out/conftest.err >&5
19450 echo "$as_me:19450: \$? = $ac_status" >&5
19451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19453 # The compiler can only warn and ignore the option if not recognized
19454 # So say no if there are warnings
19455 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19458 lt_cv_prog_compiler_c_o_GCJ=yes
19463 # SGI C++ compiler will create directory out/ii_files/ for
19464 # template instantiation
19465 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19466 $rm out/* && rmdir out
19472 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19473 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19476 hard_links="nottested"
19477 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19478 # do not overwrite the value of need_locks provided by the user
19479 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19480 $as_echo_n "checking if we can lock with hard links... " >&6; }
19483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19485 ln conftest.a conftest.b 2>&5 || hard_links=no
19486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19487 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19488 $as_echo "$hard_links" >&6; }
19489 if test "$hard_links" = no; then
19490 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19491 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19498 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19499 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19502 allow_undefined_flag_GCJ=
19503 enable_shared_with_static_runtimes_GCJ=no
19505 archive_expsym_cmds_GCJ=
19506 old_archive_From_new_cmds_GCJ=
19507 old_archive_from_expsyms_cmds_GCJ=
19508 export_dynamic_flag_spec_GCJ=
19509 whole_archive_flag_spec_GCJ=
19510 thread_safe_flag_spec_GCJ=
19511 hardcode_libdir_flag_spec_GCJ=
19512 hardcode_libdir_flag_spec_ld_GCJ=
19513 hardcode_libdir_separator_GCJ=
19514 hardcode_direct_GCJ=no
19515 hardcode_minus_L_GCJ=no
19516 hardcode_shlibpath_var_GCJ=unsupported
19517 link_all_deplibs_GCJ=unknown
19518 hardcode_automatic_GCJ=no
19520 module_expsym_cmds_GCJ=
19521 always_export_symbols_GCJ=no
19522 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19523 # include_expsyms should be a list of space-separated symbols to be *always*
19524 # included in the symbol list
19525 include_expsyms_GCJ=
19526 # exclude_expsyms can be an extended regexp of symbols to exclude
19527 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19528 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19529 # as well as any symbol that contains `d'.
19530 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19531 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19532 # platforms (ab)use it in PIC code, but their linkers get confused if
19533 # the symbol is explicitly referenced. Since portable code cannot
19534 # rely on this symbol name, it's probably fine to never include it in
19535 # preloaded symbol tables.
19536 # Exclude shared library initialization/finalization symbols.
19537 extract_expsyms_cmds=
19538 # Just being paranoid about ensuring that cc_basename is set.
19539 for cc_temp in $compiler""; do
19541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19547 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19550 cygwin* | mingw* | pw32*)
19551 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19552 # When not using gcc, we currently assume that we are using
19553 # Microsoft Visual C++.
19554 if test "$GCC" != yes; then
19559 # we just hope/assume this is gcc and not c89 (= MSVC++)
19568 if test "$with_gnu_ld" = yes; then
19569 # If archive_cmds runs LD, not CC, wlarc should be empty
19572 # Set some defaults for GNU ld with shared library support. These
19573 # are reset later if shared libraries are not supported. Putting them
19574 # here allows them to be overridden if necessary.
19575 runpath_var=LD_RUN_PATH
19576 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19577 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19578 # ancient GNU ld didn't support --whole-archive et. al.
19579 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19580 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19582 whole_archive_flag_spec_GCJ=
19584 supports_anon_versioning=no
19585 case `$LD -v 2>/dev/null` in
19586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19589 *\ 2.11.*) ;; # other 2.11 versions
19590 *) supports_anon_versioning=yes ;;
19593 # See if GNU ld supports shared libraries.
19596 # On AIX/PPC, the GNU linker is very broken
19597 if test "$host_cpu" != ia64; then
19601 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19602 *** to be unable to reliably create shared libraries on AIX.
19603 *** Therefore, libtool is disabling shared libraries support. If you
19604 *** really care for shared libraries, you may want to modify your PATH
19605 *** so that a non-GNU linker is found, and then restart.
19612 archive_cmds_GCJ='$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)'
19613 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19614 hardcode_minus_L_GCJ=yes
19616 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19617 # that the semantics of dynamic libraries on AmigaOS, at least up
19618 # to version 4, is to share data among multiple programs linked
19619 # with the same dynamic library. Since this doesn't match the
19620 # behavior of shared libraries on other platforms, we can't use
19626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19627 allow_undefined_flag_GCJ=unsupported
19628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19629 # support --undefined. This deserves some investigation. FIXME
19630 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19636 cygwin* | mingw* | pw32*)
19637 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19638 # as there is no search path for DLLs.
19639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19640 allow_undefined_flag_GCJ=unsupported
19641 always_export_symbols_GCJ=no
19642 enable_shared_with_static_runtimes_GCJ=yes
19643 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19645 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19646 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19647 # If the export-symbols file already is a .def file (1st line
19648 # is EXPORTS), use it as is; otherwise, prepend...
19649 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19650 cp $export_symbols $output_objdir/$soname.def;
19652 echo EXPORTS > $output_objdir/$soname.def;
19653 cat $export_symbols >> $output_objdir/$soname.def;
19655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19662 hardcode_direct_GCJ=no
19663 hardcode_shlibpath_var_GCJ=no
19664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19665 export_dynamic_flag_spec_GCJ='${wl}-E'
19666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19667 # Instead, shared libraries are loaded at an image base (0x10000000 by
19668 # default) and relocated if they conflict, which is a slow very memory
19669 # consuming and fragmenting process. To avoid this, we pick a random,
19670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19671 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19672 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19673 archive_expsym_cmds_GCJ='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'
19676 gnu* | linux* | k*bsd*-gnu)
19677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19679 case $cc_basename,$host_cpu in
19680 pgcc*) # Portland Group C compiler
19681 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19682 tmp_addflag=' $pic_flag'
19684 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19685 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19686 tmp_addflag=' $pic_flag -Mnomain' ;;
19687 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19688 tmp_addflag=' -i_dynamic' ;;
19689 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19690 tmp_addflag=' -i_dynamic -nofor_main' ;;
19691 ifc* | ifort*) # Intel Fortran compiler
19692 tmp_addflag=' -nofor_main' ;;
19694 case `$CC -V 2>&1 | sed 5q` in
19695 *Sun\ C*) # Sun C 5.9
19696 whole_archive_flag_spec_GCJ='${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'
19697 tmp_sharedflag='-G' ;;
19698 *Sun\ F*) # Sun Fortran 8.3
19699 tmp_sharedflag='-G' ;;
19701 tmp_sharedflag='-shared' ;;
19703 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19705 if test $supports_anon_versioning = yes; then
19706 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19708 $echo "local: *; };" >> $output_objdir/$libname.ver~
19709 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19718 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19721 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19722 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19727 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19732 *** create shared libraries on Solaris systems. Therefore, libtool
19733 *** is disabling shared libraries support. We urge you to upgrade GNU
19734 *** binutils to release 2.9.1 or newer. Another option is to modify
19735 *** your PATH or compiler configuration so that the native linker is
19736 *** used, and then restart.
19739 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19740 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19741 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19748 case `$LD -v 2>&1` in
19749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19753 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19754 *** reliably create shared libraries on SCO systems. Therefore, libtool
19755 *** is disabling shared libraries support. We urge you to upgrade GNU
19756 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19757 *** your PATH or compiler configuration so that the native linker is
19758 *** used, and then restart.
19763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19764 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19765 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19766 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19775 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19777 hardcode_direct_GCJ=yes
19778 hardcode_shlibpath_var_GCJ=no
19782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19783 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19784 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19791 if test "$ld_shlibs_GCJ" = no; then
19793 hardcode_libdir_flag_spec_GCJ=
19794 export_dynamic_flag_spec_GCJ=
19795 whole_archive_flag_spec_GCJ=
19798 # PORTME fill in a description of your system's linker (not GNU ld)
19801 allow_undefined_flag_GCJ=unsupported
19802 always_export_symbols_GCJ=yes
19803 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19804 # Note: this linker hardcodes the directories in LIBPATH if there
19805 # are no directories specified by -L.
19806 hardcode_minus_L_GCJ=yes
19807 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19808 # Neither direct hardcoding nor static linking is supported with a
19810 hardcode_direct_GCJ=unsupported
19815 if test "$host_cpu" = ia64; then
19816 # On IA64, the linker does run time linking by default, so we don't
19817 # have to do anything special.
19818 aix_use_runtimelinking=no
19819 exp_sym_flag='-Bexport'
19822 # If we're using GNU nm, then we don't want the "-C" option.
19823 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19824 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19825 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19827 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19829 aix_use_runtimelinking=no
19831 # Test if we are trying to use run time linking or normal
19832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19833 # need to do runtime linking.
19834 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19835 for ld_flag in $LDFLAGS; do
19836 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19837 aix_use_runtimelinking=yes
19844 exp_sym_flag='-bexport'
19845 no_entry_flag='-bnoentry'
19848 # When large executables or shared objects are built, AIX ld can
19849 # have problems creating the table of contents. If linking a library
19850 # or program results in "error TOC overflow" add -mminimal-toc to
19851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19854 archive_cmds_GCJ=''
19855 hardcode_direct_GCJ=yes
19856 hardcode_libdir_separator_GCJ=':'
19857 link_all_deplibs_GCJ=yes
19859 if test "$GCC" = yes; then
19860 case $host_os in aix4.[012]|aix4.[012].*)
19861 # We only want to do this on AIX 4.2 and lower, the check
19862 # below for broken collect2 doesn't work under 4.3+
19863 collect2name=`${CC} -print-prog-name=collect2`
19864 if test -f "$collect2name" && \
19865 strings "$collect2name" | grep resolve_lib_name >/dev/null
19867 # We have reworked collect2
19870 # We have old collect2
19871 hardcode_direct_GCJ=unsupported
19872 # It fails to find uninstalled libraries when the uninstalled
19873 # path is not listed in the libpath. Setting hardcode_minus_L
19874 # to unsupported forces relinking
19875 hardcode_minus_L_GCJ=yes
19876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19877 hardcode_libdir_separator_GCJ=
19881 shared_flag='-shared'
19882 if test "$aix_use_runtimelinking" = yes; then
19883 shared_flag="$shared_flag "'${wl}-G'
19887 if test "$host_cpu" = ia64; then
19888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19889 # chokes on -Wl,-G. The following line is correct:
19892 if test "$aix_use_runtimelinking" = yes; then
19893 shared_flag='${wl}-G'
19895 shared_flag='${wl}-bM:SRE'
19900 # It seems that -bexpall does not export symbols beginning with
19901 # underscore (_), so it is better to generate a list of symbols to export.
19902 always_export_symbols_GCJ=yes
19903 if test "$aix_use_runtimelinking" = yes; then
19904 # Warning - without using the other runtime loading flags (-brtl),
19905 # -berok will link without error, but may produce a broken library.
19906 allow_undefined_flag_GCJ='-berok'
19907 # Determine the default libpath from the value encoded in an empty executable.
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19930 $as_echo "$ac_try_echo") >&5
19931 (eval "$ac_link") 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && {
19938 test -z "$ac_c_werror_flag" ||
19939 test ! -s conftest.err
19940 } && test -s conftest$ac_exeext && {
19941 test "$cross_compiling" = yes ||
19942 $as_test_x conftest$ac_exeext
19945 lt_aix_libpath_sed='
19946 /Import File Strings/,/^$/ {
19952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19953 # Check for a 64-bit object if we didn't find anything.
19954 if test -z "$aix_libpath"; then
19955 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19958 $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19964 rm -rf conftest.dSYM
19965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19966 conftest$ac_exeext conftest.$ac_ext
19967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19969 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19970 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19972 if test "$host_cpu" = ia64; then
19973 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19974 allow_undefined_flag_GCJ="-z nodefs"
19975 archive_expsym_cmds_GCJ="\$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"
19977 # Determine the default libpath from the value encoded in an empty executable.
19978 cat >conftest.$ac_ext <<_ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20000 $as_echo "$ac_try_echo") >&5
20001 (eval "$ac_link") 2>conftest.er1
20003 grep -v '^ *+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest$ac_exeext && {
20011 test "$cross_compiling" = yes ||
20012 $as_test_x conftest$ac_exeext
20015 lt_aix_libpath_sed='
20016 /Import File Strings/,/^$/ {
20022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20023 # Check for a 64-bit object if we didn't find anything.
20024 if test -z "$aix_libpath"; then
20025 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20028 $as_echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20034 rm -rf conftest.dSYM
20035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20036 conftest$ac_exeext conftest.$ac_ext
20037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20039 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20040 # Warning - without using the other run time loading flags,
20041 # -berok will link without error, but may produce a broken library.
20042 no_undefined_flag_GCJ=' ${wl}-bernotok'
20043 allow_undefined_flag_GCJ=' ${wl}-berok'
20044 # Exported symbols can be pulled into shared objects from archives
20045 whole_archive_flag_spec_GCJ='$convenience'
20046 archive_cmds_need_lc_GCJ=yes
20047 # This is similar to how AIX traditionally builds its shared libraries.
20048 archive_expsym_cmds_GCJ="\$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'
20054 archive_cmds_GCJ='$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)'
20055 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20056 hardcode_minus_L_GCJ=yes
20057 # see comment about different semantics on the GNU ld section
20062 export_dynamic_flag_spec_GCJ=-rdynamic
20065 cygwin* | mingw* | pw32*)
20066 # When not using gcc, we currently assume that we are using
20067 # Microsoft Visual C++.
20068 # hardcode_libdir_flag_spec is actually meaningless, as there is
20069 # no search path for DLLs.
20070 hardcode_libdir_flag_spec_GCJ=' '
20071 allow_undefined_flag_GCJ=unsupported
20072 # Tell ltmain to make .lib files, not .a files.
20074 # Tell ltmain to make .dll files, not .so files.
20076 # FIXME: Setting linknames here is a bad hack.
20077 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20078 # The linker will automatically build a .lib file if we build a DLL.
20079 old_archive_From_new_cmds_GCJ='true'
20080 # FIXME: Should let the user specify the lib program.
20081 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20082 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20083 enable_shared_with_static_runtimes_GCJ=yes
20086 darwin* | rhapsody*)
20088 rhapsody* | darwin1.[012])
20089 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20092 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20093 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20095 case ${MACOSX_DEPLOYMENT_TARGET} in
20097 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20100 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20106 archive_cmds_need_lc_GCJ=no
20107 hardcode_direct_GCJ=no
20108 hardcode_automatic_GCJ=yes
20109 hardcode_shlibpath_var_GCJ=unsupported
20110 whole_archive_flag_spec_GCJ=''
20111 link_all_deplibs_GCJ=yes
20112 if test "$GCC" = yes ; then
20113 output_verbose_link_cmd='echo'
20114 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20115 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20116 archive_expsym_cmds_GCJ="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}"
20117 module_expsym_cmds_GCJ="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}"
20119 case $cc_basename in
20121 output_verbose_link_cmd='echo'
20122 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20123 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20124 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20125 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20126 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20137 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20138 hardcode_shlibpath_var_GCJ=no
20145 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20146 # support. Future versions do this automatically, but an explicit c++rt0.o
20147 # does not break anything, and helps significantly (at the cost of a little
20150 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20152 hardcode_direct_GCJ=yes
20153 hardcode_shlibpath_var_GCJ=no
20156 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20158 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20159 hardcode_direct_GCJ=yes
20160 hardcode_minus_L_GCJ=yes
20161 hardcode_shlibpath_var_GCJ=no
20164 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20165 freebsd* | dragonfly*)
20166 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20167 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20168 hardcode_direct_GCJ=yes
20169 hardcode_shlibpath_var_GCJ=no
20173 if test "$GCC" = yes; then
20174 archive_cmds_GCJ='$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'
20176 archive_cmds_GCJ='$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'
20178 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20179 hardcode_libdir_separator_GCJ=:
20180 hardcode_direct_GCJ=yes
20182 # hardcode_minus_L: Not really in the search PATH,
20183 # but as the default location of the library.
20184 hardcode_minus_L_GCJ=yes
20185 export_dynamic_flag_spec_GCJ='${wl}-E'
20189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20190 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20192 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20194 if test "$with_gnu_ld" = no; then
20195 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20196 hardcode_libdir_separator_GCJ=:
20198 hardcode_direct_GCJ=yes
20199 export_dynamic_flag_spec_GCJ='${wl}-E'
20201 # hardcode_minus_L: Not really in the search PATH,
20202 # but as the default location of the library.
20203 hardcode_minus_L_GCJ=yes
20208 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20211 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20214 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20217 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20223 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20226 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20229 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20233 if test "$with_gnu_ld" = no; then
20234 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20235 hardcode_libdir_separator_GCJ=:
20239 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20240 hardcode_direct_GCJ=no
20241 hardcode_shlibpath_var_GCJ=no
20244 hardcode_direct_GCJ=yes
20245 export_dynamic_flag_spec_GCJ='${wl}-E'
20247 # hardcode_minus_L: Not really in the search PATH,
20248 # but as the default location of the library.
20249 hardcode_minus_L_GCJ=yes
20255 irix5* | irix6* | nonstopux*)
20256 if test "$GCC" = yes; then
20257 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20259 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20260 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20262 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20263 hardcode_libdir_separator_GCJ=:
20264 link_all_deplibs_GCJ=yes
20268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20269 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20271 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20273 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20274 hardcode_direct_GCJ=yes
20275 hardcode_shlibpath_var_GCJ=no
20279 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20280 hardcode_direct_GCJ=yes
20281 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20282 hardcode_libdir_separator_GCJ=:
20283 hardcode_shlibpath_var_GCJ=no
20287 if test -f /usr/libexec/ld.so; then
20288 hardcode_direct_GCJ=yes
20289 hardcode_shlibpath_var_GCJ=no
20290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20291 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20292 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20293 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20294 export_dynamic_flag_spec_GCJ='${wl}-E'
20297 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20298 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20299 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20302 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20314 hardcode_minus_L_GCJ=yes
20315 allow_undefined_flag_GCJ=unsupported
20316 archive_cmds_GCJ='$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'
20317 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20321 if test "$GCC" = yes; then
20322 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20323 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20325 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20326 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20329 hardcode_libdir_separator_GCJ=:
20332 osf4* | osf5*) # as osf3* with the addition of -msym flag
20333 if test "$GCC" = yes; then
20334 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20335 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20336 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20338 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20339 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20340 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20341 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20343 # Both c and cxx compiler support -rpath directly
20344 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20346 hardcode_libdir_separator_GCJ=:
20350 no_undefined_flag_GCJ=' -z text'
20351 if test "$GCC" = yes; then
20353 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20354 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20355 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20358 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20359 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20360 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20362 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20363 hardcode_shlibpath_var_GCJ=no
20365 solaris2.[0-5] | solaris2.[0-5].*) ;;
20367 # The compiler driver will combine and reorder linker options,
20368 # but understands `-z linker_flag'. GCC discards it without `$wl',
20369 # but is careful enough not to reorder.
20370 # Supported since Solaris 2.6 (maybe 2.5.1?)
20371 if test "$GCC" = yes; then
20372 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20374 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20378 link_all_deplibs_GCJ=yes
20382 if test "x$host_vendor" = xsequent; then
20383 # Use $CC to link under sequent, because it throws in some extra .o
20384 # files that make .init and .fini sections work.
20385 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20387 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20390 hardcode_direct_GCJ=yes
20391 hardcode_minus_L_GCJ=yes
20392 hardcode_shlibpath_var_GCJ=no
20396 case $host_vendor in
20398 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20399 hardcode_direct_GCJ=yes # is this really true???
20402 ## LD is ld it makes a PLAMLIB
20403 ## CC just makes a GrossModule.
20404 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20405 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20406 hardcode_direct_GCJ=no
20409 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20410 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20413 runpath_var='LD_RUN_PATH'
20414 hardcode_shlibpath_var_GCJ=no
20418 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20419 hardcode_shlibpath_var_GCJ=no
20420 export_dynamic_flag_spec_GCJ='-Bexport'
20424 if test -d /usr/nec; then
20425 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20426 hardcode_shlibpath_var_GCJ=no
20427 runpath_var=LD_RUN_PATH
20428 hardcode_runpath_var=yes
20433 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20434 no_undefined_flag_GCJ='${wl}-z,text'
20435 archive_cmds_need_lc_GCJ=no
20436 hardcode_shlibpath_var_GCJ=no
20437 runpath_var='LD_RUN_PATH'
20439 if test "$GCC" = yes; then
20440 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20441 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20443 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20444 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20448 sysv5* | sco3.2v5* | sco5v6*)
20449 # Note: We can NOT use -z defs as we might desire, because we do not
20450 # link with -lc, and that would cause any symbols used from libc to
20451 # always be unresolved, which means just about no library would
20452 # ever link correctly. If we're not using GNU ld we use -z text
20453 # though, which does catch some bad symbols but isn't as heavy-handed
20455 no_undefined_flag_GCJ='${wl}-z,text'
20456 allow_undefined_flag_GCJ='${wl}-z,nodefs'
20457 archive_cmds_need_lc_GCJ=no
20458 hardcode_shlibpath_var_GCJ=no
20459 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20460 hardcode_libdir_separator_GCJ=':'
20461 link_all_deplibs_GCJ=yes
20462 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20463 runpath_var='LD_RUN_PATH'
20465 if test "$GCC" = yes; then
20466 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20467 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20469 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20470 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20476 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20477 hardcode_shlibpath_var_GCJ=no
20486 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20487 $as_echo "$ld_shlibs_GCJ" >&6; }
20488 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20491 # Do we need to explicitly link libc?
20493 case "x$archive_cmds_need_lc_GCJ" in
20495 # Assume -lc should be added
20496 archive_cmds_need_lc_GCJ=yes
20498 if test "$enable_shared" = yes && test "$GCC" = yes; then
20499 case $archive_cmds_GCJ in
20501 # FIXME: we may have to deal with multi-command sequences.
20504 # Test whether the compiler implicitly links with -lc since on some
20505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20506 # to ld, don't add -lc before -lgcc.
20507 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20508 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513 (eval $ac_compile) 2>&5
20515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } 2>conftest.err; then
20519 libobjs=conftest.$ac_objext
20521 wl=$lt_prog_compiler_wl_GCJ
20522 pic_flag=$lt_prog_compiler_pic_GCJ
20528 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20529 allow_undefined_flag_GCJ=
20530 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20531 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }
20536 archive_cmds_need_lc_GCJ=no
20538 archive_cmds_need_lc_GCJ=yes
20540 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20542 cat conftest.err 1>&5
20545 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20546 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20553 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20554 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20555 library_names_spec=
20556 libname_spec='lib$name'
20560 postuninstall_cmds=
20564 shlibpath_overrides_runpath=unknown
20566 dynamic_linker="$host_os ld.so"
20567 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20569 need_lib_prefix=unknown
20570 hardcode_into_libs=no
20572 # when you set need_version to no, make sure it does not cause -set_version
20573 # flags to be left without arguments
20574 need_version=unknown
20579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20580 shlibpath_var=LIBPATH
20582 # AIX 3 has no versioning support, so we append a major version to the name.
20583 soname_spec='${libname}${release}${shared_ext}$major'
20590 hardcode_into_libs=yes
20591 if test "$host_cpu" = ia64; then
20592 # AIX 5 supports IA64
20593 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20594 shlibpath_var=LD_LIBRARY_PATH
20596 # With GCC up to 2.95.x, collect2 would create an import file
20597 # for dependence libraries. The import file would start with
20598 # the line `#! .'. This would cause the generated library to
20599 # depend on `.', always an invalid library. This was fixed in
20600 # development snapshots of GCC prior to 3.0.
20602 aix4 | aix4.[01] | aix4.[01].*)
20603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20605 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20608 can_build_shared=no
20612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20613 # soname into executable. Probably we can add versioning support to
20614 # collect2, so additional links can be useful in future.
20615 if test "$aix_use_runtimelinking" = yes; then
20616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20617 # instead of lib<name>.a to let people know that these are not
20618 # typical AIX shared libraries.
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 # We preserve .a as extension for shared libraries through AIX4.2
20622 # and later when we are not doing run time linking.
20623 library_names_spec='${libname}${release}.a $libname.a'
20624 soname_spec='${libname}${release}${shared_ext}$major'
20626 shlibpath_var=LIBPATH
20631 library_names_spec='$libname.ixlibrary $libname.a'
20632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20633 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'
20637 library_names_spec='${libname}${shared_ext}'
20638 dynamic_linker="$host_os ld.so"
20639 shlibpath_var=LIBRARY_PATH
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646 soname_spec='${libname}${release}${shared_ext}$major'
20647 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20648 shlibpath_var=LD_LIBRARY_PATH
20649 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20650 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20651 # the default ld.so.conf also contains /usr/contrib/lib and
20652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20653 # libtool to hard-code these into programs
20656 cygwin* | mingw* | pw32*)
20657 version_type=windows
20662 case $GCC,$host_os in
20663 yes,cygwin* | yes,mingw* | yes,pw32*)
20664 library_names_spec='$libname.dll.a'
20665 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20666 postinstall_cmds='base_file=`basename \${file}`~
20667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20668 dldir=$destdir/`dirname \$dlpath`~
20669 test -d \$dldir || mkdir -p \$dldir~
20670 $install_prog $dir/$dlname \$dldir/$dlname~
20671 chmod a+x \$dldir/$dlname'
20672 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20673 dlpath=$dir/\$dldll~
20675 shlibpath_overrides_runpath=yes
20679 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20680 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20681 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20684 # MinGW DLLs use traditional 'lib' prefix
20685 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20686 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20687 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20688 # It is most probably a Windows format PATH printed by
20689 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20690 # path with ; separators, and with drive letters. We can handle the
20691 # drive letters (cygwin fileutils understands them), so leave them,
20692 # especially as we might pass files found there to a mingw objdump,
20693 # which wouldn't understand a cygwinified path. Ahh.
20694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20700 # pw32 DLLs use 'pw' prefix rather than 'lib'
20701 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20707 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20710 dynamic_linker='Win32 ld.exe'
20711 # FIXME: first we should search . and the directory the executable is in
20715 darwin* | rhapsody*)
20716 dynamic_linker="$host_os dyld"
20717 version_type=darwin
20720 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20721 soname_spec='${libname}${release}${major}$shared_ext'
20722 shlibpath_overrides_runpath=yes
20723 shlibpath_var=DYLD_LIBRARY_PATH
20724 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20734 soname_spec='${libname}${release}${shared_ext}$major'
20735 shlibpath_var=LD_LIBRARY_PATH
20742 freebsd* | dragonfly*)
20743 # DragonFly does not have aout. When/if they implement a new
20744 # versioning mechanism, adjust this.
20745 if test -x /usr/bin/objformat; then
20746 objformat=`/usr/bin/objformat`
20749 freebsd[123]*) objformat=aout ;;
20750 *) objformat=elf ;;
20753 version_type=freebsd-$objformat
20754 case $version_type in
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20765 shlibpath_var=LD_LIBRARY_PATH
20768 shlibpath_overrides_runpath=yes
20770 freebsd3.[01]* | freebsdelf3.[01]*)
20771 shlibpath_overrides_runpath=yes
20772 hardcode_into_libs=yes
20774 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20775 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20776 shlibpath_overrides_runpath=no
20777 hardcode_into_libs=yes
20779 *) # from 4.6 on, and DragonFly
20780 shlibpath_overrides_runpath=yes
20781 hardcode_into_libs=yes
20790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20791 soname_spec='${libname}${release}${shared_ext}$major'
20792 shlibpath_var=LD_LIBRARY_PATH
20793 hardcode_into_libs=yes
20796 hpux9* | hpux10* | hpux11*)
20797 # Give a soname corresponding to the major version so that dld.sl refuses to
20798 # link against other versions.
20805 hardcode_into_libs=yes
20806 dynamic_linker="$host_os dld.so"
20807 shlibpath_var=LD_LIBRARY_PATH
20808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20810 soname_spec='${libname}${release}${shared_ext}$major'
20811 if test "X$HPUX_IA64_MODE" = X32; then
20812 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20814 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20820 hardcode_into_libs=yes
20821 dynamic_linker="$host_os dld.sl"
20822 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20825 soname_spec='${libname}${release}${shared_ext}$major'
20826 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20831 dynamic_linker="$host_os dld.sl"
20832 shlibpath_var=SHLIB_PATH
20833 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 soname_spec='${libname}${release}${shared_ext}$major'
20838 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20839 postinstall_cmds='chmod 555 $lib'
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath=no
20851 hardcode_into_libs=yes
20854 irix5* | irix6* | nonstopux*)
20856 nonstopux*) version_type=nonstopux ;;
20858 if test "$lt_cv_prog_gnu_ld" = yes; then
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20869 irix5* | nonstopux*)
20870 libsuff= shlibsuff=
20873 case $LD in # libtool.m4 will add one of these switches to LD
20874 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20875 libsuff= shlibsuff= libmagic=32-bit;;
20876 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20877 libsuff=32 shlibsuff=N32 libmagic=N32;;
20878 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20879 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20880 *) libsuff= shlibsuff= libmagic=never-match;;
20884 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20885 shlibpath_overrides_runpath=no
20886 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20887 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20888 hardcode_into_libs=yes
20891 # No shared lib support for Linux oldld, aout, or coff.
20892 linux*oldld* | linux*aout* | linux*coff*)
20896 # This must be Linux ELF.
20897 linux* | k*bsd*-gnu)
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20904 shlibpath_var=LD_LIBRARY_PATH
20905 shlibpath_overrides_runpath=no
20906 # This implies no fast_install, which is unacceptable.
20907 # Some rework will be needed to allow for fast_install
20908 # before this can be enabled.
20909 hardcode_into_libs=yes
20910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20913 # Append ld.so.conf contents to the search path
20914 if test -f /etc/ld.so.conf; then
20915 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' ' '`
20916 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20919 # We used to test for /lib/ld.so.1 and disable shared libraries on
20920 # powerpc, because MkLinux only supported shared libraries with the
20921 # GNU dynamic linker. Since this was broken with cross compilers,
20922 # most powerpc-linux boxes support dynamic linking these days and
20923 # people can always --disable-shared, the test was removed, and we
20924 # assume the GNU/Linux dynamic linker is in use.
20925 dynamic_linker='GNU/Linux ld.so'
20932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20935 dynamic_linker='NetBSD (a.out) ld.so'
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20938 soname_spec='${libname}${release}${shared_ext}$major'
20939 dynamic_linker='NetBSD ld.elf_so'
20941 shlibpath_var=LD_LIBRARY_PATH
20942 shlibpath_overrides_runpath=yes
20943 hardcode_into_libs=yes
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath=yes
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath=yes
20965 sys_lib_dlsearch_path_spec="/usr/lib"
20967 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20969 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20970 *) need_version=no ;;
20972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20974 shlibpath_var=LD_LIBRARY_PATH
20975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20977 openbsd2.[89] | openbsd2.[89].*)
20978 shlibpath_overrides_runpath=no
20981 shlibpath_overrides_runpath=yes
20985 shlibpath_overrides_runpath=yes
20990 libname_spec='$name'
20993 library_names_spec='$libname${shared_ext} $libname.a'
20994 dynamic_linker='OS/2 ld.exe'
20995 shlibpath_var=LIBPATH
20998 osf3* | osf4* | osf5*)
21002 soname_spec='${libname}${release}${shared_ext}$major'
21003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004 shlibpath_var=LD_LIBRARY_PATH
21005 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21006 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21018 soname_spec='${libname}${release}${shared_ext}$major'
21019 shlibpath_var=LD_LIBRARY_PATH
21020 shlibpath_overrides_runpath=yes
21021 hardcode_into_libs=yes
21022 # ldd complains unless libraries are executable
21023 postinstall_cmds='chmod +x $lib'
21028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21029 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21030 shlibpath_var=LD_LIBRARY_PATH
21031 shlibpath_overrides_runpath=yes
21032 if test "$with_gnu_ld" = yes; then
21040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21041 soname_spec='${libname}${release}${shared_ext}$major'
21042 shlibpath_var=LD_LIBRARY_PATH
21043 case $host_vendor in
21045 shlibpath_overrides_runpath=no
21047 export_dynamic_flag_spec='${wl}-Blargedynsym'
21048 runpath_var=LD_RUN_PATH
21056 shlibpath_overrides_runpath=no
21057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21063 if test -d /usr/nec ;then
21065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21066 soname_spec='$libname${shared_ext}.$major'
21067 shlibpath_var=LD_LIBRARY_PATH
21071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21072 version_type=freebsd-elf
21075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21076 soname_spec='${libname}${release}${shared_ext}$major'
21077 shlibpath_var=LD_LIBRARY_PATH
21078 hardcode_into_libs=yes
21079 if test "$with_gnu_ld" = yes; then
21080 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21081 shlibpath_overrides_runpath=no
21083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21084 shlibpath_overrides_runpath=yes
21087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21091 sys_lib_dlsearch_path_spec='/usr/lib'
21096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21097 soname_spec='${libname}${release}${shared_ext}$major'
21098 shlibpath_var=LD_LIBRARY_PATH
21105 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21106 $as_echo "$dynamic_linker" >&6; }
21107 test "$dynamic_linker" = no && can_build_shared=no
21109 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21110 $as_echo_n "(cached) " >&6
21112 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21115 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21116 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21117 $as_echo_n "(cached) " >&6
21119 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21122 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21125 if test "$GCC" = yes; then
21126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21129 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21130 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21131 hardcode_action_GCJ=
21132 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21133 test -n "$runpath_var_GCJ" || \
21134 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21136 # We can hardcode non-existant directories.
21137 if test "$hardcode_direct_GCJ" != no &&
21138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21139 # have to relink, otherwise we might link with an installed library
21140 # when we should be linking with a yet-to-be-installed one
21141 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21142 test "$hardcode_minus_L_GCJ" != no; then
21143 # Linking always hardcodes the temporary library directory.
21144 hardcode_action_GCJ=relink
21146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21147 hardcode_action_GCJ=immediate
21150 # We cannot hardcode anything, or else we can only hardcode existing
21152 hardcode_action_GCJ=unsupported
21154 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21155 $as_echo "$hardcode_action_GCJ" >&6; }
21157 if test "$hardcode_action_GCJ" = relink; then
21158 # Fast installation is not supported
21159 enable_fast_install=no
21160 elif test "$shlibpath_overrides_runpath" = yes ||
21161 test "$enable_shared" = no; then
21162 # Fast installation is not necessary
21163 enable_fast_install=needless
21167 # The else clause should only fire when bootstrapping the
21168 # libtool distribution, otherwise you forgot to ship ltmain.sh
21169 # with your package, and you will get complaints that there are
21170 # no rules to generate ltmain.sh.
21171 if test -f "$ltmain"; then
21172 # See if we are running on zsh, and set the options which allow our commands through
21173 # without removal of \ escapes.
21174 if test -n "${ZSH_VERSION+set}" ; then
21175 setopt NO_GLOB_SUBST
21177 # Now quote all the things that may contain metacharacters while being
21178 # careful not to overquote the AC_SUBSTed values. We take copies of the
21179 # variables and quote the copies for generation of the libtool script.
21180 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21182 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21183 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21184 deplibs_check_method reload_flag reload_cmds need_locks \
21185 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21186 lt_cv_sys_global_symbol_to_c_name_address \
21187 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21188 old_postinstall_cmds old_postuninstall_cmds \
21192 lt_prog_compiler_wl_GCJ \
21193 lt_prog_compiler_pic_GCJ \
21194 lt_prog_compiler_static_GCJ \
21195 lt_prog_compiler_no_builtin_flag_GCJ \
21196 export_dynamic_flag_spec_GCJ \
21197 thread_safe_flag_spec_GCJ \
21198 whole_archive_flag_spec_GCJ \
21199 enable_shared_with_static_runtimes_GCJ \
21200 old_archive_cmds_GCJ \
21201 old_archive_from_new_cmds_GCJ \
21202 predep_objects_GCJ \
21203 postdep_objects_GCJ \
21206 compiler_lib_search_path_GCJ \
21207 compiler_lib_search_dirs_GCJ \
21209 archive_expsym_cmds_GCJ \
21210 postinstall_cmds_GCJ \
21211 postuninstall_cmds_GCJ \
21212 old_archive_from_expsyms_cmds_GCJ \
21213 allow_undefined_flag_GCJ \
21214 no_undefined_flag_GCJ \
21215 export_symbols_cmds_GCJ \
21216 hardcode_libdir_flag_spec_GCJ \
21217 hardcode_libdir_flag_spec_ld_GCJ \
21218 hardcode_libdir_separator_GCJ \
21219 hardcode_automatic_GCJ \
21221 module_expsym_cmds_GCJ \
21222 lt_cv_prog_compiler_c_o_GCJ \
21223 fix_srcfile_path_GCJ \
21224 exclude_expsyms_GCJ \
21225 include_expsyms_GCJ; do
21228 old_archive_cmds_GCJ | \
21229 old_archive_from_new_cmds_GCJ | \
21230 archive_cmds_GCJ | \
21231 archive_expsym_cmds_GCJ | \
21232 module_cmds_GCJ | \
21233 module_expsym_cmds_GCJ | \
21234 old_archive_from_expsyms_cmds_GCJ | \
21235 export_symbols_cmds_GCJ | \
21236 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21237 postinstall_cmds | postuninstall_cmds | \
21238 old_postinstall_cmds | old_postuninstall_cmds | \
21239 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21240 # Double-quote double-evaled strings.
21241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21250 *'\$0 --fallback-echo"')
21251 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21257 cat <<__EOF__ >> "$cfgfile"
21258 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21260 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21262 # Shell to use when invoking shell scripts.
21265 # Whether or not to build shared libraries.
21266 build_libtool_libs=$enable_shared
21268 # Whether or not to build static libraries.
21269 build_old_libs=$enable_static
21271 # Whether or not to add -lc for building shared libraries.
21272 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21274 # Whether or not to disallow shared libs when runtime libs are static
21275 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21277 # Whether or not to optimize for fast installation.
21278 fast_install=$enable_fast_install
21281 host_alias=$host_alias
21285 # The build system.
21286 build_alias=$build_alias
21290 # An echo program that does not interpret backslashes.
21295 AR_FLAGS=$lt_AR_FLAGS
21300 # LTCC compiler flags.
21301 LTCFLAGS=$lt_LTCFLAGS
21303 # A language-specific compiler.
21304 CC=$lt_compiler_GCJ
21306 # Is the compiler the GNU C compiler?
21312 # The linker used to build libraries.
21315 # Whether we need hard or soft links.
21318 # A BSD-compatible nm program.
21321 # A symbol stripping program
21324 # Used to examine libraries when file_magic_cmd begins "file"
21325 MAGIC_CMD=$MAGIC_CMD
21327 # Used on cygwin: DLL creation program.
21330 # Used on cygwin: object dumper.
21333 # Used on cygwin: assembler.
21336 # The name of the directory that contains temporary libtool files.
21339 # How to create reloadable object files.
21340 reload_flag=$lt_reload_flag
21341 reload_cmds=$lt_reload_cmds
21343 # How to pass a linker flag through the compiler.
21344 wl=$lt_lt_prog_compiler_wl_GCJ
21346 # Object file suffix (normally "o").
21347 objext="$ac_objext"
21349 # Old archive suffix (normally "a").
21352 # Shared library suffix (normally ".so").
21353 shrext_cmds='$shrext_cmds'
21355 # Executable file suffix (normally "").
21358 # Additional compiler flags for building library objects.
21359 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21362 # What is the maximum length of a command?
21363 max_cmd_len=$lt_cv_sys_max_cmd_len
21365 # Does compiler simultaneously support -c and -o options?
21366 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21368 # Must we lock files when doing compilation?
21369 need_locks=$lt_need_locks
21371 # Do we need the lib prefix for modules?
21372 need_lib_prefix=$need_lib_prefix
21374 # Do we need a version for libraries?
21375 need_version=$need_version
21377 # Whether dlopen is supported.
21378 dlopen_support=$enable_dlopen
21380 # Whether dlopen of programs is supported.
21381 dlopen_self=$enable_dlopen_self
21383 # Whether dlopen of statically linked programs is supported.
21384 dlopen_self_static=$enable_dlopen_self_static
21386 # Compiler flag to prevent dynamic linking.
21387 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21389 # Compiler flag to turn off builtin functions.
21390 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21392 # Compiler flag to allow reflexive dlopens.
21393 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21395 # Compiler flag to generate shared objects directly from archives.
21396 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21398 # Compiler flag to generate thread-safe objects.
21399 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21401 # Library versioning type.
21402 version_type=$version_type
21404 # Format of library name prefix.
21405 libname_spec=$lt_libname_spec
21407 # List of archive names. First name is the real one, the rest are links.
21408 # The last name is the one that the linker finds with -lNAME.
21409 library_names_spec=$lt_library_names_spec
21411 # The coded name of the library, if different from the real name.
21412 soname_spec=$lt_soname_spec
21414 # Commands used to build and install an old-style archive.
21416 old_archive_cmds=$lt_old_archive_cmds_GCJ
21417 old_postinstall_cmds=$lt_old_postinstall_cmds
21418 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21420 # Create an old-style archive from a shared archive.
21421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21423 # Create a temporary old-style archive to link instead of a shared archive.
21424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21426 # Commands used to build and install a shared archive.
21427 archive_cmds=$lt_archive_cmds_GCJ
21428 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21429 postinstall_cmds=$lt_postinstall_cmds
21430 postuninstall_cmds=$lt_postuninstall_cmds
21432 # Commands used to build a loadable module (assumed same as above if empty)
21433 module_cmds=$lt_module_cmds_GCJ
21434 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21436 # Commands to strip libraries.
21437 old_striplib=$lt_old_striplib
21438 striplib=$lt_striplib
21440 # Dependencies to place before the objects being linked to create a
21442 predep_objects=$lt_predep_objects_GCJ
21444 # Dependencies to place after the objects being linked to create a
21446 postdep_objects=$lt_postdep_objects_GCJ
21448 # Dependencies to place before the objects being linked to create a
21450 predeps=$lt_predeps_GCJ
21452 # Dependencies to place after the objects being linked to create a
21454 postdeps=$lt_postdeps_GCJ
21456 # The directories searched by this compiler when creating a shared
21458 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
21460 # The library search path used internally by the compiler when linking
21461 # a shared library.
21462 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21464 # Method to check whether dependent libraries are shared objects.
21465 deplibs_check_method=$lt_deplibs_check_method
21467 # Command to use when deplibs_check_method == file_magic.
21468 file_magic_cmd=$lt_file_magic_cmd
21470 # Flag that allows shared libraries with undefined symbols to be built.
21471 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21473 # Flag that forces no undefined symbols.
21474 no_undefined_flag=$lt_no_undefined_flag_GCJ
21476 # Commands used to finish a libtool library installation in a directory.
21477 finish_cmds=$lt_finish_cmds
21479 # Same as above, but a single script fragment to be evaled but not shown.
21480 finish_eval=$lt_finish_eval
21482 # Take the output of nm and produce a listing of raw symbols and C names.
21483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21485 # Transform the output of nm in a proper C declaration
21486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21488 # Transform the output of nm in a C name address pair
21489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21491 # This is the shared library runtime path variable.
21492 runpath_var=$runpath_var
21494 # This is the shared library path variable.
21495 shlibpath_var=$shlibpath_var
21497 # Is shlibpath searched before the hard-coded library search path?
21498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21500 # How to hardcode a shared library path into an executable.
21501 hardcode_action=$hardcode_action_GCJ
21503 # Whether we should hardcode library paths into libraries.
21504 hardcode_into_libs=$hardcode_into_libs
21506 # Flag to hardcode \$libdir into a binary during linking.
21507 # This must work even if \$libdir does not exist.
21508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21510 # If ld is used when linking, flag to hardcode \$libdir into
21511 # a binary during linking. This must work even if \$libdir does
21513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21515 # Whether we need a single -rpath flag with a separated argument.
21516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21519 # resulting binary.
21520 hardcode_direct=$hardcode_direct_GCJ
21522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21523 # resulting binary.
21524 hardcode_minus_L=$hardcode_minus_L_GCJ
21526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21527 # the resulting binary.
21528 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21530 # Set to yes if building a shared library automatically hardcodes DIR into the library
21531 # and all subsequent libraries and executables linked against it.
21532 hardcode_automatic=$hardcode_automatic_GCJ
21534 # Variables whose values should be saved in libtool wrapper scripts and
21535 # restored at relink time.
21536 variables_saved_for_relink="$variables_saved_for_relink"
21538 # Whether libtool must link a program against all its dependency libraries.
21539 link_all_deplibs=$link_all_deplibs_GCJ
21541 # Compile-time system search path for libraries
21542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21544 # Run-time system search path for libraries
21545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21547 # Fix the shell variable \$srcfile for the compiler.
21548 fix_srcfile_path=$lt_fix_srcfile_path
21550 # Set to yes if exported symbols are required.
21551 always_export_symbols=$always_export_symbols_GCJ
21553 # The commands to list exported symbols.
21554 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21556 # The commands to extract the exported symbol list from a shared archive.
21557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21559 # Symbols that should not be listed in the preloaded symbols.
21560 exclude_expsyms=$lt_exclude_expsyms_GCJ
21562 # Symbols that must always be exported.
21563 include_expsyms=$lt_include_expsyms_GCJ
21565 # ### END LIBTOOL TAG CONFIG: $tagname
21571 # If there is no Makefile yet, we rely on a make rule to execute
21572 # `config.status --recheck' to rerun these tests and create the
21573 # libtool script then.
21574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21575 if test -f "$ltmain_in"; then
21576 test -f Makefile && make "$ltmain"
21582 ac_cpp='$CPP $CPPFLAGS'
21583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21597 # Source file extension for RC test sources.
21600 # Object file extension for compiled RC test sources.
21604 # Code to be used in simple compile tests
21605 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21607 # Code to be used in simple link tests
21608 lt_simple_link_test_code="$lt_simple_compile_test_code"
21610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21612 # If no C compiler was specified, use CC.
21615 # If no C compiler flags were specified, use CFLAGS.
21616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21618 # Allow CC to be a program name with arguments.
21622 # save warnings/boilerplate of simple test code
21623 ac_outfile=conftest.$ac_objext
21624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21626 _lt_compiler_boilerplate=`cat conftest.err`
21629 ac_outfile=conftest.$ac_objext
21630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21632 _lt_linker_boilerplate=`cat conftest.err`
21636 # Allow CC to be a program name with arguments.
21641 for cc_temp in $compiler""; do
21643 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21644 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21651 lt_cv_prog_compiler_c_o_RC=yes
21653 # The else clause should only fire when bootstrapping the
21654 # libtool distribution, otherwise you forgot to ship ltmain.sh
21655 # with your package, and you will get complaints that there are
21656 # no rules to generate ltmain.sh.
21657 if test -f "$ltmain"; then
21658 # See if we are running on zsh, and set the options which allow our commands through
21659 # without removal of \ escapes.
21660 if test -n "${ZSH_VERSION+set}" ; then
21661 setopt NO_GLOB_SUBST
21663 # Now quote all the things that may contain metacharacters while being
21664 # careful not to overquote the AC_SUBSTed values. We take copies of the
21665 # variables and quote the copies for generation of the libtool script.
21666 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21668 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21669 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21670 deplibs_check_method reload_flag reload_cmds need_locks \
21671 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21672 lt_cv_sys_global_symbol_to_c_name_address \
21673 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21674 old_postinstall_cmds old_postuninstall_cmds \
21678 lt_prog_compiler_wl_RC \
21679 lt_prog_compiler_pic_RC \
21680 lt_prog_compiler_static_RC \
21681 lt_prog_compiler_no_builtin_flag_RC \
21682 export_dynamic_flag_spec_RC \
21683 thread_safe_flag_spec_RC \
21684 whole_archive_flag_spec_RC \
21685 enable_shared_with_static_runtimes_RC \
21686 old_archive_cmds_RC \
21687 old_archive_from_new_cmds_RC \
21688 predep_objects_RC \
21689 postdep_objects_RC \
21692 compiler_lib_search_path_RC \
21693 compiler_lib_search_dirs_RC \
21695 archive_expsym_cmds_RC \
21696 postinstall_cmds_RC \
21697 postuninstall_cmds_RC \
21698 old_archive_from_expsyms_cmds_RC \
21699 allow_undefined_flag_RC \
21700 no_undefined_flag_RC \
21701 export_symbols_cmds_RC \
21702 hardcode_libdir_flag_spec_RC \
21703 hardcode_libdir_flag_spec_ld_RC \
21704 hardcode_libdir_separator_RC \
21705 hardcode_automatic_RC \
21707 module_expsym_cmds_RC \
21708 lt_cv_prog_compiler_c_o_RC \
21709 fix_srcfile_path_RC \
21710 exclude_expsyms_RC \
21711 include_expsyms_RC; do
21714 old_archive_cmds_RC | \
21715 old_archive_from_new_cmds_RC | \
21716 archive_cmds_RC | \
21717 archive_expsym_cmds_RC | \
21719 module_expsym_cmds_RC | \
21720 old_archive_from_expsyms_cmds_RC | \
21721 export_symbols_cmds_RC | \
21722 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21723 postinstall_cmds | postuninstall_cmds | \
21724 old_postinstall_cmds | old_postuninstall_cmds | \
21725 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21726 # Double-quote double-evaled strings.
21727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21736 *'\$0 --fallback-echo"')
21737 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21743 cat <<__EOF__ >> "$cfgfile"
21744 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21746 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21748 # Shell to use when invoking shell scripts.
21751 # Whether or not to build shared libraries.
21752 build_libtool_libs=$enable_shared
21754 # Whether or not to build static libraries.
21755 build_old_libs=$enable_static
21757 # Whether or not to add -lc for building shared libraries.
21758 build_libtool_need_lc=$archive_cmds_need_lc_RC
21760 # Whether or not to disallow shared libs when runtime libs are static
21761 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21763 # Whether or not to optimize for fast installation.
21764 fast_install=$enable_fast_install
21767 host_alias=$host_alias
21771 # The build system.
21772 build_alias=$build_alias
21776 # An echo program that does not interpret backslashes.
21781 AR_FLAGS=$lt_AR_FLAGS
21786 # LTCC compiler flags.
21787 LTCFLAGS=$lt_LTCFLAGS
21789 # A language-specific compiler.
21792 # Is the compiler the GNU C compiler?
21798 # The linker used to build libraries.
21801 # Whether we need hard or soft links.
21804 # A BSD-compatible nm program.
21807 # A symbol stripping program
21810 # Used to examine libraries when file_magic_cmd begins "file"
21811 MAGIC_CMD=$MAGIC_CMD
21813 # Used on cygwin: DLL creation program.
21816 # Used on cygwin: object dumper.
21819 # Used on cygwin: assembler.
21822 # The name of the directory that contains temporary libtool files.
21825 # How to create reloadable object files.
21826 reload_flag=$lt_reload_flag
21827 reload_cmds=$lt_reload_cmds
21829 # How to pass a linker flag through the compiler.
21830 wl=$lt_lt_prog_compiler_wl_RC
21832 # Object file suffix (normally "o").
21833 objext="$ac_objext"
21835 # Old archive suffix (normally "a").
21838 # Shared library suffix (normally ".so").
21839 shrext_cmds='$shrext_cmds'
21841 # Executable file suffix (normally "").
21844 # Additional compiler flags for building library objects.
21845 pic_flag=$lt_lt_prog_compiler_pic_RC
21848 # What is the maximum length of a command?
21849 max_cmd_len=$lt_cv_sys_max_cmd_len
21851 # Does compiler simultaneously support -c and -o options?
21852 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21854 # Must we lock files when doing compilation?
21855 need_locks=$lt_need_locks
21857 # Do we need the lib prefix for modules?
21858 need_lib_prefix=$need_lib_prefix
21860 # Do we need a version for libraries?
21861 need_version=$need_version
21863 # Whether dlopen is supported.
21864 dlopen_support=$enable_dlopen
21866 # Whether dlopen of programs is supported.
21867 dlopen_self=$enable_dlopen_self
21869 # Whether dlopen of statically linked programs is supported.
21870 dlopen_self_static=$enable_dlopen_self_static
21872 # Compiler flag to prevent dynamic linking.
21873 link_static_flag=$lt_lt_prog_compiler_static_RC
21875 # Compiler flag to turn off builtin functions.
21876 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21878 # Compiler flag to allow reflexive dlopens.
21879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21881 # Compiler flag to generate shared objects directly from archives.
21882 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21884 # Compiler flag to generate thread-safe objects.
21885 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21887 # Library versioning type.
21888 version_type=$version_type
21890 # Format of library name prefix.
21891 libname_spec=$lt_libname_spec
21893 # List of archive names. First name is the real one, the rest are links.
21894 # The last name is the one that the linker finds with -lNAME.
21895 library_names_spec=$lt_library_names_spec
21897 # The coded name of the library, if different from the real name.
21898 soname_spec=$lt_soname_spec
21900 # Commands used to build and install an old-style archive.
21902 old_archive_cmds=$lt_old_archive_cmds_RC
21903 old_postinstall_cmds=$lt_old_postinstall_cmds
21904 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21906 # Create an old-style archive from a shared archive.
21907 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21909 # Create a temporary old-style archive to link instead of a shared archive.
21910 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21912 # Commands used to build and install a shared archive.
21913 archive_cmds=$lt_archive_cmds_RC
21914 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21915 postinstall_cmds=$lt_postinstall_cmds
21916 postuninstall_cmds=$lt_postuninstall_cmds
21918 # Commands used to build a loadable module (assumed same as above if empty)
21919 module_cmds=$lt_module_cmds_RC
21920 module_expsym_cmds=$lt_module_expsym_cmds_RC
21922 # Commands to strip libraries.
21923 old_striplib=$lt_old_striplib
21924 striplib=$lt_striplib
21926 # Dependencies to place before the objects being linked to create a
21928 predep_objects=$lt_predep_objects_RC
21930 # Dependencies to place after the objects being linked to create a
21932 postdep_objects=$lt_postdep_objects_RC
21934 # Dependencies to place before the objects being linked to create a
21936 predeps=$lt_predeps_RC
21938 # Dependencies to place after the objects being linked to create a
21940 postdeps=$lt_postdeps_RC
21942 # The directories searched by this compiler when creating a shared
21944 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21946 # The library search path used internally by the compiler when linking
21947 # a shared library.
21948 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21950 # Method to check whether dependent libraries are shared objects.
21951 deplibs_check_method=$lt_deplibs_check_method
21953 # Command to use when deplibs_check_method == file_magic.
21954 file_magic_cmd=$lt_file_magic_cmd
21956 # Flag that allows shared libraries with undefined symbols to be built.
21957 allow_undefined_flag=$lt_allow_undefined_flag_RC
21959 # Flag that forces no undefined symbols.
21960 no_undefined_flag=$lt_no_undefined_flag_RC
21962 # Commands used to finish a libtool library installation in a directory.
21963 finish_cmds=$lt_finish_cmds
21965 # Same as above, but a single script fragment to be evaled but not shown.
21966 finish_eval=$lt_finish_eval
21968 # Take the output of nm and produce a listing of raw symbols and C names.
21969 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21971 # Transform the output of nm in a proper C declaration
21972 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21974 # Transform the output of nm in a C name address pair
21975 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21977 # This is the shared library runtime path variable.
21978 runpath_var=$runpath_var
21980 # This is the shared library path variable.
21981 shlibpath_var=$shlibpath_var
21983 # Is shlibpath searched before the hard-coded library search path?
21984 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21986 # How to hardcode a shared library path into an executable.
21987 hardcode_action=$hardcode_action_RC
21989 # Whether we should hardcode library paths into libraries.
21990 hardcode_into_libs=$hardcode_into_libs
21992 # Flag to hardcode \$libdir into a binary during linking.
21993 # This must work even if \$libdir does not exist.
21994 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21996 # If ld is used when linking, flag to hardcode \$libdir into
21997 # a binary during linking. This must work even if \$libdir does
21999 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22001 # Whether we need a single -rpath flag with a separated argument.
22002 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22004 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22005 # resulting binary.
22006 hardcode_direct=$hardcode_direct_RC
22008 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22009 # resulting binary.
22010 hardcode_minus_L=$hardcode_minus_L_RC
22012 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22013 # the resulting binary.
22014 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22016 # Set to yes if building a shared library automatically hardcodes DIR into the library
22017 # and all subsequent libraries and executables linked against it.
22018 hardcode_automatic=$hardcode_automatic_RC
22020 # Variables whose values should be saved in libtool wrapper scripts and
22021 # restored at relink time.
22022 variables_saved_for_relink="$variables_saved_for_relink"
22024 # Whether libtool must link a program against all its dependency libraries.
22025 link_all_deplibs=$link_all_deplibs_RC
22027 # Compile-time system search path for libraries
22028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22030 # Run-time system search path for libraries
22031 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22033 # Fix the shell variable \$srcfile for the compiler.
22034 fix_srcfile_path=$lt_fix_srcfile_path
22036 # Set to yes if exported symbols are required.
22037 always_export_symbols=$always_export_symbols_RC
22039 # The commands to list exported symbols.
22040 export_symbols_cmds=$lt_export_symbols_cmds_RC
22042 # The commands to extract the exported symbol list from a shared archive.
22043 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22045 # Symbols that should not be listed in the preloaded symbols.
22046 exclude_expsyms=$lt_exclude_expsyms_RC
22048 # Symbols that must always be exported.
22049 include_expsyms=$lt_include_expsyms_RC
22051 # ### END LIBTOOL TAG CONFIG: $tagname
22057 # If there is no Makefile yet, we rely on a make rule to execute
22058 # `config.status --recheck' to rerun these tests and create the
22059 # libtool script then.
22060 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22061 if test -f "$ltmain_in"; then
22062 test -f Makefile && make "$ltmain"
22068 ac_cpp='$CPP $CPPFLAGS'
22069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22078 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22079 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22080 { (exit 1); exit 1; }; }
22084 # Append the new tag name to the list of available tags.
22085 if test -n "$tagname" ; then
22086 available_tags="$available_tags $tagname"
22092 # Now substitute the updated list of available tags.
22093 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22094 mv "${ofile}T" "$ofile"
22098 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22099 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22100 { (exit 1); exit 1; }; }
22106 # This can be used to rebuild libtool when needed
22107 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22109 # Always use our own libtool.
22110 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22112 # Prevent multiple expansion
22133 if test "x$CC" != xcc; then
22134 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
22135 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
22137 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
22138 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
22140 set dummy $CC; ac_cc=`$as_echo "$2" |
22141 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
22142 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
22143 $as_echo_n "(cached) " >&6
22145 cat >conftest.$ac_ext <<_ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22160 # Make sure it works both with $CC and with simple cc.
22161 # We do the test twice because some compilers refuse to overwrite an
22162 # existing .o file with -o, though they will create one.
22163 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
22165 if { (case "(($ac_try" in
22166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22170 $as_echo "$ac_try_echo") >&5
22171 (eval "$ac_try") 2>&5
22173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } &&
22175 test -f conftest2.$ac_objext && { (case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22180 $as_echo "$ac_try_echo") >&5
22181 (eval "$ac_try") 2>&5
22183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); };
22186 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
22187 if test "x$CC" != xcc; then
22188 # Test first that cc exists at all.
22189 if { ac_try='cc -c conftest.$ac_ext >&5'
22190 { (case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22195 $as_echo "$ac_try_echo") >&5
22196 (eval "$ac_try") 2>&5
22198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
22202 if { (case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22207 $as_echo "$ac_try_echo") >&5
22208 (eval "$ac_try") 2>&5
22210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
22212 test -f conftest2.$ac_objext && { (case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22217 $as_echo "$ac_try_echo") >&5
22218 (eval "$ac_try") 2>&5
22220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); };
22226 # cc exists but doesn't like -o.
22227 eval ac_cv_prog_cc_${ac_cc}_c_o=no
22232 eval ac_cv_prog_cc_${ac_cc}_c_o=no
22234 rm -f core conftest*
22237 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
22238 { $as_echo "$as_me:$LINENO: result: yes" >&5
22239 $as_echo "yes" >&6; }
22241 { $as_echo "$as_me:$LINENO: result: no" >&5
22242 $as_echo "no" >&6; }
22244 cat >>confdefs.h <<\_ACEOF
22245 #define NO_MINUS_C_MINUS_O 1
22250 # FIXME: we rely on the cache variable name because
22251 # there is no other way.
22253 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
22254 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
22255 # Losing compiler, so override with the script.
22256 # FIXME: It is wrong to rewrite CC.
22257 # But if we don't then we get into trouble of one sort or another.
22258 # A longer-term fix would be to have automake use am__CC in this case,
22259 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
22260 CC="$am_aux_dir/compile $CC"
22265 if test "x$cross_compiling" = "xno"; then
22266 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
22268 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
22273 if test -n "$ac_tool_prefix"; then
22274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
22275 set dummy ${ac_tool_prefix}ar; ac_word=$2
22276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22277 $as_echo_n "checking for $ac_word... " >&6; }
22278 if test "${ac_cv_prog_AR+set}" = set; then
22279 $as_echo_n "(cached) " >&6
22281 if test -n "$AR"; then
22282 ac_cv_prog_AR="$AR" # Let the user override the test.
22284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22285 for as_dir in $PATH
22288 test -z "$as_dir" && as_dir=.
22289 for ac_exec_ext in '' $ac_executable_extensions; do
22290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22291 ac_cv_prog_AR="${ac_tool_prefix}ar"
22292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22302 if test -n "$AR"; then
22303 { $as_echo "$as_me:$LINENO: result: $AR" >&5
22304 $as_echo "$AR" >&6; }
22306 { $as_echo "$as_me:$LINENO: result: no" >&5
22307 $as_echo "no" >&6; }
22312 if test -z "$ac_cv_prog_AR"; then
22314 # Extract the first word of "ar", so it can be a program name with args.
22315 set dummy ar; ac_word=$2
22316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22317 $as_echo_n "checking for $ac_word... " >&6; }
22318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
22319 $as_echo_n "(cached) " >&6
22321 if test -n "$ac_ct_AR"; then
22322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325 for as_dir in $PATH
22328 test -z "$as_dir" && as_dir=.
22329 for ac_exec_ext in '' $ac_executable_extensions; do
22330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22331 ac_cv_prog_ac_ct_AR="ar"
22332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
22342 if test -n "$ac_ct_AR"; then
22343 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
22344 $as_echo "$ac_ct_AR" >&6; }
22346 { $as_echo "$as_me:$LINENO: result: no" >&5
22347 $as_echo "no" >&6; }
22350 if test "x$ac_ct_AR" = x; then
22353 case $cross_compiling:$ac_tool_warned in
22355 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22357 ac_tool_warned=yes ;;
22362 AR="$ac_cv_prog_AR"
22365 if test -n "$ac_tool_prefix"; then
22366 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
22367 set dummy ${ac_tool_prefix}ld; ac_word=$2
22368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22369 $as_echo_n "checking for $ac_word... " >&6; }
22370 if test "${ac_cv_prog_LD+set}" = set; then
22371 $as_echo_n "(cached) " >&6
22373 if test -n "$LD"; then
22374 ac_cv_prog_LD="$LD" # Let the user override the test.
22376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22377 for as_dir in $PATH
22380 test -z "$as_dir" && as_dir=.
22381 for ac_exec_ext in '' $ac_executable_extensions; do
22382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22383 ac_cv_prog_LD="${ac_tool_prefix}ld"
22384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22394 if test -n "$LD"; then
22395 { $as_echo "$as_me:$LINENO: result: $LD" >&5
22396 $as_echo "$LD" >&6; }
22398 { $as_echo "$as_me:$LINENO: result: no" >&5
22399 $as_echo "no" >&6; }
22404 if test -z "$ac_cv_prog_LD"; then
22406 # Extract the first word of "ld", so it can be a program name with args.
22407 set dummy ld; ac_word=$2
22408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22409 $as_echo_n "checking for $ac_word... " >&6; }
22410 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
22411 $as_echo_n "(cached) " >&6
22413 if test -n "$ac_ct_LD"; then
22414 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
22416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22417 for as_dir in $PATH
22420 test -z "$as_dir" && as_dir=.
22421 for ac_exec_ext in '' $ac_executable_extensions; do
22422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22423 ac_cv_prog_ac_ct_LD="ld"
22424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22433 ac_ct_LD=$ac_cv_prog_ac_ct_LD
22434 if test -n "$ac_ct_LD"; then
22435 { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
22436 $as_echo "$ac_ct_LD" >&6; }
22438 { $as_echo "$as_me:$LINENO: result: no" >&5
22439 $as_echo "no" >&6; }
22442 if test "x$ac_ct_LD" = x; then
22445 case $cross_compiling:$ac_tool_warned in
22447 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22449 ac_tool_warned=yes ;;
22454 LD="$ac_cv_prog_LD"
22458 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22459 $as_echo_n "checking for ANSI C header files... " >&6; }
22460 if test "${ac_cv_header_stdc+set}" = set; then
22461 $as_echo_n "(cached) " >&6
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 #include <stdlib.h>
22470 #include <stdarg.h>
22471 #include <string.h>
22482 rm -f conftest.$ac_objext
22483 if { (ac_try="$ac_compile"
22484 case "(($ac_try" in
22485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486 *) ac_try_echo=$ac_try;;
22488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22489 $as_echo "$ac_try_echo") >&5
22490 (eval "$ac_compile") 2>conftest.er1
22492 grep -v '^ *+' conftest.er1 >conftest.err
22494 cat conftest.err >&5
22495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } && {
22497 test -z "$ac_c_werror_flag" ||
22498 test ! -s conftest.err
22499 } && test -s conftest.$ac_objext; then
22500 ac_cv_header_stdc=yes
22502 $as_echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 ac_cv_header_stdc=no
22508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510 if test $ac_cv_header_stdc = yes; then
22511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22512 cat >conftest.$ac_ext <<_ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22518 #include <string.h>
22521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22522 $EGREP "memchr" >/dev/null 2>&1; then
22525 ac_cv_header_stdc=no
22531 if test $ac_cv_header_stdc = yes; then
22532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 #include <stdlib.h>
22542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22543 $EGREP "free" >/dev/null 2>&1; then
22546 ac_cv_header_stdc=no
22552 if test $ac_cv_header_stdc = yes; then
22553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22554 if test "$cross_compiling" = yes; then
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22564 #include <stdlib.h>
22565 #if ((' ' & 0x0FF) == 0x020)
22566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22569 # define ISLOWER(c) \
22570 (('a' <= (c) && (c) <= 'i') \
22571 || ('j' <= (c) && (c) <= 'r') \
22572 || ('s' <= (c) && (c) <= 'z'))
22573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22581 for (i = 0; i < 256; i++)
22582 if (XOR (islower (i), ISLOWER (i))
22583 || toupper (i) != TOUPPER (i))
22588 rm -f conftest$ac_exeext
22589 if { (ac_try="$ac_link"
22590 case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22595 $as_echo "$ac_try_echo") >&5
22596 (eval "$ac_link") 2>&5
22598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22600 { (case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22605 $as_echo "$ac_try_echo") >&5
22606 (eval "$ac_try") 2>&5
22608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; }; then
22612 $as_echo "$as_me: program exited with status $ac_status" >&5
22613 $as_echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 ( exit $ac_status )
22617 ac_cv_header_stdc=no
22619 rm -rf conftest.dSYM
22620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22627 $as_echo "$ac_cv_header_stdc" >&6; }
22628 if test $ac_cv_header_stdc = yes; then
22630 cat >>confdefs.h <<\_ACEOF
22631 #define STDC_HEADERS 1
22637 { $as_echo "$as_me:$LINENO: checking for GNU libc2" >&5
22638 $as_echo_n "checking for GNU libc2... " >&6; }
22639 if test "${knfsd_cv_glibc2+set}" = set; then
22640 $as_echo_n "(cached) " >&6
22642 cat >conftest.$ac_ext <<_ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h. */
22649 #include <features.h>
22650 #if !defined(__GLIBC__)
22655 if { (ac_try="$ac_cpp conftest.$ac_ext"
22656 case "(($ac_try" in
22657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658 *) ac_try_echo=$ac_try;;
22660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22661 $as_echo "$ac_try_echo") >&5
22662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22664 grep -v '^ *+' conftest.er1 >conftest.err
22666 cat conftest.err >&5
22667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } >/dev/null && {
22669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22670 test ! -s conftest.err
22672 knfsd_cv_glibc2=yes
22674 $as_echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22680 rm -f conftest.err conftest.$ac_ext
22683 { $as_echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
22684 $as_echo "$knfsd_cv_glibc2" >&6; }
22685 if test $knfsd_cv_glibc2 = yes; then
22686 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
22687 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
22691 { $as_echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
22692 $as_echo_n "checking for BSD signal semantics... " >&6; }
22693 if test "${knfsd_cv_bsd_signals+set}" = set; then
22694 $as_echo_n "(cached) " >&6
22696 if test "$cross_compiling" = yes; then
22699 *linux*) knfsd_cv_bsd_signals=no;;
22700 *bsd*) knfsd_cv_bsd_signals=yes;;
22701 *) { { $as_echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
22702 $as_echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
22703 { (exit 1); exit 1; }; };;
22707 cat >conftest.$ac_ext <<_ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22714 #include <signal.h>
22715 #include <unistd.h>
22716 #include <sys/wait.h>
22718 static int counter = 0;
22719 static RETSIGTYPE handler(int num) { counter++; }
22724 if ((s = fork()) < 0) return 1;
22726 if (wait(&s) < 0) return 1;
22727 return WIFSIGNALED(s)? 1 : 0;
22730 signal(SIGHUP, handler);
22731 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
22732 return (counter == 2)? 0 : 1;
22736 rm -f conftest$ac_exeext
22737 if { (ac_try="$ac_link"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22743 $as_echo "$ac_try_echo") >&5
22744 (eval "$ac_link") 2>&5
22746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22748 { (case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22753 $as_echo "$ac_try_echo") >&5
22754 (eval "$ac_try") 2>&5
22756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); }; }; then
22758 knfsd_cv_bsd_signals=yes
22760 $as_echo "$as_me: program exited with status $ac_status" >&5
22761 $as_echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22764 ( exit $ac_status )
22765 knfsd_cv_bsd_signals=no
22767 rm -rf conftest.dSYM
22768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22773 { $as_echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
22774 $as_echo "$knfsd_cv_bsd_signals" >&6; }
22775 test $knfsd_cv_bsd_signals = yes &&
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_BSD_SIGNALS 1
22783 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
22784 $as_echo_n "checking for gethostbyname... " >&6; }
22785 if test "${ac_cv_func_gethostbyname+set}" = set; then
22786 $as_echo_n "(cached) " >&6
22788 cat >conftest.$ac_ext <<_ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h. */
22794 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22796 #define gethostbyname innocuous_gethostbyname
22798 /* System header to define __stub macros and hopefully few prototypes,
22799 which can conflict with char gethostbyname (); below.
22800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22801 <limits.h> exists even on freestanding compilers. */
22804 # include <limits.h>
22806 # include <assert.h>
22809 #undef gethostbyname
22811 /* Override any GCC internal prototype to avoid an error.
22812 Use char because int might match the return type of a GCC
22813 builtin and then its argument prototype would still apply. */
22817 char gethostbyname ();
22818 /* The GNU C library defines this for functions which it implements
22819 to always fail with ENOSYS. Some functions are actually named
22820 something starting with __ and the normal name is an alias. */
22821 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22828 return gethostbyname ();
22833 rm -f conftest.$ac_objext conftest$ac_exeext
22834 if { (ac_try="$ac_link"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22840 $as_echo "$ac_try_echo") >&5
22841 (eval "$ac_link") 2>conftest.er1
22843 grep -v '^ *+' conftest.er1 >conftest.err
22845 cat conftest.err >&5
22846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } && {
22848 test -z "$ac_c_werror_flag" ||
22849 test ! -s conftest.err
22850 } && test -s conftest$ac_exeext && {
22851 test "$cross_compiling" = yes ||
22852 $as_test_x conftest$ac_exeext
22854 ac_cv_func_gethostbyname=yes
22856 $as_echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 ac_cv_func_gethostbyname=no
22862 rm -rf conftest.dSYM
22863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22864 conftest$ac_exeext conftest.$ac_ext
22866 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22867 $as_echo "$ac_cv_func_gethostbyname" >&6; }
22868 if test "x$ac_cv_func_gethostbyname" = x""yes; then
22871 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22872 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22873 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22874 $as_echo_n "(cached) " >&6
22876 ac_check_lib_save_LIBS=$LIBS
22878 cat >conftest.$ac_ext <<_ACEOF
22881 cat confdefs.h >>conftest.$ac_ext
22882 cat >>conftest.$ac_ext <<_ACEOF
22883 /* end confdefs.h. */
22885 /* Override any GCC internal prototype to avoid an error.
22886 Use char because int might match the return type of a GCC
22887 builtin and then its argument prototype would still apply. */
22891 char gethostbyname ();
22895 return gethostbyname ();
22900 rm -f conftest.$ac_objext conftest$ac_exeext
22901 if { (ac_try="$ac_link"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22907 $as_echo "$ac_try_echo") >&5
22908 (eval "$ac_link") 2>conftest.er1
22910 grep -v '^ *+' conftest.er1 >conftest.err
22912 cat conftest.err >&5
22913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } && {
22915 test -z "$ac_c_werror_flag" ||
22916 test ! -s conftest.err
22917 } && test -s conftest$ac_exeext && {
22918 test "$cross_compiling" = yes ||
22919 $as_test_x conftest$ac_exeext
22921 ac_cv_lib_nsl_gethostbyname=yes
22923 $as_echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 ac_cv_lib_nsl_gethostbyname=no
22929 rm -rf conftest.dSYM
22930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22931 conftest$ac_exeext conftest.$ac_ext
22932 LIBS=$ac_check_lib_save_LIBS
22934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22935 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22936 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
22944 { $as_echo "$as_me:$LINENO: checking for connect" >&5
22945 $as_echo_n "checking for connect... " >&6; }
22946 if test "${ac_cv_func_connect+set}" = set; then
22947 $as_echo_n "(cached) " >&6
22949 cat >conftest.$ac_ext <<_ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h. */
22955 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22957 #define connect innocuous_connect
22959 /* System header to define __stub macros and hopefully few prototypes,
22960 which can conflict with char connect (); below.
22961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22962 <limits.h> exists even on freestanding compilers. */
22965 # include <limits.h>
22967 # include <assert.h>
22972 /* Override any GCC internal prototype to avoid an error.
22973 Use char because int might match the return type of a GCC
22974 builtin and then its argument prototype would still apply. */
22979 /* The GNU C library defines this for functions which it implements
22980 to always fail with ENOSYS. Some functions are actually named
22981 something starting with __ and the normal name is an alias. */
22982 #if defined __stub_connect || defined __stub___connect
22994 rm -f conftest.$ac_objext conftest$ac_exeext
22995 if { (ac_try="$ac_link"
22996 case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
23000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23001 $as_echo "$ac_try_echo") >&5
23002 (eval "$ac_link") 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest$ac_exeext && {
23012 test "$cross_compiling" = yes ||
23013 $as_test_x conftest$ac_exeext
23015 ac_cv_func_connect=yes
23017 $as_echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23020 ac_cv_func_connect=no
23023 rm -rf conftest.dSYM
23024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23025 conftest$ac_exeext conftest.$ac_ext
23027 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23028 $as_echo "$ac_cv_func_connect" >&6; }
23029 if test "x$ac_cv_func_connect" = x""yes; then
23032 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23033 $as_echo_n "checking for connect in -lsocket... " >&6; }
23034 if test "${ac_cv_lib_socket_connect+set}" = set; then
23035 $as_echo_n "(cached) " >&6
23037 ac_check_lib_save_LIBS=$LIBS
23038 LIBS="-lsocket $LIBNSL $LIBS"
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23046 /* Override any GCC internal prototype to avoid an error.
23047 Use char because int might match the return type of a GCC
23048 builtin and then its argument prototype would still apply. */
23061 rm -f conftest.$ac_objext conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23068 $as_echo "$ac_try_echo") >&5
23069 (eval "$ac_link") 2>conftest.er1
23071 grep -v '^ *+' conftest.er1 >conftest.err
23073 cat conftest.err >&5
23074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } && {
23076 test -z "$ac_c_werror_flag" ||
23077 test ! -s conftest.err
23078 } && test -s conftest$ac_exeext && {
23079 test "$cross_compiling" = yes ||
23080 $as_test_x conftest$ac_exeext
23082 ac_cv_lib_socket_connect=yes
23084 $as_echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 ac_cv_lib_socket_connect=no
23090 rm -rf conftest.dSYM
23091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23092 conftest$ac_exeext conftest.$ac_ext
23093 LIBS=$ac_check_lib_save_LIBS
23095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23096 $as_echo "$ac_cv_lib_socket_connect" >&6; }
23097 if test "x$ac_cv_lib_socket_connect" = x""yes; then
23098 LIBSOCKET="-lsocket"
23100 { { $as_echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
23101 $as_echo "$as_me: error: Function 'socket' not found." >&2;}
23102 { (exit 1); exit 1; }; }
23108 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
23109 $as_echo_n "checking for getaddrinfo... " >&6; }
23110 if test "${ac_cv_func_getaddrinfo+set}" = set; then
23111 $as_echo_n "(cached) " >&6
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
23120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23121 #define getaddrinfo innocuous_getaddrinfo
23123 /* System header to define __stub macros and hopefully few prototypes,
23124 which can conflict with char getaddrinfo (); below.
23125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23126 <limits.h> exists even on freestanding compilers. */
23129 # include <limits.h>
23131 # include <assert.h>
23136 /* Override any GCC internal prototype to avoid an error.
23137 Use char because int might match the return type of a GCC
23138 builtin and then its argument prototype would still apply. */
23142 char getaddrinfo ();
23143 /* The GNU C library defines this for functions which it implements
23144 to always fail with ENOSYS. Some functions are actually named
23145 something starting with __ and the normal name is an alias. */
23146 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
23153 return getaddrinfo ();
23158 rm -f conftest.$ac_objext conftest$ac_exeext
23159 if { (ac_try="$ac_link"
23160 case "(($ac_try" in
23161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23165 $as_echo "$ac_try_echo") >&5
23166 (eval "$ac_link") 2>conftest.er1
23168 grep -v '^ *+' conftest.er1 >conftest.err
23170 cat conftest.err >&5
23171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } && {
23173 test -z "$ac_c_werror_flag" ||
23174 test ! -s conftest.err
23175 } && test -s conftest$ac_exeext && {
23176 test "$cross_compiling" = yes ||
23177 $as_test_x conftest$ac_exeext
23179 ac_cv_func_getaddrinfo=yes
23181 $as_echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23184 ac_cv_func_getaddrinfo=no
23187 rm -rf conftest.dSYM
23188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23189 conftest$ac_exeext conftest.$ac_ext
23191 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
23192 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
23193 if test "x$ac_cv_func_getaddrinfo" = x""yes; then
23196 { { $as_echo "$as_me:$LINENO: error: Function 'getaddrinfo' not found." >&5
23197 $as_echo "$as_me: error: Function 'getaddrinfo' not found." >&2;}
23198 { (exit 1); exit 1; }; }
23202 { $as_echo "$as_me:$LINENO: checking for getrpcbynumber" >&5
23203 $as_echo_n "checking for getrpcbynumber... " >&6; }
23204 if test "${ac_cv_func_getrpcbynumber+set}" = set; then
23205 $as_echo_n "(cached) " >&6
23207 cat >conftest.$ac_ext <<_ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 /* Define getrpcbynumber to an innocuous variant, in case <limits.h> declares getrpcbynumber.
23214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23215 #define getrpcbynumber innocuous_getrpcbynumber
23217 /* System header to define __stub macros and hopefully few prototypes,
23218 which can conflict with char getrpcbynumber (); below.
23219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23220 <limits.h> exists even on freestanding compilers. */
23223 # include <limits.h>
23225 # include <assert.h>
23228 #undef getrpcbynumber
23230 /* Override any GCC internal prototype to avoid an error.
23231 Use char because int might match the return type of a GCC
23232 builtin and then its argument prototype would still apply. */
23236 char getrpcbynumber ();
23237 /* The GNU C library defines this for functions which it implements
23238 to always fail with ENOSYS. Some functions are actually named
23239 something starting with __ and the normal name is an alias. */
23240 #if defined __stub_getrpcbynumber || defined __stub___getrpcbynumber
23247 return getrpcbynumber ();
23252 rm -f conftest.$ac_objext conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23259 $as_echo "$ac_try_echo") >&5
23260 (eval "$ac_link") 2>conftest.er1
23262 grep -v '^ *+' conftest.er1 >conftest.err
23264 cat conftest.err >&5
23265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } && {
23267 test -z "$ac_c_werror_flag" ||
23268 test ! -s conftest.err
23269 } && test -s conftest$ac_exeext && {
23270 test "$cross_compiling" = yes ||
23271 $as_test_x conftest$ac_exeext
23273 ac_cv_func_getrpcbynumber=yes
23275 $as_echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23278 ac_cv_func_getrpcbynumber=no
23281 rm -rf conftest.dSYM
23282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23283 conftest$ac_exeext conftest.$ac_ext
23285 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getrpcbynumber" >&5
23286 $as_echo "$ac_cv_func_getrpcbynumber" >&6; }
23287 if test "x$ac_cv_func_getrpcbynumber" = x""yes; then
23290 { { $as_echo "$as_me:$LINENO: error: Function 'getrpcbynumber' not found." >&5
23291 $as_echo "$as_me: error: Function 'getrpcbynumber' not found." >&2;}
23292 { (exit 1); exit 1; }; }
23296 { $as_echo "$as_me:$LINENO: checking for getservbyname" >&5
23297 $as_echo_n "checking for getservbyname... " >&6; }
23298 if test "${ac_cv_func_getservbyname+set}" = set; then
23299 $as_echo_n "(cached) " >&6
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 /* Define getservbyname to an innocuous variant, in case <limits.h> declares getservbyname.
23308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23309 #define getservbyname innocuous_getservbyname
23311 /* System header to define __stub macros and hopefully few prototypes,
23312 which can conflict with char getservbyname (); below.
23313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23314 <limits.h> exists even on freestanding compilers. */
23317 # include <limits.h>
23319 # include <assert.h>
23322 #undef getservbyname
23324 /* Override any GCC internal prototype to avoid an error.
23325 Use char because int might match the return type of a GCC
23326 builtin and then its argument prototype would still apply. */
23330 char getservbyname ();
23331 /* The GNU C library defines this for functions which it implements
23332 to always fail with ENOSYS. Some functions are actually named
23333 something starting with __ and the normal name is an alias. */
23334 #if defined __stub_getservbyname || defined __stub___getservbyname
23341 return getservbyname ();
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350 *) ac_try_echo=$ac_try;;
23352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23353 $as_echo "$ac_try_echo") >&5
23354 (eval "$ac_link") 2>conftest.er1
23356 grep -v '^ *+' conftest.er1 >conftest.err
23358 cat conftest.err >&5
23359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest$ac_exeext && {
23364 test "$cross_compiling" = yes ||
23365 $as_test_x conftest$ac_exeext
23367 ac_cv_func_getservbyname=yes
23369 $as_echo "$as_me: failed program was:" >&5
23370 sed 's/^/| /' conftest.$ac_ext >&5
23372 ac_cv_func_getservbyname=no
23375 rm -rf conftest.dSYM
23376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23377 conftest$ac_exeext conftest.$ac_ext
23379 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname" >&5
23380 $as_echo "$ac_cv_func_getservbyname" >&6; }
23381 if test "x$ac_cv_func_getservbyname" = x""yes; then
23384 { { $as_echo "$as_me:$LINENO: error: Function 'getservbyname' not found." >&5
23385 $as_echo "$as_me: error: Function 'getservbyname' not found." >&2;}
23386 { (exit 1); exit 1; }; }
23390 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23391 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23392 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23393 $as_echo_n "(cached) " >&6
23395 ac_check_lib_save_LIBS=$LIBS
23396 LIBS="-lcrypt $LIBS"
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23404 /* Override any GCC internal prototype to avoid an error.
23405 Use char because int might match the return type of a GCC
23406 builtin and then its argument prototype would still apply. */
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (ac_try="$ac_link"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_link") 2>conftest.er1
23429 grep -v '^ *+' conftest.er1 >conftest.err
23431 cat conftest.err >&5
23432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest$ac_exeext && {
23437 test "$cross_compiling" = yes ||
23438 $as_test_x conftest$ac_exeext
23440 ac_cv_lib_crypt_crypt=yes
23442 $as_echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23445 ac_cv_lib_crypt_crypt=no
23448 rm -rf conftest.dSYM
23449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23450 conftest$ac_exeext conftest.$ac_ext
23451 LIBS=$ac_check_lib_save_LIBS
23453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23454 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23455 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
23460 if test "$enable_nfsv4" = yes; then
23463 { $as_echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
23464 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
23465 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
23466 $as_echo_n "(cached) " >&6
23468 ac_check_lib_save_LIBS=$LIBS
23469 LIBS="-levent $LIBS"
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23477 /* Override any GCC internal prototype to avoid an error.
23478 Use char because int might match the return type of a GCC
23479 builtin and then its argument prototype would still apply. */
23483 char event_dispatch ();
23487 return event_dispatch ();
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (ac_try="$ac_link"
23494 case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23499 $as_echo "$ac_try_echo") >&5
23500 (eval "$ac_link") 2>conftest.er1
23502 grep -v '^ *+' conftest.er1 >conftest.err
23504 cat conftest.err >&5
23505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } && {
23507 test -z "$ac_c_werror_flag" ||
23508 test ! -s conftest.err
23509 } && test -s conftest$ac_exeext && {
23510 test "$cross_compiling" = yes ||
23511 $as_test_x conftest$ac_exeext
23513 ac_cv_lib_event_event_dispatch=yes
23515 $as_echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23518 ac_cv_lib_event_event_dispatch=no
23521 rm -rf conftest.dSYM
23522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23523 conftest$ac_exeext conftest.$ac_ext
23524 LIBS=$ac_check_lib_save_LIBS
23526 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
23527 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
23528 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then
23531 { { $as_echo "$as_me:$LINENO: error: libevent not found." >&5
23532 $as_echo "$as_me: error: libevent not found." >&2;}
23533 { (exit 1); exit 1; }; }
23538 for ac_header in event.h
23540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23542 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23543 $as_echo_n "checking for $ac_header... " >&6; }
23544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23545 $as_echo_n "(cached) " >&6
23547 ac_res=`eval 'as_val=${'$as_ac_Header'}
23548 $as_echo "$as_val"'`
23549 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23550 $as_echo "$ac_res" >&6; }
23552 # Is the header compilable?
23553 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23554 $as_echo_n "checking $ac_header usability... " >&6; }
23555 cat >conftest.$ac_ext <<_ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23561 $ac_includes_default
23562 #include <$ac_header>
23564 rm -f conftest.$ac_objext
23565 if { (ac_try="$ac_compile"
23566 case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23571 $as_echo "$ac_try_echo") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23574 grep -v '^ *+' conftest.er1 >conftest.err
23576 cat conftest.err >&5
23577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_header_compiler=yes
23584 $as_echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 ac_header_compiler=no
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23592 $as_echo "$ac_header_compiler" >&6; }
23594 # Is the header present?
23595 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23596 $as_echo_n "checking $ac_header presence... " >&6; }
23597 cat >conftest.$ac_ext <<_ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23603 #include <$ac_header>
23605 if { (ac_try="$ac_cpp conftest.$ac_ext"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23611 $as_echo "$ac_try_echo") >&5
23612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23614 grep -v '^ *+' conftest.er1 >conftest.err
23616 cat conftest.err >&5
23617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } >/dev/null && {
23619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23620 test ! -s conftest.err
23622 ac_header_preproc=yes
23624 $as_echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23627 ac_header_preproc=no
23630 rm -f conftest.err conftest.$ac_ext
23631 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23632 $as_echo "$ac_header_preproc" >&6; }
23634 # So? What about this header?
23635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23638 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23640 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23641 ac_header_preproc=yes
23644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23645 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23647 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23649 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23651 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23653 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23655 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23657 ## ---------------------------------------- ##
23658 ## Report this to linux-nfs@vger.kernel.org ##
23659 ## ---------------------------------------- ##
23661 ) | sed "s/^/$as_me: WARNING: /" >&2
23664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23665 $as_echo_n "checking for $ac_header... " >&6; }
23666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23667 $as_echo_n "(cached) " >&6
23669 eval "$as_ac_Header=\$ac_header_preproc"
23671 ac_res=`eval 'as_val=${'$as_ac_Header'}
23672 $as_echo "$as_val"'`
23673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23674 $as_echo "$ac_res" >&6; }
23677 as_val=`eval 'as_val=${'$as_ac_Header'}
23678 $as_echo "$as_val"'`
23679 if test "x$as_val" = x""yes; then
23680 cat >>confdefs.h <<_ACEOF
23681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23685 { { $as_echo "$as_me:$LINENO: error: libevent headers not found." >&5
23686 $as_echo "$as_me: error: libevent headers not found." >&2;}
23687 { (exit 1); exit 1; }; }
23697 { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
23698 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
23699 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
23700 $as_echo_n "(cached) " >&6
23702 ac_check_lib_save_LIBS=$LIBS
23703 LIBS="-lnfsidmap $LIBS"
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23711 /* Override any GCC internal prototype to avoid an error.
23712 Use char because int might match the return type of a GCC
23713 builtin and then its argument prototype would still apply. */
23717 char nfs4_init_name_mapping ();
23721 return nfs4_init_name_mapping ();
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23733 $as_echo "$ac_try_echo") >&5
23734 (eval "$ac_link") 2>conftest.er1
23736 grep -v '^ *+' conftest.er1 >conftest.err
23738 cat conftest.err >&5
23739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); } && {
23741 test -z "$ac_c_werror_flag" ||
23742 test ! -s conftest.err
23743 } && test -s conftest$ac_exeext && {
23744 test "$cross_compiling" = yes ||
23745 $as_test_x conftest$ac_exeext
23747 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
23749 $as_echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23752 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
23755 rm -rf conftest.dSYM
23756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23757 conftest$ac_exeext conftest.$ac_ext
23758 LIBS=$ac_check_lib_save_LIBS
23760 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
23761 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
23762 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
23765 { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
23766 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
23767 { (exit 1); exit 1; }; }
23772 for ac_header in nfsidmap.h
23774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23777 $as_echo_n "checking for $ac_header... " >&6; }
23778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23779 $as_echo_n "(cached) " >&6
23781 ac_res=`eval 'as_val=${'$as_ac_Header'}
23782 $as_echo "$as_val"'`
23783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23784 $as_echo "$ac_res" >&6; }
23786 # Is the header compilable?
23787 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23788 $as_echo_n "checking $ac_header usability... " >&6; }
23789 cat >conftest.$ac_ext <<_ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23795 $ac_includes_default
23796 #include <$ac_header>
23798 rm -f conftest.$ac_objext
23799 if { (ac_try="$ac_compile"
23800 case "(($ac_try" in
23801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802 *) ac_try_echo=$ac_try;;
23804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23805 $as_echo "$ac_try_echo") >&5
23806 (eval "$ac_compile") 2>conftest.er1
23808 grep -v '^ *+' conftest.er1 >conftest.err
23810 cat conftest.err >&5
23811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } && {
23813 test -z "$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23815 } && test -s conftest.$ac_objext; then
23816 ac_header_compiler=yes
23818 $as_echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23821 ac_header_compiler=no
23824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23826 $as_echo "$ac_header_compiler" >&6; }
23828 # Is the header present?
23829 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23830 $as_echo_n "checking $ac_header presence... " >&6; }
23831 cat >conftest.$ac_ext <<_ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h. */
23837 #include <$ac_header>
23839 if { (ac_try="$ac_cpp conftest.$ac_ext"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23845 $as_echo "$ac_try_echo") >&5
23846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23848 grep -v '^ *+' conftest.er1 >conftest.err
23850 cat conftest.err >&5
23851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } >/dev/null && {
23853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23854 test ! -s conftest.err
23856 ac_header_preproc=yes
23858 $as_echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23861 ac_header_preproc=no
23864 rm -f conftest.err conftest.$ac_ext
23865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23866 $as_echo "$ac_header_preproc" >&6; }
23868 # So? What about this header?
23869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23872 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23875 ac_header_preproc=yes
23878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23879 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23881 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23883 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23885 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23889 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23891 ## ---------------------------------------- ##
23892 ## Report this to linux-nfs@vger.kernel.org ##
23893 ## ---------------------------------------- ##
23895 ) | sed "s/^/$as_me: WARNING: /" >&2
23898 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23899 $as_echo_n "checking for $ac_header... " >&6; }
23900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23901 $as_echo_n "(cached) " >&6
23903 eval "$as_ac_Header=\$ac_header_preproc"
23905 ac_res=`eval 'as_val=${'$as_ac_Header'}
23906 $as_echo "$as_val"'`
23907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23908 $as_echo "$ac_res" >&6; }
23911 as_val=`eval 'as_val=${'$as_ac_Header'}
23912 $as_echo "$as_val"'`
23913 if test "x$as_val" = x""yes; then
23914 cat >>confdefs.h <<_ACEOF
23915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23919 { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
23920 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
23921 { (exit 1); exit 1; }; }
23927 { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23928 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
23929 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23930 $as_echo_n "(cached) " >&6
23932 ac_check_lib_save_LIBS=$LIBS
23933 LIBS="-lnfsidmap $LIBS"
23934 cat >conftest.$ac_ext <<_ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23941 /* Override any GCC internal prototype to avoid an error.
23942 Use char because int might match the return type of a GCC
23943 builtin and then its argument prototype would still apply. */
23947 char nfs4_set_debug ();
23951 return nfs4_set_debug ();
23956 rm -f conftest.$ac_objext conftest$ac_exeext
23957 if { (ac_try="$ac_link"
23958 case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23963 $as_echo "$ac_try_echo") >&5
23964 (eval "$ac_link") 2>conftest.er1
23966 grep -v '^ *+' conftest.er1 >conftest.err
23968 cat conftest.err >&5
23969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); } && {
23971 test -z "$ac_c_werror_flag" ||
23972 test ! -s conftest.err
23973 } && test -s conftest$ac_exeext && {
23974 test "$cross_compiling" = yes ||
23975 $as_test_x conftest$ac_exeext
23977 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23979 $as_echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23982 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23985 rm -rf conftest.dSYM
23986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23987 conftest$ac_exeext conftest.$ac_ext
23988 LIBS=$ac_check_lib_save_LIBS
23990 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23991 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23992 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
23994 cat >>confdefs.h <<\_ACEOF
23995 #define HAVE_NFS4_SET_DEBUG 1
24003 if test "$enable_gss" = yes; then
24006 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24007 if test -n "$ac_tool_prefix"; then
24008 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24009 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24011 $as_echo_n "checking for $ac_word... " >&6; }
24012 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24013 $as_echo_n "(cached) " >&6
24015 case $PKG_CONFIG in
24017 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24021 for as_dir in $PATH
24024 test -z "$as_dir" && as_dir=.
24025 for ac_exec_ext in '' $ac_executable_extensions; do
24026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24027 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24039 if test -n "$PKG_CONFIG"; then
24040 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24041 $as_echo "$PKG_CONFIG" >&6; }
24043 { $as_echo "$as_me:$LINENO: result: no" >&5
24044 $as_echo "no" >&6; }
24049 if test -z "$ac_cv_path_PKG_CONFIG"; then
24050 ac_pt_PKG_CONFIG=$PKG_CONFIG
24051 # Extract the first word of "pkg-config", so it can be a program name with args.
24052 set dummy pkg-config; ac_word=$2
24053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24054 $as_echo_n "checking for $ac_word... " >&6; }
24055 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
24056 $as_echo_n "(cached) " >&6
24058 case $ac_pt_PKG_CONFIG in
24060 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24064 for as_dir in $PATH
24067 test -z "$as_dir" && as_dir=.
24068 for ac_exec_ext in '' $ac_executable_extensions; do
24069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24070 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24081 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24082 if test -n "$ac_pt_PKG_CONFIG"; then
24083 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
24084 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24086 { $as_echo "$as_me:$LINENO: result: no" >&5
24087 $as_echo "no" >&6; }
24090 if test "x$ac_pt_PKG_CONFIG" = x; then
24093 case $cross_compiling:$ac_tool_warned in
24095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
24096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24097 ac_tool_warned=yes ;;
24099 PKG_CONFIG=$ac_pt_PKG_CONFIG
24102 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24106 if test -n "$PKG_CONFIG"; then
24107 _pkg_min_version=0.9.0
24108 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
24109 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24110 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24111 { $as_echo "$as_me:$LINENO: result: yes" >&5
24112 $as_echo "yes" >&6; }
24114 { $as_echo "$as_me:$LINENO: result: no" >&5
24115 $as_echo "no" >&6; }
24124 { $as_echo "$as_me:$LINENO: checking for GSSGLUE" >&5
24125 $as_echo_n "checking for GSSGLUE... " >&6; }
24127 if test -n "$GSSGLUE_CFLAGS"; then
24128 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
24129 elif test -n "$PKG_CONFIG"; then
24130 if test -n "$PKG_CONFIG" && \
24131 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
24132 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
24134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; then
24136 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
24143 if test -n "$GSSGLUE_LIBS"; then
24144 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
24145 elif test -n "$PKG_CONFIG"; then
24146 if test -n "$PKG_CONFIG" && \
24147 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
24148 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
24150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; then
24152 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
24162 if test $pkg_failed = yes; then
24164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24165 _pkg_short_errors_supported=yes
24167 _pkg_short_errors_supported=no
24169 if test $_pkg_short_errors_supported = yes; then
24170 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
24172 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
24174 # Put the nasty error message in config.log where it belongs
24175 echo "$GSSGLUE_PKG_ERRORS" >&5
24177 { { $as_echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
24179 $GSSGLUE_PKG_ERRORS
24181 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24182 installed software in a non-standard prefix.
24184 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
24185 and GSSGLUE_LIBS to avoid the need to call pkg-config.
24186 See the pkg-config man page for more details.
24188 $as_echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
24190 $GSSGLUE_PKG_ERRORS
24192 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24193 installed software in a non-standard prefix.
24195 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
24196 and GSSGLUE_LIBS to avoid the need to call pkg-config.
24197 See the pkg-config man page for more details.
24199 { (exit 1); exit 1; }; }
24200 elif test $pkg_failed = untried; then
24201 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24203 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24204 is in your PATH or set the PKG_CONFIG environment variable to the full
24205 path to pkg-config.
24207 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
24208 and GSSGLUE_LIBS to avoid the need to call pkg-config.
24209 See the pkg-config man page for more details.
24211 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24212 See \`config.log' for more details." >&5
24213 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24214 is in your PATH or set the PKG_CONFIG environment variable to the full
24215 path to pkg-config.
24217 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
24218 and GSSGLUE_LIBS to avoid the need to call pkg-config.
24219 See the pkg-config man page for more details.
24221 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24222 See \`config.log' for more details." >&2;}
24223 { (exit 1); exit 1; }; }; }
24225 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
24226 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
24227 { $as_echo "$as_me:$LINENO: result: yes" >&5
24228 $as_echo "yes" >&6; }
24232 if test "$enable_tirpc" = no; then
24235 { $as_echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
24236 $as_echo_n "checking for RPCSECGSS... " >&6; }
24238 if test -n "$RPCSECGSS_CFLAGS"; then
24239 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
24240 elif test -n "$PKG_CONFIG"; then
24241 if test -n "$PKG_CONFIG" && \
24242 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
24243 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
24245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; then
24247 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
24254 if test -n "$RPCSECGSS_LIBS"; then
24255 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
24256 elif test -n "$PKG_CONFIG"; then
24257 if test -n "$PKG_CONFIG" && \
24258 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
24259 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
24261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; then
24263 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
24273 if test $pkg_failed = yes; then
24275 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24276 _pkg_short_errors_supported=yes
24278 _pkg_short_errors_supported=no
24280 if test $_pkg_short_errors_supported = yes; then
24281 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
24283 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
24285 # Put the nasty error message in config.log where it belongs
24286 echo "$RPCSECGSS_PKG_ERRORS" >&5
24288 { { $as_echo "$as_me:$LINENO: error: Package requirements (librpcsecgss >= 0.16) were not met:
24290 $RPCSECGSS_PKG_ERRORS
24292 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24293 installed software in a non-standard prefix.
24295 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
24296 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
24297 See the pkg-config man page for more details.
24299 $as_echo "$as_me: error: Package requirements (librpcsecgss >= 0.16) were not met:
24301 $RPCSECGSS_PKG_ERRORS
24303 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24304 installed software in a non-standard prefix.
24306 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
24307 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
24308 See the pkg-config man page for more details.
24310 { (exit 1); exit 1; }; }
24311 elif test $pkg_failed = untried; then
24312 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24314 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24315 is in your PATH or set the PKG_CONFIG environment variable to the full
24316 path to pkg-config.
24318 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
24319 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
24320 See the pkg-config man page for more details.
24322 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24323 See \`config.log' for more details." >&5
24324 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24325 is in your PATH or set the PKG_CONFIG environment variable to the full
24326 path to pkg-config.
24328 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
24329 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
24330 See the pkg-config man page for more details.
24332 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24333 See \`config.log' for more details." >&2;}
24334 { (exit 1); exit 1; }; }; }
24336 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
24337 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
24338 { $as_echo "$as_me:$LINENO: result: yes" >&5
24339 $as_echo "yes" >&6; }
24348 if test "$knfsd_cv_glibc2" = no; then
24349 { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
24350 $as_echo_n "checking for daemon in -lbsd... " >&6; }
24351 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
24352 $as_echo_n "(cached) " >&6
24354 ac_check_lib_save_LIBS=$LIBS
24356 cat >conftest.$ac_ext <<_ACEOF
24359 cat confdefs.h >>conftest.$ac_ext
24360 cat >>conftest.$ac_ext <<_ACEOF
24361 /* end confdefs.h. */
24363 /* Override any GCC internal prototype to avoid an error.
24364 Use char because int might match the return type of a GCC
24365 builtin and then its argument prototype would still apply. */
24378 rm -f conftest.$ac_objext conftest$ac_exeext
24379 if { (ac_try="$ac_link"
24380 case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24385 $as_echo "$ac_try_echo") >&5
24386 (eval "$ac_link") 2>conftest.er1
24388 grep -v '^ *+' conftest.er1 >conftest.err
24390 cat conftest.err >&5
24391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } && {
24393 test -z "$ac_c_werror_flag" ||
24394 test ! -s conftest.err
24395 } && test -s conftest$ac_exeext && {
24396 test "$cross_compiling" = yes ||
24397 $as_test_x conftest$ac_exeext
24399 ac_cv_lib_bsd_daemon=yes
24401 $as_echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24404 ac_cv_lib_bsd_daemon=no
24407 rm -rf conftest.dSYM
24408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24409 conftest$ac_exeext conftest.$ac_ext
24410 LIBS=$ac_check_lib_save_LIBS
24412 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
24413 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
24414 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then
24420 if test "$choose_blkid" != no; then
24421 { $as_echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
24422 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
24423 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
24424 $as_echo_n "(cached) " >&6
24426 ac_check_lib_save_LIBS=$LIBS
24427 LIBS="-lblkid $LIBS"
24428 cat >conftest.$ac_ext <<_ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h. */
24435 /* Override any GCC internal prototype to avoid an error.
24436 Use char because int might match the return type of a GCC
24437 builtin and then its argument prototype would still apply. */
24441 char blkid_get_library_version ();
24445 return blkid_get_library_version ();
24450 rm -f conftest.$ac_objext conftest$ac_exeext
24451 if { (ac_try="$ac_link"
24452 case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457 $as_echo "$ac_try_echo") >&5
24458 (eval "$ac_link") 2>conftest.er1
24460 grep -v '^ *+' conftest.er1 >conftest.err
24462 cat conftest.err >&5
24463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } && {
24465 test -z "$ac_c_werror_flag" ||
24466 test ! -s conftest.err
24467 } && test -s conftest$ac_exeext && {
24468 test "$cross_compiling" = yes ||
24469 $as_test_x conftest$ac_exeext
24471 ac_cv_lib_blkid_blkid_get_library_version=yes
24473 $as_echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476 ac_cv_lib_blkid_blkid_get_library_version=no
24479 rm -rf conftest.dSYM
24480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24481 conftest$ac_exeext conftest.$ac_ext
24482 LIBS=$ac_check_lib_save_LIBS
24484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
24485 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
24486 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then
24489 { { $as_echo "$as_me:$LINENO: error: libblkid needed" >&5
24490 $as_echo "$as_me: error: libblkid needed" >&2;}
24491 { (exit 1); exit 1; }; }
24494 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
24495 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
24496 $as_echo_n "checking for blkid/blkid.h... " >&6; }
24497 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
24498 $as_echo_n "(cached) " >&6
24500 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
24501 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
24503 # Is the header compilable?
24504 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
24505 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
24506 cat >conftest.$ac_ext <<_ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 $ac_includes_default
24513 #include <blkid/blkid.h>
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24522 $as_echo "$ac_try_echo") >&5
24523 (eval "$ac_compile") 2>conftest.er1
24525 grep -v '^ *+' conftest.er1 >conftest.err
24527 cat conftest.err >&5
24528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && {
24530 test -z "$ac_c_werror_flag" ||
24531 test ! -s conftest.err
24532 } && test -s conftest.$ac_objext; then
24533 ac_header_compiler=yes
24535 $as_echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 ac_header_compiler=no
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24543 $as_echo "$ac_header_compiler" >&6; }
24545 # Is the header present?
24546 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
24547 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
24548 cat >conftest.$ac_ext <<_ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 #include <blkid/blkid.h>
24556 if { (ac_try="$ac_cpp conftest.$ac_ext"
24557 case "(($ac_try" in
24558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559 *) ac_try_echo=$ac_try;;
24561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24562 $as_echo "$ac_try_echo") >&5
24563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24565 grep -v '^ *+' conftest.er1 >conftest.err
24567 cat conftest.err >&5
24568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } >/dev/null && {
24570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24573 ac_header_preproc=yes
24575 $as_echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 ac_header_preproc=no
24581 rm -f conftest.err conftest.$ac_ext
24582 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24583 $as_echo "$ac_header_preproc" >&6; }
24585 # So? What about this header?
24586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24588 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
24589 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24590 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
24591 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
24592 ac_header_preproc=yes
24595 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
24596 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
24597 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
24598 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
24599 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
24600 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
24601 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
24602 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
24603 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
24604 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
24605 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
24606 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
24608 ## ---------------------------------------- ##
24609 ## Report this to linux-nfs@vger.kernel.org ##
24610 ## ---------------------------------------- ##
24612 ) | sed "s/^/$as_me: WARNING: /" >&2
24615 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
24616 $as_echo_n "checking for blkid/blkid.h... " >&6; }
24617 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
24618 $as_echo_n "(cached) " >&6
24620 ac_cv_header_blkid_blkid_h=$ac_header_preproc
24622 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
24623 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
24626 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
24629 { { $as_echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
24630 $as_echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
24631 { (exit 1); exit 1; }; }
24636 { $as_echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
24637 $as_echo_n "checking for suitable libblkid version... " >&6; }
24638 if test "${libblkid_cv_is_recent+set}" = set; then
24639 $as_echo_n "(cached) " >&6
24644 if test "$cross_compiling" = yes; then
24645 libblkid_cv_is_recent=unknown
24647 cat >conftest.$ac_ext <<_ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h. */
24654 #include <blkid/blkid.h>
24657 int vers = blkid_get_library_version(0, 0);
24658 return vers >= 140 ? 0 : 1;
24662 rm -f conftest$ac_exeext
24663 if { (ac_try="$ac_link"
24664 case "(($ac_try" in
24665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666 *) ac_try_echo=$ac_try;;
24668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24669 $as_echo "$ac_try_echo") >&5
24670 (eval "$ac_link") 2>&5
24672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24674 { (case "(($ac_try" in
24675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24679 $as_echo "$ac_try_echo") >&5
24680 (eval "$ac_try") 2>&5
24682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24684 libblkid_cv_is_recent=yes
24686 $as_echo "$as_me: program exited with status $ac_status" >&5
24687 $as_echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24690 ( exit $ac_status )
24691 libblkid_cv_is_recent=no
24693 rm -rf conftest.dSYM
24694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24701 { $as_echo "$as_me:$LINENO: result: $libblkid_cv_is_recent" >&5
24702 $as_echo "$libblkid_cv_is_recent" >&6; }
24704 if test $choose_blkid = yes; then
24706 test $libblkid_cv_is_recent = no && { $as_echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
24707 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
24709 if test $libblkid_cv_is_recent = yes
24712 { $as_echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
24713 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
24717 cat >>confdefs.h <<_ACEOF
24718 #define USE_BLKID $use_blkid
24727 if test "$enable_gss" = yes; then
24728 { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
24729 $as_echo_n "checking for getnameinfo... " >&6; }
24730 if test "${ac_cv_func_getnameinfo+set}" = set; then
24731 $as_echo_n "(cached) " >&6
24733 cat >conftest.$ac_ext <<_ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h. */
24739 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
24740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24741 #define getnameinfo innocuous_getnameinfo
24743 /* System header to define __stub macros and hopefully few prototypes,
24744 which can conflict with char getnameinfo (); below.
24745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24746 <limits.h> exists even on freestanding compilers. */
24749 # include <limits.h>
24751 # include <assert.h>
24756 /* Override any GCC internal prototype to avoid an error.
24757 Use char because int might match the return type of a GCC
24758 builtin and then its argument prototype would still apply. */
24762 char getnameinfo ();
24763 /* The GNU C library defines this for functions which it implements
24764 to always fail with ENOSYS. Some functions are actually named
24765 something starting with __ and the normal name is an alias. */
24766 #if defined __stub_getnameinfo || defined __stub___getnameinfo
24773 return getnameinfo ();
24778 rm -f conftest.$ac_objext conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24785 $as_echo "$ac_try_echo") >&5
24786 (eval "$ac_link") 2>conftest.er1
24788 grep -v '^ *+' conftest.er1 >conftest.err
24790 cat conftest.err >&5
24791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); } && {
24793 test -z "$ac_c_werror_flag" ||
24794 test ! -s conftest.err
24795 } && test -s conftest$ac_exeext && {
24796 test "$cross_compiling" = yes ||
24797 $as_test_x conftest$ac_exeext
24799 ac_cv_func_getnameinfo=yes
24801 $as_echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24804 ac_cv_func_getnameinfo=no
24807 rm -rf conftest.dSYM
24808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24809 conftest$ac_exeext conftest.$ac_ext
24811 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24812 $as_echo "$ac_cv_func_getnameinfo" >&6; }
24813 if test "x$ac_cv_func_getnameinfo" = x""yes; then
24816 { { $as_echo "$as_me:$LINENO: error: GSSAPI support requires 'getnameinfo' function" >&5
24817 $as_echo "$as_me: error: GSSAPI support requires 'getnameinfo' function" >&2;}
24818 { (exit 1); exit 1; }; }
24824 { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
24825 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
24826 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
24827 $as_echo_n "(cached) " >&6
24829 ac_check_lib_save_LIBS=$LIBS
24830 LIBS="-lnfsidmap $LIBS"
24831 cat >conftest.$ac_ext <<_ACEOF
24834 cat confdefs.h >>conftest.$ac_ext
24835 cat >>conftest.$ac_ext <<_ACEOF
24836 /* end confdefs.h. */
24838 /* Override any GCC internal prototype to avoid an error.
24839 Use char because int might match the return type of a GCC
24840 builtin and then its argument prototype would still apply. */
24844 char nfs4_init_name_mapping ();
24848 return nfs4_init_name_mapping ();
24853 rm -f conftest.$ac_objext conftest$ac_exeext
24854 if { (ac_try="$ac_link"
24855 case "(($ac_try" in
24856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861 (eval "$ac_link") 2>conftest.er1
24863 grep -v '^ *+' conftest.er1 >conftest.err
24865 cat conftest.err >&5
24866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } && {
24868 test -z "$ac_c_werror_flag" ||
24869 test ! -s conftest.err
24870 } && test -s conftest$ac_exeext && {
24871 test "$cross_compiling" = yes ||
24872 $as_test_x conftest$ac_exeext
24874 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
24876 $as_echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24879 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
24882 rm -rf conftest.dSYM
24883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24884 conftest$ac_exeext conftest.$ac_ext
24885 LIBS=$ac_check_lib_save_LIBS
24887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
24888 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
24889 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
24892 { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
24893 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
24894 { (exit 1); exit 1; }; }
24899 for ac_header in nfsidmap.h
24901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24904 $as_echo_n "checking for $ac_header... " >&6; }
24905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24906 $as_echo_n "(cached) " >&6
24908 ac_res=`eval 'as_val=${'$as_ac_Header'}
24909 $as_echo "$as_val"'`
24910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24911 $as_echo "$ac_res" >&6; }
24913 # Is the header compilable?
24914 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24915 $as_echo_n "checking $ac_header usability... " >&6; }
24916 cat >conftest.$ac_ext <<_ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 $ac_includes_default
24923 #include <$ac_header>
24925 rm -f conftest.$ac_objext
24926 if { (ac_try="$ac_compile"
24927 case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24932 $as_echo "$ac_try_echo") >&5
24933 (eval "$ac_compile") 2>conftest.er1
24935 grep -v '^ *+' conftest.er1 >conftest.err
24937 cat conftest.err >&5
24938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } && {
24940 test -z "$ac_c_werror_flag" ||
24941 test ! -s conftest.err
24942 } && test -s conftest.$ac_objext; then
24943 ac_header_compiler=yes
24945 $as_echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24948 ac_header_compiler=no
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24953 $as_echo "$ac_header_compiler" >&6; }
24955 # Is the header present?
24956 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24957 $as_echo_n "checking $ac_header presence... " >&6; }
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 #include <$ac_header>
24966 if { (ac_try="$ac_cpp conftest.$ac_ext"
24967 case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24972 $as_echo "$ac_try_echo") >&5
24973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24975 grep -v '^ *+' conftest.er1 >conftest.err
24977 cat conftest.err >&5
24978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } >/dev/null && {
24980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24983 ac_header_preproc=yes
24985 $as_echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24988 ac_header_preproc=no
24991 rm -f conftest.err conftest.$ac_ext
24992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24993 $as_echo "$ac_header_preproc" >&6; }
24995 # So? What about this header?
24996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24999 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25002 ac_header_preproc=yes
25005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25006 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25008 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25010 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25012 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25016 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25018 ## ---------------------------------------- ##
25019 ## Report this to linux-nfs@vger.kernel.org ##
25020 ## ---------------------------------------- ##
25022 ) | sed "s/^/$as_me: WARNING: /" >&2
25025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25026 $as_echo_n "checking for $ac_header... " >&6; }
25027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25028 $as_echo_n "(cached) " >&6
25030 eval "$as_ac_Header=\$ac_header_preproc"
25032 ac_res=`eval 'as_val=${'$as_ac_Header'}
25033 $as_echo "$as_val"'`
25034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25035 $as_echo "$ac_res" >&6; }
25038 as_val=`eval 'as_val=${'$as_ac_Header'}
25039 $as_echo "$as_val"'`
25040 if test "x$as_val" = x""yes; then
25041 cat >>confdefs.h <<_ACEOF
25042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25046 { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
25047 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
25048 { (exit 1); exit 1; }; }
25054 { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
25055 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
25056 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
25057 $as_echo_n "(cached) " >&6
25059 ac_check_lib_save_LIBS=$LIBS
25060 LIBS="-lnfsidmap $LIBS"
25061 cat >conftest.$ac_ext <<_ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h. */
25068 /* Override any GCC internal prototype to avoid an error.
25069 Use char because int might match the return type of a GCC
25070 builtin and then its argument prototype would still apply. */
25074 char nfs4_set_debug ();
25078 return nfs4_set_debug ();
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (ac_try="$ac_link"
25085 case "(($ac_try" in
25086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087 *) ac_try_echo=$ac_try;;
25089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25090 $as_echo "$ac_try_echo") >&5
25091 (eval "$ac_link") 2>conftest.er1
25093 grep -v '^ *+' conftest.er1 >conftest.err
25095 cat conftest.err >&5
25096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } && {
25098 test -z "$ac_c_werror_flag" ||
25099 test ! -s conftest.err
25100 } && test -s conftest$ac_exeext && {
25101 test "$cross_compiling" = yes ||
25102 $as_test_x conftest$ac_exeext
25104 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
25106 $as_echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ac_cv_lib_nfsidmap_nfs4_set_debug=no
25112 rm -rf conftest.dSYM
25113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25114 conftest$ac_exeext conftest.$ac_ext
25115 LIBS=$ac_check_lib_save_LIBS
25117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
25118 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
25119 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
25121 cat >>confdefs.h <<\_ACEOF
25122 #define HAVE_NFS4_SET_DEBUG 1
25131 for ac_header in spkm3.h
25133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25136 $as_echo_n "checking for $ac_header... " >&6; }
25137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25138 $as_echo_n "(cached) " >&6
25140 ac_res=`eval 'as_val=${'$as_ac_Header'}
25141 $as_echo "$as_val"'`
25142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25143 $as_echo "$ac_res" >&6; }
25145 # Is the header compilable?
25146 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25147 $as_echo_n "checking $ac_header usability... " >&6; }
25148 cat >conftest.$ac_ext <<_ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h. */
25154 $ac_includes_default
25155 #include <$ac_header>
25157 rm -f conftest.$ac_objext
25158 if { (ac_try="$ac_compile"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25164 $as_echo "$ac_try_echo") >&5
25165 (eval "$ac_compile") 2>conftest.er1
25167 grep -v '^ *+' conftest.er1 >conftest.err
25169 cat conftest.err >&5
25170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && {
25172 test -z "$ac_c_werror_flag" ||
25173 test ! -s conftest.err
25174 } && test -s conftest.$ac_objext; then
25175 ac_header_compiler=yes
25177 $as_echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25180 ac_header_compiler=no
25183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25184 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25185 $as_echo "$ac_header_compiler" >&6; }
25187 # Is the header present?
25188 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25189 $as_echo_n "checking $ac_header presence... " >&6; }
25190 cat >conftest.$ac_ext <<_ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25196 #include <$ac_header>
25198 if { (ac_try="$ac_cpp conftest.$ac_ext"
25199 case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25204 $as_echo "$ac_try_echo") >&5
25205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25207 grep -v '^ *+' conftest.er1 >conftest.err
25209 cat conftest.err >&5
25210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } >/dev/null && {
25212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25213 test ! -s conftest.err
25215 ac_header_preproc=yes
25217 $as_echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25220 ac_header_preproc=no
25223 rm -f conftest.err conftest.$ac_ext
25224 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25225 $as_echo "$ac_header_preproc" >&6; }
25227 # So? What about this header?
25228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25231 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25234 ac_header_preproc=yes
25237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25238 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25240 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25242 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25244 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25246 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25248 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25250 ## ---------------------------------------- ##
25251 ## Report this to linux-nfs@vger.kernel.org ##
25252 ## ---------------------------------------- ##
25254 ) | sed "s/^/$as_me: WARNING: /" >&2
25257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25258 $as_echo_n "checking for $ac_header... " >&6; }
25259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25260 $as_echo_n "(cached) " >&6
25262 eval "$as_ac_Header=\$ac_header_preproc"
25264 ac_res=`eval 'as_val=${'$as_ac_Header'}
25265 $as_echo "$as_val"'`
25266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25267 $as_echo "$ac_res" >&6; }
25270 as_val=`eval 'as_val=${'$as_ac_Header'}
25271 $as_echo "$as_val"'`
25272 if test "x$as_val" = x""yes; then
25273 cat >>confdefs.h <<_ACEOF
25274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25278 { $as_echo "$as_me:$LINENO: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
25279 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
25286 { $as_echo "$as_me:$LINENO: checking for Kerberos v5" >&5
25287 $as_echo_n "checking for Kerberos v5... " >&6; }
25289 # Check whether --with-krb5 was given.
25290 if test "${with_krb5+set}" = set; then
25291 withval=$with_krb5; case "$withval" in
25296 krb5_with="$withval"
25303 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
25304 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
25306 if test -f $dir/bin/krb5-config; then
25307 K5CONFIG=$dir/bin/krb5-config
25308 elif test -f "/usr/kerberos/bin/krb5-config"; then
25309 K5CONFIG="/usr/kerberos/bin/krb5-config"
25310 elif test -f "/usr/lib/mit/bin/krb5-config"; then
25311 K5CONFIG="/usr/lib/mit/bin/krb5-config"
25313 if test "$K5CONFIG" != ""; then
25314 KRBCFLAGS=`$K5CONFIG --cflags`
25315 KRBLIBS=`$K5CONFIG --libs gssapi`
25316 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
25318 cat >>confdefs.h <<_ACEOF
25319 #define KRB5_VERSION $K5VERS
25322 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
25323 \( -f $dir/lib/libgssapi_krb5.a -o \
25324 -f $dir/lib64/libgssapi_krb5.a -o \
25325 -f $dir/lib64/libgssapi_krb5.so -o \
25326 -f $dir/lib/libgssapi_krb5.so \) ; then
25328 cat >>confdefs.h <<\_ACEOF
25329 #define HAVE_KRB5 1
25333 if test $K5VERS -le 131; then
25335 cat >>confdefs.h <<\_ACEOF
25336 #define USE_GSS_KRB5_CCACHE_NAME 1
25340 gssapi_lib=gssapi_krb5
25342 elif test \( -f $dir/include/heim_err.h -o\
25343 -f $dir/include/heimdal/heim_err.h \) -a \
25344 -f $dir/lib/libroken.a; then
25346 cat >>confdefs.h <<\_ACEOF
25347 #define HAVE_HEIMDAL 1
25356 if test "x$KRBDIR" = "x"; then
25357 if test "x$krb5_with" = "x"; then
25358 { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
25359 $as_echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
25360 { (exit 1); exit 1; }; }
25362 { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
25363 $as_echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
25364 { (exit 1); exit 1; }; }
25367 { $as_echo "$as_me:$LINENO: result: $KRBDIR" >&5
25368 $as_echo "$KRBDIR" >&6; }
25370 echo "The current KRBDIR is $KRBDIR"
25371 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
25372 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
25374 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
25377 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
25380 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
25381 { $as_echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
25382 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
25383 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25384 $as_echo_n "(cached) " >&6
25386 ac_check_lib_save_LIBS=$LIBS
25387 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25388 cat >conftest.$ac_ext <<_ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h. */
25395 /* Override any GCC internal prototype to avoid an error.
25396 Use char because int might match the return type of a GCC
25397 builtin and then its argument prototype would still apply. */
25401 char gss_krb5_export_lucid_sec_context ();
25405 return gss_krb5_export_lucid_sec_context ();
25410 rm -f conftest.$ac_objext conftest$ac_exeext
25411 if { (ac_try="$ac_link"
25412 case "(($ac_try" in
25413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414 *) ac_try_echo=$ac_try;;
25416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25417 $as_echo "$ac_try_echo") >&5
25418 (eval "$ac_link") 2>conftest.er1
25420 grep -v '^ *+' conftest.er1 >conftest.err
25422 cat conftest.err >&5
25423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } && {
25425 test -z "$ac_c_werror_flag" ||
25426 test ! -s conftest.err
25427 } && test -s conftest$ac_exeext && {
25428 test "$cross_compiling" = yes ||
25429 $as_test_x conftest$ac_exeext
25431 eval "$as_ac_Lib=yes"
25433 $as_echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25436 eval "$as_ac_Lib=no"
25439 rm -rf conftest.dSYM
25440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25441 conftest$ac_exeext conftest.$ac_ext
25442 LIBS=$ac_check_lib_save_LIBS
25444 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25445 $as_echo "$as_val"'`
25446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25447 $as_echo "$ac_res" >&6; }
25448 as_val=`eval 'as_val=${'$as_ac_Lib'}
25449 $as_echo "$as_val"'`
25450 if test "x$as_val" = x""yes; then
25452 cat >>confdefs.h <<\_ACEOF
25453 #define HAVE_LUCID_CONTEXT_SUPPORT 1
25458 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
25459 { $as_echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
25460 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
25461 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25462 $as_echo_n "(cached) " >&6
25464 ac_check_lib_save_LIBS=$LIBS
25465 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25466 cat >conftest.$ac_ext <<_ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h. */
25473 /* Override any GCC internal prototype to avoid an error.
25474 Use char because int might match the return type of a GCC
25475 builtin and then its argument prototype would still apply. */
25479 char gss_krb5_set_allowable_enctypes ();
25483 return gss_krb5_set_allowable_enctypes ();
25488 rm -f conftest.$ac_objext conftest$ac_exeext
25489 if { (ac_try="$ac_link"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25495 $as_echo "$ac_try_echo") >&5
25496 (eval "$ac_link") 2>conftest.er1
25498 grep -v '^ *+' conftest.er1 >conftest.err
25500 cat conftest.err >&5
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest$ac_exeext && {
25506 test "$cross_compiling" = yes ||
25507 $as_test_x conftest$ac_exeext
25509 eval "$as_ac_Lib=yes"
25511 $as_echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25514 eval "$as_ac_Lib=no"
25517 rm -rf conftest.dSYM
25518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25519 conftest$ac_exeext conftest.$ac_ext
25520 LIBS=$ac_check_lib_save_LIBS
25522 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25523 $as_echo "$as_val"'`
25524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25525 $as_echo "$ac_res" >&6; }
25526 as_val=`eval 'as_val=${'$as_ac_Lib'}
25527 $as_echo "$as_val"'`
25528 if test "x$as_val" = x""yes; then
25530 cat >>confdefs.h <<\_ACEOF
25531 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
25536 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
25537 { $as_echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
25538 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
25539 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25540 $as_echo_n "(cached) " >&6
25542 ac_check_lib_save_LIBS=$LIBS
25543 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25544 cat >conftest.$ac_ext <<_ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h. */
25551 /* Override any GCC internal prototype to avoid an error.
25552 Use char because int might match the return type of a GCC
25553 builtin and then its argument prototype would still apply. */
25557 char gss_krb5_ccache_name ();
25561 return gss_krb5_ccache_name ();
25566 rm -f conftest.$ac_objext conftest$ac_exeext
25567 if { (ac_try="$ac_link"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25573 $as_echo "$ac_try_echo") >&5
25574 (eval "$ac_link") 2>conftest.er1
25576 grep -v '^ *+' conftest.er1 >conftest.err
25578 cat conftest.err >&5
25579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } && {
25581 test -z "$ac_c_werror_flag" ||
25582 test ! -s conftest.err
25583 } && test -s conftest$ac_exeext && {
25584 test "$cross_compiling" = yes ||
25585 $as_test_x conftest$ac_exeext
25587 eval "$as_ac_Lib=yes"
25589 $as_echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25592 eval "$as_ac_Lib=no"
25595 rm -rf conftest.dSYM
25596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25597 conftest$ac_exeext conftest.$ac_ext
25598 LIBS=$ac_check_lib_save_LIBS
25600 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25601 $as_echo "$as_val"'`
25602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25603 $as_echo "$ac_res" >&6; }
25604 as_val=`eval 'as_val=${'$as_ac_Lib'}
25605 $as_echo "$as_val"'`
25606 if test "x$as_val" = x""yes; then
25608 cat >>confdefs.h <<\_ACEOF
25609 #define HAVE_GSS_KRB5_CCACHE_NAME 1
25615 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
25616 { $as_echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
25617 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
25618 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25619 $as_echo_n "(cached) " >&6
25621 ac_check_lib_save_LIBS=$LIBS
25622 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25623 cat >conftest.$ac_ext <<_ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25630 /* Override any GCC internal prototype to avoid an error.
25631 Use char because int might match the return type of a GCC
25632 builtin and then its argument prototype would still apply. */
25636 char krb5_get_error_message ();
25640 return krb5_get_error_message ();
25645 rm -f conftest.$ac_objext conftest$ac_exeext
25646 if { (ac_try="$ac_link"
25647 case "(($ac_try" in
25648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649 *) ac_try_echo=$ac_try;;
25651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25652 $as_echo "$ac_try_echo") >&5
25653 (eval "$ac_link") 2>conftest.er1
25655 grep -v '^ *+' conftest.er1 >conftest.err
25657 cat conftest.err >&5
25658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } && {
25660 test -z "$ac_c_werror_flag" ||
25661 test ! -s conftest.err
25662 } && test -s conftest$ac_exeext && {
25663 test "$cross_compiling" = yes ||
25664 $as_test_x conftest$ac_exeext
25666 eval "$as_ac_Lib=yes"
25668 $as_echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25671 eval "$as_ac_Lib=no"
25674 rm -rf conftest.dSYM
25675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25676 conftest$ac_exeext conftest.$ac_ext
25677 LIBS=$ac_check_lib_save_LIBS
25679 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25680 $as_echo "$as_val"'`
25681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25682 $as_echo "$ac_res" >&6; }
25683 as_val=`eval 'as_val=${'$as_ac_Lib'}
25684 $as_echo "$as_val"'`
25685 if test "x$as_val" = x""yes; then
25687 cat >>confdefs.h <<\_ACEOF
25688 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
25694 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
25695 { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
25696 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
25697 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25698 $as_echo_n "(cached) " >&6
25700 ac_check_lib_save_LIBS=$LIBS
25701 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
25702 cat >conftest.$ac_ext <<_ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h. */
25709 /* Override any GCC internal prototype to avoid an error.
25710 Use char because int might match the return type of a GCC
25711 builtin and then its argument prototype would still apply. */
25715 char krb5_get_init_creds_opt_set_addressless ();
25719 return krb5_get_init_creds_opt_set_addressless ();
25724 rm -f conftest.$ac_objext conftest$ac_exeext
25725 if { (ac_try="$ac_link"
25726 case "(($ac_try" in
25727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25731 $as_echo "$ac_try_echo") >&5
25732 (eval "$ac_link") 2>conftest.er1
25734 grep -v '^ *+' conftest.er1 >conftest.err
25736 cat conftest.err >&5
25737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } && {
25739 test -z "$ac_c_werror_flag" ||
25740 test ! -s conftest.err
25741 } && test -s conftest$ac_exeext && {
25742 test "$cross_compiling" = yes ||
25743 $as_test_x conftest$ac_exeext
25745 eval "$as_ac_Lib=yes"
25747 $as_echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25750 eval "$as_ac_Lib=no"
25753 rm -rf conftest.dSYM
25754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25755 conftest$ac_exeext conftest.$ac_ext
25756 LIBS=$ac_check_lib_save_LIBS
25758 ac_res=`eval 'as_val=${'$as_ac_Lib'}
25759 $as_echo "$as_val"'`
25760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25761 $as_echo "$ac_res" >&6; }
25762 as_val=`eval 'as_val=${'$as_ac_Lib'}
25763 $as_echo "$as_val"'`
25764 if test "x$as_val" = x""yes; then
25766 cat >>confdefs.h <<\_ACEOF
25767 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
25773 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
25774 { $as_echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
25775 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
25788 if test "$enable_tirpc" = no; then
25790 { $as_echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
25791 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
25792 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
25793 $as_echo_n "(cached) " >&6
25795 ac_check_lib_save_LIBS=$LIBS
25796 LIBS="-lrpcsecgss $LIBS"
25797 cat >conftest.$ac_ext <<_ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h. */
25804 /* Override any GCC internal prototype to avoid an error.
25805 Use char because int might match the return type of a GCC
25806 builtin and then its argument prototype would still apply. */
25810 char authgss_create_default ();
25814 return authgss_create_default ();
25819 rm -f conftest.$ac_objext conftest$ac_exeext
25820 if { (ac_try="$ac_link"
25821 case "(($ac_try" in
25822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823 *) ac_try_echo=$ac_try;;
25825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25826 $as_echo "$ac_try_echo") >&5
25827 (eval "$ac_link") 2>conftest.er1
25829 grep -v '^ *+' conftest.er1 >conftest.err
25831 cat conftest.err >&5
25832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } && {
25834 test -z "$ac_c_werror_flag" ||
25835 test ! -s conftest.err
25836 } && test -s conftest$ac_exeext && {
25837 test "$cross_compiling" = yes ||
25838 $as_test_x conftest$ac_exeext
25840 ac_cv_lib_rpcsecgss_authgss_create_default=yes
25842 $as_echo "$as_me: failed program was:" >&5
25843 sed 's/^/| /' conftest.$ac_ext >&5
25845 ac_cv_lib_rpcsecgss_authgss_create_default=no
25848 rm -rf conftest.dSYM
25849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25850 conftest$ac_exeext conftest.$ac_ext
25851 LIBS=$ac_check_lib_save_LIBS
25853 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
25854 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
25855 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then
25858 { { $as_echo "$as_me:$LINENO: error: librpcsecgss not found." >&5
25859 $as_echo "$as_me: error: librpcsecgss not found." >&2;}
25860 { (exit 1); exit 1; }; }
25864 { $as_echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
25865 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
25866 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
25867 $as_echo_n "(cached) " >&6
25869 ac_check_lib_save_LIBS=$LIBS
25870 LIBS="-lrpcsecgss $LIBS"
25871 cat >conftest.$ac_ext <<_ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h. */
25878 /* Override any GCC internal prototype to avoid an error.
25879 Use char because int might match the return type of a GCC
25880 builtin and then its argument prototype would still apply. */
25884 char authgss_set_debug_level ();
25888 return authgss_set_debug_level ();
25893 rm -f conftest.$ac_objext conftest$ac_exeext
25894 if { (ac_try="$ac_link"
25895 case "(($ac_try" in
25896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897 *) ac_try_echo=$ac_try;;
25899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25900 $as_echo "$ac_try_echo") >&5
25901 (eval "$ac_link") 2>conftest.er1
25903 grep -v '^ *+' conftest.er1 >conftest.err
25905 cat conftest.err >&5
25906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } && {
25908 test -z "$ac_c_werror_flag" ||
25909 test ! -s conftest.err
25910 } && test -s conftest$ac_exeext && {
25911 test "$cross_compiling" = yes ||
25912 $as_test_x conftest$ac_exeext
25914 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
25916 $as_echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25919 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
25922 rm -rf conftest.dSYM
25923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25924 conftest$ac_exeext conftest.$ac_ext
25925 LIBS=$ac_check_lib_save_LIBS
25927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
25928 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
25929 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then
25931 cat >>confdefs.h <<\_ACEOF
25932 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
25946 { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
25947 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
25948 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
25949 $as_echo_n "(cached) " >&6
25951 cat >conftest.$ac_ext <<_ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h. */
25962 #ifndef AI_ADDRCONFIG
25963 (void) AI_ADDRCONFIG;
25970 rm -f conftest.$ac_objext
25971 if { (ac_try="$ac_compile"
25972 case "(($ac_try" in
25973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974 *) ac_try_echo=$ac_try;;
25976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25977 $as_echo "$ac_try_echo") >&5
25978 (eval "$ac_compile") 2>conftest.er1
25980 grep -v '^ *+' conftest.er1 >conftest.err
25982 cat conftest.err >&5
25983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } && {
25985 test -z "$ac_c_werror_flag" ||
25986 test ! -s conftest.err
25987 } && test -s conftest.$ac_objext; then
25988 ac_cv_have_decl_AI_ADDRCONFIG=yes
25990 $as_echo "$as_me: failed program was:" >&5
25991 sed 's/^/| /' conftest.$ac_ext >&5
25993 ac_cv_have_decl_AI_ADDRCONFIG=no
25996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25998 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
25999 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
26000 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
26002 cat >>confdefs.h <<\_ACEOF
26003 #define HAVE_DECL_AI_ADDRCONFIG 1
26009 if test "$enable_ipv6" = yes; then
26011 if test "$enable_tirpc" = no; then
26012 { { $as_echo "$as_me:$LINENO: error: '--enable-ipv6' requires '--enable-tirpc'." >&5
26013 $as_echo "$as_me: error: '--enable-ipv6' requires '--enable-tirpc'." >&2;}
26014 { (exit 1); exit 1; }; }
26019 for ac_func in getnameinfo bindresvport_sa
26021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26023 $as_echo_n "checking for $ac_func... " >&6; }
26024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26025 $as_echo_n "(cached) " >&6
26027 cat >conftest.$ac_ext <<_ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h. */
26033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26035 #define $ac_func innocuous_$ac_func
26037 /* System header to define __stub macros and hopefully few prototypes,
26038 which can conflict with char $ac_func (); below.
26039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26040 <limits.h> exists even on freestanding compilers. */
26043 # include <limits.h>
26045 # include <assert.h>
26050 /* Override any GCC internal prototype to avoid an error.
26051 Use char because int might match the return type of a GCC
26052 builtin and then its argument prototype would still apply. */
26057 /* The GNU C library defines this for functions which it implements
26058 to always fail with ENOSYS. Some functions are actually named
26059 something starting with __ and the normal name is an alias. */
26060 #if defined __stub_$ac_func || defined __stub___$ac_func
26067 return $ac_func ();
26072 rm -f conftest.$ac_objext conftest$ac_exeext
26073 if { (ac_try="$ac_link"
26074 case "(($ac_try" in
26075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26076 *) ac_try_echo=$ac_try;;
26078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26079 $as_echo "$ac_try_echo") >&5
26080 (eval "$ac_link") 2>conftest.er1
26082 grep -v '^ *+' conftest.er1 >conftest.err
26084 cat conftest.err >&5
26085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); } && {
26087 test -z "$ac_c_werror_flag" ||
26088 test ! -s conftest.err
26089 } && test -s conftest$ac_exeext && {
26090 test "$cross_compiling" = yes ||
26091 $as_test_x conftest$ac_exeext
26093 eval "$as_ac_var=yes"
26095 $as_echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26098 eval "$as_ac_var=no"
26101 rm -rf conftest.dSYM
26102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26103 conftest$ac_exeext conftest.$ac_ext
26105 ac_res=`eval 'as_val=${'$as_ac_var'}
26106 $as_echo "$as_val"'`
26107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26108 $as_echo "$ac_res" >&6; }
26109 as_val=`eval 'as_val=${'$as_ac_var'}
26110 $as_echo "$as_val"'`
26111 if test "x$as_val" = x""yes; then
26112 cat >>confdefs.h <<_ACEOF
26113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26117 { { $as_echo "$as_me:$LINENO: error: Missing functions needed for IPv6." >&5
26118 $as_echo "$as_me: error: Missing functions needed for IPv6." >&2;}
26119 { (exit 1); exit 1; }; }
26124 { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
26125 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
26126 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
26127 $as_echo_n "(cached) " >&6
26129 cat >conftest.$ac_ext <<_ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h. */
26140 #ifndef AI_ADDRCONFIG
26141 (void) AI_ADDRCONFIG;
26148 rm -f conftest.$ac_objext
26149 if { (ac_try="$ac_compile"
26150 case "(($ac_try" in
26151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 *) ac_try_echo=$ac_try;;
26154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26155 $as_echo "$ac_try_echo") >&5
26156 (eval "$ac_compile") 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } && {
26163 test -z "$ac_c_werror_flag" ||
26164 test ! -s conftest.err
26165 } && test -s conftest.$ac_objext; then
26166 ac_cv_have_decl_AI_ADDRCONFIG=yes
26168 $as_echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26171 ac_cv_have_decl_AI_ADDRCONFIG=no
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26176 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
26177 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
26178 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
26181 { { $as_echo "$as_me:$LINENO: error: full getaddrinfo(3) implementation needed for IPv6 support" >&5
26182 $as_echo "$as_me: error: full getaddrinfo(3) implementation needed for IPv6 support" >&2;}
26183 { (exit 1); exit 1; }; }
26214 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
26215 malloc.h memory.h netdb.h netinet/in.h paths.h \
26216 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
26217 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
26218 syslog.h unistd.h com_err.h et/com_err.h \
26221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26224 $as_echo_n "checking for $ac_header... " >&6; }
26225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26226 $as_echo_n "(cached) " >&6
26228 ac_res=`eval 'as_val=${'$as_ac_Header'}
26229 $as_echo "$as_val"'`
26230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26231 $as_echo "$ac_res" >&6; }
26233 # Is the header compilable?
26234 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26235 $as_echo_n "checking $ac_header usability... " >&6; }
26236 cat >conftest.$ac_ext <<_ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h. */
26242 $ac_includes_default
26243 #include <$ac_header>
26245 rm -f conftest.$ac_objext
26246 if { (ac_try="$ac_compile"
26247 case "(($ac_try" in
26248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249 *) ac_try_echo=$ac_try;;
26251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26252 $as_echo "$ac_try_echo") >&5
26253 (eval "$ac_compile") 2>conftest.er1
26255 grep -v '^ *+' conftest.er1 >conftest.err
26257 cat conftest.err >&5
26258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } && {
26260 test -z "$ac_c_werror_flag" ||
26261 test ! -s conftest.err
26262 } && test -s conftest.$ac_objext; then
26263 ac_header_compiler=yes
26265 $as_echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26268 ac_header_compiler=no
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26273 $as_echo "$ac_header_compiler" >&6; }
26275 # Is the header present?
26276 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26277 $as_echo_n "checking $ac_header presence... " >&6; }
26278 cat >conftest.$ac_ext <<_ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26284 #include <$ac_header>
26286 if { (ac_try="$ac_cpp conftest.$ac_ext"
26287 case "(($ac_try" in
26288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26289 *) ac_try_echo=$ac_try;;
26291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26292 $as_echo "$ac_try_echo") >&5
26293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26295 grep -v '^ *+' conftest.er1 >conftest.err
26297 cat conftest.err >&5
26298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } >/dev/null && {
26300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26301 test ! -s conftest.err
26303 ac_header_preproc=yes
26305 $as_echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26308 ac_header_preproc=no
26311 rm -f conftest.err conftest.$ac_ext
26312 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26313 $as_echo "$ac_header_preproc" >&6; }
26315 # So? What about this header?
26316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26319 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26322 ac_header_preproc=yes
26325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26326 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26328 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26330 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26332 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26336 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26338 ## ---------------------------------------- ##
26339 ## Report this to linux-nfs@vger.kernel.org ##
26340 ## ---------------------------------------- ##
26342 ) | sed "s/^/$as_me: WARNING: /" >&2
26345 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26346 $as_echo_n "checking for $ac_header... " >&6; }
26347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26348 $as_echo_n "(cached) " >&6
26350 eval "$as_ac_Header=\$ac_header_preproc"
26352 ac_res=`eval 'as_val=${'$as_ac_Header'}
26353 $as_echo "$as_val"'`
26354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26355 $as_echo "$ac_res" >&6; }
26358 as_val=`eval 'as_val=${'$as_ac_Header'}
26359 $as_echo "$as_val"'`
26360 if test "x$as_val" = x""yes; then
26361 cat >>confdefs.h <<_ACEOF
26362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26370 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26371 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26372 if test "${ac_cv_c_const+set}" = set; then
26373 $as_echo_n "(cached) " >&6
26375 cat >conftest.$ac_ext <<_ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h. */
26385 /* FIXME: Include the comments suggested by Paul. */
26386 #ifndef __cplusplus
26387 /* Ultrix mips cc rejects this. */
26388 typedef int charset[2];
26390 /* SunOS 4.1.1 cc rejects this. */
26391 char const *const *pcpcc;
26393 /* NEC SVR4.0.2 mips cc rejects this. */
26394 struct point {int x, y;};
26395 static struct point const zero = {0,0};
26396 /* AIX XL C 1.02.0.0 rejects this.
26397 It does not let you subtract one const X* pointer from another in
26398 an arm of an if-expression whose if-part is not a constant
26400 const char *g = "string";
26401 pcpcc = &g + (g ? g-g : 0);
26402 /* HPUX 7.0 cc rejects these. */
26404 ppc = (char**) pcpcc;
26405 pcpcc = (char const *const *) ppc;
26406 { /* SCO 3.2v4 cc rejects this. */
26408 char const *s = 0 ? (char *) 0 : (char const *) 0;
26413 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26414 int x[] = {25, 17};
26415 const int *foo = &x[0];
26418 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26419 typedef const int *iptr;
26423 { /* AIX XL C 1.02.0.0 rejects this saying
26424 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26425 struct s { int j; const int *ap[3]; };
26426 struct s *b; b->j = 5;
26428 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26429 const int foo = 10;
26430 if (!foo) return 0;
26432 return !cs[0] && !zero.x;
26439 rm -f conftest.$ac_objext
26440 if { (ac_try="$ac_compile"
26441 case "(($ac_try" in
26442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443 *) ac_try_echo=$ac_try;;
26445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26446 $as_echo "$ac_try_echo") >&5
26447 (eval "$ac_compile") 2>conftest.er1
26449 grep -v '^ *+' conftest.er1 >conftest.err
26451 cat conftest.err >&5
26452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); } && {
26454 test -z "$ac_c_werror_flag" ||
26455 test ! -s conftest.err
26456 } && test -s conftest.$ac_objext; then
26459 $as_echo "$as_me: failed program was:" >&5
26460 sed 's/^/| /' conftest.$ac_ext >&5
26465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26468 $as_echo "$ac_cv_c_const" >&6; }
26469 if test $ac_cv_c_const = no; then
26471 cat >>confdefs.h <<\_ACEOF
26477 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26478 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26479 if test "${ac_cv_type_uid_t+set}" = set; then
26480 $as_echo_n "(cached) " >&6
26482 cat >conftest.$ac_ext <<_ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26488 #include <sys/types.h>
26491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26492 $EGREP "uid_t" >/dev/null 2>&1; then
26493 ac_cv_type_uid_t=yes
26495 ac_cv_type_uid_t=no
26500 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26501 $as_echo "$ac_cv_type_uid_t" >&6; }
26502 if test $ac_cv_type_uid_t = no; then
26504 cat >>confdefs.h <<\_ACEOF
26509 cat >>confdefs.h <<\_ACEOF
26515 { $as_echo "$as_me:$LINENO: checking for inline" >&5
26516 $as_echo_n "checking for inline... " >&6; }
26517 if test "${ac_cv_c_inline+set}" = set; then
26518 $as_echo_n "(cached) " >&6
26521 for ac_kw in inline __inline__ __inline; do
26522 cat >conftest.$ac_ext <<_ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h. */
26528 #ifndef __cplusplus
26530 static $ac_kw foo_t static_foo () {return 0; }
26531 $ac_kw foo_t foo () {return 0; }
26535 rm -f conftest.$ac_objext
26536 if { (ac_try="$ac_compile"
26537 case "(($ac_try" in
26538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26539 *) ac_try_echo=$ac_try;;
26541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26542 $as_echo "$ac_try_echo") >&5
26543 (eval "$ac_compile") 2>conftest.er1
26545 grep -v '^ *+' conftest.er1 >conftest.err
26547 cat conftest.err >&5
26548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } && {
26550 test -z "$ac_c_werror_flag" ||
26551 test ! -s conftest.err
26552 } && test -s conftest.$ac_objext; then
26553 ac_cv_c_inline=$ac_kw
26555 $as_echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26562 test "$ac_cv_c_inline" != no && break
26566 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
26567 $as_echo "$ac_cv_c_inline" >&6; }
26570 case $ac_cv_c_inline in
26573 case $ac_cv_c_inline in
26575 *) ac_val=$ac_cv_c_inline;;
26577 cat >>confdefs.h <<_ACEOF
26578 #ifndef __cplusplus
26579 #define inline $ac_val
26585 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
26586 $as_echo_n "checking for off_t... " >&6; }
26587 if test "${ac_cv_type_off_t+set}" = set; then
26588 $as_echo_n "(cached) " >&6
26590 ac_cv_type_off_t=no
26591 cat >conftest.$ac_ext <<_ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h. */
26597 $ac_includes_default
26601 if (sizeof (off_t))
26607 rm -f conftest.$ac_objext
26608 if { (ac_try="$ac_compile"
26609 case "(($ac_try" in
26610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26611 *) ac_try_echo=$ac_try;;
26613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26614 $as_echo "$ac_try_echo") >&5
26615 (eval "$ac_compile") 2>conftest.er1
26617 grep -v '^ *+' conftest.er1 >conftest.err
26619 cat conftest.err >&5
26620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); } && {
26622 test -z "$ac_c_werror_flag" ||
26623 test ! -s conftest.err
26624 } && test -s conftest.$ac_objext; then
26625 cat >conftest.$ac_ext <<_ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26631 $ac_includes_default
26635 if (sizeof ((off_t)))
26641 rm -f conftest.$ac_objext
26642 if { (ac_try="$ac_compile"
26643 case "(($ac_try" in
26644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645 *) ac_try_echo=$ac_try;;
26647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26648 $as_echo "$ac_try_echo") >&5
26649 (eval "$ac_compile") 2>conftest.er1
26651 grep -v '^ *+' conftest.er1 >conftest.err
26653 cat conftest.err >&5
26654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } && {
26656 test -z "$ac_c_werror_flag" ||
26657 test ! -s conftest.err
26658 } && test -s conftest.$ac_objext; then
26661 $as_echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26664 ac_cv_type_off_t=yes
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26669 $as_echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26677 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26678 $as_echo "$ac_cv_type_off_t" >&6; }
26679 if test "x$ac_cv_type_off_t" = x""yes; then
26683 cat >>confdefs.h <<_ACEOF
26684 #define off_t long int
26689 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
26690 $as_echo_n "checking for pid_t... " >&6; }
26691 if test "${ac_cv_type_pid_t+set}" = set; then
26692 $as_echo_n "(cached) " >&6
26694 ac_cv_type_pid_t=no
26695 cat >conftest.$ac_ext <<_ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h. */
26701 $ac_includes_default
26705 if (sizeof (pid_t))
26711 rm -f conftest.$ac_objext
26712 if { (ac_try="$ac_compile"
26713 case "(($ac_try" in
26714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26715 *) ac_try_echo=$ac_try;;
26717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26718 $as_echo "$ac_try_echo") >&5
26719 (eval "$ac_compile") 2>conftest.er1
26721 grep -v '^ *+' conftest.er1 >conftest.err
26723 cat conftest.err >&5
26724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } && {
26726 test -z "$ac_c_werror_flag" ||
26727 test ! -s conftest.err
26728 } && test -s conftest.$ac_objext; then
26729 cat >conftest.$ac_ext <<_ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 $ac_includes_default
26739 if (sizeof ((pid_t)))
26745 rm -f conftest.$ac_objext
26746 if { (ac_try="$ac_compile"
26747 case "(($ac_try" in
26748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26749 *) ac_try_echo=$ac_try;;
26751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26752 $as_echo "$ac_try_echo") >&5
26753 (eval "$ac_compile") 2>conftest.er1
26755 grep -v '^ *+' conftest.er1 >conftest.err
26757 cat conftest.err >&5
26758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); } && {
26760 test -z "$ac_c_werror_flag" ||
26761 test ! -s conftest.err
26762 } && test -s conftest.$ac_objext; then
26765 $as_echo "$as_me: failed program was:" >&5
26766 sed 's/^/| /' conftest.$ac_ext >&5
26768 ac_cv_type_pid_t=yes
26771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26773 $as_echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26782 $as_echo "$ac_cv_type_pid_t" >&6; }
26783 if test "x$ac_cv_type_pid_t" = x""yes; then
26787 cat >>confdefs.h <<_ACEOF
26793 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
26794 $as_echo_n "checking for size_t... " >&6; }
26795 if test "${ac_cv_type_size_t+set}" = set; then
26796 $as_echo_n "(cached) " >&6
26798 ac_cv_type_size_t=no
26799 cat >conftest.$ac_ext <<_ACEOF
26802 cat confdefs.h >>conftest.$ac_ext
26803 cat >>conftest.$ac_ext <<_ACEOF
26804 /* end confdefs.h. */
26805 $ac_includes_default
26809 if (sizeof (size_t))
26815 rm -f conftest.$ac_objext
26816 if { (ac_try="$ac_compile"
26817 case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26822 $as_echo "$ac_try_echo") >&5
26823 (eval "$ac_compile") 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } && {
26830 test -z "$ac_c_werror_flag" ||
26831 test ! -s conftest.err
26832 } && test -s conftest.$ac_objext; then
26833 cat >conftest.$ac_ext <<_ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h. */
26839 $ac_includes_default
26843 if (sizeof ((size_t)))
26849 rm -f conftest.$ac_objext
26850 if { (ac_try="$ac_compile"
26851 case "(($ac_try" in
26852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26853 *) ac_try_echo=$ac_try;;
26855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26856 $as_echo "$ac_try_echo") >&5
26857 (eval "$ac_compile") 2>conftest.er1
26859 grep -v '^ *+' conftest.er1 >conftest.err
26861 cat conftest.err >&5
26862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); } && {
26864 test -z "$ac_c_werror_flag" ||
26865 test ! -s conftest.err
26866 } && test -s conftest.$ac_objext; then
26869 $as_echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26872 ac_cv_type_size_t=yes
26875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26877 $as_echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26886 $as_echo "$ac_cv_type_size_t" >&6; }
26887 if test "x$ac_cv_type_size_t" = x""yes; then
26891 cat >>confdefs.h <<_ACEOF
26892 #define size_t unsigned int
26897 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26898 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26899 if test "${ac_cv_header_time+set}" = set; then
26900 $as_echo_n "(cached) " >&6
26902 cat >conftest.$ac_ext <<_ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h. */
26908 #include <sys/types.h>
26909 #include <sys/time.h>
26915 if ((struct tm *) 0)
26921 rm -f conftest.$ac_objext
26922 if { (ac_try="$ac_compile"
26923 case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26928 $as_echo "$ac_try_echo") >&5
26929 (eval "$ac_compile") 2>conftest.er1
26931 grep -v '^ *+' conftest.er1 >conftest.err
26933 cat conftest.err >&5
26934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); } && {
26936 test -z "$ac_c_werror_flag" ||
26937 test ! -s conftest.err
26938 } && test -s conftest.$ac_objext; then
26939 ac_cv_header_time=yes
26941 $as_echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26944 ac_cv_header_time=no
26947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26950 $as_echo "$ac_cv_header_time" >&6; }
26951 if test $ac_cv_header_time = yes; then
26953 cat >>confdefs.h <<\_ACEOF
26954 #define TIME_WITH_SYS_TIME 1
26959 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26960 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26961 if test "${ac_cv_struct_tm+set}" = set; then
26962 $as_echo_n "(cached) " >&6
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26970 #include <sys/types.h>
26977 int *p = &tm.tm_sec;
26983 rm -f conftest.$ac_objext
26984 if { (ac_try="$ac_compile"
26985 case "(($ac_try" in
26986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987 *) ac_try_echo=$ac_try;;
26989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26990 $as_echo "$ac_try_echo") >&5
26991 (eval "$ac_compile") 2>conftest.er1
26993 grep -v '^ *+' conftest.er1 >conftest.err
26995 cat conftest.err >&5
26996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } && {
26998 test -z "$ac_c_werror_flag" ||
26999 test ! -s conftest.err
27000 } && test -s conftest.$ac_objext; then
27001 ac_cv_struct_tm=time.h
27003 $as_echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ac_cv_struct_tm=sys/time.h
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27011 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27012 $as_echo "$ac_cv_struct_tm" >&6; }
27013 if test $ac_cv_struct_tm = sys/time.h; then
27015 cat >>confdefs.h <<\_ACEOF
27016 #define TM_IN_SYS_TIME 1
27022 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27023 # for constant arguments. Useless!
27024 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
27025 $as_echo_n "checking for working alloca.h... " >&6; }
27026 if test "${ac_cv_working_alloca_h+set}" = set; then
27027 $as_echo_n "(cached) " >&6
27029 cat >conftest.$ac_ext <<_ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27035 #include <alloca.h>
27039 char *p = (char *) alloca (2 * sizeof (int));
27045 rm -f conftest.$ac_objext conftest$ac_exeext
27046 if { (ac_try="$ac_link"
27047 case "(($ac_try" in
27048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27049 *) ac_try_echo=$ac_try;;
27051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27052 $as_echo "$ac_try_echo") >&5
27053 (eval "$ac_link") 2>conftest.er1
27055 grep -v '^ *+' conftest.er1 >conftest.err
27057 cat conftest.err >&5
27058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } && {
27060 test -z "$ac_c_werror_flag" ||
27061 test ! -s conftest.err
27062 } && test -s conftest$ac_exeext && {
27063 test "$cross_compiling" = yes ||
27064 $as_test_x conftest$ac_exeext
27066 ac_cv_working_alloca_h=yes
27068 $as_echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27071 ac_cv_working_alloca_h=no
27074 rm -rf conftest.dSYM
27075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27076 conftest$ac_exeext conftest.$ac_ext
27078 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27079 $as_echo "$ac_cv_working_alloca_h" >&6; }
27080 if test $ac_cv_working_alloca_h = yes; then
27082 cat >>confdefs.h <<\_ACEOF
27083 #define HAVE_ALLOCA_H 1
27088 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
27089 $as_echo_n "checking for alloca... " >&6; }
27090 if test "${ac_cv_func_alloca_works+set}" = set; then
27091 $as_echo_n "(cached) " >&6
27093 cat >conftest.$ac_ext <<_ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27100 # define alloca __builtin_alloca
27103 # include <malloc.h>
27104 # define alloca _alloca
27106 # ifdef HAVE_ALLOCA_H
27107 # include <alloca.h>
27112 # ifndef alloca /* predefined by HP cc +Olibcalls */
27123 char *p = (char *) alloca (1);
27129 rm -f conftest.$ac_objext conftest$ac_exeext
27130 if { (ac_try="$ac_link"
27131 case "(($ac_try" in
27132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27133 *) ac_try_echo=$ac_try;;
27135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27136 $as_echo "$ac_try_echo") >&5
27137 (eval "$ac_link") 2>conftest.er1
27139 grep -v '^ *+' conftest.er1 >conftest.err
27141 cat conftest.err >&5
27142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } && {
27144 test -z "$ac_c_werror_flag" ||
27145 test ! -s conftest.err
27146 } && test -s conftest$ac_exeext && {
27147 test "$cross_compiling" = yes ||
27148 $as_test_x conftest$ac_exeext
27150 ac_cv_func_alloca_works=yes
27152 $as_echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155 ac_cv_func_alloca_works=no
27158 rm -rf conftest.dSYM
27159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27160 conftest$ac_exeext conftest.$ac_ext
27162 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27163 $as_echo "$ac_cv_func_alloca_works" >&6; }
27165 if test $ac_cv_func_alloca_works = yes; then
27167 cat >>confdefs.h <<\_ACEOF
27168 #define HAVE_ALLOCA 1
27172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27173 # that cause trouble. Some versions do not even contain alloca or
27174 # contain a buggy version. If you still want to use their alloca,
27175 # use ar to extract alloca.o from them instead of compiling alloca.c.
27177 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27179 cat >>confdefs.h <<\_ACEOF
27184 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27185 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27186 if test "${ac_cv_os_cray+set}" = set; then
27187 $as_echo_n "(cached) " >&6
27189 cat >conftest.$ac_ext <<_ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h. */
27195 #if defined CRAY && ! defined CRAY2
27202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27203 $EGREP "webecray" >/dev/null 2>&1; then
27211 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27212 $as_echo "$ac_cv_os_cray" >&6; }
27213 if test $ac_cv_os_cray = yes; then
27214 for ac_func in _getb67 GETB67 getb67; do
27215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27216 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27217 $as_echo_n "checking for $ac_func... " >&6; }
27218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27219 $as_echo_n "(cached) " >&6
27221 cat >conftest.$ac_ext <<_ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h. */
27227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27229 #define $ac_func innocuous_$ac_func
27231 /* System header to define __stub macros and hopefully few prototypes,
27232 which can conflict with char $ac_func (); below.
27233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27234 <limits.h> exists even on freestanding compilers. */
27237 # include <limits.h>
27239 # include <assert.h>
27244 /* Override any GCC internal prototype to avoid an error.
27245 Use char because int might match the return type of a GCC
27246 builtin and then its argument prototype would still apply. */
27251 /* The GNU C library defines this for functions which it implements
27252 to always fail with ENOSYS. Some functions are actually named
27253 something starting with __ and the normal name is an alias. */
27254 #if defined __stub_$ac_func || defined __stub___$ac_func
27261 return $ac_func ();
27266 rm -f conftest.$ac_objext conftest$ac_exeext
27267 if { (ac_try="$ac_link"
27268 case "(($ac_try" in
27269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27273 $as_echo "$ac_try_echo") >&5
27274 (eval "$ac_link") 2>conftest.er1
27276 grep -v '^ *+' conftest.er1 >conftest.err
27278 cat conftest.err >&5
27279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); } && {
27281 test -z "$ac_c_werror_flag" ||
27282 test ! -s conftest.err
27283 } && test -s conftest$ac_exeext && {
27284 test "$cross_compiling" = yes ||
27285 $as_test_x conftest$ac_exeext
27287 eval "$as_ac_var=yes"
27289 $as_echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27292 eval "$as_ac_var=no"
27295 rm -rf conftest.dSYM
27296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27297 conftest$ac_exeext conftest.$ac_ext
27299 ac_res=`eval 'as_val=${'$as_ac_var'}
27300 $as_echo "$as_val"'`
27301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27302 $as_echo "$ac_res" >&6; }
27303 as_val=`eval 'as_val=${'$as_ac_var'}
27304 $as_echo "$as_val"'`
27305 if test "x$as_val" = x""yes; then
27307 cat >>confdefs.h <<_ACEOF
27308 #define CRAY_STACKSEG_END $ac_func
27317 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27318 $as_echo_n "checking stack direction for C alloca... " >&6; }
27319 if test "${ac_cv_c_stack_direction+set}" = set; then
27320 $as_echo_n "(cached) " >&6
27322 if test "$cross_compiling" = yes; then
27323 ac_cv_c_stack_direction=0
27325 cat >conftest.$ac_ext <<_ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h. */
27331 $ac_includes_default
27333 find_stack_direction ()
27335 static char *addr = 0;
27340 return find_stack_direction ();
27343 return (&dummy > addr) ? 1 : -1;
27349 return find_stack_direction () < 0;
27352 rm -f conftest$ac_exeext
27353 if { (ac_try="$ac_link"
27354 case "(($ac_try" in
27355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356 *) ac_try_echo=$ac_try;;
27358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27359 $as_echo "$ac_try_echo") >&5
27360 (eval "$ac_link") 2>&5
27362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27364 { (case "(($ac_try" in
27365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27366 *) ac_try_echo=$ac_try;;
27368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27369 $as_echo "$ac_try_echo") >&5
27370 (eval "$ac_try") 2>&5
27372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; }; then
27374 ac_cv_c_stack_direction=1
27376 $as_echo "$as_me: program exited with status $ac_status" >&5
27377 $as_echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27380 ( exit $ac_status )
27381 ac_cv_c_stack_direction=-1
27383 rm -rf conftest.dSYM
27384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27389 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27390 $as_echo "$ac_cv_c_stack_direction" >&6; }
27392 cat >>confdefs.h <<_ACEOF
27393 #define STACK_DIRECTION $ac_cv_c_stack_direction
27404 ac_header_dirent=no
27405 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27406 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27407 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27408 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
27409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27410 $as_echo_n "(cached) " >&6
27412 cat >conftest.$ac_ext <<_ACEOF
27415 cat confdefs.h >>conftest.$ac_ext
27416 cat >>conftest.$ac_ext <<_ACEOF
27417 /* end confdefs.h. */
27418 #include <sys/types.h>
27430 rm -f conftest.$ac_objext
27431 if { (ac_try="$ac_compile"
27432 case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27437 $as_echo "$ac_try_echo") >&5
27438 (eval "$ac_compile") 2>conftest.er1
27440 grep -v '^ *+' conftest.er1 >conftest.err
27442 cat conftest.err >&5
27443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); } && {
27445 test -z "$ac_c_werror_flag" ||
27446 test ! -s conftest.err
27447 } && test -s conftest.$ac_objext; then
27448 eval "$as_ac_Header=yes"
27450 $as_echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27453 eval "$as_ac_Header=no"
27456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27458 ac_res=`eval 'as_val=${'$as_ac_Header'}
27459 $as_echo "$as_val"'`
27460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27461 $as_echo "$ac_res" >&6; }
27462 as_val=`eval 'as_val=${'$as_ac_Header'}
27463 $as_echo "$as_val"'`
27464 if test "x$as_val" = x""yes; then
27465 cat >>confdefs.h <<_ACEOF
27466 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27469 ac_header_dirent=$ac_hdr; break
27473 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27474 if test $ac_header_dirent = dirent.h; then
27475 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
27476 $as_echo_n "checking for library containing opendir... " >&6; }
27477 if test "${ac_cv_search_opendir+set}" = set; then
27478 $as_echo_n "(cached) " >&6
27480 ac_func_search_save_LIBS=$LIBS
27481 cat >conftest.$ac_ext <<_ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27488 /* Override any GCC internal prototype to avoid an error.
27489 Use char because int might match the return type of a GCC
27490 builtin and then its argument prototype would still apply. */
27503 for ac_lib in '' dir; do
27504 if test -z "$ac_lib"; then
27505 ac_res="none required"
27508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27517 $as_echo "$ac_try_echo") >&5
27518 (eval "$ac_link") 2>conftest.er1
27520 grep -v '^ *+' conftest.er1 >conftest.err
27522 cat conftest.err >&5
27523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } && {
27525 test -z "$ac_c_werror_flag" ||
27526 test ! -s conftest.err
27527 } && test -s conftest$ac_exeext && {
27528 test "$cross_compiling" = yes ||
27529 $as_test_x conftest$ac_exeext
27531 ac_cv_search_opendir=$ac_res
27533 $as_echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27539 rm -rf conftest.dSYM
27540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27542 if test "${ac_cv_search_opendir+set}" = set; then
27546 if test "${ac_cv_search_opendir+set}" = set; then
27549 ac_cv_search_opendir=no
27551 rm conftest.$ac_ext
27552 LIBS=$ac_func_search_save_LIBS
27554 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27555 $as_echo "$ac_cv_search_opendir" >&6; }
27556 ac_res=$ac_cv_search_opendir
27557 if test "$ac_res" != no; then
27558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27563 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
27564 $as_echo_n "checking for library containing opendir... " >&6; }
27565 if test "${ac_cv_search_opendir+set}" = set; then
27566 $as_echo_n "(cached) " >&6
27568 ac_func_search_save_LIBS=$LIBS
27569 cat >conftest.$ac_ext <<_ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27576 /* Override any GCC internal prototype to avoid an error.
27577 Use char because int might match the return type of a GCC
27578 builtin and then its argument prototype would still apply. */
27591 for ac_lib in '' x; do
27592 if test -z "$ac_lib"; then
27593 ac_res="none required"
27596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27598 rm -f conftest.$ac_objext conftest$ac_exeext
27599 if { (ac_try="$ac_link"
27600 case "(($ac_try" in
27601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602 *) ac_try_echo=$ac_try;;
27604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27605 $as_echo "$ac_try_echo") >&5
27606 (eval "$ac_link") 2>conftest.er1
27608 grep -v '^ *+' conftest.er1 >conftest.err
27610 cat conftest.err >&5
27611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); } && {
27613 test -z "$ac_c_werror_flag" ||
27614 test ! -s conftest.err
27615 } && test -s conftest$ac_exeext && {
27616 test "$cross_compiling" = yes ||
27617 $as_test_x conftest$ac_exeext
27619 ac_cv_search_opendir=$ac_res
27621 $as_echo "$as_me: failed program was:" >&5
27622 sed 's/^/| /' conftest.$ac_ext >&5
27627 rm -rf conftest.dSYM
27628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27630 if test "${ac_cv_search_opendir+set}" = set; then
27634 if test "${ac_cv_search_opendir+set}" = set; then
27637 ac_cv_search_opendir=no
27639 rm conftest.$ac_ext
27640 LIBS=$ac_func_search_save_LIBS
27642 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27643 $as_echo "$ac_cv_search_opendir" >&6; }
27644 ac_res=$ac_cv_search_opendir
27645 if test "$ac_res" != no; then
27646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27652 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27653 $as_echo_n "checking whether closedir returns void... " >&6; }
27654 if test "${ac_cv_func_closedir_void+set}" = set; then
27655 $as_echo_n "(cached) " >&6
27657 if test "$cross_compiling" = yes; then
27658 ac_cv_func_closedir_void=yes
27660 cat >conftest.$ac_ext <<_ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h. */
27666 $ac_includes_default
27667 #include <$ac_header_dirent>
27668 #ifndef __cplusplus
27675 return closedir (opendir (".")) != 0;
27680 rm -f conftest$ac_exeext
27681 if { (ac_try="$ac_link"
27682 case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27687 $as_echo "$ac_try_echo") >&5
27688 (eval "$ac_link") 2>&5
27690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27697 $as_echo "$ac_try_echo") >&5
27698 (eval "$ac_try") 2>&5
27700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
27702 ac_cv_func_closedir_void=no
27704 $as_echo "$as_me: program exited with status $ac_status" >&5
27705 $as_echo "$as_me: failed program was:" >&5
27706 sed 's/^/| /' conftest.$ac_ext >&5
27708 ( exit $ac_status )
27709 ac_cv_func_closedir_void=yes
27711 rm -rf conftest.dSYM
27712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27717 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27718 $as_echo "$ac_cv_func_closedir_void" >&6; }
27719 if test $ac_cv_func_closedir_void = yes; then
27721 cat >>confdefs.h <<\_ACEOF
27722 #define CLOSEDIR_VOID 1
27727 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
27728 $as_echo_n "checking for error_at_line... " >&6; }
27729 if test "${ac_cv_lib_error_at_line+set}" = set; then
27730 $as_echo_n "(cached) " >&6
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27742 error_at_line (0, 0, "", 0, "an error occurred");
27747 rm -f conftest.$ac_objext conftest$ac_exeext
27748 if { (ac_try="$ac_link"
27749 case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27754 $as_echo "$ac_try_echo") >&5
27755 (eval "$ac_link") 2>conftest.er1
27757 grep -v '^ *+' conftest.er1 >conftest.err
27759 cat conftest.err >&5
27760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } && {
27762 test -z "$ac_c_werror_flag" ||
27763 test ! -s conftest.err
27764 } && test -s conftest$ac_exeext && {
27765 test "$cross_compiling" = yes ||
27766 $as_test_x conftest$ac_exeext
27768 ac_cv_lib_error_at_line=yes
27770 $as_echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27773 ac_cv_lib_error_at_line=no
27776 rm -rf conftest.dSYM
27777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27778 conftest$ac_exeext conftest.$ac_ext
27780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
27781 $as_echo "$ac_cv_lib_error_at_line" >&6; }
27782 if test $ac_cv_lib_error_at_line = no; then
27783 case " $LIBOBJS " in
27784 *" error.$ac_objext "* ) ;;
27785 *) LIBOBJS="$LIBOBJS error.$ac_objext"
27792 for ac_header in vfork.h
27794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27797 $as_echo_n "checking for $ac_header... " >&6; }
27798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27799 $as_echo_n "(cached) " >&6
27801 ac_res=`eval 'as_val=${'$as_ac_Header'}
27802 $as_echo "$as_val"'`
27803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27804 $as_echo "$ac_res" >&6; }
27806 # Is the header compilable?
27807 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27808 $as_echo_n "checking $ac_header usability... " >&6; }
27809 cat >conftest.$ac_ext <<_ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h. */
27815 $ac_includes_default
27816 #include <$ac_header>
27818 rm -f conftest.$ac_objext
27819 if { (ac_try="$ac_compile"
27820 case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27825 $as_echo "$ac_try_echo") >&5
27826 (eval "$ac_compile") 2>conftest.er1
27828 grep -v '^ *+' conftest.er1 >conftest.err
27830 cat conftest.err >&5
27831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); } && {
27833 test -z "$ac_c_werror_flag" ||
27834 test ! -s conftest.err
27835 } && test -s conftest.$ac_objext; then
27836 ac_header_compiler=yes
27838 $as_echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27841 ac_header_compiler=no
27844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27845 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27846 $as_echo "$ac_header_compiler" >&6; }
27848 # Is the header present?
27849 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27850 $as_echo_n "checking $ac_header presence... " >&6; }
27851 cat >conftest.$ac_ext <<_ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h. */
27857 #include <$ac_header>
27859 if { (ac_try="$ac_cpp conftest.$ac_ext"
27860 case "(($ac_try" in
27861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27865 $as_echo "$ac_try_echo") >&5
27866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27868 grep -v '^ *+' conftest.er1 >conftest.err
27870 cat conftest.err >&5
27871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); } >/dev/null && {
27873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27874 test ! -s conftest.err
27876 ac_header_preproc=yes
27878 $as_echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.$ac_ext >&5
27881 ac_header_preproc=no
27884 rm -f conftest.err conftest.$ac_ext
27885 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27886 $as_echo "$ac_header_preproc" >&6; }
27888 # So? What about this header?
27889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27892 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27895 ac_header_preproc=yes
27898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27899 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27901 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27903 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27905 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27907 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27909 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27911 ## ---------------------------------------- ##
27912 ## Report this to linux-nfs@vger.kernel.org ##
27913 ## ---------------------------------------- ##
27915 ) | sed "s/^/$as_me: WARNING: /" >&2
27918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27919 $as_echo_n "checking for $ac_header... " >&6; }
27920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27921 $as_echo_n "(cached) " >&6
27923 eval "$as_ac_Header=\$ac_header_preproc"
27925 ac_res=`eval 'as_val=${'$as_ac_Header'}
27926 $as_echo "$as_val"'`
27927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27928 $as_echo "$ac_res" >&6; }
27931 as_val=`eval 'as_val=${'$as_ac_Header'}
27932 $as_echo "$as_val"'`
27933 if test "x$as_val" = x""yes; then
27934 cat >>confdefs.h <<_ACEOF
27935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27944 for ac_func in fork vfork
27946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27947 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27948 $as_echo_n "checking for $ac_func... " >&6; }
27949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27950 $as_echo_n "(cached) " >&6
27952 cat >conftest.$ac_ext <<_ACEOF
27955 cat confdefs.h >>conftest.$ac_ext
27956 cat >>conftest.$ac_ext <<_ACEOF
27957 /* end confdefs.h. */
27958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27960 #define $ac_func innocuous_$ac_func
27962 /* System header to define __stub macros and hopefully few prototypes,
27963 which can conflict with char $ac_func (); below.
27964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27965 <limits.h> exists even on freestanding compilers. */
27968 # include <limits.h>
27970 # include <assert.h>
27975 /* Override any GCC internal prototype to avoid an error.
27976 Use char because int might match the return type of a GCC
27977 builtin and then its argument prototype would still apply. */
27982 /* The GNU C library defines this for functions which it implements
27983 to always fail with ENOSYS. Some functions are actually named
27984 something starting with __ and the normal name is an alias. */
27985 #if defined __stub_$ac_func || defined __stub___$ac_func
27992 return $ac_func ();
27997 rm -f conftest.$ac_objext conftest$ac_exeext
27998 if { (ac_try="$ac_link"
27999 case "(($ac_try" in
28000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28004 $as_echo "$ac_try_echo") >&5
28005 (eval "$ac_link") 2>conftest.er1
28007 grep -v '^ *+' conftest.er1 >conftest.err
28009 cat conftest.err >&5
28010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } && {
28012 test -z "$ac_c_werror_flag" ||
28013 test ! -s conftest.err
28014 } && test -s conftest$ac_exeext && {
28015 test "$cross_compiling" = yes ||
28016 $as_test_x conftest$ac_exeext
28018 eval "$as_ac_var=yes"
28020 $as_echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28023 eval "$as_ac_var=no"
28026 rm -rf conftest.dSYM
28027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28028 conftest$ac_exeext conftest.$ac_ext
28030 ac_res=`eval 'as_val=${'$as_ac_var'}
28031 $as_echo "$as_val"'`
28032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28033 $as_echo "$ac_res" >&6; }
28034 as_val=`eval 'as_val=${'$as_ac_var'}
28035 $as_echo "$as_val"'`
28036 if test "x$as_val" = x""yes; then
28037 cat >>confdefs.h <<_ACEOF
28038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28044 if test "x$ac_cv_func_fork" = xyes; then
28045 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
28046 $as_echo_n "checking for working fork... " >&6; }
28047 if test "${ac_cv_func_fork_works+set}" = set; then
28048 $as_echo_n "(cached) " >&6
28050 if test "$cross_compiling" = yes; then
28051 ac_cv_func_fork_works=cross
28053 cat >conftest.$ac_ext <<_ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h. */
28059 $ac_includes_default
28064 /* By Ruediger Kuhlmann. */
28065 return fork () < 0;
28071 rm -f conftest$ac_exeext
28072 if { (ac_try="$ac_link"
28073 case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28078 $as_echo "$ac_try_echo") >&5
28079 (eval "$ac_link") 2>&5
28081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28088 $as_echo "$ac_try_echo") >&5
28089 (eval "$ac_try") 2>&5
28091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
28093 ac_cv_func_fork_works=yes
28095 $as_echo "$as_me: program exited with status $ac_status" >&5
28096 $as_echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28099 ( exit $ac_status )
28100 ac_cv_func_fork_works=no
28102 rm -rf conftest.dSYM
28103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28108 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
28109 $as_echo "$ac_cv_func_fork_works" >&6; }
28112 ac_cv_func_fork_works=$ac_cv_func_fork
28114 if test "x$ac_cv_func_fork_works" = xcross; then
28116 *-*-amigaos* | *-*-msdosdjgpp*)
28117 # Override, as these systems have only a dummy fork() stub
28118 ac_cv_func_fork_works=no
28121 ac_cv_func_fork_works=yes
28124 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
28125 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
28127 ac_cv_func_vfork_works=$ac_cv_func_vfork
28128 if test "x$ac_cv_func_vfork" = xyes; then
28129 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
28130 $as_echo_n "checking for working vfork... " >&6; }
28131 if test "${ac_cv_func_vfork_works+set}" = set; then
28132 $as_echo_n "(cached) " >&6
28134 if test "$cross_compiling" = yes; then
28135 ac_cv_func_vfork_works=cross
28137 cat >conftest.$ac_ext <<_ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28143 /* Thanks to Paul Eggert for this test. */
28144 $ac_includes_default
28145 #include <sys/wait.h>
28146 #ifdef HAVE_VFORK_H
28147 # include <vfork.h>
28149 /* On some sparc systems, changes by the child to local and incoming
28150 argument registers are propagated back to the parent. The compiler
28151 is told about this with #include <vfork.h>, but some compilers
28152 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
28153 static variable whose address is put into a register that is
28154 clobbered by the vfork. */
28157 sparc_address_test (int arg)
28159 sparc_address_test (arg) int arg;
28162 static pid_t child;
28180 pid_t parent = getpid ();
28183 sparc_address_test (0);
28188 /* Here is another test for sparc vfork register problems. This
28189 test uses lots of local variables, at least as many local
28190 variables as main has allocated so far including compiler
28191 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
28192 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
28193 reuse the register of parent for one of the local variables,
28194 since it will think that parent can't possibly be used any more
28195 in this routine. Assigning to the local variable will thus
28196 munge parent in the parent process. */
28198 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
28199 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
28200 /* Convince the compiler that p..p7 are live; otherwise, it might
28201 use the same hardware register for all 8 local variables. */
28202 if (p != p1 || p != p2 || p != p3 || p != p4
28203 || p != p5 || p != p6 || p != p7)
28206 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
28207 from child file descriptors. If the child closes a descriptor
28208 before it execs or exits, this munges the parent's descriptor
28209 as well. Test for this by closing stdout in the child. */
28210 _exit(close(fileno(stdout)) != 0);
28215 while (wait(&status) != child)
28218 /* Was there some problem with vforking? */
28221 /* Did the child fail? (This shouldn't happen.) */
28224 /* Did the vfork/compiler bug occur? */
28225 || parent != getpid()
28227 /* Did the file descriptor bug occur? */
28228 || fstat(fileno(stdout), &st) != 0
28233 rm -f conftest$ac_exeext
28234 if { (ac_try="$ac_link"
28235 case "(($ac_try" in
28236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237 *) ac_try_echo=$ac_try;;
28239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28240 $as_echo "$ac_try_echo") >&5
28241 (eval "$ac_link") 2>&5
28243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28245 { (case "(($ac_try" in
28246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28247 *) ac_try_echo=$ac_try;;
28249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28250 $as_echo "$ac_try_echo") >&5
28251 (eval "$ac_try") 2>&5
28253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); }; }; then
28255 ac_cv_func_vfork_works=yes
28257 $as_echo "$as_me: program exited with status $ac_status" >&5
28258 $as_echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28261 ( exit $ac_status )
28262 ac_cv_func_vfork_works=no
28264 rm -rf conftest.dSYM
28265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28270 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
28271 $as_echo "$ac_cv_func_vfork_works" >&6; }
28274 if test "x$ac_cv_func_fork_works" = xcross; then
28275 ac_cv_func_vfork_works=$ac_cv_func_vfork
28276 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
28277 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
28280 if test "x$ac_cv_func_vfork_works" = xyes; then
28282 cat >>confdefs.h <<\_ACEOF
28283 #define HAVE_WORKING_VFORK 1
28288 cat >>confdefs.h <<\_ACEOF
28293 if test "x$ac_cv_func_fork_works" = xyes; then
28295 cat >>confdefs.h <<\_ACEOF
28296 #define HAVE_WORKING_FORK 1
28301 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
28302 $as_echo_n "checking type of array argument to getgroups... " >&6; }
28303 if test "${ac_cv_type_getgroups+set}" = set; then
28304 $as_echo_n "(cached) " >&6
28306 if test "$cross_compiling" = yes; then
28307 ac_cv_type_getgroups=cross
28309 cat >conftest.$ac_ext <<_ACEOF
28312 cat confdefs.h >>conftest.$ac_ext
28313 cat >>conftest.$ac_ext <<_ACEOF
28314 /* end confdefs.h. */
28315 /* Thanks to Mike Rendell for this test. */
28316 $ac_includes_default
28319 #define MAX(x, y) ((x) > (y) ? (x) : (y))
28324 gid_t gidset[NGID];
28326 union { gid_t gval; long int lval; } val;
28329 for (i = 0; i < NGID; i++)
28330 gidset[i] = val.gval;
28331 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
28333 /* Exit non-zero if getgroups seems to require an array of ints. This
28334 happens when gid_t is short int but getgroups modifies an array
28336 return n > 0 && gidset[n] != val.gval;
28339 rm -f conftest$ac_exeext
28340 if { (ac_try="$ac_link"
28341 case "(($ac_try" in
28342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343 *) ac_try_echo=$ac_try;;
28345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28346 $as_echo "$ac_try_echo") >&5
28347 (eval "$ac_link") 2>&5
28349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28351 { (case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28356 $as_echo "$ac_try_echo") >&5
28357 (eval "$ac_try") 2>&5
28359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); }; }; then
28361 ac_cv_type_getgroups=gid_t
28363 $as_echo "$as_me: program exited with status $ac_status" >&5
28364 $as_echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28367 ( exit $ac_status )
28368 ac_cv_type_getgroups=int
28370 rm -rf conftest.dSYM
28371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28375 if test $ac_cv_type_getgroups = cross; then
28376 cat >conftest.$ac_ext <<_ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h. */
28382 #include <unistd.h>
28385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28386 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
28387 ac_cv_type_getgroups=gid_t
28389 ac_cv_type_getgroups=int
28395 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
28396 $as_echo "$ac_cv_type_getgroups" >&6; }
28398 cat >>confdefs.h <<_ACEOF
28399 #define GETGROUPS_T $ac_cv_type_getgroups
28403 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
28404 $as_echo_n "checking for getgroups... " >&6; }
28405 if test "${ac_cv_func_getgroups+set}" = set; then
28406 $as_echo_n "(cached) " >&6
28408 cat >conftest.$ac_ext <<_ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h. */
28414 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
28415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28416 #define getgroups innocuous_getgroups
28418 /* System header to define __stub macros and hopefully few prototypes,
28419 which can conflict with char getgroups (); below.
28420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28421 <limits.h> exists even on freestanding compilers. */
28424 # include <limits.h>
28426 # include <assert.h>
28431 /* Override any GCC internal prototype to avoid an error.
28432 Use char because int might match the return type of a GCC
28433 builtin and then its argument prototype would still apply. */
28438 /* The GNU C library defines this for functions which it implements
28439 to always fail with ENOSYS. Some functions are actually named
28440 something starting with __ and the normal name is an alias. */
28441 #if defined __stub_getgroups || defined __stub___getgroups
28448 return getgroups ();
28453 rm -f conftest.$ac_objext conftest$ac_exeext
28454 if { (ac_try="$ac_link"
28455 case "(($ac_try" in
28456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28457 *) ac_try_echo=$ac_try;;
28459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28460 $as_echo "$ac_try_echo") >&5
28461 (eval "$ac_link") 2>conftest.er1
28463 grep -v '^ *+' conftest.er1 >conftest.err
28465 cat conftest.err >&5
28466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); } && {
28468 test -z "$ac_c_werror_flag" ||
28469 test ! -s conftest.err
28470 } && test -s conftest$ac_exeext && {
28471 test "$cross_compiling" = yes ||
28472 $as_test_x conftest$ac_exeext
28474 ac_cv_func_getgroups=yes
28476 $as_echo "$as_me: failed program was:" >&5
28477 sed 's/^/| /' conftest.$ac_ext >&5
28479 ac_cv_func_getgroups=no
28482 rm -rf conftest.dSYM
28483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28484 conftest$ac_exeext conftest.$ac_ext
28486 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
28487 $as_echo "$ac_cv_func_getgroups" >&6; }
28490 # If we don't yet have getgroups, see if it's in -lbsd.
28491 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28493 if test $ac_cv_func_getgroups = no; then
28494 { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
28495 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28496 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
28497 $as_echo_n "(cached) " >&6
28499 ac_check_lib_save_LIBS=$LIBS
28501 cat >conftest.$ac_ext <<_ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h. */
28508 /* Override any GCC internal prototype to avoid an error.
28509 Use char because int might match the return type of a GCC
28510 builtin and then its argument prototype would still apply. */
28518 return getgroups ();
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28530 $as_echo "$ac_try_echo") >&5
28531 (eval "$ac_link") 2>conftest.er1
28533 grep -v '^ *+' conftest.er1 >conftest.err
28535 cat conftest.err >&5
28536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } && {
28538 test -z "$ac_c_werror_flag" ||
28539 test ! -s conftest.err
28540 } && test -s conftest$ac_exeext && {
28541 test "$cross_compiling" = yes ||
28542 $as_test_x conftest$ac_exeext
28544 ac_cv_lib_bsd_getgroups=yes
28546 $as_echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28549 ac_cv_lib_bsd_getgroups=no
28552 rm -rf conftest.dSYM
28553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28554 conftest$ac_exeext conftest.$ac_ext
28555 LIBS=$ac_check_lib_save_LIBS
28557 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
28558 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28559 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then
28560 GETGROUPS_LIB=-lbsd
28565 # Run the program to test the functionality of the system-supplied
28566 # getgroups function only if there is such a function.
28567 if test $ac_cv_func_getgroups = yes; then
28568 { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
28569 $as_echo_n "checking for working getgroups... " >&6; }
28570 if test "${ac_cv_func_getgroups_works+set}" = set; then
28571 $as_echo_n "(cached) " >&6
28573 if test "$cross_compiling" = yes; then
28574 ac_cv_func_getgroups_works=no
28576 cat >conftest.$ac_ext <<_ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h. */
28582 $ac_includes_default
28586 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28587 return getgroups (0, 0) == -1;
28592 rm -f conftest$ac_exeext
28593 if { (ac_try="$ac_link"
28594 case "(($ac_try" in
28595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596 *) ac_try_echo=$ac_try;;
28598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28599 $as_echo "$ac_try_echo") >&5
28600 (eval "$ac_link") 2>&5
28602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28604 { (case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28609 $as_echo "$ac_try_echo") >&5
28610 (eval "$ac_try") 2>&5
28612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; }; then
28614 ac_cv_func_getgroups_works=yes
28616 $as_echo "$as_me: program exited with status $ac_status" >&5
28617 $as_echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28620 ( exit $ac_status )
28621 ac_cv_func_getgroups_works=no
28623 rm -rf conftest.dSYM
28624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28630 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
28631 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28632 if test $ac_cv_func_getgroups_works = yes; then
28634 cat >>confdefs.h <<\_ACEOF
28635 #define HAVE_GETGROUPS 1
28642 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28643 # -lseq on Dynix/PTX, -lgen on Unixware.
28644 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28645 $as_echo_n "checking for library containing getmntent... " >&6; }
28646 if test "${ac_cv_search_getmntent+set}" = set; then
28647 $as_echo_n "(cached) " >&6
28649 ac_func_search_save_LIBS=$LIBS
28650 cat >conftest.$ac_ext <<_ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h. */
28657 /* Override any GCC internal prototype to avoid an error.
28658 Use char because int might match the return type of a GCC
28659 builtin and then its argument prototype would still apply. */
28667 return getmntent ();
28672 for ac_lib in '' sun seq gen; do
28673 if test -z "$ac_lib"; then
28674 ac_res="none required"
28677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28679 rm -f conftest.$ac_objext conftest$ac_exeext
28680 if { (ac_try="$ac_link"
28681 case "(($ac_try" in
28682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683 *) ac_try_echo=$ac_try;;
28685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28686 $as_echo "$ac_try_echo") >&5
28687 (eval "$ac_link") 2>conftest.er1
28689 grep -v '^ *+' conftest.er1 >conftest.err
28691 cat conftest.err >&5
28692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } && {
28694 test -z "$ac_c_werror_flag" ||
28695 test ! -s conftest.err
28696 } && test -s conftest$ac_exeext && {
28697 test "$cross_compiling" = yes ||
28698 $as_test_x conftest$ac_exeext
28700 ac_cv_search_getmntent=$ac_res
28702 $as_echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28708 rm -rf conftest.dSYM
28709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28711 if test "${ac_cv_search_getmntent+set}" = set; then
28715 if test "${ac_cv_search_getmntent+set}" = set; then
28718 ac_cv_search_getmntent=no
28720 rm conftest.$ac_ext
28721 LIBS=$ac_func_search_save_LIBS
28723 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28724 $as_echo "$ac_cv_search_getmntent" >&6; }
28725 ac_res=$ac_cv_search_getmntent
28726 if test "$ac_res" != no; then
28727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28728 ac_cv_func_getmntent=yes
28730 cat >>confdefs.h <<\_ACEOF
28731 #define HAVE_GETMNTENT 1
28735 ac_cv_func_getmntent=no
28739 if test $ac_cv_c_compiler_gnu = yes; then
28740 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
28741 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28742 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
28743 $as_echo_n "(cached) " >&6
28745 ac_pattern="Autoconf.*'x'"
28746 cat >conftest.$ac_ext <<_ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h. */
28755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28756 $EGREP "$ac_pattern" >/dev/null 2>&1; then
28757 ac_cv_prog_gcc_traditional=yes
28759 ac_cv_prog_gcc_traditional=no
28764 if test $ac_cv_prog_gcc_traditional = no; then
28765 cat >conftest.$ac_ext <<_ACEOF
28768 cat confdefs.h >>conftest.$ac_ext
28769 cat >>conftest.$ac_ext <<_ACEOF
28770 /* end confdefs.h. */
28771 #include <termio.h>
28774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28775 $EGREP "$ac_pattern" >/dev/null 2>&1; then
28776 ac_cv_prog_gcc_traditional=yes
28782 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
28783 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28784 if test $ac_cv_prog_gcc_traditional = yes; then
28785 CC="$CC -traditional"
28789 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
28790 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
28791 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
28792 $as_echo_n "(cached) " >&6
28794 rm -f conftest.sym conftest.file
28795 echo >conftest.file
28796 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
28797 if test "$cross_compiling" = yes; then
28798 ac_cv_func_lstat_dereferences_slashed_symlink=no
28800 cat >conftest.$ac_ext <<_ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28806 $ac_includes_default
28811 /* Linux will dereference the symlink and fail.
28812 That is better in the sense that it means we will not
28813 have to compile and use the lstat wrapper. */
28814 return lstat ("conftest.sym/", &sbuf) == 0;
28819 rm -f conftest$ac_exeext
28820 if { (ac_try="$ac_link"
28821 case "(($ac_try" in
28822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823 *) ac_try_echo=$ac_try;;
28825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28826 $as_echo "$ac_try_echo") >&5
28827 (eval "$ac_link") 2>&5
28829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28831 { (case "(($ac_try" in
28832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833 *) ac_try_echo=$ac_try;;
28835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28836 $as_echo "$ac_try_echo") >&5
28837 (eval "$ac_try") 2>&5
28839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; }; then
28841 ac_cv_func_lstat_dereferences_slashed_symlink=yes
28843 $as_echo "$as_me: program exited with status $ac_status" >&5
28844 $as_echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28847 ( exit $ac_status )
28848 ac_cv_func_lstat_dereferences_slashed_symlink=no
28850 rm -rf conftest.dSYM
28851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28856 # If the `ln -s' command failed, then we probably don't even
28857 # have an lstat function.
28858 ac_cv_func_lstat_dereferences_slashed_symlink=no
28860 rm -f conftest.sym conftest.file
28863 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
28864 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
28866 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
28868 cat >>confdefs.h <<_ACEOF
28869 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
28873 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
28874 case " $LIBOBJS " in
28875 *" lstat.$ac_objext "* ) ;;
28876 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
28882 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
28883 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
28884 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
28885 $as_echo_n "(cached) " >&6
28887 if test "$cross_compiling" = yes; then
28888 ac_cv_func_lstat_empty_string_bug=yes
28890 cat >conftest.$ac_ext <<_ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h. */
28896 $ac_includes_default
28901 return lstat ("", &sbuf) == 0;
28906 rm -f conftest$ac_exeext
28907 if { (ac_try="$ac_link"
28908 case "(($ac_try" in
28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910 *) ac_try_echo=$ac_try;;
28912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28913 $as_echo "$ac_try_echo") >&5
28914 (eval "$ac_link") 2>&5
28916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28918 { (case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28923 $as_echo "$ac_try_echo") >&5
28924 (eval "$ac_try") 2>&5
28926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); }; }; then
28928 ac_cv_func_lstat_empty_string_bug=no
28930 $as_echo "$as_me: program exited with status $ac_status" >&5
28931 $as_echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28934 ( exit $ac_status )
28935 ac_cv_func_lstat_empty_string_bug=yes
28937 rm -rf conftest.dSYM
28938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
28944 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
28945 if test $ac_cv_func_lstat_empty_string_bug = yes; then
28946 case " $LIBOBJS " in
28947 *" lstat.$ac_objext "* ) ;;
28948 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
28953 cat >>confdefs.h <<_ACEOF
28954 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
28959 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
28960 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
28961 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
28962 $as_echo_n "(cached) " >&6
28964 rm -f conftest.sym conftest.file
28965 echo >conftest.file
28966 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
28967 if test "$cross_compiling" = yes; then
28968 ac_cv_func_lstat_dereferences_slashed_symlink=no
28970 cat >conftest.$ac_ext <<_ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h. */
28976 $ac_includes_default
28981 /* Linux will dereference the symlink and fail.
28982 That is better in the sense that it means we will not
28983 have to compile and use the lstat wrapper. */
28984 return lstat ("conftest.sym/", &sbuf) == 0;
28989 rm -f conftest$ac_exeext
28990 if { (ac_try="$ac_link"
28991 case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28996 $as_echo "$ac_try_echo") >&5
28997 (eval "$ac_link") 2>&5
28999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29001 { (case "(($ac_try" in
29002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003 *) ac_try_echo=$ac_try;;
29005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29006 $as_echo "$ac_try_echo") >&5
29007 (eval "$ac_try") 2>&5
29009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; }; then
29011 ac_cv_func_lstat_dereferences_slashed_symlink=yes
29013 $as_echo "$as_me: program exited with status $ac_status" >&5
29014 $as_echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29017 ( exit $ac_status )
29018 ac_cv_func_lstat_dereferences_slashed_symlink=no
29020 rm -rf conftest.dSYM
29021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29026 # If the `ln -s' command failed, then we probably don't even
29027 # have an lstat function.
29028 ac_cv_func_lstat_dereferences_slashed_symlink=no
29030 rm -f conftest.sym conftest.file
29033 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
29034 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
29036 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
29038 cat >>confdefs.h <<_ACEOF
29039 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
29043 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
29044 case " $LIBOBJS " in
29045 *" lstat.$ac_objext "* ) ;;
29046 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
29052 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
29053 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
29054 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
29055 $as_echo_n "(cached) " >&6
29057 cat >conftest.$ac_ext <<_ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h. */
29063 #include <sys/types.h>
29067 return makedev(0, 0);
29072 rm -f conftest.$ac_objext conftest$ac_exeext
29073 if { (ac_try="$ac_link"
29074 case "(($ac_try" in
29075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076 *) ac_try_echo=$ac_try;;
29078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29079 $as_echo "$ac_try_echo") >&5
29080 (eval "$ac_link") 2>conftest.er1
29082 grep -v '^ *+' conftest.er1 >conftest.err
29084 cat conftest.err >&5
29085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } && {
29087 test -z "$ac_c_werror_flag" ||
29088 test ! -s conftest.err
29089 } && test -s conftest$ac_exeext && {
29090 test "$cross_compiling" = yes ||
29091 $as_test_x conftest$ac_exeext
29093 ac_cv_header_sys_types_h_makedev=yes
29095 $as_echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29098 ac_cv_header_sys_types_h_makedev=no
29101 rm -rf conftest.dSYM
29102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29103 conftest$ac_exeext conftest.$ac_ext
29106 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
29107 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
29109 if test $ac_cv_header_sys_types_h_makedev = no; then
29110 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
29111 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
29112 $as_echo_n "checking for sys/mkdev.h... " >&6; }
29113 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
29114 $as_echo_n "(cached) " >&6
29116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
29117 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
29119 # Is the header compilable?
29120 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
29121 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
29122 cat >conftest.$ac_ext <<_ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h. */
29128 $ac_includes_default
29129 #include <sys/mkdev.h>
29131 rm -f conftest.$ac_objext
29132 if { (ac_try="$ac_compile"
29133 case "(($ac_try" in
29134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135 *) ac_try_echo=$ac_try;;
29137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29138 $as_echo "$ac_try_echo") >&5
29139 (eval "$ac_compile") 2>conftest.er1
29141 grep -v '^ *+' conftest.er1 >conftest.err
29143 cat conftest.err >&5
29144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); } && {
29146 test -z "$ac_c_werror_flag" ||
29147 test ! -s conftest.err
29148 } && test -s conftest.$ac_objext; then
29149 ac_header_compiler=yes
29151 $as_echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29154 ac_header_compiler=no
29157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29158 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29159 $as_echo "$ac_header_compiler" >&6; }
29161 # Is the header present?
29162 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
29163 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
29164 cat >conftest.$ac_ext <<_ACEOF
29167 cat confdefs.h >>conftest.$ac_ext
29168 cat >>conftest.$ac_ext <<_ACEOF
29169 /* end confdefs.h. */
29170 #include <sys/mkdev.h>
29172 if { (ac_try="$ac_cpp conftest.$ac_ext"
29173 case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29178 $as_echo "$ac_try_echo") >&5
29179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29181 grep -v '^ *+' conftest.er1 >conftest.err
29183 cat conftest.err >&5
29184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); } >/dev/null && {
29186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29187 test ! -s conftest.err
29189 ac_header_preproc=yes
29191 $as_echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29194 ac_header_preproc=no
29197 rm -f conftest.err conftest.$ac_ext
29198 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29199 $as_echo "$ac_header_preproc" >&6; }
29201 # So? What about this header?
29202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29204 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
29205 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29206 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
29207 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
29208 ac_header_preproc=yes
29211 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
29212 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
29213 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
29214 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
29215 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
29216 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
29217 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
29218 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
29219 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
29220 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
29221 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
29222 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
29224 ## ---------------------------------------- ##
29225 ## Report this to linux-nfs@vger.kernel.org ##
29226 ## ---------------------------------------- ##
29228 ) | sed "s/^/$as_me: WARNING: /" >&2
29231 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
29232 $as_echo_n "checking for sys/mkdev.h... " >&6; }
29233 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
29234 $as_echo_n "(cached) " >&6
29236 ac_cv_header_sys_mkdev_h=$ac_header_preproc
29238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
29239 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
29242 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
29244 cat >>confdefs.h <<\_ACEOF
29245 #define MAJOR_IN_MKDEV 1
29252 if test $ac_cv_header_sys_mkdev_h = no; then
29253 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
29254 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
29255 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
29256 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
29257 $as_echo_n "(cached) " >&6
29259 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
29260 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
29262 # Is the header compilable?
29263 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
29264 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
29265 cat >conftest.$ac_ext <<_ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h. */
29271 $ac_includes_default
29272 #include <sys/sysmacros.h>
29274 rm -f conftest.$ac_objext
29275 if { (ac_try="$ac_compile"
29276 case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29281 $as_echo "$ac_try_echo") >&5
29282 (eval "$ac_compile") 2>conftest.er1
29284 grep -v '^ *+' conftest.er1 >conftest.err
29286 cat conftest.err >&5
29287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); } && {
29289 test -z "$ac_c_werror_flag" ||
29290 test ! -s conftest.err
29291 } && test -s conftest.$ac_objext; then
29292 ac_header_compiler=yes
29294 $as_echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29297 ac_header_compiler=no
29300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29302 $as_echo "$ac_header_compiler" >&6; }
29304 # Is the header present?
29305 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
29306 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
29307 cat >conftest.$ac_ext <<_ACEOF
29310 cat confdefs.h >>conftest.$ac_ext
29311 cat >>conftest.$ac_ext <<_ACEOF
29312 /* end confdefs.h. */
29313 #include <sys/sysmacros.h>
29315 if { (ac_try="$ac_cpp conftest.$ac_ext"
29316 case "(($ac_try" in
29317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29318 *) ac_try_echo=$ac_try;;
29320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29321 $as_echo "$ac_try_echo") >&5
29322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29324 grep -v '^ *+' conftest.er1 >conftest.err
29326 cat conftest.err >&5
29327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); } >/dev/null && {
29329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29330 test ! -s conftest.err
29332 ac_header_preproc=yes
29334 $as_echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29337 ac_header_preproc=no
29340 rm -f conftest.err conftest.$ac_ext
29341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29342 $as_echo "$ac_header_preproc" >&6; }
29344 # So? What about this header?
29345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29347 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
29348 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29349 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
29350 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
29351 ac_header_preproc=yes
29354 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
29355 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
29356 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
29357 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
29358 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
29359 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
29360 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
29361 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
29362 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
29363 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
29364 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
29365 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
29367 ## ---------------------------------------- ##
29368 ## Report this to linux-nfs@vger.kernel.org ##
29369 ## ---------------------------------------- ##
29371 ) | sed "s/^/$as_me: WARNING: /" >&2
29374 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
29375 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
29376 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
29377 $as_echo_n "(cached) " >&6
29379 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
29381 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
29382 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
29385 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
29387 cat >>confdefs.h <<\_ACEOF
29388 #define MAJOR_IN_SYSMACROS 1
29398 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
29399 $as_echo_n "checking for working memcmp... " >&6; }
29400 if test "${ac_cv_func_memcmp_working+set}" = set; then
29401 $as_echo_n "(cached) " >&6
29403 if test "$cross_compiling" = yes; then
29404 ac_cv_func_memcmp_working=no
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29412 $ac_includes_default
29417 /* Some versions of memcmp are not 8-bit clean. */
29418 char c0 = '\100', c1 = '\200', c2 = '\201';
29419 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29422 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29423 or more and with at least one buffer not starting on a 4-byte boundary.
29424 William Lewis provided this test program. */
29429 for (i = 0; i < 4; i++)
29433 strcpy (a, "--------01111111");
29434 strcpy (b, "--------10000000");
29435 if (memcmp (a, b, 16) >= 0)
29445 rm -f conftest$ac_exeext
29446 if { (ac_try="$ac_link"
29447 case "(($ac_try" in
29448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449 *) ac_try_echo=$ac_try;;
29451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29452 $as_echo "$ac_try_echo") >&5
29453 (eval "$ac_link") 2>&5
29455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29457 { (case "(($ac_try" in
29458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459 *) ac_try_echo=$ac_try;;
29461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29462 $as_echo "$ac_try_echo") >&5
29463 (eval "$ac_try") 2>&5
29465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; }; then
29467 ac_cv_func_memcmp_working=yes
29469 $as_echo "$as_me: program exited with status $ac_status" >&5
29470 $as_echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29473 ( exit $ac_status )
29474 ac_cv_func_memcmp_working=no
29476 rm -rf conftest.dSYM
29477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29482 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29483 $as_echo "$ac_cv_func_memcmp_working" >&6; }
29484 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
29485 *" memcmp.$ac_objext "* ) ;;
29486 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
29494 for ac_header in sys/select.h sys/socket.h
29496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29499 $as_echo_n "checking for $ac_header... " >&6; }
29500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29501 $as_echo_n "(cached) " >&6
29503 ac_res=`eval 'as_val=${'$as_ac_Header'}
29504 $as_echo "$as_val"'`
29505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29506 $as_echo "$ac_res" >&6; }
29508 # Is the header compilable?
29509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29510 $as_echo_n "checking $ac_header usability... " >&6; }
29511 cat >conftest.$ac_ext <<_ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h. */
29517 $ac_includes_default
29518 #include <$ac_header>
29520 rm -f conftest.$ac_objext
29521 if { (ac_try="$ac_compile"
29522 case "(($ac_try" in
29523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524 *) ac_try_echo=$ac_try;;
29526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29527 $as_echo "$ac_try_echo") >&5
29528 (eval "$ac_compile") 2>conftest.er1
29530 grep -v '^ *+' conftest.er1 >conftest.err
29532 cat conftest.err >&5
29533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } && {
29535 test -z "$ac_c_werror_flag" ||
29536 test ! -s conftest.err
29537 } && test -s conftest.$ac_objext; then
29538 ac_header_compiler=yes
29540 $as_echo "$as_me: failed program was:" >&5
29541 sed 's/^/| /' conftest.$ac_ext >&5
29543 ac_header_compiler=no
29546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29548 $as_echo "$ac_header_compiler" >&6; }
29550 # Is the header present?
29551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29552 $as_echo_n "checking $ac_header presence... " >&6; }
29553 cat >conftest.$ac_ext <<_ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h. */
29559 #include <$ac_header>
29561 if { (ac_try="$ac_cpp conftest.$ac_ext"
29562 case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29567 $as_echo "$ac_try_echo") >&5
29568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29570 grep -v '^ *+' conftest.er1 >conftest.err
29572 cat conftest.err >&5
29573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); } >/dev/null && {
29575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29576 test ! -s conftest.err
29578 ac_header_preproc=yes
29580 $as_echo "$as_me: failed program was:" >&5
29581 sed 's/^/| /' conftest.$ac_ext >&5
29583 ac_header_preproc=no
29586 rm -f conftest.err conftest.$ac_ext
29587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29588 $as_echo "$ac_header_preproc" >&6; }
29590 # So? What about this header?
29591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29597 ac_header_preproc=yes
29600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29613 ## ---------------------------------------- ##
29614 ## Report this to linux-nfs@vger.kernel.org ##
29615 ## ---------------------------------------- ##
29617 ) | sed "s/^/$as_me: WARNING: /" >&2
29620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29621 $as_echo_n "checking for $ac_header... " >&6; }
29622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29623 $as_echo_n "(cached) " >&6
29625 eval "$as_ac_Header=\$ac_header_preproc"
29627 ac_res=`eval 'as_val=${'$as_ac_Header'}
29628 $as_echo "$as_val"'`
29629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29630 $as_echo "$ac_res" >&6; }
29633 as_val=`eval 'as_val=${'$as_ac_Header'}
29634 $as_echo "$as_val"'`
29635 if test "x$as_val" = x""yes; then
29636 cat >>confdefs.h <<_ACEOF
29637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29644 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
29645 $as_echo_n "checking types of arguments for select... " >&6; }
29646 if test "${ac_cv_func_select_args+set}" = set; then
29647 $as_echo_n "(cached) " >&6
29649 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
29650 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
29651 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
29652 cat >conftest.$ac_ext <<_ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h. */
29658 $ac_includes_default
29659 #ifdef HAVE_SYS_SELECT_H
29660 # include <sys/select.h>
29662 #ifdef HAVE_SYS_SOCKET_H
29663 # include <sys/socket.h>
29669 extern int select ($ac_arg1,
29670 $ac_arg234, $ac_arg234, $ac_arg234,
29676 rm -f conftest.$ac_objext
29677 if { (ac_try="$ac_compile"
29678 case "(($ac_try" in
29679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680 *) ac_try_echo=$ac_try;;
29682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29683 $as_echo "$ac_try_echo") >&5
29684 (eval "$ac_compile") 2>conftest.er1
29686 grep -v '^ *+' conftest.er1 >conftest.err
29688 cat conftest.err >&5
29689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); } && {
29691 test -z "$ac_c_werror_flag" ||
29692 test ! -s conftest.err
29693 } && test -s conftest.$ac_objext; then
29694 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
29696 $as_echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29706 # Provide a safe default value.
29707 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
29710 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
29711 $as_echo "$ac_cv_func_select_args" >&6; }
29712 ac_save_IFS=$IFS; IFS=','
29713 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
29717 cat >>confdefs.h <<_ACEOF
29718 #define SELECT_TYPE_ARG1 $1
29722 cat >>confdefs.h <<_ACEOF
29723 #define SELECT_TYPE_ARG234 ($2)
29727 cat >>confdefs.h <<_ACEOF
29728 #define SELECT_TYPE_ARG5 ($3)
29733 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29734 $as_echo_n "checking return type of signal handlers... " >&6; }
29735 if test "${ac_cv_type_signal+set}" = set; then
29736 $as_echo_n "(cached) " >&6
29738 cat >conftest.$ac_ext <<_ACEOF
29741 cat confdefs.h >>conftest.$ac_ext
29742 cat >>conftest.$ac_ext <<_ACEOF
29743 /* end confdefs.h. */
29744 #include <sys/types.h>
29745 #include <signal.h>
29750 return *(signal (0, 0)) (0) == 1;
29755 rm -f conftest.$ac_objext
29756 if { (ac_try="$ac_compile"
29757 case "(($ac_try" in
29758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759 *) ac_try_echo=$ac_try;;
29761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29762 $as_echo "$ac_try_echo") >&5
29763 (eval "$ac_compile") 2>conftest.er1
29765 grep -v '^ *+' conftest.er1 >conftest.err
29767 cat conftest.err >&5
29768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); } && {
29770 test -z "$ac_c_werror_flag" ||
29771 test ! -s conftest.err
29772 } && test -s conftest.$ac_objext; then
29773 ac_cv_type_signal=int
29775 $as_echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29778 ac_cv_type_signal=void
29781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29784 $as_echo "$ac_cv_type_signal" >&6; }
29786 cat >>confdefs.h <<_ACEOF
29787 #define RETSIGTYPE $ac_cv_type_signal
29791 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
29792 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
29793 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
29794 $as_echo_n "(cached) " >&6
29796 if test "$cross_compiling" = yes; then
29797 ac_cv_func_stat_empty_string_bug=yes
29799 cat >conftest.$ac_ext <<_ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h. */
29805 $ac_includes_default
29810 return stat ("", &sbuf) == 0;
29815 rm -f conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819 *) ac_try_echo=$ac_try;;
29821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29822 $as_echo "$ac_try_echo") >&5
29823 (eval "$ac_link") 2>&5
29825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29827 { (case "(($ac_try" in
29828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829 *) ac_try_echo=$ac_try;;
29831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29832 $as_echo "$ac_try_echo") >&5
29833 (eval "$ac_try") 2>&5
29835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; }; then
29837 ac_cv_func_stat_empty_string_bug=no
29839 $as_echo "$as_me: program exited with status $ac_status" >&5
29840 $as_echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29843 ( exit $ac_status )
29844 ac_cv_func_stat_empty_string_bug=yes
29846 rm -rf conftest.dSYM
29847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29852 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
29853 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
29854 if test $ac_cv_func_stat_empty_string_bug = yes; then
29855 case " $LIBOBJS " in
29856 *" stat.$ac_objext "* ) ;;
29857 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
29862 cat >>confdefs.h <<_ACEOF
29863 #define HAVE_STAT_EMPTY_STRING_BUG 1
29869 for ac_func in vprintf
29871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29872 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29873 $as_echo_n "checking for $ac_func... " >&6; }
29874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29875 $as_echo_n "(cached) " >&6
29877 cat >conftest.$ac_ext <<_ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h. */
29883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29885 #define $ac_func innocuous_$ac_func
29887 /* System header to define __stub macros and hopefully few prototypes,
29888 which can conflict with char $ac_func (); below.
29889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29890 <limits.h> exists even on freestanding compilers. */
29893 # include <limits.h>
29895 # include <assert.h>
29900 /* Override any GCC internal prototype to avoid an error.
29901 Use char because int might match the return type of a GCC
29902 builtin and then its argument prototype would still apply. */
29907 /* The GNU C library defines this for functions which it implements
29908 to always fail with ENOSYS. Some functions are actually named
29909 something starting with __ and the normal name is an alias. */
29910 #if defined __stub_$ac_func || defined __stub___$ac_func
29917 return $ac_func ();
29922 rm -f conftest.$ac_objext conftest$ac_exeext
29923 if { (ac_try="$ac_link"
29924 case "(($ac_try" in
29925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29926 *) ac_try_echo=$ac_try;;
29928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29929 $as_echo "$ac_try_echo") >&5
29930 (eval "$ac_link") 2>conftest.er1
29932 grep -v '^ *+' conftest.er1 >conftest.err
29934 cat conftest.err >&5
29935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } && {
29937 test -z "$ac_c_werror_flag" ||
29938 test ! -s conftest.err
29939 } && test -s conftest$ac_exeext && {
29940 test "$cross_compiling" = yes ||
29941 $as_test_x conftest$ac_exeext
29943 eval "$as_ac_var=yes"
29945 $as_echo "$as_me: failed program was:" >&5
29946 sed 's/^/| /' conftest.$ac_ext >&5
29948 eval "$as_ac_var=no"
29951 rm -rf conftest.dSYM
29952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29953 conftest$ac_exeext conftest.$ac_ext
29955 ac_res=`eval 'as_val=${'$as_ac_var'}
29956 $as_echo "$as_val"'`
29957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29958 $as_echo "$ac_res" >&6; }
29959 as_val=`eval 'as_val=${'$as_ac_var'}
29960 $as_echo "$as_val"'`
29961 if test "x$as_val" = x""yes; then
29962 cat >>confdefs.h <<_ACEOF
29963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29966 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
29967 $as_echo_n "checking for _doprnt... " >&6; }
29968 if test "${ac_cv_func__doprnt+set}" = set; then
29969 $as_echo_n "(cached) " >&6
29971 cat >conftest.$ac_ext <<_ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h. */
29977 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
29978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29979 #define _doprnt innocuous__doprnt
29981 /* System header to define __stub macros and hopefully few prototypes,
29982 which can conflict with char _doprnt (); below.
29983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29984 <limits.h> exists even on freestanding compilers. */
29987 # include <limits.h>
29989 # include <assert.h>
29994 /* Override any GCC internal prototype to avoid an error.
29995 Use char because int might match the return type of a GCC
29996 builtin and then its argument prototype would still apply. */
30001 /* The GNU C library defines this for functions which it implements
30002 to always fail with ENOSYS. Some functions are actually named
30003 something starting with __ and the normal name is an alias. */
30004 #if defined __stub__doprnt || defined __stub____doprnt
30016 rm -f conftest.$ac_objext conftest$ac_exeext
30017 if { (ac_try="$ac_link"
30018 case "(($ac_try" in
30019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30020 *) ac_try_echo=$ac_try;;
30022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30023 $as_echo "$ac_try_echo") >&5
30024 (eval "$ac_link") 2>conftest.er1
30026 grep -v '^ *+' conftest.er1 >conftest.err
30028 cat conftest.err >&5
30029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } && {
30031 test -z "$ac_c_werror_flag" ||
30032 test ! -s conftest.err
30033 } && test -s conftest$ac_exeext && {
30034 test "$cross_compiling" = yes ||
30035 $as_test_x conftest$ac_exeext
30037 ac_cv_func__doprnt=yes
30039 $as_echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30042 ac_cv_func__doprnt=no
30045 rm -rf conftest.dSYM
30046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30047 conftest$ac_exeext conftest.$ac_ext
30049 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
30050 $as_echo "$ac_cv_func__doprnt" >&6; }
30051 if test "x$ac_cv_func__doprnt" = x""yes; then
30053 cat >>confdefs.h <<\_ACEOF
30054 #define HAVE_DOPRNT 1
30094 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
30095 gethostbyaddr gethostbyname gethostname getmntent \
30096 getnameinfo getrpcbyname \
30097 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
30098 realpath rmdir select socket strcasecmp strchr strdup \
30099 strerror strrchr strtol strtoul sigprocmask
30101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30103 $as_echo_n "checking for $ac_func... " >&6; }
30104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30105 $as_echo_n "(cached) " >&6
30107 cat >conftest.$ac_ext <<_ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h. */
30113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30115 #define $ac_func innocuous_$ac_func
30117 /* System header to define __stub macros and hopefully few prototypes,
30118 which can conflict with char $ac_func (); below.
30119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30120 <limits.h> exists even on freestanding compilers. */
30123 # include <limits.h>
30125 # include <assert.h>
30130 /* Override any GCC internal prototype to avoid an error.
30131 Use char because int might match the return type of a GCC
30132 builtin and then its argument prototype would still apply. */
30137 /* The GNU C library defines this for functions which it implements
30138 to always fail with ENOSYS. Some functions are actually named
30139 something starting with __ and the normal name is an alias. */
30140 #if defined __stub_$ac_func || defined __stub___$ac_func
30147 return $ac_func ();
30152 rm -f conftest.$ac_objext conftest$ac_exeext
30153 if { (ac_try="$ac_link"
30154 case "(($ac_try" in
30155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156 *) ac_try_echo=$ac_try;;
30158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30159 $as_echo "$ac_try_echo") >&5
30160 (eval "$ac_link") 2>conftest.er1
30162 grep -v '^ *+' conftest.er1 >conftest.err
30164 cat conftest.err >&5
30165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); } && {
30167 test -z "$ac_c_werror_flag" ||
30168 test ! -s conftest.err
30169 } && test -s conftest$ac_exeext && {
30170 test "$cross_compiling" = yes ||
30171 $as_test_x conftest$ac_exeext
30173 eval "$as_ac_var=yes"
30175 $as_echo "$as_me: failed program was:" >&5
30176 sed 's/^/| /' conftest.$ac_ext >&5
30178 eval "$as_ac_var=no"
30181 rm -rf conftest.dSYM
30182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30183 conftest$ac_exeext conftest.$ac_ext
30185 ac_res=`eval 'as_val=${'$as_ac_var'}
30186 $as_echo "$as_val"'`
30187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30188 $as_echo "$ac_res" >&6; }
30189 as_val=`eval 'as_val=${'$as_ac_var'}
30190 $as_echo "$as_val"'`
30191 if test "x$as_val" = x""yes; then
30192 cat >>confdefs.h <<_ACEOF
30193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30201 # The cast to long int works around a bug in the HP C Compiler
30202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30204 # This bug is HP SR number 8606223364.
30205 { $as_echo "$as_me:$LINENO: checking size of short" >&5
30206 $as_echo_n "checking size of short... " >&6; }
30207 if test "${ac_cv_sizeof_short+set}" = set; then
30208 $as_echo_n "(cached) " >&6
30210 if test "$cross_compiling" = yes; then
30211 # Depending upon the size, compute the lo and hi bounds.
30212 cat >conftest.$ac_ext <<_ACEOF
30215 cat confdefs.h >>conftest.$ac_ext
30216 cat >>conftest.$ac_ext <<_ACEOF
30217 /* end confdefs.h. */
30218 $ac_includes_default
30222 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
30229 rm -f conftest.$ac_objext
30230 if { (ac_try="$ac_compile"
30231 case "(($ac_try" in
30232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30233 *) ac_try_echo=$ac_try;;
30235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30236 $as_echo "$ac_try_echo") >&5
30237 (eval "$ac_compile") 2>conftest.er1
30239 grep -v '^ *+' conftest.er1 >conftest.err
30241 cat conftest.err >&5
30242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } && {
30244 test -z "$ac_c_werror_flag" ||
30245 test ! -s conftest.err
30246 } && test -s conftest.$ac_objext; then
30249 cat >conftest.$ac_ext <<_ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h. */
30255 $ac_includes_default
30259 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
30266 rm -f conftest.$ac_objext
30267 if { (ac_try="$ac_compile"
30268 case "(($ac_try" in
30269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270 *) ac_try_echo=$ac_try;;
30272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30273 $as_echo "$ac_try_echo") >&5
30274 (eval "$ac_compile") 2>conftest.er1
30276 grep -v '^ *+' conftest.er1 >conftest.err
30278 cat conftest.err >&5
30279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280 (exit $ac_status); } && {
30281 test -z "$ac_c_werror_flag" ||
30282 test ! -s conftest.err
30283 } && test -s conftest.$ac_objext; then
30284 ac_hi=$ac_mid; break
30286 $as_echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30289 ac_lo=`expr $ac_mid + 1`
30290 if test $ac_lo -le $ac_mid; then
30294 ac_mid=`expr 2 '*' $ac_mid + 1`
30297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30300 $as_echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30309 $ac_includes_default
30313 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
30320 rm -f conftest.$ac_objext
30321 if { (ac_try="$ac_compile"
30322 case "(($ac_try" in
30323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324 *) ac_try_echo=$ac_try;;
30326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30327 $as_echo "$ac_try_echo") >&5
30328 (eval "$ac_compile") 2>conftest.er1
30330 grep -v '^ *+' conftest.er1 >conftest.err
30332 cat conftest.err >&5
30333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); } && {
30335 test -z "$ac_c_werror_flag" ||
30336 test ! -s conftest.err
30337 } && test -s conftest.$ac_objext; then
30340 cat >conftest.$ac_ext <<_ACEOF
30343 cat confdefs.h >>conftest.$ac_ext
30344 cat >>conftest.$ac_ext <<_ACEOF
30345 /* end confdefs.h. */
30346 $ac_includes_default
30350 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
30357 rm -f conftest.$ac_objext
30358 if { (ac_try="$ac_compile"
30359 case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30364 $as_echo "$ac_try_echo") >&5
30365 (eval "$ac_compile") 2>conftest.er1
30367 grep -v '^ *+' conftest.er1 >conftest.err
30369 cat conftest.err >&5
30370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); } && {
30372 test -z "$ac_c_werror_flag" ||
30373 test ! -s conftest.err
30374 } && test -s conftest.$ac_objext; then
30375 ac_lo=$ac_mid; break
30377 $as_echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30380 ac_hi=`expr '(' $ac_mid ')' - 1`
30381 if test $ac_mid -le $ac_hi; then
30385 ac_mid=`expr 2 '*' $ac_mid`
30388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30391 $as_echo "$as_me: failed program was:" >&5
30392 sed 's/^/| /' conftest.$ac_ext >&5
30397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30401 # Binary search between lo and hi bounds.
30402 while test "x$ac_lo" != "x$ac_hi"; do
30403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30404 cat >conftest.$ac_ext <<_ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h. */
30410 $ac_includes_default
30414 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
30421 rm -f conftest.$ac_objext
30422 if { (ac_try="$ac_compile"
30423 case "(($ac_try" in
30424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30425 *) ac_try_echo=$ac_try;;
30427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30428 $as_echo "$ac_try_echo") >&5
30429 (eval "$ac_compile") 2>conftest.er1
30431 grep -v '^ *+' conftest.er1 >conftest.err
30433 cat conftest.err >&5
30434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); } && {
30436 test -z "$ac_c_werror_flag" ||
30437 test ! -s conftest.err
30438 } && test -s conftest.$ac_objext; then
30441 $as_echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30444 ac_lo=`expr '(' $ac_mid ')' + 1`
30447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30450 ?*) ac_cv_sizeof_short=$ac_lo;;
30451 '') if test "$ac_cv_type_short" = yes; then
30452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30454 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
30455 See \`config.log' for more details." >&5
30456 $as_echo "$as_me: error: cannot compute sizeof (short)
30457 See \`config.log' for more details." >&2;}
30458 { (exit 77); exit 77; }; }; }
30460 ac_cv_sizeof_short=0
30464 cat >conftest.$ac_ext <<_ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h. */
30470 $ac_includes_default
30471 static long int longval () { return (long int) (sizeof (short)); }
30472 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
30474 #include <stdlib.h>
30479 FILE *f = fopen ("conftest.val", "w");
30482 if (((long int) (sizeof (short))) < 0)
30484 long int i = longval ();
30485 if (i != ((long int) (sizeof (short))))
30487 fprintf (f, "%ld", i);
30491 unsigned long int i = ulongval ();
30492 if (i != ((long int) (sizeof (short))))
30494 fprintf (f, "%lu", i);
30496 /* Do not output a trailing newline, as this causes \r\n confusion
30497 on some platforms. */
30498 return ferror (f) || fclose (f) != 0;
30504 rm -f conftest$ac_exeext
30505 if { (ac_try="$ac_link"
30506 case "(($ac_try" in
30507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30508 *) ac_try_echo=$ac_try;;
30510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30511 $as_echo "$ac_try_echo") >&5
30512 (eval "$ac_link") 2>&5
30514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30516 { (case "(($ac_try" in
30517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518 *) ac_try_echo=$ac_try;;
30520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30521 $as_echo "$ac_try_echo") >&5
30522 (eval "$ac_try") 2>&5
30524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; }; then
30526 ac_cv_sizeof_short=`cat conftest.val`
30528 $as_echo "$as_me: program exited with status $ac_status" >&5
30529 $as_echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30532 ( exit $ac_status )
30533 if test "$ac_cv_type_short" = yes; then
30534 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30536 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
30537 See \`config.log' for more details." >&5
30538 $as_echo "$as_me: error: cannot compute sizeof (short)
30539 See \`config.log' for more details." >&2;}
30540 { (exit 77); exit 77; }; }; }
30542 ac_cv_sizeof_short=0
30545 rm -rf conftest.dSYM
30546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30550 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
30551 $as_echo "$ac_cv_sizeof_short" >&6; }
30555 cat >>confdefs.h <<_ACEOF
30556 #define SIZEOF_SHORT $ac_cv_sizeof_short
30560 # The cast to long int works around a bug in the HP C Compiler
30561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30563 # This bug is HP SR number 8606223364.
30564 { $as_echo "$as_me:$LINENO: checking size of int" >&5
30565 $as_echo_n "checking size of int... " >&6; }
30566 if test "${ac_cv_sizeof_int+set}" = set; then
30567 $as_echo_n "(cached) " >&6
30569 if test "$cross_compiling" = yes; then
30570 # Depending upon the size, compute the lo and hi bounds.
30571 cat >conftest.$ac_ext <<_ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30577 $ac_includes_default
30581 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
30588 rm -f conftest.$ac_objext
30589 if { (ac_try="$ac_compile"
30590 case "(($ac_try" in
30591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592 *) ac_try_echo=$ac_try;;
30594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30595 $as_echo "$ac_try_echo") >&5
30596 (eval "$ac_compile") 2>conftest.er1
30598 grep -v '^ *+' conftest.er1 >conftest.err
30600 cat conftest.err >&5
30601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); } && {
30603 test -z "$ac_c_werror_flag" ||
30604 test ! -s conftest.err
30605 } && test -s conftest.$ac_objext; then
30608 cat >conftest.$ac_ext <<_ACEOF
30611 cat confdefs.h >>conftest.$ac_ext
30612 cat >>conftest.$ac_ext <<_ACEOF
30613 /* end confdefs.h. */
30614 $ac_includes_default
30618 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
30625 rm -f conftest.$ac_objext
30626 if { (ac_try="$ac_compile"
30627 case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30632 $as_echo "$ac_try_echo") >&5
30633 (eval "$ac_compile") 2>conftest.er1
30635 grep -v '^ *+' conftest.er1 >conftest.err
30637 cat conftest.err >&5
30638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); } && {
30640 test -z "$ac_c_werror_flag" ||
30641 test ! -s conftest.err
30642 } && test -s conftest.$ac_objext; then
30643 ac_hi=$ac_mid; break
30645 $as_echo "$as_me: failed program was:" >&5
30646 sed 's/^/| /' conftest.$ac_ext >&5
30648 ac_lo=`expr $ac_mid + 1`
30649 if test $ac_lo -le $ac_mid; then
30653 ac_mid=`expr 2 '*' $ac_mid + 1`
30656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30659 $as_echo "$as_me: failed program was:" >&5
30660 sed 's/^/| /' conftest.$ac_ext >&5
30662 cat >conftest.$ac_ext <<_ACEOF
30665 cat confdefs.h >>conftest.$ac_ext
30666 cat >>conftest.$ac_ext <<_ACEOF
30667 /* end confdefs.h. */
30668 $ac_includes_default
30672 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
30679 rm -f conftest.$ac_objext
30680 if { (ac_try="$ac_compile"
30681 case "(($ac_try" in
30682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683 *) ac_try_echo=$ac_try;;
30685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30686 $as_echo "$ac_try_echo") >&5
30687 (eval "$ac_compile") 2>conftest.er1
30689 grep -v '^ *+' conftest.er1 >conftest.err
30691 cat conftest.err >&5
30692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } && {
30694 test -z "$ac_c_werror_flag" ||
30695 test ! -s conftest.err
30696 } && test -s conftest.$ac_objext; then
30699 cat >conftest.$ac_ext <<_ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h. */
30705 $ac_includes_default
30709 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
30716 rm -f conftest.$ac_objext
30717 if { (ac_try="$ac_compile"
30718 case "(($ac_try" in
30719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30720 *) ac_try_echo=$ac_try;;
30722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30723 $as_echo "$ac_try_echo") >&5
30724 (eval "$ac_compile") 2>conftest.er1
30726 grep -v '^ *+' conftest.er1 >conftest.err
30728 cat conftest.err >&5
30729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); } && {
30731 test -z "$ac_c_werror_flag" ||
30732 test ! -s conftest.err
30733 } && test -s conftest.$ac_objext; then
30734 ac_lo=$ac_mid; break
30736 $as_echo "$as_me: failed program was:" >&5
30737 sed 's/^/| /' conftest.$ac_ext >&5
30739 ac_hi=`expr '(' $ac_mid ')' - 1`
30740 if test $ac_mid -le $ac_hi; then
30744 ac_mid=`expr 2 '*' $ac_mid`
30747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30750 $as_echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30760 # Binary search between lo and hi bounds.
30761 while test "x$ac_lo" != "x$ac_hi"; do
30762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30763 cat >conftest.$ac_ext <<_ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h. */
30769 $ac_includes_default
30773 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
30780 rm -f conftest.$ac_objext
30781 if { (ac_try="$ac_compile"
30782 case "(($ac_try" in
30783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784 *) ac_try_echo=$ac_try;;
30786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30787 $as_echo "$ac_try_echo") >&5
30788 (eval "$ac_compile") 2>conftest.er1
30790 grep -v '^ *+' conftest.er1 >conftest.err
30792 cat conftest.err >&5
30793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } && {
30795 test -z "$ac_c_werror_flag" ||
30796 test ! -s conftest.err
30797 } && test -s conftest.$ac_objext; then
30800 $as_echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30803 ac_lo=`expr '(' $ac_mid ')' + 1`
30806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30809 ?*) ac_cv_sizeof_int=$ac_lo;;
30810 '') if test "$ac_cv_type_int" = yes; then
30811 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30813 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
30814 See \`config.log' for more details." >&5
30815 $as_echo "$as_me: error: cannot compute sizeof (int)
30816 See \`config.log' for more details." >&2;}
30817 { (exit 77); exit 77; }; }; }
30823 cat >conftest.$ac_ext <<_ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h. */
30829 $ac_includes_default
30830 static long int longval () { return (long int) (sizeof (int)); }
30831 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
30833 #include <stdlib.h>
30838 FILE *f = fopen ("conftest.val", "w");
30841 if (((long int) (sizeof (int))) < 0)
30843 long int i = longval ();
30844 if (i != ((long int) (sizeof (int))))
30846 fprintf (f, "%ld", i);
30850 unsigned long int i = ulongval ();
30851 if (i != ((long int) (sizeof (int))))
30853 fprintf (f, "%lu", i);
30855 /* Do not output a trailing newline, as this causes \r\n confusion
30856 on some platforms. */
30857 return ferror (f) || fclose (f) != 0;
30863 rm -f conftest$ac_exeext
30864 if { (ac_try="$ac_link"
30865 case "(($ac_try" in
30866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867 *) ac_try_echo=$ac_try;;
30869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30870 $as_echo "$ac_try_echo") >&5
30871 (eval "$ac_link") 2>&5
30873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30875 { (case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30880 $as_echo "$ac_try_echo") >&5
30881 (eval "$ac_try") 2>&5
30883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); }; }; then
30885 ac_cv_sizeof_int=`cat conftest.val`
30887 $as_echo "$as_me: program exited with status $ac_status" >&5
30888 $as_echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30891 ( exit $ac_status )
30892 if test "$ac_cv_type_int" = yes; then
30893 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30895 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
30896 See \`config.log' for more details." >&5
30897 $as_echo "$as_me: error: cannot compute sizeof (int)
30898 See \`config.log' for more details." >&2;}
30899 { (exit 77); exit 77; }; }; }
30904 rm -rf conftest.dSYM
30905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30909 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
30910 $as_echo "$ac_cv_sizeof_int" >&6; }
30914 cat >>confdefs.h <<_ACEOF
30915 #define SIZEOF_INT $ac_cv_sizeof_int
30919 # The cast to long int works around a bug in the HP C Compiler
30920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30922 # This bug is HP SR number 8606223364.
30923 { $as_echo "$as_me:$LINENO: checking size of long" >&5
30924 $as_echo_n "checking size of long... " >&6; }
30925 if test "${ac_cv_sizeof_long+set}" = set; then
30926 $as_echo_n "(cached) " >&6
30928 if test "$cross_compiling" = yes; then
30929 # Depending upon the size, compute the lo and hi bounds.
30930 cat >conftest.$ac_ext <<_ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30936 $ac_includes_default
30940 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
30947 rm -f conftest.$ac_objext
30948 if { (ac_try="$ac_compile"
30949 case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30954 $as_echo "$ac_try_echo") >&5
30955 (eval "$ac_compile") 2>conftest.er1
30957 grep -v '^ *+' conftest.er1 >conftest.err
30959 cat conftest.err >&5
30960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); } && {
30962 test -z "$ac_c_werror_flag" ||
30963 test ! -s conftest.err
30964 } && test -s conftest.$ac_objext; then
30967 cat >conftest.$ac_ext <<_ACEOF
30970 cat confdefs.h >>conftest.$ac_ext
30971 cat >>conftest.$ac_ext <<_ACEOF
30972 /* end confdefs.h. */
30973 $ac_includes_default
30977 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
30984 rm -f conftest.$ac_objext
30985 if { (ac_try="$ac_compile"
30986 case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30991 $as_echo "$ac_try_echo") >&5
30992 (eval "$ac_compile") 2>conftest.er1
30994 grep -v '^ *+' conftest.er1 >conftest.err
30996 cat conftest.err >&5
30997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); } && {
30999 test -z "$ac_c_werror_flag" ||
31000 test ! -s conftest.err
31001 } && test -s conftest.$ac_objext; then
31002 ac_hi=$ac_mid; break
31004 $as_echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31007 ac_lo=`expr $ac_mid + 1`
31008 if test $ac_lo -le $ac_mid; then
31012 ac_mid=`expr 2 '*' $ac_mid + 1`
31015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31018 $as_echo "$as_me: failed program was:" >&5
31019 sed 's/^/| /' conftest.$ac_ext >&5
31021 cat >conftest.$ac_ext <<_ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h. */
31027 $ac_includes_default
31031 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
31038 rm -f conftest.$ac_objext
31039 if { (ac_try="$ac_compile"
31040 case "(($ac_try" in
31041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042 *) ac_try_echo=$ac_try;;
31044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31045 $as_echo "$ac_try_echo") >&5
31046 (eval "$ac_compile") 2>conftest.er1
31048 grep -v '^ *+' conftest.er1 >conftest.err
31050 cat conftest.err >&5
31051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); } && {
31053 test -z "$ac_c_werror_flag" ||
31054 test ! -s conftest.err
31055 } && test -s conftest.$ac_objext; then
31058 cat >conftest.$ac_ext <<_ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h. */
31064 $ac_includes_default
31068 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
31075 rm -f conftest.$ac_objext
31076 if { (ac_try="$ac_compile"
31077 case "(($ac_try" in
31078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31079 *) ac_try_echo=$ac_try;;
31081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31082 $as_echo "$ac_try_echo") >&5
31083 (eval "$ac_compile") 2>conftest.er1
31085 grep -v '^ *+' conftest.er1 >conftest.err
31087 cat conftest.err >&5
31088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); } && {
31090 test -z "$ac_c_werror_flag" ||
31091 test ! -s conftest.err
31092 } && test -s conftest.$ac_objext; then
31093 ac_lo=$ac_mid; break
31095 $as_echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31098 ac_hi=`expr '(' $ac_mid ')' - 1`
31099 if test $ac_mid -le $ac_hi; then
31103 ac_mid=`expr 2 '*' $ac_mid`
31106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31109 $as_echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31119 # Binary search between lo and hi bounds.
31120 while test "x$ac_lo" != "x$ac_hi"; do
31121 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31122 cat >conftest.$ac_ext <<_ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h. */
31128 $ac_includes_default
31132 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
31139 rm -f conftest.$ac_objext
31140 if { (ac_try="$ac_compile"
31141 case "(($ac_try" in
31142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143 *) ac_try_echo=$ac_try;;
31145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31146 $as_echo "$ac_try_echo") >&5
31147 (eval "$ac_compile") 2>conftest.er1
31149 grep -v '^ *+' conftest.er1 >conftest.err
31151 cat conftest.err >&5
31152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } && {
31154 test -z "$ac_c_werror_flag" ||
31155 test ! -s conftest.err
31156 } && test -s conftest.$ac_objext; then
31159 $as_echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31162 ac_lo=`expr '(' $ac_mid ')' + 1`
31165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31168 ?*) ac_cv_sizeof_long=$ac_lo;;
31169 '') if test "$ac_cv_type_long" = yes; then
31170 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31172 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
31173 See \`config.log' for more details." >&5
31174 $as_echo "$as_me: error: cannot compute sizeof (long)
31175 See \`config.log' for more details." >&2;}
31176 { (exit 77); exit 77; }; }; }
31178 ac_cv_sizeof_long=0
31182 cat >conftest.$ac_ext <<_ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h. */
31188 $ac_includes_default
31189 static long int longval () { return (long int) (sizeof (long)); }
31190 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
31192 #include <stdlib.h>
31197 FILE *f = fopen ("conftest.val", "w");
31200 if (((long int) (sizeof (long))) < 0)
31202 long int i = longval ();
31203 if (i != ((long int) (sizeof (long))))
31205 fprintf (f, "%ld", i);
31209 unsigned long int i = ulongval ();
31210 if (i != ((long int) (sizeof (long))))
31212 fprintf (f, "%lu", i);
31214 /* Do not output a trailing newline, as this causes \r\n confusion
31215 on some platforms. */
31216 return ferror (f) || fclose (f) != 0;
31222 rm -f conftest$ac_exeext
31223 if { (ac_try="$ac_link"
31224 case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31229 $as_echo "$ac_try_echo") >&5
31230 (eval "$ac_link") 2>&5
31232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31234 { (case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31239 $as_echo "$ac_try_echo") >&5
31240 (eval "$ac_try") 2>&5
31242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); }; }; then
31244 ac_cv_sizeof_long=`cat conftest.val`
31246 $as_echo "$as_me: program exited with status $ac_status" >&5
31247 $as_echo "$as_me: failed program was:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31250 ( exit $ac_status )
31251 if test "$ac_cv_type_long" = yes; then
31252 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31254 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
31255 See \`config.log' for more details." >&5
31256 $as_echo "$as_me: error: cannot compute sizeof (long)
31257 See \`config.log' for more details." >&2;}
31258 { (exit 77); exit 77; }; }; }
31260 ac_cv_sizeof_long=0
31263 rm -rf conftest.dSYM
31264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31268 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
31269 $as_echo "$ac_cv_sizeof_long" >&6; }
31273 cat >>confdefs.h <<_ACEOF
31274 #define SIZEOF_LONG $ac_cv_sizeof_long
31278 # The cast to long int works around a bug in the HP C Compiler
31279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31281 # This bug is HP SR number 8606223364.
31282 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
31283 $as_echo_n "checking size of size_t... " >&6; }
31284 if test "${ac_cv_sizeof_size_t+set}" = set; then
31285 $as_echo_n "(cached) " >&6
31287 if test "$cross_compiling" = yes; then
31288 # Depending upon the size, compute the lo and hi bounds.
31289 cat >conftest.$ac_ext <<_ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h. */
31295 $ac_includes_default
31299 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
31306 rm -f conftest.$ac_objext
31307 if { (ac_try="$ac_compile"
31308 case "(($ac_try" in
31309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310 *) ac_try_echo=$ac_try;;
31312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31313 $as_echo "$ac_try_echo") >&5
31314 (eval "$ac_compile") 2>conftest.er1
31316 grep -v '^ *+' conftest.er1 >conftest.err
31318 cat conftest.err >&5
31319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); } && {
31321 test -z "$ac_c_werror_flag" ||
31322 test ! -s conftest.err
31323 } && test -s conftest.$ac_objext; then
31326 cat >conftest.$ac_ext <<_ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31332 $ac_includes_default
31336 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
31343 rm -f conftest.$ac_objext
31344 if { (ac_try="$ac_compile"
31345 case "(($ac_try" in
31346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31347 *) ac_try_echo=$ac_try;;
31349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31350 $as_echo "$ac_try_echo") >&5
31351 (eval "$ac_compile") 2>conftest.er1
31353 grep -v '^ *+' conftest.er1 >conftest.err
31355 cat conftest.err >&5
31356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); } && {
31358 test -z "$ac_c_werror_flag" ||
31359 test ! -s conftest.err
31360 } && test -s conftest.$ac_objext; then
31361 ac_hi=$ac_mid; break
31363 $as_echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.$ac_ext >&5
31366 ac_lo=`expr $ac_mid + 1`
31367 if test $ac_lo -le $ac_mid; then
31371 ac_mid=`expr 2 '*' $ac_mid + 1`
31374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31377 $as_echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.$ac_ext >&5
31380 cat >conftest.$ac_ext <<_ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h. */
31386 $ac_includes_default
31390 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
31397 rm -f conftest.$ac_objext
31398 if { (ac_try="$ac_compile"
31399 case "(($ac_try" in
31400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401 *) ac_try_echo=$ac_try;;
31403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31404 $as_echo "$ac_try_echo") >&5
31405 (eval "$ac_compile") 2>conftest.er1
31407 grep -v '^ *+' conftest.er1 >conftest.err
31409 cat conftest.err >&5
31410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); } && {
31412 test -z "$ac_c_werror_flag" ||
31413 test ! -s conftest.err
31414 } && test -s conftest.$ac_objext; then
31417 cat >conftest.$ac_ext <<_ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h. */
31423 $ac_includes_default
31427 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
31434 rm -f conftest.$ac_objext
31435 if { (ac_try="$ac_compile"
31436 case "(($ac_try" in
31437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438 *) ac_try_echo=$ac_try;;
31440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31441 $as_echo "$ac_try_echo") >&5
31442 (eval "$ac_compile") 2>conftest.er1
31444 grep -v '^ *+' conftest.er1 >conftest.err
31446 cat conftest.err >&5
31447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } && {
31449 test -z "$ac_c_werror_flag" ||
31450 test ! -s conftest.err
31451 } && test -s conftest.$ac_objext; then
31452 ac_lo=$ac_mid; break
31454 $as_echo "$as_me: failed program was:" >&5
31455 sed 's/^/| /' conftest.$ac_ext >&5
31457 ac_hi=`expr '(' $ac_mid ')' - 1`
31458 if test $ac_mid -le $ac_hi; then
31462 ac_mid=`expr 2 '*' $ac_mid`
31465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31468 $as_echo "$as_me: failed program was:" >&5
31469 sed 's/^/| /' conftest.$ac_ext >&5
31474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31478 # Binary search between lo and hi bounds.
31479 while test "x$ac_lo" != "x$ac_hi"; do
31480 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31481 cat >conftest.$ac_ext <<_ACEOF
31484 cat confdefs.h >>conftest.$ac_ext
31485 cat >>conftest.$ac_ext <<_ACEOF
31486 /* end confdefs.h. */
31487 $ac_includes_default
31491 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
31498 rm -f conftest.$ac_objext
31499 if { (ac_try="$ac_compile"
31500 case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31505 $as_echo "$ac_try_echo") >&5
31506 (eval "$ac_compile") 2>conftest.er1
31508 grep -v '^ *+' conftest.er1 >conftest.err
31510 cat conftest.err >&5
31511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); } && {
31513 test -z "$ac_c_werror_flag" ||
31514 test ! -s conftest.err
31515 } && test -s conftest.$ac_objext; then
31518 $as_echo "$as_me: failed program was:" >&5
31519 sed 's/^/| /' conftest.$ac_ext >&5
31521 ac_lo=`expr '(' $ac_mid ')' + 1`
31524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31527 ?*) ac_cv_sizeof_size_t=$ac_lo;;
31528 '') if test "$ac_cv_type_size_t" = yes; then
31529 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31531 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
31532 See \`config.log' for more details." >&5
31533 $as_echo "$as_me: error: cannot compute sizeof (size_t)
31534 See \`config.log' for more details." >&2;}
31535 { (exit 77); exit 77; }; }; }
31537 ac_cv_sizeof_size_t=0
31541 cat >conftest.$ac_ext <<_ACEOF
31544 cat confdefs.h >>conftest.$ac_ext
31545 cat >>conftest.$ac_ext <<_ACEOF
31546 /* end confdefs.h. */
31547 $ac_includes_default
31548 static long int longval () { return (long int) (sizeof (size_t)); }
31549 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
31551 #include <stdlib.h>
31556 FILE *f = fopen ("conftest.val", "w");
31559 if (((long int) (sizeof (size_t))) < 0)
31561 long int i = longval ();
31562 if (i != ((long int) (sizeof (size_t))))
31564 fprintf (f, "%ld", i);
31568 unsigned long int i = ulongval ();
31569 if (i != ((long int) (sizeof (size_t))))
31571 fprintf (f, "%lu", i);
31573 /* Do not output a trailing newline, as this causes \r\n confusion
31574 on some platforms. */
31575 return ferror (f) || fclose (f) != 0;
31581 rm -f conftest$ac_exeext
31582 if { (ac_try="$ac_link"
31583 case "(($ac_try" in
31584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585 *) ac_try_echo=$ac_try;;
31587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31588 $as_echo "$ac_try_echo") >&5
31589 (eval "$ac_link") 2>&5
31591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31593 { (case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31598 $as_echo "$ac_try_echo") >&5
31599 (eval "$ac_try") 2>&5
31601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; }; then
31603 ac_cv_sizeof_size_t=`cat conftest.val`
31605 $as_echo "$as_me: program exited with status $ac_status" >&5
31606 $as_echo "$as_me: failed program was:" >&5
31607 sed 's/^/| /' conftest.$ac_ext >&5
31609 ( exit $ac_status )
31610 if test "$ac_cv_type_size_t" = yes; then
31611 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31613 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
31614 See \`config.log' for more details." >&5
31615 $as_echo "$as_me: error: cannot compute sizeof (size_t)
31616 See \`config.log' for more details." >&2;}
31617 { (exit 77); exit 77; }; }; }
31619 ac_cv_sizeof_size_t=0
31622 rm -rf conftest.dSYM
31623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31627 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
31628 $as_echo "$ac_cv_sizeof_size_t" >&6; }
31632 cat >>confdefs.h <<_ACEOF
31633 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
31637 # The cast to long int works around a bug in the HP C Compiler
31638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31640 # This bug is HP SR number 8606223364.
31641 { $as_echo "$as_me:$LINENO: checking size of socklen_t" >&5
31642 $as_echo_n "checking size of socklen_t... " >&6; }
31643 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
31644 $as_echo_n "(cached) " >&6
31646 if test "$cross_compiling" = yes; then
31647 # Depending upon the size, compute the lo and hi bounds.
31648 cat >conftest.$ac_ext <<_ACEOF
31651 cat confdefs.h >>conftest.$ac_ext
31652 cat >>conftest.$ac_ext <<_ACEOF
31653 /* end confdefs.h. */
31654 $ac_includes_default
31658 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= 0)];
31665 rm -f conftest.$ac_objext
31666 if { (ac_try="$ac_compile"
31667 case "(($ac_try" in
31668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669 *) ac_try_echo=$ac_try;;
31671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31672 $as_echo "$ac_try_echo") >&5
31673 (eval "$ac_compile") 2>conftest.er1
31675 grep -v '^ *+' conftest.er1 >conftest.err
31677 cat conftest.err >&5
31678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679 (exit $ac_status); } && {
31680 test -z "$ac_c_werror_flag" ||
31681 test ! -s conftest.err
31682 } && test -s conftest.$ac_objext; then
31685 cat >conftest.$ac_ext <<_ACEOF
31688 cat confdefs.h >>conftest.$ac_ext
31689 cat >>conftest.$ac_ext <<_ACEOF
31690 /* end confdefs.h. */
31691 $ac_includes_default
31695 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
31702 rm -f conftest.$ac_objext
31703 if { (ac_try="$ac_compile"
31704 case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31709 $as_echo "$ac_try_echo") >&5
31710 (eval "$ac_compile") 2>conftest.er1
31712 grep -v '^ *+' conftest.er1 >conftest.err
31714 cat conftest.err >&5
31715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); } && {
31717 test -z "$ac_c_werror_flag" ||
31718 test ! -s conftest.err
31719 } && test -s conftest.$ac_objext; then
31720 ac_hi=$ac_mid; break
31722 $as_echo "$as_me: failed program was:" >&5
31723 sed 's/^/| /' conftest.$ac_ext >&5
31725 ac_lo=`expr $ac_mid + 1`
31726 if test $ac_lo -le $ac_mid; then
31730 ac_mid=`expr 2 '*' $ac_mid + 1`
31733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31736 $as_echo "$as_me: failed program was:" >&5
31737 sed 's/^/| /' conftest.$ac_ext >&5
31739 cat >conftest.$ac_ext <<_ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h. */
31745 $ac_includes_default
31749 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) < 0)];
31756 rm -f conftest.$ac_objext
31757 if { (ac_try="$ac_compile"
31758 case "(($ac_try" in
31759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760 *) ac_try_echo=$ac_try;;
31762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31763 $as_echo "$ac_try_echo") >&5
31764 (eval "$ac_compile") 2>conftest.er1
31766 grep -v '^ *+' conftest.er1 >conftest.err
31768 cat conftest.err >&5
31769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); } && {
31771 test -z "$ac_c_werror_flag" ||
31772 test ! -s conftest.err
31773 } && test -s conftest.$ac_objext; then
31776 cat >conftest.$ac_ext <<_ACEOF
31779 cat confdefs.h >>conftest.$ac_ext
31780 cat >>conftest.$ac_ext <<_ACEOF
31781 /* end confdefs.h. */
31782 $ac_includes_default
31786 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= $ac_mid)];
31793 rm -f conftest.$ac_objext
31794 if { (ac_try="$ac_compile"
31795 case "(($ac_try" in
31796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31797 *) ac_try_echo=$ac_try;;
31799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31800 $as_echo "$ac_try_echo") >&5
31801 (eval "$ac_compile") 2>conftest.er1
31803 grep -v '^ *+' conftest.er1 >conftest.err
31805 cat conftest.err >&5
31806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); } && {
31808 test -z "$ac_c_werror_flag" ||
31809 test ! -s conftest.err
31810 } && test -s conftest.$ac_objext; then
31811 ac_lo=$ac_mid; break
31813 $as_echo "$as_me: failed program was:" >&5
31814 sed 's/^/| /' conftest.$ac_ext >&5
31816 ac_hi=`expr '(' $ac_mid ')' - 1`
31817 if test $ac_mid -le $ac_hi; then
31821 ac_mid=`expr 2 '*' $ac_mid`
31824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31827 $as_echo "$as_me: failed program was:" >&5
31828 sed 's/^/| /' conftest.$ac_ext >&5
31833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31837 # Binary search between lo and hi bounds.
31838 while test "x$ac_lo" != "x$ac_hi"; do
31839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31840 cat >conftest.$ac_ext <<_ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h. */
31846 $ac_includes_default
31850 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
31857 rm -f conftest.$ac_objext
31858 if { (ac_try="$ac_compile"
31859 case "(($ac_try" in
31860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31861 *) ac_try_echo=$ac_try;;
31863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31864 $as_echo "$ac_try_echo") >&5
31865 (eval "$ac_compile") 2>conftest.er1
31867 grep -v '^ *+' conftest.er1 >conftest.err
31869 cat conftest.err >&5
31870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); } && {
31872 test -z "$ac_c_werror_flag" ||
31873 test ! -s conftest.err
31874 } && test -s conftest.$ac_objext; then
31877 $as_echo "$as_me: failed program was:" >&5
31878 sed 's/^/| /' conftest.$ac_ext >&5
31880 ac_lo=`expr '(' $ac_mid ')' + 1`
31883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31886 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
31887 '') if test "$ac_cv_type_socklen_t" = yes; then
31888 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31890 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
31891 See \`config.log' for more details." >&5
31892 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
31893 See \`config.log' for more details." >&2;}
31894 { (exit 77); exit 77; }; }; }
31896 ac_cv_sizeof_socklen_t=0
31900 cat >conftest.$ac_ext <<_ACEOF
31903 cat confdefs.h >>conftest.$ac_ext
31904 cat >>conftest.$ac_ext <<_ACEOF
31905 /* end confdefs.h. */
31906 $ac_includes_default
31907 static long int longval () { return (long int) (sizeof (socklen_t)); }
31908 static unsigned long int ulongval () { return (long int) (sizeof (socklen_t)); }
31910 #include <stdlib.h>
31915 FILE *f = fopen ("conftest.val", "w");
31918 if (((long int) (sizeof (socklen_t))) < 0)
31920 long int i = longval ();
31921 if (i != ((long int) (sizeof (socklen_t))))
31923 fprintf (f, "%ld", i);
31927 unsigned long int i = ulongval ();
31928 if (i != ((long int) (sizeof (socklen_t))))
31930 fprintf (f, "%lu", i);
31932 /* Do not output a trailing newline, as this causes \r\n confusion
31933 on some platforms. */
31934 return ferror (f) || fclose (f) != 0;
31940 rm -f conftest$ac_exeext
31941 if { (ac_try="$ac_link"
31942 case "(($ac_try" in
31943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944 *) ac_try_echo=$ac_try;;
31946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31947 $as_echo "$ac_try_echo") >&5
31948 (eval "$ac_link") 2>&5
31950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31952 { (case "(($ac_try" in
31953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954 *) ac_try_echo=$ac_try;;
31956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31957 $as_echo "$ac_try_echo") >&5
31958 (eval "$ac_try") 2>&5
31960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; }; then
31962 ac_cv_sizeof_socklen_t=`cat conftest.val`
31964 $as_echo "$as_me: program exited with status $ac_status" >&5
31965 $as_echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31968 ( exit $ac_status )
31969 if test "$ac_cv_type_socklen_t" = yes; then
31970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31972 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
31973 See \`config.log' for more details." >&5
31974 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
31975 See \`config.log' for more details." >&2;}
31976 { (exit 77); exit 77; }; }; }
31978 ac_cv_sizeof_socklen_t=0
31981 rm -rf conftest.dSYM
31982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31986 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
31987 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
31991 cat >>confdefs.h <<_ACEOF
31992 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
31999 cat >>confdefs.h <<_ACEOF
32000 #define NFS_STATEDIR "$statedir"
32004 if test "x$cross_compiling" = "xno"; then
32005 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
32006 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
32007 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
32008 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
32010 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
32011 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
32012 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
32013 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
32031 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
32033 AM_CFLAGS="$my_am_cflags"
32036 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
32037 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
32040 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
32042 cat >confcache <<\_ACEOF
32043 # This file is a shell script that caches the results of configure
32044 # tests run on this system so they can be shared between configure
32045 # scripts and configure runs, see configure's option --config-cache.
32046 # It is not useful on other systems. If it contains results you don't
32047 # want to keep, you may remove or edit it.
32049 # config.status only pays attention to the cache file if you give it
32050 # the --recheck option to rerun configure.
32052 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32053 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32054 # following values.
32058 # The following way of writing the cache mishandles newlines in values,
32059 # but we know of no workaround that is simple, portable, and efficient.
32060 # So, we kill variables containing newlines.
32061 # Ultrix sh set writes to stderr and can't be redirected directly,
32062 # and sets the high bit in the cache file unless we assign to the vars.
32064 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32065 eval ac_val=\$$ac_var
32069 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
32070 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32073 _ | IFS | as_nl) ;; #(
32074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32075 *) $as_unset $ac_var ;;
32081 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32082 *${as_nl}ac_space=\ *)
32083 # `set' does not quote correctly, so add quotes (double-quote
32084 # substitution turns \\\\ into \\, and sed turns \\ into \).
32087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32090 # `set' quotes correctly as required by POSIX, so do not add quotes.
32091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32100 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32102 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32104 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32105 if test -w "$cache_file"; then
32106 test "x$cache_file" != "x/dev/null" &&
32107 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
32108 $as_echo "$as_me: updating cache $cache_file" >&6;}
32109 cat confcache >$cache_file
32111 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32112 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32118 # Let make expand exec_prefix.
32119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32121 DEFS=-DHAVE_CONFIG_H
32125 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32126 # 1. Remove the extension, and $U if already installed.
32127 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32128 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32129 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32130 # will be set to the directory where LIBOBJS objects are built.
32131 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32132 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32134 LIBOBJS=$ac_libobjs
32136 LTLIBOBJS=$ac_ltlibobjs
32139 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32140 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32141 Usually this means the macro was only invoked conditionally." >&5
32142 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32143 Usually this means the macro was only invoked conditionally." >&2;}
32144 { (exit 1); exit 1; }; }
32146 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
32147 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
32148 Usually this means the macro was only invoked conditionally." >&5
32149 $as_echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
32150 Usually this means the macro was only invoked conditionally." >&2;}
32151 { (exit 1); exit 1; }; }
32153 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
32154 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
32155 Usually this means the macro was only invoked conditionally." >&5
32156 $as_echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
32157 Usually this means the macro was only invoked conditionally." >&2;}
32158 { (exit 1); exit 1; }; }
32160 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
32161 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
32162 Usually this means the macro was only invoked conditionally." >&5
32163 $as_echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
32164 Usually this means the macro was only invoked conditionally." >&2;}
32165 { (exit 1); exit 1; }; }
32167 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
32168 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
32169 Usually this means the macro was only invoked conditionally." >&5
32170 $as_echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
32171 Usually this means the macro was only invoked conditionally." >&2;}
32172 { (exit 1); exit 1; }; }
32174 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
32175 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
32176 Usually this means the macro was only invoked conditionally." >&5
32177 $as_echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
32178 Usually this means the macro was only invoked conditionally." >&2;}
32179 { (exit 1); exit 1; }; }
32181 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32182 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32183 Usually this means the macro was only invoked conditionally." >&5
32184 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
32185 Usually this means the macro was only invoked conditionally." >&2;}
32186 { (exit 1); exit 1; }; }
32188 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32189 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32190 Usually this means the macro was only invoked conditionally." >&5
32191 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32192 Usually this means the macro was only invoked conditionally." >&2;}
32193 { (exit 1); exit 1; }; }
32195 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32196 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32197 Usually this means the macro was only invoked conditionally." >&5
32198 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32199 Usually this means the macro was only invoked conditionally." >&2;}
32200 { (exit 1); exit 1; }; }
32202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32203 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32204 Usually this means the macro was only invoked conditionally." >&5
32205 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32206 Usually this means the macro was only invoked conditionally." >&2;}
32207 { (exit 1); exit 1; }; }
32210 : ${CONFIG_STATUS=./config.status}
32212 ac_clean_files_save=$ac_clean_files
32213 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32214 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32215 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32216 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32218 # Generated by $as_me.
32219 # Run this file to recreate the current configuration.
32220 # Compiler output produced by configure, useful for debugging
32221 # configure, is in config.log if it exists.
32224 ac_cs_recheck=false
32226 SHELL=\${CONFIG_SHELL-$SHELL}
32229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32230 ## --------------------- ##
32231 ## M4sh Initialization. ##
32232 ## --------------------- ##
32234 # Be more Bourne compatible
32235 DUALCASE=1; export DUALCASE # for MKS sh
32236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32240 # is contrary to our usage. Disable this feature.
32241 alias -g '${1+"$@"}'='"$@"'
32242 setopt NO_GLOB_SUBST
32244 case `(set -o) 2>/dev/null` in
32245 *posix*) set -o posix ;;
32254 # Avoid depending upon Character Ranges.
32255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32258 as_cr_digits='0123456789'
32259 as_cr_alnum=$as_cr_Letters$as_cr_digits
32264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32265 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32268 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32269 as_echo='printf %s\n'
32270 as_echo_n='printf %s'
32272 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32273 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32274 as_echo_n='/usr/ucb/echo -n'
32276 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32277 as_echo_n_body='eval
32281 expr "X$arg" : "X\\(.*\\)$as_nl";
32282 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32284 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32286 export as_echo_n_body
32287 as_echo_n='sh -c $as_echo_n_body as_echo'
32289 export as_echo_body
32290 as_echo='sh -c $as_echo_body as_echo'
32293 # The user is always right.
32294 if test "${PATH_SEPARATOR+set}" != set; then
32296 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32297 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32302 # Support unset when possible.
32303 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32311 # We need space, tab and new line, in precisely that order. Quoting is
32312 # there to prevent editors from complaining about space-tab.
32313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32314 # splitting by setting IFS to empty value.)
32317 # Find who we are. Look in the path if we contain no directory separator.
32319 *[\\/]* ) as_myself=$0 ;;
32320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32321 for as_dir in $PATH
32324 test -z "$as_dir" && as_dir=.
32325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32331 # We did not find ourselves, most probably we were run as `sh COMMAND'
32332 # in which case we are not to be found in the path.
32333 if test "x$as_myself" = x; then
32336 if test ! -f "$as_myself"; then
32337 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32338 { (exit 1); exit 1; }
32341 # Work around bugs in pre-3.0 UWIN ksh.
32342 for as_var in ENV MAIL MAILPATH
32343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32355 # Required to use basename.
32356 if expr a : '\(a\)' >/dev/null 2>&1 &&
32357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32364 as_basename=basename
32370 # Name of the executable.
32371 as_me=`$as_basename -- "$0" ||
32372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32373 X"$0" : 'X\(//\)$' \| \
32374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32376 sed '/^.*\/\([^/][^/]*\)\/*$/{
32395 as_lineno_1=$LINENO
32396 as_lineno_2=$LINENO
32397 test "x$as_lineno_1" != "x$as_lineno_2" &&
32398 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32400 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32401 # uniformly replaced by the line number. The first 'sed' inserts a
32402 # line-number line after each line using $LINENO; the second 'sed'
32403 # does the real work. The second script uses 'N' to pair each
32404 # line-number line with the line containing $LINENO, and appends
32405 # trailing '-' during substitution so that $LINENO is not a special
32406 # case at line end.
32407 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32408 # scripts with optimization help from Paolo Bonzini. Blame Lee
32409 # E. McMahon (1931-1989) for sed's syntax. :-)
32421 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32424 ' >$as_me.lineno &&
32425 chmod +x "$as_me.lineno" ||
32426 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32427 { (exit 1); exit 1; }; }
32429 # Don't try to exec as it changes $[0], causing all sort of problems
32430 # (the dirname of $[0] is not the place where we might find the
32431 # original and so on. Autoconf is especially sensitive to this).
32432 . "./$as_me.lineno"
32433 # Exit status is that of the last command.
32438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32444 ECHO_C= ECHO_N= ECHO_T=
32445 case `echo -n x` in
32447 case `echo 'x\c'` in
32448 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32454 if expr a : '\(a\)' >/dev/null 2>&1 &&
32455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32461 rm -f conf$$ conf$$.exe conf$$.file
32462 if test -d conf$$.dir; then
32463 rm -f conf$$.dir/conf$$.file
32466 mkdir conf$$.dir 2>/dev/null
32468 if (echo >conf$$.file) 2>/dev/null; then
32469 if ln -s conf$$.file conf$$ 2>/dev/null; then
32471 # ... but there are two gotchas:
32472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32474 # In both cases, we have to default to `cp -p'.
32475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32477 elif ln conf$$.file conf$$ 2>/dev/null; then
32485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32486 rmdir conf$$.dir 2>/dev/null
32488 if mkdir -p . 2>/dev/null; then
32491 test -d ./-p && rmdir ./-p
32495 if test -x / >/dev/null 2>&1; then
32496 as_test_x='test -x'
32498 if ls -dL / >/dev/null 2>&1; then
32505 if test -d "$1"; then
32511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32512 ???[sx]*):;;*)false;;esac;fi
32516 as_executable_p=$as_test_x
32518 # Sed expression to map a string onto a valid CPP name.
32519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32521 # Sed expression to map a string onto a valid variable name.
32522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32527 # Save the log message, to keep $[0] and so on meaningful, and to
32528 # report actual input values of CONFIG_FILES etc. instead of their
32529 # values after options handling.
32531 This file was extended by linux nfs-utils $as_me 1.1.6, which was
32532 generated by GNU Autoconf 2.63. Invocation command line was
32534 CONFIG_FILES = $CONFIG_FILES
32535 CONFIG_HEADERS = $CONFIG_HEADERS
32536 CONFIG_LINKS = $CONFIG_LINKS
32537 CONFIG_COMMANDS = $CONFIG_COMMANDS
32540 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32545 case $ac_config_files in *"
32546 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32549 case $ac_config_headers in *"
32550 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32555 # Files that config.status was made for.
32556 config_files="$ac_config_files"
32557 config_headers="$ac_config_headers"
32558 config_commands="$ac_config_commands"
32562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32564 \`$as_me' instantiates files from templates according to the
32565 current configuration.
32567 Usage: $0 [OPTION]... [FILE]...
32569 -h, --help print this help, then exit
32570 -V, --version print version number and configuration settings, then exit
32571 -q, --quiet, --silent
32572 do not print progress messages
32573 -d, --debug don't remove temporary files
32574 --recheck update $as_me by reconfiguring in the same conditions
32575 --file=FILE[:TEMPLATE]
32576 instantiate the configuration file FILE
32577 --header=FILE[:TEMPLATE]
32578 instantiate the configuration header FILE
32580 Configuration files:
32583 Configuration headers:
32586 Configuration commands:
32589 Report bugs to <bug-autoconf@gnu.org>."
32592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32594 linux nfs-utils config.status 1.1.6
32595 configured by $0, generated by GNU Autoconf 2.63,
32596 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32598 Copyright (C) 2008 Free Software Foundation, Inc.
32599 This config.status script is free software; the Free Software Foundation
32600 gives unlimited permission to copy, distribute and modify it."
32607 test -n "\$AWK" || AWK=awk
32610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32611 # The default lists apply if the user does not specify any file.
32617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32629 # Handling of the options.
32630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32633 $as_echo "$ac_cs_version"; exit ;;
32634 --debug | --debu | --deb | --de | --d | -d )
32636 --file | --fil | --fi | --f )
32639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32641 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
32642 ac_need_defaults=false;;
32643 --header | --heade | --head | --hea )
32646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32648 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
32649 ac_need_defaults=false;;
32651 # Conflict between --help and --header
32652 { $as_echo "$as_me: error: ambiguous option: $1
32653 Try \`$0 --help' for more information." >&2
32654 { (exit 1); exit 1; }; };;
32655 --help | --hel | -h )
32656 $as_echo "$ac_cs_usage"; exit ;;
32657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32661 # This is an error.
32662 -*) { $as_echo "$as_me: error: unrecognized option: $1
32663 Try \`$0 --help' for more information." >&2
32664 { (exit 1); exit 1; }; } ;;
32666 *) ac_config_targets="$ac_config_targets $1"
32667 ac_need_defaults=false ;;
32673 ac_configure_extra_args=
32675 if $ac_cs_silent; then
32677 ac_configure_extra_args="$ac_configure_extra_args --silent"
32681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32682 if \$ac_cs_recheck; then
32683 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32686 CONFIG_SHELL='$SHELL'
32687 export CONFIG_SHELL
32692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32697 ## Running $as_me. ##
32703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32707 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32713 # Handling of arguments.
32714 for ac_config_target in $ac_config_targets
32716 case $ac_config_target in
32717 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32718 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
32719 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32720 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
32721 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32722 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
32723 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
32724 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
32725 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
32726 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
32727 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
32728 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
32729 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
32730 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
32731 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
32732 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
32733 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
32734 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
32735 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
32736 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
32737 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
32738 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
32739 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
32740 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
32741 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
32742 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
32743 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
32744 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
32746 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32747 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32748 { (exit 1); exit 1; }; };;
32753 # If the user did not use the arguments to specify the items to instantiate,
32754 # then the envvar interface is used. Set only those that are not.
32755 # We use the long form for the default assignment because of an extremely
32756 # bizarre bug on SunOS 4.1.3.
32757 if $ac_need_defaults; then
32758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32759 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32760 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32763 # Have a temporary directory for convenience. Make it in the build tree
32764 # simply because there is no reason against having it here, and in addition,
32765 # creating and moving files from /tmp can sometimes cause problems.
32766 # Hook for its removal unless debugging.
32767 # Note that there is a small window in which the directory will not be cleaned:
32768 # after its creation but before its name has been assigned to `$tmp'.
32772 trap 'exit_status=$?
32773 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32775 trap '{ (exit 1); exit 1; }' 1 2 13 15
32777 # Create a (secure) tmp directory for tmp files.
32780 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32781 test -n "$tmp" && test -d "$tmp"
32784 tmp=./conf$$-$RANDOM
32785 (umask 077 && mkdir "$tmp")
32788 $as_echo "$as_me: cannot create a temporary directory in ." >&2
32789 { (exit 1); exit 1; }
32792 # Set up the scripts for CONFIG_FILES section.
32793 # No need to generate them if there are no CONFIG_FILES.
32794 # This happens for instance with `./config.status config.h'.
32795 if test -n "$CONFIG_FILES"; then
32799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32803 ac_cs_awk_cr=$ac_cr
32806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32811 echo "cat >conf$$subs.awk <<_ACEOF" &&
32812 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32814 } >conf$$subs.sh ||
32815 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32816 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32817 { (exit 1); exit 1; }; }
32818 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32820 for ac_last_try in false false false false false :; do
32821 . ./conf$$subs.sh ||
32822 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32823 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32824 { (exit 1); exit 1; }; }
32826 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32827 if test $ac_delim_n = $ac_delim_num; then
32829 elif $ac_last_try; then
32830 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32831 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32832 { (exit 1); exit 1; }; }
32834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32837 rm -f conf$$subs.sh
32839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32840 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32844 s/^/S["/; s/!.*/"]=/
32854 s/\(.\{148\}\).*/\1/
32856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32868 s/\(.\{148\}\).*/\1/
32870 s/["\\]/\\&/g; s/^/"/; s/$/"/
32874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32879 ' <conf$$subs.awk | sed '
32884 ' >>$CONFIG_STATUS || ac_write_fail=1
32885 rm -f conf$$subs.awk
32886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32888 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32889 for (key in S) S_is_set[key] = 1
32895 nfields = split(line, field, "@")
32897 len = length(field[1])
32898 for (i = 2; i < nfields; i++) {
32900 keylen = length(key)
32901 if (S_is_set[key]) {
32903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32904 len += length(value) + length(field[++i])
32915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32917 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32920 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32921 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32922 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
32923 { (exit 1); exit 1; }; }
32926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32928 # trailing colons and then remove the whole line if VPATH becomes empty
32929 # (actually we leave an empty line to preserve line numbers).
32930 if test "x$srcdir" = x.; then
32931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32932 s/:*\$(srcdir):*/:/
32933 s/:*\${srcdir}:*/:/
32935 s/^\([^=]*=[ ]*\):*/\1/
32941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32942 fi # test -n "$CONFIG_FILES"
32944 # Set up the scripts for CONFIG_HEADERS section.
32945 # No need to generate them if there are no CONFIG_HEADERS.
32946 # This happens for instance with `./config.status Makefile'.
32947 if test -n "$CONFIG_HEADERS"; then
32948 cat >"$tmp/defines.awk" <<\_ACAWK ||
32952 # Transform confdefs.h into an awk script `defines.awk', embedded as
32953 # here-document in config.status, that substitutes the proper values into
32954 # config.h.in to produce config.h.
32956 # Create a delimiter string that does not exist in confdefs.h, to ease
32957 # handling of long lines.
32959 for ac_last_try in false false :; do
32960 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32961 if test -z "$ac_t"; then
32963 elif $ac_last_try; then
32964 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32965 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32966 { (exit 1); exit 1; }; }
32968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32972 # For the awk script, D is an array of macro values keyed by name,
32973 # likewise P contains macro parameters if any. Preserve backslash
32974 # newline sequences.
32976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32978 s/.\{148\}/&'"$ac_delim"'/g
32981 s/^[ ]*#[ ]*define[ ][ ]*/ /
32988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32995 D["\1"]=" \3\\\\\\n"\\/p
32997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33002 s/.\{148\}/&'"$ac_delim"'/g
33007 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33010 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33012 ' <confdefs.h | sed '
33013 s/'"$ac_delim"'/"\\\
33014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33017 for (key in D) D_is_set[key] = 1
33020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33022 split(line, arg, " ")
33023 if (arg[1] == "#") {
33027 defundef = substr(arg[1], 2)
33030 split(mac1, mac2, "(") #)
33032 prefix = substr(line, 1, index(line, defundef) - 1)
33033 if (D_is_set[macro]) {
33034 # Preserve the white space surrounding the "#".
33035 print prefix "define", macro P[macro] D[macro]
33038 # Replace #undef with comments. This is necessary, for example,
33039 # in the case of _POSIX_SOURCE, which is predefined and required
33040 # on some systems where configure will not decide to define it.
33041 if (defundef == "undef") {
33042 print "/*", prefix defundef, macro, "*/"
33050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33051 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
33052 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
33053 { (exit 1); exit 1; }; }
33054 fi # test -n "$CONFIG_HEADERS"
33057 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33062 :[FHLC]) ac_mode=$ac_tag; continue;;
33064 case $ac_mode$ac_tag in
33066 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
33067 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
33068 { (exit 1); exit 1; }; };;
33069 :[FH]-) ac_tag=-:-;;
33070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33087 -) ac_f="$tmp/stdin";;
33088 *) # Look for the file first in the build tree, then in the source tree
33089 # (if the path is not absolute). The absolute path cannot be DOS-style,
33090 # because $ac_f cannot contain `:'.
33094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33096 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33097 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33098 { (exit 1); exit 1; }; };;
33100 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33101 ac_file_inputs="$ac_file_inputs '$ac_f'"
33104 # Let's still pretend it is `configure' which instantiates (i.e., don't
33105 # use $as_me), people would be surprised to read:
33106 # /* config.h. Generated by config.status. */
33107 configure_input='Generated from '`
33108 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33110 if test x"$ac_file" != x-; then
33111 configure_input="$ac_file. $configure_input"
33112 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
33113 $as_echo "$as_me: creating $ac_file" >&6;}
33115 # Neutralize special characters interpreted by sed in replacement strings.
33116 case $configure_input in #(
33117 *\&* | *\|* | *\\* )
33118 ac_sed_conf_input=`$as_echo "$configure_input" |
33119 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33120 *) ac_sed_conf_input=$configure_input;;
33124 *:-:* | *:-) cat >"$tmp/stdin" \
33125 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33126 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33127 { (exit 1); exit 1; }; } ;;
33132 ac_dir=`$as_dirname -- "$ac_file" ||
33133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33134 X"$ac_file" : 'X\(//\)[^/]' \| \
33135 X"$ac_file" : 'X\(//\)$' \| \
33136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33137 $as_echo X"$ac_file" |
33138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33142 /^X\(\/\/\)[^/].*/{
33157 -*) as_dir=./$as_dir;;
33159 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33164 *) as_qdir=$as_dir;;
33166 as_dirs="'$as_qdir' $as_dirs"
33167 as_dir=`$as_dirname -- "$as_dir" ||
33168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33169 X"$as_dir" : 'X\(//\)[^/]' \| \
33170 X"$as_dir" : 'X\(//\)$' \| \
33171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33172 $as_echo X"$as_dir" |
33173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33177 /^X\(\/\/\)[^/].*/{
33190 test -d "$as_dir" && break
33192 test -z "$as_dirs" || eval "mkdir $as_dirs"
33193 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33194 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
33195 { (exit 1); exit 1; }; }; }
33199 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33201 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33202 # A ".." for each directory in $ac_dir_suffix.
33203 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33204 case $ac_top_builddir_sub in
33205 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33206 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33209 ac_abs_top_builddir=$ac_pwd
33210 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33211 # for backward compatibility:
33212 ac_top_builddir=$ac_top_build_prefix
33215 .) # We are building in place.
33217 ac_top_srcdir=$ac_top_builddir_sub
33218 ac_abs_top_srcdir=$ac_pwd ;;
33219 [\\/]* | ?:[\\/]* ) # Absolute name.
33220 ac_srcdir=$srcdir$ac_dir_suffix;
33221 ac_top_srcdir=$srcdir
33222 ac_abs_top_srcdir=$srcdir ;;
33223 *) # Relative name.
33224 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33225 ac_top_srcdir=$ac_top_build_prefix$srcdir
33226 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33228 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33238 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33239 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33241 ac_MKDIR_P=$MKDIR_P
33243 [\\/$]* | ?:[\\/]* ) ;;
33244 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33249 # If the template does not know about datarootdir, expand it.
33250 # FIXME: This hack should be removed a few years after 2.60.
33251 ac_datarootdir_hack=; ac_datarootdir_seen=
33264 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33265 *datarootdir*) ac_datarootdir_seen=yes;;
33266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33267 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33268 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33271 ac_datarootdir_hack='
33272 s&@datadir@&$datadir&g
33273 s&@docdir@&$docdir&g
33274 s&@infodir@&$infodir&g
33275 s&@localedir@&$localedir&g
33276 s&@mandir@&$mandir&g
33277 s&\\\${datarootdir}&$datarootdir&g' ;;
33281 # Neutralize VPATH when `$srcdir' = `.'.
33282 # Shell code in configure.ac might set extrasub.
33283 # FIXME: do we really want to maintain this feature?
33284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33285 ac_sed_extra="$ac_vpsub
33288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33291 s|@configure_input@|$ac_sed_conf_input|;t t
33292 s&@top_builddir@&$ac_top_builddir_sub&;t t
33293 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33294 s&@srcdir@&$ac_srcdir&;t t
33295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33296 s&@top_srcdir@&$ac_top_srcdir&;t t
33297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33298 s&@builddir@&$ac_builddir&;t t
33299 s&@abs_builddir@&$ac_abs_builddir&;t t
33300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33301 s&@INSTALL@&$ac_INSTALL&;t t
33302 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33303 $ac_datarootdir_hack
33305 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33306 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33307 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33308 { (exit 1); exit 1; }; }
33310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33311 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33312 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33313 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33314 which seems to be undefined. Please make sure it is defined." >&5
33315 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33316 which seems to be undefined. Please make sure it is defined." >&2;}
33320 -) cat "$tmp/out" && rm -f "$tmp/out";;
33321 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33323 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33324 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33325 { (exit 1); exit 1; }; }
33331 if test x"$ac_file" != x-; then
33333 $as_echo "/* $configure_input */" \
33334 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33335 } >"$tmp/config.h" \
33336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33338 { (exit 1); exit 1; }; }
33339 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
33340 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33344 mv "$tmp/config.h" "$ac_file" \
33345 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
33346 $as_echo "$as_me: error: could not create $ac_file" >&2;}
33347 { (exit 1); exit 1; }; }
33350 $as_echo "/* $configure_input */" \
33351 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
33352 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
33353 $as_echo "$as_me: error: could not create -" >&2;}
33354 { (exit 1); exit 1; }; }
33356 # Compute "$ac_file"'s index in $config_headers.
33359 for _am_header in $config_headers :; do
33360 case $_am_header in
33361 $_am_arg | $_am_arg:* )
33364 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33367 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33368 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33369 X"$_am_arg" : 'X\(//\)[^/]' \| \
33370 X"$_am_arg" : 'X\(//\)$' \| \
33371 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33372 $as_echo X"$_am_arg" |
33373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33377 /^X\(\/\/\)[^/].*/{
33389 s/.*/./; q'`/stamp-h$_am_stamp_count
33392 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
33393 $as_echo "$as_me: executing $ac_file commands" >&6;}
33398 case $ac_file$ac_mode in
33399 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33400 # Strip MF so we end up with the name of the file.
33401 mf=`echo "$mf" | sed -e 's/:.*$//'`
33402 # Check whether this is an Automake generated Makefile or not.
33403 # We used to match only the files named `Makefile.in', but
33404 # some people rename them; so instead we look at the file content.
33405 # Grep'ing the first line is not enough: some people post-process
33406 # each Makefile.in and add a new line on top of each file to say so.
33407 # Grep'ing the whole file is not good either: AIX grep has a line
33408 # limit of 2048, but all sed's we know have understand at least 4000.
33409 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33410 dirpart=`$as_dirname -- "$mf" ||
33411 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33412 X"$mf" : 'X\(//\)[^/]' \| \
33413 X"$mf" : 'X\(//\)$' \| \
33414 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33420 /^X\(\/\/\)[^/].*/{
33436 # Extract the definition of DEPDIR, am__include, and am__quote
33437 # from the Makefile without running `make'.
33438 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33439 test -z "$DEPDIR" && continue
33440 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33441 test -z "am__include" && continue
33442 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33443 # When using ansi2knr, U may be empty or an underscore; expand it
33444 U=`sed -n 's/^U = //p' < "$mf"`
33445 # Find all dependency output files, they are included files with
33446 # $(DEPDIR) in their names. We invoke sed twice because it is the
33447 # simplest approach to changing $(DEPDIR) to its actual value in the
33449 for file in `sed -n "
33450 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33451 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33452 # Make sure the directory exists.
33453 test -f "$dirpart/$file" && continue
33454 fdir=`$as_dirname -- "$file" ||
33455 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33456 X"$file" : 'X\(//\)[^/]' \| \
33457 X"$file" : 'X\(//\)$' \| \
33458 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33459 $as_echo X"$file" |
33460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33464 /^X\(\/\/\)[^/].*/{
33477 { as_dir=$dirpart/$fdir
33479 -*) as_dir=./$as_dir;;
33481 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33485 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33486 *) as_qdir=$as_dir;;
33488 as_dirs="'$as_qdir' $as_dirs"
33489 as_dir=`$as_dirname -- "$as_dir" ||
33490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33491 X"$as_dir" : 'X\(//\)[^/]' \| \
33492 X"$as_dir" : 'X\(//\)$' \| \
33493 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33494 $as_echo X"$as_dir" |
33495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33499 /^X\(\/\/\)[^/].*/{
33512 test -d "$as_dir" && break
33514 test -z "$as_dirs" || eval "mkdir $as_dirs"
33515 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33516 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
33517 { (exit 1); exit 1; }; }; }
33518 # echo "creating $dirpart/$file"
33519 echo '# dummy' > "$dirpart/$file"
33528 { (exit 0); exit 0; }
33530 chmod +x $CONFIG_STATUS
33531 ac_clean_files=$ac_clean_files_save
33533 test $ac_write_fail = 0 ||
33534 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
33535 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
33536 { (exit 1); exit 1; }; }
33539 # configure is writing to config.log, and then calls config.status.
33540 # config.status does its own redirection, appending to config.log.
33541 # Unfortunately, on DOS this fails, as config.log is still kept open
33542 # by configure, so config.status won't be able to write to it; its
33543 # output is simply discarded. So we exec the FD to /dev/null,
33544 # effectively closing config.log, so it can be properly (re)opened and
33545 # appended to by config.status. When coming back to configure, we
33546 # need to make the FD available again.
33547 if test "$no_create" != yes; then
33549 ac_config_status_args=
33550 test "$silent" = yes &&
33551 ac_config_status_args="$ac_config_status_args --quiet"
33553 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33555 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33556 # would make configure fail if this is the last instruction.
33557 $ac_cs_success || { (exit 1); exit 1; }
33559 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33560 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33561 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}