2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.2.
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 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.2'
732 PACKAGE_STRING='linux nfs-utils 1.1.2'
733 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
832 INSTALL_STRIP_PROGRAM
841 MAINTAINER_MODE_FALSE
930 ac_precious_vars='build_alias
952 # Initialize some variables set by options.
954 ac_init_version=false
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078 eval enable_$ac_feature=\$ac_optarg ;;
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 htmldir=$ac_optarg ;;
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1123 -libdir | --libdir | --libdi | --libd)
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1214 -psdir | --psdir | --psdi | --psd | --ps)
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 sbindir=$ac_optarg ;;
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 sharedstatedir=$ac_optarg ;;
1240 -site | --site | --sit)
1242 -site=* | --site=* | --sit=*)
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1269 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275 eval with_$ac_package=\$ac_optarg ;;
1277 -without-* | --without-*)
1278 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1284 eval with_$ac_package=no ;;
1287 # Obsolete; use --with-x.
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) { echo "$as_me: error: unrecognized option: $ac_option
1305 Try \`$0 --help' for more information." >&2
1306 { (exit 1); exit 1; }; }
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314 { (exit 1); exit 1; }; }
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 { echo "$as_me: error: missing argument to $ac_option" >&2
1332 { (exit 1); exit 1; }; }
1335 # Be sure to have absolute directory names.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val=\$$ac_var
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 { (exit 1); exit 1; }; }
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 { echo "$as_me: error: Working directory cannot be determined" >&2
1378 { (exit 1); exit 1; }; }
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 { echo "$as_me: error: pwd does not report name of working directory" >&2
1381 { (exit 1); exit 1; }; }
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$0" ||
1389 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$0" : 'X\(//\)[^/]' \| \
1391 X"$0" : 'X\(//\)$' \| \
1392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421 { (exit 1); exit 1; }; }
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1426 { (exit 1); exit 1; }; }
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures linux nfs-utils 1.1.2 to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 if test -n "$ac_init_help"; then
1521 case $ac_init_help in
1522 short | recursive ) echo "Configuration of linux nfs-utils 1.1.2:";;
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-maintainer-mode enable make rules and dependencies not useful
1530 (and sometimes confusing) to the casual installer
1531 --enable-nfsv3 enable support for NFSv3 [default=yes]
1532 --enable-nfsv4 enable support for NFSv4 [default=yes]
1533 --enable-gss enable support for rpcsec_gss [default=yes]
1534 --enable-kprefix install progs as rpc.knfsd etc
1535 --enable-secure-statd Only lockd can use statd (security)
1536 --without-uuid Exclude uuid support and so avoid possibly buggy
1538 --enable-mount Create mount.nfs and don't use the util-linux
1539 mount(8) functionality. [default=yes]
1540 --disable-dependency-tracking speeds up one-time build
1541 --enable-dependency-tracking do not reject slow dependency extractors
1542 --disable-largefile omit support for large files
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-release=XXX set release to XXX [1]
1553 --with-statedir=/foo use state dir /foo /var/lib/nfs
1554 --with-statduser=rpcuser
1555 statd to run under [rpcuser or nobody]
1556 --with-start-statd=scriptname
1557 When an nfs filesystems is mounted with locking, run
1559 --with-rpcgen=internal use internal rpcgen instead of system one
1560 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1561 (optionally in PATH)
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-pic try to use only PIC/non-PIC objects [default=use
1565 --with-tags[=TAGS] include additional configurations [automatic]
1566 --with-krb5=DIR use Kerberos v5 installation in DIR
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1579 CXXCPP C++ preprocessor
1580 F77 Fortran 77 compiler command
1581 FFLAGS Fortran 77 compiler flags
1582 PKG_CONFIG path to pkg-config utility
1584 C compiler flags for RPCSECGSS, overriding pkg-config
1586 linker flags for RPCSECGSS, overriding pkg-config
1588 C compiler flags for GSSGLUE, overriding pkg-config
1590 linker flags for GSSGLUE, overriding pkg-config
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1595 Report bugs to <linux-nfs@vger.kernel.org>.
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" || continue
1607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1610 # A ".." for each directory in $ac_dir_suffix.
1611 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1612 case $ac_top_builddir_sub in
1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 ac_abs_top_builddir=$ac_pwd
1618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619 # for backward compatibility:
1620 ac_top_builddir=$ac_top_build_prefix
1623 .) # We are building in place.
1625 ac_top_srcdir=$ac_top_builddir_sub
1626 ac_abs_top_srcdir=$ac_pwd ;;
1627 [\\/]* | ?:[\\/]* ) # Absolute name.
1628 ac_srcdir=$srcdir$ac_dir_suffix;
1629 ac_top_srcdir=$srcdir
1630 ac_abs_top_srcdir=$srcdir ;;
1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633 ac_top_srcdir=$ac_top_build_prefix$srcdir
1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638 cd "$ac_dir" || { ac_status=$?; continue; }
1639 # Check for guested configure.
1640 if test -f "$ac_srcdir/configure.gnu"; then
1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643 elif test -f "$ac_srcdir/configure"; then
1645 $SHELL "$ac_srcdir/configure" --help=recursive
1647 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 cd "$ac_pwd" || { ac_status=$?; break; }
1653 test -n "$ac_init_help" && exit $ac_status
1654 if $ac_init_version; then
1656 linux nfs-utils configure 1.1.2
1657 generated by GNU Autoconf 2.61
1659 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1660 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1666 cat >config.log <<_ACEOF
1667 This file contains any messages produced by compilers while
1668 running configure, to aid debugging if configure makes a mistake.
1670 It was created by linux nfs-utils $as_me 1.1.2, which was
1671 generated by GNU Autoconf 2.61. Invocation command line was
1683 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1689 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1692 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1693 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1696 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1697 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1698 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 test -z "$as_dir" && as_dir=.
1707 echo "PATH: $as_dir"
1723 # Keep a trace of the command line.
1724 # Strip out --no-create and --no-recursion so they do not pile up.
1725 # Strip out --silent because we don't want to record it for future runs.
1726 # Also quote any args containing shell meta-characters.
1727 # Make two passes to allow for proper duplicate-argument suppression.
1731 ac_must_keep_next=false
1737 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739 | -silent | --silent | --silen | --sile | --sil)
1742 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1747 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748 if test $ac_must_keep_next = true; then
1749 ac_must_keep_next=false # Got value, back to normal.
1752 *=* | --config-cache | -C | -disable-* | --disable-* \
1753 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755 | -with-* | --with-* | -without-* | --without-* | --x)
1756 case "$ac_configure_args0 " in
1757 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760 -* ) ac_must_keep_next=true ;;
1763 ac_configure_args="$ac_configure_args '$ac_arg'"
1768 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1771 # When interrupted or exit'd, cleanup temporary files, and complete
1772 # config.log. We remove comments because anyway the quotes in there
1773 # would cause problems or look ugly.
1774 # WARNING: Use '\'' to represent an apostrophe within the trap.
1775 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776 trap 'exit_status=$?
1777 # Save into config.log some information that might help in debugging.
1782 ## ---------------- ##
1783 ## Cache variables. ##
1784 ## ---------------- ##
1787 # The following way of writing the cache mishandles newlines in values,
1789 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790 eval ac_val=\$$ac_var
1794 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1795 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1798 _ | IFS | as_nl) ;; #(
1799 *) $as_unset $ac_var ;;
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1834 if test -n "$ac_subst_files"; then
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1841 for ac_var in $ac_subst_files
1843 eval ac_val=\$$ac_var
1845 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 echo "$ac_var='\''$ac_val'\''"
1852 if test -s confdefs.h; then
1862 test "$ac_signal" != 0 &&
1863 echo "$as_me: caught signal $ac_signal"
1864 echo "$as_me: exit $exit_status"
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer explicitly selected file to automatically selected ones.
1907 if test -n "$CONFIG_SITE"; then
1908 set x "$CONFIG_SITE"
1909 elif test "x$prefix" != xNONE; then
1910 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1912 set x "$ac_default_prefix/share/config.site" \
1913 "$ac_default_prefix/etc/config.site"
1918 if test -r "$ac_site_file"; then
1919 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1920 echo "$as_me: loading site script $ac_site_file" >&6;}
1921 sed 's/^/| /' "$ac_site_file" >&5
1926 if test -r "$cache_file"; then
1927 # Some versions of bash will fail to source /dev/null (special
1928 # files actually), so we avoid doing that.
1929 if test -f "$cache_file"; then
1930 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1931 echo "$as_me: loading cache $cache_file" >&6;}
1933 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1934 *) . "./$cache_file";;
1938 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1939 echo "$as_me: creating cache $cache_file" >&6;}
1943 # Check that the precious variables saved in the cache have kept the same
1945 ac_cache_corrupted=false
1946 for ac_var in $ac_precious_vars; do
1947 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1948 eval ac_new_set=\$ac_env_${ac_var}_set
1949 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1950 eval ac_new_val=\$ac_env_${ac_var}_value
1951 case $ac_old_set,$ac_new_set in
1953 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1954 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1955 ac_cache_corrupted=: ;;
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1962 if test "x$ac_old_val" != "x$ac_new_val"; then
1963 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1964 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1965 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1966 echo "$as_me: former value: $ac_old_val" >&2;}
1967 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1968 echo "$as_me: current value: $ac_new_val" >&2;}
1969 ac_cache_corrupted=:
1972 # Pass precious variables to config.status.
1973 if test "$ac_new_set" = set; then
1975 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 *) ac_arg=$ac_var=$ac_new_val ;;
1978 case " $ac_configure_args " in
1979 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1980 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1984 if $ac_cache_corrupted; then
1985 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1986 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1987 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1988 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1989 { (exit 1); exit 1; }; }
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2025 if test -f "$ac_dir/install-sh"; then
2027 ac_install_sh="$ac_aux_dir/install-sh -c"
2029 elif test -f "$ac_dir/install.sh"; then
2031 ac_install_sh="$ac_aux_dir/install.sh -c"
2033 elif test -f "$ac_dir/shtool"; then
2035 ac_install_sh="$ac_aux_dir/shtool install -c"
2039 if test -z "$ac_aux_dir"; then
2040 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2041 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2042 { (exit 1); exit 1; }; }
2045 # These three variables are undocumented and unsupported,
2046 # and are intended to be withdrawn in a future Autoconf release.
2047 # They can cause serious problems if a builder's source tree is in a directory
2048 # whose full name contains unusual characters.
2049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2054 # Make sure we can run config.sub.
2055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2056 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2057 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2058 { (exit 1); exit 1; }; }
2060 { echo "$as_me:$LINENO: checking build system type" >&5
2061 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_build+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 ac_build_alias=$build_alias
2066 test "x$ac_build_alias" = x &&
2067 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2068 test "x$ac_build_alias" = x &&
2069 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2070 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2071 { (exit 1); exit 1; }; }
2072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2073 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2074 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2075 { (exit 1); exit 1; }; }
2078 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2079 echo "${ECHO_T}$ac_cv_build" >&6; }
2080 case $ac_cv_build in
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2083 echo "$as_me: error: invalid value of canonical build" >&2;}
2084 { (exit 1); exit 1; }; };;
2087 ac_save_IFS=$IFS; IFS='-'
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2097 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2100 { echo "$as_me:$LINENO: checking host system type" >&5
2101 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_host+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test "x$host_alias" = x; then
2106 ac_cv_host=$ac_cv_build
2108 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2115 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2116 echo "${ECHO_T}$ac_cv_host" >&6; }
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2120 echo "$as_me: error: invalid value of canonical host" >&2;}
2121 { (exit 1); exit 1; }; };;
2124 ac_save_IFS=$IFS; IFS='-'
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2134 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2138 am__api_version='1.10'
2140 # Find a good install program. We prefer a C program (faster),
2141 # so one script is as good as another. But avoid the broken or
2142 # incompatible versions:
2143 # SysV /etc/install, /usr/sbin/install
2144 # SunOS /usr/etc/install
2145 # IRIX /sbin/install
2147 # AmigaOS /C/install, which installs bootblocks on floppy discs
2148 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2149 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2150 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2151 # OS/2's system install, which has a completely different semantic
2152 # ./install, which can be erroneously created by make from ./install.sh.
2153 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2154 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2155 if test -z "$INSTALL"; then
2156 if test "${ac_cv_path_install+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 test -z "$as_dir" && as_dir=.
2164 # Account for people who put trailing slashes in PATH elements.
2166 ./ | .// | /cC/* | \
2167 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2168 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2171 # OSF1 and SCO ODT 3.0 have their own names for install.
2172 # Don't use installbsd from OSF since it installs stuff as root
2174 for ac_prog in ginstall scoinst install; do
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2177 if test $ac_prog = install &&
2178 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2179 # AIX install. It has an incompatible calling convention.
2181 elif test $ac_prog = install &&
2182 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2183 # program-specific install script used by HP pwplus--don't use.
2186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2199 if test "${ac_cv_path_install+set}" = set; then
2200 INSTALL=$ac_cv_path_install
2202 # As a last resort, use the slow shell script. Don't cache a
2203 # value for INSTALL within a source directory, because that will
2204 # break other packages using the cache if that directory is
2205 # removed, or if the value is a relative name.
2206 INSTALL=$ac_install_sh
2209 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2210 echo "${ECHO_T}$INSTALL" >&6; }
2212 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2213 # It thinks the first close brace ends the variable substitution.
2214 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2216 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2220 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2221 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2224 echo timestamp > conftest.file
2225 # Do `set' in a subshell so we don't clobber the current shell's
2226 # arguments. Must try -L first in case configure is actually a
2227 # symlink; some systems play weird games with the mod time of symlinks
2228 # (eg FreeBSD returns the mod time of the symlink's containing
2231 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2232 if test "$*" = "X"; then
2234 set X `ls -t $srcdir/configure conftest.file`
2237 if test "$*" != "X $srcdir/configure conftest.file" \
2238 && test "$*" != "X conftest.file $srcdir/configure"; then
2240 # If neither matched, then we have a broken ls. This can happen
2241 # if, for instance, CONFIG_SHELL is bash and it inherits a
2242 # broken ls alias from the environment. This has actually
2243 # happened. Such a system could not be considered "sane".
2244 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2245 alias in your environment" >&5
2246 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2247 alias in your environment" >&2;}
2248 { (exit 1); exit 1; }; }
2251 test "$2" = conftest.file
2257 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2258 Check your system clock" >&5
2259 echo "$as_me: error: newly created file is older than distributed files!
2260 Check your system clock" >&2;}
2261 { (exit 1); exit 1; }; }
2263 { echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6; }
2265 test "$program_prefix" != NONE &&
2266 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2267 # Use a double $ so make ignores it.
2268 test "$program_suffix" != NONE &&
2269 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2270 # Double any \ or $. echo might interpret backslashes.
2271 # By default was `s,x,x', remove it if useless.
2272 cat <<\_ACEOF >conftest.sed
2273 s/[\\$]/&&/g;s/;s,x,x,$//
2275 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2278 # expand $ac_aux_dir to an absolute path
2279 am_aux_dir=`cd $ac_aux_dir && pwd`
2281 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2282 # Use eval to expand $SHELL
2283 if eval "$MISSING --run true"; then
2284 am_missing_run="$MISSING --run "
2287 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2288 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2291 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2292 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2293 if test -z "$MKDIR_P"; then
2294 if test "${ac_cv_path_mkdir+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2301 test -z "$as_dir" && as_dir=.
2302 for ac_prog in mkdir gmkdir; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2305 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2306 'mkdir (GNU coreutils) '* | \
2307 'mkdir (coreutils) '* | \
2308 'mkdir (fileutils) '4.1*)
2309 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2319 if test "${ac_cv_path_mkdir+set}" = set; then
2320 MKDIR_P="$ac_cv_path_mkdir -p"
2322 # As a last resort, use the slow shell script. Don't cache a
2323 # value for MKDIR_P within a source directory, because that will
2324 # break other packages using the cache if that directory is
2325 # removed, or if the value is a relative name.
2326 test -d ./--version && rmdir ./--version
2327 MKDIR_P="$ac_install_sh -d"
2330 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2331 echo "${ECHO_T}$MKDIR_P" >&6; }
2335 [\\/$]* | ?:[\\/]*) ;;
2336 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2339 for ac_prog in gawk mawk nawk awk
2341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_AWK+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$AWK"; then
2349 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_AWK="$ac_prog"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 if test -n "$AWK"; then
2370 { echo "$as_me:$LINENO: result: $AWK" >&5
2371 echo "${ECHO_T}$AWK" >&6; }
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2378 test -n "$AWK" && break
2381 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2382 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2383 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2384 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat >conftest.make <<\_ACEOF
2390 @echo '@@@%%%=$(MAKE)=@@@%%%'
2392 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2393 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2395 eval ac_cv_prog_make_${ac_make}_set=yes;;
2397 eval ac_cv_prog_make_${ac_make}_set=no;;
2401 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2402 { echo "$as_me:$LINENO: result: yes" >&5
2403 echo "${ECHO_T}yes" >&6; }
2406 { echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6; }
2408 SET_MAKE="MAKE=${MAKE-make}"
2411 rm -rf .tst 2>/dev/null
2412 mkdir .tst 2>/dev/null
2413 if test -d .tst; then
2418 rmdir .tst 2>/dev/null
2420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2421 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2422 # is not polluted with repeated "-I."
2423 am__isrc=' -I$(srcdir)'
2424 # test to see if srcdir already configured
2425 if test -f $srcdir/config.status; then
2426 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2427 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2428 { (exit 1); exit 1; }; }
2432 # test whether we have cygpath
2433 if test -z "$CYGPATH_W"; then
2434 if (cygpath --version) >/dev/null 2>/dev/null; then
2435 CYGPATH_W='cygpath -w'
2442 # Define the identity of the package.
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE "$PACKAGE"
2452 cat >>confdefs.h <<_ACEOF
2453 #define VERSION "$VERSION"
2456 # Some tools Automake needs.
2458 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2461 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2464 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2467 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2470 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2472 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'. However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_STRIP+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$STRIP"; then
2488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509 { echo "$as_me:$LINENO: result: $STRIP" >&5
2510 echo "${ECHO_T}$STRIP" >&6; }
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2518 if test -z "$ac_cv_prog_STRIP"; then
2520 # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$ac_ct_STRIP"; then
2528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_STRIP="strip"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2550 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2556 if test "x$ac_ct_STRIP" = x; then
2559 case $cross_compiling:$ac_tool_warned in
2561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet. If you think this
2563 configuration is useful to you, please write to autoconf@gnu.org." >&5
2564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet. If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2567 ac_tool_warned=yes ;;
2572 STRIP="$ac_cv_prog_STRIP"
2576 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2578 # We need awk for the "check" target. The system "awk" is bad on
2580 # Always define AMTAR for backward compatibility.
2582 AMTAR=${AMTAR-"${am_missing_run}tar"}
2584 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2592 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2593 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2594 # Check whether --enable-maintainer-mode was given.
2595 if test "${enable_maintainer_mode+set}" = set; then
2596 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2598 USE_MAINTAINER_MODE=no
2601 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2602 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2603 if test $USE_MAINTAINER_MODE = yes; then
2604 MAINTAINER_MODE_TRUE=
2605 MAINTAINER_MODE_FALSE='#'
2607 MAINTAINER_MODE_TRUE='#'
2608 MAINTAINER_MODE_FALSE=
2611 MAINT=$MAINTAINER_MODE_TRUE
2616 # Check whether --with-release was given.
2617 if test "${with_release+set}" = set; then
2618 withval=$with_release; RELEASE=$withval
2625 # Check whether --with-statedir was given.
2626 if test "${with_statedir+set}" = set; then
2627 withval=$with_statedir; statedir=$withval
2629 statedir=/var/lib/nfs
2634 # Check whether --with-statduser was given.
2635 if test "${with_statduser+set}" = set; then
2636 withval=$with_statduser; statduser=$withval
2638 if test "x$cross_compiling" = "xno"; then
2639 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2651 # Check whether --with-start-statd was given.
2652 if test "${with_start_statd+set}" = set; then
2653 withval=$with_start_statd; startstatd=$withval
2655 startstatd=/usr/sbin/start-statd
2661 cat >>confdefs.h <<_ACEOF
2662 #define START_STATD "$startstatd"
2665 # Check whether --enable-nfsv3 was given.
2666 if test "${enable_nfsv3+set}" = set; then
2667 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2672 if test "$enable_nfsv3" = yes; then
2674 cat >>confdefs.h <<\_ACEOF
2675 #define NFS3_SUPPORTED 1
2682 # Check whether --enable-nfsv4 was given.
2683 if test "${enable_nfsv4+set}" = set; then
2684 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2689 if test "$enable_nfsv4" = yes; then
2691 cat >>confdefs.h <<\_ACEOF
2692 #define NFS4_SUPPORTED 1
2702 if test "$enable_nfsv4" = "yes"; then
2704 CONFIG_NFSV4_FALSE='#'
2706 CONFIG_NFSV4_TRUE='#'
2710 # Check whether --enable-gss was given.
2711 if test "${enable_gss+set}" = set; then
2712 enableval=$enable_gss; enable_gss=$enableval
2717 if test "$enable_gss" = yes; then
2719 cat >>confdefs.h <<\_ACEOF
2720 #define GSS_SUPPORTED 1
2733 if test "$enable_gss" = "yes"; then
2735 CONFIG_GSS_FALSE='#'
2741 # Check whether --enable-kprefix was given.
2742 if test "${enable_kprefix+set}" = set; then
2743 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2749 # Check whether --enable-secure-statd was given.
2750 if test "${enable_secure_statd+set}" = set; then
2751 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2756 if test "$secure_statd" = yes; then
2758 cat >>confdefs.h <<\_ACEOF
2759 #define RESTRICTED_STATD 1
2765 # Check whether --with-rpcgen was given.
2766 if test "${with_rpcgen+set}" = set; then
2767 withval=$with_rpcgen; rpcgen_path=$withval
2773 if test "$rpcgen_path" == "yes"; then
2774 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2775 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2776 elif test "$rpcgen_path" != "internal"; then
2777 RPCGEN_PATH=$rpcgen_path
2780 if test "$RPCGEN_PATH" == ""; then
2782 CONFIG_RPCGEN_FALSE='#'
2784 CONFIG_RPCGEN_TRUE='#'
2785 CONFIG_RPCGEN_FALSE=
2788 # Check whether --enable-uuid was given.
2789 if test "${enable_uuid+set}" = set; then
2790 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2792 choose_blkid=default
2795 # Check whether --enable-mount was given.
2796 if test "${enable_mount+set}" = set; then
2797 enableval=$enable_mount; enable_mount=$enableval
2802 if test "$enable_mount" = "yes"; then
2804 CONFIG_MOUNT_FALSE='#'
2806 CONFIG_MOUNT_TRUE='#'
2811 # Check whether user wants TCP wrappers support
2812 DEPDIR="${am__leading_dot}deps"
2814 ac_config_commands="$ac_config_commands depfiles"
2817 am_make=${MAKE-make}
2818 cat > confinc << 'END'
2823 # If we don't find an include directive, just comment out the code.
2824 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2825 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2829 # First try GNU make style include.
2830 echo "include confinc" > confmf
2831 # We grep out `Entering directory' and `Leaving directory'
2832 # messages which can occur if `w' ends up in MAKEFLAGS.
2833 # In particular we don't look at `^make:' because GNU make might
2834 # be invoked under some other name (usually "gmake"), in which
2835 # case it prints its new name instead of `make'.
2836 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843 echo '.include "confinc"' > confmf
2844 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2845 am__include=.include
2852 { echo "$as_me:$LINENO: result: $_am_result" >&5
2853 echo "${ECHO_T}$_am_result" >&6; }
2854 rm -f confinc confmf
2856 # Check whether --enable-dependency-tracking was given.
2857 if test "${enable_dependency_tracking+set}" = set; then
2858 enableval=$enable_dependency_tracking;
2861 if test "x$enable_dependency_tracking" != xno; then
2862 am_depcomp="$ac_aux_dir/depcomp"
2865 if test "x$enable_dependency_tracking" != xno; then
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CC"; then
2909 { echo "$as_me:$LINENO: result: $CC" >&5
2910 echo "${ECHO_T}$CC" >&6; }
2912 { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2918 if test -z "$ac_cv_prog_CC"; then
2920 # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CC="gcc"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2950 echo "${ECHO_T}$ac_ct_CC" >&6; }
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2956 if test "x$ac_ct_CC" = x; then
2959 case $cross_compiling:$ac_tool_warned in
2961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2962 whose name does not start with the host triplet. If you think this
2963 configuration is useful to you, please write to autoconf@gnu.org." >&5
2964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2967 ac_tool_warned=yes ;;
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_CC+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994 ac_cv_prog_CC="${ac_tool_prefix}cc"
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 if test -n "$CC"; then
3006 { echo "$as_me:$LINENO: result: $CC" >&5
3007 echo "${ECHO_T}$CC" >&6; }
3009 { echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6; }
3016 if test -z "$CC"; then
3017 # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036 ac_prog_rejected=yes
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 if test $ac_prog_rejected = yes; then
3048 # We found a bogon in the path, so make sure we never use it.
3049 set dummy $ac_cv_prog_CC
3051 if test $# != 0; then
3052 # We chose a different compiler from the bogus one.
3053 # However, it has the same basename, so the bogon will be chosen
3054 # first if we set CC to just the basename; use the full file name.
3056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3062 if test -n "$CC"; then
3063 { echo "$as_me:$LINENO: result: $CC" >&5
3064 echo "${ECHO_T}$CC" >&6; }
3066 { echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6; }
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 for ac_prog in cl.exe
3076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$CC"; then
3105 { echo "$as_me:$LINENO: result: $CC" >&5
3106 echo "${ECHO_T}$CC" >&6; }
3108 { echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6; }
3113 test -n "$CC" && break
3116 if test -z "$CC"; then
3118 for ac_prog in cl.exe
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_ac_ct_CC="$ac_prog"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3150 echo "${ECHO_T}$ac_ct_CC" >&6; }
3152 { echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6; }
3157 test -n "$ac_ct_CC" && break
3160 if test "x$ac_ct_CC" = x; then
3163 case $cross_compiling:$ac_tool_warned in
3165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3166 whose name does not start with the host triplet. If you think this
3167 configuration is useful to you, please write to autoconf@gnu.org." >&5
3168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3169 whose name does not start with the host triplet. If you think this
3170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3171 ac_tool_warned=yes ;;
3180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3186 # Provide some information about the compiler.
3187 echo "$as_me:$LINENO: checking for C compiler version" >&5
3188 ac_compiler=`set X $ac_compile; echo $2`
3189 { (ac_try="$ac_compiler --version >&5"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compiler --version >&5") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }
3199 { (ac_try="$ac_compiler -v >&5"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compiler -v >&5") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }
3209 { (ac_try="$ac_compiler -V >&5"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compiler -V >&5") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3235 ac_clean_files_save=$ac_clean_files
3236 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3240 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244 # List of possible output files, starting from the most likely.
3245 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3246 # only as a last resort. b.out is created by i960 compilers.
3247 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3249 # The IRIX 6 linker writes into existing files which may not be
3250 # executable, retaining their permissions. Remove them first so a
3251 # subsequent execution test works.
3253 for ac_file in $ac_files
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3257 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262 if { (ac_try="$ac_link_default"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_link_default") 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; then
3272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3275 # so that the user can short-circuit this test for compilers unknown to
3277 for ac_file in $ac_files ''
3279 test -f "$ac_file" || continue
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3284 # We found the default executable, but exeext='' is most
3288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 # We set ac_cv_exeext here because the later test for it is not
3293 # safe: cross compilers may not add the suffix if given an `-o'
3294 # argument, so we may need to know it at that point already.
3295 # Even if this section looks crufty: it has the advantage of
3302 test "$ac_cv_exeext" = no && ac_cv_exeext=
3308 { echo "$as_me:$LINENO: result: $ac_file" >&5
3309 echo "${ECHO_T}$ac_file" >&6; }
3310 if test -z "$ac_file"; then
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&2;}
3318 { (exit 77); exit 77; }; }
3321 ac_exeext=$ac_cv_exeext
3323 # Check that the compiler produces executables we can run. If not, either
3324 # the compiler is broken, or we cross compile.
3325 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3326 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3328 # If not cross compiling, check that we can run a simple program.
3329 if test "$cross_compiling" != yes; then
3330 if { ac_try='./$ac_file'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3342 if test "$cross_compiling" = maybe; then
3345 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3346 If you meant to cross compile, use \`--host'.
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." >&2;}
3351 { (exit 1); exit 1; }; }
3355 { echo "$as_me:$LINENO: result: yes" >&5
3356 echo "${ECHO_T}yes" >&6; }
3358 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 # Check that the compiler produces executables we can run. If not, either
3361 # the compiler is broken, or we cross compile.
3362 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3363 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3364 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3365 echo "${ECHO_T}$cross_compiling" >&6; }
3367 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3368 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3369 if { (ac_try="$ac_link"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_link") 2>&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; then
3379 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3380 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3381 # work properly (i.e., refer to `conftest.exe'), while it won't with
3383 for ac_file in conftest.exe conftest conftest.*; do
3384 test -f "$ac_file" || continue
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3394 See \`config.log' for more details." >&5
3395 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details." >&2;}
3397 { (exit 1); exit 1; }; }
3400 rm -f conftest$ac_cv_exeext
3401 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3402 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3407 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3408 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3409 if test "${ac_cv_objext+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3427 rm -f conftest.o conftest.obj
3428 if { (ac_try="$ac_compile"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_compile") 2>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 for ac_file in conftest.o conftest.obj conftest.*; do
3439 test -f "$ac_file" || continue;
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3459 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3460 echo "${ECHO_T}$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3463 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3486 rm -f conftest.$ac_objext
3487 if { (ac_try="$ac_compile"
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_compile") 2>conftest.er1
3495 grep -v '^ *+' conftest.er1 >conftest.err
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && {
3500 test -z "$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3502 } && test -s conftest.$ac_objext; then
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3515 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3517 GCC=`test $ac_compiler_gnu = yes && echo yes`
3518 ac_test_CFLAGS=${CFLAGS+set}
3519 ac_save_CFLAGS=$CFLAGS
3520 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3522 if test "${ac_cv_prog_cc_g+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 ac_save_c_werror_flag=$ac_c_werror_flag
3526 ac_c_werror_flag=yes
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.$ac_objext; then
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_compile") 2>conftest.er1
3591 grep -v '^ *+' conftest.er1 >conftest.err
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest.$ac_objext; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3630 grep -v '^ *+' conftest.er1 >conftest.err
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_c_werror_flag=$ac_save_c_werror_flag
3655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3657 if test "$ac_test_CFLAGS" = set; then
3658 CFLAGS=$ac_save_CFLAGS
3659 elif test $ac_cv_prog_cc_g = yes; then
3660 if test "$GCC" = yes; then
3666 if test "$GCC" = yes; then
3672 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3673 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3674 if test "${ac_cv_prog_cc_c89+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_cv_prog_cc_c89=no
3679 cat >conftest.$ac_ext <<_ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3687 #include <sys/types.h>
3688 #include <sys/stat.h>
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3703 s = g (p, va_arg (v,int));
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3709 function prototypes and stuff, but not '\xHH' hex character constants.
3710 These don't provoke an error unfortunately, instead are silently treated
3711 as 'x'. The following induces an error, until -std is added to get
3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3713 array size at least. It's necessary to write '\x00'==0 to get something
3714 that's true only with -std. */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718 inside strings and character constants. */
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 CC="$ac_save_CC $ac_arg"
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ac_cv_prog_cc_c89=$ac_arg
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3765 rm -f core conftest.err conftest.$ac_objext
3766 test "x$ac_cv_prog_cc_c89" != "xno" && break
3768 rm -f conftest.$ac_ext
3773 case "x$ac_cv_prog_cc_c89" in
3775 { echo "$as_me:$LINENO: result: none needed" >&5
3776 echo "${ECHO_T}none needed" >&6; } ;;
3778 { echo "$as_me:$LINENO: result: unsupported" >&5
3779 echo "${ECHO_T}unsupported" >&6; } ;;
3781 CC="$CC $ac_cv_prog_cc_c89"
3782 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3783 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 depcc="$CC" am_compiler_list=
3795 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3796 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3797 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801 # We make a subdir and do the tests there. Otherwise we can end up
3802 # making bogus files that we don't know about and never remove. For
3803 # instance it was reported that on HP-UX the gcc test will end up
3804 # making a dummy file named `D' -- because `-MD' means `put the output
3807 # Copy depcomp to subdir because otherwise we won't find it if we're
3808 # using a relative directory.
3809 cp "$am_depcomp" conftest.dir
3811 # We will build objects and dependencies in a subdirectory because
3812 # it helps to detect inapplicable dependency modes. For instance
3813 # both Tru64's cc and ICC support -MD to output dependencies as a
3814 # side effect of compilation, but ICC will put the dependencies in
3815 # the current directory while Tru64 will put them in the object
3819 am_cv_CC_dependencies_compiler_type=none
3820 if test "$am_compiler_list" = ""; then
3821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823 for depmode in $am_compiler_list; do
3824 # Setup a source with many dependencies, because some compilers
3825 # like to wrap large dependency lists on column 80 (with \), and
3826 # we should not choose a depcomp mode which is confused by this.
3828 # We need to recreate these files for each test, as the compiler may
3829 # overwrite some of them when testing with obscure command lines.
3830 # This happens at least with the AIX C compiler.
3832 for i in 1 2 3 4 5 6; do
3833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3835 # Solaris 8's {/usr,}/bin/sh.
3836 touch sub/conftst$i.h
3838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3842 # after this tag, mechanisms are not by side-effect, so they'll
3843 # only be used when explicitly requested
3844 if test "x$enable_dependency_tracking" = xyes; then
3852 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3853 # mode. It turns out that the SunPro C++ compiler does not properly
3854 # handle `-M -o', and we need to detect this.
3855 if depmode=$depmode \
3856 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3859 >/dev/null 2>conftest.err &&
3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864 # icc doesn't choke on unknown options, it will just issue warnings
3865 # or remarks (even with -Werror). So we grep stderr for any message
3866 # that says an option was ignored or not supported.
3867 # When given -MP, icc 7.0 and 7.1 complain thusly:
3868 # icc: Command line warning: ignoring option '-M'; no argument required
3869 # The diagnosis changed in icc 8.0:
3870 # icc: Command line remark: option '-MP' not supported
3871 if (grep 'ignoring option' conftest.err ||
3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873 am_cv_CC_dependencies_compiler_type=$depmode
3882 am_cv_CC_dependencies_compiler_type=none
3886 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894 am__fastdepCC_FALSE='#'
3896 am__fastdepCC_TRUE='#'
3897 am__fastdepCC_FALSE=
3905 # Check whether --with-tcp-wrappers was given.
3906 if test "${with_tcp_wrappers+set}" = set; then
3907 withval=$with_tcp_wrappers; with_tcpw=$withval
3912 if test "x$with_tcpw" != "xno" ; then
3914 saved_LDFLAGS="$LDFLAGS"
3915 saved_CPPFLAGS="$CPPFLAGS"
3916 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3917 if test -d "${with_tcpw}/lib"; then
3918 if test -n "${need_dash_r}"; then
3919 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3921 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3924 if test -n "${need_dash_r}"; then
3925 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3927 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3930 if test -d "${with_tcpw}/include"; then
3931 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3933 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3937 LIBS="$LIBWRAP $LIBS"
3938 { echo "$as_me:$LINENO: checking for libwrap" >&5
3939 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3948 int deny_severity = 0, allow_severity = 0;
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (ac_try="$ac_link"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_link") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_c_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest$ac_exeext &&
3975 $as_test_x conftest$ac_exeext; then
3977 { echo "$as_me:$LINENO: result: yes" >&5
3978 echo "${ECHO_T}yes" >&6; }
3981 cat >>confdefs.h <<\_ACEOF
3986 cat >>confdefs.h <<\_ACEOF
3987 #define HAVE_LIBWRAP 1
3991 cat >>confdefs.h <<\_ACEOF
3992 #define HAVE_TCP_WRAPPER 1
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4002 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4003 echo "$as_me: error: *** libwrap missing" >&2;}
4004 { (exit 1); exit 1; }; }
4009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4010 conftest$ac_exeext conftest.$ac_ext
4018 # Arrange for large-file support
4019 # Check whether --enable-largefile was given.
4020 if test "${enable_largefile+set}" = set; then
4021 enableval=$enable_largefile;
4024 if test "$enable_largefile" != no; then
4026 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4027 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4028 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 ac_cv_sys_largefile_CC=no
4032 if test "$GCC" != yes; then
4035 # IRIX 6.2 and later do not support large files by default,
4036 # so use the C compiler's -n32 option if that helps.
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #include <sys/types.h>
4044 /* Check that off_t can represent 2**63 - 1 correctly.
4045 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4046 since some C++ compilers masquerading as C compilers
4047 incorrectly reject 9223372036854775807. */
4048 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4050 && LARGE_OFF_T % 2147483647 == 1)
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_compile") 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } && {
4074 test -z "$ac_c_werror_flag" ||
4075 test ! -s conftest.err
4076 } && test -s conftest.$ac_objext; then
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4085 rm -f core conftest.err conftest.$ac_objext
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_compile") 2>conftest.er1
4096 grep -v '^ *+' conftest.er1 >conftest.err
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } && {
4101 test -z "$ac_c_werror_flag" ||
4102 test ! -s conftest.err
4103 } && test -s conftest.$ac_objext; then
4104 ac_cv_sys_largefile_CC=' -n32'; break
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4112 rm -f core conftest.err conftest.$ac_objext
4116 rm -f conftest.$ac_ext
4119 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4120 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4121 if test "$ac_cv_sys_largefile_CC" != no; then
4122 CC=$CC$ac_cv_sys_largefile_CC
4125 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4126 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4127 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 /* Check that off_t can represent 2**63 - 1 correctly.
4139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4140 since some C++ compilers masquerading as C compilers
4141 incorrectly reject 9223372036854775807. */
4142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4144 && LARGE_OFF_T % 2147483647 == 1)
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && {
4168 test -z "$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 } && test -s conftest.$ac_objext; then
4171 ac_cv_sys_file_offset_bits=no; break
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #define _FILE_OFFSET_BITS 64
4187 #include <sys/types.h>
4188 /* Check that off_t can represent 2**63 - 1 correctly.
4189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4190 since some C++ compilers masquerading as C compilers
4191 incorrectly reject 9223372036854775807. */
4192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4194 && LARGE_OFF_T % 2147483647 == 1)
4204 rm -f conftest.$ac_objext
4205 if { (ac_try="$ac_compile"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_compile") 2>conftest.er1
4213 grep -v '^ *+' conftest.er1 >conftest.err
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest.$ac_objext; then
4221 ac_cv_sys_file_offset_bits=64; break
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_cv_sys_file_offset_bits=unknown
4234 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4235 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4236 case $ac_cv_sys_file_offset_bits in #(
4239 cat >>confdefs.h <<_ACEOF
4240 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4245 if test $ac_cv_sys_file_offset_bits = unknown; then
4246 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4247 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4248 if test "${ac_cv_sys_large_files+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <sys/types.h>
4259 /* Check that off_t can represent 2**63 - 1 correctly.
4260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4261 since some C++ compilers masquerading as C compilers
4262 incorrectly reject 9223372036854775807. */
4263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4265 && LARGE_OFF_T % 2147483647 == 1)
4275 rm -f conftest.$ac_objext
4276 if { (ac_try="$ac_compile"
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_compile") 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4291 } && test -s conftest.$ac_objext; then
4292 ac_cv_sys_large_files=no; break
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 #define _LARGE_FILES 1
4308 #include <sys/types.h>
4309 /* Check that off_t can represent 2**63 - 1 correctly.
4310 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4311 since some C++ compilers masquerading as C compilers
4312 incorrectly reject 9223372036854775807. */
4313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4314 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4315 && LARGE_OFF_T % 2147483647 == 1)
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4334 grep -v '^ *+' conftest.er1 >conftest.err
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest.$ac_objext; then
4342 ac_cv_sys_large_files=1; break
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_cv_sys_large_files=unknown
4355 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4356 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4357 case $ac_cv_sys_large_files in #(
4360 cat >>confdefs.h <<_ACEOF
4361 #define _LARGE_FILES $ac_cv_sys_large_files
4371 ac_config_headers="$ac_config_headers support/include/config.h"
4374 # Checks for programs.
4376 ac_cpp='$CXXCPP $CPPFLAGS'
4377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4380 if test -z "$CXX"; then
4381 if test -n "$CCC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_CXX+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$CXX"; then
4395 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 if test -n "$CXX"; then
4416 { echo "$as_me:$LINENO: result: $CXX" >&5
4417 echo "${ECHO_T}$CXX" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 test -n "$CXX" && break
4427 if test -z "$CXX"; then
4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4435 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 if test -n "$ac_ct_CXX"; then
4439 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_prog_ac_ct_CXX="$ac_prog"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459 if test -n "$ac_ct_CXX"; then
4460 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4461 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4463 { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4468 test -n "$ac_ct_CXX" && break
4471 if test "x$ac_ct_CXX" = x; then
4474 case $cross_compiling:$ac_tool_warned in
4476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4477 whose name does not start with the host triplet. If you think this
4478 configuration is useful to you, please write to autoconf@gnu.org." >&5
4479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4480 whose name does not start with the host triplet. If you think this
4481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4482 ac_tool_warned=yes ;;
4490 # Provide some information about the compiler.
4491 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4492 ac_compiler=`set X $ac_compile; echo $2`
4493 { (ac_try="$ac_compiler --version >&5"
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_compiler --version >&5") 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }
4503 { (ac_try="$ac_compiler -v >&5"
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_compiler -v >&5") 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }
4513 { (ac_try="$ac_compiler -V >&5"
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_compiler -V >&5") 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }
4524 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4525 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4526 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4547 rm -f conftest.$ac_objext
4548 if { (ac_try="$ac_compile"
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_compile") 2>conftest.er1
4556 grep -v '^ *+' conftest.er1 >conftest.err
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && {
4561 test -z "$ac_cxx_werror_flag" ||
4562 test ! -s conftest.err
4563 } && test -s conftest.$ac_objext; then
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4576 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4577 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4578 GXX=`test $ac_compiler_gnu = yes && echo yes`
4579 ac_test_CXXFLAGS=${CXXFLAGS+set}
4580 ac_save_CXXFLAGS=$CXXFLAGS
4581 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4582 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4583 if test "${ac_cv_prog_cxx_g+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4587 ac_cxx_werror_flag=yes
4590 cat >conftest.$ac_ext <<_ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_cxx_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 ac_cv_prog_cxx_g=yes
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_compile") 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && {
4657 test -z "$ac_cxx_werror_flag" ||
4658 test ! -s conftest.err
4659 } && test -s conftest.$ac_objext; then
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4682 rm -f conftest.$ac_objext
4683 if { (ac_try="$ac_compile"
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_compile") 2>conftest.er1
4691 grep -v '^ *+' conftest.er1 >conftest.err
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && {
4696 test -z "$ac_cxx_werror_flag" ||
4697 test ! -s conftest.err
4698 } && test -s conftest.$ac_objext; then
4699 ac_cv_prog_cxx_g=yes
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4717 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4718 if test "$ac_test_CXXFLAGS" = set; then
4719 CXXFLAGS=$ac_save_CXXFLAGS
4720 elif test $ac_cv_prog_cxx_g = yes; then
4721 if test "$GXX" = yes; then
4727 if test "$GXX" = yes; then
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 depcc="$CXX" am_compiler_list=
4741 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4742 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4743 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4747 # We make a subdir and do the tests there. Otherwise we can end up
4748 # making bogus files that we don't know about and never remove. For
4749 # instance it was reported that on HP-UX the gcc test will end up
4750 # making a dummy file named `D' -- because `-MD' means `put the output
4753 # Copy depcomp to subdir because otherwise we won't find it if we're
4754 # using a relative directory.
4755 cp "$am_depcomp" conftest.dir
4757 # We will build objects and dependencies in a subdirectory because
4758 # it helps to detect inapplicable dependency modes. For instance
4759 # both Tru64's cc and ICC support -MD to output dependencies as a
4760 # side effect of compilation, but ICC will put the dependencies in
4761 # the current directory while Tru64 will put them in the object
4765 am_cv_CXX_dependencies_compiler_type=none
4766 if test "$am_compiler_list" = ""; then
4767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4769 for depmode in $am_compiler_list; do
4770 # Setup a source with many dependencies, because some compilers
4771 # like to wrap large dependency lists on column 80 (with \), and
4772 # we should not choose a depcomp mode which is confused by this.
4774 # We need to recreate these files for each test, as the compiler may
4775 # overwrite some of them when testing with obscure command lines.
4776 # This happens at least with the AIX C compiler.
4778 for i in 1 2 3 4 5 6; do
4779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4780 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4781 # Solaris 8's {/usr,}/bin/sh.
4782 touch sub/conftst$i.h
4784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4788 # after this tag, mechanisms are not by side-effect, so they'll
4789 # only be used when explicitly requested
4790 if test "x$enable_dependency_tracking" = xyes; then
4798 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4799 # mode. It turns out that the SunPro C++ compiler does not properly
4800 # handle `-M -o', and we need to detect this.
4801 if depmode=$depmode \
4802 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4805 >/dev/null 2>conftest.err &&
4806 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4808 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4810 # icc doesn't choke on unknown options, it will just issue warnings
4811 # or remarks (even with -Werror). So we grep stderr for any message
4812 # that says an option was ignored or not supported.
4813 # When given -MP, icc 7.0 and 7.1 complain thusly:
4814 # icc: Command line warning: ignoring option '-M'; no argument required
4815 # The diagnosis changed in icc 8.0:
4816 # icc: Command line remark: option '-MP' not supported
4817 if (grep 'ignoring option' conftest.err ||
4818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4819 am_cv_CXX_dependencies_compiler_type=$depmode
4828 am_cv_CXX_dependencies_compiler_type=none
4832 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4833 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4837 test "x$enable_dependency_tracking" != xno \
4838 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4839 am__fastdepCXX_TRUE=
4840 am__fastdepCXX_FALSE='#'
4842 am__fastdepCXX_TRUE='#'
4843 am__fastdepCXX_FALSE=
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 if test -n "$ac_tool_prefix"; then
4853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_CC+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$CC"; then
4861 ac_cv_prog_CC="$CC" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 if test -n "$CC"; then
4882 { echo "$as_me:$LINENO: result: $CC" >&5
4883 echo "${ECHO_T}$CC" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4891 if test -z "$ac_cv_prog_CC"; then
4893 # Extract the first word of "gcc", so it can be a program name with args.
4894 set dummy gcc; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 if test -n "$ac_ct_CC"; then
4901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_ac_ct_CC="gcc"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4923 echo "${ECHO_T}$ac_ct_CC" >&6; }
4925 { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4929 if test "x$ac_ct_CC" = x; then
4932 case $cross_compiling:$ac_tool_warned in
4934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4935 whose name does not start with the host triplet. If you think this
4936 configuration is useful to you, please write to autoconf@gnu.org." >&5
4937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4938 whose name does not start with the host triplet. If you think this
4939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4940 ac_tool_warned=yes ;;
4948 if test -z "$CC"; then
4949 if test -n "$ac_tool_prefix"; then
4950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4951 set dummy ${ac_tool_prefix}cc; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_prog_CC+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 if test -n "$CC"; then
4958 ac_cv_prog_CC="$CC" # Let the user override the test.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_CC="${ac_tool_prefix}cc"
4968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 if test -n "$CC"; then
4979 { echo "$as_me:$LINENO: result: $CC" >&5
4980 echo "${ECHO_T}$CC" >&6; }
4982 { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4989 if test -z "$CC"; then
4990 # Extract the first word of "cc", so it can be a program name with args.
4991 set dummy cc; ac_word=$2
4992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994 if test "${ac_cv_prog_CC+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 if test -n "$CC"; then
4998 ac_cv_prog_CC="$CC" # Let the user override the test.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5009 ac_prog_rejected=yes
5013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 if test $ac_prog_rejected = yes; then
5021 # We found a bogon in the path, so make sure we never use it.
5022 set dummy $ac_cv_prog_CC
5024 if test $# != 0; then
5025 # We chose a different compiler from the bogus one.
5026 # However, it has the same basename, so the bogon will be chosen
5027 # first if we set CC to just the basename; use the full file name.
5029 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5035 if test -n "$CC"; then
5036 { echo "$as_me:$LINENO: result: $CC" >&5
5037 echo "${ECHO_T}$CC" >&6; }
5039 { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5045 if test -z "$CC"; then
5046 if test -n "$ac_tool_prefix"; then
5047 for ac_prog in cl.exe
5049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_CC+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -n "$CC"; then
5057 ac_cv_prog_CC="$CC" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 if test -n "$CC"; then
5078 { echo "$as_me:$LINENO: result: $CC" >&5
5079 echo "${ECHO_T}$CC" >&6; }
5081 { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5086 test -n "$CC" && break
5089 if test -z "$CC"; then
5091 for ac_prog in cl.exe
5093 # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy $ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 if test -n "$ac_ct_CC"; then
5101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_ac_ct_CC="$ac_prog"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121 if test -n "$ac_ct_CC"; then
5122 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123 echo "${ECHO_T}$ac_ct_CC" >&6; }
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5130 test -n "$ac_ct_CC" && break
5133 if test "x$ac_ct_CC" = x; then
5136 case $cross_compiling:$ac_tool_warned in
5138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5139 whose name does not start with the host triplet. If you think this
5140 configuration is useful to you, please write to autoconf@gnu.org." >&5
5141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5142 whose name does not start with the host triplet. If you think this
5143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5144 ac_tool_warned=yes ;;
5153 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: no acceptable C compiler found in \$PATH
5156 See \`config.log' for more details." >&2;}
5157 { (exit 1); exit 1; }; }
5159 # Provide some information about the compiler.
5160 echo "$as_me:$LINENO: checking for C compiler version" >&5
5161 ac_compiler=`set X $ac_compile; echo $2`
5162 { (ac_try="$ac_compiler --version >&5"
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168 (eval "$ac_compiler --version >&5") 2>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }
5172 { (ac_try="$ac_compiler -v >&5"
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_compiler -v >&5") 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }
5182 { (ac_try="$ac_compiler -V >&5"
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_compiler -V >&5") 2>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }
5193 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5216 rm -f conftest.$ac_objext
5217 if { (ac_try="$ac_compile"
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_compile") 2>conftest.er1
5225 grep -v '^ *+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && {
5230 test -z "$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 } && test -s conftest.$ac_objext; then
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5245 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5246 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5247 GCC=`test $ac_compiler_gnu = yes && echo yes`
5248 ac_test_CFLAGS=${CFLAGS+set}
5249 ac_save_CFLAGS=$CFLAGS
5250 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5251 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5252 if test "${ac_cv_prog_cc_g+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_save_c_werror_flag=$ac_c_werror_flag
5256 ac_c_werror_flag=yes
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_compile") 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } && {
5288 test -z "$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest.$ac_objext; then
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5312 rm -f conftest.$ac_objext
5313 if { (ac_try="$ac_compile"
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compile") 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && {
5326 test -z "$ac_c_werror_flag" ||
5327 test ! -s conftest.err
5328 } && test -s conftest.$ac_objext; then
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_c_werror_flag=$ac_save_c_werror_flag
5336 cat >conftest.$ac_ext <<_ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_c_werror_flag=$ac_save_c_werror_flag
5385 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5387 if test "$ac_test_CFLAGS" = set; then
5388 CFLAGS=$ac_save_CFLAGS
5389 elif test $ac_cv_prog_cc_g = yes; then
5390 if test "$GCC" = yes; then
5396 if test "$GCC" = yes; then
5402 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5403 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_cc_c89+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 ac_cv_prog_cc_c89=no
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5417 #include <sys/types.h>
5418 #include <sys/stat.h>
5419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5420 struct buf { int x; };
5421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5422 static char *e (p, i)
5428 static char *f (char * (*g) (char **, int), char **p, ...)
5433 s = g (p, va_arg (v,int));
5438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5439 function prototypes and stuff, but not '\xHH' hex character constants.
5440 These don't provoke an error unfortunately, instead are silently treated
5441 as 'x'. The following induces an error, until -std is added to get
5442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5443 array size at least. It's necessary to write '\x00'==0 to get something
5444 that's true only with -std. */
5445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5448 inside strings and character constants. */
5450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5452 int test (int i, double x);
5453 struct s1 {int (*f) (int a);};
5454 struct s2 {int (*f) (double a);};
5455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5469 CC="$ac_save_CC $ac_arg"
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 ac_cv_prog_cc_c89=$ac_arg
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5495 rm -f core conftest.err conftest.$ac_objext
5496 test "x$ac_cv_prog_cc_c89" != "xno" && break
5498 rm -f conftest.$ac_ext
5503 case "x$ac_cv_prog_cc_c89" in
5505 { echo "$as_me:$LINENO: result: none needed" >&5
5506 echo "${ECHO_T}none needed" >&6; } ;;
5508 { echo "$as_me:$LINENO: result: unsupported" >&5
5509 echo "${ECHO_T}unsupported" >&6; } ;;
5511 CC="$CC $ac_cv_prog_cc_c89"
5512 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5513 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523 depcc="$CC" am_compiler_list=
5525 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5526 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531 # We make a subdir and do the tests there. Otherwise we can end up
5532 # making bogus files that we don't know about and never remove. For
5533 # instance it was reported that on HP-UX the gcc test will end up
5534 # making a dummy file named `D' -- because `-MD' means `put the output
5537 # Copy depcomp to subdir because otherwise we won't find it if we're
5538 # using a relative directory.
5539 cp "$am_depcomp" conftest.dir
5541 # We will build objects and dependencies in a subdirectory because
5542 # it helps to detect inapplicable dependency modes. For instance
5543 # both Tru64's cc and ICC support -MD to output dependencies as a
5544 # side effect of compilation, but ICC will put the dependencies in
5545 # the current directory while Tru64 will put them in the object
5549 am_cv_CC_dependencies_compiler_type=none
5550 if test "$am_compiler_list" = ""; then
5551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5553 for depmode in $am_compiler_list; do
5554 # Setup a source with many dependencies, because some compilers
5555 # like to wrap large dependency lists on column 80 (with \), and
5556 # we should not choose a depcomp mode which is confused by this.
5558 # We need to recreate these files for each test, as the compiler may
5559 # overwrite some of them when testing with obscure command lines.
5560 # This happens at least with the AIX C compiler.
5562 for i in 1 2 3 4 5 6; do
5563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5565 # Solaris 8's {/usr,}/bin/sh.
5566 touch sub/conftst$i.h
5568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5572 # after this tag, mechanisms are not by side-effect, so they'll
5573 # only be used when explicitly requested
5574 if test "x$enable_dependency_tracking" = xyes; then
5582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5583 # mode. It turns out that the SunPro C++ compiler does not properly
5584 # handle `-M -o', and we need to detect this.
5585 if depmode=$depmode \
5586 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5588 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5589 >/dev/null 2>conftest.err &&
5590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5592 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5594 # icc doesn't choke on unknown options, it will just issue warnings
5595 # or remarks (even with -Werror). So we grep stderr for any message
5596 # that says an option was ignored or not supported.
5597 # When given -MP, icc 7.0 and 7.1 complain thusly:
5598 # icc: Command line warning: ignoring option '-M'; no argument required
5599 # The diagnosis changed in icc 8.0:
5600 # icc: Command line remark: option '-MP' not supported
5601 if (grep 'ignoring option' conftest.err ||
5602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5603 am_cv_CC_dependencies_compiler_type=$depmode
5612 am_cv_CC_dependencies_compiler_type=none
5616 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5617 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5621 test "x$enable_dependency_tracking" != xno \
5622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5624 am__fastdepCC_FALSE='#'
5626 am__fastdepCC_TRUE='#'
5627 am__fastdepCC_FALSE=
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5637 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5638 # On Suns, sometimes $CPP names a directory.
5639 if test -n "$CPP" && test -d "$CPP"; then
5642 if test -z "$CPP"; then
5643 if test "${ac_cv_prog_CPP+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 # Double quotes because CPP needs to be expanded
5647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5650 for ac_c_preproc_warn_flag in '' yes
5652 # Use a header file that comes with gcc, so configuring glibc
5653 # with a fresh cross-compiler works.
5654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655 # <limits.h> exists even on freestanding compilers.
5656 # On the NeXT, cc -E runs the code through the compiler's parser,
5657 # not just through cpp. "Syntax error" is here to catch this case.
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 # include <limits.h>
5667 # include <assert.h>
5671 if { (ac_try="$ac_cpp conftest.$ac_ext"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } >/dev/null && {
5684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 # Broken: fails on valid input.
5696 rm -f conftest.err conftest.$ac_ext
5698 # OK, works on sane cases. Now check whether nonexistent headers
5699 # can be detected and how.
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #include <ac_nonexistent.h>
5708 if { (ac_try="$ac_cpp conftest.$ac_ext"
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } >/dev/null && {
5721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5724 # Broken: success on invalid input.
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 # Passes both tests.
5735 rm -f conftest.err conftest.$ac_ext
5738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5739 rm -f conftest.err conftest.$ac_ext
5740 if $ac_preproc_ok; then
5752 { echo "$as_me:$LINENO: result: $CPP" >&5
5753 echo "${ECHO_T}$CPP" >&6; }
5755 for ac_c_preproc_warn_flag in '' yes
5757 # Use a header file that comes with gcc, so configuring glibc
5758 # with a fresh cross-compiler works.
5759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 # <limits.h> exists even on freestanding compilers.
5761 # On the NeXT, cc -E runs the code through the compiler's parser,
5762 # not just through cpp. "Syntax error" is here to catch this case.
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 # include <limits.h>
5772 # include <assert.h>
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } >/dev/null && {
5789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 # Broken: fails on valid input.
5801 rm -f conftest.err conftest.$ac_ext
5803 # OK, works on sane cases. Now check whether nonexistent headers
5804 # can be detected and how.
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <ac_nonexistent.h>
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5829 # Broken: success on invalid input.
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 # Passes both tests.
5840 rm -f conftest.err conftest.$ac_ext
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5848 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." >&5
5850 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5851 See \`config.log' for more details." >&2;}
5852 { (exit 1); exit 1; }; }
5856 ac_cpp='$CPP $CPPFLAGS'
5857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861 # Find a good install program. We prefer a C program (faster),
5862 # so one script is as good as another. But avoid the broken or
5863 # incompatible versions:
5864 # SysV /etc/install, /usr/sbin/install
5865 # SunOS /usr/etc/install
5866 # IRIX /sbin/install
5868 # AmigaOS /C/install, which installs bootblocks on floppy discs
5869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5872 # OS/2's system install, which has a completely different semantic
5873 # ./install, which can be erroneously created by make from ./install.sh.
5874 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5875 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5876 if test -z "$INSTALL"; then
5877 if test "${ac_cv_path_install+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 test -z "$as_dir" && as_dir=.
5885 # Account for people who put trailing slashes in PATH elements.
5887 ./ | .// | /cC/* | \
5888 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5889 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5892 # OSF1 and SCO ODT 3.0 have their own names for install.
5893 # Don't use installbsd from OSF since it installs stuff as root
5895 for ac_prog in ginstall scoinst install; do
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5898 if test $ac_prog = install &&
5899 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5900 # AIX install. It has an incompatible calling convention.
5902 elif test $ac_prog = install &&
5903 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5904 # program-specific install script used by HP pwplus--don't use.
5907 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5920 if test "${ac_cv_path_install+set}" = set; then
5921 INSTALL=$ac_cv_path_install
5923 # As a last resort, use the slow shell script. Don't cache a
5924 # value for INSTALL within a source directory, because that will
5925 # break other packages using the cache if that directory is
5926 # removed, or if the value is a relative name.
5927 INSTALL=$ac_install_sh
5930 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5931 echo "${ECHO_T}$INSTALL" >&6; }
5933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5934 # It thinks the first close brace ends the variable substitution.
5935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5941 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5942 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5944 if test "$LN_S" = "ln -s"; then
5945 { echo "$as_me:$LINENO: result: yes" >&5
5946 echo "${ECHO_T}yes" >&6; }
5948 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5949 echo "${ECHO_T}no, using $LN_S" >&6; }
5952 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5954 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5955 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 cat >conftest.make <<\_ACEOF
5961 @echo '@@@%%%=$(MAKE)=@@@%%%'
5963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5964 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5966 eval ac_cv_prog_make_${ac_make}_set=yes;;
5968 eval ac_cv_prog_make_${ac_make}_set=no;;
5972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5973 { echo "$as_me:$LINENO: result: yes" >&5
5974 echo "${ECHO_T}yes" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979 SET_MAKE="MAKE=${MAKE-make}"
5982 # Check whether --enable-shared was given.
5983 if test "${enable_shared+set}" = set; then
5984 enableval=$enable_shared; p=${PACKAGE-default}
5986 yes) enable_shared=yes ;;
5987 no) enable_shared=no ;;
5990 # Look at the argument we got. We use all the common list separators.
5991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5992 for pkg in $enableval; do
5994 if test "X$pkg" = "X$p"; then
6006 # Check whether --enable-static was given.
6007 if test "${enable_static+set}" = set; then
6008 enableval=$enable_static; p=${PACKAGE-default}
6010 yes) enable_static=yes ;;
6011 no) enable_static=no ;;
6014 # Look at the argument we got. We use all the common list separators.
6015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6016 for pkg in $enableval; do
6018 if test "X$pkg" = "X$p"; then
6030 # Check whether --enable-fast-install was given.
6031 if test "${enable_fast_install+set}" = set; then
6032 enableval=$enable_fast_install; p=${PACKAGE-default}
6034 yes) enable_fast_install=yes ;;
6035 no) enable_fast_install=no ;;
6037 enable_fast_install=no
6038 # Look at the argument we got. We use all the common list separators.
6039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6040 for pkg in $enableval; do
6042 if test "X$pkg" = "X$p"; then
6043 enable_fast_install=yes
6050 enable_fast_install=yes
6054 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6055 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6056 if test "${lt_cv_path_SED+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 # Loop through the user's path and test for sed and gsed.
6060 # Then use that list of sed's as ones to test for truncation.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for lt_ac_prog in sed gsed; do
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6069 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6077 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6078 # along with /bin/sed that truncates output.
6079 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6080 test ! -f $lt_ac_sed && continue
6081 cat /dev/null > conftest.in
6083 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6084 # Check for GNU sed and select it if it is found.
6085 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6086 lt_cv_path_SED=$lt_ac_sed
6090 cat conftest.in conftest.in >conftest.tmp
6091 mv conftest.tmp conftest.in
6092 cp conftest.in conftest.nl
6094 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6095 cmp -s conftest.out conftest.nl || break
6096 # 10000 chars as input seems more than enough
6097 test $lt_ac_count -gt 10 && break
6098 lt_ac_count=`expr $lt_ac_count + 1`
6099 if test $lt_ac_count -gt $lt_ac_max; then
6100 lt_ac_max=$lt_ac_count
6101 lt_cv_path_SED=$lt_ac_sed
6110 { echo "$as_me:$LINENO: result: $SED" >&5
6111 echo "${ECHO_T}$SED" >&6; }
6113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_GREP+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 # Extract the first word of "grep ggrep" to use in msg output
6119 if test -z "$GREP"; then
6120 set dummy grep ggrep; ac_prog_name=$2
6121 if test "${ac_cv_path_GREP+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 ac_path_GREP_found=false
6125 # Loop through the user's path and test for each of PROGNAME-LIST
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6130 test -z "$as_dir" && as_dir=.
6131 for ac_prog in grep ggrep; do
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6135 # Check for GNU ac_path_GREP and select it if it is found.
6136 # Check for GNU $ac_path_GREP
6137 case `"$ac_path_GREP" --version 2>&1` in
6139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6142 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6145 cat "conftest.in" "conftest.in" >"conftest.tmp"
6146 mv "conftest.tmp" "conftest.in"
6147 cp "conftest.in" "conftest.nl"
6148 echo 'GREP' >> "conftest.nl"
6149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6151 ac_count=`expr $ac_count + 1`
6152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6153 # Best one so far, save it but keep looking for a better one
6154 ac_cv_path_GREP="$ac_path_GREP"
6155 ac_path_GREP_max=$ac_count
6157 # 10*(2^10) chars as input seems more than enough
6158 test $ac_count -gt 10 && break
6160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 $ac_path_GREP_found && break 3
6174 GREP="$ac_cv_path_GREP"
6175 if test -z "$GREP"; then
6176 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6178 { (exit 1); exit 1; }; }
6182 ac_cv_path_GREP=$GREP
6187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6189 GREP="$ac_cv_path_GREP"
6192 { echo "$as_me:$LINENO: checking for egrep" >&5
6193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6194 if test "${ac_cv_path_EGREP+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6198 then ac_cv_path_EGREP="$GREP -E"
6200 # Extract the first word of "egrep" to use in msg output
6201 if test -z "$EGREP"; then
6202 set dummy egrep; ac_prog_name=$2
6203 if test "${ac_cv_path_EGREP+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 ac_path_EGREP_found=false
6207 # Loop through the user's path and test for each of PROGNAME-LIST
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6212 test -z "$as_dir" && as_dir=.
6213 for ac_prog in egrep; do
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6217 # Check for GNU ac_path_EGREP and select it if it is found.
6218 # Check for GNU $ac_path_EGREP
6219 case `"$ac_path_EGREP" --version 2>&1` in
6221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6227 cat "conftest.in" "conftest.in" >"conftest.tmp"
6228 mv "conftest.tmp" "conftest.in"
6229 cp "conftest.in" "conftest.nl"
6230 echo 'EGREP' >> "conftest.nl"
6231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233 ac_count=`expr $ac_count + 1`
6234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6235 # Best one so far, save it but keep looking for a better one
6236 ac_cv_path_EGREP="$ac_path_EGREP"
6237 ac_path_EGREP_max=$ac_count
6239 # 10*(2^10) chars as input seems more than enough
6240 test $ac_count -gt 10 && break
6242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6246 $ac_path_EGREP_found && break 3
6256 EGREP="$ac_cv_path_EGREP"
6257 if test -z "$EGREP"; then
6258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6260 { (exit 1); exit 1; }; }
6264 ac_cv_path_EGREP=$EGREP
6270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6272 EGREP="$ac_cv_path_EGREP"
6276 # Check whether --with-gnu-ld was given.
6277 if test "${with_gnu_ld+set}" = set; then
6278 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6284 if test "$GCC" = yes; then
6285 # Check if gcc -print-prog-name=ld gives a path.
6286 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6287 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6290 # gcc leaves a trailing carriage return which upsets mingw
6291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6296 # Accept absolute paths.
6298 re_direlt='/[^/][^/]*/\.\./'
6299 # Canonicalize the pathname of ld
6300 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6301 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6302 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6304 test -z "$LD" && LD="$ac_prog"
6307 # If it fails, then pretend we aren't using GCC.
6311 # If it is relative, then search for the first ld in PATH.
6315 elif test "$with_gnu_ld" = yes; then
6316 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6317 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6319 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6320 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6322 if test "${lt_cv_path_LD+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 if test -z "$LD"; then
6326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6327 for ac_dir in $PATH; do
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331 lt_cv_path_LD="$ac_dir/$ac_prog"
6332 # Check to see if the program is GNU ld. I'd rather use --version,
6333 # but apparently some variants of GNU ld only accept -v.
6334 # Break only if it was the GNU/non-GNU ld that we prefer.
6335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6336 *GNU* | *'with BFD'*)
6337 test "$with_gnu_ld" != no && break
6340 test "$with_gnu_ld" != yes && break
6347 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6352 if test -n "$LD"; then
6353 { echo "$as_me:$LINENO: result: $LD" >&5
6354 echo "${ECHO_T}$LD" >&6; }
6356 { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6361 { (exit 1); exit 1; }; }
6362 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6364 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6368 case `$LD -v 2>&1 </dev/null` in
6369 *GNU* | *'with BFD'*)
6370 lt_cv_prog_gnu_ld=yes
6373 lt_cv_prog_gnu_ld=no
6377 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6378 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6379 with_gnu_ld=$lt_cv_prog_gnu_ld
6382 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6383 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6384 if test "${lt_cv_ld_reload_flag+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 lt_cv_ld_reload_flag='-r'
6389 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6390 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6391 reload_flag=$lt_cv_ld_reload_flag
6392 case $reload_flag in
6394 *) reload_flag=" $reload_flag" ;;
6396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6399 if test "$GCC" = yes; then
6400 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6407 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6408 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6409 if test "${lt_cv_path_NM+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 if test -n "$NM"; then
6413 # Let the user override the test.
6416 lt_nm_to_check="${ac_tool_prefix}nm"
6417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6418 lt_nm_to_check="$lt_nm_to_check nm"
6420 for lt_tmp_nm in $lt_nm_to_check; do
6421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6424 test -z "$ac_dir" && ac_dir=.
6425 tmp_nm="$ac_dir/$lt_tmp_nm"
6426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6427 # Check to see if the nm accepts a BSD-compat flag.
6428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6429 # nm: unknown option "B" ignored
6430 # Tru64's nm complains that /dev/null is an invalid object file
6431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6432 */dev/null* | *'Invalid file or object type'*)
6433 lt_cv_path_NM="$tmp_nm -B"
6437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6439 lt_cv_path_NM="$tmp_nm -p"
6443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6444 continue # so that we can try to find one that supports BSD flags
6453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6456 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6460 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6461 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6462 if test "${lt_cv_deplibs_check_method+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 lt_cv_file_magic_cmd='$MAGIC_CMD'
6466 lt_cv_file_magic_test_file=
6467 lt_cv_deplibs_check_method='unknown'
6468 # Need to set the preceding variable on all platforms that support
6469 # interlibrary dependencies.
6470 # 'none' -- dependencies not supported.
6471 # `unknown' -- same as none, but documents that we really don't know.
6472 # 'pass_all' -- all dependencies passed with no checks.
6473 # 'test_compile' -- check by making test program.
6474 # 'file_magic [[regex]]' -- check by looking for files in library path
6475 # which responds to the $file_magic_cmd with a given extended regex.
6476 # If you have `file' or equivalent on your system and you're not sure
6477 # whether `pass_all' will *always* work, you probably want this one.
6481 lt_cv_deplibs_check_method=pass_all
6485 lt_cv_deplibs_check_method=pass_all
6489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6490 lt_cv_file_magic_cmd='/usr/bin/file -L'
6491 lt_cv_file_magic_test_file=/shlib/libc.so
6495 # func_win32_libid is a shell function defined in ltmain.sh
6496 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6497 lt_cv_file_magic_cmd='func_win32_libid'
6501 # Base MSYS/MinGW do not provide the 'file' command needed by
6502 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6503 # unless we find 'file', for example because we are cross-compiling.
6504 if ( file / ) >/dev/null 2>&1; then
6505 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6506 lt_cv_file_magic_cmd='func_win32_libid'
6508 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6509 lt_cv_file_magic_cmd='$OBJDUMP -f'
6513 darwin* | rhapsody*)
6514 lt_cv_deplibs_check_method=pass_all
6517 freebsd* | dragonfly*)
6518 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6521 # Not sure whether the presence of OpenBSD here was a mistake.
6522 # Let's accept both of them until this is cleared up.
6523 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6524 lt_cv_file_magic_cmd=/usr/bin/file
6525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6529 lt_cv_deplibs_check_method=pass_all
6534 lt_cv_deplibs_check_method=pass_all
6537 hpux10.20* | hpux11*)
6538 lt_cv_file_magic_cmd=/usr/bin/file
6541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6545 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]'
6546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6556 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6560 irix5* | irix6* | nonstopux*)
6562 *-32|*"-32 ") libmagic=32-bit;;
6563 *-n32|*"-n32 ") libmagic=N32;;
6564 *-64|*"-64 ") libmagic=64-bit;;
6565 *) libmagic=never-match;;
6567 lt_cv_deplibs_check_method=pass_all
6570 # This must be Linux ELF.
6571 linux* | k*bsd*-gnu)
6572 lt_cv_deplibs_check_method=pass_all
6576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6585 lt_cv_file_magic_cmd=/usr/bin/file
6586 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6590 lt_cv_deplibs_check_method=unknown
6594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6601 osf3* | osf4* | osf5*)
6602 lt_cv_deplibs_check_method=pass_all
6606 lt_cv_deplibs_check_method=pass_all
6610 lt_cv_deplibs_check_method=pass_all
6614 case $host_vendor in
6616 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]'
6617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6620 lt_cv_deplibs_check_method=pass_all
6623 lt_cv_file_magic_cmd='/bin/file'
6624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6627 lt_cv_file_magic_cmd='/bin/file'
6628 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6629 lt_cv_file_magic_test_file=/lib/libc.so
6632 lt_cv_deplibs_check_method=pass_all
6635 lt_cv_deplibs_check_method=pass_all
6640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6641 lt_cv_deplibs_check_method=pass_all
6646 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6647 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6648 file_magic_cmd=$lt_cv_file_magic_cmd
6649 deplibs_check_method=$lt_cv_deplibs_check_method
6650 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6655 # If no C compiler was specified, use CC.
6658 # If no C compiler flags were specified, use CFLAGS.
6659 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6661 # Allow CC to be a program name with arguments.
6664 # Check whether --enable-libtool-lock was given.
6665 if test "${enable_libtool_lock+set}" = set; then
6666 enableval=$enable_libtool_lock;
6669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6671 # Some flags need to be propagated to the compiler or linker for good
6675 # Find out which ABI we are using.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; then
6682 case `/usr/bin/file conftest.$ac_objext` in
6694 # Find out which ABI we are using.
6695 echo '#line 6695 "configure"' > conftest.$ac_ext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697 (eval $ac_compile) 2>&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; then
6701 if test "$lt_cv_prog_gnu_ld" = yes; then
6702 case `/usr/bin/file conftest.$ac_objext` in
6704 LD="${LD-ld} -melf32bsmip"
6707 LD="${LD-ld} -melf32bmipn32"
6710 LD="${LD-ld} -melf64bmip"
6714 case `/usr/bin/file conftest.$ac_objext` in
6730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6731 s390*-*linux*|sparc*-*linux*)
6732 # Find out which ABI we are using.
6733 echo 'int i;' > conftest.$ac_ext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; then
6739 case `/usr/bin/file conftest.o` in
6742 x86_64-*kfreebsd*-gnu)
6743 LD="${LD-ld} -m elf_i386_fbsd"
6746 LD="${LD-ld} -m elf_i386"
6748 ppc64-*linux*|powerpc64-*linux*)
6749 LD="${LD-ld} -m elf32ppclinux"
6752 LD="${LD-ld} -m elf_s390"
6755 LD="${LD-ld} -m elf32_sparc"
6762 x86_64-*kfreebsd*-gnu)
6763 LD="${LD-ld} -m elf_x86_64_fbsd"
6766 LD="${LD-ld} -m elf_x86_64"
6768 ppc*-*linux*|powerpc*-*linux*)
6769 LD="${LD-ld} -m elf64ppc"
6772 LD="${LD-ld} -m elf64_s390"
6775 LD="${LD-ld} -m elf64_sparc"
6785 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6786 SAVE_CFLAGS="$CFLAGS"
6787 CFLAGS="$CFLAGS -belf"
6788 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6789 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6790 if test "${lt_cv_cc_needs_belf+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 ac_cpp='$CPP $CPPFLAGS'
6795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6814 rm -f conftest.$ac_objext conftest$ac_exeext
6815 if { (ac_try="$ac_link"
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_link") 2>conftest.er1
6823 grep -v '^ *+' conftest.er1 >conftest.err
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest$ac_exeext &&
6831 $as_test_x conftest$ac_exeext; then
6832 lt_cv_cc_needs_belf=yes
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 lt_cv_cc_needs_belf=no
6840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6841 conftest$ac_exeext conftest.$ac_ext
6843 ac_cpp='$CPP $CPPFLAGS'
6844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6850 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6851 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6852 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6853 CFLAGS="$SAVE_CFLAGS"
6857 # Find out which ABI we are using.
6858 echo 'int i;' > conftest.$ac_ext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; then
6864 case `/usr/bin/file conftest.o` in
6866 case $lt_cv_prog_gnu_ld in
6867 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6868 *) LD="${LD-ld} -64" ;;
6879 need_locks="$enable_libtool_lock"
6883 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6884 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6885 if test "${ac_cv_header_stdc+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_compile") 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && {
6921 test -z "$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6923 } && test -s conftest.$ac_objext; then
6924 ac_cv_header_stdc=yes
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ac_cv_header_stdc=no
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 if test $ac_cv_header_stdc = yes; then
6935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946 $EGREP "memchr" >/dev/null 2>&1; then
6949 ac_cv_header_stdc=no
6955 if test $ac_cv_header_stdc = yes; then
6956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967 $EGREP "free" >/dev/null 2>&1; then
6970 ac_cv_header_stdc=no
6976 if test $ac_cv_header_stdc = yes; then
6977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6978 if test "$cross_compiling" = yes; then
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6989 #if ((' ' & 0x0FF) == 0x020)
6990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6993 # define ISLOWER(c) \
6994 (('a' <= (c) && (c) <= 'i') \
6995 || ('j' <= (c) && (c) <= 'r') \
6996 || ('s' <= (c) && (c) <= 'z'))
6997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7005 for (i = 0; i < 256; i++)
7006 if (XOR (islower (i), ISLOWER (i))
7007 || toupper (i) != TOUPPER (i))
7012 rm -f conftest$ac_exeext
7013 if { (ac_try="$ac_link"
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_link") 2>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7023 { (case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_try") 2>&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7034 echo "$as_me: program exited with status $ac_status" >&5
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cv_header_stdc=no
7041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7047 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7048 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7049 if test $ac_cv_header_stdc = yes; then
7051 cat >>confdefs.h <<\_ACEOF
7052 #define STDC_HEADERS 1
7057 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7067 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7068 inttypes.h stdint.h unistd.h
7070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 cat >conftest.$ac_ext <<_ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 $ac_includes_default
7084 #include <$ac_header>
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_compile") 2>conftest.er1
7095 grep -v '^ *+' conftest.er1 >conftest.err
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest.$ac_objext; then
7103 eval "$as_ac_Header=yes"
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 eval "$as_ac_Header=no"
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 ac_res=`eval echo '${'$as_ac_Header'}'`
7114 { echo "$as_me:$LINENO: result: $ac_res" >&5
7115 echo "${ECHO_T}$ac_res" >&6; }
7116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7117 cat >>confdefs.h <<_ACEOF
7118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7127 for ac_header in dlfcn.h
7129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 ac_res=`eval echo '${'$as_ac_Header'}'`
7137 { echo "$as_me:$LINENO: result: $ac_res" >&5
7138 echo "${ECHO_T}$ac_res" >&6; }
7140 # Is the header compilable?
7141 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7150 #include <$ac_header>
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.$ac_objext; then
7169 ac_header_compiler=yes
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_header_compiler=no
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179 echo "${ECHO_T}$ac_header_compiler" >&6; }
7181 # Is the header present?
7182 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <$ac_header>
7192 if { (ac_try="$ac_cpp conftest.$ac_ext"
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } >/dev/null && {
7205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7208 ac_header_preproc=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_header_preproc=no
7216 rm -f conftest.err conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7218 echo "${ECHO_T}$ac_header_preproc" >&6; }
7220 # So? What about this header?
7221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7227 ac_header_preproc=yes
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7243 ## ---------------------------------------- ##
7244 ## Report this to linux-nfs@vger.kernel.org ##
7245 ## ---------------------------------------- ##
7247 ) | sed "s/^/$as_me: WARNING: /" >&2
7250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 eval "$as_ac_Header=\$ac_header_preproc"
7257 ac_res=`eval echo '${'$as_ac_Header'}'`
7258 { echo "$as_me:$LINENO: result: $ac_res" >&5
7259 echo "${ECHO_T}$ac_res" >&6; }
7262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7263 cat >>confdefs.h <<_ACEOF
7264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7273 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7274 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7275 (test "X$CXX" != "Xg++"))) ; then
7277 ac_cpp='$CXXCPP $CPPFLAGS'
7278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7281 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7282 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7283 if test -z "$CXXCPP"; then
7284 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 # Double quotes because CXXCPP needs to be expanded
7288 for CXXCPP in "$CXX -E" "/lib/cpp"
7291 for ac_cxx_preproc_warn_flag in '' yes
7293 # Use a header file that comes with gcc, so configuring glibc
7294 # with a fresh cross-compiler works.
7295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296 # <limits.h> exists even on freestanding compilers.
7297 # On the NeXT, cc -E runs the code through the compiler's parser,
7298 # not just through cpp. "Syntax error" is here to catch this case.
7299 cat >conftest.$ac_ext <<_ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7306 # include <limits.h>
7308 # include <assert.h>
7312 if { (ac_try="$ac_cpp conftest.$ac_ext"
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } >/dev/null && {
7325 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7326 test ! -s conftest.err
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 # Broken: fails on valid input.
7337 rm -f conftest.err conftest.$ac_ext
7339 # OK, works on sane cases. Now check whether nonexistent headers
7340 # can be detected and how.
7341 cat >conftest.$ac_ext <<_ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <ac_nonexistent.h>
7349 if { (ac_try="$ac_cpp conftest.$ac_ext"
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } >/dev/null && {
7362 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7363 test ! -s conftest.err
7365 # Broken: success on invalid input.
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 # Passes both tests.
7376 rm -f conftest.err conftest.$ac_ext
7379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7380 rm -f conftest.err conftest.$ac_ext
7381 if $ac_preproc_ok; then
7386 ac_cv_prog_CXXCPP=$CXXCPP
7389 CXXCPP=$ac_cv_prog_CXXCPP
7391 ac_cv_prog_CXXCPP=$CXXCPP
7393 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7394 echo "${ECHO_T}$CXXCPP" >&6; }
7396 for ac_cxx_preproc_warn_flag in '' yes
7398 # Use a header file that comes with gcc, so configuring glibc
7399 # with a fresh cross-compiler works.
7400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7401 # <limits.h> exists even on freestanding compilers.
7402 # On the NeXT, cc -E runs the code through the compiler's parser,
7403 # not just through cpp. "Syntax error" is here to catch this case.
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7411 # include <limits.h>
7413 # include <assert.h>
7417 if { (ac_try="$ac_cpp conftest.$ac_ext"
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7425 grep -v '^ *+' conftest.er1 >conftest.err
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } >/dev/null && {
7430 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7431 test ! -s conftest.err
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 # Broken: fails on valid input.
7442 rm -f conftest.err conftest.$ac_ext
7444 # OK, works on sane cases. Now check whether nonexistent headers
7445 # can be detected and how.
7446 cat >conftest.$ac_ext <<_ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #include <ac_nonexistent.h>
7454 if { (ac_try="$ac_cpp conftest.$ac_ext"
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7462 grep -v '^ *+' conftest.er1 >conftest.err
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } >/dev/null && {
7467 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7468 test ! -s conftest.err
7470 # Broken: success on invalid input.
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 # Passes both tests.
7481 rm -f conftest.err conftest.$ac_ext
7484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7485 rm -f conftest.err conftest.$ac_ext
7486 if $ac_preproc_ok; then
7489 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7490 See \`config.log' for more details." >&5
7491 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7492 See \`config.log' for more details." >&2;}
7493 { (exit 1); exit 1; }; }
7497 ac_cpp='$CXXCPP $CPPFLAGS'
7498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7506 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7507 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7509 if test -n "$ac_tool_prefix"; then
7510 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
7512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_prog_F77+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 if test -n "$F77"; then
7520 ac_cv_prog_F77="$F77" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 if test -n "$F77"; then
7541 { echo "$as_me:$LINENO: result: $F77" >&5
7542 echo "${ECHO_T}$F77" >&6; }
7544 { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7549 test -n "$F77" && break
7552 if test -z "$F77"; then
7554 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
7556 # Extract the first word of "$ac_prog", so it can be a program name with args.
7557 set dummy $ac_prog; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 if test -n "$ac_ct_F77"; then
7564 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_prog_ac_ct_F77="$ac_prog"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7584 if test -n "$ac_ct_F77"; then
7585 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7586 echo "${ECHO_T}$ac_ct_F77" >&6; }
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7593 test -n "$ac_ct_F77" && break
7596 if test "x$ac_ct_F77" = x; then
7599 case $cross_compiling:$ac_tool_warned in
7601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7602 whose name does not start with the host triplet. If you think this
7603 configuration is useful to you, please write to autoconf@gnu.org." >&5
7604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7605 whose name does not start with the host triplet. If you think this
7606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7607 ac_tool_warned=yes ;;
7614 # Provide some information about the compiler.
7615 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7616 ac_compiler=`set X $ac_compile; echo $2`
7617 { (ac_try="$ac_compiler --version >&5"
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_compiler --version >&5") 2>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }
7627 { (ac_try="$ac_compiler -v >&5"
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_compiler -v >&5") 2>&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }
7637 { (ac_try="$ac_compiler -V >&5"
7639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643 (eval "$ac_compiler -V >&5") 2>&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }
7649 # If we don't use `.F' as extension, the preprocessor is not run on the
7650 # input file. (Note that this only needs to work for GNU compilers.)
7653 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7654 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7655 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 cat >conftest.$ac_ext <<_ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7675 grep -v '^ *+' conftest.er1 >conftest.err
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_f77_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7695 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7696 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7698 ac_test_FFLAGS=${FFLAGS+set}
7699 ac_save_FFLAGS=$FFLAGS
7701 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7702 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7703 if test "${ac_cv_prog_f77_g+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_compile") 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_f77_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest.$ac_objext; then
7729 ac_cv_prog_f77_g=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7741 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7742 if test "$ac_test_FFLAGS" = set; then
7743 FFLAGS=$ac_save_FFLAGS
7744 elif test $ac_cv_prog_f77_g = yes; then
7745 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7751 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7758 G77=`test $ac_compiler_gnu = yes && echo yes`
7760 ac_cpp='$CPP $CPPFLAGS'
7761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7769 # find the maximum length of command line arguments
7770 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7771 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7772 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 # On DJGPP, this test can blow up pretty badly due to problems in libc
7781 # (any single argument exceeding 2000 bytes causes a buffer overrun
7782 # during glob expansion). Even if it were fixed, the result of this
7783 # check would be larger than it should be.
7784 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7788 # Under GNU Hurd, this test is not required because there is
7789 # no limit to the length of command line arguments.
7790 # Libtool will interpret -1 as no limit whatsoever
7791 lt_cv_sys_max_cmd_len=-1;
7795 # On Win9x/ME, this test blows up -- it succeeds, but takes
7796 # about 5 minutes as the teststring grows exponentially.
7797 # Worse, since 9x/ME are not pre-emptively multitasking,
7798 # you end up with a "frozen" computer, even though with patience
7799 # the test eventually succeeds (with a max line length of 256k).
7800 # Instead, let's just punt: use the minimum linelength reported by
7801 # all of the supported platforms: 8192 (on NT/2K/XP).
7802 lt_cv_sys_max_cmd_len=8192;
7806 # On AmigaOS with pdksh, this test takes hours, literally.
7807 # So we just punt and use a minimum line length of 8192.
7808 lt_cv_sys_max_cmd_len=8192;
7811 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7812 # This has been around since 386BSD, at least. Likely further.
7813 if test -x /sbin/sysctl; then
7814 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7815 elif test -x /usr/sbin/sysctl; then
7816 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7818 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7820 # And add a safety zone
7821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7826 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7827 lt_cv_sys_max_cmd_len=196608
7831 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7832 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7833 # nice to cause kernel panics so lets avoid the loop below.
7834 # First set a reasonable default.
7835 lt_cv_sys_max_cmd_len=16384
7837 if test -x /sbin/sysconfig; then
7838 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7839 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7844 lt_cv_sys_max_cmd_len=102400
7846 sysv5* | sco5v6* | sysv4.2uw2*)
7847 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7848 if test -n "$kargmax"; then
7849 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7851 lt_cv_sys_max_cmd_len=32768
7855 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7856 if test -n "$lt_cv_sys_max_cmd_len"; then
7857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7860 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7861 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7862 = "XX$teststring") >/dev/null 2>&1 &&
7863 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7864 lt_cv_sys_max_cmd_len=$new_result &&
7865 test $i != 17 # 1/2 MB should be enough
7868 teststring=$teststring$teststring
7871 # Add a significant safety factor because C++ compilers can tack on massive
7872 # amounts of additional arguments before passing them to the linker.
7873 # It appears as though 1/2 is a usable value.
7874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7881 if test -n $lt_cv_sys_max_cmd_len ; then
7882 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7883 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7885 { echo "$as_me:$LINENO: result: none" >&5
7886 echo "${ECHO_T}none" >&6; }
7893 # Check for command to grab the raw symbol name followed by C symbol from nm.
7894 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7895 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7896 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 # These are sane defaults that work on at least a few old systems.
7901 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7903 # Character class describing NM global symbol codes.
7904 symcode='[BCDEGRST]'
7906 # Regexp to match symbols that can be accessed directly from C.
7907 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7909 # Transform an extracted symbol line into a proper C declaration
7910 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7912 # Transform an extracted symbol line into symbol name and symbol address
7913 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'"
7915 # Define system-specific variables.
7920 cygwin* | mingw* | pw32*)
7921 symcode='[ABCDGISTW]'
7923 hpux*) # Its linker distinguishes data from code symbols
7924 if test "$host_cpu" = ia64; then
7925 symcode='[ABCDEGRST]'
7927 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7928 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'"
7930 linux* | k*bsd*-gnu)
7931 if test "$host_cpu" = ia64; then
7932 symcode='[ABCDGIRSTW]'
7933 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7934 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'"
7938 symcode='[BCDEGRST]'
7941 symcode='[BCDEGQRST]'
7952 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7960 # Handle CRLF in mingw tool chain
7964 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7968 # If we're using GNU nm, then use its standard symbol codes.
7969 case `$NM -V 2>&1` in
7970 *GNU* | *'with BFD'*)
7971 symcode='[ABCDGIRSTW]' ;;
7974 # Try without a prefix undercore, then with it.
7975 for ac_symprfx in "" "_"; do
7977 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7978 symxfrm="\\1 $ac_symprfx\\2 \\2"
7980 # Write the raw and C identifiers.
7981 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7983 # Check to see that the pipe works correctly.
7987 cat > conftest.$ac_ext <<EOF
7992 void nm_test_func(){}
7996 int main(){nm_test_var='a';nm_test_func();return(0);}
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; then
8004 # Now try to grab the symbols.
8006 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8007 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && test -s "$nlist"; then
8011 # Try sorting and uniquifying the output.
8012 if sort "$nlist" | uniq > "$nlist"T; then
8013 mv -f "$nlist"T "$nlist"
8018 # Make sure that we snagged all the symbols we need.
8019 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8020 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8021 cat <<EOF > conftest.$ac_ext
8027 # Now generate the symbol file.
8028 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8030 cat <<EOF >> conftest.$ac_ext
8031 #if defined (__STDC__) && __STDC__
8032 # define lt_ptr_t void *
8034 # define lt_ptr_t char *
8038 /* The mapping between symbol names and symbols. */
8043 lt_preloaded_symbols[] =
8046 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8047 cat <<\EOF >> conftest.$ac_ext
8055 # Now try linking the two files.
8056 mv conftest.$ac_objext conftstm.$ac_objext
8057 lt_save_LIBS="$LIBS"
8058 lt_save_CFLAGS="$CFLAGS"
8059 LIBS="conftstm.$ac_objext"
8060 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8068 LIBS="$lt_save_LIBS"
8069 CFLAGS="$lt_save_CFLAGS"
8071 echo "cannot find nm_test_func in $nlist" >&5
8074 echo "cannot find nm_test_var in $nlist" >&5
8077 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8080 echo "$progname: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8083 rm -f conftest* conftst*
8085 # Do not use the global_symbol_pipe unless it works.
8086 if test "$pipe_works" = yes; then
8089 lt_cv_sys_global_symbol_pipe=
8095 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8096 lt_cv_sys_global_symbol_to_cdecl=
8098 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8099 { echo "$as_me:$LINENO: result: failed" >&5
8100 echo "${ECHO_T}failed" >&6; }
8102 { echo "$as_me:$LINENO: result: ok" >&5
8103 echo "${ECHO_T}ok" >&6; }
8106 { echo "$as_me:$LINENO: checking for objdir" >&5
8107 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8108 if test "${lt_cv_objdir+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 rm -f .libs 2>/dev/null
8112 mkdir .libs 2>/dev/null
8113 if test -d .libs; then
8116 # MS-DOS does not allow filenames that begin with a dot.
8119 rmdir .libs 2>/dev/null
8121 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8122 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8123 objdir=$lt_cv_objdir
8131 # AIX sometimes has problems with the GCC collect2 program. For some
8132 # reason, if we set the COLLECT_NAMES environment variable, the problems
8133 # vanish in a puff of smoke.
8134 if test "X${COLLECT_NAMES+set}" != Xset; then
8136 export COLLECT_NAMES
8141 # Sed substitution that helps us do robust quoting. It backslashifies
8142 # metacharacters that are still active within double-quoted strings.
8143 Xsed='sed -e 1s/^X//'
8144 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8146 # Same as above, but do not quote variable references.
8147 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8149 # Sed substitution to delay expansion of an escaped shell variable in a
8150 # double_quote_subst'ed string.
8151 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8153 # Sed substitution to avoid accidental globbing in evaled expressions
8154 no_glob_subst='s/\*/\\\*/g'
8160 default_ofile=libtool
8161 can_build_shared=yes
8163 # All known linkers require a `.a' archive for static linking (except MSVC,
8164 # which needs '.lib').
8166 ltmain="$ac_aux_dir/ltmain.sh"
8167 ofile="$default_ofile"
8168 with_gnu_ld="$lt_cv_prog_gnu_ld"
8170 if test -n "$ac_tool_prefix"; then
8171 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8172 set dummy ${ac_tool_prefix}ar; ac_word=$2
8173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8175 if test "${ac_cv_prog_AR+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 if test -n "$AR"; then
8179 ac_cv_prog_AR="$AR" # Let the user override the test.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_AR="${ac_tool_prefix}ar"
8189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 if test -n "$AR"; then
8200 { echo "$as_me:$LINENO: result: $AR" >&5
8201 echo "${ECHO_T}$AR" >&6; }
8203 { echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6; }
8209 if test -z "$ac_cv_prog_AR"; then
8211 # Extract the first word of "ar", so it can be a program name with args.
8212 set dummy ar; ac_word=$2
8213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 if test -n "$ac_ct_AR"; then
8219 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_ac_ct_AR="ar"
8229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8239 if test -n "$ac_ct_AR"; then
8240 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8241 echo "${ECHO_T}$ac_ct_AR" >&6; }
8243 { echo "$as_me:$LINENO: result: no" >&5
8244 echo "${ECHO_T}no" >&6; }
8247 if test "x$ac_ct_AR" = x; then
8250 case $cross_compiling:$ac_tool_warned in
8252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8253 whose name does not start with the host triplet. If you think this
8254 configuration is useful to you, please write to autoconf@gnu.org." >&5
8255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8256 whose name does not start with the host triplet. If you think this
8257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8258 ac_tool_warned=yes ;;
8266 if test -n "$ac_tool_prefix"; then
8267 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8268 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8271 if test "${ac_cv_prog_RANLIB+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 if test -n "$RANLIB"; then
8275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 RANLIB=$ac_cv_prog_RANLIB
8295 if test -n "$RANLIB"; then
8296 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8297 echo "${ECHO_T}$RANLIB" >&6; }
8299 { echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6; }
8305 if test -z "$ac_cv_prog_RANLIB"; then
8306 ac_ct_RANLIB=$RANLIB
8307 # Extract the first word of "ranlib", so it can be a program name with args.
8308 set dummy ranlib; ac_word=$2
8309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8311 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 if test -n "$ac_ct_RANLIB"; then
8315 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_prog_ac_ct_RANLIB="ranlib"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8335 if test -n "$ac_ct_RANLIB"; then
8336 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8337 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8339 { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8343 if test "x$ac_ct_RANLIB" = x; then
8346 case $cross_compiling:$ac_tool_warned in
8348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8349 whose name does not start with the host triplet. If you think this
8350 configuration is useful to you, please write to autoconf@gnu.org." >&5
8351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8352 whose name does not start with the host triplet. If you think this
8353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8354 ac_tool_warned=yes ;;
8356 RANLIB=$ac_ct_RANLIB
8359 RANLIB="$ac_cv_prog_RANLIB"
8362 if test -n "$ac_tool_prefix"; then
8363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8364 set dummy ${ac_tool_prefix}strip; ac_word=$2
8365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8367 if test "${ac_cv_prog_STRIP+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 if test -n "$STRIP"; then
8371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 STRIP=$ac_cv_prog_STRIP
8391 if test -n "$STRIP"; then
8392 { echo "$as_me:$LINENO: result: $STRIP" >&5
8393 echo "${ECHO_T}$STRIP" >&6; }
8395 { echo "$as_me:$LINENO: result: no" >&5
8396 echo "${ECHO_T}no" >&6; }
8401 if test -z "$ac_cv_prog_STRIP"; then
8403 # Extract the first word of "strip", so it can be a program name with args.
8404 set dummy strip; ac_word=$2
8405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 if test -n "$ac_ct_STRIP"; then
8411 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420 ac_cv_prog_ac_ct_STRIP="strip"
8421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8431 if test -n "$ac_ct_STRIP"; then
8432 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8433 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8435 { echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6; }
8439 if test "x$ac_ct_STRIP" = x; then
8442 case $cross_compiling:$ac_tool_warned in
8444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8445 whose name does not start with the host triplet. If you think this
8446 configuration is useful to you, please write to autoconf@gnu.org." >&5
8447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8448 whose name does not start with the host triplet. If you think this
8449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8450 ac_tool_warned=yes ;;
8455 STRIP="$ac_cv_prog_STRIP"
8460 old_CFLAGS="$CFLAGS"
8462 # Set sane defaults for various variables
8463 test -z "$AR" && AR=ar
8464 test -z "$AR_FLAGS" && AR_FLAGS=cru
8465 test -z "$AS" && AS=as
8466 test -z "$CC" && CC=cc
8467 test -z "$LTCC" && LTCC=$CC
8468 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8469 test -z "$DLLTOOL" && DLLTOOL=dlltool
8470 test -z "$LD" && LD=ld
8471 test -z "$LN_S" && LN_S="ln -s"
8472 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8473 test -z "$NM" && NM=nm
8474 test -z "$SED" && SED=sed
8475 test -z "$OBJDUMP" && OBJDUMP=objdump
8476 test -z "$RANLIB" && RANLIB=:
8477 test -z "$STRIP" && STRIP=:
8478 test -z "$ac_objext" && ac_objext=o
8480 # Determine commands to create old-style static archives.
8481 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8482 old_postinstall_cmds='chmod 644 $oldlib'
8483 old_postuninstall_cmds=
8485 if test -n "$RANLIB"; then
8488 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8491 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8494 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8497 for cc_temp in $compiler""; do
8499 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8500 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8505 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8508 # Only perform the check for file, if the check method requires it
8509 case $deplibs_check_method in
8511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8512 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8513 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8514 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8522 lt_save_MAGIC_CMD="$MAGIC_CMD"
8523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8525 for ac_dir in $ac_dummy; do
8527 test -z "$ac_dir" && ac_dir=.
8528 if test -f $ac_dir/${ac_tool_prefix}file; then
8529 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8530 if test -n "$file_magic_test_file"; then
8531 case $deplibs_check_method in
8533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536 $EGREP "$file_magic_regex" > /dev/null; then
8541 *** Warning: the command libtool uses to detect shared libraries,
8542 *** $file_magic_cmd, produces output that libtool cannot recognize.
8543 *** The result is that libtool may fail to recognize shared libraries
8544 *** as such. This will affect the creation of libtool libraries that
8545 *** depend on shared libraries, but programs linked with such libtool
8546 *** libraries will work regardless of this problem. Nevertheless, you
8547 *** may want to report the problem to your system manager and/or to
8548 *** bug-libtool@gnu.org
8558 MAGIC_CMD="$lt_save_MAGIC_CMD"
8563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564 if test -n "$MAGIC_CMD"; then
8565 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8566 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8568 { echo "$as_me:$LINENO: result: no" >&5
8569 echo "${ECHO_T}no" >&6; }
8572 if test -z "$lt_cv_path_MAGIC_CMD"; then
8573 if test -n "$ac_tool_prefix"; then
8574 { echo "$as_me:$LINENO: checking for file" >&5
8575 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8576 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8584 lt_save_MAGIC_CMD="$MAGIC_CMD"
8585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8586 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8587 for ac_dir in $ac_dummy; do
8589 test -z "$ac_dir" && ac_dir=.
8590 if test -f $ac_dir/file; then
8591 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8592 if test -n "$file_magic_test_file"; then
8593 case $deplibs_check_method in
8595 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8597 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8598 $EGREP "$file_magic_regex" > /dev/null; then
8603 *** Warning: the command libtool uses to detect shared libraries,
8604 *** $file_magic_cmd, produces output that libtool cannot recognize.
8605 *** The result is that libtool may fail to recognize shared libraries
8606 *** as such. This will affect the creation of libtool libraries that
8607 *** depend on shared libraries, but programs linked with such libtool
8608 *** libraries will work regardless of this problem. Nevertheless, you
8609 *** may want to report the problem to your system manager and/or to
8610 *** bug-libtool@gnu.org
8620 MAGIC_CMD="$lt_save_MAGIC_CMD"
8625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8626 if test -n "$MAGIC_CMD"; then
8627 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8628 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8630 { echo "$as_me:$LINENO: result: no" >&5
8631 echo "${ECHO_T}no" >&6; }
8646 # Check whether --enable-libtool-lock was given.
8647 if test "${enable_libtool_lock+set}" = set; then
8648 enableval=$enable_libtool_lock;
8651 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8654 # Check whether --with-pic was given.
8655 if test "${with_pic+set}" = set; then
8656 withval=$with_pic; pic_mode="$withval"
8661 test -z "$pic_mode" && pic_mode=default
8663 # Use C for the default configuration in the libtool script
8667 ac_cpp='$CPP $CPPFLAGS'
8668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8673 # Source file extension for C test sources.
8676 # Object file extension for compiled C test sources.
8680 # Code to be used in simple compile tests
8681 lt_simple_compile_test_code="int some_variable = 0;"
8683 # Code to be used in simple link tests
8684 lt_simple_link_test_code='int main(){return(0);}'
8687 # If no C compiler was specified, use CC.
8690 # If no C compiler flags were specified, use CFLAGS.
8691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8693 # Allow CC to be a program name with arguments.
8697 # save warnings/boilerplate of simple test code
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8700 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8701 _lt_compiler_boilerplate=`cat conftest.err`
8704 ac_outfile=conftest.$ac_objext
8705 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8706 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8707 _lt_linker_boilerplate=`cat conftest.err`
8712 lt_prog_compiler_no_builtin_flag=
8714 if test "$GCC" = yes; then
8715 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8718 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8719 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8720 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 lt_cv_prog_compiler_rtti_exceptions=no
8724 ac_outfile=conftest.$ac_objext
8725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726 lt_compiler_flag="-fno-rtti -fno-exceptions"
8727 # Insert the option either (1) after the last *FLAGS variable, or
8728 # (2) before a word containing "conftest.", or (3) at the end.
8729 # Note that $ac_compile itself does not contain backslashes and begins
8730 # with a dollar sign (not a hyphen), so the echo should work correctly.
8731 # The option is referenced via a variable to avoid confusing sed.
8732 lt_compile=`echo "$ac_compile" | $SED \
8733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735 -e 's:$: $lt_compiler_flag:'`
8736 (eval echo "\"\$as_me:8736: $lt_compile\"" >&5)
8737 (eval "$lt_compile" 2>conftest.err)
8739 cat conftest.err >&5
8740 echo "$as_me:8740: \$? = $ac_status" >&5
8741 if (exit $ac_status) && test -s "$ac_outfile"; then
8742 # The compiler can only warn and ignore the option if not recognized
8743 # So say no if there are warnings other than the usual output.
8744 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8747 lt_cv_prog_compiler_rtti_exceptions=yes
8753 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8754 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8756 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8757 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8764 lt_prog_compiler_wl=
8765 lt_prog_compiler_pic=
8766 lt_prog_compiler_static=
8768 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8769 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8771 if test "$GCC" = yes; then
8772 lt_prog_compiler_wl='-Wl,'
8773 lt_prog_compiler_static='-static'
8777 # All AIX code is PIC.
8778 if test "$host_cpu" = ia64; then
8779 # AIX 5 now supports IA64 processor
8780 lt_prog_compiler_static='-Bstatic'
8785 # FIXME: we need at least 68020 code to build shared libraries, but
8786 # adding the `-m68020' flag to GCC prevents building anything better,
8788 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8792 # PIC is the default for these OSes.
8795 mingw* | cygwin* | pw32* | os2*)
8796 # This hack is so that the source file can tell whether it is being
8797 # built for inclusion in a dll (and should export symbols for example).
8798 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8799 # (--disable-auto-import) libraries
8800 lt_prog_compiler_pic='-DDLL_EXPORT'
8803 darwin* | rhapsody*)
8804 # PIC is the default on this platform
8805 # Common symbols not allowed in MH_DYLIB files
8806 lt_prog_compiler_pic='-fno-common'
8810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8811 # Instead, we relocate shared libraries at runtime.
8815 # Just because we use GCC doesn't mean we suddenly get shared libraries
8816 # on systems that don't support them.
8817 lt_prog_compiler_can_build_shared=no
8822 if test -d /usr/nec; then
8823 lt_prog_compiler_pic=-Kconform_pic
8828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8835 lt_prog_compiler_pic='-fPIC'
8841 lt_prog_compiler_pic='-fPIC'
8845 # PORTME Check for flag to pass linker flags through the system compiler.
8848 lt_prog_compiler_wl='-Wl,'
8849 if test "$host_cpu" = ia64; then
8850 # AIX 5 now supports IA64 processor
8851 lt_prog_compiler_static='-Bstatic'
8853 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8857 # PIC is the default on this platform
8858 # Common symbols not allowed in MH_DYLIB files
8859 case $cc_basename in
8861 lt_prog_compiler_pic='-qnocommon'
8862 lt_prog_compiler_wl='-Wl,'
8867 mingw* | cygwin* | pw32* | os2*)
8868 # This hack is so that the source file can tell whether it is being
8869 # built for inclusion in a dll (and should export symbols for example).
8870 lt_prog_compiler_pic='-DDLL_EXPORT'
8873 hpux9* | hpux10* | hpux11*)
8874 lt_prog_compiler_wl='-Wl,'
8875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8882 lt_prog_compiler_pic='+Z'
8885 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8886 lt_prog_compiler_static='${wl}-a ${wl}archive'
8889 irix5* | irix6* | nonstopux*)
8890 lt_prog_compiler_wl='-Wl,'
8891 # PIC (with -KPIC) is the default.
8892 lt_prog_compiler_static='-non_shared'
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8900 linux* | k*bsd*-gnu)
8901 case $cc_basename in
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-static'
8907 pgcc* | pgf77* | pgf90* | pgf95*)
8908 # Portland Group compilers (*not* the Pentium gcc compiler,
8909 # which looks to be a dead project)
8910 lt_prog_compiler_wl='-Wl,'
8911 lt_prog_compiler_pic='-fpic'
8912 lt_prog_compiler_static='-Bstatic'
8915 lt_prog_compiler_wl='-Wl,'
8916 # All Alpha code is PIC.
8917 lt_prog_compiler_static='-non_shared'
8920 case `$CC -V 2>&1 | sed 5q` in
8923 lt_prog_compiler_pic='-KPIC'
8924 lt_prog_compiler_static='-Bstatic'
8925 lt_prog_compiler_wl='-Wl,'
8928 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 lt_prog_compiler_wl=''
8938 osf3* | osf4* | osf5*)
8939 lt_prog_compiler_wl='-Wl,'
8940 # All OSF/1 code is PIC.
8941 lt_prog_compiler_static='-non_shared'
8945 lt_prog_compiler_static='-non_shared'
8949 lt_prog_compiler_pic='-KPIC'
8950 lt_prog_compiler_static='-Bstatic'
8951 case $cc_basename in
8953 lt_prog_compiler_wl='-Qoption ld ';;
8955 lt_prog_compiler_wl='-Wl,';;
8960 lt_prog_compiler_wl='-Qoption ld '
8961 lt_prog_compiler_pic='-PIC'
8962 lt_prog_compiler_static='-Bstatic'
8965 sysv4 | sysv4.2uw2* | sysv4.3*)
8966 lt_prog_compiler_wl='-Wl,'
8967 lt_prog_compiler_pic='-KPIC'
8968 lt_prog_compiler_static='-Bstatic'
8972 if test -d /usr/nec ;then
8973 lt_prog_compiler_pic='-Kconform_pic'
8974 lt_prog_compiler_static='-Bstatic'
8978 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8979 lt_prog_compiler_wl='-Wl,'
8980 lt_prog_compiler_pic='-KPIC'
8981 lt_prog_compiler_static='-Bstatic'
8985 lt_prog_compiler_wl='-Wl,'
8986 lt_prog_compiler_can_build_shared=no
8990 lt_prog_compiler_pic='-pic'
8991 lt_prog_compiler_static='-Bstatic'
8995 lt_prog_compiler_can_build_shared=no
9000 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9001 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9004 # Check to make sure the PIC flag actually works.
9006 if test -n "$lt_prog_compiler_pic"; then
9008 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9009 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9010 if test "${lt_prog_compiler_pic_works+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 lt_prog_compiler_pic_works=no
9014 ac_outfile=conftest.$ac_objext
9015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9016 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9017 # Insert the option either (1) after the last *FLAGS variable, or
9018 # (2) before a word containing "conftest.", or (3) at the end.
9019 # Note that $ac_compile itself does not contain backslashes and begins
9020 # with a dollar sign (not a hyphen), so the echo should work correctly.
9021 # The option is referenced via a variable to avoid confusing sed.
9022 lt_compile=`echo "$ac_compile" | $SED \
9023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9025 -e 's:$: $lt_compiler_flag:'`
9026 (eval echo "\"\$as_me:9026: $lt_compile\"" >&5)
9027 (eval "$lt_compile" 2>conftest.err)
9029 cat conftest.err >&5
9030 echo "$as_me:9030: \$? = $ac_status" >&5
9031 if (exit $ac_status) && test -s "$ac_outfile"; then
9032 # The compiler can only warn and ignore the option if not recognized
9033 # So say no if there are warnings other than the usual output.
9034 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9036 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9037 lt_prog_compiler_pic_works=yes
9043 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9044 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9046 if test x"$lt_prog_compiler_pic_works" = xyes; then
9047 case $lt_prog_compiler_pic in
9049 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9052 lt_prog_compiler_pic=
9053 lt_prog_compiler_can_build_shared=no
9058 # For platforms which do not support PIC, -DPIC is meaningless:
9060 lt_prog_compiler_pic=
9063 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9068 # Check to make sure the static flag actually works.
9070 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9071 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9072 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9073 if test "${lt_prog_compiler_static_works+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 lt_prog_compiler_static_works=no
9077 save_LDFLAGS="$LDFLAGS"
9078 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9079 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081 # The linker can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 if test -s conftest.err; then
9084 # Append any errors to the config.log.
9085 cat conftest.err 1>&5
9086 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if diff conftest.exp conftest.er2 >/dev/null; then
9089 lt_prog_compiler_static_works=yes
9092 lt_prog_compiler_static_works=yes
9096 LDFLAGS="$save_LDFLAGS"
9099 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9100 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9102 if test x"$lt_prog_compiler_static_works" = xyes; then
9105 lt_prog_compiler_static=
9109 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9110 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9111 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 lt_cv_prog_compiler_c_o=no
9115 $rm -r conftest 2>/dev/null
9119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9121 lt_compiler_flag="-o out/conftest2.$ac_objext"
9122 # Insert the option either (1) after the last *FLAGS variable, or
9123 # (2) before a word containing "conftest.", or (3) at the end.
9124 # Note that $ac_compile itself does not contain backslashes and begins
9125 # with a dollar sign (not a hyphen), so the echo should work correctly.
9126 lt_compile=`echo "$ac_compile" | $SED \
9127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129 -e 's:$: $lt_compiler_flag:'`
9130 (eval echo "\"\$as_me:9130: $lt_compile\"" >&5)
9131 (eval "$lt_compile" 2>out/conftest.err)
9133 cat out/conftest.err >&5
9134 echo "$as_me:9134: \$? = $ac_status" >&5
9135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9137 # The compiler can only warn and ignore the option if not recognized
9138 # So say no if there are warnings
9139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler_c_o=yes
9147 # SGI C++ compiler will create directory out/ii_files/ for
9148 # template instantiation
9149 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9150 $rm out/* && rmdir out
9156 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9157 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9160 hard_links="nottested"
9161 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9162 # do not overwrite the value of need_locks provided by the user
9163 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9164 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9167 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9169 ln conftest.a conftest.b 2>&5 || hard_links=no
9170 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9171 { echo "$as_me:$LINENO: result: $hard_links" >&5
9172 echo "${ECHO_T}$hard_links" >&6; }
9173 if test "$hard_links" = no; then
9174 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9175 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9182 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9183 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9186 allow_undefined_flag=
9187 enable_shared_with_static_runtimes=no
9189 archive_expsym_cmds=
9190 old_archive_From_new_cmds=
9191 old_archive_from_expsyms_cmds=
9192 export_dynamic_flag_spec=
9193 whole_archive_flag_spec=
9194 thread_safe_flag_spec=
9195 hardcode_libdir_flag_spec=
9196 hardcode_libdir_flag_spec_ld=
9197 hardcode_libdir_separator=
9200 hardcode_shlibpath_var=unsupported
9201 link_all_deplibs=unknown
9202 hardcode_automatic=no
9205 always_export_symbols=no
9206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9207 # include_expsyms should be a list of space-separated symbols to be *always*
9208 # included in the symbol list
9210 # exclude_expsyms can be an extended regexp of symbols to exclude
9211 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9212 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9213 # as well as any symbol that contains `d'.
9214 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9215 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9216 # platforms (ab)use it in PIC code, but their linkers get confused if
9217 # the symbol is explicitly referenced. Since portable code cannot
9218 # rely on this symbol name, it's probably fine to never include it in
9219 # preloaded symbol tables.
9220 extract_expsyms_cmds=
9221 # Just being paranoid about ensuring that cc_basename is set.
9222 for cc_temp in $compiler""; do
9224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9233 cygwin* | mingw* | pw32*)
9234 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9235 # When not using gcc, we currently assume that we are using
9236 # Microsoft Visual C++.
9237 if test "$GCC" != yes; then
9242 # we just hope/assume this is gcc and not c89 (= MSVC++)
9251 if test "$with_gnu_ld" = yes; then
9252 # If archive_cmds runs LD, not CC, wlarc should be empty
9255 # Set some defaults for GNU ld with shared library support. These
9256 # are reset later if shared libraries are not supported. Putting them
9257 # here allows them to be overridden if necessary.
9258 runpath_var=LD_RUN_PATH
9259 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9260 export_dynamic_flag_spec='${wl}--export-dynamic'
9261 # ancient GNU ld didn't support --whole-archive et. al.
9262 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9263 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9265 whole_archive_flag_spec=
9267 supports_anon_versioning=no
9268 case `$LD -v 2>/dev/null` in
9269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9272 *\ 2.11.*) ;; # other 2.11 versions
9273 *) supports_anon_versioning=yes ;;
9276 # See if GNU ld supports shared libraries.
9278 aix3* | aix4* | aix5*)
9279 # On AIX/PPC, the GNU linker is very broken
9280 if test "$host_cpu" != ia64; then
9284 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9285 *** to be unable to reliably create shared libraries on AIX.
9286 *** Therefore, libtool is disabling shared libraries support. If you
9287 *** really care for shared libraries, you may want to modify your PATH
9288 *** so that a non-GNU linker is found, and then restart.
9295 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)'
9296 hardcode_libdir_flag_spec='-L$libdir'
9297 hardcode_minus_L=yes
9299 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9300 # that the semantics of dynamic libraries on AmigaOS, at least up
9301 # to version 4, is to share data among multiple programs linked
9302 # with the same dynamic library. Since this doesn't match the
9303 # behavior of shared libraries on other platforms, we can't use
9309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9310 allow_undefined_flag=unsupported
9311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9312 # support --undefined. This deserves some investigation. FIXME
9313 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319 cygwin* | mingw* | pw32*)
9320 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9321 # as there is no search path for DLLs.
9322 hardcode_libdir_flag_spec='-L$libdir'
9323 allow_undefined_flag=unsupported
9324 always_export_symbols=no
9325 enable_shared_with_static_runtimes=yes
9326 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9328 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9330 # If the export-symbols file already is a .def file (1st line
9331 # is EXPORTS), use it as is; otherwise, prepend...
9332 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9333 cp $export_symbols $output_objdir/$soname.def;
9335 echo EXPORTS > $output_objdir/$soname.def;
9336 cat $export_symbols >> $output_objdir/$soname.def;
9338 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9346 hardcode_shlibpath_var=no
9347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348 export_dynamic_flag_spec='${wl}-E'
9349 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9350 # Instead, shared libraries are loaded at an image base (0x10000000 by
9351 # default) and relocated if they conflict, which is a slow very memory
9352 # consuming and fragmenting process. To avoid this, we pick a random,
9353 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9354 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9355 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9356 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'
9359 gnu* | linux* | k*bsd*-gnu)
9360 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9362 case $cc_basename,$host_cpu in
9363 pgcc*) # Portland Group C compiler
9364 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'
9365 tmp_addflag=' $pic_flag'
9367 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9368 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'
9369 tmp_addflag=' $pic_flag -Mnomain' ;;
9370 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9371 tmp_addflag=' -i_dynamic' ;;
9372 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9373 tmp_addflag=' -i_dynamic -nofor_main' ;;
9374 ifc* | ifort*) # Intel Fortran compiler
9375 tmp_addflag=' -nofor_main' ;;
9377 case `$CC -V 2>&1 | sed 5q` in
9378 *Sun\ C*) # Sun C 5.9
9379 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'
9380 tmp_sharedflag='-G' ;;
9381 *Sun\ F*) # Sun Fortran 8.3
9382 tmp_sharedflag='-G' ;;
9384 tmp_sharedflag='-shared' ;;
9386 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 if test $supports_anon_versioning = yes; then
9389 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9391 $echo "local: *; };" >> $output_objdir/$libname.ver~
9392 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9410 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9415 *** create shared libraries on Solaris systems. Therefore, libtool
9416 *** is disabling shared libraries support. We urge you to upgrade GNU
9417 *** binutils to release 2.9.1 or newer. Another option is to modify
9418 *** your PATH or compiler configuration so that the native linker is
9419 *** used, and then restart.
9422 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9431 case `$LD -v 2>&1` in
9432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9437 *** reliably create shared libraries on SCO systems. Therefore, libtool
9438 *** is disabling shared libraries support. We urge you to upgrade GNU
9439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9440 *** your PATH or compiler configuration so that the native linker is
9441 *** used, and then restart.
9446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9447 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9458 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9461 hardcode_shlibpath_var=no
9465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9474 if test "$ld_shlibs" = no; then
9476 hardcode_libdir_flag_spec=
9477 export_dynamic_flag_spec=
9478 whole_archive_flag_spec=
9481 # PORTME fill in a description of your system's linker (not GNU ld)
9484 allow_undefined_flag=unsupported
9485 always_export_symbols=yes
9486 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'
9487 # Note: this linker hardcodes the directories in LIBPATH if there
9488 # are no directories specified by -L.
9489 hardcode_minus_L=yes
9490 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9491 # Neither direct hardcoding nor static linking is supported with a
9493 hardcode_direct=unsupported
9498 if test "$host_cpu" = ia64; then
9499 # On IA64, the linker does run time linking by default, so we don't
9500 # have to do anything special.
9501 aix_use_runtimelinking=no
9502 exp_sym_flag='-Bexport'
9505 # If we're using GNU nm, then we don't want the "-C" option.
9506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9508 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'
9510 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'
9512 aix_use_runtimelinking=no
9514 # Test if we are trying to use run time linking or normal
9515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9516 # need to do runtime linking.
9517 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9518 for ld_flag in $LDFLAGS; do
9519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9520 aix_use_runtimelinking=yes
9527 exp_sym_flag='-bexport'
9528 no_entry_flag='-bnoentry'
9531 # When large executables or shared objects are built, AIX ld can
9532 # have problems creating the table of contents. If linking a library
9533 # or program results in "error TOC overflow" add -mminimal-toc to
9534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9539 hardcode_libdir_separator=':'
9540 link_all_deplibs=yes
9542 if test "$GCC" = yes; then
9543 case $host_os in aix4.[012]|aix4.[012].*)
9544 # We only want to do this on AIX 4.2 and lower, the check
9545 # below for broken collect2 doesn't work under 4.3+
9546 collect2name=`${CC} -print-prog-name=collect2`
9547 if test -f "$collect2name" && \
9548 strings "$collect2name" | grep resolve_lib_name >/dev/null
9550 # We have reworked collect2
9553 # We have old collect2
9554 hardcode_direct=unsupported
9555 # It fails to find uninstalled libraries when the uninstalled
9556 # path is not listed in the libpath. Setting hardcode_minus_L
9557 # to unsupported forces relinking
9558 hardcode_minus_L=yes
9559 hardcode_libdir_flag_spec='-L$libdir'
9560 hardcode_libdir_separator=
9564 shared_flag='-shared'
9565 if test "$aix_use_runtimelinking" = yes; then
9566 shared_flag="$shared_flag "'${wl}-G'
9570 if test "$host_cpu" = ia64; then
9571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9572 # chokes on -Wl,-G. The following line is correct:
9575 if test "$aix_use_runtimelinking" = yes; then
9576 shared_flag='${wl}-G'
9578 shared_flag='${wl}-bM:SRE'
9583 # It seems that -bexpall does not export symbols beginning with
9584 # underscore (_), so it is better to generate a list of symbols to export.
9585 always_export_symbols=yes
9586 if test "$aix_use_runtimelinking" = yes; then
9587 # Warning - without using the other runtime loading flags (-brtl),
9588 # -berok will link without error, but may produce a broken library.
9589 allow_undefined_flag='-berok'
9590 # Determine the default libpath from the value encoded in an empty executable.
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9625 lt_aix_libpath_sed='
9626 /Import File Strings/,/^$/ {
9632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$aix_libpath"; then
9635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645 conftest$ac_exeext conftest.$ac_ext
9646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9648 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9649 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"
9651 if test "$host_cpu" = ia64; then
9652 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9653 allow_undefined_flag="-z nodefs"
9654 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"
9656 # Determine the default libpath from the value encoded in an empty executable.
9657 cat >conftest.$ac_ext <<_ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest$ac_exeext &&
9689 $as_test_x conftest$ac_exeext; then
9691 lt_aix_libpath_sed='
9692 /Import File Strings/,/^$/ {
9698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 # Check for a 64-bit object if we didn't find anything.
9700 if test -z "$aix_libpath"; then
9701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711 conftest$ac_exeext conftest.$ac_ext
9712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9714 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9715 # Warning - without using the other run time loading flags,
9716 # -berok will link without error, but may produce a broken library.
9717 no_undefined_flag=' ${wl}-bernotok'
9718 allow_undefined_flag=' ${wl}-berok'
9719 # Exported symbols can be pulled into shared objects from archives
9720 whole_archive_flag_spec='$convenience'
9721 archive_cmds_need_lc=yes
9722 # This is similar to how AIX traditionally builds its shared libraries.
9723 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'
9729 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)'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_minus_L=yes
9732 # see comment about different semantics on the GNU ld section
9737 export_dynamic_flag_spec=-rdynamic
9740 cygwin* | mingw* | pw32*)
9741 # When not using gcc, we currently assume that we are using
9742 # Microsoft Visual C++.
9743 # hardcode_libdir_flag_spec is actually meaningless, as there is
9744 # no search path for DLLs.
9745 hardcode_libdir_flag_spec=' '
9746 allow_undefined_flag=unsupported
9747 # Tell ltmain to make .lib files, not .a files.
9749 # Tell ltmain to make .dll files, not .so files.
9751 # FIXME: Setting linknames here is a bad hack.
9752 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9753 # The linker will automatically build a .lib file if we build a DLL.
9754 old_archive_From_new_cmds='true'
9755 # FIXME: Should let the user specify the lib program.
9756 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9757 fix_srcfile_path='`cygpath -w "$srcfile"`'
9758 enable_shared_with_static_runtimes=yes
9761 darwin* | rhapsody*)
9763 rhapsody* | darwin1.[012])
9764 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9767 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9768 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9770 case ${MACOSX_DEPLOYMENT_TARGET} in
9772 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9775 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9781 archive_cmds_need_lc=no
9783 hardcode_automatic=yes
9784 hardcode_shlibpath_var=unsupported
9785 whole_archive_flag_spec=''
9786 link_all_deplibs=yes
9787 if test "$GCC" = yes ; then
9788 output_verbose_link_cmd='echo'
9789 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9790 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9791 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9792 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9793 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}'
9795 case $cc_basename in
9797 output_verbose_link_cmd='echo'
9798 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9799 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9800 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9801 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}'
9802 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}'
9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_libdir_flag_spec='-L$libdir'
9814 hardcode_shlibpath_var=no
9821 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9822 # support. Future versions do this automatically, but an explicit c++rt0.o
9823 # does not break anything, and helps significantly (at the cost of a little
9826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9827 hardcode_libdir_flag_spec='-R$libdir'
9829 hardcode_shlibpath_var=no
9832 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_minus_L=yes
9837 hardcode_shlibpath_var=no
9840 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9841 freebsd* | dragonfly*)
9842 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9843 hardcode_libdir_flag_spec='-R$libdir'
9845 hardcode_shlibpath_var=no
9849 if test "$GCC" = yes; then
9850 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'
9852 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'
9854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9855 hardcode_libdir_separator=:
9858 # hardcode_minus_L: Not really in the search PATH,
9859 # but as the default location of the library.
9860 hardcode_minus_L=yes
9861 export_dynamic_flag_spec='${wl}-E'
9865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9866 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9870 if test "$with_gnu_ld" = no; then
9871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9872 hardcode_libdir_separator=:
9875 export_dynamic_flag_spec='${wl}-E'
9877 # hardcode_minus_L: Not really in the search PATH,
9878 # but as the default location of the library.
9879 hardcode_minus_L=yes
9884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9887 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9909 if test "$with_gnu_ld" = no; then
9910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911 hardcode_libdir_separator=:
9915 hardcode_libdir_flag_spec_ld='+b $libdir'
9917 hardcode_shlibpath_var=no
9921 export_dynamic_flag_spec='${wl}-E'
9923 # hardcode_minus_L: Not really in the search PATH,
9924 # but as the default location of the library.
9925 hardcode_minus_L=yes
9931 irix5* | irix6* | nonstopux*)
9932 if test "$GCC" = yes; then
9933 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'
9935 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'
9936 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_separator=:
9940 link_all_deplibs=yes
9944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9947 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9949 hardcode_libdir_flag_spec='-R$libdir'
9951 hardcode_shlibpath_var=no
9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9959 hardcode_shlibpath_var=no
9963 if test -f /usr/libexec/ld.so; then
9965 hardcode_shlibpath_var=no
9966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9968 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9969 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9970 export_dynamic_flag_spec='${wl}-E'
9973 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975 hardcode_libdir_flag_spec='-R$libdir'
9978 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9989 hardcode_libdir_flag_spec='-L$libdir'
9990 hardcode_minus_L=yes
9991 allow_undefined_flag=unsupported
9992 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'
9993 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9997 if test "$GCC" = yes; then
9998 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9999 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'
10001 allow_undefined_flag=' -expect_unresolved \*'
10002 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'
10004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10005 hardcode_libdir_separator=:
10008 osf4* | osf5*) # as osf3* with the addition of -msym flag
10009 if test "$GCC" = yes; then
10010 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10011 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'
10012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014 allow_undefined_flag=' -expect_unresolved \*'
10015 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'
10016 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10017 $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'
10019 # Both c and cxx compiler support -rpath directly
10020 hardcode_libdir_flag_spec='-rpath $libdir'
10022 hardcode_libdir_separator=:
10026 no_undefined_flag=' -z text'
10027 if test "$GCC" = yes; then
10029 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10031 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10034 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10036 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10038 hardcode_libdir_flag_spec='-R$libdir'
10039 hardcode_shlibpath_var=no
10041 solaris2.[0-5] | solaris2.[0-5].*) ;;
10043 # The compiler driver will combine and reorder linker options,
10044 # but understands `-z linker_flag'. GCC discards it without `$wl',
10045 # but is careful enough not to reorder.
10046 # Supported since Solaris 2.6 (maybe 2.5.1?)
10047 if test "$GCC" = yes; then
10048 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10050 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10054 link_all_deplibs=yes
10058 if test "x$host_vendor" = xsequent; then
10059 # Use $CC to link under sequent, because it throws in some extra .o
10060 # files that make .init and .fini sections work.
10061 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_libdir_flag_spec='-L$libdir'
10066 hardcode_direct=yes
10067 hardcode_minus_L=yes
10068 hardcode_shlibpath_var=no
10072 case $host_vendor in
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_direct=yes # is this really true???
10078 ## LD is ld it makes a PLAMLIB
10079 ## CC just makes a GrossModule.
10080 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10081 reload_cmds='$CC -r -o $output$reload_objs'
10085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10089 runpath_var='LD_RUN_PATH'
10090 hardcode_shlibpath_var=no
10094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095 hardcode_shlibpath_var=no
10096 export_dynamic_flag_spec='-Bexport'
10100 if test -d /usr/nec; then
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_shlibpath_var=no
10103 runpath_var=LD_RUN_PATH
10104 hardcode_runpath_var=yes
10109 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10110 no_undefined_flag='${wl}-z,text'
10111 archive_cmds_need_lc=no
10112 hardcode_shlibpath_var=no
10113 runpath_var='LD_RUN_PATH'
10115 if test "$GCC" = yes; then
10116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 sysv5* | sco3.2v5* | sco5v6*)
10125 # Note: We can NOT use -z defs as we might desire, because we do not
10126 # link with -lc, and that would cause any symbols used from libc to
10127 # always be unresolved, which means just about no library would
10128 # ever link correctly. If we're not using GNU ld we use -z text
10129 # though, which does catch some bad symbols but isn't as heavy-handed
10131 no_undefined_flag='${wl}-z,text'
10132 allow_undefined_flag='${wl}-z,nodefs'
10133 archive_cmds_need_lc=no
10134 hardcode_shlibpath_var=no
10135 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10136 hardcode_libdir_separator=':'
10137 link_all_deplibs=yes
10138 export_dynamic_flag_spec='${wl}-Bexport'
10139 runpath_var='LD_RUN_PATH'
10141 if test "$GCC" = yes; then
10142 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152 hardcode_libdir_flag_spec='-L$libdir'
10153 hardcode_shlibpath_var=no
10162 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10163 echo "${ECHO_T}$ld_shlibs" >&6; }
10164 test "$ld_shlibs" = no && can_build_shared=no
10167 # Do we need to explicitly link libc?
10169 case "x$archive_cmds_need_lc" in
10171 # Assume -lc should be added
10172 archive_cmds_need_lc=yes
10174 if test "$enable_shared" = yes && test "$GCC" = yes; then
10175 case $archive_cmds in
10177 # FIXME: we may have to deal with multi-command sequences.
10180 # Test whether the compiler implicitly links with -lc since on some
10181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10182 # to ld, don't add -lc before -lgcc.
10183 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189 (eval $ac_compile) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } 2>conftest.err; then
10195 libobjs=conftest.$ac_objext
10197 wl=$lt_prog_compiler_wl
10198 pic_flag=$lt_prog_compiler_pic
10204 lt_save_allow_undefined_flag=$allow_undefined_flag
10205 allow_undefined_flag=
10206 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10207 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }
10212 archive_cmds_need_lc=no
10214 archive_cmds_need_lc=yes
10216 allow_undefined_flag=$lt_save_allow_undefined_flag
10218 cat conftest.err 1>&5
10221 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10222 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10229 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10231 library_names_spec=
10232 libname_spec='lib$name'
10236 postuninstall_cmds=
10240 shlibpath_overrides_runpath=unknown
10242 dynamic_linker="$host_os ld.so"
10243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10245 if test "$GCC" = yes; then
10247 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10248 *) lt_awk_arg="/^libraries:/" ;;
10250 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10251 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10252 # if the path contains ";" then we assume it to be the separator
10253 # otherwise default to the standard path separator (i.e. ":") - it is
10254 # assumed that no part of a normal pathname contains ";" but that should
10255 # okay in the real world where ";" in dirpaths is itself problematic.
10256 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10258 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10260 # Ok, now we have the path, separated by spaces, we can step through it
10261 # and add multilib dir if necessary.
10262 lt_tmp_lt_search_path_spec=
10263 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10264 for lt_sys_path in $lt_search_path_spec; do
10265 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10266 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10268 test -d "$lt_sys_path" && \
10269 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10272 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10273 BEGIN {RS=" "; FS="/|\n";} {
10276 for (lt_i = NF; lt_i > 0; lt_i--) {
10277 if ($lt_i != "" && $lt_i != ".") {
10278 if ($lt_i == "..") {
10281 if (lt_count == 0) {
10282 lt_foo="/" $lt_i lt_foo;
10289 if (lt_foo != "") { lt_freq[lt_foo]++; }
10290 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10292 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10296 need_lib_prefix=unknown
10297 hardcode_into_libs=no
10299 # when you set need_version to no, make sure it does not cause -set_version
10300 # flags to be left without arguments
10301 need_version=unknown
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10307 shlibpath_var=LIBPATH
10309 # AIX 3 has no versioning support, so we append a major version to the name.
10310 soname_spec='${libname}${release}${shared_ext}$major'
10317 hardcode_into_libs=yes
10318 if test "$host_cpu" = ia64; then
10319 # AIX 5 supports IA64
10320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10321 shlibpath_var=LD_LIBRARY_PATH
10323 # With GCC up to 2.95.x, collect2 would create an import file
10324 # for dependence libraries. The import file would start with
10325 # the line `#! .'. This would cause the generated library to
10326 # depend on `.', always an invalid library. This was fixed in
10327 # development snapshots of GCC prior to 3.0.
10329 aix4 | aix4.[01] | aix4.[01].*)
10330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10335 can_build_shared=no
10339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10340 # soname into executable. Probably we can add versioning support to
10341 # collect2, so additional links can be useful in future.
10342 if test "$aix_use_runtimelinking" = yes; then
10343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10344 # instead of lib<name>.a to let people know that these are not
10345 # typical AIX shared libraries.
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 # We preserve .a as extension for shared libraries through AIX4.2
10349 # and later when we are not doing run time linking.
10350 library_names_spec='${libname}${release}.a $libname.a'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LIBPATH
10358 library_names_spec='$libname.ixlibrary $libname.a'
10359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10360 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'
10364 library_names_spec='${libname}${shared_ext}'
10365 dynamic_linker="$host_os ld.so"
10366 shlibpath_var=LIBRARY_PATH
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10378 # the default ld.so.conf also contains /usr/contrib/lib and
10379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10380 # libtool to hard-code these into programs
10383 cygwin* | mingw* | pw32*)
10384 version_type=windows
10389 case $GCC,$host_os in
10390 yes,cygwin* | yes,mingw* | yes,pw32*)
10391 library_names_spec='$libname.dll.a'
10392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10393 postinstall_cmds='base_file=`basename \${file}`~
10394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10395 dldir=$destdir/`dirname \$dlpath`~
10396 test -d \$dldir || mkdir -p \$dldir~
10397 $install_prog $dir/$dlname \$dldir/$dlname~
10398 chmod a+x \$dldir/$dlname'
10399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10400 dlpath=$dir/\$dldll~
10402 shlibpath_overrides_runpath=yes
10406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10411 # MinGW DLLs use traditional 'lib' prefix
10412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10415 # It is most probably a Windows format PATH printed by
10416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10417 # path with ; separators, and with drive letters. We can handle the
10418 # drive letters (cygwin fileutils understands them), so leave them,
10419 # especially as we might pass files found there to a mingw objdump,
10420 # which wouldn't understand a cygwinified path. Ahh.
10421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10427 # pw32 DLLs use 'pw' prefix rather than 'lib'
10428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10437 dynamic_linker='Win32 ld.exe'
10438 # FIXME: first we should search . and the directory the executable is in
10442 darwin* | rhapsody*)
10443 dynamic_linker="$host_os dyld"
10444 version_type=darwin
10447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10448 soname_spec='${libname}${release}${major}$shared_ext'
10449 shlibpath_overrides_runpath=yes
10450 shlibpath_var=DYLD_LIBRARY_PATH
10451 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10470 freebsd* | dragonfly*)
10471 # DragonFly does not have aout. When/if they implement a new
10472 # versioning mechanism, adjust this.
10473 if test -x /usr/bin/objformat; then
10474 objformat=`/usr/bin/objformat`
10477 freebsd[123]*) objformat=aout ;;
10478 *) objformat=elf ;;
10481 version_type=freebsd-$objformat
10482 case $version_type in
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10493 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10498 freebsd3.[01]* | freebsdelf3.[01]*)
10499 shlibpath_overrides_runpath=yes
10500 hardcode_into_libs=yes
10502 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10503 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10504 shlibpath_overrides_runpath=no
10505 hardcode_into_libs=yes
10507 *) # from 4.6 on, and DragonFly
10508 shlibpath_overrides_runpath=yes
10509 hardcode_into_libs=yes
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 hardcode_into_libs=yes
10524 hpux9* | hpux10* | hpux11*)
10525 # Give a soname corresponding to the major version so that dld.sl refuses to
10526 # link against other versions.
10533 hardcode_into_libs=yes
10534 dynamic_linker="$host_os dld.so"
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 if test "X$HPUX_IA64_MODE" = X32; then
10540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10548 hardcode_into_libs=yes
10549 dynamic_linker="$host_os dld.sl"
10550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10559 dynamic_linker="$host_os dld.sl"
10560 shlibpath_var=SHLIB_PATH
10561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10566 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10567 postinstall_cmds='chmod 555 $lib'
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=no
10579 hardcode_into_libs=yes
10582 irix5* | irix6* | nonstopux*)
10584 nonstopux*) version_type=nonstopux ;;
10586 if test "$lt_cv_prog_gnu_ld" = yes; then
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10597 irix5* | nonstopux*)
10598 libsuff= shlibsuff=
10601 case $LD in # libtool.m4 will add one of these switches to LD
10602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10603 libsuff= shlibsuff= libmagic=32-bit;;
10604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10605 libsuff=32 shlibsuff=N32 libmagic=N32;;
10606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10608 *) libsuff= shlibsuff= libmagic=never-match;;
10612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10613 shlibpath_overrides_runpath=no
10614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10616 hardcode_into_libs=yes
10619 # No shared lib support for Linux oldld, aout, or coff.
10620 linux*oldld* | linux*aout* | linux*coff*)
10624 # This must be Linux ELF.
10625 linux* | k*bsd*-gnu)
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10634 # This implies no fast_install, which is unacceptable.
10635 # Some rework will be needed to allow for fast_install
10636 # before this can be enabled.
10637 hardcode_into_libs=yes
10638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10641 # Append ld.so.conf contents to the search path
10642 if test -f /etc/ld.so.conf; then
10643 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' ' '`
10644 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10647 # We used to test for /lib/ld.so.1 and disable shared libraries on
10648 # powerpc, because MkLinux only supported shared libraries with the
10649 # GNU dynamic linker. Since this was broken with cross compilers,
10650 # most powerpc-linux boxes support dynamic linking these days and
10651 # people can always --disable-shared, the test was removed, and we
10652 # assume the GNU/Linux dynamic linker is in use.
10653 dynamic_linker='GNU/Linux ld.so'
10660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10663 dynamic_linker='NetBSD (a.out) ld.so'
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 dynamic_linker='NetBSD ld.elf_so'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 shlibpath_overrides_runpath=yes
10671 hardcode_into_libs=yes
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 shlibpath_overrides_runpath=yes
10693 sys_lib_dlsearch_path_spec="/usr/lib"
10695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10697 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10698 *) need_version=no ;;
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10705 openbsd2.[89] | openbsd2.[89].*)
10706 shlibpath_overrides_runpath=no
10709 shlibpath_overrides_runpath=yes
10713 shlibpath_overrides_runpath=yes
10718 libname_spec='$name'
10721 library_names_spec='$libname${shared_ext} $libname.a'
10722 dynamic_linker='OS/2 ld.exe'
10723 shlibpath_var=LIBPATH
10726 osf3* | osf4* | osf5*)
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10734 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LD_LIBRARY_PATH
10748 shlibpath_overrides_runpath=yes
10749 hardcode_into_libs=yes
10750 # ldd complains unless libraries are executable
10751 postinstall_cmds='chmod +x $lib'
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath=yes
10760 if test "$with_gnu_ld" = yes; then
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 case $host_vendor in
10773 shlibpath_overrides_runpath=no
10775 export_dynamic_flag_spec='${wl}-Blargedynsym'
10776 runpath_var=LD_RUN_PATH
10784 shlibpath_overrides_runpath=no
10785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10791 if test -d /usr/nec ;then
10793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10794 soname_spec='$libname${shared_ext}.$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10800 version_type=freebsd-elf
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 hardcode_into_libs=yes
10807 if test "$with_gnu_ld" = yes; then
10808 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10809 shlibpath_overrides_runpath=no
10811 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10812 shlibpath_overrides_runpath=yes
10815 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10819 sys_lib_dlsearch_path_spec='/usr/lib'
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 shlibpath_var=LD_LIBRARY_PATH
10833 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10834 echo "${ECHO_T}$dynamic_linker" >&6; }
10835 test "$dynamic_linker" = no && can_build_shared=no
10837 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10838 if test "$GCC" = yes; then
10839 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10842 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10843 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10845 if test -n "$hardcode_libdir_flag_spec" || \
10846 test -n "$runpath_var" || \
10847 test "X$hardcode_automatic" = "Xyes" ; then
10849 # We can hardcode non-existant directories.
10850 if test "$hardcode_direct" != no &&
10851 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10852 # have to relink, otherwise we might link with an installed library
10853 # when we should be linking with a yet-to-be-installed one
10854 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10855 test "$hardcode_minus_L" != no; then
10856 # Linking always hardcodes the temporary library directory.
10857 hardcode_action=relink
10859 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10860 hardcode_action=immediate
10863 # We cannot hardcode anything, or else we can only hardcode existing
10865 hardcode_action=unsupported
10867 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10868 echo "${ECHO_T}$hardcode_action" >&6; }
10870 if test "$hardcode_action" = relink; then
10871 # Fast installation is not supported
10872 enable_fast_install=no
10873 elif test "$shlibpath_overrides_runpath" = yes ||
10874 test "$enable_shared" = no; then
10875 # Fast installation is not necessary
10876 enable_fast_install=needless
10881 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10882 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10883 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10884 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10885 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10886 { echo "$as_me:$LINENO: result: yes" >&5
10887 echo "${ECHO_T}yes" >&6; }
10889 # FIXME - insert some real tests, host_os isn't really good enough
10892 if test -n "$STRIP" ; then
10893 striplib="$STRIP -x"
10894 old_striplib="$STRIP -S"
10895 { echo "$as_me:$LINENO: result: yes" >&5
10896 echo "${ECHO_T}yes" >&6; }
10898 { echo "$as_me:$LINENO: result: no" >&5
10899 echo "${ECHO_T}no" >&6; }
10903 { echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6; }
10909 if test "x$enable_dlopen" != xyes; then
10910 enable_dlopen=unknown
10911 enable_dlopen_self=unknown
10912 enable_dlopen_self_static=unknown
10919 lt_cv_dlopen="load_add_on"
10921 lt_cv_dlopen_self=yes
10925 lt_cv_dlopen="LoadLibrary"
10930 lt_cv_dlopen="dlopen"
10935 # if libdl is installed we need to link against it
10936 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10937 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 ac_check_lib_save_LIBS=$LIBS
10943 cat >conftest.$ac_ext <<_ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_link") 2>conftest.er1
10974 grep -v '^ *+' conftest.er1 >conftest.err
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } && {
10979 test -z "$ac_c_werror_flag" ||
10980 test ! -s conftest.err
10981 } && test -s conftest$ac_exeext &&
10982 $as_test_x conftest$ac_exeext; then
10983 ac_cv_lib_dl_dlopen=yes
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 ac_cv_lib_dl_dlopen=no
10991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992 conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10997 if test $ac_cv_lib_dl_dlopen = yes; then
10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11001 lt_cv_dlopen="dyld"
11003 lt_cv_dlopen_self=yes
11010 { echo "$as_me:$LINENO: checking for shl_load" >&5
11011 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11012 if test "${ac_cv_func_shl_load+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023 #define shl_load innocuous_shl_load
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char shl_load (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
11031 # include <limits.h>
11033 # include <assert.h>
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11045 /* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048 #if defined __stub_shl_load || defined __stub___shl_load
11055 return shl_load ();
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_link") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest$ac_exeext &&
11077 $as_test_x conftest$ac_exeext; then
11078 ac_cv_func_shl_load=yes
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_cv_func_shl_load=no
11086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087 conftest$ac_exeext conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11090 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11091 if test $ac_cv_func_shl_load = yes; then
11092 lt_cv_dlopen="shl_load"
11094 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11095 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11096 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 ac_check_lib_save_LIBS=$LIBS
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11108 /* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11118 return shl_load ();
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_link") 2>conftest.er1
11132 grep -v '^ *+' conftest.er1 >conftest.err
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && {
11137 test -z "$ac_c_werror_flag" ||
11138 test ! -s conftest.err
11139 } && test -s conftest$ac_exeext &&
11140 $as_test_x conftest$ac_exeext; then
11141 ac_cv_lib_dld_shl_load=yes
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ac_cv_lib_dld_shl_load=no
11149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150 conftest$ac_exeext conftest.$ac_ext
11151 LIBS=$ac_check_lib_save_LIBS
11153 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11154 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11155 if test $ac_cv_lib_dld_shl_load = yes; then
11156 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11158 { echo "$as_me:$LINENO: checking for dlopen" >&5
11159 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11160 if test "${ac_cv_func_dlopen+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11171 #define dlopen innocuous_dlopen
11173 /* System header to define __stub macros and hopefully few prototypes,
11174 which can conflict with char dlopen (); below.
11175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11176 <limits.h> exists even on freestanding compilers. */
11179 # include <limits.h>
11181 # include <assert.h>
11186 /* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
11193 /* The GNU C library defines this for functions which it implements
11194 to always fail with ENOSYS. Some functions are actually named
11195 something starting with __ and the normal name is an alias. */
11196 #if defined __stub_dlopen || defined __stub___dlopen
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (ac_try="$ac_link"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_link") 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest$ac_exeext &&
11225 $as_test_x conftest$ac_exeext; then
11226 ac_cv_func_dlopen=yes
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_cv_func_dlopen=no
11234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11235 conftest$ac_exeext conftest.$ac_ext
11237 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11238 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11239 if test $ac_cv_func_dlopen = yes; then
11240 lt_cv_dlopen="dlopen"
11242 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11243 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11244 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 ac_check_lib_save_LIBS=$LIBS
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_link") 2>conftest.er1
11280 grep -v '^ *+' conftest.er1 >conftest.err
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && {
11285 test -z "$ac_c_werror_flag" ||
11286 test ! -s conftest.err
11287 } && test -s conftest$ac_exeext &&
11288 $as_test_x conftest$ac_exeext; then
11289 ac_cv_lib_dl_dlopen=yes
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_cv_lib_dl_dlopen=no
11297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11298 conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11301 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11303 if test $ac_cv_lib_dl_dlopen = yes; then
11304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11306 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_check_lib_save_LIBS=$LIBS
11312 LIBS="-lsvld $LIBS"
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11335 rm -f conftest.$ac_objext conftest$ac_exeext
11336 if { (ac_try="$ac_link"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_link") 2>conftest.er1
11344 grep -v '^ *+' conftest.er1 >conftest.err
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } && {
11349 test -z "$ac_c_werror_flag" ||
11350 test ! -s conftest.err
11351 } && test -s conftest$ac_exeext &&
11352 $as_test_x conftest$ac_exeext; then
11353 ac_cv_lib_svld_dlopen=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_cv_lib_svld_dlopen=no
11361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11362 conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11365 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11366 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11367 if test $ac_cv_lib_svld_dlopen = yes; then
11368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11370 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11371 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11372 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 ac_check_lib_save_LIBS=$LIBS
11377 cat >conftest.$ac_ext <<_ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11384 /* Override any GCC internal prototype to avoid an error.
11385 Use char because int might match the return type of a GCC
11386 builtin and then its argument prototype would still apply. */
11394 return dld_link ();
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (ac_try="$ac_link"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_link") 2>conftest.er1
11408 grep -v '^ *+' conftest.er1 >conftest.err
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } && {
11413 test -z "$ac_c_werror_flag" ||
11414 test ! -s conftest.err
11415 } && test -s conftest$ac_exeext &&
11416 $as_test_x conftest$ac_exeext; then
11417 ac_cv_lib_dld_dld_link=yes
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422 ac_cv_lib_dld_dld_link=no
11425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426 conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11429 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11430 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11431 if test $ac_cv_lib_dld_dld_link = yes; then
11432 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11453 if test "x$lt_cv_dlopen" != xno; then
11459 case $lt_cv_dlopen in
11461 save_CPPFLAGS="$CPPFLAGS"
11462 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11464 save_LDFLAGS="$LDFLAGS"
11465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11468 LIBS="$lt_cv_dlopen_libs $LIBS"
11470 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11471 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11472 if test "${lt_cv_dlopen_self+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 if test "$cross_compiling" = yes; then :
11476 lt_cv_dlopen_self=cross
11478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11479 lt_status=$lt_dlunknown
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11481 "configure"
11482 #include "confdefs.h"
11491 # define LT_DLGLOBAL RTLD_GLOBAL
11494 # define LT_DLGLOBAL DL_GLOBAL
11496 # define LT_DLGLOBAL 0
11500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11501 find out it does not work in some platform. */
11502 #ifndef LT_DLLAZY_OR_NOW
11504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11507 # define LT_DLLAZY_OR_NOW DL_LAZY
11510 # define LT_DLLAZY_OR_NOW RTLD_NOW
11513 # define LT_DLLAZY_OR_NOW DL_NOW
11515 # define LT_DLLAZY_OR_NOW 0
11523 extern "C" void exit (int);
11526 void fnord() { int i=42;}
11529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530 int status = $lt_dlunknown;
11534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11535 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11536 /* dlclose (self); */
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11549 (./conftest; exit; ) >&5 2>/dev/null
11551 case x$lt_status in
11552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11554 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11557 # compilation failed
11558 lt_cv_dlopen_self=no
11565 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11566 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11568 if test "x$lt_cv_dlopen_self" = xyes; then
11569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11570 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11571 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11572 if test "${lt_cv_dlopen_self_static+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 if test "$cross_compiling" = yes; then :
11576 lt_cv_dlopen_self_static=cross
11578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11579 lt_status=$lt_dlunknown
11580 cat > conftest.$ac_ext <<EOF
11581 #line 11581 "configure"
11582 #include "confdefs.h"
11591 # define LT_DLGLOBAL RTLD_GLOBAL
11594 # define LT_DLGLOBAL DL_GLOBAL
11596 # define LT_DLGLOBAL 0
11600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11601 find out it does not work in some platform. */
11602 #ifndef LT_DLLAZY_OR_NOW
11604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11607 # define LT_DLLAZY_OR_NOW DL_LAZY
11610 # define LT_DLLAZY_OR_NOW RTLD_NOW
11613 # define LT_DLLAZY_OR_NOW DL_NOW
11615 # define LT_DLLAZY_OR_NOW 0
11623 extern "C" void exit (int);
11626 void fnord() { int i=42;}
11629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11630 int status = $lt_dlunknown;
11634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11636 /* dlclose (self); */
11644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11645 (eval $ac_link) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11649 (./conftest; exit; ) >&5 2>/dev/null
11651 case x$lt_status in
11652 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11653 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11654 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11657 # compilation failed
11658 lt_cv_dlopen_self_static=no
11665 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11666 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11669 CPPFLAGS="$save_CPPFLAGS"
11670 LDFLAGS="$save_LDFLAGS"
11675 case $lt_cv_dlopen_self in
11676 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11677 *) enable_dlopen_self=unknown ;;
11680 case $lt_cv_dlopen_self_static in
11681 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11682 *) enable_dlopen_self_static=unknown ;;
11687 # Report which library types will actually be built
11688 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11689 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11690 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11691 echo "${ECHO_T}$can_build_shared" >&6; }
11693 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11694 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11695 test "$can_build_shared" = "no" && enable_shared=no
11697 # On AIX, shared libraries and static libraries use the same namespace, and
11698 # are all built from PIC.
11701 test "$enable_shared" = yes && enable_static=no
11702 if test -n "$RANLIB"; then
11703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11704 postinstall_cmds='$RANLIB $lib'
11709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11710 test "$enable_shared" = yes && enable_static=no
11714 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11715 echo "${ECHO_T}$enable_shared" >&6; }
11717 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11718 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11719 # Make sure either enable_shared or enable_static is yes.
11720 test "$enable_shared" = yes || enable_static=yes
11721 { echo "$as_me:$LINENO: result: $enable_static" >&5
11722 echo "${ECHO_T}$enable_static" >&6; }
11724 # The else clause should only fire when bootstrapping the
11725 # libtool distribution, otherwise you forgot to ship ltmain.sh
11726 # with your package, and you will get complaints that there are
11727 # no rules to generate ltmain.sh.
11728 if test -f "$ltmain"; then
11729 # See if we are running on zsh, and set the options which allow our commands through
11730 # without removal of \ escapes.
11731 if test -n "${ZSH_VERSION+set}" ; then
11732 setopt NO_GLOB_SUBST
11734 # Now quote all the things that may contain metacharacters while being
11735 # careful not to overquote the AC_SUBSTed values. We take copies of the
11736 # variables and quote the copies for generation of the libtool script.
11737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11741 deplibs_check_method reload_flag reload_cmds need_locks \
11742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11743 lt_cv_sys_global_symbol_to_c_name_address \
11744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11745 old_postinstall_cmds old_postuninstall_cmds \
11749 lt_prog_compiler_wl \
11750 lt_prog_compiler_pic \
11751 lt_prog_compiler_static \
11752 lt_prog_compiler_no_builtin_flag \
11753 export_dynamic_flag_spec \
11754 thread_safe_flag_spec \
11755 whole_archive_flag_spec \
11756 enable_shared_with_static_runtimes \
11758 old_archive_from_new_cmds \
11763 compiler_lib_search_path \
11765 archive_expsym_cmds \
11767 postuninstall_cmds \
11768 old_archive_from_expsyms_cmds \
11769 allow_undefined_flag \
11770 no_undefined_flag \
11771 export_symbols_cmds \
11772 hardcode_libdir_flag_spec \
11773 hardcode_libdir_flag_spec_ld \
11774 hardcode_libdir_separator \
11775 hardcode_automatic \
11777 module_expsym_cmds \
11778 lt_cv_prog_compiler_c_o \
11781 include_expsyms; do
11784 old_archive_cmds | \
11785 old_archive_from_new_cmds | \
11787 archive_expsym_cmds | \
11789 module_expsym_cmds | \
11790 old_archive_from_expsyms_cmds | \
11791 export_symbols_cmds | \
11792 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11793 postinstall_cmds | postuninstall_cmds | \
11794 old_postinstall_cmds | old_postuninstall_cmds | \
11795 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11796 # Double-quote double-evaled strings.
11797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11806 *'\$0 --fallback-echo"')
11807 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11811 cfgfile="${ofile}T"
11812 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11814 { echo "$as_me:$LINENO: creating $ofile" >&5
11815 echo "$as_me: creating $ofile" >&6;}
11817 cat <<__EOF__ >> "$cfgfile"
11820 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11821 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11824 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11825 # Free Software Foundation, Inc.
11827 # This file is part of GNU Libtool:
11828 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11830 # This program is free software; you can redistribute it and/or modify
11831 # it under the terms of the GNU General Public License as published by
11832 # the Free Software Foundation; either version 2 of the License, or
11833 # (at your option) any later version.
11835 # This program is distributed in the hope that it will be useful, but
11836 # WITHOUT ANY WARRANTY; without even the implied warranty of
11837 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11838 # General Public License for more details.
11840 # You should have received a copy of the GNU General Public License
11841 # along with this program; if not, write to the Free Software
11842 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11844 # As a special exception to the GNU General Public License, if you
11845 # distribute this file as part of a program that contains a
11846 # configuration script generated by Autoconf, you may include it under
11847 # the same distribution terms that you use for the rest of that program.
11849 # A sed program that does not truncate output.
11852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11853 Xsed="$SED -e 1s/^X//"
11855 # The HP-UX ksh and POSIX shell print the target directory to stdout
11856 # if CDPATH is set.
11857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11859 # The names of the tagged configurations supported by this script.
11862 # ### BEGIN LIBTOOL CONFIG
11864 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11866 # Shell to use when invoking shell scripts.
11869 # Whether or not to build shared libraries.
11870 build_libtool_libs=$enable_shared
11872 # Whether or not to build static libraries.
11873 build_old_libs=$enable_static
11875 # Whether or not to add -lc for building shared libraries.
11876 build_libtool_need_lc=$archive_cmds_need_lc
11878 # Whether or not to disallow shared libs when runtime libs are static
11879 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11881 # Whether or not to optimize for fast installation.
11882 fast_install=$enable_fast_install
11885 host_alias=$host_alias
11889 # The build system.
11890 build_alias=$build_alias
11894 # An echo program that does not interpret backslashes.
11899 AR_FLAGS=$lt_AR_FLAGS
11904 # LTCC compiler flags.
11905 LTCFLAGS=$lt_LTCFLAGS
11907 # A language-specific compiler.
11910 # Is the compiler the GNU C compiler?
11916 # The linker used to build libraries.
11919 # Whether we need hard or soft links.
11922 # A BSD-compatible nm program.
11925 # A symbol stripping program
11928 # Used to examine libraries when file_magic_cmd begins "file"
11929 MAGIC_CMD=$MAGIC_CMD
11931 # Used on cygwin: DLL creation program.
11934 # Used on cygwin: object dumper.
11937 # Used on cygwin: assembler.
11940 # The name of the directory that contains temporary libtool files.
11943 # How to create reloadable object files.
11944 reload_flag=$lt_reload_flag
11945 reload_cmds=$lt_reload_cmds
11947 # How to pass a linker flag through the compiler.
11948 wl=$lt_lt_prog_compiler_wl
11950 # Object file suffix (normally "o").
11951 objext="$ac_objext"
11953 # Old archive suffix (normally "a").
11956 # Shared library suffix (normally ".so").
11957 shrext_cmds='$shrext_cmds'
11959 # Executable file suffix (normally "").
11962 # Additional compiler flags for building library objects.
11963 pic_flag=$lt_lt_prog_compiler_pic
11966 # What is the maximum length of a command?
11967 max_cmd_len=$lt_cv_sys_max_cmd_len
11969 # Does compiler simultaneously support -c and -o options?
11970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11972 # Must we lock files when doing compilation?
11973 need_locks=$lt_need_locks
11975 # Do we need the lib prefix for modules?
11976 need_lib_prefix=$need_lib_prefix
11978 # Do we need a version for libraries?
11979 need_version=$need_version
11981 # Whether dlopen is supported.
11982 dlopen_support=$enable_dlopen
11984 # Whether dlopen of programs is supported.
11985 dlopen_self=$enable_dlopen_self
11987 # Whether dlopen of statically linked programs is supported.
11988 dlopen_self_static=$enable_dlopen_self_static
11990 # Compiler flag to prevent dynamic linking.
11991 link_static_flag=$lt_lt_prog_compiler_static
11993 # Compiler flag to turn off builtin functions.
11994 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11996 # Compiler flag to allow reflexive dlopens.
11997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11999 # Compiler flag to generate shared objects directly from archives.
12000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12002 # Compiler flag to generate thread-safe objects.
12003 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12005 # Library versioning type.
12006 version_type=$version_type
12008 # Format of library name prefix.
12009 libname_spec=$lt_libname_spec
12011 # List of archive names. First name is the real one, the rest are links.
12012 # The last name is the one that the linker finds with -lNAME.
12013 library_names_spec=$lt_library_names_spec
12015 # The coded name of the library, if different from the real name.
12016 soname_spec=$lt_soname_spec
12018 # Commands used to build and install an old-style archive.
12020 old_archive_cmds=$lt_old_archive_cmds
12021 old_postinstall_cmds=$lt_old_postinstall_cmds
12022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12024 # Create an old-style archive from a shared archive.
12025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12027 # Create a temporary old-style archive to link instead of a shared archive.
12028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12030 # Commands used to build and install a shared archive.
12031 archive_cmds=$lt_archive_cmds
12032 archive_expsym_cmds=$lt_archive_expsym_cmds
12033 postinstall_cmds=$lt_postinstall_cmds
12034 postuninstall_cmds=$lt_postuninstall_cmds
12036 # Commands used to build a loadable module (assumed same as above if empty)
12037 module_cmds=$lt_module_cmds
12038 module_expsym_cmds=$lt_module_expsym_cmds
12040 # Commands to strip libraries.
12041 old_striplib=$lt_old_striplib
12042 striplib=$lt_striplib
12044 # Dependencies to place before the objects being linked to create a
12046 predep_objects=$lt_predep_objects
12048 # Dependencies to place after the objects being linked to create a
12050 postdep_objects=$lt_postdep_objects
12052 # Dependencies to place before the objects being linked to create a
12054 predeps=$lt_predeps
12056 # Dependencies to place after the objects being linked to create a
12058 postdeps=$lt_postdeps
12060 # The library search path used internally by the compiler when linking
12061 # a shared library.
12062 compiler_lib_search_path=$lt_compiler_lib_search_path
12064 # Method to check whether dependent libraries are shared objects.
12065 deplibs_check_method=$lt_deplibs_check_method
12067 # Command to use when deplibs_check_method == file_magic.
12068 file_magic_cmd=$lt_file_magic_cmd
12070 # Flag that allows shared libraries with undefined symbols to be built.
12071 allow_undefined_flag=$lt_allow_undefined_flag
12073 # Flag that forces no undefined symbols.
12074 no_undefined_flag=$lt_no_undefined_flag
12076 # Commands used to finish a libtool library installation in a directory.
12077 finish_cmds=$lt_finish_cmds
12079 # Same as above, but a single script fragment to be evaled but not shown.
12080 finish_eval=$lt_finish_eval
12082 # Take the output of nm and produce a listing of raw symbols and C names.
12083 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12085 # Transform the output of nm in a proper C declaration
12086 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12088 # Transform the output of nm in a C name address pair
12089 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12091 # This is the shared library runtime path variable.
12092 runpath_var=$runpath_var
12094 # This is the shared library path variable.
12095 shlibpath_var=$shlibpath_var
12097 # Is shlibpath searched before the hard-coded library search path?
12098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12100 # How to hardcode a shared library path into an executable.
12101 hardcode_action=$hardcode_action
12103 # Whether we should hardcode library paths into libraries.
12104 hardcode_into_libs=$hardcode_into_libs
12106 # Flag to hardcode \$libdir into a binary during linking.
12107 # This must work even if \$libdir does not exist.
12108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12110 # If ld is used when linking, flag to hardcode \$libdir into
12111 # a binary during linking. This must work even if \$libdir does
12113 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12115 # Whether we need a single -rpath flag with a separated argument.
12116 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12118 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12119 # resulting binary.
12120 hardcode_direct=$hardcode_direct
12122 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12123 # resulting binary.
12124 hardcode_minus_L=$hardcode_minus_L
12126 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12127 # the resulting binary.
12128 hardcode_shlibpath_var=$hardcode_shlibpath_var
12130 # Set to yes if building a shared library automatically hardcodes DIR into the library
12131 # and all subsequent libraries and executables linked against it.
12132 hardcode_automatic=$hardcode_automatic
12134 # Variables whose values should be saved in libtool wrapper scripts and
12135 # restored at relink time.
12136 variables_saved_for_relink="$variables_saved_for_relink"
12138 # Whether libtool must link a program against all its dependency libraries.
12139 link_all_deplibs=$link_all_deplibs
12141 # Compile-time system search path for libraries
12142 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12144 # Run-time system search path for libraries
12145 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12147 # Fix the shell variable \$srcfile for the compiler.
12148 fix_srcfile_path=$lt_fix_srcfile_path
12150 # Set to yes if exported symbols are required.
12151 always_export_symbols=$always_export_symbols
12153 # The commands to list exported symbols.
12154 export_symbols_cmds=$lt_export_symbols_cmds
12156 # The commands to extract the exported symbol list from a shared archive.
12157 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12159 # Symbols that should not be listed in the preloaded symbols.
12160 exclude_expsyms=$lt_exclude_expsyms
12162 # Symbols that must always be exported.
12163 include_expsyms=$lt_include_expsyms
12165 # ### END LIBTOOL CONFIG
12172 cat <<\EOF >> "$cfgfile"
12174 # AIX sometimes has problems with the GCC collect2 program. For some
12175 # reason, if we set the COLLECT_NAMES environment variable, the problems
12176 # vanish in a puff of smoke.
12177 if test "X${COLLECT_NAMES+set}" != Xset; then
12179 export COLLECT_NAMES
12185 # We use sed instead of cat because bash on DJGPP gets confused if
12186 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12187 # text mode, it properly converts lines to CR/LF. This bash problem
12188 # is reportedly fixed, but why not run on old versions too?
12189 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12191 mv -f "$cfgfile" "$ofile" || \
12192 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12196 # If there is no Makefile yet, we rely on a make rule to execute
12197 # `config.status --recheck' to rerun these tests and create the
12198 # libtool script then.
12199 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12200 if test -f "$ltmain_in"; then
12201 test -f Makefile && make "$ltmain"
12207 ac_cpp='$CPP $CPPFLAGS'
12208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12215 # Check whether --with-tags was given.
12216 if test "${with_tags+set}" = set; then
12217 withval=$with_tags; tagnames="$withval"
12221 if test -f "$ltmain" && test -n "$tagnames"; then
12222 if test ! -f "${ofile}"; then
12223 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12224 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12227 if test -z "$LTCC"; then
12228 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12229 if test -z "$LTCC"; then
12230 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12231 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12234 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12237 if test -z "$LTCFLAGS"; then
12238 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12241 # Extract list of available tagged configurations in $ofile.
12242 # Note that this assumes the entire list is on one line.
12243 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12246 for tagname in $tagnames; do
12248 # Check whether tagname contains only valid characters
12249 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12251 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12252 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12253 { (exit 1); exit 1; }; }
12257 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12259 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12260 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12261 { (exit 1); exit 1; }; }
12264 # Update the list of available tags.
12265 if test -n "$tagname"; then
12266 echo appending configuration tag \"$tagname\" to $ofile
12270 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12271 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12272 (test "X$CXX" != "Xg++"))) ; then
12274 ac_cpp='$CXXCPP $CPPFLAGS'
12275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12282 archive_cmds_need_lc_CXX=no
12283 allow_undefined_flag_CXX=
12284 always_export_symbols_CXX=no
12285 archive_expsym_cmds_CXX=
12286 export_dynamic_flag_spec_CXX=
12287 hardcode_direct_CXX=no
12288 hardcode_libdir_flag_spec_CXX=
12289 hardcode_libdir_flag_spec_ld_CXX=
12290 hardcode_libdir_separator_CXX=
12291 hardcode_minus_L_CXX=no
12292 hardcode_shlibpath_var_CXX=unsupported
12293 hardcode_automatic_CXX=no
12295 module_expsym_cmds_CXX=
12296 link_all_deplibs_CXX=unknown
12297 old_archive_cmds_CXX=$old_archive_cmds
12298 no_undefined_flag_CXX=
12299 whole_archive_flag_spec_CXX=
12300 enable_shared_with_static_runtimes_CXX=no
12302 # Dependencies to place before and after the object being linked:
12303 predep_objects_CXX=
12304 postdep_objects_CXX=
12307 compiler_lib_search_path_CXX=
12309 # Source file extension for C++ test sources.
12312 # Object file extension for compiled C++ test sources.
12316 # Code to be used in simple compile tests
12317 lt_simple_compile_test_code="int some_variable = 0;"
12319 # Code to be used in simple link tests
12320 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12322 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12324 # If no C compiler was specified, use CC.
12327 # If no C compiler flags were specified, use CFLAGS.
12328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12330 # Allow CC to be a program name with arguments.
12334 # save warnings/boilerplate of simple test code
12335 ac_outfile=conftest.$ac_objext
12336 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12338 _lt_compiler_boilerplate=`cat conftest.err`
12341 ac_outfile=conftest.$ac_objext
12342 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12344 _lt_linker_boilerplate=`cat conftest.err`
12348 # Allow CC to be a program name with arguments.
12353 lt_save_with_gnu_ld=$with_gnu_ld
12354 lt_save_path_LD=$lt_cv_path_LD
12355 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12356 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12358 $as_unset lt_cv_prog_gnu_ld
12360 if test -n "${lt_cv_path_LDCXX+set}"; then
12361 lt_cv_path_LD=$lt_cv_path_LDCXX
12363 $as_unset lt_cv_path_LD
12365 test -z "${LDCXX+set}" || LD=$LDCXX
12369 for cc_temp in $compiler""; do
12371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12380 # We don't want -fno-exception wen compiling C++ code, so set the
12381 # no_builtin_flag separately
12382 if test "$GXX" = yes; then
12383 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12385 lt_prog_compiler_no_builtin_flag_CXX=
12388 if test "$GXX" = yes; then
12389 # Set up default GNU C++ configuration
12392 # Check whether --with-gnu-ld was given.
12393 if test "${with_gnu_ld+set}" = set; then
12394 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12400 if test "$GCC" = yes; then
12401 # Check if gcc -print-prog-name=ld gives a path.
12402 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12403 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12406 # gcc leaves a trailing carriage return which upsets mingw
12407 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12409 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12412 # Accept absolute paths.
12414 re_direlt='/[^/][^/]*/\.\./'
12415 # Canonicalize the pathname of ld
12416 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12417 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12418 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12420 test -z "$LD" && LD="$ac_prog"
12423 # If it fails, then pretend we aren't using GCC.
12427 # If it is relative, then search for the first ld in PATH.
12428 with_gnu_ld=unknown
12431 elif test "$with_gnu_ld" = yes; then
12432 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12433 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12435 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12436 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12438 if test "${lt_cv_path_LD+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 if test -z "$LD"; then
12442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12443 for ac_dir in $PATH; do
12445 test -z "$ac_dir" && ac_dir=.
12446 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12447 lt_cv_path_LD="$ac_dir/$ac_prog"
12448 # Check to see if the program is GNU ld. I'd rather use --version,
12449 # but apparently some variants of GNU ld only accept -v.
12450 # Break only if it was the GNU/non-GNU ld that we prefer.
12451 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12452 *GNU* | *'with BFD'*)
12453 test "$with_gnu_ld" != no && break
12456 test "$with_gnu_ld" != yes && break
12463 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12467 LD="$lt_cv_path_LD"
12468 if test -n "$LD"; then
12469 { echo "$as_me:$LINENO: result: $LD" >&5
12470 echo "${ECHO_T}$LD" >&6; }
12472 { echo "$as_me:$LINENO: result: no" >&5
12473 echo "${ECHO_T}no" >&6; }
12475 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12476 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12477 { (exit 1); exit 1; }; }
12478 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12479 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12480 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12484 case `$LD -v 2>&1 </dev/null` in
12485 *GNU* | *'with BFD'*)
12486 lt_cv_prog_gnu_ld=yes
12489 lt_cv_prog_gnu_ld=no
12493 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12494 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12495 with_gnu_ld=$lt_cv_prog_gnu_ld
12499 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12500 # archiving commands below assume that GNU ld is being used.
12501 if test "$with_gnu_ld" = yes; then
12502 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12503 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'
12505 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12508 # If archive_cmds runs LD, not CC, wlarc should be empty
12509 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12510 # investigate it a little bit more. (MM)
12513 # ancient GNU ld didn't support --whole-archive et. al.
12514 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12515 grep 'no-whole-archive' > /dev/null; then
12516 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12518 whole_archive_flag_spec_CXX=
12524 # A generic and very simple default shared library creation
12525 # command for GNU C++ for the case where it uses the native
12526 # linker, instead of GNU ld. If possible, this setting should
12527 # overridden to take advantage of the native linker features on
12528 # the platform it is being used on.
12529 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12532 # Commands to make compiler produce verbose output that lists
12533 # what "hidden" libraries, object files and flags are used when
12534 # linking a shared library.
12535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12543 # PORTME: fill in a description of your system's C++ link characteristics
12544 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12545 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12549 # FIXME: insert proper C++ library support
12553 if test "$host_cpu" = ia64; then
12554 # On IA64, the linker does run time linking by default, so we don't
12555 # have to do anything special.
12556 aix_use_runtimelinking=no
12557 exp_sym_flag='-Bexport'
12560 aix_use_runtimelinking=no
12562 # Test if we are trying to use run time linking or normal
12563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12564 # need to do runtime linking.
12565 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12566 for ld_flag in $LDFLAGS; do
12569 aix_use_runtimelinking=yes
12577 exp_sym_flag='-bexport'
12578 no_entry_flag='-bnoentry'
12581 # When large executables or shared objects are built, AIX ld can
12582 # have problems creating the table of contents. If linking a library
12583 # or program results in "error TOC overflow" add -mminimal-toc to
12584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12587 archive_cmds_CXX=''
12588 hardcode_direct_CXX=yes
12589 hardcode_libdir_separator_CXX=':'
12590 link_all_deplibs_CXX=yes
12592 if test "$GXX" = yes; then
12593 case $host_os in aix4.[012]|aix4.[012].*)
12594 # We only want to do this on AIX 4.2 and lower, the check
12595 # below for broken collect2 doesn't work under 4.3+
12596 collect2name=`${CC} -print-prog-name=collect2`
12597 if test -f "$collect2name" && \
12598 strings "$collect2name" | grep resolve_lib_name >/dev/null
12600 # We have reworked collect2
12603 # We have old collect2
12604 hardcode_direct_CXX=unsupported
12605 # It fails to find uninstalled libraries when the uninstalled
12606 # path is not listed in the libpath. Setting hardcode_minus_L
12607 # to unsupported forces relinking
12608 hardcode_minus_L_CXX=yes
12609 hardcode_libdir_flag_spec_CXX='-L$libdir'
12610 hardcode_libdir_separator_CXX=
12614 shared_flag='-shared'
12615 if test "$aix_use_runtimelinking" = yes; then
12616 shared_flag="$shared_flag "'${wl}-G'
12620 if test "$host_cpu" = ia64; then
12621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12622 # chokes on -Wl,-G. The following line is correct:
12625 if test "$aix_use_runtimelinking" = yes; then
12626 shared_flag='${wl}-G'
12628 shared_flag='${wl}-bM:SRE'
12633 # It seems that -bexpall does not export symbols beginning with
12634 # underscore (_), so it is better to generate a list of symbols to export.
12635 always_export_symbols_CXX=yes
12636 if test "$aix_use_runtimelinking" = yes; then
12637 # Warning - without using the other runtime loading flags (-brtl),
12638 # -berok will link without error, but may produce a broken library.
12639 allow_undefined_flag_CXX='-berok'
12640 # Determine the default libpath from the value encoded in an empty executable.
12641 cat >conftest.$ac_ext <<_ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12665 grep -v '^ *+' conftest.er1 >conftest.err
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } && {
12670 test -z "$ac_cxx_werror_flag" ||
12671 test ! -s conftest.err
12672 } && test -s conftest$ac_exeext &&
12673 $as_test_x conftest$ac_exeext; then
12675 lt_aix_libpath_sed='
12676 /Import File Strings/,/^$/ {
12682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12683 # Check for a 64-bit object if we didn't find anything.
12684 if test -z "$aix_libpath"; then
12685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12695 conftest$ac_exeext conftest.$ac_ext
12696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12698 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12700 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"
12702 if test "$host_cpu" = ia64; then
12703 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12704 allow_undefined_flag_CXX="-z nodefs"
12705 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"
12707 # Determine the default libpath from the value encoded in an empty executable.
12708 cat >conftest.$ac_ext <<_ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12732 grep -v '^ *+' conftest.er1 >conftest.err
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_cxx_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest$ac_exeext &&
12740 $as_test_x conftest$ac_exeext; then
12742 lt_aix_libpath_sed='
12743 /Import File Strings/,/^$/ {
12749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12750 # Check for a 64-bit object if we didn't find anything.
12751 if test -z "$aix_libpath"; then
12752 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12762 conftest$ac_exeext conftest.$ac_ext
12763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12765 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12766 # Warning - without using the other run time loading flags,
12767 # -berok will link without error, but may produce a broken library.
12768 no_undefined_flag_CXX=' ${wl}-bernotok'
12769 allow_undefined_flag_CXX=' ${wl}-berok'
12770 # Exported symbols can be pulled into shared objects from archives
12771 whole_archive_flag_spec_CXX='$convenience'
12772 archive_cmds_need_lc_CXX=yes
12773 # This is similar to how AIX traditionally builds its shared libraries.
12774 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'
12780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12781 allow_undefined_flag_CXX=unsupported
12782 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12783 # support --undefined. This deserves some investigation. FIXME
12784 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12791 case $cc_basename in
12793 # FIXME: insert proper C++ library support
12799 cygwin* | mingw* | pw32*)
12800 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12801 # as there is no search path for DLLs.
12802 hardcode_libdir_flag_spec_CXX='-L$libdir'
12803 allow_undefined_flag_CXX=unsupported
12804 always_export_symbols_CXX=no
12805 enable_shared_with_static_runtimes_CXX=yes
12807 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12808 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'
12809 # If the export-symbols file already is a .def file (1st line
12810 # is EXPORTS), use it as is; otherwise, prepend...
12811 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12812 cp $export_symbols $output_objdir/$soname.def;
12814 echo EXPORTS > $output_objdir/$soname.def;
12815 cat $export_symbols >> $output_objdir/$soname.def;
12817 $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'
12822 darwin* | rhapsody*)
12824 rhapsody* | darwin1.[012])
12825 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12828 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12829 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12831 case ${MACOSX_DEPLOYMENT_TARGET} in
12833 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12836 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12842 archive_cmds_need_lc_CXX=no
12843 hardcode_direct_CXX=no
12844 hardcode_automatic_CXX=yes
12845 hardcode_shlibpath_var_CXX=unsupported
12846 whole_archive_flag_spec_CXX=''
12847 link_all_deplibs_CXX=yes
12849 if test "$GXX" = yes ; then
12850 lt_int_apple_cc_single_mod=no
12851 output_verbose_link_cmd='echo'
12852 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12853 lt_int_apple_cc_single_mod=yes
12855 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12856 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12858 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'
12860 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12862 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12863 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12865 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12867 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}'
12869 case $cc_basename in
12871 output_verbose_link_cmd='echo'
12872 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'
12873 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12874 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12875 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}'
12876 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}'
12886 case $cc_basename in
12888 # FIXME: insert proper C++ library support
12892 # Green Hills C++ Compiler
12893 # FIXME: insert proper C++ library support
12897 # FIXME: insert proper C++ library support
12903 # C++ shared libraries reported to be fairly broken before switch to ELF
12907 archive_cmds_need_lc_CXX=no
12909 freebsd* | dragonfly*)
12910 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12917 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12918 hardcode_libdir_separator_CXX=:
12919 export_dynamic_flag_spec_CXX='${wl}-E'
12920 hardcode_direct_CXX=yes
12921 hardcode_minus_L_CXX=yes # Not in the search PATH,
12922 # but as the default
12923 # location of the library.
12925 case $cc_basename in
12927 # FIXME: insert proper C++ library support
12931 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'
12932 # Commands to make compiler produce verbose output that lists
12933 # what "hidden" libraries, object files and flags are used when
12934 # linking a shared library.
12936 # There doesn't appear to be a way to prevent this compiler from
12937 # explicitly linking system object files so we need to strip them
12938 # from the output so that they don't get included in the library
12940 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'
12943 if test "$GXX" = yes; then
12944 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'
12946 # FIXME: insert proper C++ library support
12953 if test $with_gnu_ld = no; then
12954 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12955 hardcode_libdir_separator_CXX=:
12960 export_dynamic_flag_spec_CXX='${wl}-E'
12966 hardcode_direct_CXX=no
12967 hardcode_shlibpath_var_CXX=no
12970 hardcode_direct_CXX=yes
12971 hardcode_minus_L_CXX=yes # Not in the search PATH,
12972 # but as the default
12973 # location of the library.
12977 case $cc_basename in
12979 # FIXME: insert proper C++ library support
12985 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12988 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12991 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12994 # Commands to make compiler produce verbose output that lists
12995 # what "hidden" libraries, object files and flags are used when
12996 # linking a shared library.
12998 # There doesn't appear to be a way to prevent this compiler from
12999 # explicitly linking system object files so we need to strip them
13000 # from the output so that they don't get included in the library
13002 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'
13005 if test "$GXX" = yes; then
13006 if test $with_gnu_ld = no; then
13009 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13012 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13015 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'
13020 # FIXME: insert proper C++ library support
13027 hardcode_direct_CXX=no
13028 hardcode_shlibpath_var_CXX=no
13029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13030 export_dynamic_flag_spec_CXX='${wl}-E'
13031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13032 # Instead, shared libraries are loaded at an image base (0x10000000 by
13033 # default) and relocated if they conflict, which is a slow very memory
13034 # consuming and fragmenting process. To avoid this, we pick a random,
13035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13037 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'
13038 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'
13041 case $cc_basename in
13044 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'
13046 # Archives containing C++ object files must be created using
13047 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13048 # necessary to make sure instantiated templates are included
13050 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13053 if test "$GXX" = yes; then
13054 if test "$with_gnu_ld" = no; then
13055 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'
13057 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'
13060 link_all_deplibs_CXX=yes
13063 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13064 hardcode_libdir_separator_CXX=:
13066 linux* | k*bsd*-gnu)
13067 case $cc_basename in
13069 # Kuck and Associates, Inc. (KAI) C++ Compiler
13071 # KCC will only create a shared library if the output file
13072 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13073 # to its proper name (with version) after linking.
13074 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'
13075 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'
13076 # Commands to make compiler produce verbose output that lists
13077 # what "hidden" libraries, object files and flags are used when
13078 # linking a shared library.
13080 # There doesn't appear to be a way to prevent this compiler from
13081 # explicitly linking system object files so we need to strip them
13082 # from the output so that they don't get included in the library
13084 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'
13086 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13089 # Archives containing C++ object files must be created using
13090 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13091 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13096 # version 8.0 and above of icpc choke on multiply defined symbols
13097 # if we add $predep_objects and $postdep_objects, however 7.1 and
13098 # earlier do not add the objects themselves.
13099 case `$CC -V 2>&1` in
13101 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13102 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'
13104 *) # Version 8.0 or newer
13107 ia64*) tmp_idyn=' -i_dynamic';;
13109 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110 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'
13113 archive_cmds_need_lc_CXX=no
13114 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13115 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13116 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13119 # Portland Group C++ compiler
13120 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13121 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'
13123 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13124 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13125 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'
13129 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13130 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'
13132 runpath_var=LD_RUN_PATH
13133 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13134 hardcode_libdir_separator_CXX=:
13136 # Commands to make compiler produce verbose output that lists
13137 # what "hidden" libraries, object files and flags are used when
13138 # linking a shared library.
13140 # There doesn't appear to be a way to prevent this compiler from
13141 # explicitly linking system object files so we need to strip them
13142 # from the output so that they don't get included in the library
13144 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'
13147 case `$CC -V 2>&1 | sed 5q` in
13150 no_undefined_flag_CXX=' -zdefs'
13151 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13152 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'
13153 hardcode_libdir_flag_spec_CXX='-R$libdir'
13154 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'
13156 # Not sure whether something based on
13157 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13159 output_verbose_link_cmd='echo'
13161 # Archives containing C++ object files must be created using
13162 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13163 # necessary to make sure instantiated templates are included
13165 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13172 # FIXME: insert proper C++ library support
13176 # FIXME: insert proper C++ library support
13180 case $cc_basename in
13182 # FIXME: insert proper C++ library support
13186 # FIXME: insert proper C++ library support
13192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13193 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13195 hardcode_libdir_flag_spec_CXX='-R$libdir'
13196 hardcode_direct_CXX=yes
13197 hardcode_shlibpath_var_CXX=no
13199 # Workaround some broken pre-1.5 toolchains
13200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13203 # C++ shared libraries are fairly broken
13207 if test -f /usr/libexec/ld.so; then
13208 hardcode_direct_CXX=yes
13209 hardcode_shlibpath_var_CXX=no
13210 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13213 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13214 export_dynamic_flag_spec_CXX='${wl}-E'
13215 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13217 output_verbose_link_cmd='echo'
13223 case $cc_basename in
13225 # Kuck and Associates, Inc. (KAI) C++ Compiler
13227 # KCC will only create a shared library if the output file
13228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13229 # to its proper name (with version) after linking.
13230 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'
13232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13233 hardcode_libdir_separator_CXX=:
13235 # Archives containing C++ object files must be created using
13236 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13237 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13241 # Rational C++ 2.4.1
13242 # FIXME: insert proper C++ library support
13246 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13247 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'
13249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13250 hardcode_libdir_separator_CXX=:
13252 # Commands to make compiler produce verbose output that lists
13253 # what "hidden" libraries, object files and flags are used when
13254 # linking a shared library.
13256 # There doesn't appear to be a way to prevent this compiler from
13257 # explicitly linking system object files so we need to strip them
13258 # from the output so that they don't get included in the library
13260 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'
13263 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13264 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13265 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'
13267 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13268 hardcode_libdir_separator_CXX=:
13270 # Commands to make compiler produce verbose output that lists
13271 # what "hidden" libraries, object files and flags are used when
13272 # linking a shared library.
13273 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13276 # FIXME: insert proper C++ library support
13283 case $cc_basename in
13285 # Kuck and Associates, Inc. (KAI) C++ Compiler
13287 # KCC will only create a shared library if the output file
13288 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13289 # to its proper name (with version) after linking.
13290 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'
13292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13293 hardcode_libdir_separator_CXX=:
13295 # Archives containing C++ object files must be created using
13296 # the KAI C++ compiler.
13297 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13300 # Rational C++ 2.4.1
13301 # FIXME: insert proper C++ library support
13305 allow_undefined_flag_CXX=' -expect_unresolved \*'
13306 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'
13307 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13308 echo "-hidden">> $lib.exp~
13309 $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~
13312 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13313 hardcode_libdir_separator_CXX=:
13315 # Commands to make compiler produce verbose output that lists
13316 # what "hidden" libraries, object files and flags are used when
13317 # linking a shared library.
13319 # There doesn't appear to be a way to prevent this compiler from
13320 # explicitly linking system object files so we need to strip them
13321 # from the output so that they don't get included in the library
13323 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'
13326 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13327 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13328 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'
13330 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13331 hardcode_libdir_separator_CXX=:
13333 # Commands to make compiler produce verbose output that lists
13334 # what "hidden" libraries, object files and flags are used when
13335 # linking a shared library.
13336 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13339 # FIXME: insert proper C++ library support
13346 # FIXME: insert proper C++ library support
13350 case $cc_basename in
13353 # FIXME: insert proper C++ library support
13358 # FIXME: insert proper C++ library support
13362 # FIXME: insert proper C++ library support
13368 case $cc_basename in
13370 # Sun C++ 4.2, 5.x and Centerline C++
13371 archive_cmds_need_lc_CXX=yes
13372 no_undefined_flag_CXX=' -zdefs'
13373 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13374 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13375 $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'
13377 hardcode_libdir_flag_spec_CXX='-R$libdir'
13378 hardcode_shlibpath_var_CXX=no
13380 solaris2.[0-5] | solaris2.[0-5].*) ;;
13382 # The compiler driver will combine and reorder linker options,
13383 # but understands `-z linker_flag'.
13384 # Supported since Solaris 2.6 (maybe 2.5.1?)
13385 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13388 link_all_deplibs_CXX=yes
13390 output_verbose_link_cmd='echo'
13392 # Archives containing C++ object files must be created using
13393 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13394 # necessary to make sure instantiated templates are included
13396 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13399 # Green Hills C++ Compiler
13400 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13402 # The C++ compiler must be used to create the archive.
13403 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13406 # GNU C++ compiler with Solaris linker
13407 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13408 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13409 if $CC --version | grep -v '^2\.7' > /dev/null; then
13410 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13411 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13412 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13414 # Commands to make compiler produce verbose output that lists
13415 # what "hidden" libraries, object files and flags are used when
13416 # linking a shared library.
13417 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13419 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13421 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13422 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13423 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13425 # Commands to make compiler produce verbose output that lists
13426 # what "hidden" libraries, object files and flags are used when
13427 # linking a shared library.
13428 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13431 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13433 solaris2.[0-5] | solaris2.[0-5].*) ;;
13435 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13442 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13443 no_undefined_flag_CXX='${wl}-z,text'
13444 archive_cmds_need_lc_CXX=no
13445 hardcode_shlibpath_var_CXX=no
13446 runpath_var='LD_RUN_PATH'
13448 case $cc_basename in
13450 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13451 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13454 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13455 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13459 sysv5* | sco3.2v5* | sco5v6*)
13460 # Note: We can NOT use -z defs as we might desire, because we do not
13461 # link with -lc, and that would cause any symbols used from libc to
13462 # always be unresolved, which means just about no library would
13463 # ever link correctly. If we're not using GNU ld we use -z text
13464 # though, which does catch some bad symbols but isn't as heavy-handed
13466 # For security reasons, it is highly recommended that you always
13467 # use absolute paths for naming shared libraries, and exclude the
13468 # DT_RUNPATH tag from executables and libraries. But doing so
13469 # requires that you compile everything twice, which is a pain.
13470 # So that behaviour is only enabled if SCOABSPATH is set to a
13471 # non-empty value in the environment. Most likely only useful for
13472 # creating official distributions of packages.
13473 # This is a hack until libtool officially supports absolute path
13474 # names for shared libraries.
13475 no_undefined_flag_CXX='${wl}-z,text'
13476 allow_undefined_flag_CXX='${wl}-z,nodefs'
13477 archive_cmds_need_lc_CXX=no
13478 hardcode_shlibpath_var_CXX=no
13479 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13480 hardcode_libdir_separator_CXX=':'
13481 link_all_deplibs_CXX=yes
13482 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13483 runpath_var='LD_RUN_PATH'
13485 case $cc_basename in
13487 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 case $cc_basename in
13499 # NonStop-UX NCC 3.20
13500 # FIXME: insert proper C++ library support
13504 # FIXME: insert proper C++ library support
13510 # FIXME: insert proper C++ library support
13514 # FIXME: insert proper C++ library support
13518 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13519 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13520 test "$ld_shlibs_CXX" = no && can_build_shared=no
13526 cat > conftest.$ac_ext <<EOF
13530 Foo (void) { a = 0; }
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; then
13541 # Parse the compiler output and extract the necessary
13542 # objects, libraries and library flags.
13544 # Sentinel used to keep track of whether or not we are before
13545 # the conftest object file.
13546 pre_test_object_deps_done=no
13548 # The `*' in the case matches for architectures that use `case' in
13549 # $output_verbose_cmd can trigger glob expansion during the loop
13550 # eval without this substitution.
13551 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13553 for p in `eval $output_verbose_link_cmd`; do
13557 # Some compilers place space between "-{L,R}" and the path.
13558 # Remove the space.
13559 if test $p = "-L" \
13560 || test $p = "-R"; then
13567 if test "$pre_test_object_deps_done" = no; then
13570 # Internal compiler library paths should come after those
13571 # provided the user. The postdeps already come after the
13572 # user supplied libs so there is no need to process them.
13573 if test -z "$compiler_lib_search_path_CXX"; then
13574 compiler_lib_search_path_CXX="${prev}${p}"
13576 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13579 # The "-l" case would never come before the object being
13580 # linked, so don't bother handling this case.
13583 if test -z "$postdeps_CXX"; then
13584 postdeps_CXX="${prev}${p}"
13586 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13592 # This assumes that the test object file only shows up
13593 # once in the compiler output.
13594 if test "$p" = "conftest.$objext"; then
13595 pre_test_object_deps_done=yes
13599 if test "$pre_test_object_deps_done" = no; then
13600 if test -z "$predep_objects_CXX"; then
13601 predep_objects_CXX="$p"
13603 predep_objects_CXX="$predep_objects_CXX $p"
13606 if test -z "$postdep_objects_CXX"; then
13607 postdep_objects_CXX="$p"
13609 postdep_objects_CXX="$postdep_objects_CXX $p"
13614 *) ;; # Ignore the rest.
13622 echo "libtool.m4: error: problem compiling CXX test program"
13625 $rm -f confest.$objext
13627 # PORTME: override above test on systems where it is broken
13630 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13631 # hack all around it, let's just trust "g++" to DTRT.
13632 predep_objects_CXX=
13633 postdep_objects_CXX=
13638 case `$CC -V 2>&1 | sed 5q` in
13642 # The more standards-conforming stlport4 library is
13643 # incompatible with the Cstd library. Avoid specifying
13644 # it if it's in CXXFLAGS. Ignore libCrun as
13645 # -library=stlport4 depends on it.
13646 case " $CXX $CXXFLAGS " in
13647 *" -library=stlport4 "*)
13648 solaris_use_stlport4=yes
13651 if test "$solaris_use_stlport4" != yes; then
13652 postdeps_CXX='-library=Cstd -library=Crun'
13659 case $cc_basename in
13661 # The more standards-conforming stlport4 library is
13662 # incompatible with the Cstd library. Avoid specifying
13663 # it if it's in CXXFLAGS. Ignore libCrun as
13664 # -library=stlport4 depends on it.
13665 case " $CXX $CXXFLAGS " in
13666 *" -library=stlport4 "*)
13667 solaris_use_stlport4=yes
13671 # Adding this requires a known-good setup of shared libraries for
13672 # Sun compiler versions before 5.6, else PIC objects from an old
13673 # archive will be linked into the output, leading to subtle bugs.
13674 if test "$solaris_use_stlport4" != yes; then
13675 postdeps_CXX='-library=Cstd -library=Crun'
13683 case " $postdeps_CXX " in
13684 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13687 lt_prog_compiler_wl_CXX=
13688 lt_prog_compiler_pic_CXX=
13689 lt_prog_compiler_static_CXX=
13691 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13692 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13694 # C++ specific cases for pic, static, wl, etc.
13695 if test "$GXX" = yes; then
13696 lt_prog_compiler_wl_CXX='-Wl,'
13697 lt_prog_compiler_static_CXX='-static'
13701 # All AIX code is PIC.
13702 if test "$host_cpu" = ia64; then
13703 # AIX 5 now supports IA64 processor
13704 lt_prog_compiler_static_CXX='-Bstatic'
13708 # FIXME: we need at least 68020 code to build shared libraries, but
13709 # adding the `-m68020' flag to GCC prevents building anything better,
13711 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13713 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13714 # PIC is the default for these OSes.
13716 mingw* | cygwin* | os2* | pw32*)
13717 # This hack is so that the source file can tell whether it is being
13718 # built for inclusion in a dll (and should export symbols for example).
13719 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13720 # (--disable-auto-import) libraries
13721 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13723 darwin* | rhapsody*)
13724 # PIC is the default on this platform
13725 # Common symbols not allowed in MH_DYLIB files
13726 lt_prog_compiler_pic_CXX='-fno-common'
13729 # DJGPP does not support shared libraries at all
13730 lt_prog_compiler_pic_CXX=
13733 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13734 # Instead, we relocate shared libraries at runtime.
13737 if test -d /usr/nec; then
13738 lt_prog_compiler_pic_CXX=-Kconform_pic
13742 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13743 # not for PA HP-UX.
13748 lt_prog_compiler_pic_CXX='-fPIC'
13753 lt_prog_compiler_pic_CXX='-fPIC'
13759 # All AIX code is PIC.
13760 if test "$host_cpu" = ia64; then
13761 # AIX 5 now supports IA64 processor
13762 lt_prog_compiler_static_CXX='-Bstatic'
13764 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13768 case $cc_basename in
13770 # Green Hills C++ Compiler
13771 # _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"
13776 # PIC is the default on this platform
13777 # Common symbols not allowed in MH_DYLIB files
13778 case $cc_basename in
13780 lt_prog_compiler_pic_CXX='-qnocommon'
13781 lt_prog_compiler_wl_CXX='-Wl,'
13786 case $cc_basename in
13788 lt_prog_compiler_pic_CXX='-KPIC'
13791 # Green Hills C++ Compiler
13792 lt_prog_compiler_pic_CXX='-pic'
13798 freebsd* | dragonfly*)
13799 # FreeBSD uses GNU C++
13801 hpux9* | hpux10* | hpux11*)
13802 case $cc_basename in
13804 lt_prog_compiler_wl_CXX='-Wl,'
13805 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13806 if test "$host_cpu" != ia64; then
13807 lt_prog_compiler_pic_CXX='+Z'
13811 lt_prog_compiler_wl_CXX='-Wl,'
13812 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13818 lt_prog_compiler_pic_CXX='+Z'
13827 # This is c89, which is MS Visual C++ (no shared libs)
13828 # Anyone wants to do a port?
13830 irix5* | irix6* | nonstopux*)
13831 case $cc_basename in
13833 lt_prog_compiler_wl_CXX='-Wl,'
13834 lt_prog_compiler_static_CXX='-non_shared'
13835 # CC pic flag -KPIC is the default.
13841 linux* | k*bsd*-gnu)
13842 case $cc_basename in
13845 lt_prog_compiler_wl_CXX='--backend -Wl,'
13846 lt_prog_compiler_pic_CXX='-fPIC'
13850 lt_prog_compiler_wl_CXX='-Wl,'
13851 lt_prog_compiler_pic_CXX='-KPIC'
13852 lt_prog_compiler_static_CXX='-static'
13855 # Portland Group C++ compiler.
13856 lt_prog_compiler_wl_CXX='-Wl,'
13857 lt_prog_compiler_pic_CXX='-fpic'
13858 lt_prog_compiler_static_CXX='-Bstatic'
13862 # Make sure the PIC flag is empty. It appears that all Alpha
13863 # Linux and Compaq Tru64 Unix objects are PIC.
13864 lt_prog_compiler_pic_CXX=
13865 lt_prog_compiler_static_CXX='-non_shared'
13868 case `$CC -V 2>&1 | sed 5q` in
13871 lt_prog_compiler_pic_CXX='-KPIC'
13872 lt_prog_compiler_static_CXX='-Bstatic'
13873 lt_prog_compiler_wl_CXX='-Qoption ld '
13884 case $cc_basename in
13886 lt_prog_compiler_pic_CXX='-W c,exportall'
13894 osf3* | osf4* | osf5*)
13895 case $cc_basename in
13897 lt_prog_compiler_wl_CXX='--backend -Wl,'
13900 # Rational C++ 2.4.1
13901 lt_prog_compiler_pic_CXX='-pic'
13904 # Digital/Compaq C++
13905 lt_prog_compiler_wl_CXX='-Wl,'
13906 # Make sure the PIC flag is empty. It appears that all Alpha
13907 # Linux and Compaq Tru64 Unix objects are PIC.
13908 lt_prog_compiler_pic_CXX=
13909 lt_prog_compiler_static_CXX='-non_shared'
13918 case $cc_basename in
13920 # Sun C++ 4.2, 5.x and Centerline C++
13921 lt_prog_compiler_pic_CXX='-KPIC'
13922 lt_prog_compiler_static_CXX='-Bstatic'
13923 lt_prog_compiler_wl_CXX='-Qoption ld '
13926 # Green Hills C++ Compiler
13927 lt_prog_compiler_pic_CXX='-PIC'
13934 case $cc_basename in
13937 lt_prog_compiler_pic_CXX='-pic'
13938 lt_prog_compiler_static_CXX='-Bstatic'
13942 lt_prog_compiler_pic_CXX='-pic'
13949 case $cc_basename in
13951 # NonStop-UX NCC 3.20
13952 lt_prog_compiler_pic_CXX='-KPIC'
13958 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13959 case $cc_basename in
13961 lt_prog_compiler_wl_CXX='-Wl,'
13962 lt_prog_compiler_pic_CXX='-KPIC'
13963 lt_prog_compiler_static_CXX='-Bstatic'
13970 lt_prog_compiler_can_build_shared_CXX=no
13975 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13976 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13979 # Check to make sure the PIC flag actually works.
13981 if test -n "$lt_prog_compiler_pic_CXX"; then
13983 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13984 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13985 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 lt_prog_compiler_pic_works_CXX=no
13989 ac_outfile=conftest.$ac_objext
13990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13991 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13992 # Insert the option either (1) after the last *FLAGS variable, or
13993 # (2) before a word containing "conftest.", or (3) at the end.
13994 # Note that $ac_compile itself does not contain backslashes and begins
13995 # with a dollar sign (not a hyphen), so the echo should work correctly.
13996 # The option is referenced via a variable to avoid confusing sed.
13997 lt_compile=`echo "$ac_compile" | $SED \
13998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14000 -e 's:$: $lt_compiler_flag:'`
14001 (eval echo "\"\$as_me:14001: $lt_compile\"" >&5)
14002 (eval "$lt_compile" 2>conftest.err)
14004 cat conftest.err >&5
14005 echo "$as_me:14005: \$? = $ac_status" >&5
14006 if (exit $ac_status) && test -s "$ac_outfile"; then
14007 # The compiler can only warn and ignore the option if not recognized
14008 # So say no if there are warnings other than the usual output.
14009 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14012 lt_prog_compiler_pic_works_CXX=yes
14018 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14019 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14021 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14022 case $lt_prog_compiler_pic_CXX in
14024 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14027 lt_prog_compiler_pic_CXX=
14028 lt_prog_compiler_can_build_shared_CXX=no
14033 # For platforms which do not support PIC, -DPIC is meaningless:
14035 lt_prog_compiler_pic_CXX=
14038 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14043 # Check to make sure the static flag actually works.
14045 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14046 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14047 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14048 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 lt_prog_compiler_static_works_CXX=no
14052 save_LDFLAGS="$LDFLAGS"
14053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14056 # The linker can only warn and ignore the option if not recognized
14057 # So say no if there are warnings
14058 if test -s conftest.err; then
14059 # Append any errors to the config.log.
14060 cat conftest.err 1>&5
14061 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14063 if diff conftest.exp conftest.er2 >/dev/null; then
14064 lt_prog_compiler_static_works_CXX=yes
14067 lt_prog_compiler_static_works_CXX=yes
14071 LDFLAGS="$save_LDFLAGS"
14074 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14075 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14077 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14080 lt_prog_compiler_static_CXX=
14084 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14085 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14086 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 lt_cv_prog_compiler_c_o_CXX=no
14090 $rm -r conftest 2>/dev/null
14094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14096 lt_compiler_flag="-o out/conftest2.$ac_objext"
14097 # Insert the option either (1) after the last *FLAGS variable, or
14098 # (2) before a word containing "conftest.", or (3) at the end.
14099 # Note that $ac_compile itself does not contain backslashes and begins
14100 # with a dollar sign (not a hyphen), so the echo should work correctly.
14101 lt_compile=`echo "$ac_compile" | $SED \
14102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104 -e 's:$: $lt_compiler_flag:'`
14105 (eval echo "\"\$as_me:14105: $lt_compile\"" >&5)
14106 (eval "$lt_compile" 2>out/conftest.err)
14108 cat out/conftest.err >&5
14109 echo "$as_me:14109: \$? = $ac_status" >&5
14110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14112 # The compiler can only warn and ignore the option if not recognized
14113 # So say no if there are warnings
14114 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14117 lt_cv_prog_compiler_c_o_CXX=yes
14122 # SGI C++ compiler will create directory out/ii_files/ for
14123 # template instantiation
14124 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14125 $rm out/* && rmdir out
14131 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14132 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14135 hard_links="nottested"
14136 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14137 # do not overwrite the value of need_locks provided by the user
14138 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14139 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144 ln conftest.a conftest.b 2>&5 || hard_links=no
14145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14146 { echo "$as_me:$LINENO: result: $hard_links" >&5
14147 echo "${ECHO_T}$hard_links" >&6; }
14148 if test "$hard_links" = no; then
14149 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14150 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14157 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14158 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14160 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14163 # If we're using GNU nm, then we don't want the "-C" option.
14164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14165 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14166 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'
14168 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'
14172 export_symbols_cmds_CXX="$ltdll_cmds"
14175 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'
14178 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14182 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14184 test "$ld_shlibs_CXX" = no && can_build_shared=no
14187 # Do we need to explicitly link libc?
14189 case "x$archive_cmds_need_lc_CXX" in
14191 # Assume -lc should be added
14192 archive_cmds_need_lc_CXX=yes
14194 if test "$enable_shared" = yes && test "$GCC" = yes; then
14195 case $archive_cmds_CXX in
14197 # FIXME: we may have to deal with multi-command sequences.
14200 # Test whether the compiler implicitly links with -lc since on some
14201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14202 # to ld, don't add -lc before -lgcc.
14203 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } 2>conftest.err; then
14215 libobjs=conftest.$ac_objext
14217 wl=$lt_prog_compiler_wl_CXX
14218 pic_flag=$lt_prog_compiler_pic_CXX
14224 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14225 allow_undefined_flag_CXX=
14226 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14227 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }
14232 archive_cmds_need_lc_CXX=no
14234 archive_cmds_need_lc_CXX=yes
14236 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14238 cat conftest.err 1>&5
14241 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14242 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14249 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14250 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14251 library_names_spec=
14252 libname_spec='lib$name'
14256 postuninstall_cmds=
14260 shlibpath_overrides_runpath=unknown
14262 dynamic_linker="$host_os ld.so"
14263 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14265 need_lib_prefix=unknown
14266 hardcode_into_libs=no
14268 # when you set need_version to no, make sure it does not cause -set_version
14269 # flags to be left without arguments
14270 need_version=unknown
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14276 shlibpath_var=LIBPATH
14278 # AIX 3 has no versioning support, so we append a major version to the name.
14279 soname_spec='${libname}${release}${shared_ext}$major'
14286 hardcode_into_libs=yes
14287 if test "$host_cpu" = ia64; then
14288 # AIX 5 supports IA64
14289 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14290 shlibpath_var=LD_LIBRARY_PATH
14292 # With GCC up to 2.95.x, collect2 would create an import file
14293 # for dependence libraries. The import file would start with
14294 # the line `#! .'. This would cause the generated library to
14295 # depend on `.', always an invalid library. This was fixed in
14296 # development snapshots of GCC prior to 3.0.
14298 aix4 | aix4.[01] | aix4.[01].*)
14299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14301 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14304 can_build_shared=no
14308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14309 # soname into executable. Probably we can add versioning support to
14310 # collect2, so additional links can be useful in future.
14311 if test "$aix_use_runtimelinking" = yes; then
14312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14313 # instead of lib<name>.a to let people know that these are not
14314 # typical AIX shared libraries.
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317 # We preserve .a as extension for shared libraries through AIX4.2
14318 # and later when we are not doing run time linking.
14319 library_names_spec='${libname}${release}.a $libname.a'
14320 soname_spec='${libname}${release}${shared_ext}$major'
14322 shlibpath_var=LIBPATH
14327 library_names_spec='$libname.ixlibrary $libname.a'
14328 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14329 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'
14333 library_names_spec='${libname}${shared_ext}'
14334 dynamic_linker="$host_os ld.so"
14335 shlibpath_var=LIBRARY_PATH
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342 soname_spec='${libname}${release}${shared_ext}$major'
14343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14344 shlibpath_var=LD_LIBRARY_PATH
14345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14347 # the default ld.so.conf also contains /usr/contrib/lib and
14348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14349 # libtool to hard-code these into programs
14352 cygwin* | mingw* | pw32*)
14353 version_type=windows
14358 case $GCC,$host_os in
14359 yes,cygwin* | yes,mingw* | yes,pw32*)
14360 library_names_spec='$libname.dll.a'
14361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14362 postinstall_cmds='base_file=`basename \${file}`~
14363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14364 dldir=$destdir/`dirname \$dlpath`~
14365 test -d \$dldir || mkdir -p \$dldir~
14366 $install_prog $dir/$dlname \$dldir/$dlname~
14367 chmod a+x \$dldir/$dlname'
14368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14369 dlpath=$dir/\$dldll~
14371 shlibpath_overrides_runpath=yes
14375 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14376 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14377 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14380 # MinGW DLLs use traditional 'lib' prefix
14381 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14382 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14383 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14384 # It is most probably a Windows format PATH printed by
14385 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14386 # path with ; separators, and with drive letters. We can handle the
14387 # drive letters (cygwin fileutils understands them), so leave them,
14388 # especially as we might pass files found there to a mingw objdump,
14389 # which wouldn't understand a cygwinified path. Ahh.
14390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14396 # pw32 DLLs use 'pw' prefix rather than 'lib'
14397 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14403 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14406 dynamic_linker='Win32 ld.exe'
14407 # FIXME: first we should search . and the directory the executable is in
14411 darwin* | rhapsody*)
14412 dynamic_linker="$host_os dyld"
14413 version_type=darwin
14416 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14417 soname_spec='${libname}${release}${major}$shared_ext'
14418 shlibpath_overrides_runpath=yes
14419 shlibpath_var=DYLD_LIBRARY_PATH
14420 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 shlibpath_var=LD_LIBRARY_PATH
14438 freebsd* | dragonfly*)
14439 # DragonFly does not have aout. When/if they implement a new
14440 # versioning mechanism, adjust this.
14441 if test -x /usr/bin/objformat; then
14442 objformat=`/usr/bin/objformat`
14445 freebsd[123]*) objformat=aout ;;
14446 *) objformat=elf ;;
14449 version_type=freebsd-$objformat
14450 case $version_type in
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14461 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=yes
14466 freebsd3.[01]* | freebsdelf3.[01]*)
14467 shlibpath_overrides_runpath=yes
14468 hardcode_into_libs=yes
14470 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14471 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14472 shlibpath_overrides_runpath=no
14473 hardcode_into_libs=yes
14475 *) # from 4.6 on, and DragonFly
14476 shlibpath_overrides_runpath=yes
14477 hardcode_into_libs=yes
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 hardcode_into_libs=yes
14492 hpux9* | hpux10* | hpux11*)
14493 # Give a soname corresponding to the major version so that dld.sl refuses to
14494 # link against other versions.
14501 hardcode_into_libs=yes
14502 dynamic_linker="$host_os dld.so"
14503 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 if test "X$HPUX_IA64_MODE" = X32; then
14508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14516 hardcode_into_libs=yes
14517 dynamic_linker="$host_os dld.sl"
14518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14527 dynamic_linker="$host_os dld.sl"
14528 shlibpath_var=SHLIB_PATH
14529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14534 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14535 postinstall_cmds='chmod 555 $lib'
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14543 soname_spec='${libname}${release}${shared_ext}$major'
14544 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14545 shlibpath_var=LD_LIBRARY_PATH
14546 shlibpath_overrides_runpath=no
14547 hardcode_into_libs=yes
14550 irix5* | irix6* | nonstopux*)
14552 nonstopux*) version_type=nonstopux ;;
14554 if test "$lt_cv_prog_gnu_ld" = yes; then
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14565 irix5* | nonstopux*)
14566 libsuff= shlibsuff=
14569 case $LD in # libtool.m4 will add one of these switches to LD
14570 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14571 libsuff= shlibsuff= libmagic=32-bit;;
14572 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14573 libsuff=32 shlibsuff=N32 libmagic=N32;;
14574 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14575 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14576 *) libsuff= shlibsuff= libmagic=never-match;;
14580 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14581 shlibpath_overrides_runpath=no
14582 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14583 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14584 hardcode_into_libs=yes
14587 # No shared lib support for Linux oldld, aout, or coff.
14588 linux*oldld* | linux*aout* | linux*coff*)
14592 # This must be Linux ELF.
14593 linux* | k*bsd*-gnu)
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=no
14602 # This implies no fast_install, which is unacceptable.
14603 # Some rework will be needed to allow for fast_install
14604 # before this can be enabled.
14605 hardcode_into_libs=yes
14606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14609 # Append ld.so.conf contents to the search path
14610 if test -f /etc/ld.so.conf; then
14611 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' ' '`
14612 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14615 # We used to test for /lib/ld.so.1 and disable shared libraries on
14616 # powerpc, because MkLinux only supported shared libraries with the
14617 # GNU dynamic linker. Since this was broken with cross compilers,
14618 # most powerpc-linux boxes support dynamic linking these days and
14619 # people can always --disable-shared, the test was removed, and we
14620 # assume the GNU/Linux dynamic linker is in use.
14621 dynamic_linker='GNU/Linux ld.so'
14628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14631 dynamic_linker='NetBSD (a.out) ld.so'
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 dynamic_linker='NetBSD ld.elf_so'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=yes
14639 hardcode_into_libs=yes
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=yes
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 shlibpath_overrides_runpath=yes
14661 sys_lib_dlsearch_path_spec="/usr/lib"
14663 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14665 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14666 *) need_version=no ;;
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14670 shlibpath_var=LD_LIBRARY_PATH
14671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14673 openbsd2.[89] | openbsd2.[89].*)
14674 shlibpath_overrides_runpath=no
14677 shlibpath_overrides_runpath=yes
14681 shlibpath_overrides_runpath=yes
14686 libname_spec='$name'
14689 library_names_spec='$libname${shared_ext} $libname.a'
14690 dynamic_linker='OS/2 ld.exe'
14691 shlibpath_var=LIBPATH
14694 osf3* | osf4* | osf5*)
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 shlibpath_overrides_runpath=yes
14717 hardcode_into_libs=yes
14718 # ldd complains unless libraries are executable
14719 postinstall_cmds='chmod +x $lib'
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14725 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 shlibpath_overrides_runpath=yes
14728 if test "$with_gnu_ld" = yes; then
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 case $host_vendor in
14741 shlibpath_overrides_runpath=no
14743 export_dynamic_flag_spec='${wl}-Blargedynsym'
14744 runpath_var=LD_RUN_PATH
14752 shlibpath_overrides_runpath=no
14753 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14759 if test -d /usr/nec ;then
14761 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14762 soname_spec='$libname${shared_ext}.$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14768 version_type=freebsd-elf
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 hardcode_into_libs=yes
14775 if test "$with_gnu_ld" = yes; then
14776 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14777 shlibpath_overrides_runpath=no
14779 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14780 shlibpath_overrides_runpath=yes
14783 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14787 sys_lib_dlsearch_path_spec='/usr/lib'
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 soname_spec='${libname}${release}${shared_ext}$major'
14794 shlibpath_var=LD_LIBRARY_PATH
14801 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14802 echo "${ECHO_T}$dynamic_linker" >&6; }
14803 test "$dynamic_linker" = no && can_build_shared=no
14805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14806 if test "$GCC" = yes; then
14807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14810 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14812 hardcode_action_CXX=
14813 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14814 test -n "$runpath_var_CXX" || \
14815 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14817 # We can hardcode non-existant directories.
14818 if test "$hardcode_direct_CXX" != no &&
14819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14820 # have to relink, otherwise we might link with an installed library
14821 # when we should be linking with a yet-to-be-installed one
14822 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14823 test "$hardcode_minus_L_CXX" != no; then
14824 # Linking always hardcodes the temporary library directory.
14825 hardcode_action_CXX=relink
14827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14828 hardcode_action_CXX=immediate
14831 # We cannot hardcode anything, or else we can only hardcode existing
14833 hardcode_action_CXX=unsupported
14835 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14836 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14838 if test "$hardcode_action_CXX" = relink; then
14839 # Fast installation is not supported
14840 enable_fast_install=no
14841 elif test "$shlibpath_overrides_runpath" = yes ||
14842 test "$enable_shared" = no; then
14843 # Fast installation is not necessary
14844 enable_fast_install=needless
14848 # The else clause should only fire when bootstrapping the
14849 # libtool distribution, otherwise you forgot to ship ltmain.sh
14850 # with your package, and you will get complaints that there are
14851 # no rules to generate ltmain.sh.
14852 if test -f "$ltmain"; then
14853 # See if we are running on zsh, and set the options which allow our commands through
14854 # without removal of \ escapes.
14855 if test -n "${ZSH_VERSION+set}" ; then
14856 setopt NO_GLOB_SUBST
14858 # Now quote all the things that may contain metacharacters while being
14859 # careful not to overquote the AC_SUBSTed values. We take copies of the
14860 # variables and quote the copies for generation of the libtool script.
14861 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14863 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14864 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14865 deplibs_check_method reload_flag reload_cmds need_locks \
14866 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14867 lt_cv_sys_global_symbol_to_c_name_address \
14868 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14869 old_postinstall_cmds old_postuninstall_cmds \
14873 lt_prog_compiler_wl_CXX \
14874 lt_prog_compiler_pic_CXX \
14875 lt_prog_compiler_static_CXX \
14876 lt_prog_compiler_no_builtin_flag_CXX \
14877 export_dynamic_flag_spec_CXX \
14878 thread_safe_flag_spec_CXX \
14879 whole_archive_flag_spec_CXX \
14880 enable_shared_with_static_runtimes_CXX \
14881 old_archive_cmds_CXX \
14882 old_archive_from_new_cmds_CXX \
14883 predep_objects_CXX \
14884 postdep_objects_CXX \
14887 compiler_lib_search_path_CXX \
14889 archive_expsym_cmds_CXX \
14890 postinstall_cmds_CXX \
14891 postuninstall_cmds_CXX \
14892 old_archive_from_expsyms_cmds_CXX \
14893 allow_undefined_flag_CXX \
14894 no_undefined_flag_CXX \
14895 export_symbols_cmds_CXX \
14896 hardcode_libdir_flag_spec_CXX \
14897 hardcode_libdir_flag_spec_ld_CXX \
14898 hardcode_libdir_separator_CXX \
14899 hardcode_automatic_CXX \
14901 module_expsym_cmds_CXX \
14902 lt_cv_prog_compiler_c_o_CXX \
14903 fix_srcfile_path_CXX \
14904 exclude_expsyms_CXX \
14905 include_expsyms_CXX; do
14908 old_archive_cmds_CXX | \
14909 old_archive_from_new_cmds_CXX | \
14910 archive_cmds_CXX | \
14911 archive_expsym_cmds_CXX | \
14912 module_cmds_CXX | \
14913 module_expsym_cmds_CXX | \
14914 old_archive_from_expsyms_cmds_CXX | \
14915 export_symbols_cmds_CXX | \
14916 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14917 postinstall_cmds | postuninstall_cmds | \
14918 old_postinstall_cmds | old_postuninstall_cmds | \
14919 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14920 # Double-quote double-evaled strings.
14921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14930 *'\$0 --fallback-echo"')
14931 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14937 cat <<__EOF__ >> "$cfgfile"
14938 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14940 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14942 # Shell to use when invoking shell scripts.
14945 # Whether or not to build shared libraries.
14946 build_libtool_libs=$enable_shared
14948 # Whether or not to build static libraries.
14949 build_old_libs=$enable_static
14951 # Whether or not to add -lc for building shared libraries.
14952 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14954 # Whether or not to disallow shared libs when runtime libs are static
14955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14957 # Whether or not to optimize for fast installation.
14958 fast_install=$enable_fast_install
14961 host_alias=$host_alias
14965 # The build system.
14966 build_alias=$build_alias
14970 # An echo program that does not interpret backslashes.
14975 AR_FLAGS=$lt_AR_FLAGS
14980 # LTCC compiler flags.
14981 LTCFLAGS=$lt_LTCFLAGS
14983 # A language-specific compiler.
14984 CC=$lt_compiler_CXX
14986 # Is the compiler the GNU C compiler?
14992 # The linker used to build libraries.
14995 # Whether we need hard or soft links.
14998 # A BSD-compatible nm program.
15001 # A symbol stripping program
15004 # Used to examine libraries when file_magic_cmd begins "file"
15005 MAGIC_CMD=$MAGIC_CMD
15007 # Used on cygwin: DLL creation program.
15010 # Used on cygwin: object dumper.
15013 # Used on cygwin: assembler.
15016 # The name of the directory that contains temporary libtool files.
15019 # How to create reloadable object files.
15020 reload_flag=$lt_reload_flag
15021 reload_cmds=$lt_reload_cmds
15023 # How to pass a linker flag through the compiler.
15024 wl=$lt_lt_prog_compiler_wl_CXX
15026 # Object file suffix (normally "o").
15027 objext="$ac_objext"
15029 # Old archive suffix (normally "a").
15032 # Shared library suffix (normally ".so").
15033 shrext_cmds='$shrext_cmds'
15035 # Executable file suffix (normally "").
15038 # Additional compiler flags for building library objects.
15039 pic_flag=$lt_lt_prog_compiler_pic_CXX
15042 # What is the maximum length of a command?
15043 max_cmd_len=$lt_cv_sys_max_cmd_len
15045 # Does compiler simultaneously support -c and -o options?
15046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15048 # Must we lock files when doing compilation?
15049 need_locks=$lt_need_locks
15051 # Do we need the lib prefix for modules?
15052 need_lib_prefix=$need_lib_prefix
15054 # Do we need a version for libraries?
15055 need_version=$need_version
15057 # Whether dlopen is supported.
15058 dlopen_support=$enable_dlopen
15060 # Whether dlopen of programs is supported.
15061 dlopen_self=$enable_dlopen_self
15063 # Whether dlopen of statically linked programs is supported.
15064 dlopen_self_static=$enable_dlopen_self_static
15066 # Compiler flag to prevent dynamic linking.
15067 link_static_flag=$lt_lt_prog_compiler_static_CXX
15069 # Compiler flag to turn off builtin functions.
15070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15072 # Compiler flag to allow reflexive dlopens.
15073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15075 # Compiler flag to generate shared objects directly from archives.
15076 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15078 # Compiler flag to generate thread-safe objects.
15079 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15081 # Library versioning type.
15082 version_type=$version_type
15084 # Format of library name prefix.
15085 libname_spec=$lt_libname_spec
15087 # List of archive names. First name is the real one, the rest are links.
15088 # The last name is the one that the linker finds with -lNAME.
15089 library_names_spec=$lt_library_names_spec
15091 # The coded name of the library, if different from the real name.
15092 soname_spec=$lt_soname_spec
15094 # Commands used to build and install an old-style archive.
15096 old_archive_cmds=$lt_old_archive_cmds_CXX
15097 old_postinstall_cmds=$lt_old_postinstall_cmds
15098 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15100 # Create an old-style archive from a shared archive.
15101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15103 # Create a temporary old-style archive to link instead of a shared archive.
15104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15106 # Commands used to build and install a shared archive.
15107 archive_cmds=$lt_archive_cmds_CXX
15108 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15109 postinstall_cmds=$lt_postinstall_cmds
15110 postuninstall_cmds=$lt_postuninstall_cmds
15112 # Commands used to build a loadable module (assumed same as above if empty)
15113 module_cmds=$lt_module_cmds_CXX
15114 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15116 # Commands to strip libraries.
15117 old_striplib=$lt_old_striplib
15118 striplib=$lt_striplib
15120 # Dependencies to place before the objects being linked to create a
15122 predep_objects=$lt_predep_objects_CXX
15124 # Dependencies to place after the objects being linked to create a
15126 postdep_objects=$lt_postdep_objects_CXX
15128 # Dependencies to place before the objects being linked to create a
15130 predeps=$lt_predeps_CXX
15132 # Dependencies to place after the objects being linked to create a
15134 postdeps=$lt_postdeps_CXX
15136 # The library search path used internally by the compiler when linking
15137 # a shared library.
15138 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15140 # Method to check whether dependent libraries are shared objects.
15141 deplibs_check_method=$lt_deplibs_check_method
15143 # Command to use when deplibs_check_method == file_magic.
15144 file_magic_cmd=$lt_file_magic_cmd
15146 # Flag that allows shared libraries with undefined symbols to be built.
15147 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15149 # Flag that forces no undefined symbols.
15150 no_undefined_flag=$lt_no_undefined_flag_CXX
15152 # Commands used to finish a libtool library installation in a directory.
15153 finish_cmds=$lt_finish_cmds
15155 # Same as above, but a single script fragment to be evaled but not shown.
15156 finish_eval=$lt_finish_eval
15158 # Take the output of nm and produce a listing of raw symbols and C names.
15159 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15161 # Transform the output of nm in a proper C declaration
15162 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15164 # Transform the output of nm in a C name address pair
15165 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15167 # This is the shared library runtime path variable.
15168 runpath_var=$runpath_var
15170 # This is the shared library path variable.
15171 shlibpath_var=$shlibpath_var
15173 # Is shlibpath searched before the hard-coded library search path?
15174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15176 # How to hardcode a shared library path into an executable.
15177 hardcode_action=$hardcode_action_CXX
15179 # Whether we should hardcode library paths into libraries.
15180 hardcode_into_libs=$hardcode_into_libs
15182 # Flag to hardcode \$libdir into a binary during linking.
15183 # This must work even if \$libdir does not exist.
15184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15186 # If ld is used when linking, flag to hardcode \$libdir into
15187 # a binary during linking. This must work even if \$libdir does
15189 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15191 # Whether we need a single -rpath flag with a separated argument.
15192 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15194 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15195 # resulting binary.
15196 hardcode_direct=$hardcode_direct_CXX
15198 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15199 # resulting binary.
15200 hardcode_minus_L=$hardcode_minus_L_CXX
15202 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15203 # the resulting binary.
15204 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15206 # Set to yes if building a shared library automatically hardcodes DIR into the library
15207 # and all subsequent libraries and executables linked against it.
15208 hardcode_automatic=$hardcode_automatic_CXX
15210 # Variables whose values should be saved in libtool wrapper scripts and
15211 # restored at relink time.
15212 variables_saved_for_relink="$variables_saved_for_relink"
15214 # Whether libtool must link a program against all its dependency libraries.
15215 link_all_deplibs=$link_all_deplibs_CXX
15217 # Compile-time system search path for libraries
15218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15220 # Run-time system search path for libraries
15221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15223 # Fix the shell variable \$srcfile for the compiler.
15224 fix_srcfile_path=$lt_fix_srcfile_path
15226 # Set to yes if exported symbols are required.
15227 always_export_symbols=$always_export_symbols_CXX
15229 # The commands to list exported symbols.
15230 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15232 # The commands to extract the exported symbol list from a shared archive.
15233 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15235 # Symbols that should not be listed in the preloaded symbols.
15236 exclude_expsyms=$lt_exclude_expsyms_CXX
15238 # Symbols that must always be exported.
15239 include_expsyms=$lt_include_expsyms_CXX
15241 # ### END LIBTOOL TAG CONFIG: $tagname
15247 # If there is no Makefile yet, we rely on a make rule to execute
15248 # `config.status --recheck' to rerun these tests and create the
15249 # libtool script then.
15250 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15251 if test -f "$ltmain_in"; then
15252 test -f Makefile && make "$ltmain"
15258 ac_cpp='$CPP $CPPFLAGS'
15259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15267 with_gnu_ldcxx=$with_gnu_ld
15268 with_gnu_ld=$lt_save_with_gnu_ld
15269 lt_cv_path_LDCXX=$lt_cv_path_LD
15270 lt_cv_path_LD=$lt_save_path_LD
15271 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15272 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15280 if test -n "$F77" && test "X$F77" != "Xno"; then
15283 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15284 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15285 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15288 archive_cmds_need_lc_F77=no
15289 allow_undefined_flag_F77=
15290 always_export_symbols_F77=no
15291 archive_expsym_cmds_F77=
15292 export_dynamic_flag_spec_F77=
15293 hardcode_direct_F77=no
15294 hardcode_libdir_flag_spec_F77=
15295 hardcode_libdir_flag_spec_ld_F77=
15296 hardcode_libdir_separator_F77=
15297 hardcode_minus_L_F77=no
15298 hardcode_automatic_F77=no
15300 module_expsym_cmds_F77=
15301 link_all_deplibs_F77=unknown
15302 old_archive_cmds_F77=$old_archive_cmds
15303 no_undefined_flag_F77=
15304 whole_archive_flag_spec_F77=
15305 enable_shared_with_static_runtimes_F77=no
15307 # Source file extension for f77 test sources.
15310 # Object file extension for compiled f77 test sources.
15314 # Code to be used in simple compile tests
15315 lt_simple_compile_test_code="\
15321 # Code to be used in simple link tests
15322 lt_simple_link_test_code="\
15327 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15329 # If no C compiler was specified, use CC.
15332 # If no C compiler flags were specified, use CFLAGS.
15333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15335 # Allow CC to be a program name with arguments.
15339 # save warnings/boilerplate of simple test code
15340 ac_outfile=conftest.$ac_objext
15341 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15342 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15343 _lt_compiler_boilerplate=`cat conftest.err`
15346 ac_outfile=conftest.$ac_objext
15347 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15348 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15349 _lt_linker_boilerplate=`cat conftest.err`
15353 # Allow CC to be a program name with arguments.
15358 for cc_temp in $compiler""; do
15360 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15361 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15366 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15369 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15370 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15371 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15372 echo "${ECHO_T}$can_build_shared" >&6; }
15374 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15375 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15376 test "$can_build_shared" = "no" && enable_shared=no
15378 # On AIX, shared libraries and static libraries use the same namespace, and
15379 # are all built from PIC.
15382 test "$enable_shared" = yes && enable_static=no
15383 if test -n "$RANLIB"; then
15384 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15385 postinstall_cmds='$RANLIB $lib'
15389 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15390 test "$enable_shared" = yes && enable_static=no
15394 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15395 echo "${ECHO_T}$enable_shared" >&6; }
15397 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15398 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15399 # Make sure either enable_shared or enable_static is yes.
15400 test "$enable_shared" = yes || enable_static=yes
15401 { echo "$as_me:$LINENO: result: $enable_static" >&5
15402 echo "${ECHO_T}$enable_static" >&6; }
15407 lt_prog_compiler_wl_F77=
15408 lt_prog_compiler_pic_F77=
15409 lt_prog_compiler_static_F77=
15411 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15412 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15414 if test "$GCC" = yes; then
15415 lt_prog_compiler_wl_F77='-Wl,'
15416 lt_prog_compiler_static_F77='-static'
15420 # All AIX code is PIC.
15421 if test "$host_cpu" = ia64; then
15422 # AIX 5 now supports IA64 processor
15423 lt_prog_compiler_static_F77='-Bstatic'
15428 # FIXME: we need at least 68020 code to build shared libraries, but
15429 # adding the `-m68020' flag to GCC prevents building anything better,
15431 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15434 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15435 # PIC is the default for these OSes.
15438 mingw* | cygwin* | pw32* | os2*)
15439 # This hack is so that the source file can tell whether it is being
15440 # built for inclusion in a dll (and should export symbols for example).
15441 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15442 # (--disable-auto-import) libraries
15443 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15446 darwin* | rhapsody*)
15447 # PIC is the default on this platform
15448 # Common symbols not allowed in MH_DYLIB files
15449 lt_prog_compiler_pic_F77='-fno-common'
15453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15454 # Instead, we relocate shared libraries at runtime.
15458 # Just because we use GCC doesn't mean we suddenly get shared libraries
15459 # on systems that don't support them.
15460 lt_prog_compiler_can_build_shared_F77=no
15465 if test -d /usr/nec; then
15466 lt_prog_compiler_pic_F77=-Kconform_pic
15471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15472 # not for PA HP-UX.
15478 lt_prog_compiler_pic_F77='-fPIC'
15484 lt_prog_compiler_pic_F77='-fPIC'
15488 # PORTME Check for flag to pass linker flags through the system compiler.
15491 lt_prog_compiler_wl_F77='-Wl,'
15492 if test "$host_cpu" = ia64; then
15493 # AIX 5 now supports IA64 processor
15494 lt_prog_compiler_static_F77='-Bstatic'
15496 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15500 # PIC is the default on this platform
15501 # Common symbols not allowed in MH_DYLIB files
15502 case $cc_basename in
15504 lt_prog_compiler_pic_F77='-qnocommon'
15505 lt_prog_compiler_wl_F77='-Wl,'
15510 mingw* | cygwin* | pw32* | os2*)
15511 # This hack is so that the source file can tell whether it is being
15512 # built for inclusion in a dll (and should export symbols for example).
15513 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15516 hpux9* | hpux10* | hpux11*)
15517 lt_prog_compiler_wl_F77='-Wl,'
15518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15519 # not for PA HP-UX.
15525 lt_prog_compiler_pic_F77='+Z'
15528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15529 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15532 irix5* | irix6* | nonstopux*)
15533 lt_prog_compiler_wl_F77='-Wl,'
15534 # PIC (with -KPIC) is the default.
15535 lt_prog_compiler_static_F77='-non_shared'
15539 lt_prog_compiler_pic_F77='-KPIC'
15540 lt_prog_compiler_static_F77='-Bstatic'
15543 linux* | k*bsd*-gnu)
15544 case $cc_basename in
15546 lt_prog_compiler_wl_F77='-Wl,'
15547 lt_prog_compiler_pic_F77='-KPIC'
15548 lt_prog_compiler_static_F77='-static'
15550 pgcc* | pgf77* | pgf90* | pgf95*)
15551 # Portland Group compilers (*not* the Pentium gcc compiler,
15552 # which looks to be a dead project)
15553 lt_prog_compiler_wl_F77='-Wl,'
15554 lt_prog_compiler_pic_F77='-fpic'
15555 lt_prog_compiler_static_F77='-Bstatic'
15558 lt_prog_compiler_wl_F77='-Wl,'
15559 # All Alpha code is PIC.
15560 lt_prog_compiler_static_F77='-non_shared'
15563 case `$CC -V 2>&1 | sed 5q` in
15566 lt_prog_compiler_pic_F77='-KPIC'
15567 lt_prog_compiler_static_F77='-Bstatic'
15568 lt_prog_compiler_wl_F77='-Wl,'
15571 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15572 lt_prog_compiler_pic_F77='-KPIC'
15573 lt_prog_compiler_static_F77='-Bstatic'
15574 lt_prog_compiler_wl_F77=''
15581 osf3* | osf4* | osf5*)
15582 lt_prog_compiler_wl_F77='-Wl,'
15583 # All OSF/1 code is PIC.
15584 lt_prog_compiler_static_F77='-non_shared'
15588 lt_prog_compiler_static_F77='-non_shared'
15592 lt_prog_compiler_pic_F77='-KPIC'
15593 lt_prog_compiler_static_F77='-Bstatic'
15594 case $cc_basename in
15595 f77* | f90* | f95*)
15596 lt_prog_compiler_wl_F77='-Qoption ld ';;
15598 lt_prog_compiler_wl_F77='-Wl,';;
15603 lt_prog_compiler_wl_F77='-Qoption ld '
15604 lt_prog_compiler_pic_F77='-PIC'
15605 lt_prog_compiler_static_F77='-Bstatic'
15608 sysv4 | sysv4.2uw2* | sysv4.3*)
15609 lt_prog_compiler_wl_F77='-Wl,'
15610 lt_prog_compiler_pic_F77='-KPIC'
15611 lt_prog_compiler_static_F77='-Bstatic'
15615 if test -d /usr/nec ;then
15616 lt_prog_compiler_pic_F77='-Kconform_pic'
15617 lt_prog_compiler_static_F77='-Bstatic'
15621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15622 lt_prog_compiler_wl_F77='-Wl,'
15623 lt_prog_compiler_pic_F77='-KPIC'
15624 lt_prog_compiler_static_F77='-Bstatic'
15628 lt_prog_compiler_wl_F77='-Wl,'
15629 lt_prog_compiler_can_build_shared_F77=no
15633 lt_prog_compiler_pic_F77='-pic'
15634 lt_prog_compiler_static_F77='-Bstatic'
15638 lt_prog_compiler_can_build_shared_F77=no
15643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15644 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15647 # Check to make sure the PIC flag actually works.
15649 if test -n "$lt_prog_compiler_pic_F77"; then
15651 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15653 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15656 lt_prog_compiler_pic_works_F77=no
15657 ac_outfile=conftest.$ac_objext
15658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15659 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15660 # Insert the option either (1) after the last *FLAGS variable, or
15661 # (2) before a word containing "conftest.", or (3) at the end.
15662 # Note that $ac_compile itself does not contain backslashes and begins
15663 # with a dollar sign (not a hyphen), so the echo should work correctly.
15664 # The option is referenced via a variable to avoid confusing sed.
15665 lt_compile=`echo "$ac_compile" | $SED \
15666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15668 -e 's:$: $lt_compiler_flag:'`
15669 (eval echo "\"\$as_me:15669: $lt_compile\"" >&5)
15670 (eval "$lt_compile" 2>conftest.err)
15672 cat conftest.err >&5
15673 echo "$as_me:15673: \$? = $ac_status" >&5
15674 if (exit $ac_status) && test -s "$ac_outfile"; then
15675 # The compiler can only warn and ignore the option if not recognized
15676 # So say no if there are warnings other than the usual output.
15677 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15680 lt_prog_compiler_pic_works_F77=yes
15686 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15687 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15689 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15690 case $lt_prog_compiler_pic_F77 in
15692 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15695 lt_prog_compiler_pic_F77=
15696 lt_prog_compiler_can_build_shared_F77=no
15701 # For platforms which do not support PIC, -DPIC is meaningless:
15703 lt_prog_compiler_pic_F77=
15706 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15711 # Check to make sure the static flag actually works.
15713 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15714 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15715 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15716 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 lt_prog_compiler_static_works_F77=no
15720 save_LDFLAGS="$LDFLAGS"
15721 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15724 # The linker can only warn and ignore the option if not recognized
15725 # So say no if there are warnings
15726 if test -s conftest.err; then
15727 # Append any errors to the config.log.
15728 cat conftest.err 1>&5
15729 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15731 if diff conftest.exp conftest.er2 >/dev/null; then
15732 lt_prog_compiler_static_works_F77=yes
15735 lt_prog_compiler_static_works_F77=yes
15739 LDFLAGS="$save_LDFLAGS"
15742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15743 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15745 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15748 lt_prog_compiler_static_F77=
15752 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15753 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15754 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 lt_cv_prog_compiler_c_o_F77=no
15758 $rm -r conftest 2>/dev/null
15762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15764 lt_compiler_flag="-o out/conftest2.$ac_objext"
15765 # Insert the option either (1) after the last *FLAGS variable, or
15766 # (2) before a word containing "conftest.", or (3) at the end.
15767 # Note that $ac_compile itself does not contain backslashes and begins
15768 # with a dollar sign (not a hyphen), so the echo should work correctly.
15769 lt_compile=`echo "$ac_compile" | $SED \
15770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15772 -e 's:$: $lt_compiler_flag:'`
15773 (eval echo "\"\$as_me:15773: $lt_compile\"" >&5)
15774 (eval "$lt_compile" 2>out/conftest.err)
15776 cat out/conftest.err >&5
15777 echo "$as_me:15777: \$? = $ac_status" >&5
15778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15780 # The compiler can only warn and ignore the option if not recognized
15781 # So say no if there are warnings
15782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15785 lt_cv_prog_compiler_c_o_F77=yes
15790 # SGI C++ compiler will create directory out/ii_files/ for
15791 # template instantiation
15792 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15793 $rm out/* && rmdir out
15799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15803 hard_links="nottested"
15804 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15805 # do not overwrite the value of need_locks provided by the user
15806 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15812 ln conftest.a conftest.b 2>&5 || hard_links=no
15813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15814 { echo "$as_me:$LINENO: result: $hard_links" >&5
15815 echo "${ECHO_T}$hard_links" >&6; }
15816 if test "$hard_links" = no; then
15817 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15825 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15829 allow_undefined_flag_F77=
15830 enable_shared_with_static_runtimes_F77=no
15832 archive_expsym_cmds_F77=
15833 old_archive_From_new_cmds_F77=
15834 old_archive_from_expsyms_cmds_F77=
15835 export_dynamic_flag_spec_F77=
15836 whole_archive_flag_spec_F77=
15837 thread_safe_flag_spec_F77=
15838 hardcode_libdir_flag_spec_F77=
15839 hardcode_libdir_flag_spec_ld_F77=
15840 hardcode_libdir_separator_F77=
15841 hardcode_direct_F77=no
15842 hardcode_minus_L_F77=no
15843 hardcode_shlibpath_var_F77=unsupported
15844 link_all_deplibs_F77=unknown
15845 hardcode_automatic_F77=no
15847 module_expsym_cmds_F77=
15848 always_export_symbols_F77=no
15849 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15850 # include_expsyms should be a list of space-separated symbols to be *always*
15851 # included in the symbol list
15852 include_expsyms_F77=
15853 # exclude_expsyms can be an extended regexp of symbols to exclude
15854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15856 # as well as any symbol that contains `d'.
15857 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15859 # platforms (ab)use it in PIC code, but their linkers get confused if
15860 # the symbol is explicitly referenced. Since portable code cannot
15861 # rely on this symbol name, it's probably fine to never include it in
15862 # preloaded symbol tables.
15863 extract_expsyms_cmds=
15864 # Just being paranoid about ensuring that cc_basename is set.
15865 for cc_temp in $compiler""; do
15867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15876 cygwin* | mingw* | pw32*)
15877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15878 # When not using gcc, we currently assume that we are using
15879 # Microsoft Visual C++.
15880 if test "$GCC" != yes; then
15885 # we just hope/assume this is gcc and not c89 (= MSVC++)
15894 if test "$with_gnu_ld" = yes; then
15895 # If archive_cmds runs LD, not CC, wlarc should be empty
15898 # Set some defaults for GNU ld with shared library support. These
15899 # are reset later if shared libraries are not supported. Putting them
15900 # here allows them to be overridden if necessary.
15901 runpath_var=LD_RUN_PATH
15902 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15903 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15904 # ancient GNU ld didn't support --whole-archive et. al.
15905 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15906 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15908 whole_archive_flag_spec_F77=
15910 supports_anon_versioning=no
15911 case `$LD -v 2>/dev/null` in
15912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15915 *\ 2.11.*) ;; # other 2.11 versions
15916 *) supports_anon_versioning=yes ;;
15919 # See if GNU ld supports shared libraries.
15921 aix3* | aix4* | aix5*)
15922 # On AIX/PPC, the GNU linker is very broken
15923 if test "$host_cpu" != ia64; then
15927 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15928 *** to be unable to reliably create shared libraries on AIX.
15929 *** Therefore, libtool is disabling shared libraries support. If you
15930 *** really care for shared libraries, you may want to modify your PATH
15931 *** so that a non-GNU linker is found, and then restart.
15938 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)'
15939 hardcode_libdir_flag_spec_F77='-L$libdir'
15940 hardcode_minus_L_F77=yes
15942 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15943 # that the semantics of dynamic libraries on AmigaOS, at least up
15944 # to version 4, is to share data among multiple programs linked
15945 # with the same dynamic library. Since this doesn't match the
15946 # behavior of shared libraries on other platforms, we can't use
15952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15953 allow_undefined_flag_F77=unsupported
15954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15955 # support --undefined. This deserves some investigation. FIXME
15956 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962 cygwin* | mingw* | pw32*)
15963 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15964 # as there is no search path for DLLs.
15965 hardcode_libdir_flag_spec_F77='-L$libdir'
15966 allow_undefined_flag_F77=unsupported
15967 always_export_symbols_F77=no
15968 enable_shared_with_static_runtimes_F77=yes
15969 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15971 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15972 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15973 # If the export-symbols file already is a .def file (1st line
15974 # is EXPORTS), use it as is; otherwise, prepend...
15975 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15976 cp $export_symbols $output_objdir/$soname.def;
15978 echo EXPORTS > $output_objdir/$soname.def;
15979 cat $export_symbols >> $output_objdir/$soname.def;
15981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15988 hardcode_direct_F77=no
15989 hardcode_shlibpath_var_F77=no
15990 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15991 export_dynamic_flag_spec_F77='${wl}-E'
15992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15993 # Instead, shared libraries are loaded at an image base (0x10000000 by
15994 # default) and relocated if they conflict, which is a slow very memory
15995 # consuming and fragmenting process. To avoid this, we pick a random,
15996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15998 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'
15999 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'
16002 gnu* | linux* | k*bsd*-gnu)
16003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16005 case $cc_basename,$host_cpu in
16006 pgcc*) # Portland Group C compiler
16007 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'
16008 tmp_addflag=' $pic_flag'
16010 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16011 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'
16012 tmp_addflag=' $pic_flag -Mnomain' ;;
16013 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16014 tmp_addflag=' -i_dynamic' ;;
16015 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16016 tmp_addflag=' -i_dynamic -nofor_main' ;;
16017 ifc* | ifort*) # Intel Fortran compiler
16018 tmp_addflag=' -nofor_main' ;;
16020 case `$CC -V 2>&1 | sed 5q` in
16021 *Sun\ C*) # Sun C 5.9
16022 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'
16023 tmp_sharedflag='-G' ;;
16024 *Sun\ F*) # Sun Fortran 8.3
16025 tmp_sharedflag='-G' ;;
16027 tmp_sharedflag='-shared' ;;
16029 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 if test $supports_anon_versioning = yes; then
16032 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16034 $echo "local: *; };" >> $output_objdir/$libname.ver~
16035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16044 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16047 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16058 *** create shared libraries on Solaris systems. Therefore, libtool
16059 *** is disabling shared libraries support. We urge you to upgrade GNU
16060 *** binutils to release 2.9.1 or newer. Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16074 case `$LD -v 2>&1` in
16075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16080 *** reliably create shared libraries on SCO systems. Therefore, libtool
16081 *** is disabling shared libraries support. We urge you to upgrade GNU
16082 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16083 *** your PATH or compiler configuration so that the native linker is
16084 *** used, and then restart.
16089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16092 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16101 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16103 hardcode_direct_F77=yes
16104 hardcode_shlibpath_var_F77=no
16108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16110 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16117 if test "$ld_shlibs_F77" = no; then
16119 hardcode_libdir_flag_spec_F77=
16120 export_dynamic_flag_spec_F77=
16121 whole_archive_flag_spec_F77=
16124 # PORTME fill in a description of your system's linker (not GNU ld)
16127 allow_undefined_flag_F77=unsupported
16128 always_export_symbols_F77=yes
16129 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'
16130 # Note: this linker hardcodes the directories in LIBPATH if there
16131 # are no directories specified by -L.
16132 hardcode_minus_L_F77=yes
16133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16134 # Neither direct hardcoding nor static linking is supported with a
16136 hardcode_direct_F77=unsupported
16141 if test "$host_cpu" = ia64; then
16142 # On IA64, the linker does run time linking by default, so we don't
16143 # have to do anything special.
16144 aix_use_runtimelinking=no
16145 exp_sym_flag='-Bexport'
16148 # If we're using GNU nm, then we don't want the "-C" option.
16149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16151 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'
16153 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'
16155 aix_use_runtimelinking=no
16157 # Test if we are trying to use run time linking or normal
16158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16159 # need to do runtime linking.
16160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16161 for ld_flag in $LDFLAGS; do
16162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16163 aix_use_runtimelinking=yes
16170 exp_sym_flag='-bexport'
16171 no_entry_flag='-bnoentry'
16174 # When large executables or shared objects are built, AIX ld can
16175 # have problems creating the table of contents. If linking a library
16176 # or program results in "error TOC overflow" add -mminimal-toc to
16177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16180 archive_cmds_F77=''
16181 hardcode_direct_F77=yes
16182 hardcode_libdir_separator_F77=':'
16183 link_all_deplibs_F77=yes
16185 if test "$GCC" = yes; then
16186 case $host_os in aix4.[012]|aix4.[012].*)
16187 # We only want to do this on AIX 4.2 and lower, the check
16188 # below for broken collect2 doesn't work under 4.3+
16189 collect2name=`${CC} -print-prog-name=collect2`
16190 if test -f "$collect2name" && \
16191 strings "$collect2name" | grep resolve_lib_name >/dev/null
16193 # We have reworked collect2
16196 # We have old collect2
16197 hardcode_direct_F77=unsupported
16198 # It fails to find uninstalled libraries when the uninstalled
16199 # path is not listed in the libpath. Setting hardcode_minus_L
16200 # to unsupported forces relinking
16201 hardcode_minus_L_F77=yes
16202 hardcode_libdir_flag_spec_F77='-L$libdir'
16203 hardcode_libdir_separator_F77=
16207 shared_flag='-shared'
16208 if test "$aix_use_runtimelinking" = yes; then
16209 shared_flag="$shared_flag "'${wl}-G'
16213 if test "$host_cpu" = ia64; then
16214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16215 # chokes on -Wl,-G. The following line is correct:
16218 if test "$aix_use_runtimelinking" = yes; then
16219 shared_flag='${wl}-G'
16221 shared_flag='${wl}-bM:SRE'
16226 # It seems that -bexpall does not export symbols beginning with
16227 # underscore (_), so it is better to generate a list of symbols to export.
16228 always_export_symbols_F77=yes
16229 if test "$aix_use_runtimelinking" = yes; then
16230 # Warning - without using the other runtime loading flags (-brtl),
16231 # -berok will link without error, but may produce a broken library.
16232 allow_undefined_flag_F77='-berok'
16233 # Determine the default libpath from the value encoded in an empty executable.
16234 cat >conftest.$ac_ext <<_ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (ac_try="$ac_link"
16241 case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_link") 2>conftest.er1
16248 grep -v '^ *+' conftest.er1 >conftest.err
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } && {
16253 test -z "$ac_f77_werror_flag" ||
16254 test ! -s conftest.err
16255 } && test -s conftest$ac_exeext &&
16256 $as_test_x conftest$ac_exeext; then
16258 lt_aix_libpath_sed='
16259 /Import File Strings/,/^$/ {
16265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16266 # Check for a 64-bit object if we didn't find anything.
16267 if test -z "$aix_libpath"; then
16268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16278 conftest$ac_exeext conftest.$ac_ext
16279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16281 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16282 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"
16284 if test "$host_cpu" = ia64; then
16285 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16286 allow_undefined_flag_F77="-z nodefs"
16287 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"
16289 # Determine the default libpath from the value encoded in an empty executable.
16290 cat >conftest.$ac_ext <<_ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_f77_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext &&
16312 $as_test_x conftest$ac_exeext; then
16314 lt_aix_libpath_sed='
16315 /Import File Strings/,/^$/ {
16321 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16322 # Check for a 64-bit object if we didn't find anything.
16323 if test -z "$aix_libpath"; then
16324 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334 conftest$ac_exeext conftest.$ac_ext
16335 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16337 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16338 # Warning - without using the other run time loading flags,
16339 # -berok will link without error, but may produce a broken library.
16340 no_undefined_flag_F77=' ${wl}-bernotok'
16341 allow_undefined_flag_F77=' ${wl}-berok'
16342 # Exported symbols can be pulled into shared objects from archives
16343 whole_archive_flag_spec_F77='$convenience'
16344 archive_cmds_need_lc_F77=yes
16345 # This is similar to how AIX traditionally builds its shared libraries.
16346 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'
16352 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)'
16353 hardcode_libdir_flag_spec_F77='-L$libdir'
16354 hardcode_minus_L_F77=yes
16355 # see comment about different semantics on the GNU ld section
16360 export_dynamic_flag_spec_F77=-rdynamic
16363 cygwin* | mingw* | pw32*)
16364 # When not using gcc, we currently assume that we are using
16365 # Microsoft Visual C++.
16366 # hardcode_libdir_flag_spec is actually meaningless, as there is
16367 # no search path for DLLs.
16368 hardcode_libdir_flag_spec_F77=' '
16369 allow_undefined_flag_F77=unsupported
16370 # Tell ltmain to make .lib files, not .a files.
16372 # Tell ltmain to make .dll files, not .so files.
16374 # FIXME: Setting linknames here is a bad hack.
16375 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16376 # The linker will automatically build a .lib file if we build a DLL.
16377 old_archive_From_new_cmds_F77='true'
16378 # FIXME: Should let the user specify the lib program.
16379 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16380 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16381 enable_shared_with_static_runtimes_F77=yes
16384 darwin* | rhapsody*)
16386 rhapsody* | darwin1.[012])
16387 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16390 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16391 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16393 case ${MACOSX_DEPLOYMENT_TARGET} in
16395 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16398 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16404 archive_cmds_need_lc_F77=no
16405 hardcode_direct_F77=no
16406 hardcode_automatic_F77=yes
16407 hardcode_shlibpath_var_F77=unsupported
16408 whole_archive_flag_spec_F77=''
16409 link_all_deplibs_F77=yes
16410 if test "$GCC" = yes ; then
16411 output_verbose_link_cmd='echo'
16412 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16413 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16415 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16416 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}'
16418 case $cc_basename in
16420 output_verbose_link_cmd='echo'
16421 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16422 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16423 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16424 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}'
16425 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}'
16435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_libdir_flag_spec_F77='-L$libdir'
16437 hardcode_shlibpath_var_F77=no
16444 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16445 # support. Future versions do this automatically, but an explicit c++rt0.o
16446 # does not break anything, and helps significantly (at the cost of a little
16449 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16450 hardcode_libdir_flag_spec_F77='-R$libdir'
16451 hardcode_direct_F77=yes
16452 hardcode_shlibpath_var_F77=no
16455 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16457 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_direct_F77=yes
16459 hardcode_minus_L_F77=yes
16460 hardcode_shlibpath_var_F77=no
16463 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16464 freebsd* | dragonfly*)
16465 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16466 hardcode_libdir_flag_spec_F77='-R$libdir'
16467 hardcode_direct_F77=yes
16468 hardcode_shlibpath_var_F77=no
16472 if test "$GCC" = yes; then
16473 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'
16475 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'
16477 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16478 hardcode_libdir_separator_F77=:
16479 hardcode_direct_F77=yes
16481 # hardcode_minus_L: Not really in the search PATH,
16482 # but as the default location of the library.
16483 hardcode_minus_L_F77=yes
16484 export_dynamic_flag_spec_F77='${wl}-E'
16488 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16489 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16491 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16493 if test "$with_gnu_ld" = no; then
16494 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16495 hardcode_libdir_separator_F77=:
16497 hardcode_direct_F77=yes
16498 export_dynamic_flag_spec_F77='${wl}-E'
16500 # hardcode_minus_L: Not really in the search PATH,
16501 # but as the default location of the library.
16502 hardcode_minus_L_F77=yes
16507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16510 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16513 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16516 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16522 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16525 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16528 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16532 if test "$with_gnu_ld" = no; then
16533 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16534 hardcode_libdir_separator_F77=:
16538 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16539 hardcode_direct_F77=no
16540 hardcode_shlibpath_var_F77=no
16543 hardcode_direct_F77=yes
16544 export_dynamic_flag_spec_F77='${wl}-E'
16546 # hardcode_minus_L: Not really in the search PATH,
16547 # but as the default location of the library.
16548 hardcode_minus_L_F77=yes
16554 irix5* | irix6* | nonstopux*)
16555 if test "$GCC" = yes; then
16556 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'
16558 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'
16559 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16561 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16562 hardcode_libdir_separator_F77=:
16563 link_all_deplibs_F77=yes
16567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16568 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16570 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16572 hardcode_libdir_flag_spec_F77='-R$libdir'
16573 hardcode_direct_F77=yes
16574 hardcode_shlibpath_var_F77=no
16578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579 hardcode_direct_F77=yes
16580 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16581 hardcode_libdir_separator_F77=:
16582 hardcode_shlibpath_var_F77=no
16586 if test -f /usr/libexec/ld.so; then
16587 hardcode_direct_F77=yes
16588 hardcode_shlibpath_var_F77=no
16589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16590 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16591 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16592 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16593 export_dynamic_flag_spec_F77='${wl}-E'
16596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16597 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16598 hardcode_libdir_flag_spec_F77='-R$libdir'
16601 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16612 hardcode_libdir_flag_spec_F77='-L$libdir'
16613 hardcode_minus_L_F77=yes
16614 allow_undefined_flag_F77=unsupported
16615 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'
16616 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16620 if test "$GCC" = yes; then
16621 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16622 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'
16624 allow_undefined_flag_F77=' -expect_unresolved \*'
16625 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'
16627 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16628 hardcode_libdir_separator_F77=:
16631 osf4* | osf5*) # as osf3* with the addition of -msym flag
16632 if test "$GCC" = yes; then
16633 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16634 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'
16635 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16637 allow_undefined_flag_F77=' -expect_unresolved \*'
16638 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'
16639 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~
16640 $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'
16642 # Both c and cxx compiler support -rpath directly
16643 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16645 hardcode_libdir_separator_F77=:
16649 no_undefined_flag_F77=' -z text'
16650 if test "$GCC" = yes; then
16652 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16653 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16654 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16657 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16661 hardcode_libdir_flag_spec_F77='-R$libdir'
16662 hardcode_shlibpath_var_F77=no
16664 solaris2.[0-5] | solaris2.[0-5].*) ;;
16666 # The compiler driver will combine and reorder linker options,
16667 # but understands `-z linker_flag'. GCC discards it without `$wl',
16668 # but is careful enough not to reorder.
16669 # Supported since Solaris 2.6 (maybe 2.5.1?)
16670 if test "$GCC" = yes; then
16671 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16673 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16677 link_all_deplibs_F77=yes
16681 if test "x$host_vendor" = xsequent; then
16682 # Use $CC to link under sequent, because it throws in some extra .o
16683 # files that make .init and .fini sections work.
16684 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16686 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16688 hardcode_libdir_flag_spec_F77='-L$libdir'
16689 hardcode_direct_F77=yes
16690 hardcode_minus_L_F77=yes
16691 hardcode_shlibpath_var_F77=no
16695 case $host_vendor in
16697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698 hardcode_direct_F77=yes # is this really true???
16701 ## LD is ld it makes a PLAMLIB
16702 ## CC just makes a GrossModule.
16703 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16704 reload_cmds_F77='$CC -r -o $output$reload_objs'
16705 hardcode_direct_F77=no
16708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16712 runpath_var='LD_RUN_PATH'
16713 hardcode_shlibpath_var_F77=no
16717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16718 hardcode_shlibpath_var_F77=no
16719 export_dynamic_flag_spec_F77='-Bexport'
16723 if test -d /usr/nec; then
16724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725 hardcode_shlibpath_var_F77=no
16726 runpath_var=LD_RUN_PATH
16727 hardcode_runpath_var=yes
16732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16733 no_undefined_flag_F77='${wl}-z,text'
16734 archive_cmds_need_lc_F77=no
16735 hardcode_shlibpath_var_F77=no
16736 runpath_var='LD_RUN_PATH'
16738 if test "$GCC" = yes; then
16739 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16740 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16742 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16743 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 sysv5* | sco3.2v5* | sco5v6*)
16748 # Note: We can NOT use -z defs as we might desire, because we do not
16749 # link with -lc, and that would cause any symbols used from libc to
16750 # always be unresolved, which means just about no library would
16751 # ever link correctly. If we're not using GNU ld we use -z text
16752 # though, which does catch some bad symbols but isn't as heavy-handed
16754 no_undefined_flag_F77='${wl}-z,text'
16755 allow_undefined_flag_F77='${wl}-z,nodefs'
16756 archive_cmds_need_lc_F77=no
16757 hardcode_shlibpath_var_F77=no
16758 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16759 hardcode_libdir_separator_F77=':'
16760 link_all_deplibs_F77=yes
16761 export_dynamic_flag_spec_F77='${wl}-Bexport'
16762 runpath_var='LD_RUN_PATH'
16764 if test "$GCC" = yes; then
16765 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16766 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16768 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16775 hardcode_libdir_flag_spec_F77='-L$libdir'
16776 hardcode_shlibpath_var_F77=no
16785 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16786 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16787 test "$ld_shlibs_F77" = no && can_build_shared=no
16790 # Do we need to explicitly link libc?
16792 case "x$archive_cmds_need_lc_F77" in
16794 # Assume -lc should be added
16795 archive_cmds_need_lc_F77=yes
16797 if test "$enable_shared" = yes && test "$GCC" = yes; then
16798 case $archive_cmds_F77 in
16800 # FIXME: we may have to deal with multi-command sequences.
16803 # Test whether the compiler implicitly links with -lc since on some
16804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16805 # to ld, don't add -lc before -lgcc.
16806 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16807 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812 (eval $ac_compile) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } 2>conftest.err; then
16818 libobjs=conftest.$ac_objext
16820 wl=$lt_prog_compiler_wl_F77
16821 pic_flag=$lt_prog_compiler_pic_F77
16827 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16828 allow_undefined_flag_F77=
16829 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16830 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }
16835 archive_cmds_need_lc_F77=no
16837 archive_cmds_need_lc_F77=yes
16839 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16841 cat conftest.err 1>&5
16844 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16845 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16852 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16853 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16854 library_names_spec=
16855 libname_spec='lib$name'
16859 postuninstall_cmds=
16863 shlibpath_overrides_runpath=unknown
16865 dynamic_linker="$host_os ld.so"
16866 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16868 need_lib_prefix=unknown
16869 hardcode_into_libs=no
16871 # when you set need_version to no, make sure it does not cause -set_version
16872 # flags to be left without arguments
16873 need_version=unknown
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16879 shlibpath_var=LIBPATH
16881 # AIX 3 has no versioning support, so we append a major version to the name.
16882 soname_spec='${libname}${release}${shared_ext}$major'
16889 hardcode_into_libs=yes
16890 if test "$host_cpu" = ia64; then
16891 # AIX 5 supports IA64
16892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16893 shlibpath_var=LD_LIBRARY_PATH
16895 # With GCC up to 2.95.x, collect2 would create an import file
16896 # for dependence libraries. The import file would start with
16897 # the line `#! .'. This would cause the generated library to
16898 # depend on `.', always an invalid library. This was fixed in
16899 # development snapshots of GCC prior to 3.0.
16901 aix4 | aix4.[01] | aix4.[01].*)
16902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16907 can_build_shared=no
16911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16912 # soname into executable. Probably we can add versioning support to
16913 # collect2, so additional links can be useful in future.
16914 if test "$aix_use_runtimelinking" = yes; then
16915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16916 # instead of lib<name>.a to let people know that these are not
16917 # typical AIX shared libraries.
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16920 # We preserve .a as extension for shared libraries through AIX4.2
16921 # and later when we are not doing run time linking.
16922 library_names_spec='${libname}${release}.a $libname.a'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16925 shlibpath_var=LIBPATH
16930 library_names_spec='$libname.ixlibrary $libname.a'
16931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16932 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'
16936 library_names_spec='${libname}${shared_ext}'
16937 dynamic_linker="$host_os ld.so"
16938 shlibpath_var=LIBRARY_PATH
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16947 shlibpath_var=LD_LIBRARY_PATH
16948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16950 # the default ld.so.conf also contains /usr/contrib/lib and
16951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16952 # libtool to hard-code these into programs
16955 cygwin* | mingw* | pw32*)
16956 version_type=windows
16961 case $GCC,$host_os in
16962 yes,cygwin* | yes,mingw* | yes,pw32*)
16963 library_names_spec='$libname.dll.a'
16964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16965 postinstall_cmds='base_file=`basename \${file}`~
16966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16967 dldir=$destdir/`dirname \$dlpath`~
16968 test -d \$dldir || mkdir -p \$dldir~
16969 $install_prog $dir/$dlname \$dldir/$dlname~
16970 chmod a+x \$dldir/$dlname'
16971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16972 dlpath=$dir/\$dldll~
16974 shlibpath_overrides_runpath=yes
16978 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16980 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16983 # MinGW DLLs use traditional 'lib' prefix
16984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16986 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16987 # It is most probably a Windows format PATH printed by
16988 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16989 # path with ; separators, and with drive letters. We can handle the
16990 # drive letters (cygwin fileutils understands them), so leave them,
16991 # especially as we might pass files found there to a mingw objdump,
16992 # which wouldn't understand a cygwinified path. Ahh.
16993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16999 # pw32 DLLs use 'pw' prefix rather than 'lib'
17000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17009 dynamic_linker='Win32 ld.exe'
17010 # FIXME: first we should search . and the directory the executable is in
17014 darwin* | rhapsody*)
17015 dynamic_linker="$host_os dyld"
17016 version_type=darwin
17019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17020 soname_spec='${libname}${release}${major}$shared_ext'
17021 shlibpath_overrides_runpath=yes
17022 shlibpath_var=DYLD_LIBRARY_PATH
17023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 shlibpath_var=LD_LIBRARY_PATH
17041 freebsd* | dragonfly*)
17042 # DragonFly does not have aout. When/if they implement a new
17043 # versioning mechanism, adjust this.
17044 if test -x /usr/bin/objformat; then
17045 objformat=`/usr/bin/objformat`
17048 freebsd[123]*) objformat=aout ;;
17049 *) objformat=elf ;;
17052 version_type=freebsd-$objformat
17053 case $version_type in
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17064 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=yes
17069 freebsd3.[01]* | freebsdelf3.[01]*)
17070 shlibpath_overrides_runpath=yes
17071 hardcode_into_libs=yes
17073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17075 shlibpath_overrides_runpath=no
17076 hardcode_into_libs=yes
17078 *) # from 4.6 on, and DragonFly
17079 shlibpath_overrides_runpath=yes
17080 hardcode_into_libs=yes
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 shlibpath_var=LD_LIBRARY_PATH
17092 hardcode_into_libs=yes
17095 hpux9* | hpux10* | hpux11*)
17096 # Give a soname corresponding to the major version so that dld.sl refuses to
17097 # link against other versions.
17104 hardcode_into_libs=yes
17105 dynamic_linker="$host_os dld.so"
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 if test "X$HPUX_IA64_MODE" = X32; then
17111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17119 hardcode_into_libs=yes
17120 dynamic_linker="$host_os dld.sl"
17121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17130 dynamic_linker="$host_os dld.sl"
17131 shlibpath_var=SHLIB_PATH
17132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17137 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17138 postinstall_cmds='chmod 555 $lib'
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 shlibpath_overrides_runpath=no
17150 hardcode_into_libs=yes
17153 irix5* | irix6* | nonstopux*)
17155 nonstopux*) version_type=nonstopux ;;
17157 if test "$lt_cv_prog_gnu_ld" = yes; then
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17168 irix5* | nonstopux*)
17169 libsuff= shlibsuff=
17172 case $LD in # libtool.m4 will add one of these switches to LD
17173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17174 libsuff= shlibsuff= libmagic=32-bit;;
17175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17176 libsuff=32 shlibsuff=N32 libmagic=N32;;
17177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17178 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17179 *) libsuff= shlibsuff= libmagic=never-match;;
17183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17184 shlibpath_overrides_runpath=no
17185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17187 hardcode_into_libs=yes
17190 # No shared lib support for Linux oldld, aout, or coff.
17191 linux*oldld* | linux*aout* | linux*coff*)
17195 # This must be Linux ELF.
17196 linux* | k*bsd*-gnu)
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=no
17205 # This implies no fast_install, which is unacceptable.
17206 # Some rework will be needed to allow for fast_install
17207 # before this can be enabled.
17208 hardcode_into_libs=yes
17209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17212 # Append ld.so.conf contents to the search path
17213 if test -f /etc/ld.so.conf; then
17214 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' ' '`
17215 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17218 # We used to test for /lib/ld.so.1 and disable shared libraries on
17219 # powerpc, because MkLinux only supported shared libraries with the
17220 # GNU dynamic linker. Since this was broken with cross compilers,
17221 # most powerpc-linux boxes support dynamic linking these days and
17222 # people can always --disable-shared, the test was removed, and we
17223 # assume the GNU/Linux dynamic linker is in use.
17224 dynamic_linker='GNU/Linux ld.so'
17231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17234 dynamic_linker='NetBSD (a.out) ld.so'
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 dynamic_linker='NetBSD ld.elf_so'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 shlibpath_overrides_runpath=yes
17242 hardcode_into_libs=yes
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248 shlibpath_var=LD_LIBRARY_PATH
17249 shlibpath_overrides_runpath=yes
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 shlibpath_overrides_runpath=yes
17264 sys_lib_dlsearch_path_spec="/usr/lib"
17266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17269 *) need_version=no ;;
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17276 openbsd2.[89] | openbsd2.[89].*)
17277 shlibpath_overrides_runpath=no
17280 shlibpath_overrides_runpath=yes
17284 shlibpath_overrides_runpath=yes
17289 libname_spec='$name'
17292 library_names_spec='$libname${shared_ext} $libname.a'
17293 dynamic_linker='OS/2 ld.exe'
17294 shlibpath_var=LIBPATH
17297 osf3* | osf4* | osf5*)
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 shlibpath_overrides_runpath=yes
17320 hardcode_into_libs=yes
17321 # ldd complains unless libraries are executable
17322 postinstall_cmds='chmod +x $lib'
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 shlibpath_overrides_runpath=yes
17331 if test "$with_gnu_ld" = yes; then
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 case $host_vendor in
17344 shlibpath_overrides_runpath=no
17346 export_dynamic_flag_spec='${wl}-Blargedynsym'
17347 runpath_var=LD_RUN_PATH
17355 shlibpath_overrides_runpath=no
17356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17362 if test -d /usr/nec ;then
17364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17365 soname_spec='$libname${shared_ext}.$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17371 version_type=freebsd-elf
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17375 soname_spec='${libname}${release}${shared_ext}$major'
17376 shlibpath_var=LD_LIBRARY_PATH
17377 hardcode_into_libs=yes
17378 if test "$with_gnu_ld" = yes; then
17379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17380 shlibpath_overrides_runpath=no
17382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17383 shlibpath_overrides_runpath=yes
17386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17390 sys_lib_dlsearch_path_spec='/usr/lib'
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 shlibpath_var=LD_LIBRARY_PATH
17404 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17405 echo "${ECHO_T}$dynamic_linker" >&6; }
17406 test "$dynamic_linker" = no && can_build_shared=no
17408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17409 if test "$GCC" = yes; then
17410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17413 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17414 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17415 hardcode_action_F77=
17416 if test -n "$hardcode_libdir_flag_spec_F77" || \
17417 test -n "$runpath_var_F77" || \
17418 test "X$hardcode_automatic_F77" = "Xyes" ; then
17420 # We can hardcode non-existant directories.
17421 if test "$hardcode_direct_F77" != no &&
17422 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17423 # have to relink, otherwise we might link with an installed library
17424 # when we should be linking with a yet-to-be-installed one
17425 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17426 test "$hardcode_minus_L_F77" != no; then
17427 # Linking always hardcodes the temporary library directory.
17428 hardcode_action_F77=relink
17430 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17431 hardcode_action_F77=immediate
17434 # We cannot hardcode anything, or else we can only hardcode existing
17436 hardcode_action_F77=unsupported
17438 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17439 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17441 if test "$hardcode_action_F77" = relink; then
17442 # Fast installation is not supported
17443 enable_fast_install=no
17444 elif test "$shlibpath_overrides_runpath" = yes ||
17445 test "$enable_shared" = no; then
17446 # Fast installation is not necessary
17447 enable_fast_install=needless
17451 # The else clause should only fire when bootstrapping the
17452 # libtool distribution, otherwise you forgot to ship ltmain.sh
17453 # with your package, and you will get complaints that there are
17454 # no rules to generate ltmain.sh.
17455 if test -f "$ltmain"; then
17456 # See if we are running on zsh, and set the options which allow our commands through
17457 # without removal of \ escapes.
17458 if test -n "${ZSH_VERSION+set}" ; then
17459 setopt NO_GLOB_SUBST
17461 # Now quote all the things that may contain metacharacters while being
17462 # careful not to overquote the AC_SUBSTed values. We take copies of the
17463 # variables and quote the copies for generation of the libtool script.
17464 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17466 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17467 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17468 deplibs_check_method reload_flag reload_cmds need_locks \
17469 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17470 lt_cv_sys_global_symbol_to_c_name_address \
17471 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17472 old_postinstall_cmds old_postuninstall_cmds \
17476 lt_prog_compiler_wl_F77 \
17477 lt_prog_compiler_pic_F77 \
17478 lt_prog_compiler_static_F77 \
17479 lt_prog_compiler_no_builtin_flag_F77 \
17480 export_dynamic_flag_spec_F77 \
17481 thread_safe_flag_spec_F77 \
17482 whole_archive_flag_spec_F77 \
17483 enable_shared_with_static_runtimes_F77 \
17484 old_archive_cmds_F77 \
17485 old_archive_from_new_cmds_F77 \
17486 predep_objects_F77 \
17487 postdep_objects_F77 \
17490 compiler_lib_search_path_F77 \
17492 archive_expsym_cmds_F77 \
17493 postinstall_cmds_F77 \
17494 postuninstall_cmds_F77 \
17495 old_archive_from_expsyms_cmds_F77 \
17496 allow_undefined_flag_F77 \
17497 no_undefined_flag_F77 \
17498 export_symbols_cmds_F77 \
17499 hardcode_libdir_flag_spec_F77 \
17500 hardcode_libdir_flag_spec_ld_F77 \
17501 hardcode_libdir_separator_F77 \
17502 hardcode_automatic_F77 \
17504 module_expsym_cmds_F77 \
17505 lt_cv_prog_compiler_c_o_F77 \
17506 fix_srcfile_path_F77 \
17507 exclude_expsyms_F77 \
17508 include_expsyms_F77; do
17511 old_archive_cmds_F77 | \
17512 old_archive_from_new_cmds_F77 | \
17513 archive_cmds_F77 | \
17514 archive_expsym_cmds_F77 | \
17515 module_cmds_F77 | \
17516 module_expsym_cmds_F77 | \
17517 old_archive_from_expsyms_cmds_F77 | \
17518 export_symbols_cmds_F77 | \
17519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17520 postinstall_cmds | postuninstall_cmds | \
17521 old_postinstall_cmds | old_postuninstall_cmds | \
17522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17523 # Double-quote double-evaled strings.
17524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17533 *'\$0 --fallback-echo"')
17534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17540 cat <<__EOF__ >> "$cfgfile"
17541 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17545 # Shell to use when invoking shell scripts.
17548 # Whether or not to build shared libraries.
17549 build_libtool_libs=$enable_shared
17551 # Whether or not to build static libraries.
17552 build_old_libs=$enable_static
17554 # Whether or not to add -lc for building shared libraries.
17555 build_libtool_need_lc=$archive_cmds_need_lc_F77
17557 # Whether or not to disallow shared libs when runtime libs are static
17558 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17560 # Whether or not to optimize for fast installation.
17561 fast_install=$enable_fast_install
17564 host_alias=$host_alias
17568 # The build system.
17569 build_alias=$build_alias
17573 # An echo program that does not interpret backslashes.
17578 AR_FLAGS=$lt_AR_FLAGS
17583 # LTCC compiler flags.
17584 LTCFLAGS=$lt_LTCFLAGS
17586 # A language-specific compiler.
17587 CC=$lt_compiler_F77
17589 # Is the compiler the GNU C compiler?
17595 # The linker used to build libraries.
17598 # Whether we need hard or soft links.
17601 # A BSD-compatible nm program.
17604 # A symbol stripping program
17607 # Used to examine libraries when file_magic_cmd begins "file"
17608 MAGIC_CMD=$MAGIC_CMD
17610 # Used on cygwin: DLL creation program.
17613 # Used on cygwin: object dumper.
17616 # Used on cygwin: assembler.
17619 # The name of the directory that contains temporary libtool files.
17622 # How to create reloadable object files.
17623 reload_flag=$lt_reload_flag
17624 reload_cmds=$lt_reload_cmds
17626 # How to pass a linker flag through the compiler.
17627 wl=$lt_lt_prog_compiler_wl_F77
17629 # Object file suffix (normally "o").
17630 objext="$ac_objext"
17632 # Old archive suffix (normally "a").
17635 # Shared library suffix (normally ".so").
17636 shrext_cmds='$shrext_cmds'
17638 # Executable file suffix (normally "").
17641 # Additional compiler flags for building library objects.
17642 pic_flag=$lt_lt_prog_compiler_pic_F77
17645 # What is the maximum length of a command?
17646 max_cmd_len=$lt_cv_sys_max_cmd_len
17648 # Does compiler simultaneously support -c and -o options?
17649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17651 # Must we lock files when doing compilation?
17652 need_locks=$lt_need_locks
17654 # Do we need the lib prefix for modules?
17655 need_lib_prefix=$need_lib_prefix
17657 # Do we need a version for libraries?
17658 need_version=$need_version
17660 # Whether dlopen is supported.
17661 dlopen_support=$enable_dlopen
17663 # Whether dlopen of programs is supported.
17664 dlopen_self=$enable_dlopen_self
17666 # Whether dlopen of statically linked programs is supported.
17667 dlopen_self_static=$enable_dlopen_self_static
17669 # Compiler flag to prevent dynamic linking.
17670 link_static_flag=$lt_lt_prog_compiler_static_F77
17672 # Compiler flag to turn off builtin functions.
17673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17675 # Compiler flag to allow reflexive dlopens.
17676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17678 # Compiler flag to generate shared objects directly from archives.
17679 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17681 # Compiler flag to generate thread-safe objects.
17682 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17684 # Library versioning type.
17685 version_type=$version_type
17687 # Format of library name prefix.
17688 libname_spec=$lt_libname_spec
17690 # List of archive names. First name is the real one, the rest are links.
17691 # The last name is the one that the linker finds with -lNAME.
17692 library_names_spec=$lt_library_names_spec
17694 # The coded name of the library, if different from the real name.
17695 soname_spec=$lt_soname_spec
17697 # Commands used to build and install an old-style archive.
17699 old_archive_cmds=$lt_old_archive_cmds_F77
17700 old_postinstall_cmds=$lt_old_postinstall_cmds
17701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17703 # Create an old-style archive from a shared archive.
17704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17706 # Create a temporary old-style archive to link instead of a shared archive.
17707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17709 # Commands used to build and install a shared archive.
17710 archive_cmds=$lt_archive_cmds_F77
17711 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17712 postinstall_cmds=$lt_postinstall_cmds
17713 postuninstall_cmds=$lt_postuninstall_cmds
17715 # Commands used to build a loadable module (assumed same as above if empty)
17716 module_cmds=$lt_module_cmds_F77
17717 module_expsym_cmds=$lt_module_expsym_cmds_F77
17719 # Commands to strip libraries.
17720 old_striplib=$lt_old_striplib
17721 striplib=$lt_striplib
17723 # Dependencies to place before the objects being linked to create a
17725 predep_objects=$lt_predep_objects_F77
17727 # Dependencies to place after the objects being linked to create a
17729 postdep_objects=$lt_postdep_objects_F77
17731 # Dependencies to place before the objects being linked to create a
17733 predeps=$lt_predeps_F77
17735 # Dependencies to place after the objects being linked to create a
17737 postdeps=$lt_postdeps_F77
17739 # The library search path used internally by the compiler when linking
17740 # a shared library.
17741 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17743 # Method to check whether dependent libraries are shared objects.
17744 deplibs_check_method=$lt_deplibs_check_method
17746 # Command to use when deplibs_check_method == file_magic.
17747 file_magic_cmd=$lt_file_magic_cmd
17749 # Flag that allows shared libraries with undefined symbols to be built.
17750 allow_undefined_flag=$lt_allow_undefined_flag_F77
17752 # Flag that forces no undefined symbols.
17753 no_undefined_flag=$lt_no_undefined_flag_F77
17755 # Commands used to finish a libtool library installation in a directory.
17756 finish_cmds=$lt_finish_cmds
17758 # Same as above, but a single script fragment to be evaled but not shown.
17759 finish_eval=$lt_finish_eval
17761 # Take the output of nm and produce a listing of raw symbols and C names.
17762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17764 # Transform the output of nm in a proper C declaration
17765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17767 # Transform the output of nm in a C name address pair
17768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17770 # This is the shared library runtime path variable.
17771 runpath_var=$runpath_var
17773 # This is the shared library path variable.
17774 shlibpath_var=$shlibpath_var
17776 # Is shlibpath searched before the hard-coded library search path?
17777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17779 # How to hardcode a shared library path into an executable.
17780 hardcode_action=$hardcode_action_F77
17782 # Whether we should hardcode library paths into libraries.
17783 hardcode_into_libs=$hardcode_into_libs
17785 # Flag to hardcode \$libdir into a binary during linking.
17786 # This must work even if \$libdir does not exist.
17787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17789 # If ld is used when linking, flag to hardcode \$libdir into
17790 # a binary during linking. This must work even if \$libdir does
17792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17794 # Whether we need a single -rpath flag with a separated argument.
17795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17798 # resulting binary.
17799 hardcode_direct=$hardcode_direct_F77
17801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17802 # resulting binary.
17803 hardcode_minus_L=$hardcode_minus_L_F77
17805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17806 # the resulting binary.
17807 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17809 # Set to yes if building a shared library automatically hardcodes DIR into the library
17810 # and all subsequent libraries and executables linked against it.
17811 hardcode_automatic=$hardcode_automatic_F77
17813 # Variables whose values should be saved in libtool wrapper scripts and
17814 # restored at relink time.
17815 variables_saved_for_relink="$variables_saved_for_relink"
17817 # Whether libtool must link a program against all its dependency libraries.
17818 link_all_deplibs=$link_all_deplibs_F77
17820 # Compile-time system search path for libraries
17821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17823 # Run-time system search path for libraries
17824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17826 # Fix the shell variable \$srcfile for the compiler.
17827 fix_srcfile_path=$lt_fix_srcfile_path
17829 # Set to yes if exported symbols are required.
17830 always_export_symbols=$always_export_symbols_F77
17832 # The commands to list exported symbols.
17833 export_symbols_cmds=$lt_export_symbols_cmds_F77
17835 # The commands to extract the exported symbol list from a shared archive.
17836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17838 # Symbols that should not be listed in the preloaded symbols.
17839 exclude_expsyms=$lt_exclude_expsyms_F77
17841 # Symbols that must always be exported.
17842 include_expsyms=$lt_include_expsyms_F77
17844 # ### END LIBTOOL TAG CONFIG: $tagname
17850 # If there is no Makefile yet, we rely on a make rule to execute
17851 # `config.status --recheck' to rerun these tests and create the
17852 # libtool script then.
17853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17854 if test -f "$ltmain_in"; then
17855 test -f Makefile && make "$ltmain"
17861 ac_cpp='$CPP $CPPFLAGS'
17862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17874 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17877 # Source file extension for Java test sources.
17880 # Object file extension for compiled Java test sources.
17884 # Code to be used in simple compile tests
17885 lt_simple_compile_test_code="class foo {}"
17887 # Code to be used in simple link tests
17888 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17892 # If no C compiler was specified, use CC.
17895 # If no C compiler flags were specified, use CFLAGS.
17896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17898 # Allow CC to be a program name with arguments.
17902 # save warnings/boilerplate of simple test code
17903 ac_outfile=conftest.$ac_objext
17904 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17905 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17906 _lt_compiler_boilerplate=`cat conftest.err`
17909 ac_outfile=conftest.$ac_objext
17910 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17911 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17912 _lt_linker_boilerplate=`cat conftest.err`
17916 # Allow CC to be a program name with arguments.
17921 for cc_temp in $compiler""; do
17923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17932 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17933 archive_cmds_need_lc_GCJ=no
17935 old_archive_cmds_GCJ=$old_archive_cmds
17938 lt_prog_compiler_no_builtin_flag_GCJ=
17940 if test "$GCC" = yes; then
17941 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17944 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17945 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17946 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 lt_cv_prog_compiler_rtti_exceptions=no
17950 ac_outfile=conftest.$ac_objext
17951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17952 lt_compiler_flag="-fno-rtti -fno-exceptions"
17953 # Insert the option either (1) after the last *FLAGS variable, or
17954 # (2) before a word containing "conftest.", or (3) at the end.
17955 # Note that $ac_compile itself does not contain backslashes and begins
17956 # with a dollar sign (not a hyphen), so the echo should work correctly.
17957 # The option is referenced via a variable to avoid confusing sed.
17958 lt_compile=`echo "$ac_compile" | $SED \
17959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17961 -e 's:$: $lt_compiler_flag:'`
17962 (eval echo "\"\$as_me:17962: $lt_compile\"" >&5)
17963 (eval "$lt_compile" 2>conftest.err)
17965 cat conftest.err >&5
17966 echo "$as_me:17966: \$? = $ac_status" >&5
17967 if (exit $ac_status) && test -s "$ac_outfile"; then
17968 # The compiler can only warn and ignore the option if not recognized
17969 # So say no if there are warnings other than the usual output.
17970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17972 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17973 lt_cv_prog_compiler_rtti_exceptions=yes
17979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17980 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17982 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17983 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17990 lt_prog_compiler_wl_GCJ=
17991 lt_prog_compiler_pic_GCJ=
17992 lt_prog_compiler_static_GCJ=
17994 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17995 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17997 if test "$GCC" = yes; then
17998 lt_prog_compiler_wl_GCJ='-Wl,'
17999 lt_prog_compiler_static_GCJ='-static'
18003 # All AIX code is PIC.
18004 if test "$host_cpu" = ia64; then
18005 # AIX 5 now supports IA64 processor
18006 lt_prog_compiler_static_GCJ='-Bstatic'
18011 # FIXME: we need at least 68020 code to build shared libraries, but
18012 # adding the `-m68020' flag to GCC prevents building anything better,
18014 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18017 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18018 # PIC is the default for these OSes.
18021 mingw* | cygwin* | pw32* | os2*)
18022 # This hack is so that the source file can tell whether it is being
18023 # built for inclusion in a dll (and should export symbols for example).
18024 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18025 # (--disable-auto-import) libraries
18026 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18029 darwin* | rhapsody*)
18030 # PIC is the default on this platform
18031 # Common symbols not allowed in MH_DYLIB files
18032 lt_prog_compiler_pic_GCJ='-fno-common'
18036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18037 # Instead, we relocate shared libraries at runtime.
18041 # Just because we use GCC doesn't mean we suddenly get shared libraries
18042 # on systems that don't support them.
18043 lt_prog_compiler_can_build_shared_GCJ=no
18048 if test -d /usr/nec; then
18049 lt_prog_compiler_pic_GCJ=-Kconform_pic
18054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18055 # not for PA HP-UX.
18061 lt_prog_compiler_pic_GCJ='-fPIC'
18067 lt_prog_compiler_pic_GCJ='-fPIC'
18071 # PORTME Check for flag to pass linker flags through the system compiler.
18074 lt_prog_compiler_wl_GCJ='-Wl,'
18075 if test "$host_cpu" = ia64; then
18076 # AIX 5 now supports IA64 processor
18077 lt_prog_compiler_static_GCJ='-Bstatic'
18079 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18083 # PIC is the default on this platform
18084 # Common symbols not allowed in MH_DYLIB files
18085 case $cc_basename in
18087 lt_prog_compiler_pic_GCJ='-qnocommon'
18088 lt_prog_compiler_wl_GCJ='-Wl,'
18093 mingw* | cygwin* | pw32* | os2*)
18094 # This hack is so that the source file can tell whether it is being
18095 # built for inclusion in a dll (and should export symbols for example).
18096 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18099 hpux9* | hpux10* | hpux11*)
18100 lt_prog_compiler_wl_GCJ='-Wl,'
18101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18102 # not for PA HP-UX.
18108 lt_prog_compiler_pic_GCJ='+Z'
18111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18112 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18115 irix5* | irix6* | nonstopux*)
18116 lt_prog_compiler_wl_GCJ='-Wl,'
18117 # PIC (with -KPIC) is the default.
18118 lt_prog_compiler_static_GCJ='-non_shared'
18122 lt_prog_compiler_pic_GCJ='-KPIC'
18123 lt_prog_compiler_static_GCJ='-Bstatic'
18126 linux* | k*bsd*-gnu)
18127 case $cc_basename in
18129 lt_prog_compiler_wl_GCJ='-Wl,'
18130 lt_prog_compiler_pic_GCJ='-KPIC'
18131 lt_prog_compiler_static_GCJ='-static'
18133 pgcc* | pgf77* | pgf90* | pgf95*)
18134 # Portland Group compilers (*not* the Pentium gcc compiler,
18135 # which looks to be a dead project)
18136 lt_prog_compiler_wl_GCJ='-Wl,'
18137 lt_prog_compiler_pic_GCJ='-fpic'
18138 lt_prog_compiler_static_GCJ='-Bstatic'
18141 lt_prog_compiler_wl_GCJ='-Wl,'
18142 # All Alpha code is PIC.
18143 lt_prog_compiler_static_GCJ='-non_shared'
18146 case `$CC -V 2>&1 | sed 5q` in
18149 lt_prog_compiler_pic_GCJ='-KPIC'
18150 lt_prog_compiler_static_GCJ='-Bstatic'
18151 lt_prog_compiler_wl_GCJ='-Wl,'
18154 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18155 lt_prog_compiler_pic_GCJ='-KPIC'
18156 lt_prog_compiler_static_GCJ='-Bstatic'
18157 lt_prog_compiler_wl_GCJ=''
18164 osf3* | osf4* | osf5*)
18165 lt_prog_compiler_wl_GCJ='-Wl,'
18166 # All OSF/1 code is PIC.
18167 lt_prog_compiler_static_GCJ='-non_shared'
18171 lt_prog_compiler_static_GCJ='-non_shared'
18175 lt_prog_compiler_pic_GCJ='-KPIC'
18176 lt_prog_compiler_static_GCJ='-Bstatic'
18177 case $cc_basename in
18178 f77* | f90* | f95*)
18179 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18181 lt_prog_compiler_wl_GCJ='-Wl,';;
18186 lt_prog_compiler_wl_GCJ='-Qoption ld '
18187 lt_prog_compiler_pic_GCJ='-PIC'
18188 lt_prog_compiler_static_GCJ='-Bstatic'
18191 sysv4 | sysv4.2uw2* | sysv4.3*)
18192 lt_prog_compiler_wl_GCJ='-Wl,'
18193 lt_prog_compiler_pic_GCJ='-KPIC'
18194 lt_prog_compiler_static_GCJ='-Bstatic'
18198 if test -d /usr/nec ;then
18199 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18200 lt_prog_compiler_static_GCJ='-Bstatic'
18204 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18205 lt_prog_compiler_wl_GCJ='-Wl,'
18206 lt_prog_compiler_pic_GCJ='-KPIC'
18207 lt_prog_compiler_static_GCJ='-Bstatic'
18211 lt_prog_compiler_wl_GCJ='-Wl,'
18212 lt_prog_compiler_can_build_shared_GCJ=no
18216 lt_prog_compiler_pic_GCJ='-pic'
18217 lt_prog_compiler_static_GCJ='-Bstatic'
18221 lt_prog_compiler_can_build_shared_GCJ=no
18226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18227 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18230 # Check to make sure the PIC flag actually works.
18232 if test -n "$lt_prog_compiler_pic_GCJ"; then
18234 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18236 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 lt_prog_compiler_pic_works_GCJ=no
18240 ac_outfile=conftest.$ac_objext
18241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18242 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18243 # Insert the option either (1) after the last *FLAGS variable, or
18244 # (2) before a word containing "conftest.", or (3) at the end.
18245 # Note that $ac_compile itself does not contain backslashes and begins
18246 # with a dollar sign (not a hyphen), so the echo should work correctly.
18247 # The option is referenced via a variable to avoid confusing sed.
18248 lt_compile=`echo "$ac_compile" | $SED \
18249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18251 -e 's:$: $lt_compiler_flag:'`
18252 (eval echo "\"\$as_me:18252: $lt_compile\"" >&5)
18253 (eval "$lt_compile" 2>conftest.err)
18255 cat conftest.err >&5
18256 echo "$as_me:18256: \$? = $ac_status" >&5
18257 if (exit $ac_status) && test -s "$ac_outfile"; then
18258 # The compiler can only warn and ignore the option if not recognized
18259 # So say no if there are warnings other than the usual output.
18260 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18263 lt_prog_compiler_pic_works_GCJ=yes
18269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18270 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18272 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18273 case $lt_prog_compiler_pic_GCJ in
18275 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18278 lt_prog_compiler_pic_GCJ=
18279 lt_prog_compiler_can_build_shared_GCJ=no
18284 # For platforms which do not support PIC, -DPIC is meaningless:
18286 lt_prog_compiler_pic_GCJ=
18289 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18294 # Check to make sure the static flag actually works.
18296 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18297 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18298 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18299 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 lt_prog_compiler_static_works_GCJ=no
18303 save_LDFLAGS="$LDFLAGS"
18304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18307 # The linker can only warn and ignore the option if not recognized
18308 # So say no if there are warnings
18309 if test -s conftest.err; then
18310 # Append any errors to the config.log.
18311 cat conftest.err 1>&5
18312 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18314 if diff conftest.exp conftest.er2 >/dev/null; then
18315 lt_prog_compiler_static_works_GCJ=yes
18318 lt_prog_compiler_static_works_GCJ=yes
18322 LDFLAGS="$save_LDFLAGS"
18325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18326 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18328 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18331 lt_prog_compiler_static_GCJ=
18335 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18337 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 lt_cv_prog_compiler_c_o_GCJ=no
18341 $rm -r conftest 2>/dev/null
18345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18347 lt_compiler_flag="-o out/conftest2.$ac_objext"
18348 # Insert the option either (1) after the last *FLAGS variable, or
18349 # (2) before a word containing "conftest.", or (3) at the end.
18350 # Note that $ac_compile itself does not contain backslashes and begins
18351 # with a dollar sign (not a hyphen), so the echo should work correctly.
18352 lt_compile=`echo "$ac_compile" | $SED \
18353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18355 -e 's:$: $lt_compiler_flag:'`
18356 (eval echo "\"\$as_me:18356: $lt_compile\"" >&5)
18357 (eval "$lt_compile" 2>out/conftest.err)
18359 cat out/conftest.err >&5
18360 echo "$as_me:18360: \$? = $ac_status" >&5
18361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18363 # The compiler can only warn and ignore the option if not recognized
18364 # So say no if there are warnings
18365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18368 lt_cv_prog_compiler_c_o_GCJ=yes
18373 # SGI C++ compiler will create directory out/ii_files/ for
18374 # template instantiation
18375 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18376 $rm out/* && rmdir out
18382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18386 hard_links="nottested"
18387 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18388 # do not overwrite the value of need_locks provided by the user
18389 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18395 ln conftest.a conftest.b 2>&5 || hard_links=no
18396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18397 { echo "$as_me:$LINENO: result: $hard_links" >&5
18398 echo "${ECHO_T}$hard_links" >&6; }
18399 if test "$hard_links" = no; then
18400 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18408 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18412 allow_undefined_flag_GCJ=
18413 enable_shared_with_static_runtimes_GCJ=no
18415 archive_expsym_cmds_GCJ=
18416 old_archive_From_new_cmds_GCJ=
18417 old_archive_from_expsyms_cmds_GCJ=
18418 export_dynamic_flag_spec_GCJ=
18419 whole_archive_flag_spec_GCJ=
18420 thread_safe_flag_spec_GCJ=
18421 hardcode_libdir_flag_spec_GCJ=
18422 hardcode_libdir_flag_spec_ld_GCJ=
18423 hardcode_libdir_separator_GCJ=
18424 hardcode_direct_GCJ=no
18425 hardcode_minus_L_GCJ=no
18426 hardcode_shlibpath_var_GCJ=unsupported
18427 link_all_deplibs_GCJ=unknown
18428 hardcode_automatic_GCJ=no
18430 module_expsym_cmds_GCJ=
18431 always_export_symbols_GCJ=no
18432 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18433 # include_expsyms should be a list of space-separated symbols to be *always*
18434 # included in the symbol list
18435 include_expsyms_GCJ=
18436 # exclude_expsyms can be an extended regexp of symbols to exclude
18437 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18439 # as well as any symbol that contains `d'.
18440 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18442 # platforms (ab)use it in PIC code, but their linkers get confused if
18443 # the symbol is explicitly referenced. Since portable code cannot
18444 # rely on this symbol name, it's probably fine to never include it in
18445 # preloaded symbol tables.
18446 extract_expsyms_cmds=
18447 # Just being paranoid about ensuring that cc_basename is set.
18448 for cc_temp in $compiler""; do
18450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18459 cygwin* | mingw* | pw32*)
18460 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18461 # When not using gcc, we currently assume that we are using
18462 # Microsoft Visual C++.
18463 if test "$GCC" != yes; then
18468 # we just hope/assume this is gcc and not c89 (= MSVC++)
18477 if test "$with_gnu_ld" = yes; then
18478 # If archive_cmds runs LD, not CC, wlarc should be empty
18481 # Set some defaults for GNU ld with shared library support. These
18482 # are reset later if shared libraries are not supported. Putting them
18483 # here allows them to be overridden if necessary.
18484 runpath_var=LD_RUN_PATH
18485 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18486 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18487 # ancient GNU ld didn't support --whole-archive et. al.
18488 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18489 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18491 whole_archive_flag_spec_GCJ=
18493 supports_anon_versioning=no
18494 case `$LD -v 2>/dev/null` in
18495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18498 *\ 2.11.*) ;; # other 2.11 versions
18499 *) supports_anon_versioning=yes ;;
18502 # See if GNU ld supports shared libraries.
18504 aix3* | aix4* | aix5*)
18505 # On AIX/PPC, the GNU linker is very broken
18506 if test "$host_cpu" != ia64; then
18510 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18511 *** to be unable to reliably create shared libraries on AIX.
18512 *** Therefore, libtool is disabling shared libraries support. If you
18513 *** really care for shared libraries, you may want to modify your PATH
18514 *** so that a non-GNU linker is found, and then restart.
18521 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)'
18522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18523 hardcode_minus_L_GCJ=yes
18525 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18526 # that the semantics of dynamic libraries on AmigaOS, at least up
18527 # to version 4, is to share data among multiple programs linked
18528 # with the same dynamic library. Since this doesn't match the
18529 # behavior of shared libraries on other platforms, we can't use
18535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18536 allow_undefined_flag_GCJ=unsupported
18537 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18538 # support --undefined. This deserves some investigation. FIXME
18539 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18545 cygwin* | mingw* | pw32*)
18546 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18547 # as there is no search path for DLLs.
18548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18549 allow_undefined_flag_GCJ=unsupported
18550 always_export_symbols_GCJ=no
18551 enable_shared_with_static_runtimes_GCJ=yes
18552 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18554 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18555 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18556 # If the export-symbols file already is a .def file (1st line
18557 # is EXPORTS), use it as is; otherwise, prepend...
18558 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18559 cp $export_symbols $output_objdir/$soname.def;
18561 echo EXPORTS > $output_objdir/$soname.def;
18562 cat $export_symbols >> $output_objdir/$soname.def;
18564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18571 hardcode_direct_GCJ=no
18572 hardcode_shlibpath_var_GCJ=no
18573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18574 export_dynamic_flag_spec_GCJ='${wl}-E'
18575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18576 # Instead, shared libraries are loaded at an image base (0x10000000 by
18577 # default) and relocated if they conflict, which is a slow very memory
18578 # consuming and fragmenting process. To avoid this, we pick a random,
18579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18580 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18581 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'
18582 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'
18585 gnu* | linux* | k*bsd*-gnu)
18586 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18588 case $cc_basename,$host_cpu in
18589 pgcc*) # Portland Group C compiler
18590 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'
18591 tmp_addflag=' $pic_flag'
18593 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18594 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'
18595 tmp_addflag=' $pic_flag -Mnomain' ;;
18596 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18597 tmp_addflag=' -i_dynamic' ;;
18598 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18599 tmp_addflag=' -i_dynamic -nofor_main' ;;
18600 ifc* | ifort*) # Intel Fortran compiler
18601 tmp_addflag=' -nofor_main' ;;
18603 case `$CC -V 2>&1 | sed 5q` in
18604 *Sun\ C*) # Sun C 5.9
18605 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'
18606 tmp_sharedflag='-G' ;;
18607 *Sun\ F*) # Sun Fortran 8.3
18608 tmp_sharedflag='-G' ;;
18610 tmp_sharedflag='-shared' ;;
18612 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18614 if test $supports_anon_versioning = yes; then
18615 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18617 $echo "local: *; };" >> $output_objdir/$libname.ver~
18618 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18627 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18630 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18631 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18636 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18641 *** create shared libraries on Solaris systems. Therefore, libtool
18642 *** is disabling shared libraries support. We urge you to upgrade GNU
18643 *** binutils to release 2.9.1 or newer. Another option is to modify
18644 *** your PATH or compiler configuration so that the native linker is
18645 *** used, and then restart.
18648 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18649 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18650 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18657 case `$LD -v 2>&1` in
18658 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18663 *** reliably create shared libraries on SCO systems. Therefore, libtool
18664 *** is disabling shared libraries support. We urge you to upgrade GNU
18665 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18666 *** your PATH or compiler configuration so that the native linker is
18667 *** used, and then restart.
18672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18674 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18675 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18684 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18686 hardcode_direct_GCJ=yes
18687 hardcode_shlibpath_var_GCJ=no
18691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18692 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18693 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18700 if test "$ld_shlibs_GCJ" = no; then
18702 hardcode_libdir_flag_spec_GCJ=
18703 export_dynamic_flag_spec_GCJ=
18704 whole_archive_flag_spec_GCJ=
18707 # PORTME fill in a description of your system's linker (not GNU ld)
18710 allow_undefined_flag_GCJ=unsupported
18711 always_export_symbols_GCJ=yes
18712 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'
18713 # Note: this linker hardcodes the directories in LIBPATH if there
18714 # are no directories specified by -L.
18715 hardcode_minus_L_GCJ=yes
18716 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18717 # Neither direct hardcoding nor static linking is supported with a
18719 hardcode_direct_GCJ=unsupported
18724 if test "$host_cpu" = ia64; then
18725 # On IA64, the linker does run time linking by default, so we don't
18726 # have to do anything special.
18727 aix_use_runtimelinking=no
18728 exp_sym_flag='-Bexport'
18731 # If we're using GNU nm, then we don't want the "-C" option.
18732 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18733 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18734 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'
18736 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'
18738 aix_use_runtimelinking=no
18740 # Test if we are trying to use run time linking or normal
18741 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18742 # need to do runtime linking.
18743 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18744 for ld_flag in $LDFLAGS; do
18745 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18746 aix_use_runtimelinking=yes
18753 exp_sym_flag='-bexport'
18754 no_entry_flag='-bnoentry'
18757 # When large executables or shared objects are built, AIX ld can
18758 # have problems creating the table of contents. If linking a library
18759 # or program results in "error TOC overflow" add -mminimal-toc to
18760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18763 archive_cmds_GCJ=''
18764 hardcode_direct_GCJ=yes
18765 hardcode_libdir_separator_GCJ=':'
18766 link_all_deplibs_GCJ=yes
18768 if test "$GCC" = yes; then
18769 case $host_os in aix4.[012]|aix4.[012].*)
18770 # We only want to do this on AIX 4.2 and lower, the check
18771 # below for broken collect2 doesn't work under 4.3+
18772 collect2name=`${CC} -print-prog-name=collect2`
18773 if test -f "$collect2name" && \
18774 strings "$collect2name" | grep resolve_lib_name >/dev/null
18776 # We have reworked collect2
18779 # We have old collect2
18780 hardcode_direct_GCJ=unsupported
18781 # It fails to find uninstalled libraries when the uninstalled
18782 # path is not listed in the libpath. Setting hardcode_minus_L
18783 # to unsupported forces relinking
18784 hardcode_minus_L_GCJ=yes
18785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18786 hardcode_libdir_separator_GCJ=
18790 shared_flag='-shared'
18791 if test "$aix_use_runtimelinking" = yes; then
18792 shared_flag="$shared_flag "'${wl}-G'
18796 if test "$host_cpu" = ia64; then
18797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18798 # chokes on -Wl,-G. The following line is correct:
18801 if test "$aix_use_runtimelinking" = yes; then
18802 shared_flag='${wl}-G'
18804 shared_flag='${wl}-bM:SRE'
18809 # It seems that -bexpall does not export symbols beginning with
18810 # underscore (_), so it is better to generate a list of symbols to export.
18811 always_export_symbols_GCJ=yes
18812 if test "$aix_use_runtimelinking" = yes; then
18813 # Warning - without using the other runtime loading flags (-brtl),
18814 # -berok will link without error, but may produce a broken library.
18815 allow_undefined_flag_GCJ='-berok'
18816 # Determine the default libpath from the value encoded in an empty executable.
18817 cat >conftest.$ac_ext <<_ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_link") 2>conftest.er1
18841 grep -v '^ *+' conftest.er1 >conftest.err
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } && {
18846 test -z "$ac_c_werror_flag" ||
18847 test ! -s conftest.err
18848 } && test -s conftest$ac_exeext &&
18849 $as_test_x conftest$ac_exeext; then
18851 lt_aix_libpath_sed='
18852 /Import File Strings/,/^$/ {
18858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18859 # Check for a 64-bit object if we didn't find anything.
18860 if test -z "$aix_libpath"; then
18861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18871 conftest$ac_exeext conftest.$ac_ext
18872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18874 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18875 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"
18877 if test "$host_cpu" = ia64; then
18878 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18879 allow_undefined_flag_GCJ="-z nodefs"
18880 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"
18882 # Determine the default libpath from the value encoded in an empty executable.
18883 cat >conftest.$ac_ext <<_ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
18907 grep -v '^ *+' conftest.er1 >conftest.err
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } && {
18912 test -z "$ac_c_werror_flag" ||
18913 test ! -s conftest.err
18914 } && test -s conftest$ac_exeext &&
18915 $as_test_x conftest$ac_exeext; then
18917 lt_aix_libpath_sed='
18918 /Import File Strings/,/^$/ {
18924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18925 # Check for a 64-bit object if we didn't find anything.
18926 if test -z "$aix_libpath"; then
18927 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18930 echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18937 conftest$ac_exeext conftest.$ac_ext
18938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18940 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18941 # Warning - without using the other run time loading flags,
18942 # -berok will link without error, but may produce a broken library.
18943 no_undefined_flag_GCJ=' ${wl}-bernotok'
18944 allow_undefined_flag_GCJ=' ${wl}-berok'
18945 # Exported symbols can be pulled into shared objects from archives
18946 whole_archive_flag_spec_GCJ='$convenience'
18947 archive_cmds_need_lc_GCJ=yes
18948 # This is similar to how AIX traditionally builds its shared libraries.
18949 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'
18955 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)'
18956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18957 hardcode_minus_L_GCJ=yes
18958 # see comment about different semantics on the GNU ld section
18963 export_dynamic_flag_spec_GCJ=-rdynamic
18966 cygwin* | mingw* | pw32*)
18967 # When not using gcc, we currently assume that we are using
18968 # Microsoft Visual C++.
18969 # hardcode_libdir_flag_spec is actually meaningless, as there is
18970 # no search path for DLLs.
18971 hardcode_libdir_flag_spec_GCJ=' '
18972 allow_undefined_flag_GCJ=unsupported
18973 # Tell ltmain to make .lib files, not .a files.
18975 # Tell ltmain to make .dll files, not .so files.
18977 # FIXME: Setting linknames here is a bad hack.
18978 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18979 # The linker will automatically build a .lib file if we build a DLL.
18980 old_archive_From_new_cmds_GCJ='true'
18981 # FIXME: Should let the user specify the lib program.
18982 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18983 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18984 enable_shared_with_static_runtimes_GCJ=yes
18987 darwin* | rhapsody*)
18989 rhapsody* | darwin1.[012])
18990 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18993 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18994 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18996 case ${MACOSX_DEPLOYMENT_TARGET} in
18998 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19001 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19007 archive_cmds_need_lc_GCJ=no
19008 hardcode_direct_GCJ=no
19009 hardcode_automatic_GCJ=yes
19010 hardcode_shlibpath_var_GCJ=unsupported
19011 whole_archive_flag_spec_GCJ=''
19012 link_all_deplibs_GCJ=yes
19013 if test "$GCC" = yes ; then
19014 output_verbose_link_cmd='echo'
19015 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19016 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19018 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19019 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}'
19021 case $cc_basename in
19023 output_verbose_link_cmd='echo'
19024 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19025 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19027 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}'
19028 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}'
19038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19040 hardcode_shlibpath_var_GCJ=no
19047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19048 # support. Future versions do this automatically, but an explicit c++rt0.o
19049 # does not break anything, and helps significantly (at the cost of a little
19052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19053 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19054 hardcode_direct_GCJ=yes
19055 hardcode_shlibpath_var_GCJ=no
19058 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19060 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19061 hardcode_direct_GCJ=yes
19062 hardcode_minus_L_GCJ=yes
19063 hardcode_shlibpath_var_GCJ=no
19066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19067 freebsd* | dragonfly*)
19068 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19069 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19070 hardcode_direct_GCJ=yes
19071 hardcode_shlibpath_var_GCJ=no
19075 if test "$GCC" = yes; then
19076 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'
19078 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'
19080 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19081 hardcode_libdir_separator_GCJ=:
19082 hardcode_direct_GCJ=yes
19084 # hardcode_minus_L: Not really in the search PATH,
19085 # but as the default location of the library.
19086 hardcode_minus_L_GCJ=yes
19087 export_dynamic_flag_spec_GCJ='${wl}-E'
19091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19092 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19094 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19096 if test "$with_gnu_ld" = no; then
19097 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19098 hardcode_libdir_separator_GCJ=:
19100 hardcode_direct_GCJ=yes
19101 export_dynamic_flag_spec_GCJ='${wl}-E'
19103 # hardcode_minus_L: Not really in the search PATH,
19104 # but as the default location of the library.
19105 hardcode_minus_L_GCJ=yes
19110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19113 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19116 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19119 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19125 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19128 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19131 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19135 if test "$with_gnu_ld" = no; then
19136 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19137 hardcode_libdir_separator_GCJ=:
19141 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19142 hardcode_direct_GCJ=no
19143 hardcode_shlibpath_var_GCJ=no
19146 hardcode_direct_GCJ=yes
19147 export_dynamic_flag_spec_GCJ='${wl}-E'
19149 # hardcode_minus_L: Not really in the search PATH,
19150 # but as the default location of the library.
19151 hardcode_minus_L_GCJ=yes
19157 irix5* | irix6* | nonstopux*)
19158 if test "$GCC" = yes; then
19159 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'
19161 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'
19162 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19165 hardcode_libdir_separator_GCJ=:
19166 link_all_deplibs_GCJ=yes
19170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19171 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19173 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19175 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19176 hardcode_direct_GCJ=yes
19177 hardcode_shlibpath_var_GCJ=no
19181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19182 hardcode_direct_GCJ=yes
19183 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19184 hardcode_libdir_separator_GCJ=:
19185 hardcode_shlibpath_var_GCJ=no
19189 if test -f /usr/libexec/ld.so; then
19190 hardcode_direct_GCJ=yes
19191 hardcode_shlibpath_var_GCJ=no
19192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19193 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19194 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19195 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19196 export_dynamic_flag_spec_GCJ='${wl}-E'
19199 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19200 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19201 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19204 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19215 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19216 hardcode_minus_L_GCJ=yes
19217 allow_undefined_flag_GCJ=unsupported
19218 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'
19219 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19223 if test "$GCC" = yes; then
19224 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19225 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'
19227 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19228 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'
19230 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19231 hardcode_libdir_separator_GCJ=:
19234 osf4* | osf5*) # as osf3* with the addition of -msym flag
19235 if test "$GCC" = yes; then
19236 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19237 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'
19238 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19240 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19241 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'
19242 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~
19243 $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'
19245 # Both c and cxx compiler support -rpath directly
19246 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19248 hardcode_libdir_separator_GCJ=:
19252 no_undefined_flag_GCJ=' -z text'
19253 if test "$GCC" = yes; then
19255 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19256 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19257 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19260 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19261 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19264 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19265 hardcode_shlibpath_var_GCJ=no
19267 solaris2.[0-5] | solaris2.[0-5].*) ;;
19269 # The compiler driver will combine and reorder linker options,
19270 # but understands `-z linker_flag'. GCC discards it without `$wl',
19271 # but is careful enough not to reorder.
19272 # Supported since Solaris 2.6 (maybe 2.5.1?)
19273 if test "$GCC" = yes; then
19274 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19276 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19280 link_all_deplibs_GCJ=yes
19284 if test "x$host_vendor" = xsequent; then
19285 # Use $CC to link under sequent, because it throws in some extra .o
19286 # files that make .init and .fini sections work.
19287 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19289 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19292 hardcode_direct_GCJ=yes
19293 hardcode_minus_L_GCJ=yes
19294 hardcode_shlibpath_var_GCJ=no
19298 case $host_vendor in
19300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19301 hardcode_direct_GCJ=yes # is this really true???
19304 ## LD is ld it makes a PLAMLIB
19305 ## CC just makes a GrossModule.
19306 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19307 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19308 hardcode_direct_GCJ=no
19311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19312 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19315 runpath_var='LD_RUN_PATH'
19316 hardcode_shlibpath_var_GCJ=no
19320 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19321 hardcode_shlibpath_var_GCJ=no
19322 export_dynamic_flag_spec_GCJ='-Bexport'
19326 if test -d /usr/nec; then
19327 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19328 hardcode_shlibpath_var_GCJ=no
19329 runpath_var=LD_RUN_PATH
19330 hardcode_runpath_var=yes
19335 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19336 no_undefined_flag_GCJ='${wl}-z,text'
19337 archive_cmds_need_lc_GCJ=no
19338 hardcode_shlibpath_var_GCJ=no
19339 runpath_var='LD_RUN_PATH'
19341 if test "$GCC" = yes; then
19342 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19343 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19345 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19346 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19350 sysv5* | sco3.2v5* | sco5v6*)
19351 # Note: We can NOT use -z defs as we might desire, because we do not
19352 # link with -lc, and that would cause any symbols used from libc to
19353 # always be unresolved, which means just about no library would
19354 # ever link correctly. If we're not using GNU ld we use -z text
19355 # though, which does catch some bad symbols but isn't as heavy-handed
19357 no_undefined_flag_GCJ='${wl}-z,text'
19358 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19359 archive_cmds_need_lc_GCJ=no
19360 hardcode_shlibpath_var_GCJ=no
19361 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19362 hardcode_libdir_separator_GCJ=':'
19363 link_all_deplibs_GCJ=yes
19364 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19365 runpath_var='LD_RUN_PATH'
19367 if test "$GCC" = yes; then
19368 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19369 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19371 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19372 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19379 hardcode_shlibpath_var_GCJ=no
19388 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19389 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19390 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19393 # Do we need to explicitly link libc?
19395 case "x$archive_cmds_need_lc_GCJ" in
19397 # Assume -lc should be added
19398 archive_cmds_need_lc_GCJ=yes
19400 if test "$enable_shared" = yes && test "$GCC" = yes; then
19401 case $archive_cmds_GCJ in
19403 # FIXME: we may have to deal with multi-command sequences.
19406 # Test whether the compiler implicitly links with -lc since on some
19407 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19408 # to ld, don't add -lc before -lgcc.
19409 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19410 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } 2>conftest.err; then
19421 libobjs=conftest.$ac_objext
19423 wl=$lt_prog_compiler_wl_GCJ
19424 pic_flag=$lt_prog_compiler_pic_GCJ
19430 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19431 allow_undefined_flag_GCJ=
19432 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19433 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }
19438 archive_cmds_need_lc_GCJ=no
19440 archive_cmds_need_lc_GCJ=yes
19442 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19444 cat conftest.err 1>&5
19447 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19448 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19455 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19457 library_names_spec=
19458 libname_spec='lib$name'
19462 postuninstall_cmds=
19466 shlibpath_overrides_runpath=unknown
19468 dynamic_linker="$host_os ld.so"
19469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19471 need_lib_prefix=unknown
19472 hardcode_into_libs=no
19474 # when you set need_version to no, make sure it does not cause -set_version
19475 # flags to be left without arguments
19476 need_version=unknown
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19482 shlibpath_var=LIBPATH
19484 # AIX 3 has no versioning support, so we append a major version to the name.
19485 soname_spec='${libname}${release}${shared_ext}$major'
19492 hardcode_into_libs=yes
19493 if test "$host_cpu" = ia64; then
19494 # AIX 5 supports IA64
19495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19496 shlibpath_var=LD_LIBRARY_PATH
19498 # With GCC up to 2.95.x, collect2 would create an import file
19499 # for dependence libraries. The import file would start with
19500 # the line `#! .'. This would cause the generated library to
19501 # depend on `.', always an invalid library. This was fixed in
19502 # development snapshots of GCC prior to 3.0.
19504 aix4 | aix4.[01] | aix4.[01].*)
19505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19507 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19510 can_build_shared=no
19514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19515 # soname into executable. Probably we can add versioning support to
19516 # collect2, so additional links can be useful in future.
19517 if test "$aix_use_runtimelinking" = yes; then
19518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19519 # instead of lib<name>.a to let people know that these are not
19520 # typical AIX shared libraries.
19521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19523 # We preserve .a as extension for shared libraries through AIX4.2
19524 # and later when we are not doing run time linking.
19525 library_names_spec='${libname}${release}.a $libname.a'
19526 soname_spec='${libname}${release}${shared_ext}$major'
19528 shlibpath_var=LIBPATH
19533 library_names_spec='$libname.ixlibrary $libname.a'
19534 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19535 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'
19539 library_names_spec='${libname}${shared_ext}'
19540 dynamic_linker="$host_os ld.so"
19541 shlibpath_var=LIBRARY_PATH
19547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19548 soname_spec='${libname}${release}${shared_ext}$major'
19549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19550 shlibpath_var=LD_LIBRARY_PATH
19551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19553 # the default ld.so.conf also contains /usr/contrib/lib and
19554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19555 # libtool to hard-code these into programs
19558 cygwin* | mingw* | pw32*)
19559 version_type=windows
19564 case $GCC,$host_os in
19565 yes,cygwin* | yes,mingw* | yes,pw32*)
19566 library_names_spec='$libname.dll.a'
19567 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19568 postinstall_cmds='base_file=`basename \${file}`~
19569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19570 dldir=$destdir/`dirname \$dlpath`~
19571 test -d \$dldir || mkdir -p \$dldir~
19572 $install_prog $dir/$dlname \$dldir/$dlname~
19573 chmod a+x \$dldir/$dlname'
19574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19575 dlpath=$dir/\$dldll~
19577 shlibpath_overrides_runpath=yes
19581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19583 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19586 # MinGW DLLs use traditional 'lib' prefix
19587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19588 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19589 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19590 # It is most probably a Windows format PATH printed by
19591 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19592 # path with ; separators, and with drive letters. We can handle the
19593 # drive letters (cygwin fileutils understands them), so leave them,
19594 # especially as we might pass files found there to a mingw objdump,
19595 # which wouldn't understand a cygwinified path. Ahh.
19596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19602 # pw32 DLLs use 'pw' prefix rather than 'lib'
19603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19609 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19612 dynamic_linker='Win32 ld.exe'
19613 # FIXME: first we should search . and the directory the executable is in
19617 darwin* | rhapsody*)
19618 dynamic_linker="$host_os dyld"
19619 version_type=darwin
19622 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19623 soname_spec='${libname}${release}${major}$shared_ext'
19624 shlibpath_overrides_runpath=yes
19625 shlibpath_var=DYLD_LIBRARY_PATH
19626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19636 soname_spec='${libname}${release}${shared_ext}$major'
19637 shlibpath_var=LD_LIBRARY_PATH
19644 freebsd* | dragonfly*)
19645 # DragonFly does not have aout. When/if they implement a new
19646 # versioning mechanism, adjust this.
19647 if test -x /usr/bin/objformat; then
19648 objformat=`/usr/bin/objformat`
19651 freebsd[123]*) objformat=aout ;;
19652 *) objformat=elf ;;
19655 version_type=freebsd-$objformat
19656 case $version_type in
19658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19667 shlibpath_var=LD_LIBRARY_PATH
19670 shlibpath_overrides_runpath=yes
19672 freebsd3.[01]* | freebsdelf3.[01]*)
19673 shlibpath_overrides_runpath=yes
19674 hardcode_into_libs=yes
19676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19678 shlibpath_overrides_runpath=no
19679 hardcode_into_libs=yes
19681 *) # from 4.6 on, and DragonFly
19682 shlibpath_overrides_runpath=yes
19683 hardcode_into_libs=yes
19692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19693 soname_spec='${libname}${release}${shared_ext}$major'
19694 shlibpath_var=LD_LIBRARY_PATH
19695 hardcode_into_libs=yes
19698 hpux9* | hpux10* | hpux11*)
19699 # Give a soname corresponding to the major version so that dld.sl refuses to
19700 # link against other versions.
19707 hardcode_into_libs=yes
19708 dynamic_linker="$host_os dld.so"
19709 shlibpath_var=LD_LIBRARY_PATH
19710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19712 soname_spec='${libname}${release}${shared_ext}$major'
19713 if test "X$HPUX_IA64_MODE" = X32; then
19714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19722 hardcode_into_libs=yes
19723 dynamic_linker="$host_os dld.sl"
19724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19727 soname_spec='${libname}${release}${shared_ext}$major'
19728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19733 dynamic_linker="$host_os dld.sl"
19734 shlibpath_var=SHLIB_PATH
19735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19737 soname_spec='${libname}${release}${shared_ext}$major'
19740 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19741 postinstall_cmds='chmod 555 $lib'
19748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19749 soname_spec='${libname}${release}${shared_ext}$major'
19750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19751 shlibpath_var=LD_LIBRARY_PATH
19752 shlibpath_overrides_runpath=no
19753 hardcode_into_libs=yes
19756 irix5* | irix6* | nonstopux*)
19758 nonstopux*) version_type=nonstopux ;;
19760 if test "$lt_cv_prog_gnu_ld" = yes; then
19768 soname_spec='${libname}${release}${shared_ext}$major'
19769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19771 irix5* | nonstopux*)
19772 libsuff= shlibsuff=
19775 case $LD in # libtool.m4 will add one of these switches to LD
19776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19777 libsuff= shlibsuff= libmagic=32-bit;;
19778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19779 libsuff=32 shlibsuff=N32 libmagic=N32;;
19780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19781 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19782 *) libsuff= shlibsuff= libmagic=never-match;;
19786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19787 shlibpath_overrides_runpath=no
19788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19790 hardcode_into_libs=yes
19793 # No shared lib support for Linux oldld, aout, or coff.
19794 linux*oldld* | linux*aout* | linux*coff*)
19798 # This must be Linux ELF.
19799 linux* | k*bsd*-gnu)
19803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19804 soname_spec='${libname}${release}${shared_ext}$major'
19805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19806 shlibpath_var=LD_LIBRARY_PATH
19807 shlibpath_overrides_runpath=no
19808 # This implies no fast_install, which is unacceptable.
19809 # Some rework will be needed to allow for fast_install
19810 # before this can be enabled.
19811 hardcode_into_libs=yes
19812 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19813 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19815 # Append ld.so.conf contents to the search path
19816 if test -f /etc/ld.so.conf; then
19817 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' ' '`
19818 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19821 # We used to test for /lib/ld.so.1 and disable shared libraries on
19822 # powerpc, because MkLinux only supported shared libraries with the
19823 # GNU dynamic linker. Since this was broken with cross compilers,
19824 # most powerpc-linux boxes support dynamic linking these days and
19825 # people can always --disable-shared, the test was removed, and we
19826 # assume the GNU/Linux dynamic linker is in use.
19827 dynamic_linker='GNU/Linux ld.so'
19834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19837 dynamic_linker='NetBSD (a.out) ld.so'
19839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19840 soname_spec='${libname}${release}${shared_ext}$major'
19841 dynamic_linker='NetBSD ld.elf_so'
19843 shlibpath_var=LD_LIBRARY_PATH
19844 shlibpath_overrides_runpath=yes
19845 hardcode_into_libs=yes
19850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851 shlibpath_var=LD_LIBRARY_PATH
19852 shlibpath_overrides_runpath=yes
19859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860 soname_spec='${libname}${release}${shared_ext}$major'
19861 shlibpath_var=LD_LIBRARY_PATH
19862 shlibpath_overrides_runpath=yes
19867 sys_lib_dlsearch_path_spec="/usr/lib"
19869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19871 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19872 *) need_version=no ;;
19874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19876 shlibpath_var=LD_LIBRARY_PATH
19877 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19879 openbsd2.[89] | openbsd2.[89].*)
19880 shlibpath_overrides_runpath=no
19883 shlibpath_overrides_runpath=yes
19887 shlibpath_overrides_runpath=yes
19892 libname_spec='$name'
19895 library_names_spec='$libname${shared_ext} $libname.a'
19896 dynamic_linker='OS/2 ld.exe'
19897 shlibpath_var=LIBPATH
19900 osf3* | osf4* | osf5*)
19904 soname_spec='${libname}${release}${shared_ext}$major'
19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19906 shlibpath_var=LD_LIBRARY_PATH
19907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19920 soname_spec='${libname}${release}${shared_ext}$major'
19921 shlibpath_var=LD_LIBRARY_PATH
19922 shlibpath_overrides_runpath=yes
19923 hardcode_into_libs=yes
19924 # ldd complains unless libraries are executable
19925 postinstall_cmds='chmod +x $lib'
19930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19932 shlibpath_var=LD_LIBRARY_PATH
19933 shlibpath_overrides_runpath=yes
19934 if test "$with_gnu_ld" = yes; then
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19943 soname_spec='${libname}${release}${shared_ext}$major'
19944 shlibpath_var=LD_LIBRARY_PATH
19945 case $host_vendor in
19947 shlibpath_overrides_runpath=no
19949 export_dynamic_flag_spec='${wl}-Blargedynsym'
19950 runpath_var=LD_RUN_PATH
19958 shlibpath_overrides_runpath=no
19959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19965 if test -d /usr/nec ;then
19967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19968 soname_spec='$libname${shared_ext}.$major'
19969 shlibpath_var=LD_LIBRARY_PATH
19973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19974 version_type=freebsd-elf
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19978 soname_spec='${libname}${release}${shared_ext}$major'
19979 shlibpath_var=LD_LIBRARY_PATH
19980 hardcode_into_libs=yes
19981 if test "$with_gnu_ld" = yes; then
19982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19983 shlibpath_overrides_runpath=no
19985 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19986 shlibpath_overrides_runpath=yes
19989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19993 sys_lib_dlsearch_path_spec='/usr/lib'
19998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19999 soname_spec='${libname}${release}${shared_ext}$major'
20000 shlibpath_var=LD_LIBRARY_PATH
20007 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20008 echo "${ECHO_T}$dynamic_linker" >&6; }
20009 test "$dynamic_linker" = no && can_build_shared=no
20011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20012 if test "$GCC" = yes; then
20013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20018 hardcode_action_GCJ=
20019 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20020 test -n "$runpath_var_GCJ" || \
20021 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20023 # We can hardcode non-existant directories.
20024 if test "$hardcode_direct_GCJ" != no &&
20025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20026 # have to relink, otherwise we might link with an installed library
20027 # when we should be linking with a yet-to-be-installed one
20028 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20029 test "$hardcode_minus_L_GCJ" != no; then
20030 # Linking always hardcodes the temporary library directory.
20031 hardcode_action_GCJ=relink
20033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20034 hardcode_action_GCJ=immediate
20037 # We cannot hardcode anything, or else we can only hardcode existing
20039 hardcode_action_GCJ=unsupported
20041 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20042 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20044 if test "$hardcode_action_GCJ" = relink; then
20045 # Fast installation is not supported
20046 enable_fast_install=no
20047 elif test "$shlibpath_overrides_runpath" = yes ||
20048 test "$enable_shared" = no; then
20049 # Fast installation is not necessary
20050 enable_fast_install=needless
20054 # The else clause should only fire when bootstrapping the
20055 # libtool distribution, otherwise you forgot to ship ltmain.sh
20056 # with your package, and you will get complaints that there are
20057 # no rules to generate ltmain.sh.
20058 if test -f "$ltmain"; then
20059 # See if we are running on zsh, and set the options which allow our commands through
20060 # without removal of \ escapes.
20061 if test -n "${ZSH_VERSION+set}" ; then
20062 setopt NO_GLOB_SUBST
20064 # Now quote all the things that may contain metacharacters while being
20065 # careful not to overquote the AC_SUBSTed values. We take copies of the
20066 # variables and quote the copies for generation of the libtool script.
20067 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20069 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20070 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20071 deplibs_check_method reload_flag reload_cmds need_locks \
20072 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20073 lt_cv_sys_global_symbol_to_c_name_address \
20074 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20075 old_postinstall_cmds old_postuninstall_cmds \
20079 lt_prog_compiler_wl_GCJ \
20080 lt_prog_compiler_pic_GCJ \
20081 lt_prog_compiler_static_GCJ \
20082 lt_prog_compiler_no_builtin_flag_GCJ \
20083 export_dynamic_flag_spec_GCJ \
20084 thread_safe_flag_spec_GCJ \
20085 whole_archive_flag_spec_GCJ \
20086 enable_shared_with_static_runtimes_GCJ \
20087 old_archive_cmds_GCJ \
20088 old_archive_from_new_cmds_GCJ \
20089 predep_objects_GCJ \
20090 postdep_objects_GCJ \
20093 compiler_lib_search_path_GCJ \
20095 archive_expsym_cmds_GCJ \
20096 postinstall_cmds_GCJ \
20097 postuninstall_cmds_GCJ \
20098 old_archive_from_expsyms_cmds_GCJ \
20099 allow_undefined_flag_GCJ \
20100 no_undefined_flag_GCJ \
20101 export_symbols_cmds_GCJ \
20102 hardcode_libdir_flag_spec_GCJ \
20103 hardcode_libdir_flag_spec_ld_GCJ \
20104 hardcode_libdir_separator_GCJ \
20105 hardcode_automatic_GCJ \
20107 module_expsym_cmds_GCJ \
20108 lt_cv_prog_compiler_c_o_GCJ \
20109 fix_srcfile_path_GCJ \
20110 exclude_expsyms_GCJ \
20111 include_expsyms_GCJ; do
20114 old_archive_cmds_GCJ | \
20115 old_archive_from_new_cmds_GCJ | \
20116 archive_cmds_GCJ | \
20117 archive_expsym_cmds_GCJ | \
20118 module_cmds_GCJ | \
20119 module_expsym_cmds_GCJ | \
20120 old_archive_from_expsyms_cmds_GCJ | \
20121 export_symbols_cmds_GCJ | \
20122 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20123 postinstall_cmds | postuninstall_cmds | \
20124 old_postinstall_cmds | old_postuninstall_cmds | \
20125 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20126 # Double-quote double-evaled strings.
20127 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20136 *'\$0 --fallback-echo"')
20137 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20143 cat <<__EOF__ >> "$cfgfile"
20144 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20148 # Shell to use when invoking shell scripts.
20151 # Whether or not to build shared libraries.
20152 build_libtool_libs=$enable_shared
20154 # Whether or not to build static libraries.
20155 build_old_libs=$enable_static
20157 # Whether or not to add -lc for building shared libraries.
20158 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20160 # Whether or not to disallow shared libs when runtime libs are static
20161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20163 # Whether or not to optimize for fast installation.
20164 fast_install=$enable_fast_install
20167 host_alias=$host_alias
20171 # The build system.
20172 build_alias=$build_alias
20176 # An echo program that does not interpret backslashes.
20181 AR_FLAGS=$lt_AR_FLAGS
20186 # LTCC compiler flags.
20187 LTCFLAGS=$lt_LTCFLAGS
20189 # A language-specific compiler.
20190 CC=$lt_compiler_GCJ
20192 # Is the compiler the GNU C compiler?
20198 # The linker used to build libraries.
20201 # Whether we need hard or soft links.
20204 # A BSD-compatible nm program.
20207 # A symbol stripping program
20210 # Used to examine libraries when file_magic_cmd begins "file"
20211 MAGIC_CMD=$MAGIC_CMD
20213 # Used on cygwin: DLL creation program.
20216 # Used on cygwin: object dumper.
20219 # Used on cygwin: assembler.
20222 # The name of the directory that contains temporary libtool files.
20225 # How to create reloadable object files.
20226 reload_flag=$lt_reload_flag
20227 reload_cmds=$lt_reload_cmds
20229 # How to pass a linker flag through the compiler.
20230 wl=$lt_lt_prog_compiler_wl_GCJ
20232 # Object file suffix (normally "o").
20233 objext="$ac_objext"
20235 # Old archive suffix (normally "a").
20238 # Shared library suffix (normally ".so").
20239 shrext_cmds='$shrext_cmds'
20241 # Executable file suffix (normally "").
20244 # Additional compiler flags for building library objects.
20245 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20248 # What is the maximum length of a command?
20249 max_cmd_len=$lt_cv_sys_max_cmd_len
20251 # Does compiler simultaneously support -c and -o options?
20252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20254 # Must we lock files when doing compilation?
20255 need_locks=$lt_need_locks
20257 # Do we need the lib prefix for modules?
20258 need_lib_prefix=$need_lib_prefix
20260 # Do we need a version for libraries?
20261 need_version=$need_version
20263 # Whether dlopen is supported.
20264 dlopen_support=$enable_dlopen
20266 # Whether dlopen of programs is supported.
20267 dlopen_self=$enable_dlopen_self
20269 # Whether dlopen of statically linked programs is supported.
20270 dlopen_self_static=$enable_dlopen_self_static
20272 # Compiler flag to prevent dynamic linking.
20273 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20275 # Compiler flag to turn off builtin functions.
20276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20278 # Compiler flag to allow reflexive dlopens.
20279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20281 # Compiler flag to generate shared objects directly from archives.
20282 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20284 # Compiler flag to generate thread-safe objects.
20285 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20287 # Library versioning type.
20288 version_type=$version_type
20290 # Format of library name prefix.
20291 libname_spec=$lt_libname_spec
20293 # List of archive names. First name is the real one, the rest are links.
20294 # The last name is the one that the linker finds with -lNAME.
20295 library_names_spec=$lt_library_names_spec
20297 # The coded name of the library, if different from the real name.
20298 soname_spec=$lt_soname_spec
20300 # Commands used to build and install an old-style archive.
20302 old_archive_cmds=$lt_old_archive_cmds_GCJ
20303 old_postinstall_cmds=$lt_old_postinstall_cmds
20304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20306 # Create an old-style archive from a shared archive.
20307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20309 # Create a temporary old-style archive to link instead of a shared archive.
20310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20312 # Commands used to build and install a shared archive.
20313 archive_cmds=$lt_archive_cmds_GCJ
20314 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20315 postinstall_cmds=$lt_postinstall_cmds
20316 postuninstall_cmds=$lt_postuninstall_cmds
20318 # Commands used to build a loadable module (assumed same as above if empty)
20319 module_cmds=$lt_module_cmds_GCJ
20320 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20322 # Commands to strip libraries.
20323 old_striplib=$lt_old_striplib
20324 striplib=$lt_striplib
20326 # Dependencies to place before the objects being linked to create a
20328 predep_objects=$lt_predep_objects_GCJ
20330 # Dependencies to place after the objects being linked to create a
20332 postdep_objects=$lt_postdep_objects_GCJ
20334 # Dependencies to place before the objects being linked to create a
20336 predeps=$lt_predeps_GCJ
20338 # Dependencies to place after the objects being linked to create a
20340 postdeps=$lt_postdeps_GCJ
20342 # The library search path used internally by the compiler when linking
20343 # a shared library.
20344 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20346 # Method to check whether dependent libraries are shared objects.
20347 deplibs_check_method=$lt_deplibs_check_method
20349 # Command to use when deplibs_check_method == file_magic.
20350 file_magic_cmd=$lt_file_magic_cmd
20352 # Flag that allows shared libraries with undefined symbols to be built.
20353 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20355 # Flag that forces no undefined symbols.
20356 no_undefined_flag=$lt_no_undefined_flag_GCJ
20358 # Commands used to finish a libtool library installation in a directory.
20359 finish_cmds=$lt_finish_cmds
20361 # Same as above, but a single script fragment to be evaled but not shown.
20362 finish_eval=$lt_finish_eval
20364 # Take the output of nm and produce a listing of raw symbols and C names.
20365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20367 # Transform the output of nm in a proper C declaration
20368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20370 # Transform the output of nm in a C name address pair
20371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20373 # This is the shared library runtime path variable.
20374 runpath_var=$runpath_var
20376 # This is the shared library path variable.
20377 shlibpath_var=$shlibpath_var
20379 # Is shlibpath searched before the hard-coded library search path?
20380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20382 # How to hardcode a shared library path into an executable.
20383 hardcode_action=$hardcode_action_GCJ
20385 # Whether we should hardcode library paths into libraries.
20386 hardcode_into_libs=$hardcode_into_libs
20388 # Flag to hardcode \$libdir into a binary during linking.
20389 # This must work even if \$libdir does not exist.
20390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20392 # If ld is used when linking, flag to hardcode \$libdir into
20393 # a binary during linking. This must work even if \$libdir does
20395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20397 # Whether we need a single -rpath flag with a separated argument.
20398 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20400 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20401 # resulting binary.
20402 hardcode_direct=$hardcode_direct_GCJ
20404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20405 # resulting binary.
20406 hardcode_minus_L=$hardcode_minus_L_GCJ
20408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20409 # the resulting binary.
20410 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20412 # Set to yes if building a shared library automatically hardcodes DIR into the library
20413 # and all subsequent libraries and executables linked against it.
20414 hardcode_automatic=$hardcode_automatic_GCJ
20416 # Variables whose values should be saved in libtool wrapper scripts and
20417 # restored at relink time.
20418 variables_saved_for_relink="$variables_saved_for_relink"
20420 # Whether libtool must link a program against all its dependency libraries.
20421 link_all_deplibs=$link_all_deplibs_GCJ
20423 # Compile-time system search path for libraries
20424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20426 # Run-time system search path for libraries
20427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20429 # Fix the shell variable \$srcfile for the compiler.
20430 fix_srcfile_path=$lt_fix_srcfile_path
20432 # Set to yes if exported symbols are required.
20433 always_export_symbols=$always_export_symbols_GCJ
20435 # The commands to list exported symbols.
20436 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20438 # The commands to extract the exported symbol list from a shared archive.
20439 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20441 # Symbols that should not be listed in the preloaded symbols.
20442 exclude_expsyms=$lt_exclude_expsyms_GCJ
20444 # Symbols that must always be exported.
20445 include_expsyms=$lt_include_expsyms_GCJ
20447 # ### END LIBTOOL TAG CONFIG: $tagname
20453 # If there is no Makefile yet, we rely on a make rule to execute
20454 # `config.status --recheck' to rerun these tests and create the
20455 # libtool script then.
20456 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20457 if test -f "$ltmain_in"; then
20458 test -f Makefile && make "$ltmain"
20464 ac_cpp='$CPP $CPPFLAGS'
20465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20479 # Source file extension for RC test sources.
20482 # Object file extension for compiled RC test sources.
20486 # Code to be used in simple compile tests
20487 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20489 # Code to be used in simple link tests
20490 lt_simple_link_test_code="$lt_simple_compile_test_code"
20492 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20494 # If no C compiler was specified, use CC.
20497 # If no C compiler flags were specified, use CFLAGS.
20498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20500 # Allow CC to be a program name with arguments.
20504 # save warnings/boilerplate of simple test code
20505 ac_outfile=conftest.$ac_objext
20506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20508 _lt_compiler_boilerplate=`cat conftest.err`
20511 ac_outfile=conftest.$ac_objext
20512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20514 _lt_linker_boilerplate=`cat conftest.err`
20518 # Allow CC to be a program name with arguments.
20523 for cc_temp in $compiler""; do
20525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20531 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20533 lt_cv_prog_compiler_c_o_RC=yes
20535 # The else clause should only fire when bootstrapping the
20536 # libtool distribution, otherwise you forgot to ship ltmain.sh
20537 # with your package, and you will get complaints that there are
20538 # no rules to generate ltmain.sh.
20539 if test -f "$ltmain"; then
20540 # See if we are running on zsh, and set the options which allow our commands through
20541 # without removal of \ escapes.
20542 if test -n "${ZSH_VERSION+set}" ; then
20543 setopt NO_GLOB_SUBST
20545 # Now quote all the things that may contain metacharacters while being
20546 # careful not to overquote the AC_SUBSTed values. We take copies of the
20547 # variables and quote the copies for generation of the libtool script.
20548 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20550 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20551 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20552 deplibs_check_method reload_flag reload_cmds need_locks \
20553 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20554 lt_cv_sys_global_symbol_to_c_name_address \
20555 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20556 old_postinstall_cmds old_postuninstall_cmds \
20560 lt_prog_compiler_wl_RC \
20561 lt_prog_compiler_pic_RC \
20562 lt_prog_compiler_static_RC \
20563 lt_prog_compiler_no_builtin_flag_RC \
20564 export_dynamic_flag_spec_RC \
20565 thread_safe_flag_spec_RC \
20566 whole_archive_flag_spec_RC \
20567 enable_shared_with_static_runtimes_RC \
20568 old_archive_cmds_RC \
20569 old_archive_from_new_cmds_RC \
20570 predep_objects_RC \
20571 postdep_objects_RC \
20574 compiler_lib_search_path_RC \
20576 archive_expsym_cmds_RC \
20577 postinstall_cmds_RC \
20578 postuninstall_cmds_RC \
20579 old_archive_from_expsyms_cmds_RC \
20580 allow_undefined_flag_RC \
20581 no_undefined_flag_RC \
20582 export_symbols_cmds_RC \
20583 hardcode_libdir_flag_spec_RC \
20584 hardcode_libdir_flag_spec_ld_RC \
20585 hardcode_libdir_separator_RC \
20586 hardcode_automatic_RC \
20588 module_expsym_cmds_RC \
20589 lt_cv_prog_compiler_c_o_RC \
20590 fix_srcfile_path_RC \
20591 exclude_expsyms_RC \
20592 include_expsyms_RC; do
20595 old_archive_cmds_RC | \
20596 old_archive_from_new_cmds_RC | \
20597 archive_cmds_RC | \
20598 archive_expsym_cmds_RC | \
20600 module_expsym_cmds_RC | \
20601 old_archive_from_expsyms_cmds_RC | \
20602 export_symbols_cmds_RC | \
20603 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20604 postinstall_cmds | postuninstall_cmds | \
20605 old_postinstall_cmds | old_postuninstall_cmds | \
20606 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20607 # Double-quote double-evaled strings.
20608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20617 *'\$0 --fallback-echo"')
20618 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20624 cat <<__EOF__ >> "$cfgfile"
20625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20629 # Shell to use when invoking shell scripts.
20632 # Whether or not to build shared libraries.
20633 build_libtool_libs=$enable_shared
20635 # Whether or not to build static libraries.
20636 build_old_libs=$enable_static
20638 # Whether or not to add -lc for building shared libraries.
20639 build_libtool_need_lc=$archive_cmds_need_lc_RC
20641 # Whether or not to disallow shared libs when runtime libs are static
20642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20644 # Whether or not to optimize for fast installation.
20645 fast_install=$enable_fast_install
20648 host_alias=$host_alias
20652 # The build system.
20653 build_alias=$build_alias
20657 # An echo program that does not interpret backslashes.
20662 AR_FLAGS=$lt_AR_FLAGS
20667 # LTCC compiler flags.
20668 LTCFLAGS=$lt_LTCFLAGS
20670 # A language-specific compiler.
20673 # Is the compiler the GNU C compiler?
20679 # The linker used to build libraries.
20682 # Whether we need hard or soft links.
20685 # A BSD-compatible nm program.
20688 # A symbol stripping program
20691 # Used to examine libraries when file_magic_cmd begins "file"
20692 MAGIC_CMD=$MAGIC_CMD
20694 # Used on cygwin: DLL creation program.
20697 # Used on cygwin: object dumper.
20700 # Used on cygwin: assembler.
20703 # The name of the directory that contains temporary libtool files.
20706 # How to create reloadable object files.
20707 reload_flag=$lt_reload_flag
20708 reload_cmds=$lt_reload_cmds
20710 # How to pass a linker flag through the compiler.
20711 wl=$lt_lt_prog_compiler_wl_RC
20713 # Object file suffix (normally "o").
20714 objext="$ac_objext"
20716 # Old archive suffix (normally "a").
20719 # Shared library suffix (normally ".so").
20720 shrext_cmds='$shrext_cmds'
20722 # Executable file suffix (normally "").
20725 # Additional compiler flags for building library objects.
20726 pic_flag=$lt_lt_prog_compiler_pic_RC
20729 # What is the maximum length of a command?
20730 max_cmd_len=$lt_cv_sys_max_cmd_len
20732 # Does compiler simultaneously support -c and -o options?
20733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20735 # Must we lock files when doing compilation?
20736 need_locks=$lt_need_locks
20738 # Do we need the lib prefix for modules?
20739 need_lib_prefix=$need_lib_prefix
20741 # Do we need a version for libraries?
20742 need_version=$need_version
20744 # Whether dlopen is supported.
20745 dlopen_support=$enable_dlopen
20747 # Whether dlopen of programs is supported.
20748 dlopen_self=$enable_dlopen_self
20750 # Whether dlopen of statically linked programs is supported.
20751 dlopen_self_static=$enable_dlopen_self_static
20753 # Compiler flag to prevent dynamic linking.
20754 link_static_flag=$lt_lt_prog_compiler_static_RC
20756 # Compiler flag to turn off builtin functions.
20757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20759 # Compiler flag to allow reflexive dlopens.
20760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20762 # Compiler flag to generate shared objects directly from archives.
20763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20765 # Compiler flag to generate thread-safe objects.
20766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20768 # Library versioning type.
20769 version_type=$version_type
20771 # Format of library name prefix.
20772 libname_spec=$lt_libname_spec
20774 # List of archive names. First name is the real one, the rest are links.
20775 # The last name is the one that the linker finds with -lNAME.
20776 library_names_spec=$lt_library_names_spec
20778 # The coded name of the library, if different from the real name.
20779 soname_spec=$lt_soname_spec
20781 # Commands used to build and install an old-style archive.
20783 old_archive_cmds=$lt_old_archive_cmds_RC
20784 old_postinstall_cmds=$lt_old_postinstall_cmds
20785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20787 # Create an old-style archive from a shared archive.
20788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20790 # Create a temporary old-style archive to link instead of a shared archive.
20791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20793 # Commands used to build and install a shared archive.
20794 archive_cmds=$lt_archive_cmds_RC
20795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20796 postinstall_cmds=$lt_postinstall_cmds
20797 postuninstall_cmds=$lt_postuninstall_cmds
20799 # Commands used to build a loadable module (assumed same as above if empty)
20800 module_cmds=$lt_module_cmds_RC
20801 module_expsym_cmds=$lt_module_expsym_cmds_RC
20803 # Commands to strip libraries.
20804 old_striplib=$lt_old_striplib
20805 striplib=$lt_striplib
20807 # Dependencies to place before the objects being linked to create a
20809 predep_objects=$lt_predep_objects_RC
20811 # Dependencies to place after the objects being linked to create a
20813 postdep_objects=$lt_postdep_objects_RC
20815 # Dependencies to place before the objects being linked to create a
20817 predeps=$lt_predeps_RC
20819 # Dependencies to place after the objects being linked to create a
20821 postdeps=$lt_postdeps_RC
20823 # The library search path used internally by the compiler when linking
20824 # a shared library.
20825 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20827 # Method to check whether dependent libraries are shared objects.
20828 deplibs_check_method=$lt_deplibs_check_method
20830 # Command to use when deplibs_check_method == file_magic.
20831 file_magic_cmd=$lt_file_magic_cmd
20833 # Flag that allows shared libraries with undefined symbols to be built.
20834 allow_undefined_flag=$lt_allow_undefined_flag_RC
20836 # Flag that forces no undefined symbols.
20837 no_undefined_flag=$lt_no_undefined_flag_RC
20839 # Commands used to finish a libtool library installation in a directory.
20840 finish_cmds=$lt_finish_cmds
20842 # Same as above, but a single script fragment to be evaled but not shown.
20843 finish_eval=$lt_finish_eval
20845 # Take the output of nm and produce a listing of raw symbols and C names.
20846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20848 # Transform the output of nm in a proper C declaration
20849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20851 # Transform the output of nm in a C name address pair
20852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20854 # This is the shared library runtime path variable.
20855 runpath_var=$runpath_var
20857 # This is the shared library path variable.
20858 shlibpath_var=$shlibpath_var
20860 # Is shlibpath searched before the hard-coded library search path?
20861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20863 # How to hardcode a shared library path into an executable.
20864 hardcode_action=$hardcode_action_RC
20866 # Whether we should hardcode library paths into libraries.
20867 hardcode_into_libs=$hardcode_into_libs
20869 # Flag to hardcode \$libdir into a binary during linking.
20870 # This must work even if \$libdir does not exist.
20871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20873 # If ld is used when linking, flag to hardcode \$libdir into
20874 # a binary during linking. This must work even if \$libdir does
20876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20878 # Whether we need a single -rpath flag with a separated argument.
20879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20882 # resulting binary.
20883 hardcode_direct=$hardcode_direct_RC
20885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20886 # resulting binary.
20887 hardcode_minus_L=$hardcode_minus_L_RC
20889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20890 # the resulting binary.
20891 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20893 # Set to yes if building a shared library automatically hardcodes DIR into the library
20894 # and all subsequent libraries and executables linked against it.
20895 hardcode_automatic=$hardcode_automatic_RC
20897 # Variables whose values should be saved in libtool wrapper scripts and
20898 # restored at relink time.
20899 variables_saved_for_relink="$variables_saved_for_relink"
20901 # Whether libtool must link a program against all its dependency libraries.
20902 link_all_deplibs=$link_all_deplibs_RC
20904 # Compile-time system search path for libraries
20905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20907 # Run-time system search path for libraries
20908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20910 # Fix the shell variable \$srcfile for the compiler.
20911 fix_srcfile_path=$lt_fix_srcfile_path
20913 # Set to yes if exported symbols are required.
20914 always_export_symbols=$always_export_symbols_RC
20916 # The commands to list exported symbols.
20917 export_symbols_cmds=$lt_export_symbols_cmds_RC
20919 # The commands to extract the exported symbol list from a shared archive.
20920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20922 # Symbols that should not be listed in the preloaded symbols.
20923 exclude_expsyms=$lt_exclude_expsyms_RC
20925 # Symbols that must always be exported.
20926 include_expsyms=$lt_include_expsyms_RC
20928 # ### END LIBTOOL TAG CONFIG: $tagname
20934 # If there is no Makefile yet, we rely on a make rule to execute
20935 # `config.status --recheck' to rerun these tests and create the
20936 # libtool script then.
20937 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20938 if test -f "$ltmain_in"; then
20939 test -f Makefile && make "$ltmain"
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20955 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20956 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20957 { (exit 1); exit 1; }; }
20961 # Append the new tag name to the list of available tags.
20962 if test -n "$tagname" ; then
20963 available_tags="$available_tags $tagname"
20969 # Now substitute the updated list of available tags.
20970 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20971 mv "${ofile}T" "$ofile"
20975 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20976 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20977 { (exit 1); exit 1; }; }
20983 # This can be used to rebuild libtool when needed
20984 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20986 # Always use our own libtool.
20987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20989 # Prevent multiple expansion
21010 if test "x$CC" != xcc; then
21011 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21012 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21014 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21015 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21017 set dummy $CC; ac_cc=`echo $2 |
21018 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21019 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 cat >conftest.$ac_ext <<_ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21037 # Make sure it works both with $CC and with simple cc.
21038 # We do the test twice because some compilers refuse to overwrite an
21039 # existing .o file with -o, though they will create one.
21040 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21042 if { (case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_try") 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_try") 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); };
21061 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21062 if test "x$CC" != xcc; then
21063 # Test first that cc exists at all.
21064 if { ac_try='cc -c conftest.$ac_ext >&5'
21065 { (case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_try") 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21076 if { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_try") 2>&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); };
21098 # cc exists but doesn't like -o.
21099 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21104 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21106 rm -f core conftest*
21109 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21110 { echo "$as_me:$LINENO: result: yes" >&5
21111 echo "${ECHO_T}yes" >&6; }
21113 { echo "$as_me:$LINENO: result: no" >&5
21114 echo "${ECHO_T}no" >&6; }
21116 cat >>confdefs.h <<\_ACEOF
21117 #define NO_MINUS_C_MINUS_O 1
21122 # FIXME: we rely on the cache variable name because
21123 # there is no other way.
21125 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21126 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21127 # Losing compiler, so override with the script.
21128 # FIXME: It is wrong to rewrite CC.
21129 # But if we don't then we get into trouble of one sort or another.
21130 # A longer-term fix would be to have automake use am__CC in this case,
21131 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21132 CC="$am_aux_dir/compile $CC"
21137 if test "x$cross_compiling" = "xno"; then
21138 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21140 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21145 if test -n "$ac_tool_prefix"; then
21146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21147 set dummy ${ac_tool_prefix}ar; ac_word=$2
21148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21150 if test "${ac_cv_prog_AR+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21153 if test -n "$AR"; then
21154 ac_cv_prog_AR="$AR" # Let the user override the test.
21156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21157 for as_dir in $PATH
21160 test -z "$as_dir" && as_dir=.
21161 for ac_exec_ext in '' $ac_executable_extensions; do
21162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21163 ac_cv_prog_AR="${ac_tool_prefix}ar"
21164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21174 if test -n "$AR"; then
21175 { echo "$as_me:$LINENO: result: $AR" >&5
21176 echo "${ECHO_T}$AR" >&6; }
21178 { echo "$as_me:$LINENO: result: no" >&5
21179 echo "${ECHO_T}no" >&6; }
21184 if test -z "$ac_cv_prog_AR"; then
21186 # Extract the first word of "ar", so it can be a program name with args.
21187 set dummy ar; ac_word=$2
21188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21190 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 if test -n "$ac_ct_AR"; then
21194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21197 for as_dir in $PATH
21200 test -z "$as_dir" && as_dir=.
21201 for ac_exec_ext in '' $ac_executable_extensions; do
21202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21203 ac_cv_prog_ac_ct_AR="ar"
21204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21213 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21214 if test -n "$ac_ct_AR"; then
21215 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21216 echo "${ECHO_T}$ac_ct_AR" >&6; }
21218 { echo "$as_me:$LINENO: result: no" >&5
21219 echo "${ECHO_T}no" >&6; }
21222 if test "x$ac_ct_AR" = x; then
21225 case $cross_compiling:$ac_tool_warned in
21227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21228 whose name does not start with the host triplet. If you think this
21229 configuration is useful to you, please write to autoconf@gnu.org." >&5
21230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21231 whose name does not start with the host triplet. If you think this
21232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21233 ac_tool_warned=yes ;;
21238 AR="$ac_cv_prog_AR"
21241 if test -n "$ac_tool_prefix"; then
21242 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21243 set dummy ${ac_tool_prefix}ld; ac_word=$2
21244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21246 if test "${ac_cv_prog_LD+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 if test -n "$LD"; then
21250 ac_cv_prog_LD="$LD" # Let the user override the test.
21252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21253 for as_dir in $PATH
21256 test -z "$as_dir" && as_dir=.
21257 for ac_exec_ext in '' $ac_executable_extensions; do
21258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21259 ac_cv_prog_LD="${ac_tool_prefix}ld"
21260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21270 if test -n "$LD"; then
21271 { echo "$as_me:$LINENO: result: $LD" >&5
21272 echo "${ECHO_T}$LD" >&6; }
21274 { echo "$as_me:$LINENO: result: no" >&5
21275 echo "${ECHO_T}no" >&6; }
21280 if test -z "$ac_cv_prog_LD"; then
21282 # Extract the first word of "ld", so it can be a program name with args.
21283 set dummy ld; ac_word=$2
21284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21286 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 if test -n "$ac_ct_LD"; then
21290 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21293 for as_dir in $PATH
21296 test -z "$as_dir" && as_dir=.
21297 for ac_exec_ext in '' $ac_executable_extensions; do
21298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21299 ac_cv_prog_ac_ct_LD="ld"
21300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21309 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21310 if test -n "$ac_ct_LD"; then
21311 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21312 echo "${ECHO_T}$ac_ct_LD" >&6; }
21314 { echo "$as_me:$LINENO: result: no" >&5
21315 echo "${ECHO_T}no" >&6; }
21318 if test "x$ac_ct_LD" = x; then
21321 case $cross_compiling:$ac_tool_warned in
21323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21324 whose name does not start with the host triplet. If you think this
21325 configuration is useful to you, please write to autoconf@gnu.org." >&5
21326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21327 whose name does not start with the host triplet. If you think this
21328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21329 ac_tool_warned=yes ;;
21334 LD="$ac_cv_prog_LD"
21338 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21340 if test "${ac_cv_header_stdc+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 cat >conftest.$ac_ext <<_ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 #include <stdlib.h>
21350 #include <stdarg.h>
21351 #include <string.h>
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_compile") 2>conftest.er1
21371 grep -v '^ *+' conftest.er1 >conftest.err
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest.$ac_objext; then
21379 ac_cv_header_stdc=yes
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ac_cv_header_stdc=no
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389 if test $ac_cv_header_stdc = yes; then
21390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21391 cat >conftest.$ac_ext <<_ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 #include <string.h>
21400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21401 $EGREP "memchr" >/dev/null 2>&1; then
21404 ac_cv_header_stdc=no
21410 if test $ac_cv_header_stdc = yes; then
21411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21412 cat >conftest.$ac_ext <<_ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h. */
21418 #include <stdlib.h>
21421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21422 $EGREP "free" >/dev/null 2>&1; then
21425 ac_cv_header_stdc=no
21431 if test $ac_cv_header_stdc = yes; then
21432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21433 if test "$cross_compiling" = yes; then
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21443 #include <stdlib.h>
21444 #if ((' ' & 0x0FF) == 0x020)
21445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21448 # define ISLOWER(c) \
21449 (('a' <= (c) && (c) <= 'i') \
21450 || ('j' <= (c) && (c) <= 'r') \
21451 || ('s' <= (c) && (c) <= 'z'))
21452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21460 for (i = 0; i < 256; i++)
21461 if (XOR (islower (i), ISLOWER (i))
21462 || toupper (i) != TOUPPER (i))
21467 rm -f conftest$ac_exeext
21468 if { (ac_try="$ac_link"
21469 case "(($ac_try" in
21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_link") 2>&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21478 { (case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21483 (eval "$ac_try") 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21489 echo "$as_me: program exited with status $ac_status" >&5
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 ( exit $ac_status )
21494 ac_cv_header_stdc=no
21496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21502 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21503 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21504 if test $ac_cv_header_stdc = yes; then
21506 cat >>confdefs.h <<\_ACEOF
21507 #define STDC_HEADERS 1
21513 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21514 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21515 if test "${knfsd_cv_glibc2+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 cat >conftest.$ac_ext <<_ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21525 #include <features.h>
21526 #if !defined(__GLIBC__)
21531 if { (ac_try="$ac_cpp conftest.$ac_ext"
21532 case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21539 grep -v '^ *+' conftest.er1 >conftest.err
21541 cat conftest.err >&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } >/dev/null && {
21544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21545 test ! -s conftest.err
21547 knfsd_cv_glibc2=yes
21549 echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21555 rm -f conftest.err conftest.$ac_ext
21558 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21559 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21560 if test $knfsd_cv_glibc2 = yes; then
21561 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21562 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21566 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21567 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21568 if test "${knfsd_cv_bsd_signals+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 if test "$cross_compiling" = yes; then
21574 *linux*) knfsd_cv_bsd_signals=no;;
21575 *bsd*) knfsd_cv_bsd_signals=yes;;
21576 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21577 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21578 { (exit 1); exit 1; }; };;
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21589 #include <signal.h>
21590 #include <unistd.h>
21591 #include <sys/wait.h>
21593 static int counter = 0;
21594 static RETSIGTYPE handler(int num) { counter++; }
21599 if ((s = fork()) < 0) return 1;
21601 if (wait(&s) < 0) return 1;
21602 return WIFSIGNALED(s)? 1 : 0;
21605 signal(SIGHUP, handler);
21606 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21607 return (counter == 2)? 0 : 1;
21611 rm -f conftest$ac_exeext
21612 if { (ac_try="$ac_link"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_link") 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21622 { (case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627 (eval "$ac_try") 2>&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; }; then
21631 knfsd_cv_bsd_signals=yes
21633 echo "$as_me: program exited with status $ac_status" >&5
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 ( exit $ac_status )
21638 knfsd_cv_bsd_signals=no
21640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21645 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21646 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21647 test $knfsd_cv_bsd_signals = yes &&
21648 cat >>confdefs.h <<\_ACEOF
21649 #define HAVE_BSD_SIGNALS 1
21654 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21655 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21656 if test "${ac_cv_func_gethostbyname+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21667 #define gethostbyname innocuous_gethostbyname
21669 /* System header to define __stub macros and hopefully few prototypes,
21670 which can conflict with char gethostbyname (); below.
21671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21672 <limits.h> exists even on freestanding compilers. */
21675 # include <limits.h>
21677 # include <assert.h>
21680 #undef gethostbyname
21682 /* Override any GCC internal prototype to avoid an error.
21683 Use char because int might match the return type of a GCC
21684 builtin and then its argument prototype would still apply. */
21688 char gethostbyname ();
21689 /* The GNU C library defines this for functions which it implements
21690 to always fail with ENOSYS. Some functions are actually named
21691 something starting with __ and the normal name is an alias. */
21692 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21699 return gethostbyname ();
21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_link") 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && {
21718 test -z "$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 } && test -s conftest$ac_exeext &&
21721 $as_test_x conftest$ac_exeext; then
21722 ac_cv_func_gethostbyname=yes
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21727 ac_cv_func_gethostbyname=no
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731 conftest$ac_exeext conftest.$ac_ext
21733 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21734 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21735 if test $ac_cv_func_gethostbyname = yes; then
21738 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21739 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21740 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 ac_check_lib_save_LIBS=$LIBS
21745 cat >conftest.$ac_ext <<_ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21752 /* Override any GCC internal prototype to avoid an error.
21753 Use char because int might match the return type of a GCC
21754 builtin and then its argument prototype would still apply. */
21758 char gethostbyname ();
21762 return gethostbyname ();
21767 rm -f conftest.$ac_objext conftest$ac_exeext
21768 if { (ac_try="$ac_link"
21769 case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_link") 2>conftest.er1
21776 grep -v '^ *+' conftest.er1 >conftest.err
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } && {
21781 test -z "$ac_c_werror_flag" ||
21782 test ! -s conftest.err
21783 } && test -s conftest$ac_exeext &&
21784 $as_test_x conftest$ac_exeext; then
21785 ac_cv_lib_nsl_gethostbyname=yes
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790 ac_cv_lib_nsl_gethostbyname=no
21793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21794 conftest$ac_exeext conftest.$ac_ext
21795 LIBS=$ac_check_lib_save_LIBS
21797 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21798 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21799 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21807 { echo "$as_me:$LINENO: checking for connect" >&5
21808 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21809 if test "${ac_cv_func_connect+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 cat >conftest.$ac_ext <<_ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21820 #define connect innocuous_connect
21822 /* System header to define __stub macros and hopefully few prototypes,
21823 which can conflict with char connect (); below.
21824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21825 <limits.h> exists even on freestanding compilers. */
21828 # include <limits.h>
21830 # include <assert.h>
21835 /* Override any GCC internal prototype to avoid an error.
21836 Use char because int might match the return type of a GCC
21837 builtin and then its argument prototype would still apply. */
21842 /* The GNU C library defines this for functions which it implements
21843 to always fail with ENOSYS. Some functions are actually named
21844 something starting with __ and the normal name is an alias. */
21845 #if defined __stub_connect || defined __stub___connect
21857 rm -f conftest.$ac_objext conftest$ac_exeext
21858 if { (ac_try="$ac_link"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_link") 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest$ac_exeext &&
21874 $as_test_x conftest$ac_exeext; then
21875 ac_cv_func_connect=yes
21877 echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21880 ac_cv_func_connect=no
21883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21884 conftest$ac_exeext conftest.$ac_ext
21886 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21887 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21888 if test $ac_cv_func_connect = yes; then
21891 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21892 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21893 if test "${ac_cv_lib_socket_connect+set}" = set; then
21894 echo $ECHO_N "(cached) $ECHO_C" >&6
21896 ac_check_lib_save_LIBS=$LIBS
21897 LIBS="-lsocket $LIBNSL $LIBS"
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21905 /* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21920 rm -f conftest.$ac_objext conftest$ac_exeext
21921 if { (ac_try="$ac_link"
21922 case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927 (eval "$ac_link") 2>conftest.er1
21929 grep -v '^ *+' conftest.er1 >conftest.err
21931 cat conftest.err >&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } && {
21934 test -z "$ac_c_werror_flag" ||
21935 test ! -s conftest.err
21936 } && test -s conftest$ac_exeext &&
21937 $as_test_x conftest$ac_exeext; then
21938 ac_cv_lib_socket_connect=yes
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_cv_lib_socket_connect=no
21946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21947 conftest$ac_exeext conftest.$ac_ext
21948 LIBS=$ac_check_lib_save_LIBS
21950 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21951 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21952 if test $ac_cv_lib_socket_connect = yes; then
21953 LIBSOCKET="-lsocket"
21955 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21956 echo "$as_me: error: Function 'socket' not found." >&2;}
21957 { (exit 1); exit 1; }; }
21963 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21964 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21965 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 ac_check_lib_save_LIBS=$LIBS
21969 LIBS="-lcrypt $LIBS"
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21977 /* Override any GCC internal prototype to avoid an error.
21978 Use char because int might match the return type of a GCC
21979 builtin and then its argument prototype would still apply. */
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>conftest.er1
22001 grep -v '^ *+' conftest.er1 >conftest.err
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest$ac_exeext &&
22009 $as_test_x conftest$ac_exeext; then
22010 ac_cv_lib_crypt_crypt=yes
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 ac_cv_lib_crypt_crypt=no
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22022 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22023 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22024 if test $ac_cv_lib_crypt_crypt = yes; then
22028 if test "$enable_nfsv4" = yes; then
22029 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22030 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22031 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-levent $LIBS"
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22043 /* Override any GCC internal prototype to avoid an error.
22044 Use char because int might match the return type of a GCC
22045 builtin and then its argument prototype would still apply. */
22049 char event_dispatch ();
22053 return event_dispatch ();
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_link") 2>conftest.er1
22067 grep -v '^ *+' conftest.er1 >conftest.err
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } && {
22072 test -z "$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22074 } && test -s conftest$ac_exeext &&
22075 $as_test_x conftest$ac_exeext; then
22076 ac_cv_lib_event_event_dispatch=yes
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22081 ac_cv_lib_event_event_dispatch=no
22084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22085 conftest$ac_exeext conftest.$ac_ext
22086 LIBS=$ac_check_lib_save_LIBS
22088 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22089 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22090 if test $ac_cv_lib_event_event_dispatch = yes; then
22093 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22094 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22095 { (exit 1); exit 1; }; }
22098 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22099 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22100 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 ac_check_lib_save_LIBS=$LIBS
22104 LIBS="-lnfsidmap $LIBS"
22105 cat >conftest.$ac_ext <<_ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22112 /* Override any GCC internal prototype to avoid an error.
22113 Use char because int might match the return type of a GCC
22114 builtin and then its argument prototype would still apply. */
22118 char nfs4_init_name_mapping ();
22122 return nfs4_init_name_mapping ();
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (ac_try="$ac_link"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_link") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest$ac_exeext &&
22144 $as_test_x conftest$ac_exeext; then
22145 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22154 conftest$ac_exeext conftest.$ac_ext
22155 LIBS=$ac_check_lib_save_LIBS
22157 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22158 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22159 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22162 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22163 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22164 { (exit 1); exit 1; }; }
22168 for ac_header in event.h
22170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178 { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22181 # Is the header compilable?
22182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22184 cat >conftest.$ac_ext <<_ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h. */
22190 $ac_includes_default
22191 #include <$ac_header>
22193 rm -f conftest.$ac_objext
22194 if { (ac_try="$ac_compile"
22195 case "(($ac_try" in
22196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197 *) ac_try_echo=$ac_try;;
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22202 grep -v '^ *+' conftest.er1 >conftest.err
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22210 ac_header_compiler=yes
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 ac_header_compiler=no
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22220 echo "${ECHO_T}$ac_header_compiler" >&6; }
22222 # Is the header present?
22223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 #include <$ac_header>
22233 if { (ac_try="$ac_cpp conftest.$ac_ext"
22234 case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } >/dev/null && {
22246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22249 ac_header_preproc=yes
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ac_header_preproc=no
22257 rm -f conftest.err conftest.$ac_ext
22258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22259 echo "${ECHO_T}$ac_header_preproc" >&6; }
22261 # So? What about this header?
22262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22268 ac_header_preproc=yes
22271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22284 ## ---------------------------------------- ##
22285 ## Report this to linux-nfs@vger.kernel.org ##
22286 ## ---------------------------------------- ##
22288 ) | sed "s/^/$as_me: WARNING: /" >&2
22291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 eval "$as_ac_Header=\$ac_header_preproc"
22298 ac_res=`eval echo '${'$as_ac_Header'}'`
22299 { echo "$as_me:$LINENO: result: $ac_res" >&5
22300 echo "${ECHO_T}$ac_res" >&6; }
22303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22309 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22310 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22311 { (exit 1); exit 1; }; }
22317 for ac_header in nfsidmap.h
22319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22326 ac_res=`eval echo '${'$as_ac_Header'}'`
22327 { echo "$as_me:$LINENO: result: $ac_res" >&5
22328 echo "${ECHO_T}$ac_res" >&6; }
22330 # Is the header compilable?
22331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22333 cat >conftest.$ac_ext <<_ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 $ac_includes_default
22340 #include <$ac_header>
22342 rm -f conftest.$ac_objext
22343 if { (ac_try="$ac_compile"
22344 case "(($ac_try" in
22345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346 *) ac_try_echo=$ac_try;;
22348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349 (eval "$ac_compile") 2>conftest.er1
22351 grep -v '^ *+' conftest.er1 >conftest.err
22353 cat conftest.err >&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } && {
22356 test -z "$ac_c_werror_flag" ||
22357 test ! -s conftest.err
22358 } && test -s conftest.$ac_objext; then
22359 ac_header_compiler=yes
22361 echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22364 ac_header_compiler=no
22367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22369 echo "${ECHO_T}$ac_header_compiler" >&6; }
22371 # Is the header present?
22372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22374 cat >conftest.$ac_ext <<_ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 #include <$ac_header>
22382 if { (ac_try="$ac_cpp conftest.$ac_ext"
22383 case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22390 grep -v '^ *+' conftest.er1 >conftest.err
22392 cat conftest.err >&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } >/dev/null && {
22395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22396 test ! -s conftest.err
22398 ac_header_preproc=yes
22400 echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22403 ac_header_preproc=no
22406 rm -f conftest.err conftest.$ac_ext
22407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22408 echo "${ECHO_T}$ac_header_preproc" >&6; }
22410 # So? What about this header?
22411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22417 ac_header_preproc=yes
22420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22433 ## ---------------------------------------- ##
22434 ## Report this to linux-nfs@vger.kernel.org ##
22435 ## ---------------------------------------- ##
22437 ) | sed "s/^/$as_me: WARNING: /" >&2
22440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 eval "$as_ac_Header=\$ac_header_preproc"
22447 ac_res=`eval echo '${'$as_ac_Header'}'`
22448 { echo "$as_me:$LINENO: result: $ac_res" >&5
22449 echo "${ECHO_T}$ac_res" >&6; }
22452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22453 cat >>confdefs.h <<_ACEOF
22454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22458 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22459 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22460 { (exit 1); exit 1; }; }
22465 if test "$enable_gss" = yes; then
22468 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22469 if test -n "$ac_tool_prefix"; then
22470 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22471 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22474 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 case $PKG_CONFIG in
22479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22483 for as_dir in $PATH
22486 test -z "$as_dir" && as_dir=.
22487 for ac_exec_ext in '' $ac_executable_extensions; do
22488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22501 if test -n "$PKG_CONFIG"; then
22502 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22503 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22505 { echo "$as_me:$LINENO: result: no" >&5
22506 echo "${ECHO_T}no" >&6; }
22511 if test -z "$ac_cv_path_PKG_CONFIG"; then
22512 ac_pt_PKG_CONFIG=$PKG_CONFIG
22513 # Extract the first word of "pkg-config", so it can be a program name with args.
22514 set dummy pkg-config; ac_word=$2
22515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22517 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 case $ac_pt_PKG_CONFIG in
22522 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22526 for as_dir in $PATH
22529 test -z "$as_dir" && as_dir=.
22530 for ac_exec_ext in '' $ac_executable_extensions; do
22531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22532 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22543 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22544 if test -n "$ac_pt_PKG_CONFIG"; then
22545 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22546 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22548 { echo "$as_me:$LINENO: result: no" >&5
22549 echo "${ECHO_T}no" >&6; }
22552 if test "x$ac_pt_PKG_CONFIG" = x; then
22555 case $cross_compiling:$ac_tool_warned in
22557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22558 whose name does not start with the host triplet. If you think this
22559 configuration is useful to you, please write to autoconf@gnu.org." >&5
22560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22561 whose name does not start with the host triplet. If you think this
22562 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22563 ac_tool_warned=yes ;;
22565 PKG_CONFIG=$ac_pt_PKG_CONFIG
22568 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22572 if test -n "$PKG_CONFIG"; then
22573 _pkg_min_version=0.9.0
22574 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22575 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22576 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22577 { echo "$as_me:$LINENO: result: yes" >&5
22578 echo "${ECHO_T}yes" >&6; }
22580 { echo "$as_me:$LINENO: result: no" >&5
22581 echo "${ECHO_T}no" >&6; }
22588 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22589 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22591 if test -n "$PKG_CONFIG"; then
22592 if test -n "$RPCSECGSS_CFLAGS"; then
22593 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22595 if test -n "$PKG_CONFIG" && \
22596 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22597 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; then
22601 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22609 if test -n "$PKG_CONFIG"; then
22610 if test -n "$RPCSECGSS_LIBS"; then
22611 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22613 if test -n "$PKG_CONFIG" && \
22614 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22615 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; then
22619 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22630 if test $pkg_failed = yes; then
22632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22633 _pkg_short_errors_supported=yes
22635 _pkg_short_errors_supported=no
22637 if test $_pkg_short_errors_supported = yes; then
22638 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22640 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22642 # Put the nasty error message in config.log where it belongs
22643 echo "$RPCSECGSS_PKG_ERRORS" >&5
22645 { echo "$as_me:$LINENO: result: no" >&5
22646 echo "${ECHO_T}no" >&6; }
22647 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22648 echo "$as_me: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22649 { (exit 1); exit 1; }; }
22652 elif test $pkg_failed = untried; then
22653 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22654 echo "$as_me: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22655 { (exit 1); exit 1; }; }
22659 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22660 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22661 { echo "$as_me:$LINENO: result: yes" >&5
22662 echo "${ECHO_T}yes" >&6; }
22667 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22668 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22670 if test -n "$PKG_CONFIG"; then
22671 if test -n "$GSSGLUE_CFLAGS"; then
22672 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22674 if test -n "$PKG_CONFIG" && \
22675 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22676 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; then
22680 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22688 if test -n "$PKG_CONFIG"; then
22689 if test -n "$GSSGLUE_LIBS"; then
22690 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22692 if test -n "$PKG_CONFIG" && \
22693 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22694 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; then
22698 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22709 if test $pkg_failed = yes; then
22711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22712 _pkg_short_errors_supported=yes
22714 _pkg_short_errors_supported=no
22716 if test $_pkg_short_errors_supported = yes; then
22717 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22719 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22721 # Put the nasty error message in config.log where it belongs
22722 echo "$GSSGLUE_PKG_ERRORS" >&5
22724 { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22726 $GSSGLUE_PKG_ERRORS
22728 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22729 installed software in a non-standard prefix.
22731 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22732 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22733 See the pkg-config man page for more details.
22735 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22737 $GSSGLUE_PKG_ERRORS
22739 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22740 installed software in a non-standard prefix.
22742 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22743 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22744 See the pkg-config man page for more details.
22746 { (exit 1); exit 1; }; }
22747 elif test $pkg_failed = untried; then
22748 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22749 is in your PATH or set the PKG_CONFIG environment variable to the full
22750 path to pkg-config.
22752 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22753 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22754 See the pkg-config man page for more details.
22756 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22757 See \`config.log' for more details." >&5
22758 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22759 is in your PATH or set the PKG_CONFIG environment variable to the full
22760 path to pkg-config.
22762 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22763 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22764 See the pkg-config man page for more details.
22766 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22767 See \`config.log' for more details." >&2;}
22768 { (exit 1); exit 1; }; }
22770 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22771 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22772 { echo "$as_me:$LINENO: result: yes" >&5
22773 echo "${ECHO_T}yes" >&6; }
22779 if test "$knfsd_cv_glibc2" = no; then
22780 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22781 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22782 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 ac_check_lib_save_LIBS=$LIBS
22787 cat >conftest.$ac_ext <<_ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22794 /* Override any GCC internal prototype to avoid an error.
22795 Use char because int might match the return type of a GCC
22796 builtin and then its argument prototype would still apply. */
22809 rm -f conftest.$ac_objext conftest$ac_exeext
22810 if { (ac_try="$ac_link"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_link") 2>conftest.er1
22818 grep -v '^ *+' conftest.er1 >conftest.err
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } && {
22823 test -z "$ac_c_werror_flag" ||
22824 test ! -s conftest.err
22825 } && test -s conftest$ac_exeext &&
22826 $as_test_x conftest$ac_exeext; then
22827 ac_cv_lib_bsd_daemon=yes
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_cv_lib_bsd_daemon=no
22835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22836 conftest$ac_exeext conftest.$ac_ext
22837 LIBS=$ac_check_lib_save_LIBS
22839 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22840 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22841 if test $ac_cv_lib_bsd_daemon = yes; then
22847 if test "$choose_blkid" != no; then
22848 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22849 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22850 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 ac_check_lib_save_LIBS=$LIBS
22854 LIBS="-lblkid $LIBS"
22855 cat >conftest.$ac_ext <<_ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22862 /* Override any GCC internal prototype to avoid an error.
22863 Use char because int might match the return type of a GCC
22864 builtin and then its argument prototype would still apply. */
22868 char blkid_get_library_version ();
22872 return blkid_get_library_version ();
22877 rm -f conftest.$ac_objext conftest$ac_exeext
22878 if { (ac_try="$ac_link"
22879 case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_link") 2>conftest.er1
22886 grep -v '^ *+' conftest.er1 >conftest.err
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest$ac_exeext &&
22894 $as_test_x conftest$ac_exeext; then
22895 ac_cv_lib_blkid_blkid_get_library_version=yes
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ac_cv_lib_blkid_blkid_get_library_version=no
22903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22904 conftest$ac_exeext conftest.$ac_ext
22905 LIBS=$ac_check_lib_save_LIBS
22907 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22908 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22909 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22912 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22913 echo "$as_me: error: libblkid needed" >&2;}
22914 { (exit 1); exit 1; }; }
22917 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22918 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22919 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22920 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22924 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22926 # Is the header compilable?
22927 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22928 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935 $ac_includes_default
22936 #include <blkid/blkid.h>
22938 rm -f conftest.$ac_objext
22939 if { (ac_try="$ac_compile"
22940 case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945 (eval "$ac_compile") 2>conftest.er1
22947 grep -v '^ *+' conftest.er1 >conftest.err
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest.$ac_objext; then
22955 ac_header_compiler=yes
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 ac_header_compiler=no
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22965 echo "${ECHO_T}$ac_header_compiler" >&6; }
22967 # Is the header present?
22968 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22969 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22970 cat >conftest.$ac_ext <<_ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22976 #include <blkid/blkid.h>
22978 if { (ac_try="$ac_cpp conftest.$ac_ext"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22986 grep -v '^ *+' conftest.er1 >conftest.err
22988 cat conftest.err >&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } >/dev/null && {
22991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22992 test ! -s conftest.err
22994 ac_header_preproc=yes
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 ac_header_preproc=no
23002 rm -f conftest.err conftest.$ac_ext
23003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23004 echo "${ECHO_T}$ac_header_preproc" >&6; }
23006 # So? What about this header?
23007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23009 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23010 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23011 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23012 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23013 ac_header_preproc=yes
23016 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23017 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23018 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
23019 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
23020 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23021 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23022 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
23023 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23024 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23025 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23026 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23027 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23029 ## ---------------------------------------- ##
23030 ## Report this to linux-nfs@vger.kernel.org ##
23031 ## ---------------------------------------- ##
23033 ) | sed "s/^/$as_me: WARNING: /" >&2
23036 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23037 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23038 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 ac_cv_header_blkid_blkid_h=$ac_header_preproc
23043 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23044 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23047 if test $ac_cv_header_blkid_blkid_h = yes; then
23050 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23051 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23052 { (exit 1); exit 1; }; }
23057 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23058 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23059 if test "${libblkid_is_recent+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23065 if test "$cross_compiling" = yes; then
23066 libblkid_is_recent=unknown
23068 cat >conftest.$ac_ext <<_ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23075 #include <blkid/blkid.h>
23078 int vers = blkid_get_library_version(0, 0);
23079 return vers >= 140 ? 0 : 1;
23083 rm -f conftest$ac_exeext
23084 if { (ac_try="$ac_link"
23085 case "(($ac_try" in
23086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087 *) ac_try_echo=$ac_try;;
23089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23090 (eval "$ac_link") 2>&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23094 { (case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099 (eval "$ac_try") 2>&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }; then
23103 libblkid_is_recent=yes
23105 echo "$as_me: program exited with status $ac_status" >&5
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23109 ( exit $ac_status )
23110 libblkid_is_recent=no
23112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23119 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23120 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23122 if test $choose_blkid = yes; then
23124 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23125 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23127 if test $libblkid_is_recent = yes
23130 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23131 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23135 cat >>confdefs.h <<_ACEOF
23136 #define USE_BLKID $use_blkid
23145 if test "$enable_gss" = yes; then
23147 for ac_header in nfsidmap.h
23149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23154 echo $ECHO_N "(cached) $ECHO_C" >&6
23156 ac_res=`eval echo '${'$as_ac_Header'}'`
23157 { echo "$as_me:$LINENO: result: $ac_res" >&5
23158 echo "${ECHO_T}$ac_res" >&6; }
23160 # Is the header compilable?
23161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23163 cat >conftest.$ac_ext <<_ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23169 $ac_includes_default
23170 #include <$ac_header>
23172 rm -f conftest.$ac_objext
23173 if { (ac_try="$ac_compile"
23174 case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_compile") 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } && {
23186 test -z "$ac_c_werror_flag" ||
23187 test ! -s conftest.err
23188 } && test -s conftest.$ac_objext; then
23189 ac_header_compiler=yes
23191 echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23194 ac_header_compiler=no
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23199 echo "${ECHO_T}$ac_header_compiler" >&6; }
23201 # Is the header present?
23202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 #include <$ac_header>
23212 if { (ac_try="$ac_cpp conftest.$ac_ext"
23213 case "(($ac_try" in
23214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215 *) ac_try_echo=$ac_try;;
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } >/dev/null && {
23225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23228 ac_header_preproc=yes
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_header_preproc=no
23236 rm -f conftest.err conftest.$ac_ext
23237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23238 echo "${ECHO_T}$ac_header_preproc" >&6; }
23240 # So? What about this header?
23241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23247 ac_header_preproc=yes
23250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23263 ## ---------------------------------------- ##
23264 ## Report this to linux-nfs@vger.kernel.org ##
23265 ## ---------------------------------------- ##
23267 ) | sed "s/^/$as_me: WARNING: /" >&2
23270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23275 eval "$as_ac_Header=\$ac_header_preproc"
23277 ac_res=`eval echo '${'$as_ac_Header'}'`
23278 { echo "$as_me:$LINENO: result: $ac_res" >&5
23279 echo "${ECHO_T}$ac_res" >&6; }
23282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23283 cat >>confdefs.h <<_ACEOF
23284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23288 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23289 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23290 { (exit 1); exit 1; }; }
23296 for ac_header in spkm3.h
23298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23305 ac_res=`eval echo '${'$as_ac_Header'}'`
23306 { echo "$as_me:$LINENO: result: $ac_res" >&5
23307 echo "${ECHO_T}$ac_res" >&6; }
23309 # Is the header compilable?
23310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23312 cat >conftest.$ac_ext <<_ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 $ac_includes_default
23319 #include <$ac_header>
23321 rm -f conftest.$ac_objext
23322 if { (ac_try="$ac_compile"
23323 case "(($ac_try" in
23324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325 *) ac_try_echo=$ac_try;;
23327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23328 (eval "$ac_compile") 2>conftest.er1
23330 grep -v '^ *+' conftest.er1 >conftest.err
23332 cat conftest.err >&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } && {
23335 test -z "$ac_c_werror_flag" ||
23336 test ! -s conftest.err
23337 } && test -s conftest.$ac_objext; then
23338 ac_header_compiler=yes
23340 echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23343 ac_header_compiler=no
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23348 echo "${ECHO_T}$ac_header_compiler" >&6; }
23350 # Is the header present?
23351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23353 cat >conftest.$ac_ext <<_ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 #include <$ac_header>
23361 if { (ac_try="$ac_cpp conftest.$ac_ext"
23362 case "(($ac_try" in
23363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364 *) ac_try_echo=$ac_try;;
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23369 grep -v '^ *+' conftest.er1 >conftest.err
23371 cat conftest.err >&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } >/dev/null && {
23374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23375 test ! -s conftest.err
23377 ac_header_preproc=yes
23379 echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ac_header_preproc=no
23385 rm -f conftest.err conftest.$ac_ext
23386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23387 echo "${ECHO_T}$ac_header_preproc" >&6; }
23389 # So? What about this header?
23390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23396 ac_header_preproc=yes
23399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23412 ## ---------------------------------------- ##
23413 ## Report this to linux-nfs@vger.kernel.org ##
23414 ## ---------------------------------------- ##
23416 ) | sed "s/^/$as_me: WARNING: /" >&2
23419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 eval "$as_ac_Header=\$ac_header_preproc"
23426 ac_res=`eval echo '${'$as_ac_Header'}'`
23427 { echo "$as_me:$LINENO: result: $ac_res" >&5
23428 echo "${ECHO_T}$ac_res" >&6; }
23431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23432 cat >>confdefs.h <<_ACEOF
23433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23437 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23438 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23443 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23444 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23445 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 ac_check_lib_save_LIBS=$LIBS
23449 LIBS="-lnfsidmap $LIBS"
23450 cat >conftest.$ac_ext <<_ACEOF
23453 cat confdefs.h >>conftest.$ac_ext
23454 cat >>conftest.$ac_ext <<_ACEOF
23455 /* end confdefs.h. */
23457 /* Override any GCC internal prototype to avoid an error.
23458 Use char because int might match the return type of a GCC
23459 builtin and then its argument prototype would still apply. */
23463 char nfs4_set_debug ();
23467 return nfs4_set_debug ();
23472 rm -f conftest.$ac_objext conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_link") 2>conftest.er1
23481 grep -v '^ *+' conftest.er1 >conftest.err
23483 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } && {
23486 test -z "$ac_c_werror_flag" ||
23487 test ! -s conftest.err
23488 } && test -s conftest$ac_exeext &&
23489 $as_test_x conftest$ac_exeext; then
23490 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23495 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23499 conftest$ac_exeext conftest.$ac_ext
23500 LIBS=$ac_check_lib_save_LIBS
23502 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23503 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23504 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23506 cat >>confdefs.h <<\_ACEOF
23507 #define HAVE_NFS4_SET_DEBUG 1
23514 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23515 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23517 # Check whether --with-krb5 was given.
23518 if test "${with_krb5+set}" = set; then
23519 withval=$with_krb5; case "$withval" in
23524 krb5_with="$withval"
23531 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23532 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23534 if test -f $dir/bin/krb5-config; then
23535 K5CONFIG=$dir/bin/krb5-config
23536 elif test -f "/usr/kerberos/bin/krb5-config"; then
23537 K5CONFIG="/usr/kerberos/bin/krb5-config"
23538 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23539 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23541 if test "$K5CONFIG" != ""; then
23542 KRBCFLAGS=`$K5CONFIG --cflags`
23543 KRBLIBS=`$K5CONFIG --libs gssapi`
23544 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23546 cat >>confdefs.h <<_ACEOF
23547 #define KRB5_VERSION $K5VERS
23550 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23551 \( -f $dir/lib/libgssapi_krb5.a -o \
23552 -f $dir/lib64/libgssapi_krb5.a -o \
23553 -f $dir/lib64/libgssapi_krb5.so -o \
23554 -f $dir/lib/libgssapi_krb5.so \) ; then
23556 cat >>confdefs.h <<\_ACEOF
23557 #define HAVE_KRB5 1
23561 if test $K5VERS -le 131; then
23563 cat >>confdefs.h <<\_ACEOF
23564 #define USE_GSS_KRB5_CCACHE_NAME 1
23568 gssapi_lib=gssapi_krb5
23570 elif test \( -f $dir/include/heim_err.h -o\
23571 -f $dir/include/heimdal/heim_err.h \) -a \
23572 -f $dir/lib/libroken.a; then
23574 cat >>confdefs.h <<\_ACEOF
23575 #define HAVE_HEIMDAL 1
23584 if test "x$KRBDIR" = "x"; then
23585 if test "x$krb5_with" = "x"; then
23586 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23587 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23588 { (exit 1); exit 1; }; }
23590 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23591 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23592 { (exit 1); exit 1; }; }
23595 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23596 echo "${ECHO_T}$KRBDIR" >&6; }
23598 echo "The current KRBDIR is $KRBDIR"
23599 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23600 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23602 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23605 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23608 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23609 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23610 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23611 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 ac_check_lib_save_LIBS=$LIBS
23615 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23616 cat >conftest.$ac_ext <<_ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23623 /* Override any GCC internal prototype to avoid an error.
23624 Use char because int might match the return type of a GCC
23625 builtin and then its argument prototype would still apply. */
23629 char gss_krb5_export_lucid_sec_context ();
23633 return gss_krb5_export_lucid_sec_context ();
23638 rm -f conftest.$ac_objext conftest$ac_exeext
23639 if { (ac_try="$ac_link"
23640 case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645 (eval "$ac_link") 2>conftest.er1
23647 grep -v '^ *+' conftest.er1 >conftest.err
23649 cat conftest.err >&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest$ac_exeext &&
23655 $as_test_x conftest$ac_exeext; then
23656 eval "$as_ac_Lib=yes"
23658 echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23661 eval "$as_ac_Lib=no"
23664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23665 conftest$ac_exeext conftest.$ac_ext
23666 LIBS=$ac_check_lib_save_LIBS
23668 ac_res=`eval echo '${'$as_ac_Lib'}'`
23669 { echo "$as_me:$LINENO: result: $ac_res" >&5
23670 echo "${ECHO_T}$ac_res" >&6; }
23671 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23679 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23680 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23681 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23682 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23683 echo $ECHO_N "(cached) $ECHO_C" >&6
23685 ac_check_lib_save_LIBS=$LIBS
23686 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23687 cat >conftest.$ac_ext <<_ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h. */
23694 /* Override any GCC internal prototype to avoid an error.
23695 Use char because int might match the return type of a GCC
23696 builtin and then its argument prototype would still apply. */
23700 char gss_krb5_set_allowable_enctypes ();
23704 return gss_krb5_set_allowable_enctypes ();
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (ac_try="$ac_link"
23711 case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716 (eval "$ac_link") 2>conftest.er1
23718 grep -v '^ *+' conftest.er1 >conftest.err
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } && {
23723 test -z "$ac_c_werror_flag" ||
23724 test ! -s conftest.err
23725 } && test -s conftest$ac_exeext &&
23726 $as_test_x conftest$ac_exeext; then
23727 eval "$as_ac_Lib=yes"
23729 echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23732 eval "$as_ac_Lib=no"
23735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23736 conftest$ac_exeext conftest.$ac_ext
23737 LIBS=$ac_check_lib_save_LIBS
23739 ac_res=`eval echo '${'$as_ac_Lib'}'`
23740 { echo "$as_me:$LINENO: result: $ac_res" >&5
23741 echo "${ECHO_T}$ac_res" >&6; }
23742 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23744 cat >>confdefs.h <<\_ACEOF
23745 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23750 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23751 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23752 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23753 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23756 ac_check_lib_save_LIBS=$LIBS
23757 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23758 cat >conftest.$ac_ext <<_ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23765 /* Override any GCC internal prototype to avoid an error.
23766 Use char because int might match the return type of a GCC
23767 builtin and then its argument prototype would still apply. */
23771 char gss_krb5_ccache_name ();
23775 return gss_krb5_ccache_name ();
23780 rm -f conftest.$ac_objext conftest$ac_exeext
23781 if { (ac_try="$ac_link"
23782 case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_link") 2>conftest.er1
23789 grep -v '^ *+' conftest.er1 >conftest.err
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && {
23794 test -z "$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 } && test -s conftest$ac_exeext &&
23797 $as_test_x conftest$ac_exeext; then
23798 eval "$as_ac_Lib=yes"
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 eval "$as_ac_Lib=no"
23806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23807 conftest$ac_exeext conftest.$ac_ext
23808 LIBS=$ac_check_lib_save_LIBS
23810 ac_res=`eval echo '${'$as_ac_Lib'}'`
23811 { echo "$as_me:$LINENO: result: $ac_res" >&5
23812 echo "${ECHO_T}$ac_res" >&6; }
23813 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23815 cat >>confdefs.h <<\_ACEOF
23816 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23822 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23823 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23824 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23825 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 ac_check_lib_save_LIBS=$LIBS
23829 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23830 cat >conftest.$ac_ext <<_ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h. */
23837 /* Override any GCC internal prototype to avoid an error.
23838 Use char because int might match the return type of a GCC
23839 builtin and then its argument prototype would still apply. */
23843 char krb5_get_error_message ();
23847 return krb5_get_error_message ();
23852 rm -f conftest.$ac_objext conftest$ac_exeext
23853 if { (ac_try="$ac_link"
23854 case "(($ac_try" in
23855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859 (eval "$ac_link") 2>conftest.er1
23861 grep -v '^ *+' conftest.er1 >conftest.err
23863 cat conftest.err >&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); } && {
23866 test -z "$ac_c_werror_flag" ||
23867 test ! -s conftest.err
23868 } && test -s conftest$ac_exeext &&
23869 $as_test_x conftest$ac_exeext; then
23870 eval "$as_ac_Lib=yes"
23872 echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23875 eval "$as_ac_Lib=no"
23878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23879 conftest$ac_exeext conftest.$ac_ext
23880 LIBS=$ac_check_lib_save_LIBS
23882 ac_res=`eval echo '${'$as_ac_Lib'}'`
23883 { echo "$as_me:$LINENO: result: $ac_res" >&5
23884 echo "${ECHO_T}$ac_res" >&6; }
23885 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23887 cat >>confdefs.h <<\_ACEOF
23888 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23894 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23895 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23896 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23897 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 ac_check_lib_save_LIBS=$LIBS
23901 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23902 cat >conftest.$ac_ext <<_ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h. */
23909 /* Override any GCC internal prototype to avoid an error.
23910 Use char because int might match the return type of a GCC
23911 builtin and then its argument prototype would still apply. */
23915 char krb5_get_init_creds_opt_set_addressless ();
23919 return krb5_get_init_creds_opt_set_addressless ();
23924 rm -f conftest.$ac_objext conftest$ac_exeext
23925 if { (ac_try="$ac_link"
23926 case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931 (eval "$ac_link") 2>conftest.er1
23933 grep -v '^ *+' conftest.er1 >conftest.err
23935 cat conftest.err >&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && {
23938 test -z "$ac_c_werror_flag" ||
23939 test ! -s conftest.err
23940 } && test -s conftest$ac_exeext &&
23941 $as_test_x conftest$ac_exeext; then
23942 eval "$as_ac_Lib=yes"
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23947 eval "$as_ac_Lib=no"
23950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23951 conftest$ac_exeext conftest.$ac_ext
23952 LIBS=$ac_check_lib_save_LIBS
23954 ac_res=`eval echo '${'$as_ac_Lib'}'`
23955 { echo "$as_me:$LINENO: result: $ac_res" >&5
23956 echo "${ECHO_T}$ac_res" >&6; }
23957 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
23966 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23967 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23968 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23979 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23980 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23981 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
23984 ac_check_lib_save_LIBS=$LIBS
23985 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
23986 cat >conftest.$ac_ext <<_ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h. */
23993 /* Override any GCC internal prototype to avoid an error.
23994 Use char because int might match the return type of a GCC
23995 builtin and then its argument prototype would still apply. */
23999 char authgss_create_default ();
24003 return authgss_create_default ();
24008 rm -f conftest.$ac_objext conftest$ac_exeext
24009 if { (ac_try="$ac_link"
24010 case "(($ac_try" in
24011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012 *) ac_try_echo=$ac_try;;
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015 (eval "$ac_link") 2>conftest.er1
24017 grep -v '^ *+' conftest.er1 >conftest.err
24019 cat conftest.err >&5
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); } && {
24022 test -z "$ac_c_werror_flag" ||
24023 test ! -s conftest.err
24024 } && test -s conftest$ac_exeext &&
24025 $as_test_x conftest$ac_exeext; then
24026 ac_cv_lib_rpcsecgss_authgss_create_default=yes
24028 echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24031 ac_cv_lib_rpcsecgss_authgss_create_default=no
24034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24035 conftest$ac_exeext conftest.$ac_ext
24036 LIBS=$ac_check_lib_save_LIBS
24038 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24039 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24040 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24043 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24044 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24045 { (exit 1); exit 1; }; }
24048 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24049 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24050 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24053 ac_check_lib_save_LIBS=$LIBS
24054 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24055 cat >conftest.$ac_ext <<_ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24062 /* Override any GCC internal prototype to avoid an error.
24063 Use char because int might match the return type of a GCC
24064 builtin and then its argument prototype would still apply. */
24068 char authgss_set_debug_level ();
24072 return authgss_set_debug_level ();
24077 rm -f conftest.$ac_objext conftest$ac_exeext
24078 if { (ac_try="$ac_link"
24079 case "(($ac_try" in
24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084 (eval "$ac_link") 2>conftest.er1
24086 grep -v '^ *+' conftest.er1 >conftest.err
24088 cat conftest.err >&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } && {
24091 test -z "$ac_c_werror_flag" ||
24092 test ! -s conftest.err
24093 } && test -s conftest$ac_exeext &&
24094 $as_test_x conftest$ac_exeext; then
24095 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24097 echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24100 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24104 conftest$ac_exeext conftest.$ac_ext
24105 LIBS=$ac_check_lib_save_LIBS
24107 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24108 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24109 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24111 cat >>confdefs.h <<\_ACEOF
24112 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24143 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24144 malloc.h memory.h netdb.h netinet/in.h paths.h \
24145 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24146 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24147 syslog.h unistd.h com_err.h et/com_err.h \
24150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 ac_res=`eval echo '${'$as_ac_Header'}'`
24158 { echo "$as_me:$LINENO: result: $ac_res" >&5
24159 echo "${ECHO_T}$ac_res" >&6; }
24161 # Is the header compilable?
24162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24164 cat >conftest.$ac_ext <<_ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 $ac_includes_default
24171 #include <$ac_header>
24173 rm -f conftest.$ac_objext
24174 if { (ac_try="$ac_compile"
24175 case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180 (eval "$ac_compile") 2>conftest.er1
24182 grep -v '^ *+' conftest.er1 >conftest.err
24184 cat conftest.err >&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && {
24187 test -z "$ac_c_werror_flag" ||
24188 test ! -s conftest.err
24189 } && test -s conftest.$ac_objext; then
24190 ac_header_compiler=yes
24192 echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ac_header_compiler=no
24198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24200 echo "${ECHO_T}$ac_header_compiler" >&6; }
24202 # Is the header present?
24203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24205 cat >conftest.$ac_ext <<_ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24211 #include <$ac_header>
24213 if { (ac_try="$ac_cpp conftest.$ac_ext"
24214 case "(($ac_try" in
24215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216 *) ac_try_echo=$ac_try;;
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24221 grep -v '^ *+' conftest.er1 >conftest.err
24223 cat conftest.err >&5
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); } >/dev/null && {
24226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24227 test ! -s conftest.err
24229 ac_header_preproc=yes
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 ac_header_preproc=no
24237 rm -f conftest.err conftest.$ac_ext
24238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24239 echo "${ECHO_T}$ac_header_preproc" >&6; }
24241 # So? What about this header?
24242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24248 ac_header_preproc=yes
24251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24264 ## ---------------------------------------- ##
24265 ## Report this to linux-nfs@vger.kernel.org ##
24266 ## ---------------------------------------- ##
24268 ) | sed "s/^/$as_me: WARNING: /" >&2
24271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 eval "$as_ac_Header=\$ac_header_preproc"
24278 ac_res=`eval echo '${'$as_ac_Header'}'`
24279 { echo "$as_me:$LINENO: result: $ac_res" >&5
24280 echo "${ECHO_T}$ac_res" >&6; }
24283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24284 cat >>confdefs.h <<_ACEOF
24285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24293 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24294 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24295 if test "${ac_cv_c_const+set}" = set; then
24296 echo $ECHO_N "(cached) $ECHO_C" >&6
24298 cat >conftest.$ac_ext <<_ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h. */
24308 /* FIXME: Include the comments suggested by Paul. */
24309 #ifndef __cplusplus
24310 /* Ultrix mips cc rejects this. */
24311 typedef int charset[2];
24313 /* SunOS 4.1.1 cc rejects this. */
24314 char const *const *pcpcc;
24316 /* NEC SVR4.0.2 mips cc rejects this. */
24317 struct point {int x, y;};
24318 static struct point const zero = {0,0};
24319 /* AIX XL C 1.02.0.0 rejects this.
24320 It does not let you subtract one const X* pointer from another in
24321 an arm of an if-expression whose if-part is not a constant
24323 const char *g = "string";
24324 pcpcc = &g + (g ? g-g : 0);
24325 /* HPUX 7.0 cc rejects these. */
24327 ppc = (char**) pcpcc;
24328 pcpcc = (char const *const *) ppc;
24329 { /* SCO 3.2v4 cc rejects this. */
24331 char const *s = 0 ? (char *) 0 : (char const *) 0;
24336 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24337 int x[] = {25, 17};
24338 const int *foo = &x[0];
24341 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24342 typedef const int *iptr;
24346 { /* AIX XL C 1.02.0.0 rejects this saying
24347 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24348 struct s { int j; const int *ap[3]; };
24349 struct s *b; b->j = 5;
24351 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24352 const int foo = 10;
24353 if (!foo) return 0;
24355 return !cs[0] && !zero.x;
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369 (eval "$ac_compile") 2>conftest.er1
24371 grep -v '^ *+' conftest.er1 >conftest.err
24373 cat conftest.err >&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } && {
24376 test -z "$ac_c_werror_flag" ||
24377 test ! -s conftest.err
24378 } && test -s conftest.$ac_objext; then
24381 echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24389 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24390 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24391 if test $ac_cv_c_const = no; then
24393 cat >>confdefs.h <<\_ACEOF
24399 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24400 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24401 if test "${ac_cv_type_uid_t+set}" = set; then
24402 echo $ECHO_N "(cached) $ECHO_C" >&6
24404 cat >conftest.$ac_ext <<_ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h. */
24410 #include <sys/types.h>
24413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24414 $EGREP "uid_t" >/dev/null 2>&1; then
24415 ac_cv_type_uid_t=yes
24417 ac_cv_type_uid_t=no
24422 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24423 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24424 if test $ac_cv_type_uid_t = no; then
24426 cat >>confdefs.h <<\_ACEOF
24431 cat >>confdefs.h <<\_ACEOF
24437 { echo "$as_me:$LINENO: checking for inline" >&5
24438 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24439 if test "${ac_cv_c_inline+set}" = set; then
24440 echo $ECHO_N "(cached) $ECHO_C" >&6
24443 for ac_kw in inline __inline__ __inline; do
24444 cat >conftest.$ac_ext <<_ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24450 #ifndef __cplusplus
24452 static $ac_kw foo_t static_foo () {return 0; }
24453 $ac_kw foo_t foo () {return 0; }
24457 rm -f conftest.$ac_objext
24458 if { (ac_try="$ac_compile"
24459 case "(($ac_try" in
24460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461 *) ac_try_echo=$ac_try;;
24463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464 (eval "$ac_compile") 2>conftest.er1
24466 grep -v '^ *+' conftest.er1 >conftest.err
24468 cat conftest.err >&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } && {
24471 test -z "$ac_c_werror_flag" ||
24472 test ! -s conftest.err
24473 } && test -s conftest.$ac_objext; then
24474 ac_cv_c_inline=$ac_kw
24476 echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 test "$ac_cv_c_inline" != no && break
24487 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24488 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24491 case $ac_cv_c_inline in
24494 case $ac_cv_c_inline in
24496 *) ac_val=$ac_cv_c_inline;;
24498 cat >>confdefs.h <<_ACEOF
24499 #ifndef __cplusplus
24500 #define inline $ac_val
24506 { echo "$as_me:$LINENO: checking for off_t" >&5
24507 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24508 if test "${ac_cv_type_off_t+set}" = set; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24511 cat >conftest.$ac_ext <<_ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h. */
24517 $ac_includes_default
24518 typedef off_t ac__type_new_;
24522 if ((ac__type_new_ *) 0)
24524 if (sizeof (ac__type_new_))
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_compile") 2>conftest.er1
24539 grep -v '^ *+' conftest.er1 >conftest.err
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
24547 ac_cv_type_off_t=yes
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 ac_cv_type_off_t=no
24555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24557 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24558 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24559 if test $ac_cv_type_off_t = yes; then
24563 cat >>confdefs.h <<_ACEOF
24564 #define off_t long int
24569 { echo "$as_me:$LINENO: checking for pid_t" >&5
24570 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24571 if test "${ac_cv_type_pid_t+set}" = set; then
24572 echo $ECHO_N "(cached) $ECHO_C" >&6
24574 cat >conftest.$ac_ext <<_ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24580 $ac_includes_default
24581 typedef pid_t ac__type_new_;
24585 if ((ac__type_new_ *) 0)
24587 if (sizeof (ac__type_new_))
24593 rm -f conftest.$ac_objext
24594 if { (ac_try="$ac_compile"
24595 case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_compile") 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && {
24607 test -z "$ac_c_werror_flag" ||
24608 test ! -s conftest.err
24609 } && test -s conftest.$ac_objext; then
24610 ac_cv_type_pid_t=yes
24612 echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24615 ac_cv_type_pid_t=no
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24620 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24621 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24622 if test $ac_cv_type_pid_t = yes; then
24626 cat >>confdefs.h <<_ACEOF
24632 { echo "$as_me:$LINENO: checking for size_t" >&5
24633 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24634 if test "${ac_cv_type_size_t+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24637 cat >conftest.$ac_ext <<_ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 $ac_includes_default
24644 typedef size_t ac__type_new_;
24648 if ((ac__type_new_ *) 0)
24650 if (sizeof (ac__type_new_))
24656 rm -f conftest.$ac_objext
24657 if { (ac_try="$ac_compile"
24658 case "(($ac_try" in
24659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24663 (eval "$ac_compile") 2>conftest.er1
24665 grep -v '^ *+' conftest.er1 >conftest.err
24667 cat conftest.err >&5
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } && {
24670 test -z "$ac_c_werror_flag" ||
24671 test ! -s conftest.err
24672 } && test -s conftest.$ac_objext; then
24673 ac_cv_type_size_t=yes
24675 echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24678 ac_cv_type_size_t=no
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24683 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24684 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24685 if test $ac_cv_type_size_t = yes; then
24689 cat >>confdefs.h <<_ACEOF
24690 #define size_t unsigned int
24695 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24696 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24697 if test "${ac_cv_header_time+set}" = set; then
24698 echo $ECHO_N "(cached) $ECHO_C" >&6
24700 cat >conftest.$ac_ext <<_ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h. */
24706 #include <sys/types.h>
24707 #include <sys/time.h>
24713 if ((struct tm *) 0)
24719 rm -f conftest.$ac_objext
24720 if { (ac_try="$ac_compile"
24721 case "(($ac_try" in
24722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723 *) ac_try_echo=$ac_try;;
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726 (eval "$ac_compile") 2>conftest.er1
24728 grep -v '^ *+' conftest.er1 >conftest.err
24730 cat conftest.err >&5
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } && {
24733 test -z "$ac_c_werror_flag" ||
24734 test ! -s conftest.err
24735 } && test -s conftest.$ac_objext; then
24736 ac_cv_header_time=yes
24738 echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ac_cv_header_time=no
24744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24747 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24748 if test $ac_cv_header_time = yes; then
24750 cat >>confdefs.h <<\_ACEOF
24751 #define TIME_WITH_SYS_TIME 1
24756 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24757 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24758 if test "${ac_cv_struct_tm+set}" = set; then
24759 echo $ECHO_N "(cached) $ECHO_C" >&6
24761 cat >conftest.$ac_ext <<_ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h. */
24767 #include <sys/types.h>
24774 int *p = &tm.tm_sec;
24780 rm -f conftest.$ac_objext
24781 if { (ac_try="$ac_compile"
24782 case "(($ac_try" in
24783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 *) ac_try_echo=$ac_try;;
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787 (eval "$ac_compile") 2>conftest.er1
24789 grep -v '^ *+' conftest.er1 >conftest.err
24791 cat conftest.err >&5
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); } && {
24794 test -z "$ac_c_werror_flag" ||
24795 test ! -s conftest.err
24796 } && test -s conftest.$ac_objext; then
24797 ac_cv_struct_tm=time.h
24799 echo "$as_me: failed program was:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24802 ac_cv_struct_tm=sys/time.h
24805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24807 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24808 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24809 if test $ac_cv_struct_tm = sys/time.h; then
24811 cat >>confdefs.h <<\_ACEOF
24812 #define TM_IN_SYS_TIME 1
24818 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24819 # for constant arguments. Useless!
24820 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24821 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24822 if test "${ac_cv_working_alloca_h+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24825 cat >conftest.$ac_ext <<_ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h. */
24831 #include <alloca.h>
24835 char *p = (char *) alloca (2 * sizeof (int));
24841 rm -f conftest.$ac_objext conftest$ac_exeext
24842 if { (ac_try="$ac_link"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_link") 2>conftest.er1
24850 grep -v '^ *+' conftest.er1 >conftest.err
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } && {
24855 test -z "$ac_c_werror_flag" ||
24856 test ! -s conftest.err
24857 } && test -s conftest$ac_exeext &&
24858 $as_test_x conftest$ac_exeext; then
24859 ac_cv_working_alloca_h=yes
24861 echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24864 ac_cv_working_alloca_h=no
24867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24868 conftest$ac_exeext conftest.$ac_ext
24870 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24871 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24872 if test $ac_cv_working_alloca_h = yes; then
24874 cat >>confdefs.h <<\_ACEOF
24875 #define HAVE_ALLOCA_H 1
24880 { echo "$as_me:$LINENO: checking for alloca" >&5
24881 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24882 if test "${ac_cv_func_alloca_works+set}" = set; then
24883 echo $ECHO_N "(cached) $ECHO_C" >&6
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24892 # define alloca __builtin_alloca
24895 # include <malloc.h>
24896 # define alloca _alloca
24898 # ifdef HAVE_ALLOCA_H
24899 # include <alloca.h>
24904 # ifndef alloca /* predefined by HP cc +Olibcalls */
24915 char *p = (char *) alloca (1);
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (ac_try="$ac_link"
24923 case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_link") 2>conftest.er1
24930 grep -v '^ *+' conftest.er1 >conftest.err
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest$ac_exeext &&
24938 $as_test_x conftest$ac_exeext; then
24939 ac_cv_func_alloca_works=yes
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24944 ac_cv_func_alloca_works=no
24947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24948 conftest$ac_exeext conftest.$ac_ext
24950 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24951 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24953 if test $ac_cv_func_alloca_works = yes; then
24955 cat >>confdefs.h <<\_ACEOF
24956 #define HAVE_ALLOCA 1
24960 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24961 # that cause trouble. Some versions do not even contain alloca or
24962 # contain a buggy version. If you still want to use their alloca,
24963 # use ar to extract alloca.o from them instead of compiling alloca.c.
24965 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24967 cat >>confdefs.h <<\_ACEOF
24972 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24973 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24974 if test "${ac_cv_os_cray+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24977 cat >conftest.$ac_ext <<_ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24983 #if defined CRAY && ! defined CRAY2
24990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24991 $EGREP "webecray" >/dev/null 2>&1; then
24999 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25000 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25001 if test $ac_cv_os_cray = yes; then
25002 for ac_func in _getb67 GETB67 getb67; do
25003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25009 cat >conftest.$ac_ext <<_ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h. */
25015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25017 #define $ac_func innocuous_$ac_func
25019 /* System header to define __stub macros and hopefully few prototypes,
25020 which can conflict with char $ac_func (); below.
25021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25022 <limits.h> exists even on freestanding compilers. */
25025 # include <limits.h>
25027 # include <assert.h>
25032 /* Override any GCC internal prototype to avoid an error.
25033 Use char because int might match the return type of a GCC
25034 builtin and then its argument prototype would still apply. */
25039 /* The GNU C library defines this for functions which it implements
25040 to always fail with ENOSYS. Some functions are actually named
25041 something starting with __ and the normal name is an alias. */
25042 #if defined __stub_$ac_func || defined __stub___$ac_func
25049 return $ac_func ();
25054 rm -f conftest.$ac_objext conftest$ac_exeext
25055 if { (ac_try="$ac_link"
25056 case "(($ac_try" in
25057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25058 *) ac_try_echo=$ac_try;;
25060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25061 (eval "$ac_link") 2>conftest.er1
25063 grep -v '^ *+' conftest.er1 >conftest.err
25065 cat conftest.err >&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); } && {
25068 test -z "$ac_c_werror_flag" ||
25069 test ! -s conftest.err
25070 } && test -s conftest$ac_exeext &&
25071 $as_test_x conftest$ac_exeext; then
25072 eval "$as_ac_var=yes"
25074 echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25077 eval "$as_ac_var=no"
25080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25081 conftest$ac_exeext conftest.$ac_ext
25083 ac_res=`eval echo '${'$as_ac_var'}'`
25084 { echo "$as_me:$LINENO: result: $ac_res" >&5
25085 echo "${ECHO_T}$ac_res" >&6; }
25086 if test `eval echo '${'$as_ac_var'}'` = yes; then
25088 cat >>confdefs.h <<_ACEOF
25089 #define CRAY_STACKSEG_END $ac_func
25098 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25099 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25100 if test "${ac_cv_c_stack_direction+set}" = set; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25103 if test "$cross_compiling" = yes; then
25104 ac_cv_c_stack_direction=0
25106 cat >conftest.$ac_ext <<_ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h. */
25112 $ac_includes_default
25114 find_stack_direction ()
25116 static char *addr = 0;
25121 return find_stack_direction ();
25124 return (&dummy > addr) ? 1 : -1;
25130 return find_stack_direction () < 0;
25133 rm -f conftest$ac_exeext
25134 if { (ac_try="$ac_link"
25135 case "(($ac_try" in
25136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137 *) ac_try_echo=$ac_try;;
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140 (eval "$ac_link") 2>&5
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25144 { (case "(($ac_try" in
25145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146 *) ac_try_echo=$ac_try;;
25148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149 (eval "$ac_try") 2>&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; }; then
25153 ac_cv_c_stack_direction=1
25155 echo "$as_me: program exited with status $ac_status" >&5
25156 echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25159 ( exit $ac_status )
25160 ac_cv_c_stack_direction=-1
25162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25167 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25168 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25170 cat >>confdefs.h <<_ACEOF
25171 #define STACK_DIRECTION $ac_cv_c_stack_direction
25182 ac_header_dirent=no
25183 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25184 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25185 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25186 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25188 echo $ECHO_N "(cached) $ECHO_C" >&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 <sys/types.h>
25208 rm -f conftest.$ac_objext
25209 if { (ac_try="$ac_compile"
25210 case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215 (eval "$ac_compile") 2>conftest.er1
25217 grep -v '^ *+' conftest.er1 >conftest.err
25219 cat conftest.err >&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } && {
25222 test -z "$ac_c_werror_flag" ||
25223 test ! -s conftest.err
25224 } && test -s conftest.$ac_objext; then
25225 eval "$as_ac_Header=yes"
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 eval "$as_ac_Header=no"
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25235 ac_res=`eval echo '${'$as_ac_Header'}'`
25236 { echo "$as_me:$LINENO: result: $ac_res" >&5
25237 echo "${ECHO_T}$ac_res" >&6; }
25238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25239 cat >>confdefs.h <<_ACEOF
25240 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25243 ac_header_dirent=$ac_hdr; break
25247 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25248 if test $ac_header_dirent = dirent.h; then
25249 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25251 if test "${ac_cv_search_opendir+set}" = set; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25254 ac_func_search_save_LIBS=$LIBS
25255 cat >conftest.$ac_ext <<_ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h. */
25262 /* Override any GCC internal prototype to avoid an error.
25263 Use char because int might match the return type of a GCC
25264 builtin and then its argument prototype would still apply. */
25277 for ac_lib in '' dir; do
25278 if test -z "$ac_lib"; then
25279 ac_res="none required"
25282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25284 rm -f conftest.$ac_objext conftest$ac_exeext
25285 if { (ac_try="$ac_link"
25286 case "(($ac_try" in
25287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288 *) ac_try_echo=$ac_try;;
25290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25291 (eval "$ac_link") 2>conftest.er1
25293 grep -v '^ *+' conftest.er1 >conftest.err
25295 cat conftest.err >&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } && {
25298 test -z "$ac_c_werror_flag" ||
25299 test ! -s conftest.err
25300 } && test -s conftest$ac_exeext &&
25301 $as_test_x conftest$ac_exeext; then
25302 ac_cv_search_opendir=$ac_res
25304 echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25312 if test "${ac_cv_search_opendir+set}" = set; then
25316 if test "${ac_cv_search_opendir+set}" = set; then
25319 ac_cv_search_opendir=no
25321 rm conftest.$ac_ext
25322 LIBS=$ac_func_search_save_LIBS
25324 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25325 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25326 ac_res=$ac_cv_search_opendir
25327 if test "$ac_res" != no; then
25328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25333 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25334 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25335 if test "${ac_cv_search_opendir+set}" = set; then
25336 echo $ECHO_N "(cached) $ECHO_C" >&6
25338 ac_func_search_save_LIBS=$LIBS
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25346 /* Override any GCC internal prototype to avoid an error.
25347 Use char because int might match the return type of a GCC
25348 builtin and then its argument prototype would still apply. */
25361 for ac_lib in '' x; do
25362 if test -z "$ac_lib"; then
25363 ac_res="none required"
25366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25368 rm -f conftest.$ac_objext conftest$ac_exeext
25369 if { (ac_try="$ac_link"
25370 case "(($ac_try" in
25371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25372 *) ac_try_echo=$ac_try;;
25374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25375 (eval "$ac_link") 2>conftest.er1
25377 grep -v '^ *+' conftest.er1 >conftest.err
25379 cat conftest.err >&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); } && {
25382 test -z "$ac_c_werror_flag" ||
25383 test ! -s conftest.err
25384 } && test -s conftest$ac_exeext &&
25385 $as_test_x conftest$ac_exeext; then
25386 ac_cv_search_opendir=$ac_res
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25396 if test "${ac_cv_search_opendir+set}" = set; then
25400 if test "${ac_cv_search_opendir+set}" = set; then
25403 ac_cv_search_opendir=no
25405 rm conftest.$ac_ext
25406 LIBS=$ac_func_search_save_LIBS
25408 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25409 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25410 ac_res=$ac_cv_search_opendir
25411 if test "$ac_res" != no; then
25412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25418 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25419 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25420 if test "${ac_cv_func_closedir_void+set}" = set; then
25421 echo $ECHO_N "(cached) $ECHO_C" >&6
25423 if test "$cross_compiling" = yes; then
25424 ac_cv_func_closedir_void=yes
25426 cat >conftest.$ac_ext <<_ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h. */
25432 $ac_includes_default
25433 #include <$ac_header_dirent>
25434 #ifndef __cplusplus
25441 return closedir (opendir (".")) != 0;
25446 rm -f conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450 *) ac_try_echo=$ac_try;;
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453 (eval "$ac_link") 2>&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25457 { (case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462 (eval "$ac_try") 2>&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); }; }; then
25466 ac_cv_func_closedir_void=no
25468 echo "$as_me: program exited with status $ac_status" >&5
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25472 ( exit $ac_status )
25473 ac_cv_func_closedir_void=yes
25475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25480 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25481 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25482 if test $ac_cv_func_closedir_void = yes; then
25484 cat >>confdefs.h <<\_ACEOF
25485 #define CLOSEDIR_VOID 1
25490 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25491 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25492 if test "${ac_cv_lib_error_at_line+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
25495 cat >conftest.$ac_ext <<_ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25505 error_at_line (0, 0, "", 0, "an error occurred");
25510 rm -f conftest.$ac_objext conftest$ac_exeext
25511 if { (ac_try="$ac_link"
25512 case "(($ac_try" in
25513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514 *) ac_try_echo=$ac_try;;
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517 (eval "$ac_link") 2>conftest.er1
25519 grep -v '^ *+' conftest.er1 >conftest.err
25521 cat conftest.err >&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } && {
25524 test -z "$ac_c_werror_flag" ||
25525 test ! -s conftest.err
25526 } && test -s conftest$ac_exeext &&
25527 $as_test_x conftest$ac_exeext; then
25528 ac_cv_lib_error_at_line=yes
25530 echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25533 ac_cv_lib_error_at_line=no
25536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25537 conftest$ac_exeext conftest.$ac_ext
25539 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25540 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25541 if test $ac_cv_lib_error_at_line = no; then
25542 case " $LIBOBJS " in
25543 *" error.$ac_objext "* ) ;;
25544 *) LIBOBJS="$LIBOBJS error.$ac_objext"
25551 for ac_header in vfork.h
25553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
25560 ac_res=`eval echo '${'$as_ac_Header'}'`
25561 { echo "$as_me:$LINENO: result: $ac_res" >&5
25562 echo "${ECHO_T}$ac_res" >&6; }
25564 # Is the header compilable?
25565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25567 cat >conftest.$ac_ext <<_ACEOF
25570 cat confdefs.h >>conftest.$ac_ext
25571 cat >>conftest.$ac_ext <<_ACEOF
25572 /* end confdefs.h. */
25573 $ac_includes_default
25574 #include <$ac_header>
25576 rm -f conftest.$ac_objext
25577 if { (ac_try="$ac_compile"
25578 case "(($ac_try" in
25579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580 *) ac_try_echo=$ac_try;;
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583 (eval "$ac_compile") 2>conftest.er1
25585 grep -v '^ *+' conftest.er1 >conftest.err
25587 cat conftest.err >&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); } && {
25590 test -z "$ac_c_werror_flag" ||
25591 test ! -s conftest.err
25592 } && test -s conftest.$ac_objext; then
25593 ac_header_compiler=yes
25595 echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25598 ac_header_compiler=no
25601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25603 echo "${ECHO_T}$ac_header_compiler" >&6; }
25605 # Is the header present?
25606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25608 cat >conftest.$ac_ext <<_ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h. */
25614 #include <$ac_header>
25616 if { (ac_try="$ac_cpp conftest.$ac_ext"
25617 case "(($ac_try" in
25618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25619 *) ac_try_echo=$ac_try;;
25621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25624 grep -v '^ *+' conftest.er1 >conftest.err
25626 cat conftest.err >&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); } >/dev/null && {
25629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25630 test ! -s conftest.err
25632 ac_header_preproc=yes
25634 echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25637 ac_header_preproc=no
25640 rm -f conftest.err conftest.$ac_ext
25641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25642 echo "${ECHO_T}$ac_header_preproc" >&6; }
25644 # So? What about this header?
25645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25651 ac_header_preproc=yes
25654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25667 ## ---------------------------------------- ##
25668 ## Report this to linux-nfs@vger.kernel.org ##
25669 ## ---------------------------------------- ##
25671 ) | sed "s/^/$as_me: WARNING: /" >&2
25674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25677 echo $ECHO_N "(cached) $ECHO_C" >&6
25679 eval "$as_ac_Header=\$ac_header_preproc"
25681 ac_res=`eval echo '${'$as_ac_Header'}'`
25682 { echo "$as_me:$LINENO: result: $ac_res" >&5
25683 echo "${ECHO_T}$ac_res" >&6; }
25686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25687 cat >>confdefs.h <<_ACEOF
25688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25697 for ac_func in fork vfork
25699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25705 cat >conftest.$ac_ext <<_ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h. */
25711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25713 #define $ac_func innocuous_$ac_func
25715 /* System header to define __stub macros and hopefully few prototypes,
25716 which can conflict with char $ac_func (); below.
25717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25718 <limits.h> exists even on freestanding compilers. */
25721 # include <limits.h>
25723 # include <assert.h>
25728 /* Override any GCC internal prototype to avoid an error.
25729 Use char because int might match the return type of a GCC
25730 builtin and then its argument prototype would still apply. */
25735 /* The GNU C library defines this for functions which it implements
25736 to always fail with ENOSYS. Some functions are actually named
25737 something starting with __ and the normal name is an alias. */
25738 #if defined __stub_$ac_func || defined __stub___$ac_func
25745 return $ac_func ();
25750 rm -f conftest.$ac_objext conftest$ac_exeext
25751 if { (ac_try="$ac_link"
25752 case "(($ac_try" in
25753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754 *) ac_try_echo=$ac_try;;
25756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757 (eval "$ac_link") 2>conftest.er1
25759 grep -v '^ *+' conftest.er1 >conftest.err
25761 cat conftest.err >&5
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); } && {
25764 test -z "$ac_c_werror_flag" ||
25765 test ! -s conftest.err
25766 } && test -s conftest$ac_exeext &&
25767 $as_test_x conftest$ac_exeext; then
25768 eval "$as_ac_var=yes"
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25773 eval "$as_ac_var=no"
25776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25777 conftest$ac_exeext conftest.$ac_ext
25779 ac_res=`eval echo '${'$as_ac_var'}'`
25780 { echo "$as_me:$LINENO: result: $ac_res" >&5
25781 echo "${ECHO_T}$ac_res" >&6; }
25782 if test `eval echo '${'$as_ac_var'}'` = yes; then
25783 cat >>confdefs.h <<_ACEOF
25784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25790 if test "x$ac_cv_func_fork" = xyes; then
25791 { echo "$as_me:$LINENO: checking for working fork" >&5
25792 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25793 if test "${ac_cv_func_fork_works+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25796 if test "$cross_compiling" = yes; then
25797 ac_cv_func_fork_works=cross
25799 cat >conftest.$ac_ext <<_ACEOF
25802 cat confdefs.h >>conftest.$ac_ext
25803 cat >>conftest.$ac_ext <<_ACEOF
25804 /* end confdefs.h. */
25805 $ac_includes_default
25810 /* By Ruediger Kuhlmann. */
25811 return fork () < 0;
25817 rm -f conftest$ac_exeext
25818 if { (ac_try="$ac_link"
25819 case "(($ac_try" in
25820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25821 *) ac_try_echo=$ac_try;;
25823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25824 (eval "$ac_link") 2>&5
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25828 { (case "(($ac_try" in
25829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830 *) ac_try_echo=$ac_try;;
25832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833 (eval "$ac_try") 2>&5
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); }; }; then
25837 ac_cv_func_fork_works=yes
25839 echo "$as_me: program exited with status $ac_status" >&5
25840 echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25843 ( exit $ac_status )
25844 ac_cv_func_fork_works=no
25846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25851 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25852 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25855 ac_cv_func_fork_works=$ac_cv_func_fork
25857 if test "x$ac_cv_func_fork_works" = xcross; then
25859 *-*-amigaos* | *-*-msdosdjgpp*)
25860 # Override, as these systems have only a dummy fork() stub
25861 ac_cv_func_fork_works=no
25864 ac_cv_func_fork_works=yes
25867 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25868 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25870 ac_cv_func_vfork_works=$ac_cv_func_vfork
25871 if test "x$ac_cv_func_vfork" = xyes; then
25872 { echo "$as_me:$LINENO: checking for working vfork" >&5
25873 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25874 if test "${ac_cv_func_vfork_works+set}" = set; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25877 if test "$cross_compiling" = yes; then
25878 ac_cv_func_vfork_works=cross
25880 cat >conftest.$ac_ext <<_ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25886 /* Thanks to Paul Eggert for this test. */
25887 $ac_includes_default
25888 #include <sys/wait.h>
25889 #ifdef HAVE_VFORK_H
25890 # include <vfork.h>
25892 /* On some sparc systems, changes by the child to local and incoming
25893 argument registers are propagated back to the parent. The compiler
25894 is told about this with #include <vfork.h>, but some compilers
25895 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25896 static variable whose address is put into a register that is
25897 clobbered by the vfork. */
25900 sparc_address_test (int arg)
25902 sparc_address_test (arg) int arg;
25905 static pid_t child;
25923 pid_t parent = getpid ();
25926 sparc_address_test (0);
25931 /* Here is another test for sparc vfork register problems. This
25932 test uses lots of local variables, at least as many local
25933 variables as main has allocated so far including compiler
25934 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25935 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25936 reuse the register of parent for one of the local variables,
25937 since it will think that parent can't possibly be used any more
25938 in this routine. Assigning to the local variable will thus
25939 munge parent in the parent process. */
25941 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25942 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25943 /* Convince the compiler that p..p7 are live; otherwise, it might
25944 use the same hardware register for all 8 local variables. */
25945 if (p != p1 || p != p2 || p != p3 || p != p4
25946 || p != p5 || p != p6 || p != p7)
25949 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25950 from child file descriptors. If the child closes a descriptor
25951 before it execs or exits, this munges the parent's descriptor
25952 as well. Test for this by closing stdout in the child. */
25953 _exit(close(fileno(stdout)) != 0);
25958 while (wait(&status) != child)
25961 /* Was there some problem with vforking? */
25964 /* Did the child fail? (This shouldn't happen.) */
25967 /* Did the vfork/compiler bug occur? */
25968 || parent != getpid()
25970 /* Did the file descriptor bug occur? */
25971 || fstat(fileno(stdout), &st) != 0
25976 rm -f conftest$ac_exeext
25977 if { (ac_try="$ac_link"
25978 case "(($ac_try" in
25979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980 *) ac_try_echo=$ac_try;;
25982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25983 (eval "$ac_link") 2>&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25987 { (case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992 (eval "$ac_try") 2>&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; }; then
25996 ac_cv_func_vfork_works=yes
25998 echo "$as_me: program exited with status $ac_status" >&5
25999 echo "$as_me: failed program was:" >&5
26000 sed 's/^/| /' conftest.$ac_ext >&5
26002 ( exit $ac_status )
26003 ac_cv_func_vfork_works=no
26005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26010 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26011 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26014 if test "x$ac_cv_func_fork_works" = xcross; then
26015 ac_cv_func_vfork_works=$ac_cv_func_vfork
26016 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26017 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26020 if test "x$ac_cv_func_vfork_works" = xyes; then
26022 cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_WORKING_VFORK 1
26028 cat >>confdefs.h <<\_ACEOF
26033 if test "x$ac_cv_func_fork_works" = xyes; then
26035 cat >>confdefs.h <<\_ACEOF
26036 #define HAVE_WORKING_FORK 1
26041 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26042 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26043 if test "${ac_cv_type_getgroups+set}" = set; then
26044 echo $ECHO_N "(cached) $ECHO_C" >&6
26046 if test "$cross_compiling" = yes; then
26047 ac_cv_type_getgroups=cross
26049 cat >conftest.$ac_ext <<_ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 /* Thanks to Mike Rendell for this test. */
26056 $ac_includes_default
26059 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26064 gid_t gidset[NGID];
26066 union { gid_t gval; long int lval; } val;
26069 for (i = 0; i < NGID; i++)
26070 gidset[i] = val.gval;
26071 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26073 /* Exit non-zero if getgroups seems to require an array of ints. This
26074 happens when gid_t is short int but getgroups modifies an array
26076 return n > 0 && gidset[n] != val.gval;
26079 rm -f conftest$ac_exeext
26080 if { (ac_try="$ac_link"
26081 case "(($ac_try" in
26082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083 *) ac_try_echo=$ac_try;;
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086 (eval "$ac_link") 2>&5
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26090 { (case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26095 (eval "$ac_try") 2>&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; }; then
26099 ac_cv_type_getgroups=gid_t
26101 echo "$as_me: program exited with status $ac_status" >&5
26102 echo "$as_me: failed program was:" >&5
26103 sed 's/^/| /' conftest.$ac_ext >&5
26105 ( exit $ac_status )
26106 ac_cv_type_getgroups=int
26108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26112 if test $ac_cv_type_getgroups = cross; then
26113 cat >conftest.$ac_ext <<_ACEOF
26116 cat confdefs.h >>conftest.$ac_ext
26117 cat >>conftest.$ac_ext <<_ACEOF
26118 /* end confdefs.h. */
26119 #include <unistd.h>
26122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26123 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26124 ac_cv_type_getgroups=gid_t
26126 ac_cv_type_getgroups=int
26132 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26133 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26135 cat >>confdefs.h <<_ACEOF
26136 #define GETGROUPS_T $ac_cv_type_getgroups
26140 { echo "$as_me:$LINENO: checking for getgroups" >&5
26141 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26142 if test "${ac_cv_func_getgroups+set}" = set; then
26143 echo $ECHO_N "(cached) $ECHO_C" >&6
26145 cat >conftest.$ac_ext <<_ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26153 #define getgroups innocuous_getgroups
26155 /* System header to define __stub macros and hopefully few prototypes,
26156 which can conflict with char getgroups (); below.
26157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26158 <limits.h> exists even on freestanding compilers. */
26161 # include <limits.h>
26163 # include <assert.h>
26168 /* Override any GCC internal prototype to avoid an error.
26169 Use char because int might match the return type of a GCC
26170 builtin and then its argument prototype would still apply. */
26175 /* The GNU C library defines this for functions which it implements
26176 to always fail with ENOSYS. Some functions are actually named
26177 something starting with __ and the normal name is an alias. */
26178 #if defined __stub_getgroups || defined __stub___getgroups
26185 return getgroups ();
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_link") 2>conftest.er1
26199 grep -v '^ *+' conftest.er1 >conftest.err
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest$ac_exeext &&
26207 $as_test_x conftest$ac_exeext; then
26208 ac_cv_func_getgroups=yes
26210 echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 ac_cv_func_getgroups=no
26216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217 conftest$ac_exeext conftest.$ac_ext
26219 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26220 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26223 # If we don't yet have getgroups, see if it's in -lbsd.
26224 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26226 if test $ac_cv_func_getgroups = no; then
26227 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26228 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26229 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26232 ac_check_lib_save_LIBS=$LIBS
26234 cat >conftest.$ac_ext <<_ACEOF
26237 cat confdefs.h >>conftest.$ac_ext
26238 cat >>conftest.$ac_ext <<_ACEOF
26239 /* end confdefs.h. */
26241 /* Override any GCC internal prototype to avoid an error.
26242 Use char because int might match the return type of a GCC
26243 builtin and then its argument prototype would still apply. */
26251 return getgroups ();
26256 rm -f conftest.$ac_objext conftest$ac_exeext
26257 if { (ac_try="$ac_link"
26258 case "(($ac_try" in
26259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26260 *) ac_try_echo=$ac_try;;
26262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26263 (eval "$ac_link") 2>conftest.er1
26265 grep -v '^ *+' conftest.er1 >conftest.err
26267 cat conftest.err >&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } && {
26270 test -z "$ac_c_werror_flag" ||
26271 test ! -s conftest.err
26272 } && test -s conftest$ac_exeext &&
26273 $as_test_x conftest$ac_exeext; then
26274 ac_cv_lib_bsd_getgroups=yes
26276 echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26279 ac_cv_lib_bsd_getgroups=no
26282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26283 conftest$ac_exeext conftest.$ac_ext
26284 LIBS=$ac_check_lib_save_LIBS
26286 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26287 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26288 if test $ac_cv_lib_bsd_getgroups = yes; then
26289 GETGROUPS_LIB=-lbsd
26294 # Run the program to test the functionality of the system-supplied
26295 # getgroups function only if there is such a function.
26296 if test $ac_cv_func_getgroups = yes; then
26297 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26298 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26299 if test "${ac_cv_func_getgroups_works+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26302 if test "$cross_compiling" = yes; then
26303 ac_cv_func_getgroups_works=no
26305 cat >conftest.$ac_ext <<_ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h. */
26311 $ac_includes_default
26315 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26316 return getgroups (0, 0) == -1;
26321 rm -f conftest$ac_exeext
26322 if { (ac_try="$ac_link"
26323 case "(($ac_try" in
26324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26325 *) ac_try_echo=$ac_try;;
26327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26328 (eval "$ac_link") 2>&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26332 { (case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337 (eval "$ac_try") 2>&5
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; }; then
26341 ac_cv_func_getgroups_works=yes
26343 echo "$as_me: program exited with status $ac_status" >&5
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26347 ( exit $ac_status )
26348 ac_cv_func_getgroups_works=no
26350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26356 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26357 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26358 if test $ac_cv_func_getgroups_works = yes; then
26360 cat >>confdefs.h <<\_ACEOF
26361 #define HAVE_GETGROUPS 1
26368 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26369 # -lseq on Dynix/PTX, -lgen on Unixware.
26370 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26371 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26372 if test "${ac_cv_search_getmntent+set}" = set; then
26373 echo $ECHO_N "(cached) $ECHO_C" >&6
26375 ac_func_search_save_LIBS=$LIBS
26376 cat >conftest.$ac_ext <<_ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h. */
26383 /* Override any GCC internal prototype to avoid an error.
26384 Use char because int might match the return type of a GCC
26385 builtin and then its argument prototype would still apply. */
26393 return getmntent ();
26398 for ac_lib in '' sun seq gen; do
26399 if test -z "$ac_lib"; then
26400 ac_res="none required"
26403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26405 rm -f conftest.$ac_objext conftest$ac_exeext
26406 if { (ac_try="$ac_link"
26407 case "(($ac_try" in
26408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409 *) ac_try_echo=$ac_try;;
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412 (eval "$ac_link") 2>conftest.er1
26414 grep -v '^ *+' conftest.er1 >conftest.err
26416 cat conftest.err >&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } && {
26419 test -z "$ac_c_werror_flag" ||
26420 test ! -s conftest.err
26421 } && test -s conftest$ac_exeext &&
26422 $as_test_x conftest$ac_exeext; then
26423 ac_cv_search_getmntent=$ac_res
26425 echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26433 if test "${ac_cv_search_getmntent+set}" = set; then
26437 if test "${ac_cv_search_getmntent+set}" = set; then
26440 ac_cv_search_getmntent=no
26442 rm conftest.$ac_ext
26443 LIBS=$ac_func_search_save_LIBS
26445 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26446 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26447 ac_res=$ac_cv_search_getmntent
26448 if test "$ac_res" != no; then
26449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26450 ac_cv_func_getmntent=yes
26452 cat >>confdefs.h <<\_ACEOF
26453 #define HAVE_GETMNTENT
26457 ac_cv_func_getmntent=no
26461 if test $ac_cv_c_compiler_gnu = yes; then
26462 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26463 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26464 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 ac_pattern="Autoconf.*'x'"
26468 cat >conftest.$ac_ext <<_ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h. */
26477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26478 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26479 ac_cv_prog_gcc_traditional=yes
26481 ac_cv_prog_gcc_traditional=no
26486 if test $ac_cv_prog_gcc_traditional = no; then
26487 cat >conftest.$ac_ext <<_ACEOF
26490 cat confdefs.h >>conftest.$ac_ext
26491 cat >>conftest.$ac_ext <<_ACEOF
26492 /* end confdefs.h. */
26493 #include <termio.h>
26496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26497 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26498 ac_cv_prog_gcc_traditional=yes
26504 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26505 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26506 if test $ac_cv_prog_gcc_traditional = yes; then
26507 CC="$CC -traditional"
26511 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26512 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26513 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26514 echo $ECHO_N "(cached) $ECHO_C" >&6
26516 rm -f conftest.sym conftest.file
26517 echo >conftest.file
26518 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26519 if test "$cross_compiling" = yes; then
26520 ac_cv_func_lstat_dereferences_slashed_symlink=no
26522 cat >conftest.$ac_ext <<_ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h. */
26528 $ac_includes_default
26533 /* Linux will dereference the symlink and fail.
26534 That is better in the sense that it means we will not
26535 have to compile and use the lstat wrapper. */
26536 return lstat ("conftest.sym/", &sbuf) == 0;
26541 rm -f conftest$ac_exeext
26542 if { (ac_try="$ac_link"
26543 case "(($ac_try" in
26544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545 *) ac_try_echo=$ac_try;;
26547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548 (eval "$ac_link") 2>&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26552 { (case "(($ac_try" in
26553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554 *) ac_try_echo=$ac_try;;
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557 (eval "$ac_try") 2>&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); }; }; then
26561 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26563 echo "$as_me: program exited with status $ac_status" >&5
26564 echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26567 ( exit $ac_status )
26568 ac_cv_func_lstat_dereferences_slashed_symlink=no
26570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26575 # If the `ln -s' command failed, then we probably don't even
26576 # have an lstat function.
26577 ac_cv_func_lstat_dereferences_slashed_symlink=no
26579 rm -f conftest.sym conftest.file
26582 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26583 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26585 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26587 cat >>confdefs.h <<_ACEOF
26588 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26592 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26593 case " $LIBOBJS " in
26594 *" lstat.$ac_objext "* ) ;;
26595 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26601 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26602 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26603 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 if test "$cross_compiling" = yes; then
26607 ac_cv_func_lstat_empty_string_bug=yes
26609 cat >conftest.$ac_ext <<_ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h. */
26615 $ac_includes_default
26620 return lstat ("", &sbuf) == 0;
26625 rm -f conftest$ac_exeext
26626 if { (ac_try="$ac_link"
26627 case "(($ac_try" in
26628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26629 *) ac_try_echo=$ac_try;;
26631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26632 (eval "$ac_link") 2>&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26636 { (case "(($ac_try" in
26637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26638 *) ac_try_echo=$ac_try;;
26640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641 (eval "$ac_try") 2>&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); }; }; then
26645 ac_cv_func_lstat_empty_string_bug=no
26647 echo "$as_me: program exited with status $ac_status" >&5
26648 echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26651 ( exit $ac_status )
26652 ac_cv_func_lstat_empty_string_bug=yes
26654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26659 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26660 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26661 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26662 case " $LIBOBJS " in
26663 *" lstat.$ac_objext "* ) ;;
26664 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26669 cat >>confdefs.h <<_ACEOF
26670 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26675 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26676 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26677 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26678 echo $ECHO_N "(cached) $ECHO_C" >&6
26680 rm -f conftest.sym conftest.file
26681 echo >conftest.file
26682 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26683 if test "$cross_compiling" = yes; then
26684 ac_cv_func_lstat_dereferences_slashed_symlink=no
26686 cat >conftest.$ac_ext <<_ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h. */
26692 $ac_includes_default
26697 /* Linux will dereference the symlink and fail.
26698 That is better in the sense that it means we will not
26699 have to compile and use the lstat wrapper. */
26700 return lstat ("conftest.sym/", &sbuf) == 0;
26705 rm -f conftest$ac_exeext
26706 if { (ac_try="$ac_link"
26707 case "(($ac_try" in
26708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709 *) ac_try_echo=$ac_try;;
26711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26712 (eval "$ac_link") 2>&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26716 { (case "(($ac_try" in
26717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718 *) ac_try_echo=$ac_try;;
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721 (eval "$ac_try") 2>&5
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); }; }; then
26725 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26727 echo "$as_me: program exited with status $ac_status" >&5
26728 echo "$as_me: failed program was:" >&5
26729 sed 's/^/| /' conftest.$ac_ext >&5
26731 ( exit $ac_status )
26732 ac_cv_func_lstat_dereferences_slashed_symlink=no
26734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26739 # If the `ln -s' command failed, then we probably don't even
26740 # have an lstat function.
26741 ac_cv_func_lstat_dereferences_slashed_symlink=no
26743 rm -f conftest.sym conftest.file
26746 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26747 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26749 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26751 cat >>confdefs.h <<_ACEOF
26752 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26756 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26757 case " $LIBOBJS " in
26758 *" lstat.$ac_objext "* ) ;;
26759 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26765 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26766 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26767 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26768 echo $ECHO_N "(cached) $ECHO_C" >&6
26770 cat >conftest.$ac_ext <<_ACEOF
26773 cat confdefs.h >>conftest.$ac_ext
26774 cat >>conftest.$ac_ext <<_ACEOF
26775 /* end confdefs.h. */
26776 #include <sys/types.h>
26780 return makedev(0, 0);
26785 rm -f conftest.$ac_objext conftest$ac_exeext
26786 if { (ac_try="$ac_link"
26787 case "(($ac_try" in
26788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789 *) ac_try_echo=$ac_try;;
26791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792 (eval "$ac_link") 2>conftest.er1
26794 grep -v '^ *+' conftest.er1 >conftest.err
26796 cat conftest.err >&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } && {
26799 test -z "$ac_c_werror_flag" ||
26800 test ! -s conftest.err
26801 } && test -s conftest$ac_exeext &&
26802 $as_test_x conftest$ac_exeext; then
26803 ac_cv_header_sys_types_h_makedev=yes
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26808 ac_cv_header_sys_types_h_makedev=no
26811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26812 conftest$ac_exeext conftest.$ac_ext
26815 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26816 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26818 if test $ac_cv_header_sys_types_h_makedev = no; then
26819 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26820 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26821 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26822 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26823 echo $ECHO_N "(cached) $ECHO_C" >&6
26825 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26826 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26828 # Is the header compilable?
26829 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26830 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26831 cat >conftest.$ac_ext <<_ACEOF
26834 cat confdefs.h >>conftest.$ac_ext
26835 cat >>conftest.$ac_ext <<_ACEOF
26836 /* end confdefs.h. */
26837 $ac_includes_default
26838 #include <sys/mkdev.h>
26840 rm -f conftest.$ac_objext
26841 if { (ac_try="$ac_compile"
26842 case "(($ac_try" in
26843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_compile") 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } && {
26854 test -z "$ac_c_werror_flag" ||
26855 test ! -s conftest.err
26856 } && test -s conftest.$ac_objext; then
26857 ac_header_compiler=yes
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26862 ac_header_compiler=no
26865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26867 echo "${ECHO_T}$ac_header_compiler" >&6; }
26869 # Is the header present?
26870 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26871 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26872 cat >conftest.$ac_ext <<_ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h. */
26878 #include <sys/mkdev.h>
26880 if { (ac_try="$ac_cpp conftest.$ac_ext"
26881 case "(($ac_try" in
26882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883 *) ac_try_echo=$ac_try;;
26885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26888 grep -v '^ *+' conftest.er1 >conftest.err
26890 cat conftest.err >&5
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); } >/dev/null && {
26893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26894 test ! -s conftest.err
26896 ac_header_preproc=yes
26898 echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26901 ac_header_preproc=no
26904 rm -f conftest.err conftest.$ac_ext
26905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26906 echo "${ECHO_T}$ac_header_preproc" >&6; }
26908 # So? What about this header?
26909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26911 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26912 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26913 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26914 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26915 ac_header_preproc=yes
26918 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26919 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26920 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26921 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26922 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26923 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26924 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26925 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26926 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26927 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26928 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26929 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26931 ## ---------------------------------------- ##
26932 ## Report this to linux-nfs@vger.kernel.org ##
26933 ## ---------------------------------------- ##
26935 ) | sed "s/^/$as_me: WARNING: /" >&2
26938 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26939 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26940 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26943 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26945 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26946 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26949 if test $ac_cv_header_sys_mkdev_h = yes; then
26951 cat >>confdefs.h <<\_ACEOF
26952 #define MAJOR_IN_MKDEV 1
26959 if test $ac_cv_header_sys_mkdev_h = no; then
26960 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26961 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26962 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26963 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26966 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26967 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26969 # Is the header compilable?
26970 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26971 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26972 cat >conftest.$ac_ext <<_ACEOF
26975 cat confdefs.h >>conftest.$ac_ext
26976 cat >>conftest.$ac_ext <<_ACEOF
26977 /* end confdefs.h. */
26978 $ac_includes_default
26979 #include <sys/sysmacros.h>
26981 rm -f conftest.$ac_objext
26982 if { (ac_try="$ac_compile"
26983 case "(($ac_try" in
26984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985 *) ac_try_echo=$ac_try;;
26987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26988 (eval "$ac_compile") 2>conftest.er1
26990 grep -v '^ *+' conftest.er1 >conftest.err
26992 cat conftest.err >&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); } && {
26995 test -z "$ac_c_werror_flag" ||
26996 test ! -s conftest.err
26997 } && test -s conftest.$ac_objext; then
26998 ac_header_compiler=yes
27000 echo "$as_me: failed program was:" >&5
27001 sed 's/^/| /' conftest.$ac_ext >&5
27003 ac_header_compiler=no
27006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27008 echo "${ECHO_T}$ac_header_compiler" >&6; }
27010 # Is the header present?
27011 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27012 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27013 cat >conftest.$ac_ext <<_ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27019 #include <sys/sysmacros.h>
27021 if { (ac_try="$ac_cpp conftest.$ac_ext"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27029 grep -v '^ *+' conftest.er1 >conftest.err
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } >/dev/null && {
27034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27035 test ! -s conftest.err
27037 ac_header_preproc=yes
27039 echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27042 ac_header_preproc=no
27045 rm -f conftest.err conftest.$ac_ext
27046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27047 echo "${ECHO_T}$ac_header_preproc" >&6; }
27049 # So? What about this header?
27050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27052 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27053 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27054 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27055 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27056 ac_header_preproc=yes
27059 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27060 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27061 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27062 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27063 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27064 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27065 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27066 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27067 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27068 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27069 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27070 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27072 ## ---------------------------------------- ##
27073 ## Report this to linux-nfs@vger.kernel.org ##
27074 ## ---------------------------------------- ##
27076 ) | sed "s/^/$as_me: WARNING: /" >&2
27079 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27080 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27081 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27082 echo $ECHO_N "(cached) $ECHO_C" >&6
27084 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27087 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27090 if test $ac_cv_header_sys_sysmacros_h = yes; then
27092 cat >>confdefs.h <<\_ACEOF
27093 #define MAJOR_IN_SYSMACROS 1
27103 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27104 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27105 if test "${ac_cv_func_memcmp_working+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27108 if test "$cross_compiling" = yes; then
27109 ac_cv_func_memcmp_working=no
27111 cat >conftest.$ac_ext <<_ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h. */
27117 $ac_includes_default
27122 /* Some versions of memcmp are not 8-bit clean. */
27123 char c0 = '\100', c1 = '\200', c2 = '\201';
27124 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27127 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27128 or more and with at least one buffer not starting on a 4-byte boundary.
27129 William Lewis provided this test program. */
27134 for (i = 0; i < 4; i++)
27138 strcpy (a, "--------01111111");
27139 strcpy (b, "--------10000000");
27140 if (memcmp (a, b, 16) >= 0)
27150 rm -f conftest$ac_exeext
27151 if { (ac_try="$ac_link"
27152 case "(($ac_try" in
27153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27154 *) ac_try_echo=$ac_try;;
27156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27157 (eval "$ac_link") 2>&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27161 { (case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_try") 2>&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); }; }; then
27170 ac_cv_func_memcmp_working=yes
27172 echo "$as_me: program exited with status $ac_status" >&5
27173 echo "$as_me: failed program was:" >&5
27174 sed 's/^/| /' conftest.$ac_ext >&5
27176 ( exit $ac_status )
27177 ac_cv_func_memcmp_working=no
27179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27184 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27185 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27186 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27187 *" memcmp.$ac_objext "* ) ;;
27188 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27196 for ac_header in sys/select.h sys/socket.h
27198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27203 echo $ECHO_N "(cached) $ECHO_C" >&6
27205 ac_res=`eval echo '${'$as_ac_Header'}'`
27206 { echo "$as_me:$LINENO: result: $ac_res" >&5
27207 echo "${ECHO_T}$ac_res" >&6; }
27209 # Is the header compilable?
27210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27212 cat >conftest.$ac_ext <<_ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27218 $ac_includes_default
27219 #include <$ac_header>
27221 rm -f conftest.$ac_objext
27222 if { (ac_try="$ac_compile"
27223 case "(($ac_try" in
27224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225 *) ac_try_echo=$ac_try;;
27227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228 (eval "$ac_compile") 2>conftest.er1
27230 grep -v '^ *+' conftest.er1 >conftest.err
27232 cat conftest.err >&5
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); } && {
27235 test -z "$ac_c_werror_flag" ||
27236 test ! -s conftest.err
27237 } && test -s conftest.$ac_objext; then
27238 ac_header_compiler=yes
27240 echo "$as_me: failed program was:" >&5
27241 sed 's/^/| /' conftest.$ac_ext >&5
27243 ac_header_compiler=no
27246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27248 echo "${ECHO_T}$ac_header_compiler" >&6; }
27250 # Is the header present?
27251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27253 cat >conftest.$ac_ext <<_ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h. */
27259 #include <$ac_header>
27261 if { (ac_try="$ac_cpp conftest.$ac_ext"
27262 case "(($ac_try" in
27263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264 *) ac_try_echo=$ac_try;;
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27269 grep -v '^ *+' conftest.er1 >conftest.err
27271 cat conftest.err >&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } >/dev/null && {
27274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27275 test ! -s conftest.err
27277 ac_header_preproc=yes
27279 echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27282 ac_header_preproc=no
27285 rm -f conftest.err conftest.$ac_ext
27286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27287 echo "${ECHO_T}$ac_header_preproc" >&6; }
27289 # So? What about this header?
27290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27296 ac_header_preproc=yes
27299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27312 ## ---------------------------------------- ##
27313 ## Report this to linux-nfs@vger.kernel.org ##
27314 ## ---------------------------------------- ##
27316 ) | sed "s/^/$as_me: WARNING: /" >&2
27319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27324 eval "$as_ac_Header=\$ac_header_preproc"
27326 ac_res=`eval echo '${'$as_ac_Header'}'`
27327 { echo "$as_me:$LINENO: result: $ac_res" >&5
27328 echo "${ECHO_T}$ac_res" >&6; }
27331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27332 cat >>confdefs.h <<_ACEOF
27333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27340 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27341 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27342 if test "${ac_cv_func_select_args+set}" = set; then
27343 echo $ECHO_N "(cached) $ECHO_C" >&6
27345 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27346 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27347 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27348 cat >conftest.$ac_ext <<_ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h. */
27354 $ac_includes_default
27355 #ifdef HAVE_SYS_SELECT_H
27356 # include <sys/select.h>
27358 #ifdef HAVE_SYS_SOCKET_H
27359 # include <sys/socket.h>
27365 extern int select ($ac_arg1,
27366 $ac_arg234, $ac_arg234, $ac_arg234,
27372 rm -f conftest.$ac_objext
27373 if { (ac_try="$ac_compile"
27374 case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_compile") 2>conftest.er1
27381 grep -v '^ *+' conftest.er1 >conftest.err
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } && {
27386 test -z "$ac_c_werror_flag" ||
27387 test ! -s conftest.err
27388 } && test -s conftest.$ac_objext; then
27389 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27391 echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27401 # Provide a safe default value.
27402 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27405 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27406 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27407 ac_save_IFS=$IFS; IFS=','
27408 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27412 cat >>confdefs.h <<_ACEOF
27413 #define SELECT_TYPE_ARG1 $1
27417 cat >>confdefs.h <<_ACEOF
27418 #define SELECT_TYPE_ARG234 ($2)
27422 cat >>confdefs.h <<_ACEOF
27423 #define SELECT_TYPE_ARG5 ($3)
27428 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27429 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27430 if test "${ac_cv_type_signal+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27433 cat >conftest.$ac_ext <<_ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h. */
27439 #include <sys/types.h>
27440 #include <signal.h>
27445 return *(signal (0, 0)) (0) == 1;
27450 rm -f conftest.$ac_objext
27451 if { (ac_try="$ac_compile"
27452 case "(($ac_try" in
27453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27454 *) ac_try_echo=$ac_try;;
27456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457 (eval "$ac_compile") 2>conftest.er1
27459 grep -v '^ *+' conftest.er1 >conftest.err
27461 cat conftest.err >&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); } && {
27464 test -z "$ac_c_werror_flag" ||
27465 test ! -s conftest.err
27466 } && test -s conftest.$ac_objext; then
27467 ac_cv_type_signal=int
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 ac_cv_type_signal=void
27475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27477 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27478 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27480 cat >>confdefs.h <<_ACEOF
27481 #define RETSIGTYPE $ac_cv_type_signal
27485 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27486 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27487 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27488 echo $ECHO_N "(cached) $ECHO_C" >&6
27490 if test "$cross_compiling" = yes; then
27491 ac_cv_func_stat_empty_string_bug=yes
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 $ac_includes_default
27504 return stat ("", &sbuf) == 0;
27509 rm -f conftest$ac_exeext
27510 if { (ac_try="$ac_link"
27511 case "(($ac_try" in
27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_link") 2>&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27520 { (case "(($ac_try" in
27521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522 *) ac_try_echo=$ac_try;;
27524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525 (eval "$ac_try") 2>&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 ac_cv_func_stat_empty_string_bug=no
27531 echo "$as_me: program exited with status $ac_status" >&5
27532 echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27535 ( exit $ac_status )
27536 ac_cv_func_stat_empty_string_bug=yes
27538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27543 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27544 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27545 if test $ac_cv_func_stat_empty_string_bug = yes; then
27546 case " $LIBOBJS " in
27547 *" stat.$ac_objext "* ) ;;
27548 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_STAT_EMPTY_STRING_BUG 1
27560 for ac_func in vprintf
27562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27566 echo $ECHO_N "(cached) $ECHO_C" >&6
27568 cat >conftest.$ac_ext <<_ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h. */
27574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27576 #define $ac_func innocuous_$ac_func
27578 /* System header to define __stub macros and hopefully few prototypes,
27579 which can conflict with char $ac_func (); below.
27580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27581 <limits.h> exists even on freestanding compilers. */
27584 # include <limits.h>
27586 # include <assert.h>
27591 /* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27598 /* The GNU C library defines this for functions which it implements
27599 to always fail with ENOSYS. Some functions are actually named
27600 something starting with __ and the normal name is an alias. */
27601 #if defined __stub_$ac_func || defined __stub___$ac_func
27608 return $ac_func ();
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_link") 2>conftest.er1
27622 grep -v '^ *+' conftest.er1 >conftest.err
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } && {
27627 test -z "$ac_c_werror_flag" ||
27628 test ! -s conftest.err
27629 } && test -s conftest$ac_exeext &&
27630 $as_test_x conftest$ac_exeext; then
27631 eval "$as_ac_var=yes"
27633 echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27636 eval "$as_ac_var=no"
27639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27640 conftest$ac_exeext conftest.$ac_ext
27642 ac_res=`eval echo '${'$as_ac_var'}'`
27643 { echo "$as_me:$LINENO: result: $ac_res" >&5
27644 echo "${ECHO_T}$ac_res" >&6; }
27645 if test `eval echo '${'$as_ac_var'}'` = yes; then
27646 cat >>confdefs.h <<_ACEOF
27647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27650 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27651 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27652 if test "${ac_cv_func__doprnt+set}" = set; then
27653 echo $ECHO_N "(cached) $ECHO_C" >&6
27655 cat >conftest.$ac_ext <<_ACEOF
27658 cat confdefs.h >>conftest.$ac_ext
27659 cat >>conftest.$ac_ext <<_ACEOF
27660 /* end confdefs.h. */
27661 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27663 #define _doprnt innocuous__doprnt
27665 /* System header to define __stub macros and hopefully few prototypes,
27666 which can conflict with char _doprnt (); below.
27667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27668 <limits.h> exists even on freestanding compilers. */
27671 # include <limits.h>
27673 # include <assert.h>
27678 /* Override any GCC internal prototype to avoid an error.
27679 Use char because int might match the return type of a GCC
27680 builtin and then its argument prototype would still apply. */
27685 /* The GNU C library defines this for functions which it implements
27686 to always fail with ENOSYS. Some functions are actually named
27687 something starting with __ and the normal name is an alias. */
27688 #if defined __stub__doprnt || defined __stub____doprnt
27700 rm -f conftest.$ac_objext conftest$ac_exeext
27701 if { (ac_try="$ac_link"
27702 case "(($ac_try" in
27703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704 *) ac_try_echo=$ac_try;;
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707 (eval "$ac_link") 2>conftest.er1
27709 grep -v '^ *+' conftest.er1 >conftest.err
27711 cat conftest.err >&5
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); } && {
27714 test -z "$ac_c_werror_flag" ||
27715 test ! -s conftest.err
27716 } && test -s conftest$ac_exeext &&
27717 $as_test_x conftest$ac_exeext; then
27718 ac_cv_func__doprnt=yes
27720 echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27723 ac_cv_func__doprnt=no
27726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27727 conftest$ac_exeext conftest.$ac_ext
27729 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27730 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27731 if test $ac_cv_func__doprnt = yes; then
27733 cat >>confdefs.h <<\_ACEOF
27734 #define HAVE_DOPRNT 1
27772 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27773 gethostbyaddr gethostbyname gethostname getmntent \
27774 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27775 realpath rmdir select socket strcasecmp strchr strdup \
27776 strerror strrchr strtol strtoul sigprocmask
27778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27784 cat >conftest.$ac_ext <<_ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h. */
27790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27792 #define $ac_func innocuous_$ac_func
27794 /* System header to define __stub macros and hopefully few prototypes,
27795 which can conflict with char $ac_func (); below.
27796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27797 <limits.h> exists even on freestanding compilers. */
27800 # include <limits.h>
27802 # include <assert.h>
27807 /* Override any GCC internal prototype to avoid an error.
27808 Use char because int might match the return type of a GCC
27809 builtin and then its argument prototype would still apply. */
27814 /* The GNU C library defines this for functions which it implements
27815 to always fail with ENOSYS. Some functions are actually named
27816 something starting with __ and the normal name is an alias. */
27817 #if defined __stub_$ac_func || defined __stub___$ac_func
27824 return $ac_func ();
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (ac_try="$ac_link"
27831 case "(($ac_try" in
27832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833 *) ac_try_echo=$ac_try;;
27835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836 (eval "$ac_link") 2>conftest.er1
27838 grep -v '^ *+' conftest.er1 >conftest.err
27840 cat conftest.err >&5
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); } && {
27843 test -z "$ac_c_werror_flag" ||
27844 test ! -s conftest.err
27845 } && test -s conftest$ac_exeext &&
27846 $as_test_x conftest$ac_exeext; then
27847 eval "$as_ac_var=yes"
27849 echo "$as_me: failed program was:" >&5
27850 sed 's/^/| /' conftest.$ac_ext >&5
27852 eval "$as_ac_var=no"
27855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27856 conftest$ac_exeext conftest.$ac_ext
27858 ac_res=`eval echo '${'$as_ac_var'}'`
27859 { echo "$as_me:$LINENO: result: $ac_res" >&5
27860 echo "${ECHO_T}$ac_res" >&6; }
27861 if test `eval echo '${'$as_ac_var'}'` = yes; then
27862 cat >>confdefs.h <<_ACEOF
27863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27871 { echo "$as_me:$LINENO: checking for short" >&5
27872 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27873 if test "${ac_cv_type_short+set}" = set; then
27874 echo $ECHO_N "(cached) $ECHO_C" >&6
27876 cat >conftest.$ac_ext <<_ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h. */
27882 $ac_includes_default
27883 typedef short ac__type_new_;
27887 if ((ac__type_new_ *) 0)
27889 if (sizeof (ac__type_new_))
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_compile") 2>conftest.er1
27904 grep -v '^ *+' conftest.er1 >conftest.err
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } && {
27909 test -z "$ac_c_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest.$ac_objext; then
27912 ac_cv_type_short=yes
27914 echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27917 ac_cv_type_short=no
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27922 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27923 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27925 # The cast to long int works around a bug in the HP C Compiler
27926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27928 # This bug is HP SR number 8606223364.
27929 { echo "$as_me:$LINENO: checking size of short" >&5
27930 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27931 if test "${ac_cv_sizeof_short+set}" = set; then
27932 echo $ECHO_N "(cached) $ECHO_C" >&6
27934 if test "$cross_compiling" = yes; then
27935 # Depending upon the size, compute the lo and hi bounds.
27936 cat >conftest.$ac_ext <<_ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h. */
27942 $ac_includes_default
27943 typedef short ac__type_sizeof_;
27947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27954 rm -f conftest.$ac_objext
27955 if { (ac_try="$ac_compile"
27956 case "(($ac_try" in
27957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958 *) ac_try_echo=$ac_try;;
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961 (eval "$ac_compile") 2>conftest.er1
27963 grep -v '^ *+' conftest.er1 >conftest.err
27965 cat conftest.err >&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); } && {
27968 test -z "$ac_c_werror_flag" ||
27969 test ! -s conftest.err
27970 } && test -s conftest.$ac_objext; then
27973 cat >conftest.$ac_ext <<_ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h. */
27979 $ac_includes_default
27980 typedef short ac__type_sizeof_;
27984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27991 rm -f conftest.$ac_objext
27992 if { (ac_try="$ac_compile"
27993 case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_compile") 2>conftest.er1
28000 grep -v '^ *+' conftest.er1 >conftest.err
28002 cat conftest.err >&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); } && {
28005 test -z "$ac_c_werror_flag" ||
28006 test ! -s conftest.err
28007 } && test -s conftest.$ac_objext; then
28008 ac_hi=$ac_mid; break
28010 echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28013 ac_lo=`expr $ac_mid + 1`
28014 if test $ac_lo -le $ac_mid; then
28018 ac_mid=`expr 2 '*' $ac_mid + 1`
28021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28024 echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28027 cat >conftest.$ac_ext <<_ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h. */
28033 $ac_includes_default
28034 typedef short ac__type_sizeof_;
28038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28045 rm -f conftest.$ac_objext
28046 if { (ac_try="$ac_compile"
28047 case "(($ac_try" in
28048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28049 *) ac_try_echo=$ac_try;;
28051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28052 (eval "$ac_compile") 2>conftest.er1
28054 grep -v '^ *+' conftest.er1 >conftest.err
28056 cat conftest.err >&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); } && {
28059 test -z "$ac_c_werror_flag" ||
28060 test ! -s conftest.err
28061 } && test -s conftest.$ac_objext; then
28064 cat >conftest.$ac_ext <<_ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h. */
28070 $ac_includes_default
28071 typedef short ac__type_sizeof_;
28075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28082 rm -f conftest.$ac_objext
28083 if { (ac_try="$ac_compile"
28084 case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_compile") 2>conftest.er1
28091 grep -v '^ *+' conftest.er1 >conftest.err
28093 cat conftest.err >&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } && {
28096 test -z "$ac_c_werror_flag" ||
28097 test ! -s conftest.err
28098 } && test -s conftest.$ac_objext; then
28099 ac_lo=$ac_mid; break
28101 echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28104 ac_hi=`expr '(' $ac_mid ')' - 1`
28105 if test $ac_mid -le $ac_hi; then
28109 ac_mid=`expr 2 '*' $ac_mid`
28112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28115 echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28125 # Binary search between lo and hi bounds.
28126 while test "x$ac_lo" != "x$ac_hi"; do
28127 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28128 cat >conftest.$ac_ext <<_ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h. */
28134 $ac_includes_default
28135 typedef short ac__type_sizeof_;
28139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28146 rm -f conftest.$ac_objext
28147 if { (ac_try="$ac_compile"
28148 case "(($ac_try" in
28149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150 *) ac_try_echo=$ac_try;;
28152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28153 (eval "$ac_compile") 2>conftest.er1
28155 grep -v '^ *+' conftest.er1 >conftest.err
28157 cat conftest.err >&5
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); } && {
28160 test -z "$ac_c_werror_flag" ||
28161 test ! -s conftest.err
28162 } && test -s conftest.$ac_objext; then
28165 echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.$ac_ext >&5
28168 ac_lo=`expr '(' $ac_mid ')' + 1`
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28174 ?*) ac_cv_sizeof_short=$ac_lo;;
28175 '') if test "$ac_cv_type_short" = yes; then
28176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28177 See \`config.log' for more details." >&5
28178 echo "$as_me: error: cannot compute sizeof (short)
28179 See \`config.log' for more details." >&2;}
28180 { (exit 77); exit 77; }; }
28182 ac_cv_sizeof_short=0
28186 cat >conftest.$ac_ext <<_ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h. */
28192 $ac_includes_default
28193 typedef short ac__type_sizeof_;
28194 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28195 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28197 #include <stdlib.h>
28202 FILE *f = fopen ("conftest.val", "w");
28205 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28207 long int i = longval ();
28208 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28210 fprintf (f, "%ld\n", i);
28214 unsigned long int i = ulongval ();
28215 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28217 fprintf (f, "%lu\n", i);
28219 return ferror (f) || fclose (f) != 0;
28225 rm -f conftest$ac_exeext
28226 if { (ac_try="$ac_link"
28227 case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_link") 2>&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28236 { (case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241 (eval "$ac_try") 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 ac_cv_sizeof_short=`cat conftest.val`
28247 echo "$as_me: program exited with status $ac_status" >&5
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 ( exit $ac_status )
28252 if test "$ac_cv_type_short" = yes; then
28253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28254 See \`config.log' for more details." >&5
28255 echo "$as_me: error: cannot compute sizeof (short)
28256 See \`config.log' for more details." >&2;}
28257 { (exit 77); exit 77; }; }
28259 ac_cv_sizeof_short=0
28262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28266 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28267 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28271 cat >>confdefs.h <<_ACEOF
28272 #define SIZEOF_SHORT $ac_cv_sizeof_short
28276 { echo "$as_me:$LINENO: checking for int" >&5
28277 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28278 if test "${ac_cv_type_int+set}" = set; then
28279 echo $ECHO_N "(cached) $ECHO_C" >&6
28281 cat >conftest.$ac_ext <<_ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h. */
28287 $ac_includes_default
28288 typedef int ac__type_new_;
28292 if ((ac__type_new_ *) 0)
28294 if (sizeof (ac__type_new_))
28300 rm -f conftest.$ac_objext
28301 if { (ac_try="$ac_compile"
28302 case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_compile") 2>conftest.er1
28309 grep -v '^ *+' conftest.er1 >conftest.err
28311 cat conftest.err >&5
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); } && {
28314 test -z "$ac_c_werror_flag" ||
28315 test ! -s conftest.err
28316 } && test -s conftest.$ac_objext; then
28319 echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28327 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28328 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28330 # The cast to long int works around a bug in the HP C Compiler
28331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28333 # This bug is HP SR number 8606223364.
28334 { echo "$as_me:$LINENO: checking size of int" >&5
28335 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28336 if test "${ac_cv_sizeof_int+set}" = set; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28339 if test "$cross_compiling" = yes; then
28340 # Depending upon the size, compute the lo and hi bounds.
28341 cat >conftest.$ac_ext <<_ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h. */
28347 $ac_includes_default
28348 typedef int ac__type_sizeof_;
28352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28359 rm -f conftest.$ac_objext
28360 if { (ac_try="$ac_compile"
28361 case "(($ac_try" in
28362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363 *) ac_try_echo=$ac_try;;
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366 (eval "$ac_compile") 2>conftest.er1
28368 grep -v '^ *+' conftest.er1 >conftest.err
28370 cat conftest.err >&5
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); } && {
28373 test -z "$ac_c_werror_flag" ||
28374 test ! -s conftest.err
28375 } && test -s conftest.$ac_objext; then
28378 cat >conftest.$ac_ext <<_ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h. */
28384 $ac_includes_default
28385 typedef int ac__type_sizeof_;
28389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28396 rm -f conftest.$ac_objext
28397 if { (ac_try="$ac_compile"
28398 case "(($ac_try" in
28399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400 *) ac_try_echo=$ac_try;;
28402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403 (eval "$ac_compile") 2>conftest.er1
28405 grep -v '^ *+' conftest.er1 >conftest.err
28407 cat conftest.err >&5
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } && {
28410 test -z "$ac_c_werror_flag" ||
28411 test ! -s conftest.err
28412 } && test -s conftest.$ac_objext; then
28413 ac_hi=$ac_mid; break
28415 echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28418 ac_lo=`expr $ac_mid + 1`
28419 if test $ac_lo -le $ac_mid; then
28423 ac_mid=`expr 2 '*' $ac_mid + 1`
28426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28432 cat >conftest.$ac_ext <<_ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h. */
28438 $ac_includes_default
28439 typedef int ac__type_sizeof_;
28443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28450 rm -f conftest.$ac_objext
28451 if { (ac_try="$ac_compile"
28452 case "(($ac_try" in
28453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454 *) ac_try_echo=$ac_try;;
28456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457 (eval "$ac_compile") 2>conftest.er1
28459 grep -v '^ *+' conftest.er1 >conftest.err
28461 cat conftest.err >&5
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); } && {
28464 test -z "$ac_c_werror_flag" ||
28465 test ! -s conftest.err
28466 } && test -s conftest.$ac_objext; then
28469 cat >conftest.$ac_ext <<_ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h. */
28475 $ac_includes_default
28476 typedef int ac__type_sizeof_;
28480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28487 rm -f conftest.$ac_objext
28488 if { (ac_try="$ac_compile"
28489 case "(($ac_try" in
28490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491 *) ac_try_echo=$ac_try;;
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494 (eval "$ac_compile") 2>conftest.er1
28496 grep -v '^ *+' conftest.er1 >conftest.err
28498 cat conftest.err >&5
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); } && {
28501 test -z "$ac_c_werror_flag" ||
28502 test ! -s conftest.err
28503 } && test -s conftest.$ac_objext; then
28504 ac_lo=$ac_mid; break
28506 echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28509 ac_hi=`expr '(' $ac_mid ')' - 1`
28510 if test $ac_mid -le $ac_hi; then
28514 ac_mid=`expr 2 '*' $ac_mid`
28517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530 # Binary search between lo and hi bounds.
28531 while test "x$ac_lo" != "x$ac_hi"; do
28532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28533 cat >conftest.$ac_ext <<_ACEOF
28536 cat confdefs.h >>conftest.$ac_ext
28537 cat >>conftest.$ac_ext <<_ACEOF
28538 /* end confdefs.h. */
28539 $ac_includes_default
28540 typedef int ac__type_sizeof_;
28544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28551 rm -f conftest.$ac_objext
28552 if { (ac_try="$ac_compile"
28553 case "(($ac_try" in
28554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555 *) ac_try_echo=$ac_try;;
28557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28558 (eval "$ac_compile") 2>conftest.er1
28560 grep -v '^ *+' conftest.er1 >conftest.err
28562 cat conftest.err >&5
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); } && {
28565 test -z "$ac_c_werror_flag" ||
28566 test ! -s conftest.err
28567 } && test -s conftest.$ac_objext; then
28570 echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28573 ac_lo=`expr '(' $ac_mid ')' + 1`
28576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28579 ?*) ac_cv_sizeof_int=$ac_lo;;
28580 '') if test "$ac_cv_type_int" = yes; then
28581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28582 See \`config.log' for more details." >&5
28583 echo "$as_me: error: cannot compute sizeof (int)
28584 See \`config.log' for more details." >&2;}
28585 { (exit 77); exit 77; }; }
28591 cat >conftest.$ac_ext <<_ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h. */
28597 $ac_includes_default
28598 typedef int ac__type_sizeof_;
28599 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28600 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28602 #include <stdlib.h>
28607 FILE *f = fopen ("conftest.val", "w");
28610 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28612 long int i = longval ();
28613 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28615 fprintf (f, "%ld\n", i);
28619 unsigned long int i = ulongval ();
28620 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28622 fprintf (f, "%lu\n", i);
28624 return ferror (f) || fclose (f) != 0;
28630 rm -f conftest$ac_exeext
28631 if { (ac_try="$ac_link"
28632 case "(($ac_try" in
28633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634 *) ac_try_echo=$ac_try;;
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637 (eval "$ac_link") 2>&5
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28641 { (case "(($ac_try" in
28642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28643 *) ac_try_echo=$ac_try;;
28645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28646 (eval "$ac_try") 2>&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28650 ac_cv_sizeof_int=`cat conftest.val`
28652 echo "$as_me: program exited with status $ac_status" >&5
28653 echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28656 ( exit $ac_status )
28657 if test "$ac_cv_type_int" = yes; then
28658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28659 See \`config.log' for more details." >&5
28660 echo "$as_me: error: cannot compute sizeof (int)
28661 See \`config.log' for more details." >&2;}
28662 { (exit 77); exit 77; }; }
28667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28671 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28672 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28676 cat >>confdefs.h <<_ACEOF
28677 #define SIZEOF_INT $ac_cv_sizeof_int
28681 { echo "$as_me:$LINENO: checking for long" >&5
28682 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28683 if test "${ac_cv_type_long+set}" = set; then
28684 echo $ECHO_N "(cached) $ECHO_C" >&6
28686 cat >conftest.$ac_ext <<_ACEOF
28689 cat confdefs.h >>conftest.$ac_ext
28690 cat >>conftest.$ac_ext <<_ACEOF
28691 /* end confdefs.h. */
28692 $ac_includes_default
28693 typedef long ac__type_new_;
28697 if ((ac__type_new_ *) 0)
28699 if (sizeof (ac__type_new_))
28705 rm -f conftest.$ac_objext
28706 if { (ac_try="$ac_compile"
28707 case "(($ac_try" in
28708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709 *) ac_try_echo=$ac_try;;
28711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712 (eval "$ac_compile") 2>conftest.er1
28714 grep -v '^ *+' conftest.er1 >conftest.err
28716 cat conftest.err >&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } && {
28719 test -z "$ac_c_werror_flag" ||
28720 test ! -s conftest.err
28721 } && test -s conftest.$ac_objext; then
28722 ac_cv_type_long=yes
28724 echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28732 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28733 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28735 # The cast to long int works around a bug in the HP C Compiler
28736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28738 # This bug is HP SR number 8606223364.
28739 { echo "$as_me:$LINENO: checking size of long" >&5
28740 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28741 if test "${ac_cv_sizeof_long+set}" = set; then
28742 echo $ECHO_N "(cached) $ECHO_C" >&6
28744 if test "$cross_compiling" = yes; then
28745 # Depending upon the size, compute the lo and hi bounds.
28746 cat >conftest.$ac_ext <<_ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h. */
28752 $ac_includes_default
28753 typedef long ac__type_sizeof_;
28757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28764 rm -f conftest.$ac_objext
28765 if { (ac_try="$ac_compile"
28766 case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_compile") 2>conftest.er1
28773 grep -v '^ *+' conftest.er1 >conftest.err
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } && {
28778 test -z "$ac_c_werror_flag" ||
28779 test ! -s conftest.err
28780 } && test -s conftest.$ac_objext; then
28783 cat >conftest.$ac_ext <<_ACEOF
28786 cat confdefs.h >>conftest.$ac_ext
28787 cat >>conftest.$ac_ext <<_ACEOF
28788 /* end confdefs.h. */
28789 $ac_includes_default
28790 typedef long ac__type_sizeof_;
28794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28801 rm -f conftest.$ac_objext
28802 if { (ac_try="$ac_compile"
28803 case "(($ac_try" in
28804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28805 *) ac_try_echo=$ac_try;;
28807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28808 (eval "$ac_compile") 2>conftest.er1
28810 grep -v '^ *+' conftest.er1 >conftest.err
28812 cat conftest.err >&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); } && {
28815 test -z "$ac_c_werror_flag" ||
28816 test ! -s conftest.err
28817 } && test -s conftest.$ac_objext; then
28818 ac_hi=$ac_mid; break
28820 echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28823 ac_lo=`expr $ac_mid + 1`
28824 if test $ac_lo -le $ac_mid; then
28828 ac_mid=`expr 2 '*' $ac_mid + 1`
28831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28834 echo "$as_me: failed program was:" >&5
28835 sed 's/^/| /' conftest.$ac_ext >&5
28837 cat >conftest.$ac_ext <<_ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28843 $ac_includes_default
28844 typedef long ac__type_sizeof_;
28848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28855 rm -f conftest.$ac_objext
28856 if { (ac_try="$ac_compile"
28857 case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_compile") 2>conftest.er1
28864 grep -v '^ *+' conftest.er1 >conftest.err
28866 cat conftest.err >&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } && {
28869 test -z "$ac_c_werror_flag" ||
28870 test ! -s conftest.err
28871 } && test -s conftest.$ac_objext; then
28874 cat >conftest.$ac_ext <<_ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h. */
28880 $ac_includes_default
28881 typedef long ac__type_sizeof_;
28885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28892 rm -f conftest.$ac_objext
28893 if { (ac_try="$ac_compile"
28894 case "(($ac_try" in
28895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896 *) ac_try_echo=$ac_try;;
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899 (eval "$ac_compile") 2>conftest.er1
28901 grep -v '^ *+' conftest.er1 >conftest.err
28903 cat conftest.err >&5
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } && {
28906 test -z "$ac_c_werror_flag" ||
28907 test ! -s conftest.err
28908 } && test -s conftest.$ac_objext; then
28909 ac_lo=$ac_mid; break
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28914 ac_hi=`expr '(' $ac_mid ')' - 1`
28915 if test $ac_mid -le $ac_hi; then
28919 ac_mid=`expr 2 '*' $ac_mid`
28922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28925 echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28935 # Binary search between lo and hi bounds.
28936 while test "x$ac_lo" != "x$ac_hi"; do
28937 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28938 cat >conftest.$ac_ext <<_ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h. */
28944 $ac_includes_default
28945 typedef long ac__type_sizeof_;
28949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28956 rm -f conftest.$ac_objext
28957 if { (ac_try="$ac_compile"
28958 case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_compile") 2>conftest.er1
28965 grep -v '^ *+' conftest.er1 >conftest.err
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } && {
28970 test -z "$ac_c_werror_flag" ||
28971 test ! -s conftest.err
28972 } && test -s conftest.$ac_objext; then
28975 echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28978 ac_lo=`expr '(' $ac_mid ')' + 1`
28981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28984 ?*) ac_cv_sizeof_long=$ac_lo;;
28985 '') if test "$ac_cv_type_long" = yes; then
28986 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28987 See \`config.log' for more details." >&5
28988 echo "$as_me: error: cannot compute sizeof (long)
28989 See \`config.log' for more details." >&2;}
28990 { (exit 77); exit 77; }; }
28992 ac_cv_sizeof_long=0
28996 cat >conftest.$ac_ext <<_ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h. */
29002 $ac_includes_default
29003 typedef long ac__type_sizeof_;
29004 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29005 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29007 #include <stdlib.h>
29012 FILE *f = fopen ("conftest.val", "w");
29015 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29017 long int i = longval ();
29018 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29020 fprintf (f, "%ld\n", i);
29024 unsigned long int i = ulongval ();
29025 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29027 fprintf (f, "%lu\n", i);
29029 return ferror (f) || fclose (f) != 0;
29035 rm -f conftest$ac_exeext
29036 if { (ac_try="$ac_link"
29037 case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_link") 2>&5
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29046 { (case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_try") 2>&5
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; }; then
29055 ac_cv_sizeof_long=`cat conftest.val`
29057 echo "$as_me: program exited with status $ac_status" >&5
29058 echo "$as_me: failed program was:" >&5
29059 sed 's/^/| /' conftest.$ac_ext >&5
29061 ( exit $ac_status )
29062 if test "$ac_cv_type_long" = yes; then
29063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29064 See \`config.log' for more details." >&5
29065 echo "$as_me: error: cannot compute sizeof (long)
29066 See \`config.log' for more details." >&2;}
29067 { (exit 77); exit 77; }; }
29069 ac_cv_sizeof_long=0
29072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29076 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29077 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29081 cat >>confdefs.h <<_ACEOF
29082 #define SIZEOF_LONG $ac_cv_sizeof_long
29086 { echo "$as_me:$LINENO: checking for size_t" >&5
29087 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29088 if test "${ac_cv_type_size_t+set}" = set; then
29089 echo $ECHO_N "(cached) $ECHO_C" >&6
29091 cat >conftest.$ac_ext <<_ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h. */
29097 $ac_includes_default
29098 typedef size_t ac__type_new_;
29102 if ((ac__type_new_ *) 0)
29104 if (sizeof (ac__type_new_))
29110 rm -f conftest.$ac_objext
29111 if { (ac_try="$ac_compile"
29112 case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_compile") 2>conftest.er1
29119 grep -v '^ *+' conftest.er1 >conftest.err
29121 cat conftest.err >&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); } && {
29124 test -z "$ac_c_werror_flag" ||
29125 test ! -s conftest.err
29126 } && test -s conftest.$ac_objext; then
29127 ac_cv_type_size_t=yes
29129 echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29132 ac_cv_type_size_t=no
29135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29137 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29138 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29140 # The cast to long int works around a bug in the HP C Compiler
29141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29143 # This bug is HP SR number 8606223364.
29144 { echo "$as_me:$LINENO: checking size of size_t" >&5
29145 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29146 if test "${ac_cv_sizeof_size_t+set}" = set; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 if test "$cross_compiling" = yes; then
29150 # Depending upon the size, compute the lo and hi bounds.
29151 cat >conftest.$ac_ext <<_ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h. */
29157 $ac_includes_default
29158 typedef size_t ac__type_sizeof_;
29162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29169 rm -f conftest.$ac_objext
29170 if { (ac_try="$ac_compile"
29171 case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_compile") 2>conftest.er1
29178 grep -v '^ *+' conftest.er1 >conftest.err
29180 cat conftest.err >&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); } && {
29183 test -z "$ac_c_werror_flag" ||
29184 test ! -s conftest.err
29185 } && test -s conftest.$ac_objext; then
29188 cat >conftest.$ac_ext <<_ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h. */
29194 $ac_includes_default
29195 typedef size_t ac__type_sizeof_;
29199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29206 rm -f conftest.$ac_objext
29207 if { (ac_try="$ac_compile"
29208 case "(($ac_try" in
29209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29210 *) ac_try_echo=$ac_try;;
29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213 (eval "$ac_compile") 2>conftest.er1
29215 grep -v '^ *+' conftest.er1 >conftest.err
29217 cat conftest.err >&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); } && {
29220 test -z "$ac_c_werror_flag" ||
29221 test ! -s conftest.err
29222 } && test -s conftest.$ac_objext; then
29223 ac_hi=$ac_mid; break
29225 echo "$as_me: failed program was:" >&5
29226 sed 's/^/| /' conftest.$ac_ext >&5
29228 ac_lo=`expr $ac_mid + 1`
29229 if test $ac_lo -le $ac_mid; then
29233 ac_mid=`expr 2 '*' $ac_mid + 1`
29236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29239 echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.$ac_ext >&5
29242 cat >conftest.$ac_ext <<_ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h. */
29248 $ac_includes_default
29249 typedef size_t ac__type_sizeof_;
29253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29260 rm -f conftest.$ac_objext
29261 if { (ac_try="$ac_compile"
29262 case "(($ac_try" in
29263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29264 *) ac_try_echo=$ac_try;;
29266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29267 (eval "$ac_compile") 2>conftest.er1
29269 grep -v '^ *+' conftest.er1 >conftest.err
29271 cat conftest.err >&5
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); } && {
29274 test -z "$ac_c_werror_flag" ||
29275 test ! -s conftest.err
29276 } && test -s conftest.$ac_objext; then
29279 cat >conftest.$ac_ext <<_ACEOF
29282 cat confdefs.h >>conftest.$ac_ext
29283 cat >>conftest.$ac_ext <<_ACEOF
29284 /* end confdefs.h. */
29285 $ac_includes_default
29286 typedef size_t ac__type_sizeof_;
29290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29297 rm -f conftest.$ac_objext
29298 if { (ac_try="$ac_compile"
29299 case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_compile") 2>conftest.er1
29306 grep -v '^ *+' conftest.er1 >conftest.err
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } && {
29311 test -z "$ac_c_werror_flag" ||
29312 test ! -s conftest.err
29313 } && test -s conftest.$ac_objext; then
29314 ac_lo=$ac_mid; break
29316 echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.$ac_ext >&5
29319 ac_hi=`expr '(' $ac_mid ')' - 1`
29320 if test $ac_mid -le $ac_hi; then
29324 ac_mid=`expr 2 '*' $ac_mid`
29327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29330 echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29340 # Binary search between lo and hi bounds.
29341 while test "x$ac_lo" != "x$ac_hi"; do
29342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29343 cat >conftest.$ac_ext <<_ACEOF
29346 cat confdefs.h >>conftest.$ac_ext
29347 cat >>conftest.$ac_ext <<_ACEOF
29348 /* end confdefs.h. */
29349 $ac_includes_default
29350 typedef size_t ac__type_sizeof_;
29354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29361 rm -f conftest.$ac_objext
29362 if { (ac_try="$ac_compile"
29363 case "(($ac_try" in
29364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365 *) ac_try_echo=$ac_try;;
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_compile") 2>conftest.er1
29370 grep -v '^ *+' conftest.er1 >conftest.err
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } && {
29375 test -z "$ac_c_werror_flag" ||
29376 test ! -s conftest.err
29377 } && test -s conftest.$ac_objext; then
29380 echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29383 ac_lo=`expr '(' $ac_mid ')' + 1`
29386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29389 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29390 '') if test "$ac_cv_type_size_t" = yes; then
29391 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29392 See \`config.log' for more details." >&5
29393 echo "$as_me: error: cannot compute sizeof (size_t)
29394 See \`config.log' for more details." >&2;}
29395 { (exit 77); exit 77; }; }
29397 ac_cv_sizeof_size_t=0
29401 cat >conftest.$ac_ext <<_ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h. */
29407 $ac_includes_default
29408 typedef size_t ac__type_sizeof_;
29409 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29410 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29412 #include <stdlib.h>
29417 FILE *f = fopen ("conftest.val", "w");
29420 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29422 long int i = longval ();
29423 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29425 fprintf (f, "%ld\n", i);
29429 unsigned long int i = ulongval ();
29430 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29432 fprintf (f, "%lu\n", i);
29434 return ferror (f) || fclose (f) != 0;
29440 rm -f conftest$ac_exeext
29441 if { (ac_try="$ac_link"
29442 case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_link") 2>&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29451 { (case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_try") 2>&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; }; then
29460 ac_cv_sizeof_size_t=`cat conftest.val`
29462 echo "$as_me: program exited with status $ac_status" >&5
29463 echo "$as_me: failed program was:" >&5
29464 sed 's/^/| /' conftest.$ac_ext >&5
29466 ( exit $ac_status )
29467 if test "$ac_cv_type_size_t" = yes; then
29468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29469 See \`config.log' for more details." >&5
29470 echo "$as_me: error: cannot compute sizeof (size_t)
29471 See \`config.log' for more details." >&2;}
29472 { (exit 77); exit 77; }; }
29474 ac_cv_sizeof_size_t=0
29477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29481 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29482 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29486 cat >>confdefs.h <<_ACEOF
29487 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29491 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29492 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29493 if test "${ac_cv_type_socklen_t+set}" = set; then
29494 echo $ECHO_N "(cached) $ECHO_C" >&6
29496 cat >conftest.$ac_ext <<_ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h. */
29502 $ac_includes_default
29503 typedef socklen_t ac__type_new_;
29507 if ((ac__type_new_ *) 0)
29509 if (sizeof (ac__type_new_))
29515 rm -f conftest.$ac_objext
29516 if { (ac_try="$ac_compile"
29517 case "(($ac_try" in
29518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519 *) ac_try_echo=$ac_try;;
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522 (eval "$ac_compile") 2>conftest.er1
29524 grep -v '^ *+' conftest.er1 >conftest.err
29526 cat conftest.err >&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } && {
29529 test -z "$ac_c_werror_flag" ||
29530 test ! -s conftest.err
29531 } && test -s conftest.$ac_objext; then
29532 ac_cv_type_socklen_t=yes
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29537 ac_cv_type_socklen_t=no
29540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29542 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29543 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29545 # The cast to long int works around a bug in the HP C Compiler
29546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29548 # This bug is HP SR number 8606223364.
29549 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29550 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29551 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29552 echo $ECHO_N "(cached) $ECHO_C" >&6
29554 if test "$cross_compiling" = yes; then
29555 # Depending upon the size, compute the lo and hi bounds.
29556 cat >conftest.$ac_ext <<_ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h. */
29562 $ac_includes_default
29563 typedef socklen_t ac__type_sizeof_;
29567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29574 rm -f conftest.$ac_objext
29575 if { (ac_try="$ac_compile"
29576 case "(($ac_try" in
29577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578 *) ac_try_echo=$ac_try;;
29580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581 (eval "$ac_compile") 2>conftest.er1
29583 grep -v '^ *+' conftest.er1 >conftest.err
29585 cat conftest.err >&5
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); } && {
29588 test -z "$ac_c_werror_flag" ||
29589 test ! -s conftest.err
29590 } && test -s conftest.$ac_objext; then
29593 cat >conftest.$ac_ext <<_ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h. */
29599 $ac_includes_default
29600 typedef socklen_t ac__type_sizeof_;
29604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29611 rm -f conftest.$ac_objext
29612 if { (ac_try="$ac_compile"
29613 case "(($ac_try" in
29614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29615 *) ac_try_echo=$ac_try;;
29617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29618 (eval "$ac_compile") 2>conftest.er1
29620 grep -v '^ *+' conftest.er1 >conftest.err
29622 cat conftest.err >&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); } && {
29625 test -z "$ac_c_werror_flag" ||
29626 test ! -s conftest.err
29627 } && test -s conftest.$ac_objext; then
29628 ac_hi=$ac_mid; break
29630 echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29633 ac_lo=`expr $ac_mid + 1`
29634 if test $ac_lo -le $ac_mid; then
29638 ac_mid=`expr 2 '*' $ac_mid + 1`
29641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29644 echo "$as_me: failed program was:" >&5
29645 sed 's/^/| /' conftest.$ac_ext >&5
29647 cat >conftest.$ac_ext <<_ACEOF
29650 cat confdefs.h >>conftest.$ac_ext
29651 cat >>conftest.$ac_ext <<_ACEOF
29652 /* end confdefs.h. */
29653 $ac_includes_default
29654 typedef socklen_t ac__type_sizeof_;
29658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29665 rm -f conftest.$ac_objext
29666 if { (ac_try="$ac_compile"
29667 case "(($ac_try" in
29668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669 *) ac_try_echo=$ac_try;;
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672 (eval "$ac_compile") 2>conftest.er1
29674 grep -v '^ *+' conftest.er1 >conftest.err
29676 cat conftest.err >&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); } && {
29679 test -z "$ac_c_werror_flag" ||
29680 test ! -s conftest.err
29681 } && test -s conftest.$ac_objext; then
29684 cat >conftest.$ac_ext <<_ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h. */
29690 $ac_includes_default
29691 typedef socklen_t ac__type_sizeof_;
29695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29702 rm -f conftest.$ac_objext
29703 if { (ac_try="$ac_compile"
29704 case "(($ac_try" in
29705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706 *) ac_try_echo=$ac_try;;
29708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709 (eval "$ac_compile") 2>conftest.er1
29711 grep -v '^ *+' conftest.er1 >conftest.err
29713 cat conftest.err >&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } && {
29716 test -z "$ac_c_werror_flag" ||
29717 test ! -s conftest.err
29718 } && test -s conftest.$ac_objext; then
29719 ac_lo=$ac_mid; break
29721 echo "$as_me: failed program was:" >&5
29722 sed 's/^/| /' conftest.$ac_ext >&5
29724 ac_hi=`expr '(' $ac_mid ')' - 1`
29725 if test $ac_mid -le $ac_hi; then
29729 ac_mid=`expr 2 '*' $ac_mid`
29732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29735 echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29745 # Binary search between lo and hi bounds.
29746 while test "x$ac_lo" != "x$ac_hi"; do
29747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29748 cat >conftest.$ac_ext <<_ACEOF
29751 cat confdefs.h >>conftest.$ac_ext
29752 cat >>conftest.$ac_ext <<_ACEOF
29753 /* end confdefs.h. */
29754 $ac_includes_default
29755 typedef socklen_t ac__type_sizeof_;
29759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29766 rm -f conftest.$ac_objext
29767 if { (ac_try="$ac_compile"
29768 case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_compile") 2>conftest.er1
29775 grep -v '^ *+' conftest.er1 >conftest.err
29777 cat conftest.err >&5
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); } && {
29780 test -z "$ac_c_werror_flag" ||
29781 test ! -s conftest.err
29782 } && test -s conftest.$ac_objext; then
29785 echo "$as_me: failed program was:" >&5
29786 sed 's/^/| /' conftest.$ac_ext >&5
29788 ac_lo=`expr '(' $ac_mid ')' + 1`
29791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29794 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29795 '') if test "$ac_cv_type_socklen_t" = yes; then
29796 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29797 See \`config.log' for more details." >&5
29798 echo "$as_me: error: cannot compute sizeof (socklen_t)
29799 See \`config.log' for more details." >&2;}
29800 { (exit 77); exit 77; }; }
29802 ac_cv_sizeof_socklen_t=0
29806 cat >conftest.$ac_ext <<_ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h. */
29812 $ac_includes_default
29813 typedef socklen_t ac__type_sizeof_;
29814 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29815 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29817 #include <stdlib.h>
29822 FILE *f = fopen ("conftest.val", "w");
29825 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29827 long int i = longval ();
29828 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29830 fprintf (f, "%ld\n", i);
29834 unsigned long int i = ulongval ();
29835 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29837 fprintf (f, "%lu\n", i);
29839 return ferror (f) || fclose (f) != 0;
29845 rm -f conftest$ac_exeext
29846 if { (ac_try="$ac_link"
29847 case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_link") 2>&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29856 { (case "(($ac_try" in
29857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29858 *) ac_try_echo=$ac_try;;
29860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29861 (eval "$ac_try") 2>&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; }; then
29865 ac_cv_sizeof_socklen_t=`cat conftest.val`
29867 echo "$as_me: program exited with status $ac_status" >&5
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ( exit $ac_status )
29872 if test "$ac_cv_type_socklen_t" = yes; then
29873 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29874 See \`config.log' for more details." >&5
29875 echo "$as_me: error: cannot compute sizeof (socklen_t)
29876 See \`config.log' for more details." >&2;}
29877 { (exit 77); exit 77; }; }
29879 ac_cv_sizeof_socklen_t=0
29882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29886 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29887 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29891 cat >>confdefs.h <<_ACEOF
29892 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29899 cat >>confdefs.h <<_ACEOF
29900 #define NFS_STATEDIR "$statedir"
29904 if test "x$cross_compiling" = "xno"; then
29905 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29906 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29907 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29908 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29910 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29911 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29912 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29913 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29931 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29933 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29935 AM_CFLAGS="$my_am_cflags"
29938 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29939 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29942 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"
29944 cat >confcache <<\_ACEOF
29945 # This file is a shell script that caches the results of configure
29946 # tests run on this system so they can be shared between configure
29947 # scripts and configure runs, see configure's option --config-cache.
29948 # It is not useful on other systems. If it contains results you don't
29949 # want to keep, you may remove or edit it.
29951 # config.status only pays attention to the cache file if you give it
29952 # the --recheck option to rerun configure.
29954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29956 # following values.
29960 # The following way of writing the cache mishandles newlines in values,
29961 # but we know of no workaround that is simple, portable, and efficient.
29962 # So, we kill variables containing newlines.
29963 # Ultrix sh set writes to stderr and can't be redirected directly,
29964 # and sets the high bit in the cache file unless we assign to the vars.
29966 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29967 eval ac_val=\$$ac_var
29971 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29972 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29975 _ | IFS | as_nl) ;; #(
29976 *) $as_unset $ac_var ;;
29982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29983 *${as_nl}ac_space=\ *)
29984 # `set' does not quote correctly, so add quotes (double-quote
29985 # substitution turns \\\\ into \\, and sed turns \\ into \).
29988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29991 # `set' quotes correctly as required by POSIX, so do not add quotes.
29992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30006 if test -w "$cache_file"; then
30007 test "x$cache_file" != "x/dev/null" &&
30008 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30009 echo "$as_me: updating cache $cache_file" >&6;}
30010 cat confcache >$cache_file
30012 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30013 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30019 # Let make expand exec_prefix.
30020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30022 DEFS=-DHAVE_CONFIG_H
30026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30027 # 1. Remove the extension, and $U if already installed.
30028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30029 ac_i=`echo "$ac_i" | sed "$ac_script"`
30030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30031 # will be set to the directory where LIBOBJS objects are built.
30032 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30033 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30035 LIBOBJS=$ac_libobjs
30037 LTLIBOBJS=$ac_ltlibobjs
30040 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30041 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30042 Usually this means the macro was only invoked conditionally." >&5
30043 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30044 Usually this means the macro was only invoked conditionally." >&2;}
30045 { (exit 1); exit 1; }; }
30047 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30048 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30049 Usually this means the macro was only invoked conditionally." >&5
30050 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30051 Usually this means the macro was only invoked conditionally." >&2;}
30052 { (exit 1); exit 1; }; }
30054 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30055 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30056 Usually this means the macro was only invoked conditionally." >&5
30057 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30058 Usually this means the macro was only invoked conditionally." >&2;}
30059 { (exit 1); exit 1; }; }
30061 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30062 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30063 Usually this means the macro was only invoked conditionally." >&5
30064 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30065 Usually this means the macro was only invoked conditionally." >&2;}
30066 { (exit 1); exit 1; }; }
30068 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30069 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30070 Usually this means the macro was only invoked conditionally." >&5
30071 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30072 Usually this means the macro was only invoked conditionally." >&2;}
30073 { (exit 1); exit 1; }; }
30075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30076 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30077 Usually this means the macro was only invoked conditionally." >&5
30078 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30079 Usually this means the macro was only invoked conditionally." >&2;}
30080 { (exit 1); exit 1; }; }
30082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30083 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30084 Usually this means the macro was only invoked conditionally." >&5
30085 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30086 Usually this means the macro was only invoked conditionally." >&2;}
30087 { (exit 1); exit 1; }; }
30089 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30090 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30091 Usually this means the macro was only invoked conditionally." >&5
30092 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30093 Usually this means the macro was only invoked conditionally." >&2;}
30094 { (exit 1); exit 1; }; }
30096 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30097 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30098 Usually this means the macro was only invoked conditionally." >&5
30099 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30100 Usually this means the macro was only invoked conditionally." >&2;}
30101 { (exit 1); exit 1; }; }
30104 : ${CONFIG_STATUS=./config.status}
30105 ac_clean_files_save=$ac_clean_files
30106 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30107 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30108 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30109 cat >$CONFIG_STATUS <<_ACEOF
30111 # Generated by $as_me.
30112 # Run this file to recreate the current configuration.
30113 # Compiler output produced by configure, useful for debugging
30114 # configure, is in config.log if it exists.
30117 ac_cs_recheck=false
30119 SHELL=\${CONFIG_SHELL-$SHELL}
30122 cat >>$CONFIG_STATUS <<\_ACEOF
30123 ## --------------------- ##
30124 ## M4sh Initialization. ##
30125 ## --------------------- ##
30127 # Be more Bourne compatible
30128 DUALCASE=1; export DUALCASE # for MKS sh
30129 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30132 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30133 # is contrary to our usage. Disable this feature.
30134 alias -g '${1+"$@"}'='"$@"'
30135 setopt NO_GLOB_SUBST
30137 case `(set -o) 2>/dev/null` in
30138 *posix*) set -o posix ;;
30147 # Avoid depending upon Character Ranges.
30148 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30149 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30150 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30151 as_cr_digits='0123456789'
30152 as_cr_alnum=$as_cr_Letters$as_cr_digits
30154 # The user is always right.
30155 if test "${PATH_SEPARATOR+set}" != set; then
30156 echo "#! /bin/sh" >conf$$.sh
30157 echo "exit 0" >>conf$$.sh
30159 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30167 # Support unset when possible.
30168 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30176 # We need space, tab and new line, in precisely that order. Quoting is
30177 # there to prevent editors from complaining about space-tab.
30178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30179 # splitting by setting IFS to empty value.)
30184 # Find who we are. Look in the path if we contain no directory separator.
30186 *[\\/]* ) as_myself=$0 ;;
30187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30188 for as_dir in $PATH
30191 test -z "$as_dir" && as_dir=.
30192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30198 # We did not find ourselves, most probably we were run as `sh COMMAND'
30199 # in which case we are not to be found in the path.
30200 if test "x$as_myself" = x; then
30203 if test ! -f "$as_myself"; then
30204 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30205 { (exit 1); exit 1; }
30208 # Work around bugs in pre-3.0 UWIN ksh.
30209 for as_var in ENV MAIL MAILPATH
30210 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30218 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30219 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30220 LC_TELEPHONE LC_TIME
30222 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30223 eval $as_var=C; export $as_var
30225 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30229 # Required to use basename.
30230 if expr a : '\(a\)' >/dev/null 2>&1 &&
30231 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30237 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30238 as_basename=basename
30244 # Name of the executable.
30245 as_me=`$as_basename -- "$0" ||
30246 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30247 X"$0" : 'X\(//\)$' \| \
30248 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30250 sed '/^.*\/\([^/][^/]*\)\/*$/{
30269 as_lineno_1=$LINENO
30270 as_lineno_2=$LINENO
30271 test "x$as_lineno_1" != "x$as_lineno_2" &&
30272 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30274 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30275 # uniformly replaced by the line number. The first 'sed' inserts a
30276 # line-number line after each line using $LINENO; the second 'sed'
30277 # does the real work. The second script uses 'N' to pair each
30278 # line-number line with the line containing $LINENO, and appends
30279 # trailing '-' during substitution so that $LINENO is not a special
30280 # case at line end.
30281 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30282 # scripts with optimization help from Paolo Bonzini. Blame Lee
30283 # E. McMahon (1931-1989) for sed's syntax. :-)
30295 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30298 ' >$as_me.lineno &&
30299 chmod +x "$as_me.lineno" ||
30300 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30301 { (exit 1); exit 1; }; }
30303 # Don't try to exec as it changes $[0], causing all sort of problems
30304 # (the dirname of $[0] is not the place where we might find the
30305 # original and so on. Autoconf is especially sensitive to this).
30306 . "./$as_me.lineno"
30307 # Exit status is that of the last command.
30312 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30318 ECHO_C= ECHO_N= ECHO_T=
30319 case `echo -n x` in
30321 case `echo 'x\c'` in
30322 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30329 if expr a : '\(a\)' >/dev/null 2>&1 &&
30330 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30336 rm -f conf$$ conf$$.exe conf$$.file
30337 if test -d conf$$.dir; then
30338 rm -f conf$$.dir/conf$$.file
30344 if ln -s conf$$.file conf$$ 2>/dev/null; then
30346 # ... but there are two gotchas:
30347 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30348 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30349 # In both cases, we have to default to `cp -p'.
30350 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30352 elif ln conf$$.file conf$$ 2>/dev/null; then
30357 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30358 rmdir conf$$.dir 2>/dev/null
30360 if mkdir -p . 2>/dev/null; then
30363 test -d ./-p && rmdir ./-p
30367 if test -x / >/dev/null 2>&1; then
30368 as_test_x='test -x'
30370 if ls -dL / >/dev/null 2>&1; then
30377 if test -d "$1"; then
30383 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30384 ???[sx]*):;;*)false;;esac;fi
30388 as_executable_p=$as_test_x
30390 # Sed expression to map a string onto a valid CPP name.
30391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30393 # Sed expression to map a string onto a valid variable name.
30394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30399 # Save the log message, to keep $[0] and so on meaningful, and to
30400 # report actual input values of CONFIG_FILES etc. instead of their
30401 # values after options handling.
30403 This file was extended by linux nfs-utils $as_me 1.1.2, which was
30404 generated by GNU Autoconf 2.61. Invocation command line was
30406 CONFIG_FILES = $CONFIG_FILES
30407 CONFIG_HEADERS = $CONFIG_HEADERS
30408 CONFIG_LINKS = $CONFIG_LINKS
30409 CONFIG_COMMANDS = $CONFIG_COMMANDS
30412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30417 cat >>$CONFIG_STATUS <<_ACEOF
30418 # Files that config.status was made for.
30419 config_files="$ac_config_files"
30420 config_headers="$ac_config_headers"
30421 config_commands="$ac_config_commands"
30425 cat >>$CONFIG_STATUS <<\_ACEOF
30427 \`$as_me' instantiates files from templates according to the
30428 current configuration.
30430 Usage: $0 [OPTIONS] [FILE]...
30432 -h, --help print this help, then exit
30433 -V, --version print version number and configuration settings, then exit
30434 -q, --quiet do not print progress messages
30435 -d, --debug don't remove temporary files
30436 --recheck update $as_me by reconfiguring in the same conditions
30437 --file=FILE[:TEMPLATE]
30438 instantiate the configuration file FILE
30439 --header=FILE[:TEMPLATE]
30440 instantiate the configuration header FILE
30442 Configuration files:
30445 Configuration headers:
30448 Configuration commands:
30451 Report bugs to <bug-autoconf@gnu.org>."
30454 cat >>$CONFIG_STATUS <<_ACEOF
30456 linux nfs-utils config.status 1.1.2
30457 configured by $0, generated by GNU Autoconf 2.61,
30458 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30460 Copyright (C) 2006 Free Software Foundation, Inc.
30461 This config.status script is free software; the Free Software Foundation
30462 gives unlimited permission to copy, distribute and modify it."
30470 cat >>$CONFIG_STATUS <<\_ACEOF
30471 # If no file are specified by the user, then we need to provide default
30472 # value. By we need to know if files were specified by the user.
30478 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30479 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30490 # Handling of the options.
30491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30493 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30494 echo "$ac_cs_version"; exit ;;
30495 --debug | --debu | --deb | --de | --d | -d )
30497 --file | --fil | --fi | --f )
30499 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30500 ac_need_defaults=false;;
30501 --header | --heade | --head | --hea )
30503 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30504 ac_need_defaults=false;;
30506 # Conflict between --help and --header
30507 { echo "$as_me: error: ambiguous option: $1
30508 Try \`$0 --help' for more information." >&2
30509 { (exit 1); exit 1; }; };;
30510 --help | --hel | -h )
30511 echo "$ac_cs_usage"; exit ;;
30512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30516 # This is an error.
30517 -*) { echo "$as_me: error: unrecognized option: $1
30518 Try \`$0 --help' for more information." >&2
30519 { (exit 1); exit 1; }; } ;;
30521 *) ac_config_targets="$ac_config_targets $1"
30522 ac_need_defaults=false ;;
30528 ac_configure_extra_args=
30530 if $ac_cs_silent; then
30532 ac_configure_extra_args="$ac_configure_extra_args --silent"
30536 cat >>$CONFIG_STATUS <<_ACEOF
30537 if \$ac_cs_recheck; then
30538 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30539 CONFIG_SHELL=$SHELL
30540 export CONFIG_SHELL
30541 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30545 cat >>$CONFIG_STATUS <<\_ACEOF
30549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30550 ## Running $as_me. ##
30556 cat >>$CONFIG_STATUS <<_ACEOF
30560 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30564 cat >>$CONFIG_STATUS <<\_ACEOF
30566 # Handling of arguments.
30567 for ac_config_target in $ac_config_targets
30569 case $ac_config_target in
30570 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30571 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30572 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30573 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30574 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30575 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30576 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30577 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30578 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30579 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30580 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30581 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30582 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30583 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30584 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30585 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30586 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30587 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30588 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30589 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30590 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30591 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30592 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30593 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30594 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30595 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30596 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30597 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30599 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30600 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30601 { (exit 1); exit 1; }; };;
30606 # If the user did not use the arguments to specify the items to instantiate,
30607 # then the envvar interface is used. Set only those that are not.
30608 # We use the long form for the default assignment because of an extremely
30609 # bizarre bug on SunOS 4.1.3.
30610 if $ac_need_defaults; then
30611 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30612 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30613 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30616 # Have a temporary directory for convenience. Make it in the build tree
30617 # simply because there is no reason against having it here, and in addition,
30618 # creating and moving files from /tmp can sometimes cause problems.
30619 # Hook for its removal unless debugging.
30620 # Note that there is a small window in which the directory will not be cleaned:
30621 # after its creation but before its name has been assigned to `$tmp'.
30625 trap 'exit_status=$?
30626 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30628 trap '{ (exit 1); exit 1; }' 1 2 13 15
30630 # Create a (secure) tmp directory for tmp files.
30633 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30634 test -n "$tmp" && test -d "$tmp"
30637 tmp=./conf$$-$RANDOM
30638 (umask 077 && mkdir "$tmp")
30641 echo "$me: cannot create a temporary directory in ." >&2
30642 { (exit 1); exit 1; }
30646 # Set up the sed scripts for CONFIG_FILES section.
30649 # No need to generate the scripts if there are no CONFIG_FILES.
30650 # This happens for instance when ./config.status config.h
30651 if test -n "$CONFIG_FILES"; then
30658 for ac_last_try in false false false false false :; do
30659 cat >conf$$subs.sed <<_ACEOF
30660 SHELL!$SHELL$ac_delim
30661 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30662 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30663 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30664 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30665 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30666 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30667 exec_prefix!$exec_prefix$ac_delim
30668 prefix!$prefix$ac_delim
30669 program_transform_name!$program_transform_name$ac_delim
30670 bindir!$bindir$ac_delim
30671 sbindir!$sbindir$ac_delim
30672 libexecdir!$libexecdir$ac_delim
30673 datarootdir!$datarootdir$ac_delim
30674 datadir!$datadir$ac_delim
30675 sysconfdir!$sysconfdir$ac_delim
30676 sharedstatedir!$sharedstatedir$ac_delim
30677 localstatedir!$localstatedir$ac_delim
30678 includedir!$includedir$ac_delim
30679 oldincludedir!$oldincludedir$ac_delim
30680 docdir!$docdir$ac_delim
30681 infodir!$infodir$ac_delim
30682 htmldir!$htmldir$ac_delim
30683 dvidir!$dvidir$ac_delim
30684 pdfdir!$pdfdir$ac_delim
30685 psdir!$psdir$ac_delim
30686 libdir!$libdir$ac_delim
30687 localedir!$localedir$ac_delim
30688 mandir!$mandir$ac_delim
30689 DEFS!$DEFS$ac_delim
30690 ECHO_C!$ECHO_C$ac_delim
30691 ECHO_N!$ECHO_N$ac_delim
30692 ECHO_T!$ECHO_T$ac_delim
30693 LIBS!$LIBS$ac_delim
30694 build_alias!$build_alias$ac_delim
30695 host_alias!$host_alias$ac_delim
30696 target_alias!$target_alias$ac_delim
30697 build!$build$ac_delim
30698 build_cpu!$build_cpu$ac_delim
30699 build_vendor!$build_vendor$ac_delim
30700 build_os!$build_os$ac_delim
30701 host!$host$ac_delim
30702 host_cpu!$host_cpu$ac_delim
30703 host_vendor!$host_vendor$ac_delim
30704 host_os!$host_os$ac_delim
30705 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30706 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30707 INSTALL_DATA!$INSTALL_DATA$ac_delim
30708 am__isrc!$am__isrc$ac_delim
30709 CYGPATH_W!$CYGPATH_W$ac_delim
30710 PACKAGE!$PACKAGE$ac_delim
30711 VERSION!$VERSION$ac_delim
30712 ACLOCAL!$ACLOCAL$ac_delim
30713 AUTOCONF!$AUTOCONF$ac_delim
30714 AUTOMAKE!$AUTOMAKE$ac_delim
30715 AUTOHEADER!$AUTOHEADER$ac_delim
30716 MAKEINFO!$MAKEINFO$ac_delim
30717 install_sh!$install_sh$ac_delim
30718 STRIP!$STRIP$ac_delim
30719 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30720 mkdir_p!$mkdir_p$ac_delim
30722 SET_MAKE!$SET_MAKE$ac_delim
30723 am__leading_dot!$am__leading_dot$ac_delim
30724 AMTAR!$AMTAR$ac_delim
30725 am__tar!$am__tar$ac_delim
30726 am__untar!$am__untar$ac_delim
30727 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30728 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30729 MAINT!$MAINT$ac_delim
30730 RELEASE!$RELEASE$ac_delim
30731 statedir!$statedir$ac_delim
30732 statduser!$statduser$ac_delim
30733 startstatd!$startstatd$ac_delim
30734 enable_nfsv3!$enable_nfsv3$ac_delim
30735 IDMAPD!$IDMAPD$ac_delim
30736 enable_nfsv4!$enable_nfsv4$ac_delim
30737 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30738 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30739 GSSD!$GSSD$ac_delim
30740 SVCGSSD!$SVCGSSD$ac_delim
30741 enable_gss!$enable_gss$ac_delim
30742 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30743 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30744 kprefix!$kprefix$ac_delim
30745 secure_statd!$secure_statd$ac_delim
30746 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30747 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30748 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30749 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30750 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30752 CFLAGS!$CFLAGS$ac_delim
30753 LDFLAGS!$LDFLAGS$ac_delim
30754 CPPFLAGS!$CPPFLAGS$ac_delim
30755 ac_ct_CC!$ac_ct_CC$ac_delim
30756 EXEEXT!$EXEEXT$ac_delim
30759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30761 elif $ac_last_try; then
30762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30764 { (exit 1); exit 1; }; }
30766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30770 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30771 if test -n "$ac_eof"; then
30772 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30773 ac_eof=`expr $ac_eof + 1`
30776 cat >>$CONFIG_STATUS <<_ACEOF
30777 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30782 s/^/s,@/; s/!/@,|#_!!_#|/
30785 s/'"$ac_delim"'$/,g/; t
30787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30788 ' >>$CONFIG_STATUS <conf$$subs.sed
30789 rm -f conf$$subs.sed
30790 cat >>$CONFIG_STATUS <<_ACEOF
30796 for ac_last_try in false false false false false :; do
30797 cat >conf$$subs.sed <<_ACEOF
30798 OBJEXT!$OBJEXT$ac_delim
30799 DEPDIR!$DEPDIR$ac_delim
30800 am__include!$am__include$ac_delim
30801 am__quote!$am__quote$ac_delim
30802 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30803 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30804 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30805 CCDEPMODE!$CCDEPMODE$ac_delim
30806 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30807 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30808 LIBWRAP!$LIBWRAP$ac_delim
30809 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30810 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30812 CXXFLAGS!$CXXFLAGS$ac_delim
30813 ac_ct_CXX!$ac_ct_CXX$ac_delim
30814 CXXDEPMODE!$CXXDEPMODE$ac_delim
30815 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30816 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30818 LN_S!$LN_S$ac_delim
30820 GREP!$GREP$ac_delim
30821 EGREP!$EGREP$ac_delim
30822 ECHO!$ECHO$ac_delim
30824 RANLIB!$RANLIB$ac_delim
30825 CXXCPP!$CXXCPP$ac_delim
30827 FFLAGS!$FFLAGS$ac_delim
30828 ac_ct_F77!$ac_ct_F77$ac_delim
30829 LIBTOOL!$LIBTOOL$ac_delim
30830 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30832 LIBNSL!$LIBNSL$ac_delim
30833 PKG_CONFIG!$PKG_CONFIG$ac_delim
30834 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30835 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30836 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
30837 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
30838 LIBSOCKET!$LIBSOCKET$ac_delim
30839 LIBCRYPT!$LIBCRYPT$ac_delim
30840 LIBBSD!$LIBBSD$ac_delim
30841 LIBBLKID!$LIBBLKID$ac_delim
30842 KRBDIR!$KRBDIR$ac_delim
30843 KRBLIBS!$KRBLIBS$ac_delim
30844 KRBCFLAGS!$KRBCFLAGS$ac_delim
30845 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30846 K5VERS!$K5VERS$ac_delim
30847 ALLOCA!$ALLOCA$ac_delim
30848 LIBOBJS!$LIBOBJS$ac_delim
30849 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30850 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30851 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30852 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30853 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30854 AM_CFLAGS!$AM_CFLAGS$ac_delim
30855 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30856 LTLIBOBJS!$LTLIBOBJS$ac_delim
30859 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
30861 elif $ac_last_try; then
30862 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30863 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30864 { (exit 1); exit 1; }; }
30866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30870 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30871 if test -n "$ac_eof"; then
30872 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30873 ac_eof=`expr $ac_eof + 1`
30876 cat >>$CONFIG_STATUS <<_ACEOF
30877 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30881 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30882 s/^/s,@/; s/!/@,|#_!!_#|/
30885 s/'"$ac_delim"'$/,g/; t
30887 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30888 ' >>$CONFIG_STATUS <conf$$subs.sed
30889 rm -f conf$$subs.sed
30890 cat >>$CONFIG_STATUS <<_ACEOF
30897 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30898 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30899 # trailing colons and then remove the whole line if VPATH becomes empty
30900 # (actually we leave an empty line to preserve line numbers).
30901 if test "x$srcdir" = x.; then
30902 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30903 s/:*\$(srcdir):*/:/
30904 s/:*\${srcdir}:*/:/
30906 s/^\([^=]*=[ ]*\):*/\1/
30912 cat >>$CONFIG_STATUS <<\_ACEOF
30913 fi # test -n "$CONFIG_FILES"
30916 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30919 :[FHLC]) ac_mode=$ac_tag; continue;;
30921 case $ac_mode$ac_tag in
30923 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30924 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30925 { (exit 1); exit 1; }; };;
30926 :[FH]-) ac_tag=-:-;;
30927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30944 -) ac_f="$tmp/stdin";;
30945 *) # Look for the file first in the build tree, then in the source tree
30946 # (if the path is not absolute). The absolute path cannot be DOS-style,
30947 # because $ac_f cannot contain `:'.
30951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30953 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30954 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30955 { (exit 1); exit 1; }; };;
30957 ac_file_inputs="$ac_file_inputs $ac_f"
30960 # Let's still pretend it is `configure' which instantiates (i.e., don't
30961 # use $as_me), people would be surprised to read:
30962 # /* config.h. Generated by config.status. */
30963 configure_input="Generated from "`IFS=:
30964 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30965 if test x"$ac_file" != x-; then
30966 configure_input="$ac_file. $configure_input"
30967 { echo "$as_me:$LINENO: creating $ac_file" >&5
30968 echo "$as_me: creating $ac_file" >&6;}
30972 *:-:* | *:-) cat >"$tmp/stdin";;
30977 ac_dir=`$as_dirname -- "$ac_file" ||
30978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30979 X"$ac_file" : 'X\(//\)[^/]' \| \
30980 X"$ac_file" : 'X\(//\)$' \| \
30981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30987 /^X\(\/\/\)[^/].*/{
31002 -*) as_dir=./$as_dir;;
31004 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31008 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31009 *) as_qdir=$as_dir;;
31011 as_dirs="'$as_qdir' $as_dirs"
31012 as_dir=`$as_dirname -- "$as_dir" ||
31013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31014 X"$as_dir" : 'X\(//\)[^/]' \| \
31015 X"$as_dir" : 'X\(//\)$' \| \
31016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31022 /^X\(\/\/\)[^/].*/{
31035 test -d "$as_dir" && break
31037 test -z "$as_dirs" || eval "mkdir $as_dirs"
31038 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31039 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31040 { (exit 1); exit 1; }; }; }
31044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31047 # A ".." for each directory in $ac_dir_suffix.
31048 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31049 case $ac_top_builddir_sub in
31050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31054 ac_abs_top_builddir=$ac_pwd
31055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31056 # for backward compatibility:
31057 ac_top_builddir=$ac_top_build_prefix
31060 .) # We are building in place.
31062 ac_top_srcdir=$ac_top_builddir_sub
31063 ac_abs_top_srcdir=$ac_pwd ;;
31064 [\\/]* | ?:[\\/]* ) # Absolute name.
31065 ac_srcdir=$srcdir$ac_dir_suffix;
31066 ac_top_srcdir=$srcdir
31067 ac_abs_top_srcdir=$srcdir ;;
31068 *) # Relative name.
31069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31070 ac_top_srcdir=$ac_top_build_prefix$srcdir
31071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31083 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31084 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31086 ac_MKDIR_P=$MKDIR_P
31088 [\\/$]* | ?:[\\/]* ) ;;
31089 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31093 cat >>$CONFIG_STATUS <<\_ACEOF
31094 # If the template does not know about datarootdir, expand it.
31095 # FIXME: This hack should be removed a few years after 2.60.
31096 ac_datarootdir_hack=; ac_datarootdir_seen=
31098 case `sed -n '/datarootdir/ {
31107 ' $ac_file_inputs` in
31108 *datarootdir*) ac_datarootdir_seen=yes;;
31109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31110 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31111 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31113 cat >>$CONFIG_STATUS <<_ACEOF
31114 ac_datarootdir_hack='
31115 s&@datadir@&$datadir&g
31116 s&@docdir@&$docdir&g
31117 s&@infodir@&$infodir&g
31118 s&@localedir@&$localedir&g
31119 s&@mandir@&$mandir&g
31120 s&\\\${datarootdir}&$datarootdir&g' ;;
31124 # Neutralize VPATH when `$srcdir' = `.'.
31125 # Shell code in configure.ac might set extrasub.
31126 # FIXME: do we really want to maintain this feature?
31127 cat >>$CONFIG_STATUS <<_ACEOF
31131 cat >>$CONFIG_STATUS <<\_ACEOF
31133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31134 s&@configure_input@&$configure_input&;t t
31135 s&@top_builddir@&$ac_top_builddir_sub&;t t
31136 s&@srcdir@&$ac_srcdir&;t t
31137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31138 s&@top_srcdir@&$ac_top_srcdir&;t t
31139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31140 s&@builddir@&$ac_builddir&;t t
31141 s&@abs_builddir@&$ac_abs_builddir&;t t
31142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31143 s&@INSTALL@&$ac_INSTALL&;t t
31144 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31145 $ac_datarootdir_hack
31146 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31149 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31151 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31152 which seems to be undefined. Please make sure it is defined." >&5
31153 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31154 which seems to be undefined. Please make sure it is defined." >&2;}
31158 -) cat "$tmp/out"; rm -f "$tmp/out";;
31159 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31168 # Transform confdefs.h into a sed script `conftest.defines', that
31169 # substitutes the proper values into config.h.in to produce config.h.
31170 rm -f conftest.defines conftest.tail
31171 # First, append a space to every undef/define line, to ease matching.
31172 echo 's/$/ /' >conftest.defines
31173 # Then, protect against being on the right side of a sed subst, or in
31174 # an unquoted here document, in config.status. If some macros were
31175 # called several times there might be several #defines for the same
31176 # symbol, which is useless. But do not sort them, since the last
31177 # AC_DEFINE must be honored.
31178 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31179 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31180 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31181 # PARAMS is the parameter list in the macro definition--in most cases, it's
31182 # just an empty string.
31183 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31184 ac_dB='\\)[ (].*,\\1define\\2'
31192 s/^[ ]*#[ ]*define[ ][ ]*//
31197 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31198 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31199 ' >>conftest.defines
31201 # Remove the space that was appended to ease matching.
31202 # Then replace #undef with comments. This is necessary, for
31203 # example, in the case of _POSIX_SOURCE, which is predefined and required
31204 # on some systems where configure will not decide to define it.
31205 # (The regexp can be short, since the line contains either #define or #undef.)
31207 s,^[ #]*u.*,/* & */,' >>conftest.defines
31209 # Break up conftest.defines:
31210 ac_max_sed_lines=50
31212 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31213 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31214 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31216 ac_in='$ac_file_inputs'
31217 ac_out='"$tmp/out1"'
31218 ac_nxt='"$tmp/out2"'
31222 # Write a here document:
31223 cat >>$CONFIG_STATUS <<_ACEOF
31224 # First, check the format of the line:
31225 cat >"\$tmp/defines.sed" <<\\CEOF
31226 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31227 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31231 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31233 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31234 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31235 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31236 grep . conftest.tail >/dev/null || break
31237 rm -f conftest.defines
31238 mv conftest.tail conftest.defines
31240 rm -f conftest.defines conftest.tail
31242 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31243 cat >>$CONFIG_STATUS <<\_ACEOF
31244 if test x"$ac_file" != x-; then
31245 echo "/* $configure_input */" >"$tmp/config.h"
31246 cat "$ac_result" >>"$tmp/config.h"
31247 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31248 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31249 echo "$as_me: $ac_file is unchanged" >&6;}
31252 mv "$tmp/config.h" $ac_file
31255 echo "/* $configure_input */"
31259 # Compute $ac_file's index in $config_headers.
31261 for _am_header in $config_headers :; do
31262 case $_am_header in
31263 $ac_file | $ac_file:* )
31266 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31269 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31270 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31271 X$ac_file : 'X\(//\)[^/]' \| \
31272 X$ac_file : 'X\(//\)$' \| \
31273 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31279 /^X\(\/\/\)[^/].*/{
31291 s/.*/./; q'`/stamp-h$_am_stamp_count
31294 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31295 echo "$as_me: executing $ac_file commands" >&6;}
31300 case $ac_file$ac_mode in
31301 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31302 # Strip MF so we end up with the name of the file.
31303 mf=`echo "$mf" | sed -e 's/:.*$//'`
31304 # Check whether this is an Automake generated Makefile or not.
31305 # We used to match only the files named `Makefile.in', but
31306 # some people rename them; so instead we look at the file content.
31307 # Grep'ing the first line is not enough: some people post-process
31308 # each Makefile.in and add a new line on top of each file to say so.
31309 # Grep'ing the whole file is not good either: AIX grep has a line
31310 # limit of 2048, but all sed's we know have understand at least 4000.
31311 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
31312 dirpart=`$as_dirname -- "$mf" ||
31313 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31314 X"$mf" : 'X\(//\)[^/]' \| \
31315 X"$mf" : 'X\(//\)$' \| \
31316 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31322 /^X\(\/\/\)[^/].*/{
31338 # Extract the definition of DEPDIR, am__include, and am__quote
31339 # from the Makefile without running `make'.
31340 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31341 test -z "$DEPDIR" && continue
31342 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31343 test -z "am__include" && continue
31344 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31345 # When using ansi2knr, U may be empty or an underscore; expand it
31346 U=`sed -n 's/^U = //p' < "$mf"`
31347 # Find all dependency output files, they are included files with
31348 # $(DEPDIR) in their names. We invoke sed twice because it is the
31349 # simplest approach to changing $(DEPDIR) to its actual value in the
31351 for file in `sed -n "
31352 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31353 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31354 # Make sure the directory exists.
31355 test -f "$dirpart/$file" && continue
31356 fdir=`$as_dirname -- "$file" ||
31357 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31358 X"$file" : 'X\(//\)[^/]' \| \
31359 X"$file" : 'X\(//\)$' \| \
31360 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31366 /^X\(\/\/\)[^/].*/{
31379 { as_dir=$dirpart/$fdir
31381 -*) as_dir=./$as_dir;;
31383 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31387 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31388 *) as_qdir=$as_dir;;
31390 as_dirs="'$as_qdir' $as_dirs"
31391 as_dir=`$as_dirname -- "$as_dir" ||
31392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31393 X"$as_dir" : 'X\(//\)[^/]' \| \
31394 X"$as_dir" : 'X\(//\)$' \| \
31395 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31401 /^X\(\/\/\)[^/].*/{
31414 test -d "$as_dir" && break
31416 test -z "$as_dirs" || eval "mkdir $as_dirs"
31417 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31418 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31419 { (exit 1); exit 1; }; }; }
31420 # echo "creating $dirpart/$file"
31421 echo '# dummy' > "$dirpart/$file"
31430 { (exit 0); exit 0; }
31432 chmod +x $CONFIG_STATUS
31433 ac_clean_files=$ac_clean_files_save
31436 # configure is writing to config.log, and then calls config.status.
31437 # config.status does its own redirection, appending to config.log.
31438 # Unfortunately, on DOS this fails, as config.log is still kept open
31439 # by configure, so config.status won't be able to write to it; its
31440 # output is simply discarded. So we exec the FD to /dev/null,
31441 # effectively closing config.log, so it can be properly (re)opened and
31442 # appended to by config.status. When coming back to configure, we
31443 # need to make the FD available again.
31444 if test "$no_create" != yes; then
31446 ac_config_status_args=
31447 test "$silent" = yes &&
31448 ac_config_status_args="$ac_config_status_args --quiet"
31450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31453 # would make configure fail if this is the last instruction.
31454 $ac_cs_success || { (exit 1); exit 1; }