2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.4.
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.4'
732 PACKAGE_STRING='linux nfs-utils 1.1.4'
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
932 ac_precious_vars='build_alias
954 # Initialize some variables set by options.
956 ac_init_version=false
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
966 program_transform_name=s,x,x,
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1012 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1042 -datadir | --datadir | --datadi | --datad)
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1054 -disable-* | --disable-*)
1055 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1061 eval enable_$ac_feature=no ;;
1063 -docdir | --docdir | --docdi | --doc | --do)
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1073 -enable-* | --enable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080 eval enable_$ac_feature=\$ac_optarg ;;
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 htmldir=$ac_optarg ;;
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1125 -libdir | --libdir | --libdi | --libd)
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1216 -psdir | --psdir | --psdi | --psd | --ps)
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 sbindir=$ac_optarg ;;
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 sharedstatedir=$ac_optarg ;;
1242 -site | --site | --sit)
1244 -site=* | --site=* | --sit=*)
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1271 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=\$ac_optarg ;;
1279 -without-* | --without-*)
1280 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1286 eval with_$ac_package=no ;;
1289 # Obsolete; use --with-x.
1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293 | --x-incl | --x-inc | --x-in | --x-i)
1294 ac_prev=x_includes ;;
1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297 x_includes=$ac_optarg ;;
1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301 ac_prev=x_libraries ;;
1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304 x_libraries=$ac_optarg ;;
1306 -*) { echo "$as_me: error: unrecognized option: $ac_option
1307 Try \`$0 --help' for more information." >&2
1308 { (exit 1); exit 1; }; }
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1315 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1316 { (exit 1); exit 1; }; }
1317 eval $ac_envvar=\$ac_optarg
1318 export $ac_envvar ;;
1321 # FIXME: should be removed in autoconf 3.0.
1322 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331 if test -n "$ac_prev"; then
1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333 { echo "$as_me: error: missing argument to $ac_option" >&2
1334 { (exit 1); exit 1; }; }
1337 # Be sure to have absolute directory names.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val=\$$ac_var
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1349 { (exit 1); exit 1; }; }
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1357 target=$target_alias
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
1363 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1364 If a cross compiler is detected then cross compile mode will be used." >&2
1365 elif test "x$build_alias" != "x$host_alias"; then
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373 test "$silent" = yes && exec 6>/dev/null
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379 { echo "$as_me: error: Working directory cannot be determined" >&2
1380 { (exit 1); exit 1; }; }
1381 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382 { echo "$as_me: error: pwd does not report name of working directory" >&2
1383 { (exit 1); exit 1; }; }
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$0" ||
1391 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$0" : 'X\(//\)[^/]' \| \
1393 X"$0" : 'X\(//\)$' \| \
1394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1418 ac_srcdir_defaulted=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1423 { (exit 1); exit 1; }; }
1425 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1428 { (exit 1); exit 1; }; }
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 # Report the --help message.
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1454 \`configure' configures linux nfs-utils 1.1.4 to adapt to many kinds of systems.
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1461 Defaults for the options are specified in brackets.
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1485 For better control, use the options below.
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of linux nfs-utils 1.1.4:";;
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-maintainer-mode enable make rules and dependencies not useful
1532 (and sometimes confusing) to the casual installer
1533 --enable-nfsv3 enable support for NFSv3 [default=yes]
1534 --enable-nfsv4 enable support for NFSv4 [default=yes]
1535 --enable-gss enable support for rpcsec_gss [default=yes]
1536 --enable-kprefix install progs as rpc.knfsd etc
1537 --without-uuid Exclude uuid support and so avoid possibly buggy
1539 --enable-mount Create mount.nfs and don't use the util-linux
1540 mount(8) functionality. [default=yes]
1541 --enable-ipv6 enable support for IPv6 [default=no]
1542 --disable-dependency-tracking speeds up one-time build
1543 --enable-dependency-tracking do not reject slow dependency extractors
1544 --disable-largefile omit support for large files
1545 --enable-shared[=PKGS] build shared libraries [default=yes]
1546 --enable-static[=PKGS] build static libraries [default=yes]
1547 --enable-fast-install[=PKGS]
1548 optimize for fast installation [default=yes]
1549 --disable-libtool-lock avoid locking (might break parallel builds)
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-release=XXX set release to XXX [1]
1555 --with-statedir=/foo use state dir /foo /var/lib/nfs
1556 --with-statduser=rpcuser
1557 statd to run under [rpcuser or nobody]
1558 --with-start-statd=scriptname
1559 When an nfs filesystems is mounted with locking, run
1561 --with-rpcgen=internal use internal rpcgen instead of system one
1562 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1563 (optionally in PATH)
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-pic try to use only PIC/non-PIC objects [default=use
1567 --with-tags[=TAGS] include additional configurations [automatic]
1568 --with-krb5=DIR use Kerberos v5 installation in DIR
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CXX C++ compiler command
1579 CXXFLAGS C++ compiler flags
1581 CXXCPP C++ preprocessor
1582 F77 Fortran 77 compiler command
1583 FFLAGS Fortran 77 compiler flags
1584 PKG_CONFIG path to pkg-config utility
1586 C compiler flags for RPCSECGSS, overriding pkg-config
1588 linker flags for RPCSECGSS, overriding pkg-config
1590 C compiler flags for GSSGLUE, overriding pkg-config
1592 linker flags for GSSGLUE, overriding pkg-config
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 Report bugs to <linux-nfs@vger.kernel.org>.
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" || continue
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1625 .) # We are building in place.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1658 linux nfs-utils configure 1.1.4
1659 generated by GNU Autoconf 2.61
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1668 cat >config.log <<_ACEOF
1669 This file contains any messages produced by compilers while
1670 running configure, to aid debugging if configure makes a mistake.
1672 It was created by linux nfs-utils $as_me 1.1.4, which was
1673 generated by GNU Autoconf 2.61. Invocation command line was
1685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1694 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1695 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1698 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1699 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1700 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 echo "PATH: $as_dir"
1725 # Keep a trace of the command line.
1726 # Strip out --no-create and --no-recursion so they do not pile up.
1727 # Strip out --silent because we don't want to record it for future runs.
1728 # Also quote any args containing shell meta-characters.
1729 # Make two passes to allow for proper duplicate-argument suppression.
1733 ac_must_keep_next=false
1739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741 | -silent | --silent | --silen | --sile | --sil)
1744 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1749 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750 if test $ac_must_keep_next = true; then
1751 ac_must_keep_next=false # Got value, back to normal.
1754 *=* | --config-cache | -C | -disable-* | --disable-* \
1755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757 | -with-* | --with-* | -without-* | --without-* | --x)
1758 case "$ac_configure_args0 " in
1759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 -* ) ac_must_keep_next=true ;;
1765 ac_configure_args="$ac_configure_args '$ac_arg'"
1770 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1773 # When interrupted or exit'd, cleanup temporary files, and complete
1774 # config.log. We remove comments because anyway the quotes in there
1775 # would cause problems or look ugly.
1776 # WARNING: Use '\'' to represent an apostrophe within the trap.
1777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778 trap 'exit_status=$?
1779 # Save into config.log some information that might help in debugging.
1784 ## ---------------- ##
1785 ## Cache variables. ##
1786 ## ---------------- ##
1789 # The following way of writing the cache mishandles newlines in values,
1791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792 eval ac_val=\$$ac_var
1796 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1797 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800 _ | IFS | as_nl) ;; #(
1801 *) $as_unset $ac_var ;;
1806 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1807 *${as_nl}ac_space=\ *)
1809 "s/'\''/'\''\\\\'\'''\''/g;
1810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 ## ----------------- ##
1822 ## Output variables. ##
1823 ## ----------------- ##
1826 for ac_var in $ac_subst_vars
1828 eval ac_val=\$$ac_var
1830 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 echo "$ac_var='\''$ac_val'\''"
1836 if test -n "$ac_subst_files"; then
1838 ## ------------------- ##
1839 ## File substitutions. ##
1840 ## ------------------- ##
1843 for ac_var in $ac_subst_files
1845 eval ac_val=\$$ac_var
1847 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 echo "$ac_var='\''$ac_val'\''"
1854 if test -s confdefs.h; then
1864 test "$ac_signal" != 0 &&
1865 echo "$as_me: caught signal $ac_signal"
1866 echo "$as_me: exit $exit_status"
1868 rm -f core *.core core.conftest.* &&
1869 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872 for ac_signal in 1 2 13 15; do
1873 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1878 rm -f -r conftest* confdefs.h
1880 # Predefined preprocessor variables.
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_NAME "$PACKAGE_NAME"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_STRING "$PACKAGE_STRING"
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907 # Let the site file select an alternate cache file if it wants to.
1908 # Prefer explicitly selected file to automatically selected ones.
1909 if test -n "$CONFIG_SITE"; then
1910 set x "$CONFIG_SITE"
1911 elif test "x$prefix" != xNONE; then
1912 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1914 set x "$ac_default_prefix/share/config.site" \
1915 "$ac_default_prefix/etc/config.site"
1920 if test -r "$ac_site_file"; then
1921 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1922 echo "$as_me: loading site script $ac_site_file" >&6;}
1923 sed 's/^/| /' "$ac_site_file" >&5
1928 if test -r "$cache_file"; then
1929 # Some versions of bash will fail to source /dev/null (special
1930 # files actually), so we avoid doing that.
1931 if test -f "$cache_file"; then
1932 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1933 echo "$as_me: loading cache $cache_file" >&6;}
1935 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936 *) . "./$cache_file";;
1940 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1941 echo "$as_me: creating cache $cache_file" >&6;}
1945 # Check that the precious variables saved in the cache have kept the same
1947 ac_cache_corrupted=false
1948 for ac_var in $ac_precious_vars; do
1949 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1950 eval ac_new_set=\$ac_env_${ac_var}_set
1951 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1952 eval ac_new_val=\$ac_env_${ac_var}_value
1953 case $ac_old_set,$ac_new_set in
1955 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1959 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1960 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1964 if test "x$ac_old_val" != "x$ac_new_val"; then
1965 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1966 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1967 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1968 echo "$as_me: former value: $ac_old_val" >&2;}
1969 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1970 echo "$as_me: current value: $ac_new_val" >&2;}
1971 ac_cache_corrupted=:
1974 # Pass precious variables to config.status.
1975 if test "$ac_new_set" = set; then
1977 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 *) ac_arg=$ac_var=$ac_new_val ;;
1980 case " $ac_configure_args " in
1981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1982 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986 if $ac_cache_corrupted; then
1987 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991 { (exit 1); exit 1; }; }
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2027 if test -f "$ac_dir/install-sh"; then
2029 ac_install_sh="$ac_aux_dir/install-sh -c"
2031 elif test -f "$ac_dir/install.sh"; then
2033 ac_install_sh="$ac_aux_dir/install.sh -c"
2035 elif test -f "$ac_dir/shtool"; then
2037 ac_install_sh="$ac_aux_dir/shtool install -c"
2041 if test -z "$ac_aux_dir"; then
2042 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2043 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2044 { (exit 1); exit 1; }; }
2047 # These three variables are undocumented and unsupported,
2048 # and are intended to be withdrawn in a future Autoconf release.
2049 # They can cause serious problems if a builder's source tree is in a directory
2050 # whose full name contains unusual characters.
2051 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2052 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2053 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2056 # Make sure we can run config.sub.
2057 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2058 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2059 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2060 { (exit 1); exit 1; }; }
2062 { echo "$as_me:$LINENO: checking build system type" >&5
2063 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_build+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 ac_build_alias=$build_alias
2068 test "x$ac_build_alias" = x &&
2069 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2070 test "x$ac_build_alias" = x &&
2071 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2072 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2073 { (exit 1); exit 1; }; }
2074 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2075 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2077 { (exit 1); exit 1; }; }
2080 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2081 echo "${ECHO_T}$ac_cv_build" >&6; }
2082 case $ac_cv_build in
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2085 echo "$as_me: error: invalid value of canonical build" >&2;}
2086 { (exit 1); exit 1; }; };;
2089 ac_save_IFS=$IFS; IFS='-'
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2102 { echo "$as_me:$LINENO: checking host system type" >&5
2103 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_host+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test "x$host_alias" = x; then
2108 ac_cv_host=$ac_cv_build
2110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2111 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2112 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2113 { (exit 1); exit 1; }; }
2117 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2118 echo "${ECHO_T}$ac_cv_host" >&6; }
2121 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2122 echo "$as_me: error: invalid value of canonical host" >&2;}
2123 { (exit 1); exit 1; }; };;
2126 ac_save_IFS=$IFS; IFS='-'
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2136 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2140 am__api_version='1.10'
2142 # Find a good install program. We prefer a C program (faster),
2143 # so one script is as good as another. But avoid the broken or
2144 # incompatible versions:
2145 # SysV /etc/install, /usr/sbin/install
2146 # SunOS /usr/etc/install
2147 # IRIX /sbin/install
2149 # AmigaOS /C/install, which installs bootblocks on floppy discs
2150 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2153 # OS/2's system install, which has a completely different semantic
2154 # ./install, which can be erroneously created by make from ./install.sh.
2155 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2156 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2157 if test -z "$INSTALL"; then
2158 if test "${ac_cv_path_install+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 # Account for people who put trailing slashes in PATH elements.
2168 ./ | .// | /cC/* | \
2169 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2170 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2173 # OSF1 and SCO ODT 3.0 have their own names for install.
2174 # Don't use installbsd from OSF since it installs stuff as root
2176 for ac_prog in ginstall scoinst install; do
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2179 if test $ac_prog = install &&
2180 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181 # AIX install. It has an incompatible calling convention.
2183 elif test $ac_prog = install &&
2184 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2185 # program-specific install script used by HP pwplus--don't use.
2188 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2201 if test "${ac_cv_path_install+set}" = set; then
2202 INSTALL=$ac_cv_path_install
2204 # As a last resort, use the slow shell script. Don't cache a
2205 # value for INSTALL within a source directory, because that will
2206 # break other packages using the cache if that directory is
2207 # removed, or if the value is a relative name.
2208 INSTALL=$ac_install_sh
2211 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2212 echo "${ECHO_T}$INSTALL" >&6; }
2214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2215 # It thinks the first close brace ends the variable substitution.
2216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2222 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2223 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2226 echo timestamp > conftest.file
2227 # Do `set' in a subshell so we don't clobber the current shell's
2228 # arguments. Must try -L first in case configure is actually a
2229 # symlink; some systems play weird games with the mod time of symlinks
2230 # (eg FreeBSD returns the mod time of the symlink's containing
2233 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2234 if test "$*" = "X"; then
2236 set X `ls -t $srcdir/configure conftest.file`
2239 if test "$*" != "X $srcdir/configure conftest.file" \
2240 && test "$*" != "X conftest.file $srcdir/configure"; then
2242 # If neither matched, then we have a broken ls. This can happen
2243 # if, for instance, CONFIG_SHELL is bash and it inherits a
2244 # broken ls alias from the environment. This has actually
2245 # happened. Such a system could not be considered "sane".
2246 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2247 alias in your environment" >&5
2248 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2249 alias in your environment" >&2;}
2250 { (exit 1); exit 1; }; }
2253 test "$2" = conftest.file
2259 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2260 Check your system clock" >&5
2261 echo "$as_me: error: newly created file is older than distributed files!
2262 Check your system clock" >&2;}
2263 { (exit 1); exit 1; }; }
2265 { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2267 test "$program_prefix" != NONE &&
2268 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2269 # Use a double $ so make ignores it.
2270 test "$program_suffix" != NONE &&
2271 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2272 # Double any \ or $. echo might interpret backslashes.
2273 # By default was `s,x,x', remove it if useless.
2274 cat <<\_ACEOF >conftest.sed
2275 s/[\\$]/&&/g;s/;s,x,x,$//
2277 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2280 # expand $ac_aux_dir to an absolute path
2281 am_aux_dir=`cd $ac_aux_dir && pwd`
2283 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2284 # Use eval to expand $SHELL
2285 if eval "$MISSING --run true"; then
2286 am_missing_run="$MISSING --run "
2289 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2290 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2293 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2294 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2295 if test -z "$MKDIR_P"; then
2296 if test "${ac_cv_path_mkdir+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2303 test -z "$as_dir" && as_dir=.
2304 for ac_prog in mkdir gmkdir; do
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2307 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2308 'mkdir (GNU coreutils) '* | \
2309 'mkdir (coreutils) '* | \
2310 'mkdir (fileutils) '4.1*)
2311 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2321 if test "${ac_cv_path_mkdir+set}" = set; then
2322 MKDIR_P="$ac_cv_path_mkdir -p"
2324 # As a last resort, use the slow shell script. Don't cache a
2325 # value for MKDIR_P within a source directory, because that will
2326 # break other packages using the cache if that directory is
2327 # removed, or if the value is a relative name.
2328 test -d ./--version && rmdir ./--version
2329 MKDIR_P="$ac_install_sh -d"
2332 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2333 echo "${ECHO_T}$MKDIR_P" >&6; }
2337 [\\/$]* | ?:[\\/]*) ;;
2338 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2341 for ac_prog in gawk mawk nawk awk
2343 # Extract the first word of "$ac_prog", so it can be a program name with args.
2344 set dummy $ac_prog; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_AWK+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test -n "$AWK"; then
2351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_AWK="$ac_prog"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 if test -n "$AWK"; then
2372 { echo "$as_me:$LINENO: result: $AWK" >&5
2373 echo "${ECHO_T}$AWK" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2380 test -n "$AWK" && break
2383 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2384 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2385 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2386 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 cat >conftest.make <<\_ACEOF
2392 @echo '@@@%%%=$(MAKE)=@@@%%%'
2394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2395 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2397 eval ac_cv_prog_make_${ac_make}_set=yes;;
2399 eval ac_cv_prog_make_${ac_make}_set=no;;
2403 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2404 { echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6; }
2408 { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410 SET_MAKE="MAKE=${MAKE-make}"
2413 rm -rf .tst 2>/dev/null
2414 mkdir .tst 2>/dev/null
2415 if test -d .tst; then
2420 rmdir .tst 2>/dev/null
2422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2424 # is not polluted with repeated "-I."
2425 am__isrc=' -I$(srcdir)'
2426 # test to see if srcdir already configured
2427 if test -f $srcdir/config.status; then
2428 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2429 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2430 { (exit 1); exit 1; }; }
2434 # test whether we have cygpath
2435 if test -z "$CYGPATH_W"; then
2436 if (cygpath --version) >/dev/null 2>/dev/null; then
2437 CYGPATH_W='cygpath -w'
2444 # Define the identity of the package.
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE "$PACKAGE"
2454 cat >>confdefs.h <<_ACEOF
2455 #define VERSION "$VERSION"
2458 # Some tools Automake needs.
2460 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2463 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2466 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2469 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2472 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2474 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2476 # Installed binaries are usually stripped using `strip' when the user
2477 # run `make install-strip'. However `strip' might not be the right
2478 # tool to use in cross-compilation environments, therefore Automake
2479 # will honor the `STRIP' environment variable to overrule this program.
2480 if test "$cross_compiling" != no; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}strip; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_STRIP+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$STRIP"; then
2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 STRIP=$ac_cv_prog_STRIP
2510 if test -n "$STRIP"; then
2511 { echo "$as_me:$LINENO: result: $STRIP" >&5
2512 echo "${ECHO_T}$STRIP" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2520 if test -z "$ac_cv_prog_STRIP"; then
2522 # Extract the first word of "strip", so it can be a program name with args.
2523 set dummy strip; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$ac_ct_STRIP"; then
2530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_ac_ct_STRIP="strip"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550 if test -n "$ac_ct_STRIP"; then
2551 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2552 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2558 if test "x$ac_ct_STRIP" = x; then
2561 case $cross_compiling:$ac_tool_warned in
2563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet. If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&5
2566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet. If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2569 ac_tool_warned=yes ;;
2574 STRIP="$ac_cv_prog_STRIP"
2578 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2580 # We need awk for the "check" target. The system "awk" is bad on
2582 # Always define AMTAR for backward compatibility.
2584 AMTAR=${AMTAR-"${am_missing_run}tar"}
2586 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2594 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2595 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2596 # Check whether --enable-maintainer-mode was given.
2597 if test "${enable_maintainer_mode+set}" = set; then
2598 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2600 USE_MAINTAINER_MODE=no
2603 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2604 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2605 if test $USE_MAINTAINER_MODE = yes; then
2606 MAINTAINER_MODE_TRUE=
2607 MAINTAINER_MODE_FALSE='#'
2609 MAINTAINER_MODE_TRUE='#'
2610 MAINTAINER_MODE_FALSE=
2613 MAINT=$MAINTAINER_MODE_TRUE
2618 # Check whether --with-release was given.
2619 if test "${with_release+set}" = set; then
2620 withval=$with_release; RELEASE=$withval
2627 # Check whether --with-statedir was given.
2628 if test "${with_statedir+set}" = set; then
2629 withval=$with_statedir; statedir=$withval
2631 statedir=/var/lib/nfs
2636 # Check whether --with-statduser was given.
2637 if test "${with_statduser+set}" = set; then
2638 withval=$with_statduser; statduser=$withval
2640 if test "x$cross_compiling" = "xno"; then
2641 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2653 # Check whether --with-start-statd was given.
2654 if test "${with_start_statd+set}" = set; then
2655 withval=$with_start_statd; startstatd=$withval
2657 startstatd=/usr/sbin/start-statd
2663 cat >>confdefs.h <<_ACEOF
2664 #define START_STATD "$startstatd"
2667 # Check whether --enable-nfsv3 was given.
2668 if test "${enable_nfsv3+set}" = set; then
2669 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2674 if test "$enable_nfsv3" = yes; then
2676 cat >>confdefs.h <<\_ACEOF
2677 #define NFS3_SUPPORTED 1
2684 # Check whether --enable-nfsv4 was given.
2685 if test "${enable_nfsv4+set}" = set; then
2686 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2691 if test "$enable_nfsv4" = yes; then
2693 cat >>confdefs.h <<\_ACEOF
2694 #define NFS4_SUPPORTED 1
2704 if test "$enable_nfsv4" = "yes"; then
2706 CONFIG_NFSV4_FALSE='#'
2708 CONFIG_NFSV4_TRUE='#'
2712 # Check whether --enable-gss was given.
2713 if test "${enable_gss+set}" = set; then
2714 enableval=$enable_gss; enable_gss=$enableval
2719 if test "$enable_gss" = yes; then
2721 cat >>confdefs.h <<\_ACEOF
2722 #define GSS_SUPPORTED 1
2735 if test "$enable_gss" = "yes"; then
2737 CONFIG_GSS_FALSE='#'
2743 # Check whether --enable-kprefix was given.
2744 if test "${enable_kprefix+set}" = set; then
2745 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2752 # Check whether --with-rpcgen was given.
2753 if test "${with_rpcgen+set}" = set; then
2754 withval=$with_rpcgen; rpcgen_path=$withval
2760 if test "$rpcgen_path" == "yes"; then
2761 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2762 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2763 elif test "$rpcgen_path" != "internal"; then
2764 RPCGEN_PATH=$rpcgen_path
2767 if test "$RPCGEN_PATH" == ""; then
2769 CONFIG_RPCGEN_FALSE='#'
2771 CONFIG_RPCGEN_TRUE='#'
2772 CONFIG_RPCGEN_FALSE=
2775 # Check whether --enable-uuid was given.
2776 if test "${enable_uuid+set}" = set; then
2777 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2779 choose_blkid=default
2782 # Check whether --enable-mount was given.
2783 if test "${enable_mount+set}" = set; then
2784 enableval=$enable_mount; enable_mount=$enableval
2789 if test "$enable_mount" = "yes"; then
2791 CONFIG_MOUNT_FALSE='#'
2793 CONFIG_MOUNT_TRUE='#'
2797 # Check whether --enable-ipv6 was given.
2798 if test "${enable_ipv6+set}" = set; then
2799 enableval=$enable_ipv6; enable_ipv6=$enableval
2804 if test "$enable_ipv6" = yes; then
2806 cat >>confdefs.h <<\_ACEOF
2807 #define IPV6_SUPPORTED 1
2814 if test "$enable_ipv6" = "yes"; then
2816 CONFIG_IPV6_FALSE='#'
2818 CONFIG_IPV6_TRUE='#'
2823 # Check whether user wants TCP wrappers support
2824 DEPDIR="${am__leading_dot}deps"
2826 ac_config_commands="$ac_config_commands depfiles"
2829 am_make=${MAKE-make}
2830 cat > confinc << 'END'
2835 # If we don't find an include directive, just comment out the code.
2836 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2837 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2841 # First try GNU make style include.
2842 echo "include confinc" > confmf
2843 # We grep out `Entering directory' and `Leaving directory'
2844 # messages which can occur if `w' ends up in MAKEFLAGS.
2845 # In particular we don't look at `^make:' because GNU make might
2846 # be invoked under some other name (usually "gmake"), in which
2847 # case it prints its new name instead of `make'.
2848 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2853 # Now try BSD make style include.
2854 if test "$am__include" = "#"; then
2855 echo '.include "confinc"' > confmf
2856 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2857 am__include=.include
2864 { echo "$as_me:$LINENO: result: $_am_result" >&5
2865 echo "${ECHO_T}$_am_result" >&6; }
2866 rm -f confinc confmf
2868 # Check whether --enable-dependency-tracking was given.
2869 if test "${enable_dependency_tracking+set}" = set; then
2870 enableval=$enable_dependency_tracking;
2873 if test "x$enable_dependency_tracking" != xno; then
2874 am_depcomp="$ac_aux_dir/depcomp"
2877 if test "x$enable_dependency_tracking" != xno; then
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CC"; then
2921 { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2930 if test -z "$ac_cv_prog_CC"; then
2932 # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_ac_ct_CC="gcc"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6; }
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2968 if test "x$ac_ct_CC" = x; then
2971 case $cross_compiling:$ac_tool_warned in
2973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2974 whose name does not start with the host triplet. If you think this
2975 configuration is useful to you, please write to autoconf@gnu.org." >&5
2976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2977 whose name does not start with the host triplet. If you think this
2978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2979 ac_tool_warned=yes ;;
2987 if test -z "$CC"; then
2988 if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}cc; ac_word=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_CC="${ac_tool_prefix}cc"
3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 if test -n "$CC"; then
3018 { echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6; }
3021 { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3028 if test -z "$CC"; then
3029 # Extract the first word of "cc", so it can be a program name with args.
3030 set dummy cc; ac_word=$2
3031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3048 ac_prog_rejected=yes
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test $ac_prog_rejected = yes; then
3060 # We found a bogon in the path, so make sure we never use it.
3061 set dummy $ac_cv_prog_CC
3063 if test $# != 0; then
3064 # We chose a different compiler from the bogus one.
3065 # However, it has the same basename, so the bogon will be chosen
3066 # first if we set CC to just the basename; use the full file name.
3068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3074 if test -n "$CC"; then
3075 { echo "$as_me:$LINENO: result: $CC" >&5
3076 echo "${ECHO_T}$CC" >&6; }
3078 { echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6; }
3084 if test -z "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
3086 for ac_prog in cl.exe
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test -n "$CC"; then
3117 { echo "$as_me:$LINENO: result: $CC" >&5
3118 echo "${ECHO_T}$CC" >&6; }
3120 { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3125 test -n "$CC" && break
3128 if test -z "$CC"; then
3130 for ac_prog in cl.exe
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 if test -n "$ac_ct_CC"; then
3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_CC="$ac_prog"
3150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3162 echo "${ECHO_T}$ac_ct_CC" >&6; }
3164 { echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6; }
3169 test -n "$ac_ct_CC" && break
3172 if test "x$ac_ct_CC" = x; then
3175 case $cross_compiling:$ac_tool_warned in
3177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3178 whose name does not start with the host triplet. If you think this
3179 configuration is useful to you, please write to autoconf@gnu.org." >&5
3180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3181 whose name does not start with the host triplet. If you think this
3182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3183 ac_tool_warned=yes ;;
3192 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3193 See \`config.log' for more details." >&5
3194 echo "$as_me: error: no acceptable C compiler found in \$PATH
3195 See \`config.log' for more details." >&2;}
3196 { (exit 1); exit 1; }; }
3198 # Provide some information about the compiler.
3199 echo "$as_me:$LINENO: checking for C compiler version" >&5
3200 ac_compiler=`set X $ac_compile; echo $2`
3201 { (ac_try="$ac_compiler --version >&5"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compiler --version >&5") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3211 { (ac_try="$ac_compiler -v >&5"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compiler -v >&5") 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3221 { (ac_try="$ac_compiler -V >&5"
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler -V >&5") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 ac_clean_files_save=$ac_clean_files
3248 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3249 # Try to create an executable without -o first, disregard a.out.
3250 # It will help us diagnose broken compilers, and finding out an intuition
3252 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3253 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3254 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3256 # List of possible output files, starting from the most likely.
3257 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3258 # only as a last resort. b.out is created by i960 compilers.
3259 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3261 # The IRIX 6 linker writes into existing files which may not be
3262 # executable, retaining their permissions. Remove them first so a
3263 # subsequent execution test works.
3265 for ac_file in $ac_files
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3274 if { (ac_try="$ac_link_default"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_link_default") 2>&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; then
3284 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3287 # so that the user can short-circuit this test for compilers unknown to
3289 for ac_file in $ac_files ''
3291 test -f "$ac_file" || continue
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3296 # We found the default executable, but exeext='' is most
3300 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3302 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304 # We set ac_cv_exeext here because the later test for it is not
3305 # safe: cross compilers may not add the suffix if given an `-o'
3306 # argument, so we may need to know it at that point already.
3307 # Even if this section looks crufty: it has the advantage of
3314 test "$ac_cv_exeext" = no && ac_cv_exeext=
3320 { echo "$as_me:$LINENO: result: $ac_file" >&5
3321 echo "${ECHO_T}$ac_file" >&6; }
3322 if test -z "$ac_file"; then
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3327 See \`config.log' for more details." >&5
3328 echo "$as_me: error: C compiler cannot create executables
3329 See \`config.log' for more details." >&2;}
3330 { (exit 77); exit 77; }; }
3333 ac_exeext=$ac_cv_exeext
3335 # Check that the compiler produces executables we can run. If not, either
3336 # the compiler is broken, or we cross compile.
3337 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3338 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3339 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3340 # If not cross compiling, check that we can run a simple program.
3341 if test "$cross_compiling" != yes; then
3342 if { ac_try='./$ac_file'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 if test "$cross_compiling" = maybe; then
3357 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3358 If you meant to cross compile, use \`--host'.
3359 See \`config.log' for more details." >&5
3360 echo "$as_me: error: cannot run C compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }
3367 { echo "$as_me:$LINENO: result: yes" >&5
3368 echo "${ECHO_T}yes" >&6; }
3370 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3371 ac_clean_files=$ac_clean_files_save
3372 # Check that the compiler produces executables we can run. If not, either
3373 # the compiler is broken, or we cross compile.
3374 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3375 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3376 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3377 echo "${ECHO_T}$cross_compiling" >&6; }
3379 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3380 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3381 if { (ac_try="$ac_link"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_link") 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; then
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }
3412 rm -f conftest$ac_cv_exeext
3413 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3414 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3416 rm -f conftest.$ac_ext
3417 EXEEXT=$ac_cv_exeext
3419 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3420 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3421 if test "${ac_cv_objext+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3439 rm -f conftest.o conftest.obj
3440 if { (ac_try="$ac_compile"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_compile") 2>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; then
3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3463 See \`config.log' for more details." >&5
3464 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3465 See \`config.log' for more details." >&2;}
3466 { (exit 1); exit 1; }; }
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3472 echo "${ECHO_T}$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3475 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3476 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3477 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3498 rm -f conftest.$ac_objext
3499 if { (ac_try="$ac_compile"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3527 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3528 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3529 GCC=`test $ac_compiler_gnu = yes && echo yes`
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3533 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_g+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 ac_save_c_werror_flag=$ac_c_werror_flag
3538 ac_c_werror_flag=yes
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3556 rm -f conftest.$ac_objext
3557 if { (ac_try="$ac_compile"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_c_werror_flag=$ac_save_c_werror_flag
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_c_werror_flag=$ac_save_c_werror_flag
3667 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3668 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3669 if test "$ac_test_CFLAGS" = set; then
3670 CFLAGS=$ac_save_CFLAGS
3671 elif test $ac_cv_prog_cc_g = yes; then
3672 if test "$GCC" = yes; then
3678 if test "$GCC" = yes; then
3684 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3685 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3686 if test "${ac_cv_prog_cc_c89+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 ac_cv_prog_cc_c89=no
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3699 #include <sys/types.h>
3700 #include <sys/stat.h>
3701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3702 struct buf { int x; };
3703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704 static char *e (p, i)
3710 static char *f (char * (*g) (char **, int), char **p, ...)
3715 s = g (p, va_arg (v,int));
3720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3721 function prototypes and stuff, but not '\xHH' hex character constants.
3722 These don't provoke an error unfortunately, instead are silently treated
3723 as 'x'. The following induces an error, until -std is added to get
3724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3725 array size at least. It's necessary to write '\x00'==0 to get something
3726 that's true only with -std. */
3727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730 inside strings and character constants. */
3732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3734 int test (int i, double x);
3735 struct s1 {int (*f) (int a);};
3736 struct s2 {int (*f) (double a);};
3737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 CC="$ac_save_CC $ac_arg"
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3761 grep -v '^ *+' conftest.er1 >conftest.err
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3769 ac_cv_prog_cc_c89=$ac_arg
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3777 rm -f core conftest.err conftest.$ac_objext
3778 test "x$ac_cv_prog_cc_c89" != "xno" && break
3780 rm -f conftest.$ac_ext
3785 case "x$ac_cv_prog_cc_c89" in
3787 { echo "$as_me:$LINENO: result: none needed" >&5
3788 echo "${ECHO_T}none needed" >&6; } ;;
3790 { echo "$as_me:$LINENO: result: unsupported" >&5
3791 echo "${ECHO_T}unsupported" >&6; } ;;
3793 CC="$CC $ac_cv_prog_cc_c89"
3794 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3795 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805 depcc="$CC" am_compiler_list=
3807 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3808 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3809 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3813 # We make a subdir and do the tests there. Otherwise we can end up
3814 # making bogus files that we don't know about and never remove. For
3815 # instance it was reported that on HP-UX the gcc test will end up
3816 # making a dummy file named `D' -- because `-MD' means `put the output
3819 # Copy depcomp to subdir because otherwise we won't find it if we're
3820 # using a relative directory.
3821 cp "$am_depcomp" conftest.dir
3823 # We will build objects and dependencies in a subdirectory because
3824 # it helps to detect inapplicable dependency modes. For instance
3825 # both Tru64's cc and ICC support -MD to output dependencies as a
3826 # side effect of compilation, but ICC will put the dependencies in
3827 # the current directory while Tru64 will put them in the object
3831 am_cv_CC_dependencies_compiler_type=none
3832 if test "$am_compiler_list" = ""; then
3833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3835 for depmode in $am_compiler_list; do
3836 # Setup a source with many dependencies, because some compilers
3837 # like to wrap large dependency lists on column 80 (with \), and
3838 # we should not choose a depcomp mode which is confused by this.
3840 # We need to recreate these files for each test, as the compiler may
3841 # overwrite some of them when testing with obscure command lines.
3842 # This happens at least with the AIX C compiler.
3844 for i in 1 2 3 4 5 6; do
3845 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3846 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3847 # Solaris 8's {/usr,}/bin/sh.
3848 touch sub/conftst$i.h
3850 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3854 # after this tag, mechanisms are not by side-effect, so they'll
3855 # only be used when explicitly requested
3856 if test "x$enable_dependency_tracking" = xyes; then
3864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3865 # mode. It turns out that the SunPro C++ compiler does not properly
3866 # handle `-M -o', and we need to detect this.
3867 if depmode=$depmode \
3868 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3871 >/dev/null 2>conftest.err &&
3872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876 # icc doesn't choke on unknown options, it will just issue warnings
3877 # or remarks (even with -Werror). So we grep stderr for any message
3878 # that says an option was ignored or not supported.
3879 # When given -MP, icc 7.0 and 7.1 complain thusly:
3880 # icc: Command line warning: ignoring option '-M'; no argument required
3881 # The diagnosis changed in icc 8.0:
3882 # icc: Command line remark: option '-MP' not supported
3883 if (grep 'ignoring option' conftest.err ||
3884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885 am_cv_CC_dependencies_compiler_type=$depmode
3894 am_cv_CC_dependencies_compiler_type=none
3898 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903 test "x$enable_dependency_tracking" != xno \
3904 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906 am__fastdepCC_FALSE='#'
3908 am__fastdepCC_TRUE='#'
3909 am__fastdepCC_FALSE=
3917 # Check whether --with-tcp-wrappers was given.
3918 if test "${with_tcp_wrappers+set}" = set; then
3919 withval=$with_tcp_wrappers; with_tcpw=$withval
3924 if test "x$with_tcpw" != "xno" ; then
3926 saved_LDFLAGS="$LDFLAGS"
3927 saved_CPPFLAGS="$CPPFLAGS"
3928 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3929 if test -d "${with_tcpw}/lib"; then
3930 if test -n "${need_dash_r}"; then
3931 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3933 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3936 if test -n "${need_dash_r}"; then
3937 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3939 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3942 if test -d "${with_tcpw}/include"; then
3943 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3945 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3949 LIBS="$LIBWRAP $LIBS"
3950 { echo "$as_me:$LINENO: checking for libwrap" >&5
3951 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3960 int deny_severity = 0, allow_severity = 0;
3970 rm -f conftest.$ac_objext conftest$ac_exeext
3971 if { (ac_try="$ac_link"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_link") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } && {
3984 test -z "$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 } && test -s conftest$ac_exeext &&
3987 $as_test_x conftest$ac_exeext; then
3989 { echo "$as_me:$LINENO: result: yes" >&5
3990 echo "${ECHO_T}yes" >&6; }
3993 cat >>confdefs.h <<\_ACEOF
3998 cat >>confdefs.h <<\_ACEOF
3999 #define HAVE_LIBWRAP 1
4003 cat >>confdefs.h <<\_ACEOF
4004 #define HAVE_TCP_WRAPPER 1
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4014 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4015 echo "$as_me: error: *** libwrap missing" >&2;}
4016 { (exit 1); exit 1; }; }
4021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4022 conftest$ac_exeext conftest.$ac_ext
4030 # Arrange for large-file support
4031 # Check whether --enable-largefile was given.
4032 if test "${enable_largefile+set}" = set; then
4033 enableval=$enable_largefile;
4036 if test "$enable_largefile" != no; then
4038 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4039 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4040 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 ac_cv_sys_largefile_CC=no
4044 if test "$GCC" != yes; then
4047 # IRIX 6.2 and later do not support large files by default,
4048 # so use the C compiler's -n32 option if that helps.
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <sys/types.h>
4056 /* Check that off_t can represent 2**63 - 1 correctly.
4057 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4058 since some C++ compilers masquerading as C compilers
4059 incorrectly reject 9223372036854775807. */
4060 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4061 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4062 && LARGE_OFF_T % 2147483647 == 1)
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } && {
4086 test -z "$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 } && test -s conftest.$ac_objext; then
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -f core conftest.err conftest.$ac_objext
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } && {
4113 test -z "$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 } && test -s conftest.$ac_objext; then
4116 ac_cv_sys_largefile_CC=' -n32'; break
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4124 rm -f core conftest.err conftest.$ac_objext
4128 rm -f conftest.$ac_ext
4131 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4132 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4133 if test "$ac_cv_sys_largefile_CC" != no; then
4134 CC=$CC$ac_cv_sys_largefile_CC
4137 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4138 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4139 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <sys/types.h>
4150 /* Check that off_t can represent 2**63 - 1 correctly.
4151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4152 since some C++ compilers masquerading as C compilers
4153 incorrectly reject 9223372036854775807. */
4154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4156 && LARGE_OFF_T % 2147483647 == 1)
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } && {
4180 test -z "$ac_c_werror_flag" ||
4181 test ! -s conftest.err
4182 } && test -s conftest.$ac_objext; then
4183 ac_cv_sys_file_offset_bits=no; break
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #define _FILE_OFFSET_BITS 64
4199 #include <sys/types.h>
4200 /* Check that off_t can represent 2**63 - 1 correctly.
4201 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4202 since some C++ compilers masquerading as C compilers
4203 incorrectly reject 9223372036854775807. */
4204 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4206 && LARGE_OFF_T % 2147483647 == 1)
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_compile") 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } && {
4230 test -z "$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 } && test -s conftest.$ac_objext; then
4233 ac_cv_sys_file_offset_bits=64; break
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_cv_sys_file_offset_bits=unknown
4246 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4247 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4248 case $ac_cv_sys_file_offset_bits in #(
4251 cat >>confdefs.h <<_ACEOF
4252 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4257 if test $ac_cv_sys_file_offset_bits = unknown; then
4258 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4259 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4260 if test "${ac_cv_sys_large_files+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <sys/types.h>
4271 /* Check that off_t can represent 2**63 - 1 correctly.
4272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4273 since some C++ compilers masquerading as C compilers
4274 incorrectly reject 9223372036854775807. */
4275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4277 && LARGE_OFF_T % 2147483647 == 1)
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && {
4301 test -z "$ac_c_werror_flag" ||
4302 test ! -s conftest.err
4303 } && test -s conftest.$ac_objext; then
4304 ac_cv_sys_large_files=no; break
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #define _LARGE_FILES 1
4320 #include <sys/types.h>
4321 /* Check that off_t can represent 2**63 - 1 correctly.
4322 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4323 since some C++ compilers masquerading as C compilers
4324 incorrectly reject 9223372036854775807. */
4325 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4327 && LARGE_OFF_T % 2147483647 == 1)
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && {
4351 test -z "$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4353 } && test -s conftest.$ac_objext; then
4354 ac_cv_sys_large_files=1; break
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_cv_sys_large_files=unknown
4367 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4368 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4369 case $ac_cv_sys_large_files in #(
4372 cat >>confdefs.h <<_ACEOF
4373 #define _LARGE_FILES $ac_cv_sys_large_files
4383 ac_config_headers="$ac_config_headers support/include/config.h"
4386 # Checks for programs.
4388 ac_cpp='$CXXCPP $CPPFLAGS'
4389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4392 if test -z "$CXX"; then
4393 if test -n "$CCC"; then
4396 if test -n "$ac_tool_prefix"; then
4397 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4403 if test "${ac_cv_prog_CXX+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 if test -n "$CXX"; then
4407 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 if test -n "$CXX"; then
4428 { echo "$as_me:$LINENO: result: $CXX" >&5
4429 echo "${ECHO_T}$CXX" >&6; }
4431 { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }
4436 test -n "$CXX" && break
4439 if test -z "$CXX"; then
4441 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 if test -n "$ac_ct_CXX"; then
4451 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_ac_ct_CXX="$ac_prog"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4471 if test -n "$ac_ct_CXX"; then
4472 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4473 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4480 test -n "$ac_ct_CXX" && break
4483 if test "x$ac_ct_CXX" = x; then
4486 case $cross_compiling:$ac_tool_warned in
4488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4489 whose name does not start with the host triplet. If you think this
4490 configuration is useful to you, please write to autoconf@gnu.org." >&5
4491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4492 whose name does not start with the host triplet. If you think this
4493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4494 ac_tool_warned=yes ;;
4502 # Provide some information about the compiler.
4503 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4504 ac_compiler=`set X $ac_compile; echo $2`
4505 { (ac_try="$ac_compiler --version >&5"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_compiler --version >&5") 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }
4515 { (ac_try="$ac_compiler -v >&5"
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_compiler -v >&5") 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }
4525 { (ac_try="$ac_compiler -V >&5"
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_compiler -V >&5") 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4536 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4537 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4538 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 cat >conftest.$ac_ext <<_ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4568 grep -v '^ *+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_cxx_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4588 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4589 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4590 GXX=`test $ac_compiler_gnu = yes && echo yes`
4591 ac_test_CXXFLAGS=${CXXFLAGS+set}
4592 ac_save_CXXFLAGS=$CXXFLAGS
4593 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4594 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4595 if test "${ac_cv_prog_cxx_g+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4599 ac_cxx_werror_flag=yes
4602 cat >conftest.$ac_ext <<_ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4617 rm -f conftest.$ac_objext
4618 if { (ac_try="$ac_compile"
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_compile") 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } && {
4631 test -z "$ac_cxx_werror_flag" ||
4632 test ! -s conftest.err
4633 } && test -s conftest.$ac_objext; then
4634 ac_cv_prog_cxx_g=yes
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_compile") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1 >conftest.err
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_cxx_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest.$ac_objext; then
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4679 cat >conftest.$ac_ext <<_ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4694 rm -f conftest.$ac_objext
4695 if { (ac_try="$ac_compile"
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701 (eval "$ac_compile") 2>conftest.er1
4703 grep -v '^ *+' conftest.er1 >conftest.err
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && {
4708 test -z "$ac_cxx_werror_flag" ||
4709 test ! -s conftest.err
4710 } && test -s conftest.$ac_objext; then
4711 ac_cv_prog_cxx_g=yes
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4729 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4730 if test "$ac_test_CXXFLAGS" = set; then
4731 CXXFLAGS=$ac_save_CXXFLAGS
4732 elif test $ac_cv_prog_cxx_g = yes; then
4733 if test "$GXX" = yes; then
4739 if test "$GXX" = yes; then
4746 ac_cpp='$CPP $CPPFLAGS'
4747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751 depcc="$CXX" am_compiler_list=
4753 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4754 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4755 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759 # We make a subdir and do the tests there. Otherwise we can end up
4760 # making bogus files that we don't know about and never remove. For
4761 # instance it was reported that on HP-UX the gcc test will end up
4762 # making a dummy file named `D' -- because `-MD' means `put the output
4765 # Copy depcomp to subdir because otherwise we won't find it if we're
4766 # using a relative directory.
4767 cp "$am_depcomp" conftest.dir
4769 # We will build objects and dependencies in a subdirectory because
4770 # it helps to detect inapplicable dependency modes. For instance
4771 # both Tru64's cc and ICC support -MD to output dependencies as a
4772 # side effect of compilation, but ICC will put the dependencies in
4773 # the current directory while Tru64 will put them in the object
4777 am_cv_CXX_dependencies_compiler_type=none
4778 if test "$am_compiler_list" = ""; then
4779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4781 for depmode in $am_compiler_list; do
4782 # Setup a source with many dependencies, because some compilers
4783 # like to wrap large dependency lists on column 80 (with \), and
4784 # we should not choose a depcomp mode which is confused by this.
4786 # We need to recreate these files for each test, as the compiler may
4787 # overwrite some of them when testing with obscure command lines.
4788 # This happens at least with the AIX C compiler.
4790 for i in 1 2 3 4 5 6; do
4791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4792 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4793 # Solaris 8's {/usr,}/bin/sh.
4794 touch sub/conftst$i.h
4796 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4800 # after this tag, mechanisms are not by side-effect, so they'll
4801 # only be used when explicitly requested
4802 if test "x$enable_dependency_tracking" = xyes; then
4810 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4811 # mode. It turns out that the SunPro C++ compiler does not properly
4812 # handle `-M -o', and we need to detect this.
4813 if depmode=$depmode \
4814 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4816 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4817 >/dev/null 2>conftest.err &&
4818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4820 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4822 # icc doesn't choke on unknown options, it will just issue warnings
4823 # or remarks (even with -Werror). So we grep stderr for any message
4824 # that says an option was ignored or not supported.
4825 # When given -MP, icc 7.0 and 7.1 complain thusly:
4826 # icc: Command line warning: ignoring option '-M'; no argument required
4827 # The diagnosis changed in icc 8.0:
4828 # icc: Command line remark: option '-MP' not supported
4829 if (grep 'ignoring option' conftest.err ||
4830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4831 am_cv_CXX_dependencies_compiler_type=$depmode
4840 am_cv_CXX_dependencies_compiler_type=none
4844 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4845 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4846 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4849 test "x$enable_dependency_tracking" != xno \
4850 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4851 am__fastdepCXX_TRUE=
4852 am__fastdepCXX_FALSE='#'
4854 am__fastdepCXX_TRUE='#'
4855 am__fastdepCXX_FALSE=
4860 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 if test -n "$ac_tool_prefix"; then
4865 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_prog_CC+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test -n "$CC"; then
4873 ac_cv_prog_CC="$CC" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 if test -n "$CC"; then
4894 { echo "$as_me:$LINENO: result: $CC" >&5
4895 echo "${ECHO_T}$CC" >&6; }
4897 { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4903 if test -z "$ac_cv_prog_CC"; then
4905 # Extract the first word of "gcc", so it can be a program name with args.
4906 set dummy gcc; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -n "$ac_ct_CC"; then
4913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_ac_ct_CC="gcc"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4933 if test -n "$ac_ct_CC"; then
4934 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4935 echo "${ECHO_T}$ac_ct_CC" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4941 if test "x$ac_ct_CC" = x; then
4944 case $cross_compiling:$ac_tool_warned in
4946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4947 whose name does not start with the host triplet. If you think this
4948 configuration is useful to you, please write to autoconf@gnu.org." >&5
4949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4950 whose name does not start with the host triplet. If you think this
4951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4952 ac_tool_warned=yes ;;
4960 if test -z "$CC"; then
4961 if test -n "$ac_tool_prefix"; then
4962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4963 set dummy ${ac_tool_prefix}cc; ac_word=$2
4964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4966 if test "${ac_cv_prog_CC+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 if test -n "$CC"; then
4970 ac_cv_prog_CC="$CC" # Let the user override the test.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_CC="${ac_tool_prefix}cc"
4980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 if test -n "$CC"; then
4991 { echo "$as_me:$LINENO: result: $CC" >&5
4992 echo "${ECHO_T}$CC" >&6; }
4994 { echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6; }
5001 if test -z "$CC"; then
5002 # Extract the first word of "cc", so it can be a program name with args.
5003 set dummy cc; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_prog_CC+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 if test -n "$CC"; then
5010 ac_cv_prog_CC="$CC" # Let the user override the test.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5021 ac_prog_rejected=yes
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 if test $ac_prog_rejected = yes; then
5033 # We found a bogon in the path, so make sure we never use it.
5034 set dummy $ac_cv_prog_CC
5036 if test $# != 0; then
5037 # We chose a different compiler from the bogus one.
5038 # However, it has the same basename, so the bogon will be chosen
5039 # first if we set CC to just the basename; use the full file name.
5041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5047 if test -n "$CC"; then
5048 { echo "$as_me:$LINENO: result: $CC" >&5
5049 echo "${ECHO_T}$CC" >&6; }
5051 { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5057 if test -z "$CC"; then
5058 if test -n "$ac_tool_prefix"; then
5059 for ac_prog in cl.exe
5061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5065 if test "${ac_cv_prog_CC+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 if test -n "$CC"; then
5069 ac_cv_prog_CC="$CC" # Let the user override the test.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 if test -n "$CC"; then
5090 { echo "$as_me:$LINENO: result: $CC" >&5
5091 echo "${ECHO_T}$CC" >&6; }
5093 { echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6; }
5098 test -n "$CC" && break
5101 if test -z "$CC"; then
5103 for ac_prog in cl.exe
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 if test -n "$ac_ct_CC"; then
5113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_ac_ct_CC="$ac_prog"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5133 if test -n "$ac_ct_CC"; then
5134 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5135 echo "${ECHO_T}$ac_ct_CC" >&6; }
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5142 test -n "$ac_ct_CC" && break
5145 if test "x$ac_ct_CC" = x; then
5148 case $cross_compiling:$ac_tool_warned in
5150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5151 whose name does not start with the host triplet. If you think this
5152 configuration is useful to you, please write to autoconf@gnu.org." >&5
5153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5154 whose name does not start with the host triplet. If you think this
5155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5156 ac_tool_warned=yes ;;
5165 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5166 See \`config.log' for more details." >&5
5167 echo "$as_me: error: no acceptable C compiler found in \$PATH
5168 See \`config.log' for more details." >&2;}
5169 { (exit 1); exit 1; }; }
5171 # Provide some information about the compiler.
5172 echo "$as_me:$LINENO: checking for C compiler version" >&5
5173 ac_compiler=`set X $ac_compile; echo $2`
5174 { (ac_try="$ac_compiler --version >&5"
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_compiler --version >&5") 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }
5184 { (ac_try="$ac_compiler -v >&5"
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_compiler -v >&5") 2>&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }
5194 { (ac_try="$ac_compiler -V >&5"
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compiler -V >&5") 2>&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }
5205 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5206 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5207 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5257 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5258 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5259 GCC=`test $ac_compiler_gnu = yes && echo yes`
5260 ac_test_CFLAGS=${CFLAGS+set}
5261 ac_save_CFLAGS=$CFLAGS
5262 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5264 if test "${ac_cv_prog_cc_g+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_save_c_werror_flag=$ac_c_werror_flag
5268 ac_c_werror_flag=yes
5271 cat >conftest.$ac_ext <<_ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5286 rm -f conftest.$ac_objext
5287 if { (ac_try="$ac_compile"
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_compile") 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } && {
5300 test -z "$ac_c_werror_flag" ||
5301 test ! -s conftest.err
5302 } && test -s conftest.$ac_objext; then
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5324 rm -f conftest.$ac_objext
5325 if { (ac_try="$ac_compile"
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_compile") 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest.$ac_objext; then
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 ac_c_werror_flag=$ac_save_c_werror_flag
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_c_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 ac_c_werror_flag=$ac_save_c_werror_flag
5397 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5398 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5399 if test "$ac_test_CFLAGS" = set; then
5400 CFLAGS=$ac_save_CFLAGS
5401 elif test $ac_cv_prog_cc_g = yes; then
5402 if test "$GCC" = yes; then
5408 if test "$GCC" = yes; then
5414 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5415 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5416 if test "${ac_cv_prog_cc_c89+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 ac_cv_prog_cc_c89=no
5421 cat >conftest.$ac_ext <<_ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5429 #include <sys/types.h>
5430 #include <sys/stat.h>
5431 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5432 struct buf { int x; };
5433 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5434 static char *e (p, i)
5440 static char *f (char * (*g) (char **, int), char **p, ...)
5445 s = g (p, va_arg (v,int));
5450 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5451 function prototypes and stuff, but not '\xHH' hex character constants.
5452 These don't provoke an error unfortunately, instead are silently treated
5453 as 'x'. The following induces an error, until -std is added to get
5454 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5455 array size at least. It's necessary to write '\x00'==0 to get something
5456 that's true only with -std. */
5457 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5459 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5460 inside strings and character constants. */
5462 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5464 int test (int i, double x);
5465 struct s1 {int (*f) (int a);};
5466 struct s2 {int (*f) (double a);};
5467 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5473 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5478 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5479 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5481 CC="$ac_save_CC $ac_arg"
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_cv_prog_cc_c89=$ac_arg
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5507 rm -f core conftest.err conftest.$ac_objext
5508 test "x$ac_cv_prog_cc_c89" != "xno" && break
5510 rm -f conftest.$ac_ext
5515 case "x$ac_cv_prog_cc_c89" in
5517 { echo "$as_me:$LINENO: result: none needed" >&5
5518 echo "${ECHO_T}none needed" >&6; } ;;
5520 { echo "$as_me:$LINENO: result: unsupported" >&5
5521 echo "${ECHO_T}unsupported" >&6; } ;;
5523 CC="$CC $ac_cv_prog_cc_c89"
5524 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5525 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535 depcc="$CC" am_compiler_list=
5537 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5538 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5539 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5543 # We make a subdir and do the tests there. Otherwise we can end up
5544 # making bogus files that we don't know about and never remove. For
5545 # instance it was reported that on HP-UX the gcc test will end up
5546 # making a dummy file named `D' -- because `-MD' means `put the output
5549 # Copy depcomp to subdir because otherwise we won't find it if we're
5550 # using a relative directory.
5551 cp "$am_depcomp" conftest.dir
5553 # We will build objects and dependencies in a subdirectory because
5554 # it helps to detect inapplicable dependency modes. For instance
5555 # both Tru64's cc and ICC support -MD to output dependencies as a
5556 # side effect of compilation, but ICC will put the dependencies in
5557 # the current directory while Tru64 will put them in the object
5561 am_cv_CC_dependencies_compiler_type=none
5562 if test "$am_compiler_list" = ""; then
5563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5565 for depmode in $am_compiler_list; do
5566 # Setup a source with many dependencies, because some compilers
5567 # like to wrap large dependency lists on column 80 (with \), and
5568 # we should not choose a depcomp mode which is confused by this.
5570 # We need to recreate these files for each test, as the compiler may
5571 # overwrite some of them when testing with obscure command lines.
5572 # This happens at least with the AIX C compiler.
5574 for i in 1 2 3 4 5 6; do
5575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5577 # Solaris 8's {/usr,}/bin/sh.
5578 touch sub/conftst$i.h
5580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5584 # after this tag, mechanisms are not by side-effect, so they'll
5585 # only be used when explicitly requested
5586 if test "x$enable_dependency_tracking" = xyes; then
5594 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5595 # mode. It turns out that the SunPro C++ compiler does not properly
5596 # handle `-M -o', and we need to detect this.
5597 if depmode=$depmode \
5598 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5600 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5601 >/dev/null 2>conftest.err &&
5602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5604 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5606 # icc doesn't choke on unknown options, it will just issue warnings
5607 # or remarks (even with -Werror). So we grep stderr for any message
5608 # that says an option was ignored or not supported.
5609 # When given -MP, icc 7.0 and 7.1 complain thusly:
5610 # icc: Command line warning: ignoring option '-M'; no argument required
5611 # The diagnosis changed in icc 8.0:
5612 # icc: Command line remark: option '-MP' not supported
5613 if (grep 'ignoring option' conftest.err ||
5614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5615 am_cv_CC_dependencies_compiler_type=$depmode
5624 am_cv_CC_dependencies_compiler_type=none
5628 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5629 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5633 test "x$enable_dependency_tracking" != xno \
5634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5636 am__fastdepCC_FALSE='#'
5638 am__fastdepCC_TRUE='#'
5639 am__fastdepCC_FALSE=
5644 ac_cpp='$CPP $CPPFLAGS'
5645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5648 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5650 # On Suns, sometimes $CPP names a directory.
5651 if test -n "$CPP" && test -d "$CPP"; then
5654 if test -z "$CPP"; then
5655 if test "${ac_cv_prog_CPP+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 # Double quotes because CPP needs to be expanded
5659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5662 for ac_c_preproc_warn_flag in '' yes
5664 # Use a header file that comes with gcc, so configuring glibc
5665 # with a fresh cross-compiler works.
5666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5667 # <limits.h> exists even on freestanding compilers.
5668 # On the NeXT, cc -E runs the code through the compiler's parser,
5669 # not just through cpp. "Syntax error" is here to catch this case.
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5677 # include <limits.h>
5679 # include <assert.h>
5683 if { (ac_try="$ac_cpp conftest.$ac_ext"
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } >/dev/null && {
5696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5704 # Broken: fails on valid input.
5708 rm -f conftest.err conftest.$ac_ext
5710 # OK, works on sane cases. Now check whether nonexistent headers
5711 # can be detected and how.
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <ac_nonexistent.h>
5720 if { (ac_try="$ac_cpp conftest.$ac_ext"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } >/dev/null && {
5733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5736 # Broken: success on invalid input.
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 # Passes both tests.
5747 rm -f conftest.err conftest.$ac_ext
5750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5751 rm -f conftest.err conftest.$ac_ext
5752 if $ac_preproc_ok; then
5764 { echo "$as_me:$LINENO: result: $CPP" >&5
5765 echo "${ECHO_T}$CPP" >&6; }
5767 for ac_c_preproc_warn_flag in '' yes
5769 # Use a header file that comes with gcc, so configuring glibc
5770 # with a fresh cross-compiler works.
5771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5772 # <limits.h> exists even on freestanding compilers.
5773 # On the NeXT, cc -E runs the code through the compiler's parser,
5774 # not just through cpp. "Syntax error" is here to catch this case.
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5782 # include <limits.h>
5784 # include <assert.h>
5788 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } >/dev/null && {
5801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 # Broken: fails on valid input.
5813 rm -f conftest.err conftest.$ac_ext
5815 # OK, works on sane cases. Now check whether nonexistent headers
5816 # can be detected and how.
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 #include <ac_nonexistent.h>
5825 if { (ac_try="$ac_cpp conftest.$ac_ext"
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5833 grep -v '^ *+' conftest.er1 >conftest.err
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } >/dev/null && {
5838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5841 # Broken: success on invalid input.
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 # Passes both tests.
5852 rm -f conftest.err conftest.$ac_ext
5855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5856 rm -f conftest.err conftest.$ac_ext
5857 if $ac_preproc_ok; then
5860 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5861 See \`config.log' for more details." >&5
5862 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5863 See \`config.log' for more details." >&2;}
5864 { (exit 1); exit 1; }; }
5868 ac_cpp='$CPP $CPPFLAGS'
5869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5873 # Find a good install program. We prefer a C program (faster),
5874 # so one script is as good as another. But avoid the broken or
5875 # incompatible versions:
5876 # SysV /etc/install, /usr/sbin/install
5877 # SunOS /usr/etc/install
5878 # IRIX /sbin/install
5880 # AmigaOS /C/install, which installs bootblocks on floppy discs
5881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5884 # OS/2's system install, which has a completely different semantic
5885 # ./install, which can be erroneously created by make from ./install.sh.
5886 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5887 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5888 if test -z "$INSTALL"; then
5889 if test "${ac_cv_path_install+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 # Account for people who put trailing slashes in PATH elements.
5899 ./ | .// | /cC/* | \
5900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5901 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5904 # OSF1 and SCO ODT 3.0 have their own names for install.
5905 # Don't use installbsd from OSF since it installs stuff as root
5907 for ac_prog in ginstall scoinst install; do
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5910 if test $ac_prog = install &&
5911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5912 # AIX install. It has an incompatible calling convention.
5914 elif test $ac_prog = install &&
5915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5916 # program-specific install script used by HP pwplus--don't use.
5919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5932 if test "${ac_cv_path_install+set}" = set; then
5933 INSTALL=$ac_cv_path_install
5935 # As a last resort, use the slow shell script. Don't cache a
5936 # value for INSTALL within a source directory, because that will
5937 # break other packages using the cache if that directory is
5938 # removed, or if the value is a relative name.
5939 INSTALL=$ac_install_sh
5942 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5943 echo "${ECHO_T}$INSTALL" >&6; }
5945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5946 # It thinks the first close brace ends the variable substitution.
5947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5953 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5954 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5956 if test "$LN_S" = "ln -s"; then
5957 { echo "$as_me:$LINENO: result: yes" >&5
5958 echo "${ECHO_T}yes" >&6; }
5960 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5961 echo "${ECHO_T}no, using $LN_S" >&6; }
5964 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5965 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5966 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5967 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 cat >conftest.make <<\_ACEOF
5973 @echo '@@@%%%=$(MAKE)=@@@%%%'
5975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5976 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5978 eval ac_cv_prog_make_${ac_make}_set=yes;;
5980 eval ac_cv_prog_make_${ac_make}_set=no;;
5984 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5985 { echo "$as_me:$LINENO: result: yes" >&5
5986 echo "${ECHO_T}yes" >&6; }
5989 { echo "$as_me:$LINENO: result: no" >&5
5990 echo "${ECHO_T}no" >&6; }
5991 SET_MAKE="MAKE=${MAKE-make}"
5994 # Check whether --enable-shared was given.
5995 if test "${enable_shared+set}" = set; then
5996 enableval=$enable_shared; p=${PACKAGE-default}
5998 yes) enable_shared=yes ;;
5999 no) enable_shared=no ;;
6002 # Look at the argument we got. We use all the common list separators.
6003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6004 for pkg in $enableval; do
6006 if test "X$pkg" = "X$p"; then
6018 # Check whether --enable-static was given.
6019 if test "${enable_static+set}" = set; then
6020 enableval=$enable_static; p=${PACKAGE-default}
6022 yes) enable_static=yes ;;
6023 no) enable_static=no ;;
6026 # Look at the argument we got. We use all the common list separators.
6027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6028 for pkg in $enableval; do
6030 if test "X$pkg" = "X$p"; then
6042 # Check whether --enable-fast-install was given.
6043 if test "${enable_fast_install+set}" = set; then
6044 enableval=$enable_fast_install; p=${PACKAGE-default}
6046 yes) enable_fast_install=yes ;;
6047 no) enable_fast_install=no ;;
6049 enable_fast_install=no
6050 # Look at the argument we got. We use all the common list separators.
6051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6052 for pkg in $enableval; do
6054 if test "X$pkg" = "X$p"; then
6055 enable_fast_install=yes
6062 enable_fast_install=yes
6066 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6068 if test "${lt_cv_path_SED+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 # Loop through the user's path and test for sed and gsed.
6072 # Then use that list of sed's as ones to test for truncation.
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 test -z "$as_dir" && as_dir=.
6078 for lt_ac_prog in sed gsed; do
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6081 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6089 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6090 # along with /bin/sed that truncates output.
6091 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6092 test ! -f $lt_ac_sed && continue
6093 cat /dev/null > conftest.in
6095 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6096 # Check for GNU sed and select it if it is found.
6097 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6098 lt_cv_path_SED=$lt_ac_sed
6102 cat conftest.in conftest.in >conftest.tmp
6103 mv conftest.tmp conftest.in
6104 cp conftest.in conftest.nl
6106 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6107 cmp -s conftest.out conftest.nl || break
6108 # 10000 chars as input seems more than enough
6109 test $lt_ac_count -gt 10 && break
6110 lt_ac_count=`expr $lt_ac_count + 1`
6111 if test $lt_ac_count -gt $lt_ac_max; then
6112 lt_ac_max=$lt_ac_count
6113 lt_cv_path_SED=$lt_ac_sed
6122 { echo "$as_me:$LINENO: result: $SED" >&5
6123 echo "${ECHO_T}$SED" >&6; }
6125 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6126 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6127 if test "${ac_cv_path_GREP+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 # Extract the first word of "grep ggrep" to use in msg output
6131 if test -z "$GREP"; then
6132 set dummy grep ggrep; ac_prog_name=$2
6133 if test "${ac_cv_path_GREP+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_path_GREP_found=false
6137 # Loop through the user's path and test for each of PROGNAME-LIST
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6142 test -z "$as_dir" && as_dir=.
6143 for ac_prog in grep ggrep; do
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6146 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6147 # Check for GNU ac_path_GREP and select it if it is found.
6148 # Check for GNU $ac_path_GREP
6149 case `"$ac_path_GREP" --version 2>&1` in
6151 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6154 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6157 cat "conftest.in" "conftest.in" >"conftest.tmp"
6158 mv "conftest.tmp" "conftest.in"
6159 cp "conftest.in" "conftest.nl"
6160 echo 'GREP' >> "conftest.nl"
6161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6163 ac_count=`expr $ac_count + 1`
6164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6165 # Best one so far, save it but keep looking for a better one
6166 ac_cv_path_GREP="$ac_path_GREP"
6167 ac_path_GREP_max=$ac_count
6169 # 10*(2^10) chars as input seems more than enough
6170 test $ac_count -gt 10 && break
6172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6176 $ac_path_GREP_found && break 3
6186 GREP="$ac_cv_path_GREP"
6187 if test -z "$GREP"; then
6188 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6189 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6190 { (exit 1); exit 1; }; }
6194 ac_cv_path_GREP=$GREP
6199 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6200 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6201 GREP="$ac_cv_path_GREP"
6204 { echo "$as_me:$LINENO: checking for egrep" >&5
6205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6206 if test "${ac_cv_path_EGREP+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6210 then ac_cv_path_EGREP="$GREP -E"
6212 # Extract the first word of "egrep" to use in msg output
6213 if test -z "$EGREP"; then
6214 set dummy egrep; ac_prog_name=$2
6215 if test "${ac_cv_path_EGREP+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 ac_path_EGREP_found=false
6219 # Loop through the user's path and test for each of PROGNAME-LIST
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6224 test -z "$as_dir" && as_dir=.
6225 for ac_prog in egrep; do
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6228 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6229 # Check for GNU ac_path_EGREP and select it if it is found.
6230 # Check for GNU $ac_path_EGREP
6231 case `"$ac_path_EGREP" --version 2>&1` in
6233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6236 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6239 cat "conftest.in" "conftest.in" >"conftest.tmp"
6240 mv "conftest.tmp" "conftest.in"
6241 cp "conftest.in" "conftest.nl"
6242 echo 'EGREP' >> "conftest.nl"
6243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6245 ac_count=`expr $ac_count + 1`
6246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6247 # Best one so far, save it but keep looking for a better one
6248 ac_cv_path_EGREP="$ac_path_EGREP"
6249 ac_path_EGREP_max=$ac_count
6251 # 10*(2^10) chars as input seems more than enough
6252 test $ac_count -gt 10 && break
6254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6258 $ac_path_EGREP_found && break 3
6268 EGREP="$ac_cv_path_EGREP"
6269 if test -z "$EGREP"; then
6270 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6271 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6272 { (exit 1); exit 1; }; }
6276 ac_cv_path_EGREP=$EGREP
6282 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6284 EGREP="$ac_cv_path_EGREP"
6288 # Check whether --with-gnu-ld was given.
6289 if test "${with_gnu_ld+set}" = set; then
6290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6296 if test "$GCC" = yes; then
6297 # Check if gcc -print-prog-name=ld gives a path.
6298 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6299 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6302 # gcc leaves a trailing carriage return which upsets mingw
6303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6308 # Accept absolute paths.
6310 re_direlt='/[^/][^/]*/\.\./'
6311 # Canonicalize the pathname of ld
6312 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6313 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6314 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6316 test -z "$LD" && LD="$ac_prog"
6319 # If it fails, then pretend we aren't using GCC.
6323 # If it is relative, then search for the first ld in PATH.
6327 elif test "$with_gnu_ld" = yes; then
6328 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6329 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6331 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6332 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6334 if test "${lt_cv_path_LD+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 if test -z "$LD"; then
6338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6339 for ac_dir in $PATH; do
6341 test -z "$ac_dir" && ac_dir=.
6342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6343 lt_cv_path_LD="$ac_dir/$ac_prog"
6344 # Check to see if the program is GNU ld. I'd rather use --version,
6345 # but apparently some variants of GNU ld only accept -v.
6346 # Break only if it was the GNU/non-GNU ld that we prefer.
6347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6348 *GNU* | *'with BFD'*)
6349 test "$with_gnu_ld" != no && break
6352 test "$with_gnu_ld" != yes && break
6359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6364 if test -n "$LD"; then
6365 { echo "$as_me:$LINENO: result: $LD" >&5
6366 echo "${ECHO_T}$LD" >&6; }
6368 { echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6; }
6371 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6372 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6373 { (exit 1); exit 1; }; }
6374 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6375 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6376 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6380 case `$LD -v 2>&1 </dev/null` in
6381 *GNU* | *'with BFD'*)
6382 lt_cv_prog_gnu_ld=yes
6385 lt_cv_prog_gnu_ld=no
6389 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6390 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6391 with_gnu_ld=$lt_cv_prog_gnu_ld
6394 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6395 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6396 if test "${lt_cv_ld_reload_flag+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 lt_cv_ld_reload_flag='-r'
6401 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6402 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6403 reload_flag=$lt_cv_ld_reload_flag
6404 case $reload_flag in
6406 *) reload_flag=" $reload_flag" ;;
6408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6411 if test "$GCC" = yes; then
6412 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6419 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6420 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6421 if test "${lt_cv_path_NM+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 if test -n "$NM"; then
6425 # Let the user override the test.
6428 lt_nm_to_check="${ac_tool_prefix}nm"
6429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6430 lt_nm_to_check="$lt_nm_to_check nm"
6432 for lt_tmp_nm in $lt_nm_to_check; do
6433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6434 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6436 test -z "$ac_dir" && ac_dir=.
6437 tmp_nm="$ac_dir/$lt_tmp_nm"
6438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6439 # Check to see if the nm accepts a BSD-compat flag.
6440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6441 # nm: unknown option "B" ignored
6442 # Tru64's nm complains that /dev/null is an invalid object file
6443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6444 */dev/null* | *'Invalid file or object type'*)
6445 lt_cv_path_NM="$tmp_nm -B"
6449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6451 lt_cv_path_NM="$tmp_nm -p"
6455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6456 continue # so that we can try to find one that supports BSD flags
6465 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6468 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6469 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6472 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6473 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6474 if test "${lt_cv_deplibs_check_method+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 lt_cv_file_magic_cmd='$MAGIC_CMD'
6478 lt_cv_file_magic_test_file=
6479 lt_cv_deplibs_check_method='unknown'
6480 # Need to set the preceding variable on all platforms that support
6481 # interlibrary dependencies.
6482 # 'none' -- dependencies not supported.
6483 # `unknown' -- same as none, but documents that we really don't know.
6484 # 'pass_all' -- all dependencies passed with no checks.
6485 # 'test_compile' -- check by making test program.
6486 # 'file_magic [[regex]]' -- check by looking for files in library path
6487 # which responds to the $file_magic_cmd with a given extended regex.
6488 # If you have `file' or equivalent on your system and you're not sure
6489 # whether `pass_all' will *always* work, you probably want this one.
6493 lt_cv_deplibs_check_method=pass_all
6497 lt_cv_deplibs_check_method=pass_all
6501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6502 lt_cv_file_magic_cmd='/usr/bin/file -L'
6503 lt_cv_file_magic_test_file=/shlib/libc.so
6507 # func_win32_libid is a shell function defined in ltmain.sh
6508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6509 lt_cv_file_magic_cmd='func_win32_libid'
6513 # Base MSYS/MinGW do not provide the 'file' command needed by
6514 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6515 # unless we find 'file', for example because we are cross-compiling.
6516 if ( file / ) >/dev/null 2>&1; then
6517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6518 lt_cv_file_magic_cmd='func_win32_libid'
6520 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6521 lt_cv_file_magic_cmd='$OBJDUMP -f'
6525 darwin* | rhapsody*)
6526 lt_cv_deplibs_check_method=pass_all
6529 freebsd* | dragonfly*)
6530 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6533 # Not sure whether the presence of OpenBSD here was a mistake.
6534 # Let's accept both of them until this is cleared up.
6535 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6536 lt_cv_file_magic_cmd=/usr/bin/file
6537 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6541 lt_cv_deplibs_check_method=pass_all
6546 lt_cv_deplibs_check_method=pass_all
6549 hpux10.20* | hpux11*)
6550 lt_cv_file_magic_cmd=/usr/bin/file
6553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6554 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6557 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]'
6558 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6562 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6568 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6572 irix5* | irix6* | nonstopux*)
6574 *-32|*"-32 ") libmagic=32-bit;;
6575 *-n32|*"-n32 ") libmagic=N32;;
6576 *-64|*"-64 ") libmagic=64-bit;;
6577 *) libmagic=never-match;;
6579 lt_cv_deplibs_check_method=pass_all
6582 # This must be Linux ELF.
6583 linux* | k*bsd*-gnu)
6584 lt_cv_deplibs_check_method=pass_all
6588 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6597 lt_cv_file_magic_cmd=/usr/bin/file
6598 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6602 lt_cv_deplibs_check_method=unknown
6606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6613 osf3* | osf4* | osf5*)
6614 lt_cv_deplibs_check_method=pass_all
6618 lt_cv_deplibs_check_method=pass_all
6622 lt_cv_deplibs_check_method=pass_all
6626 case $host_vendor in
6628 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]'
6629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6632 lt_cv_deplibs_check_method=pass_all
6635 lt_cv_file_magic_cmd='/bin/file'
6636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6639 lt_cv_file_magic_cmd='/bin/file'
6640 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6641 lt_cv_file_magic_test_file=/lib/libc.so
6644 lt_cv_deplibs_check_method=pass_all
6647 lt_cv_deplibs_check_method=pass_all
6652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6653 lt_cv_deplibs_check_method=pass_all
6658 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6659 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6660 file_magic_cmd=$lt_cv_file_magic_cmd
6661 deplibs_check_method=$lt_cv_deplibs_check_method
6662 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6667 # If no C compiler was specified, use CC.
6670 # If no C compiler flags were specified, use CFLAGS.
6671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6673 # Allow CC to be a program name with arguments.
6676 # Check whether --enable-libtool-lock was given.
6677 if test "${enable_libtool_lock+set}" = set; then
6678 enableval=$enable_libtool_lock;
6681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6683 # Some flags need to be propagated to the compiler or linker for good
6687 # Find out which ABI we are using.
6688 echo 'int i;' > conftest.$ac_ext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; then
6694 case `/usr/bin/file conftest.$ac_objext` in
6706 # Find out which ABI we are using.
6707 echo '#line 6707 "configure"' > conftest.$ac_ext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; then
6713 if test "$lt_cv_prog_gnu_ld" = yes; then
6714 case `/usr/bin/file conftest.$ac_objext` in
6716 LD="${LD-ld} -melf32bsmip"
6719 LD="${LD-ld} -melf32bmipn32"
6722 LD="${LD-ld} -melf64bmip"
6726 case `/usr/bin/file conftest.$ac_objext` in
6742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6743 s390*-*linux*|sparc*-*linux*)
6744 # Find out which ABI we are using.
6745 echo 'int i;' > conftest.$ac_ext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747 (eval $ac_compile) 2>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; then
6751 case `/usr/bin/file conftest.o` in
6754 x86_64-*kfreebsd*-gnu)
6755 LD="${LD-ld} -m elf_i386_fbsd"
6758 LD="${LD-ld} -m elf_i386"
6760 ppc64-*linux*|powerpc64-*linux*)
6761 LD="${LD-ld} -m elf32ppclinux"
6764 LD="${LD-ld} -m elf_s390"
6767 LD="${LD-ld} -m elf32_sparc"
6774 x86_64-*kfreebsd*-gnu)
6775 LD="${LD-ld} -m elf_x86_64_fbsd"
6778 LD="${LD-ld} -m elf_x86_64"
6780 ppc*-*linux*|powerpc*-*linux*)
6781 LD="${LD-ld} -m elf64ppc"
6784 LD="${LD-ld} -m elf64_s390"
6787 LD="${LD-ld} -m elf64_sparc"
6797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6798 SAVE_CFLAGS="$CFLAGS"
6799 CFLAGS="$CFLAGS -belf"
6800 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6801 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6802 if test "${lt_cv_cc_needs_belf+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 ac_cpp='$CPP $CPPFLAGS'
6807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (ac_try="$ac_link"
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_link") 2>conftest.er1
6835 grep -v '^ *+' conftest.er1 >conftest.err
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest$ac_exeext &&
6843 $as_test_x conftest$ac_exeext; then
6844 lt_cv_cc_needs_belf=yes
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 lt_cv_cc_needs_belf=no
6852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6853 conftest$ac_exeext conftest.$ac_ext
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6862 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6863 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6864 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6865 CFLAGS="$SAVE_CFLAGS"
6869 # Find out which ABI we are using.
6870 echo 'int i;' > conftest.$ac_ext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; then
6876 case `/usr/bin/file conftest.o` in
6878 case $lt_cv_prog_gnu_ld in
6879 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6880 *) LD="${LD-ld} -64" ;;
6891 need_locks="$enable_libtool_lock"
6895 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6896 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6897 if test "${ac_cv_header_stdc+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6919 rm -f conftest.$ac_objext
6920 if { (ac_try="$ac_compile"
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_compile") 2>conftest.er1
6928 grep -v '^ *+' conftest.er1 >conftest.err
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest.$ac_objext; then
6936 ac_cv_header_stdc=yes
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_cv_header_stdc=no
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 if test $ac_cv_header_stdc = yes; then
6947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6948 cat >conftest.$ac_ext <<_ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "memchr" >/dev/null 2>&1; then
6961 ac_cv_header_stdc=no
6967 if test $ac_cv_header_stdc = yes; then
6968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6969 cat >conftest.$ac_ext <<_ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6979 $EGREP "free" >/dev/null 2>&1; then
6982 ac_cv_header_stdc=no
6988 if test $ac_cv_header_stdc = yes; then
6989 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6990 if test "$cross_compiling" = yes; then
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7001 #if ((' ' & 0x0FF) == 0x020)
7002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7005 # define ISLOWER(c) \
7006 (('a' <= (c) && (c) <= 'i') \
7007 || ('j' <= (c) && (c) <= 'r') \
7008 || ('s' <= (c) && (c) <= 'z'))
7009 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7012 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7017 for (i = 0; i < 256; i++)
7018 if (XOR (islower (i), ISLOWER (i))
7019 || toupper (i) != TOUPPER (i))
7024 rm -f conftest$ac_exeext
7025 if { (ac_try="$ac_link"
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031 (eval "$ac_link") 2>&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7035 { (case "(($ac_try" in
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_try") 2>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7046 echo "$as_me: program exited with status $ac_status" >&5
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7051 ac_cv_header_stdc=no
7053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7059 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7060 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7061 if test $ac_cv_header_stdc = yes; then
7063 cat >>confdefs.h <<\_ACEOF
7064 #define STDC_HEADERS 1
7069 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7079 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7080 inttypes.h stdint.h unistd.h
7082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7096 #include <$ac_header>
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102 *) ac_try_echo=$ac_try;;
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105 (eval "$ac_compile") 2>conftest.er1
7107 grep -v '^ *+' conftest.er1 >conftest.err
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } && {
7112 test -z "$ac_c_werror_flag" ||
7113 test ! -s conftest.err
7114 } && test -s conftest.$ac_objext; then
7115 eval "$as_ac_Header=yes"
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 eval "$as_ac_Header=no"
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 ac_res=`eval echo '${'$as_ac_Header'}'`
7126 { echo "$as_me:$LINENO: result: $ac_res" >&5
7127 echo "${ECHO_T}$ac_res" >&6; }
7128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7129 cat >>confdefs.h <<_ACEOF
7130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7139 for ac_header in dlfcn.h
7141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 ac_res=`eval echo '${'$as_ac_Header'}'`
7149 { echo "$as_me:$LINENO: result: $ac_res" >&5
7150 echo "${ECHO_T}$ac_res" >&6; }
7152 # Is the header compilable?
7153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7162 #include <$ac_header>
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7173 grep -v '^ *+' conftest.er1 >conftest.err
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 ac_header_compiler=yes
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7186 ac_header_compiler=no
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7191 echo "${ECHO_T}$ac_header_compiler" >&6; }
7193 # Is the header present?
7194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 #include <$ac_header>
7204 if { (ac_try="$ac_cpp conftest.$ac_ext"
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } >/dev/null && {
7217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7220 ac_header_preproc=yes
7222 echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 ac_header_preproc=no
7228 rm -f conftest.err conftest.$ac_ext
7229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7230 echo "${ECHO_T}$ac_header_preproc" >&6; }
7232 # So? What about this header?
7233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7239 ac_header_preproc=yes
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7255 ## ---------------------------------------- ##
7256 ## Report this to linux-nfs@vger.kernel.org ##
7257 ## ---------------------------------------- ##
7259 ) | sed "s/^/$as_me: WARNING: /" >&2
7262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 eval "$as_ac_Header=\$ac_header_preproc"
7269 ac_res=`eval echo '${'$as_ac_Header'}'`
7270 { echo "$as_me:$LINENO: result: $ac_res" >&5
7271 echo "${ECHO_T}$ac_res" >&6; }
7274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7275 cat >>confdefs.h <<_ACEOF
7276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7286 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7287 (test "X$CXX" != "Xg++"))) ; then
7289 ac_cpp='$CXXCPP $CPPFLAGS'
7290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7293 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7294 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7295 if test -z "$CXXCPP"; then
7296 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 # Double quotes because CXXCPP needs to be expanded
7300 for CXXCPP in "$CXX -E" "/lib/cpp"
7303 for ac_cxx_preproc_warn_flag in '' yes
7305 # Use a header file that comes with gcc, so configuring glibc
7306 # with a fresh cross-compiler works.
7307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7308 # <limits.h> exists even on freestanding compilers.
7309 # On the NeXT, cc -E runs the code through the compiler's parser,
7310 # not just through cpp. "Syntax error" is here to catch this case.
7311 cat >conftest.$ac_ext <<_ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7318 # include <limits.h>
7320 # include <assert.h>
7324 if { (ac_try="$ac_cpp conftest.$ac_ext"
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7332 grep -v '^ *+' conftest.er1 >conftest.err
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } >/dev/null && {
7337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7338 test ! -s conftest.err
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7345 # Broken: fails on valid input.
7349 rm -f conftest.err conftest.$ac_ext
7351 # OK, works on sane cases. Now check whether nonexistent headers
7352 # can be detected and how.
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <ac_nonexistent.h>
7361 if { (ac_try="$ac_cpp conftest.$ac_ext"
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7369 grep -v '^ *+' conftest.er1 >conftest.err
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } >/dev/null && {
7374 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7375 test ! -s conftest.err
7377 # Broken: success on invalid input.
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 # Passes both tests.
7388 rm -f conftest.err conftest.$ac_ext
7391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7392 rm -f conftest.err conftest.$ac_ext
7393 if $ac_preproc_ok; then
7398 ac_cv_prog_CXXCPP=$CXXCPP
7401 CXXCPP=$ac_cv_prog_CXXCPP
7403 ac_cv_prog_CXXCPP=$CXXCPP
7405 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7406 echo "${ECHO_T}$CXXCPP" >&6; }
7408 for ac_cxx_preproc_warn_flag in '' yes
7410 # Use a header file that comes with gcc, so configuring glibc
7411 # with a fresh cross-compiler works.
7412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7413 # <limits.h> exists even on freestanding compilers.
7414 # On the NeXT, cc -E runs the code through the compiler's parser,
7415 # not just through cpp. "Syntax error" is here to catch this case.
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7423 # include <limits.h>
7425 # include <assert.h>
7429 if { (ac_try="$ac_cpp conftest.$ac_ext"
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7437 grep -v '^ *+' conftest.er1 >conftest.err
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } >/dev/null && {
7442 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7443 test ! -s conftest.err
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 # Broken: fails on valid input.
7454 rm -f conftest.err conftest.$ac_ext
7456 # OK, works on sane cases. Now check whether nonexistent headers
7457 # can be detected and how.
7458 cat >conftest.$ac_ext <<_ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 #include <ac_nonexistent.h>
7466 if { (ac_try="$ac_cpp conftest.$ac_ext"
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7474 grep -v '^ *+' conftest.er1 >conftest.err
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } >/dev/null && {
7479 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7480 test ! -s conftest.err
7482 # Broken: success on invalid input.
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 # Passes both tests.
7493 rm -f conftest.err conftest.$ac_ext
7496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7497 rm -f conftest.err conftest.$ac_ext
7498 if $ac_preproc_ok; then
7501 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7502 See \`config.log' for more details." >&5
7503 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7504 See \`config.log' for more details." >&2;}
7505 { (exit 1); exit 1; }; }
7509 ac_cpp='$CXXCPP $CPPFLAGS'
7510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7518 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7519 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7521 if test -n "$ac_tool_prefix"; then
7522 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
7524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528 if test "${ac_cv_prog_F77+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 if test -n "$F77"; then
7532 ac_cv_prog_F77="$F77" # Let the user override the test.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 if test -n "$F77"; then
7553 { echo "$as_me:$LINENO: result: $F77" >&5
7554 echo "${ECHO_T}$F77" >&6; }
7556 { echo "$as_me:$LINENO: result: no" >&5
7557 echo "${ECHO_T}no" >&6; }
7561 test -n "$F77" && break
7564 if test -z "$F77"; then
7566 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
7568 # Extract the first word of "$ac_prog", so it can be a program name with args.
7569 set dummy $ac_prog; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 if test -n "$ac_ct_F77"; then
7576 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_prog_ac_ct_F77="$ac_prog"
7586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7596 if test -n "$ac_ct_F77"; then
7597 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7598 echo "${ECHO_T}$ac_ct_F77" >&6; }
7600 { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7605 test -n "$ac_ct_F77" && break
7608 if test "x$ac_ct_F77" = x; then
7611 case $cross_compiling:$ac_tool_warned in
7613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7614 whose name does not start with the host triplet. If you think this
7615 configuration is useful to you, please write to autoconf@gnu.org." >&5
7616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7617 whose name does not start with the host triplet. If you think this
7618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7619 ac_tool_warned=yes ;;
7626 # Provide some information about the compiler.
7627 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7628 ac_compiler=`set X $ac_compile; echo $2`
7629 { (ac_try="$ac_compiler --version >&5"
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_compiler --version >&5") 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }
7639 { (ac_try="$ac_compiler -v >&5"
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_compiler -v >&5") 2>&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }
7649 { (ac_try="$ac_compiler -V >&5"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compiler -V >&5") 2>&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }
7661 # If we don't use `.F' as extension, the preprocessor is not run on the
7662 # input file. (Note that this only needs to work for GNU compilers.)
7665 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7666 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7667 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 cat >conftest.$ac_ext <<_ACEOF
7678 rm -f conftest.$ac_objext
7679 if { (ac_try="$ac_compile"
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_compile") 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } && {
7692 test -z "$ac_f77_werror_flag" ||
7693 test ! -s conftest.err
7694 } && test -s conftest.$ac_objext; then
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7707 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7708 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7710 ac_test_FFLAGS=${FFLAGS+set}
7711 ac_save_FFLAGS=$FFLAGS
7713 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7714 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7715 if test "${ac_cv_prog_f77_g+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 cat >conftest.$ac_ext <<_ACEOF
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_compile") 2>conftest.er1
7733 grep -v '^ *+' conftest.er1 >conftest.err
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && {
7738 test -z "$ac_f77_werror_flag" ||
7739 test ! -s conftest.err
7740 } && test -s conftest.$ac_objext; then
7741 ac_cv_prog_f77_g=yes
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7753 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7754 if test "$ac_test_FFLAGS" = set; then
7755 FFLAGS=$ac_save_FFLAGS
7756 elif test $ac_cv_prog_f77_g = yes; then
7757 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7763 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7770 G77=`test $ac_compiler_gnu = yes && echo yes`
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7781 # find the maximum length of command line arguments
7782 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7783 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7784 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 # On DJGPP, this test can blow up pretty badly due to problems in libc
7793 # (any single argument exceeding 2000 bytes causes a buffer overrun
7794 # during glob expansion). Even if it were fixed, the result of this
7795 # check would be larger than it should be.
7796 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7800 # Under GNU Hurd, this test is not required because there is
7801 # no limit to the length of command line arguments.
7802 # Libtool will interpret -1 as no limit whatsoever
7803 lt_cv_sys_max_cmd_len=-1;
7807 # On Win9x/ME, this test blows up -- it succeeds, but takes
7808 # about 5 minutes as the teststring grows exponentially.
7809 # Worse, since 9x/ME are not pre-emptively multitasking,
7810 # you end up with a "frozen" computer, even though with patience
7811 # the test eventually succeeds (with a max line length of 256k).
7812 # Instead, let's just punt: use the minimum linelength reported by
7813 # all of the supported platforms: 8192 (on NT/2K/XP).
7814 lt_cv_sys_max_cmd_len=8192;
7818 # On AmigaOS with pdksh, this test takes hours, literally.
7819 # So we just punt and use a minimum line length of 8192.
7820 lt_cv_sys_max_cmd_len=8192;
7823 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7824 # This has been around since 386BSD, at least. Likely further.
7825 if test -x /sbin/sysctl; then
7826 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7827 elif test -x /usr/sbin/sysctl; then
7828 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7830 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7832 # And add a safety zone
7833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7838 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7839 lt_cv_sys_max_cmd_len=196608
7843 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7844 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7845 # nice to cause kernel panics so lets avoid the loop below.
7846 # First set a reasonable default.
7847 lt_cv_sys_max_cmd_len=16384
7849 if test -x /sbin/sysconfig; then
7850 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7851 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7856 lt_cv_sys_max_cmd_len=102400
7858 sysv5* | sco5v6* | sysv4.2uw2*)
7859 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7860 if test -n "$kargmax"; then
7861 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7863 lt_cv_sys_max_cmd_len=32768
7867 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7868 if test -n "$lt_cv_sys_max_cmd_len"; then
7869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7872 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7873 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7874 = "XX$teststring") >/dev/null 2>&1 &&
7875 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7876 lt_cv_sys_max_cmd_len=$new_result &&
7877 test $i != 17 # 1/2 MB should be enough
7880 teststring=$teststring$teststring
7883 # Add a significant safety factor because C++ compilers can tack on massive
7884 # amounts of additional arguments before passing them to the linker.
7885 # It appears as though 1/2 is a usable value.
7886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7893 if test -n $lt_cv_sys_max_cmd_len ; then
7894 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7895 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7897 { echo "$as_me:$LINENO: result: none" >&5
7898 echo "${ECHO_T}none" >&6; }
7905 # Check for command to grab the raw symbol name followed by C symbol from nm.
7906 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7907 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7908 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 # These are sane defaults that work on at least a few old systems.
7913 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7915 # Character class describing NM global symbol codes.
7916 symcode='[BCDEGRST]'
7918 # Regexp to match symbols that can be accessed directly from C.
7919 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7921 # Transform an extracted symbol line into a proper C declaration
7922 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7924 # Transform an extracted symbol line into symbol name and symbol address
7925 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'"
7927 # Define system-specific variables.
7932 cygwin* | mingw* | pw32*)
7933 symcode='[ABCDGISTW]'
7935 hpux*) # Its linker distinguishes data from code symbols
7936 if test "$host_cpu" = ia64; then
7937 symcode='[ABCDEGRST]'
7939 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7940 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'"
7942 linux* | k*bsd*-gnu)
7943 if test "$host_cpu" = ia64; then
7944 symcode='[ABCDGIRSTW]'
7945 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7946 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'"
7950 symcode='[BCDEGRST]'
7953 symcode='[BCDEGQRST]'
7964 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7972 # Handle CRLF in mingw tool chain
7976 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7980 # If we're using GNU nm, then use its standard symbol codes.
7981 case `$NM -V 2>&1` in
7982 *GNU* | *'with BFD'*)
7983 symcode='[ABCDGIRSTW]' ;;
7986 # Try without a prefix undercore, then with it.
7987 for ac_symprfx in "" "_"; do
7989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7990 symxfrm="\\1 $ac_symprfx\\2 \\2"
7992 # Write the raw and C identifiers.
7993 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7995 # Check to see that the pipe works correctly.
7999 cat > conftest.$ac_ext <<EOF
8004 void nm_test_func(){}
8008 int main(){nm_test_var='a';nm_test_func();return(0);}
8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012 (eval $ac_compile) 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; then
8016 # Now try to grab the symbols.
8018 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8019 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && test -s "$nlist"; then
8023 # Try sorting and uniquifying the output.
8024 if sort "$nlist" | uniq > "$nlist"T; then
8025 mv -f "$nlist"T "$nlist"
8030 # Make sure that we snagged all the symbols we need.
8031 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8032 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8033 cat <<EOF > conftest.$ac_ext
8039 # Now generate the symbol file.
8040 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8042 cat <<EOF >> conftest.$ac_ext
8043 #if defined (__STDC__) && __STDC__
8044 # define lt_ptr_t void *
8046 # define lt_ptr_t char *
8050 /* The mapping between symbol names and symbols. */
8055 lt_preloaded_symbols[] =
8058 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8059 cat <<\EOF >> conftest.$ac_ext
8067 # Now try linking the two files.
8068 mv conftest.$ac_objext conftstm.$ac_objext
8069 lt_save_LIBS="$LIBS"
8070 lt_save_CFLAGS="$CFLAGS"
8071 LIBS="conftstm.$ac_objext"
8072 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074 (eval $ac_link) 2>&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8080 LIBS="$lt_save_LIBS"
8081 CFLAGS="$lt_save_CFLAGS"
8083 echo "cannot find nm_test_func in $nlist" >&5
8086 echo "cannot find nm_test_var in $nlist" >&5
8089 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8092 echo "$progname: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8095 rm -f conftest* conftst*
8097 # Do not use the global_symbol_pipe unless it works.
8098 if test "$pipe_works" = yes; then
8101 lt_cv_sys_global_symbol_pipe=
8107 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8108 lt_cv_sys_global_symbol_to_cdecl=
8110 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8111 { echo "$as_me:$LINENO: result: failed" >&5
8112 echo "${ECHO_T}failed" >&6; }
8114 { echo "$as_me:$LINENO: result: ok" >&5
8115 echo "${ECHO_T}ok" >&6; }
8118 { echo "$as_me:$LINENO: checking for objdir" >&5
8119 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8120 if test "${lt_cv_objdir+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 rm -f .libs 2>/dev/null
8124 mkdir .libs 2>/dev/null
8125 if test -d .libs; then
8128 # MS-DOS does not allow filenames that begin with a dot.
8131 rmdir .libs 2>/dev/null
8133 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8134 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8135 objdir=$lt_cv_objdir
8143 # AIX sometimes has problems with the GCC collect2 program. For some
8144 # reason, if we set the COLLECT_NAMES environment variable, the problems
8145 # vanish in a puff of smoke.
8146 if test "X${COLLECT_NAMES+set}" != Xset; then
8148 export COLLECT_NAMES
8153 # Sed substitution that helps us do robust quoting. It backslashifies
8154 # metacharacters that are still active within double-quoted strings.
8155 Xsed='sed -e 1s/^X//'
8156 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8158 # Same as above, but do not quote variable references.
8159 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8161 # Sed substitution to delay expansion of an escaped shell variable in a
8162 # double_quote_subst'ed string.
8163 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8165 # Sed substitution to avoid accidental globbing in evaled expressions
8166 no_glob_subst='s/\*/\\\*/g'
8172 default_ofile=libtool
8173 can_build_shared=yes
8175 # All known linkers require a `.a' archive for static linking (except MSVC,
8176 # which needs '.lib').
8178 ltmain="$ac_aux_dir/ltmain.sh"
8179 ofile="$default_ofile"
8180 with_gnu_ld="$lt_cv_prog_gnu_ld"
8182 if test -n "$ac_tool_prefix"; then
8183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8184 set dummy ${ac_tool_prefix}ar; ac_word=$2
8185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8187 if test "${ac_cv_prog_AR+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 if test -n "$AR"; then
8191 ac_cv_prog_AR="$AR" # Let the user override the test.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8200 ac_cv_prog_AR="${ac_tool_prefix}ar"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 if test -n "$AR"; then
8212 { echo "$as_me:$LINENO: result: $AR" >&5
8213 echo "${ECHO_T}$AR" >&6; }
8215 { echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6; }
8221 if test -z "$ac_cv_prog_AR"; then
8223 # Extract the first word of "ar", so it can be a program name with args.
8224 set dummy ar; ac_word=$2
8225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 if test -n "$ac_ct_AR"; then
8231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_ac_ct_AR="ar"
8241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8251 if test -n "$ac_ct_AR"; then
8252 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8253 echo "${ECHO_T}$ac_ct_AR" >&6; }
8255 { echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6; }
8259 if test "x$ac_ct_AR" = x; then
8262 case $cross_compiling:$ac_tool_warned in
8264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8265 whose name does not start with the host triplet. If you think this
8266 configuration is useful to you, please write to autoconf@gnu.org." >&5
8267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8268 whose name does not start with the host triplet. If you think this
8269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8270 ac_tool_warned=yes ;;
8278 if test -n "$ac_tool_prefix"; then
8279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283 if test "${ac_cv_prog_RANLIB+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 if test -n "$RANLIB"; then
8287 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 RANLIB=$ac_cv_prog_RANLIB
8307 if test -n "$RANLIB"; then
8308 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8309 echo "${ECHO_T}$RANLIB" >&6; }
8311 { echo "$as_me:$LINENO: result: no" >&5
8312 echo "${ECHO_T}no" >&6; }
8317 if test -z "$ac_cv_prog_RANLIB"; then
8318 ac_ct_RANLIB=$RANLIB
8319 # Extract the first word of "ranlib", so it can be a program name with args.
8320 set dummy ranlib; ac_word=$2
8321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 if test -n "$ac_ct_RANLIB"; then
8327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_prog_ac_ct_RANLIB="ranlib"
8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8347 if test -n "$ac_ct_RANLIB"; then
8348 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8349 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8351 { echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6; }
8355 if test "x$ac_ct_RANLIB" = x; then
8358 case $cross_compiling:$ac_tool_warned in
8360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8361 whose name does not start with the host triplet. If you think this
8362 configuration is useful to you, please write to autoconf@gnu.org." >&5
8363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8364 whose name does not start with the host triplet. If you think this
8365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8366 ac_tool_warned=yes ;;
8368 RANLIB=$ac_ct_RANLIB
8371 RANLIB="$ac_cv_prog_RANLIB"
8374 if test -n "$ac_tool_prefix"; then
8375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8376 set dummy ${ac_tool_prefix}strip; ac_word=$2
8377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8379 if test "${ac_cv_prog_STRIP+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 if test -n "$STRIP"; then
8383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 STRIP=$ac_cv_prog_STRIP
8403 if test -n "$STRIP"; then
8404 { echo "$as_me:$LINENO: result: $STRIP" >&5
8405 echo "${ECHO_T}$STRIP" >&6; }
8407 { echo "$as_me:$LINENO: result: no" >&5
8408 echo "${ECHO_T}no" >&6; }
8413 if test -z "$ac_cv_prog_STRIP"; then
8415 # Extract the first word of "strip", so it can be a program name with args.
8416 set dummy strip; ac_word=$2
8417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8419 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 if test -n "$ac_ct_STRIP"; then
8423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432 ac_cv_prog_ac_ct_STRIP="strip"
8433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8443 if test -n "$ac_ct_STRIP"; then
8444 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8445 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8447 { echo "$as_me:$LINENO: result: no" >&5
8448 echo "${ECHO_T}no" >&6; }
8451 if test "x$ac_ct_STRIP" = x; then
8454 case $cross_compiling:$ac_tool_warned in
8456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8457 whose name does not start with the host triplet. If you think this
8458 configuration is useful to you, please write to autoconf@gnu.org." >&5
8459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8460 whose name does not start with the host triplet. If you think this
8461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8462 ac_tool_warned=yes ;;
8467 STRIP="$ac_cv_prog_STRIP"
8472 old_CFLAGS="$CFLAGS"
8474 # Set sane defaults for various variables
8475 test -z "$AR" && AR=ar
8476 test -z "$AR_FLAGS" && AR_FLAGS=cru
8477 test -z "$AS" && AS=as
8478 test -z "$CC" && CC=cc
8479 test -z "$LTCC" && LTCC=$CC
8480 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8481 test -z "$DLLTOOL" && DLLTOOL=dlltool
8482 test -z "$LD" && LD=ld
8483 test -z "$LN_S" && LN_S="ln -s"
8484 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8485 test -z "$NM" && NM=nm
8486 test -z "$SED" && SED=sed
8487 test -z "$OBJDUMP" && OBJDUMP=objdump
8488 test -z "$RANLIB" && RANLIB=:
8489 test -z "$STRIP" && STRIP=:
8490 test -z "$ac_objext" && ac_objext=o
8492 # Determine commands to create old-style static archives.
8493 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8494 old_postinstall_cmds='chmod 644 $oldlib'
8495 old_postuninstall_cmds=
8497 if test -n "$RANLIB"; then
8500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8506 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8509 for cc_temp in $compiler""; do
8511 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8512 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8517 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8520 # Only perform the check for file, if the check method requires it
8521 case $deplibs_check_method in
8523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8524 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8525 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8526 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8534 lt_save_MAGIC_CMD="$MAGIC_CMD"
8535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537 for ac_dir in $ac_dummy; do
8539 test -z "$ac_dir" && ac_dir=.
8540 if test -f $ac_dir/${ac_tool_prefix}file; then
8541 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8542 if test -n "$file_magic_test_file"; then
8543 case $deplibs_check_method in
8545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548 $EGREP "$file_magic_regex" > /dev/null; then
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such. This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem. Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8570 MAGIC_CMD="$lt_save_MAGIC_CMD"
8575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576 if test -n "$MAGIC_CMD"; then
8577 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8578 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8580 { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8584 if test -z "$lt_cv_path_MAGIC_CMD"; then
8585 if test -n "$ac_tool_prefix"; then
8586 { echo "$as_me:$LINENO: checking for file" >&5
8587 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8588 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8596 lt_save_MAGIC_CMD="$MAGIC_CMD"
8597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8599 for ac_dir in $ac_dummy; do
8601 test -z "$ac_dir" && ac_dir=.
8602 if test -f $ac_dir/file; then
8603 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8604 if test -n "$file_magic_test_file"; then
8605 case $deplibs_check_method in
8607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8610 $EGREP "$file_magic_regex" > /dev/null; then
8615 *** Warning: the command libtool uses to detect shared libraries,
8616 *** $file_magic_cmd, produces output that libtool cannot recognize.
8617 *** The result is that libtool may fail to recognize shared libraries
8618 *** as such. This will affect the creation of libtool libraries that
8619 *** depend on shared libraries, but programs linked with such libtool
8620 *** libraries will work regardless of this problem. Nevertheless, you
8621 *** may want to report the problem to your system manager and/or to
8622 *** bug-libtool@gnu.org
8632 MAGIC_CMD="$lt_save_MAGIC_CMD"
8637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8638 if test -n "$MAGIC_CMD"; then
8639 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8640 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8642 { echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6; }
8658 # Check whether --enable-libtool-lock was given.
8659 if test "${enable_libtool_lock+set}" = set; then
8660 enableval=$enable_libtool_lock;
8663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8666 # Check whether --with-pic was given.
8667 if test "${with_pic+set}" = set; then
8668 withval=$with_pic; pic_mode="$withval"
8673 test -z "$pic_mode" && pic_mode=default
8675 # Use C for the default configuration in the libtool script
8679 ac_cpp='$CPP $CPPFLAGS'
8680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685 # Source file extension for C test sources.
8688 # Object file extension for compiled C test sources.
8692 # Code to be used in simple compile tests
8693 lt_simple_compile_test_code="int some_variable = 0;"
8695 # Code to be used in simple link tests
8696 lt_simple_link_test_code='int main(){return(0);}'
8699 # If no C compiler was specified, use CC.
8702 # If no C compiler flags were specified, use CFLAGS.
8703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8705 # Allow CC to be a program name with arguments.
8709 # save warnings/boilerplate of simple test code
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8712 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8713 _lt_compiler_boilerplate=`cat conftest.err`
8716 ac_outfile=conftest.$ac_objext
8717 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8718 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8719 _lt_linker_boilerplate=`cat conftest.err`
8724 lt_prog_compiler_no_builtin_flag=
8726 if test "$GCC" = yes; then
8727 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8730 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8731 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8732 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 lt_cv_prog_compiler_rtti_exceptions=no
8736 ac_outfile=conftest.$ac_objext
8737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8738 lt_compiler_flag="-fno-rtti -fno-exceptions"
8739 # Insert the option either (1) after the last *FLAGS variable, or
8740 # (2) before a word containing "conftest.", or (3) at the end.
8741 # Note that $ac_compile itself does not contain backslashes and begins
8742 # with a dollar sign (not a hyphen), so the echo should work correctly.
8743 # The option is referenced via a variable to avoid confusing sed.
8744 lt_compile=`echo "$ac_compile" | $SED \
8745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8747 -e 's:$: $lt_compiler_flag:'`
8748 (eval echo "\"\$as_me:8748: $lt_compile\"" >&5)
8749 (eval "$lt_compile" 2>conftest.err)
8751 cat conftest.err >&5
8752 echo "$as_me:8752: \$? = $ac_status" >&5
8753 if (exit $ac_status) && test -s "$ac_outfile"; then
8754 # The compiler can only warn and ignore the option if not recognized
8755 # So say no if there are warnings other than the usual output.
8756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8759 lt_cv_prog_compiler_rtti_exceptions=yes
8765 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8766 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8768 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8769 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8776 lt_prog_compiler_wl=
8777 lt_prog_compiler_pic=
8778 lt_prog_compiler_static=
8780 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8781 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8783 if test "$GCC" = yes; then
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_static='-static'
8789 # All AIX code is PIC.
8790 if test "$host_cpu" = ia64; then
8791 # AIX 5 now supports IA64 processor
8792 lt_prog_compiler_static='-Bstatic'
8797 # FIXME: we need at least 68020 code to build shared libraries, but
8798 # adding the `-m68020' flag to GCC prevents building anything better,
8800 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8803 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8804 # PIC is the default for these OSes.
8807 mingw* | cygwin* | pw32* | os2*)
8808 # This hack is so that the source file can tell whether it is being
8809 # built for inclusion in a dll (and should export symbols for example).
8810 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8811 # (--disable-auto-import) libraries
8812 lt_prog_compiler_pic='-DDLL_EXPORT'
8815 darwin* | rhapsody*)
8816 # PIC is the default on this platform
8817 # Common symbols not allowed in MH_DYLIB files
8818 lt_prog_compiler_pic='-fno-common'
8822 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8823 # Instead, we relocate shared libraries at runtime.
8827 # Just because we use GCC doesn't mean we suddenly get shared libraries
8828 # on systems that don't support them.
8829 lt_prog_compiler_can_build_shared=no
8834 if test -d /usr/nec; then
8835 lt_prog_compiler_pic=-Kconform_pic
8840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8847 lt_prog_compiler_pic='-fPIC'
8853 lt_prog_compiler_pic='-fPIC'
8857 # PORTME Check for flag to pass linker flags through the system compiler.
8860 lt_prog_compiler_wl='-Wl,'
8861 if test "$host_cpu" = ia64; then
8862 # AIX 5 now supports IA64 processor
8863 lt_prog_compiler_static='-Bstatic'
8865 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8869 # PIC is the default on this platform
8870 # Common symbols not allowed in MH_DYLIB files
8871 case $cc_basename in
8873 lt_prog_compiler_pic='-qnocommon'
8874 lt_prog_compiler_wl='-Wl,'
8879 mingw* | cygwin* | pw32* | os2*)
8880 # This hack is so that the source file can tell whether it is being
8881 # built for inclusion in a dll (and should export symbols for example).
8882 lt_prog_compiler_pic='-DDLL_EXPORT'
8885 hpux9* | hpux10* | hpux11*)
8886 lt_prog_compiler_wl='-Wl,'
8887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8894 lt_prog_compiler_pic='+Z'
8897 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8898 lt_prog_compiler_static='${wl}-a ${wl}archive'
8901 irix5* | irix6* | nonstopux*)
8902 lt_prog_compiler_wl='-Wl,'
8903 # PIC (with -KPIC) is the default.
8904 lt_prog_compiler_static='-non_shared'
8908 lt_prog_compiler_pic='-KPIC'
8909 lt_prog_compiler_static='-Bstatic'
8912 linux* | k*bsd*-gnu)
8913 case $cc_basename in
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-static'
8919 pgcc* | pgf77* | pgf90* | pgf95*)
8920 # Portland Group compilers (*not* the Pentium gcc compiler,
8921 # which looks to be a dead project)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-fpic'
8924 lt_prog_compiler_static='-Bstatic'
8927 lt_prog_compiler_wl='-Wl,'
8928 # All Alpha code is PIC.
8929 lt_prog_compiler_static='-non_shared'
8932 case `$CC -V 2>&1 | sed 5q` in
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 lt_prog_compiler_wl='-Wl,'
8940 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8941 lt_prog_compiler_pic='-KPIC'
8942 lt_prog_compiler_static='-Bstatic'
8943 lt_prog_compiler_wl=''
8950 osf3* | osf4* | osf5*)
8951 lt_prog_compiler_wl='-Wl,'
8952 # All OSF/1 code is PIC.
8953 lt_prog_compiler_static='-non_shared'
8957 lt_prog_compiler_static='-non_shared'
8961 lt_prog_compiler_pic='-KPIC'
8962 lt_prog_compiler_static='-Bstatic'
8963 case $cc_basename in
8965 lt_prog_compiler_wl='-Qoption ld ';;
8967 lt_prog_compiler_wl='-Wl,';;
8972 lt_prog_compiler_wl='-Qoption ld '
8973 lt_prog_compiler_pic='-PIC'
8974 lt_prog_compiler_static='-Bstatic'
8977 sysv4 | sysv4.2uw2* | sysv4.3*)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-KPIC'
8980 lt_prog_compiler_static='-Bstatic'
8984 if test -d /usr/nec ;then
8985 lt_prog_compiler_pic='-Kconform_pic'
8986 lt_prog_compiler_static='-Bstatic'
8990 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='-KPIC'
8993 lt_prog_compiler_static='-Bstatic'
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_can_build_shared=no
9002 lt_prog_compiler_pic='-pic'
9003 lt_prog_compiler_static='-Bstatic'
9007 lt_prog_compiler_can_build_shared=no
9012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9013 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9016 # Check to make sure the PIC flag actually works.
9018 if test -n "$lt_prog_compiler_pic"; then
9020 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9021 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9022 if test "${lt_prog_compiler_pic_works+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 lt_prog_compiler_pic_works=no
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9028 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9029 # Insert the option either (1) after the last *FLAGS variable, or
9030 # (2) before a word containing "conftest.", or (3) at the end.
9031 # Note that $ac_compile itself does not contain backslashes and begins
9032 # with a dollar sign (not a hyphen), so the echo should work correctly.
9033 # The option is referenced via a variable to avoid confusing sed.
9034 lt_compile=`echo "$ac_compile" | $SED \
9035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9037 -e 's:$: $lt_compiler_flag:'`
9038 (eval echo "\"\$as_me:9038: $lt_compile\"" >&5)
9039 (eval "$lt_compile" 2>conftest.err)
9041 cat conftest.err >&5
9042 echo "$as_me:9042: \$? = $ac_status" >&5
9043 if (exit $ac_status) && test -s "$ac_outfile"; then
9044 # The compiler can only warn and ignore the option if not recognized
9045 # So say no if there are warnings other than the usual output.
9046 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9049 lt_prog_compiler_pic_works=yes
9055 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9056 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9058 if test x"$lt_prog_compiler_pic_works" = xyes; then
9059 case $lt_prog_compiler_pic in
9061 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9064 lt_prog_compiler_pic=
9065 lt_prog_compiler_can_build_shared=no
9070 # For platforms which do not support PIC, -DPIC is meaningless:
9072 lt_prog_compiler_pic=
9075 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9080 # Check to make sure the static flag actually works.
9082 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9083 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9084 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9085 if test "${lt_prog_compiler_static_works+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 lt_prog_compiler_static_works=no
9089 save_LDFLAGS="$LDFLAGS"
9090 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9091 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9092 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9093 # The linker can only warn and ignore the option if not recognized
9094 # So say no if there are warnings
9095 if test -s conftest.err; then
9096 # Append any errors to the config.log.
9097 cat conftest.err 1>&5
9098 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100 if diff conftest.exp conftest.er2 >/dev/null; then
9101 lt_prog_compiler_static_works=yes
9104 lt_prog_compiler_static_works=yes
9108 LDFLAGS="$save_LDFLAGS"
9111 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9112 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9114 if test x"$lt_prog_compiler_static_works" = xyes; then
9117 lt_prog_compiler_static=
9121 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9122 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9123 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 lt_cv_prog_compiler_c_o=no
9127 $rm -r conftest 2>/dev/null
9131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133 lt_compiler_flag="-o out/conftest2.$ac_objext"
9134 # Insert the option either (1) after the last *FLAGS variable, or
9135 # (2) before a word containing "conftest.", or (3) at the end.
9136 # Note that $ac_compile itself does not contain backslashes and begins
9137 # with a dollar sign (not a hyphen), so the echo should work correctly.
9138 lt_compile=`echo "$ac_compile" | $SED \
9139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9141 -e 's:$: $lt_compiler_flag:'`
9142 (eval echo "\"\$as_me:9142: $lt_compile\"" >&5)
9143 (eval "$lt_compile" 2>out/conftest.err)
9145 cat out/conftest.err >&5
9146 echo "$as_me:9146: \$? = $ac_status" >&5
9147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9149 # The compiler can only warn and ignore the option if not recognized
9150 # So say no if there are warnings
9151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9154 lt_cv_prog_compiler_c_o=yes
9159 # SGI C++ compiler will create directory out/ii_files/ for
9160 # template instantiation
9161 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9162 $rm out/* && rmdir out
9168 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9169 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9172 hard_links="nottested"
9173 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9174 # do not overwrite the value of need_locks provided by the user
9175 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9176 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9181 ln conftest.a conftest.b 2>&5 || hard_links=no
9182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9183 { echo "$as_me:$LINENO: result: $hard_links" >&5
9184 echo "${ECHO_T}$hard_links" >&6; }
9185 if test "$hard_links" = no; then
9186 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9187 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9194 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9195 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9198 allow_undefined_flag=
9199 enable_shared_with_static_runtimes=no
9201 archive_expsym_cmds=
9202 old_archive_From_new_cmds=
9203 old_archive_from_expsyms_cmds=
9204 export_dynamic_flag_spec=
9205 whole_archive_flag_spec=
9206 thread_safe_flag_spec=
9207 hardcode_libdir_flag_spec=
9208 hardcode_libdir_flag_spec_ld=
9209 hardcode_libdir_separator=
9212 hardcode_shlibpath_var=unsupported
9213 link_all_deplibs=unknown
9214 hardcode_automatic=no
9217 always_export_symbols=no
9218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9219 # include_expsyms should be a list of space-separated symbols to be *always*
9220 # included in the symbol list
9222 # exclude_expsyms can be an extended regexp of symbols to exclude
9223 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9224 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9225 # as well as any symbol that contains `d'.
9226 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9227 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9228 # platforms (ab)use it in PIC code, but their linkers get confused if
9229 # the symbol is explicitly referenced. Since portable code cannot
9230 # rely on this symbol name, it's probably fine to never include it in
9231 # preloaded symbol tables.
9232 extract_expsyms_cmds=
9233 # Just being paranoid about ensuring that cc_basename is set.
9234 for cc_temp in $compiler""; do
9236 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9237 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9242 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9245 cygwin* | mingw* | pw32*)
9246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9247 # When not using gcc, we currently assume that we are using
9248 # Microsoft Visual C++.
9249 if test "$GCC" != yes; then
9254 # we just hope/assume this is gcc and not c89 (= MSVC++)
9263 if test "$with_gnu_ld" = yes; then
9264 # If archive_cmds runs LD, not CC, wlarc should be empty
9267 # Set some defaults for GNU ld with shared library support. These
9268 # are reset later if shared libraries are not supported. Putting them
9269 # here allows them to be overridden if necessary.
9270 runpath_var=LD_RUN_PATH
9271 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9272 export_dynamic_flag_spec='${wl}--export-dynamic'
9273 # ancient GNU ld didn't support --whole-archive et. al.
9274 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9277 whole_archive_flag_spec=
9279 supports_anon_versioning=no
9280 case `$LD -v 2>/dev/null` in
9281 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9282 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9283 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9284 *\ 2.11.*) ;; # other 2.11 versions
9285 *) supports_anon_versioning=yes ;;
9288 # See if GNU ld supports shared libraries.
9290 aix3* | aix4* | aix5*)
9291 # On AIX/PPC, the GNU linker is very broken
9292 if test "$host_cpu" != ia64; then
9296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9297 *** to be unable to reliably create shared libraries on AIX.
9298 *** Therefore, libtool is disabling shared libraries support. If you
9299 *** really care for shared libraries, you may want to modify your PATH
9300 *** so that a non-GNU linker is found, and then restart.
9307 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)'
9308 hardcode_libdir_flag_spec='-L$libdir'
9309 hardcode_minus_L=yes
9311 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9312 # that the semantics of dynamic libraries on AmigaOS, at least up
9313 # to version 4, is to share data among multiple programs linked
9314 # with the same dynamic library. Since this doesn't match the
9315 # behavior of shared libraries on other platforms, we can't use
9321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9322 allow_undefined_flag=unsupported
9323 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9324 # support --undefined. This deserves some investigation. FIXME
9325 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 cygwin* | mingw* | pw32*)
9332 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9333 # as there is no search path for DLLs.
9334 hardcode_libdir_flag_spec='-L$libdir'
9335 allow_undefined_flag=unsupported
9336 always_export_symbols=no
9337 enable_shared_with_static_runtimes=yes
9338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9340 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9342 # If the export-symbols file already is a .def file (1st line
9343 # is EXPORTS), use it as is; otherwise, prepend...
9344 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9345 cp $export_symbols $output_objdir/$soname.def;
9347 echo EXPORTS > $output_objdir/$soname.def;
9348 cat $export_symbols >> $output_objdir/$soname.def;
9350 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9358 hardcode_shlibpath_var=no
9359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9360 export_dynamic_flag_spec='${wl}-E'
9361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9362 # Instead, shared libraries are loaded at an image base (0x10000000 by
9363 # default) and relocated if they conflict, which is a slow very memory
9364 # consuming and fragmenting process. To avoid this, we pick a random,
9365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9366 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9368 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'
9371 gnu* | linux* | k*bsd*-gnu)
9372 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9374 case $cc_basename,$host_cpu in
9375 pgcc*) # Portland Group C compiler
9376 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'
9377 tmp_addflag=' $pic_flag'
9379 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9380 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'
9381 tmp_addflag=' $pic_flag -Mnomain' ;;
9382 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9383 tmp_addflag=' -i_dynamic' ;;
9384 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9385 tmp_addflag=' -i_dynamic -nofor_main' ;;
9386 ifc* | ifort*) # Intel Fortran compiler
9387 tmp_addflag=' -nofor_main' ;;
9389 case `$CC -V 2>&1 | sed 5q` in
9390 *Sun\ C*) # Sun C 5.9
9391 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'
9392 tmp_sharedflag='-G' ;;
9393 *Sun\ F*) # Sun Fortran 8.3
9394 tmp_sharedflag='-G' ;;
9396 tmp_sharedflag='-shared' ;;
9398 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 if test $supports_anon_versioning = yes; then
9401 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9403 $echo "local: *; };" >> $output_objdir/$libname.ver~
9404 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9413 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9422 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9426 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9427 *** create shared libraries on Solaris systems. Therefore, libtool
9428 *** is disabling shared libraries support. We urge you to upgrade GNU
9429 *** binutils to release 2.9.1 or newer. Another option is to modify
9430 *** your PATH or compiler configuration so that the native linker is
9431 *** used, and then restart.
9434 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9443 case `$LD -v 2>&1` in
9444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9448 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9449 *** reliably create shared libraries on SCO systems. Therefore, libtool
9450 *** is disabling shared libraries support. We urge you to upgrade GNU
9451 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9452 *** your PATH or compiler configuration so that the native linker is
9453 *** used, and then restart.
9458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9459 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9470 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_shlibpath_var=no
9477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9486 if test "$ld_shlibs" = no; then
9488 hardcode_libdir_flag_spec=
9489 export_dynamic_flag_spec=
9490 whole_archive_flag_spec=
9493 # PORTME fill in a description of your system's linker (not GNU ld)
9496 allow_undefined_flag=unsupported
9497 always_export_symbols=yes
9498 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'
9499 # Note: this linker hardcodes the directories in LIBPATH if there
9500 # are no directories specified by -L.
9501 hardcode_minus_L=yes
9502 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9503 # Neither direct hardcoding nor static linking is supported with a
9505 hardcode_direct=unsupported
9510 if test "$host_cpu" = ia64; then
9511 # On IA64, the linker does run time linking by default, so we don't
9512 # have to do anything special.
9513 aix_use_runtimelinking=no
9514 exp_sym_flag='-Bexport'
9517 # If we're using GNU nm, then we don't want the "-C" option.
9518 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9519 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9520 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'
9522 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'
9524 aix_use_runtimelinking=no
9526 # Test if we are trying to use run time linking or normal
9527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9528 # need to do runtime linking.
9529 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9530 for ld_flag in $LDFLAGS; do
9531 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9532 aix_use_runtimelinking=yes
9539 exp_sym_flag='-bexport'
9540 no_entry_flag='-bnoentry'
9543 # When large executables or shared objects are built, AIX ld can
9544 # have problems creating the table of contents. If linking a library
9545 # or program results in "error TOC overflow" add -mminimal-toc to
9546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9551 hardcode_libdir_separator=':'
9552 link_all_deplibs=yes
9554 if test "$GCC" = yes; then
9555 case $host_os in aix4.[012]|aix4.[012].*)
9556 # We only want to do this on AIX 4.2 and lower, the check
9557 # below for broken collect2 doesn't work under 4.3+
9558 collect2name=`${CC} -print-prog-name=collect2`
9559 if test -f "$collect2name" && \
9560 strings "$collect2name" | grep resolve_lib_name >/dev/null
9562 # We have reworked collect2
9565 # We have old collect2
9566 hardcode_direct=unsupported
9567 # It fails to find uninstalled libraries when the uninstalled
9568 # path is not listed in the libpath. Setting hardcode_minus_L
9569 # to unsupported forces relinking
9570 hardcode_minus_L=yes
9571 hardcode_libdir_flag_spec='-L$libdir'
9572 hardcode_libdir_separator=
9576 shared_flag='-shared'
9577 if test "$aix_use_runtimelinking" = yes; then
9578 shared_flag="$shared_flag "'${wl}-G'
9582 if test "$host_cpu" = ia64; then
9583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9584 # chokes on -Wl,-G. The following line is correct:
9587 if test "$aix_use_runtimelinking" = yes; then
9588 shared_flag='${wl}-G'
9590 shared_flag='${wl}-bM:SRE'
9595 # It seems that -bexpall does not export symbols beginning with
9596 # underscore (_), so it is better to generate a list of symbols to export.
9597 always_export_symbols=yes
9598 if test "$aix_use_runtimelinking" = yes; then
9599 # Warning - without using the other runtime loading flags (-brtl),
9600 # -berok will link without error, but may produce a broken library.
9601 allow_undefined_flag='-berok'
9602 # Determine the default libpath from the value encoded in an empty executable.
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest$ac_exeext &&
9635 $as_test_x conftest$ac_exeext; then
9637 lt_aix_libpath_sed='
9638 /Import File Strings/,/^$/ {
9644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9645 # Check for a 64-bit object if we didn't find anything.
9646 if test -z "$aix_libpath"; then
9647 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9657 conftest$ac_exeext conftest.$ac_ext
9658 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9661 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"
9663 if test "$host_cpu" = ia64; then
9664 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9665 allow_undefined_flag="-z nodefs"
9666 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"
9668 # Determine the default libpath from the value encoded in an empty executable.
9669 cat >conftest.$ac_ext <<_ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest$ac_exeext &&
9701 $as_test_x conftest$ac_exeext; then
9703 lt_aix_libpath_sed='
9704 /Import File Strings/,/^$/ {
9710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 # Check for a 64-bit object if we didn't find anything.
9712 if test -z "$aix_libpath"; then
9713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9723 conftest$ac_exeext conftest.$ac_ext
9724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9727 # Warning - without using the other run time loading flags,
9728 # -berok will link without error, but may produce a broken library.
9729 no_undefined_flag=' ${wl}-bernotok'
9730 allow_undefined_flag=' ${wl}-berok'
9731 # Exported symbols can be pulled into shared objects from archives
9732 whole_archive_flag_spec='$convenience'
9733 archive_cmds_need_lc=yes
9734 # This is similar to how AIX traditionally builds its shared libraries.
9735 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'
9741 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)'
9742 hardcode_libdir_flag_spec='-L$libdir'
9743 hardcode_minus_L=yes
9744 # see comment about different semantics on the GNU ld section
9749 export_dynamic_flag_spec=-rdynamic
9752 cygwin* | mingw* | pw32*)
9753 # When not using gcc, we currently assume that we are using
9754 # Microsoft Visual C++.
9755 # hardcode_libdir_flag_spec is actually meaningless, as there is
9756 # no search path for DLLs.
9757 hardcode_libdir_flag_spec=' '
9758 allow_undefined_flag=unsupported
9759 # Tell ltmain to make .lib files, not .a files.
9761 # Tell ltmain to make .dll files, not .so files.
9763 # FIXME: Setting linknames here is a bad hack.
9764 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9765 # The linker will automatically build a .lib file if we build a DLL.
9766 old_archive_From_new_cmds='true'
9767 # FIXME: Should let the user specify the lib program.
9768 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9769 fix_srcfile_path='`cygpath -w "$srcfile"`'
9770 enable_shared_with_static_runtimes=yes
9773 darwin* | rhapsody*)
9775 rhapsody* | darwin1.[012])
9776 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9779 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9780 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9782 case ${MACOSX_DEPLOYMENT_TARGET} in
9784 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9787 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9793 archive_cmds_need_lc=no
9795 hardcode_automatic=yes
9796 hardcode_shlibpath_var=unsupported
9797 whole_archive_flag_spec=''
9798 link_all_deplibs=yes
9799 if test "$GCC" = yes ; then
9800 output_verbose_link_cmd='echo'
9801 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9802 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9804 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}'
9805 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}'
9807 case $cc_basename in
9809 output_verbose_link_cmd='echo'
9810 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9811 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9813 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}'
9814 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}'
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_shlibpath_var=no
9833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9834 # support. Future versions do this automatically, but an explicit c++rt0.o
9835 # does not break anything, and helps significantly (at the cost of a little
9838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9839 hardcode_libdir_flag_spec='-R$libdir'
9841 hardcode_shlibpath_var=no
9844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9848 hardcode_minus_L=yes
9849 hardcode_shlibpath_var=no
9852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9853 freebsd* | dragonfly*)
9854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9855 hardcode_libdir_flag_spec='-R$libdir'
9857 hardcode_shlibpath_var=no
9861 if test "$GCC" = yes; then
9862 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'
9864 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'
9866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9867 hardcode_libdir_separator=:
9870 # hardcode_minus_L: Not really in the search PATH,
9871 # but as the default location of the library.
9872 hardcode_minus_L=yes
9873 export_dynamic_flag_spec='${wl}-E'
9877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9880 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9882 if test "$with_gnu_ld" = no; then
9883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9884 hardcode_libdir_separator=:
9887 export_dynamic_flag_spec='${wl}-E'
9889 # hardcode_minus_L: Not really in the search PATH,
9890 # but as the default location of the library.
9891 hardcode_minus_L=yes
9896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9899 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9911 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9921 if test "$with_gnu_ld" = no; then
9922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9923 hardcode_libdir_separator=:
9927 hardcode_libdir_flag_spec_ld='+b $libdir'
9929 hardcode_shlibpath_var=no
9933 export_dynamic_flag_spec='${wl}-E'
9935 # hardcode_minus_L: Not really in the search PATH,
9936 # but as the default location of the library.
9937 hardcode_minus_L=yes
9943 irix5* | irix6* | nonstopux*)
9944 if test "$GCC" = yes; then
9945 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'
9947 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'
9948 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951 hardcode_libdir_separator=:
9952 link_all_deplibs=yes
9956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9959 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9961 hardcode_libdir_flag_spec='-R$libdir'
9963 hardcode_shlibpath_var=no
9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970 hardcode_libdir_separator=:
9971 hardcode_shlibpath_var=no
9975 if test -f /usr/libexec/ld.so; then
9977 hardcode_shlibpath_var=no
9978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9982 export_dynamic_flag_spec='${wl}-E'
9985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_libdir_flag_spec='-R$libdir'
9990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10001 hardcode_libdir_flag_spec='-L$libdir'
10002 hardcode_minus_L=yes
10003 allow_undefined_flag=unsupported
10004 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'
10005 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10013 allow_undefined_flag=' -expect_unresolved \*'
10014 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'
10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017 hardcode_libdir_separator=:
10020 osf4* | osf5*) # as osf3* with the addition of -msym flag
10021 if test "$GCC" = yes; then
10022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10023 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'
10024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026 allow_undefined_flag=' -expect_unresolved \*'
10027 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'
10028 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10029 $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'
10031 # Both c and cxx compiler support -rpath directly
10032 hardcode_libdir_flag_spec='-rpath $libdir'
10034 hardcode_libdir_separator=:
10038 no_undefined_flag=' -z text'
10039 if test "$GCC" = yes; then
10041 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10043 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10046 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10048 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10050 hardcode_libdir_flag_spec='-R$libdir'
10051 hardcode_shlibpath_var=no
10053 solaris2.[0-5] | solaris2.[0-5].*) ;;
10055 # The compiler driver will combine and reorder linker options,
10056 # but understands `-z linker_flag'. GCC discards it without `$wl',
10057 # but is careful enough not to reorder.
10058 # Supported since Solaris 2.6 (maybe 2.5.1?)
10059 if test "$GCC" = yes; then
10060 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10062 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10066 link_all_deplibs=yes
10070 if test "x$host_vendor" = xsequent; then
10071 # Use $CC to link under sequent, because it throws in some extra .o
10072 # files that make .init and .fini sections work.
10073 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_direct=yes
10079 hardcode_minus_L=yes
10080 hardcode_shlibpath_var=no
10084 case $host_vendor in
10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087 hardcode_direct=yes # is this really true???
10090 ## LD is ld it makes a PLAMLIB
10091 ## CC just makes a GrossModule.
10092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10093 reload_cmds='$CC -r -o $output$reload_objs'
10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10101 runpath_var='LD_RUN_PATH'
10102 hardcode_shlibpath_var=no
10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_shlibpath_var=no
10108 export_dynamic_flag_spec='-Bexport'
10112 if test -d /usr/nec; then
10113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_shlibpath_var=no
10115 runpath_var=LD_RUN_PATH
10116 hardcode_runpath_var=yes
10121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10122 no_undefined_flag='${wl}-z,text'
10123 archive_cmds_need_lc=no
10124 hardcode_shlibpath_var=no
10125 runpath_var='LD_RUN_PATH'
10127 if test "$GCC" = yes; then
10128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 sysv5* | sco3.2v5* | sco5v6*)
10137 # Note: We can NOT use -z defs as we might desire, because we do not
10138 # link with -lc, and that would cause any symbols used from libc to
10139 # always be unresolved, which means just about no library would
10140 # ever link correctly. If we're not using GNU ld we use -z text
10141 # though, which does catch some bad symbols but isn't as heavy-handed
10143 no_undefined_flag='${wl}-z,text'
10144 allow_undefined_flag='${wl}-z,nodefs'
10145 archive_cmds_need_lc=no
10146 hardcode_shlibpath_var=no
10147 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10148 hardcode_libdir_separator=':'
10149 link_all_deplibs=yes
10150 export_dynamic_flag_spec='${wl}-Bexport'
10151 runpath_var='LD_RUN_PATH'
10153 if test "$GCC" = yes; then
10154 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_shlibpath_var=no
10174 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10175 echo "${ECHO_T}$ld_shlibs" >&6; }
10176 test "$ld_shlibs" = no && can_build_shared=no
10179 # Do we need to explicitly link libc?
10181 case "x$archive_cmds_need_lc" in
10183 # Assume -lc should be added
10184 archive_cmds_need_lc=yes
10186 if test "$enable_shared" = yes && test "$GCC" = yes; then
10187 case $archive_cmds in
10189 # FIXME: we may have to deal with multi-command sequences.
10192 # Test whether the compiler implicitly links with -lc since on some
10193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10194 # to ld, don't add -lc before -lgcc.
10195 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201 (eval $ac_compile) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } 2>conftest.err; then
10207 libobjs=conftest.$ac_objext
10209 wl=$lt_prog_compiler_wl
10210 pic_flag=$lt_prog_compiler_pic
10216 lt_save_allow_undefined_flag=$allow_undefined_flag
10217 allow_undefined_flag=
10218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10219 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }
10224 archive_cmds_need_lc=no
10226 archive_cmds_need_lc=yes
10228 allow_undefined_flag=$lt_save_allow_undefined_flag
10230 cat conftest.err 1>&5
10233 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10234 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10241 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10243 library_names_spec=
10244 libname_spec='lib$name'
10248 postuninstall_cmds=
10252 shlibpath_overrides_runpath=unknown
10254 dynamic_linker="$host_os ld.so"
10255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10257 if test "$GCC" = yes; then
10259 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10260 *) lt_awk_arg="/^libraries:/" ;;
10262 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10263 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10264 # if the path contains ";" then we assume it to be the separator
10265 # otherwise default to the standard path separator (i.e. ":") - it is
10266 # assumed that no part of a normal pathname contains ";" but that should
10267 # okay in the real world where ";" in dirpaths is itself problematic.
10268 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10270 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10272 # Ok, now we have the path, separated by spaces, we can step through it
10273 # and add multilib dir if necessary.
10274 lt_tmp_lt_search_path_spec=
10275 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10276 for lt_sys_path in $lt_search_path_spec; do
10277 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10278 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10280 test -d "$lt_sys_path" && \
10281 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10284 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10285 BEGIN {RS=" "; FS="/|\n";} {
10288 for (lt_i = NF; lt_i > 0; lt_i--) {
10289 if ($lt_i != "" && $lt_i != ".") {
10290 if ($lt_i == "..") {
10293 if (lt_count == 0) {
10294 lt_foo="/" $lt_i lt_foo;
10301 if (lt_foo != "") { lt_freq[lt_foo]++; }
10302 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10304 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10308 need_lib_prefix=unknown
10309 hardcode_into_libs=no
10311 # when you set need_version to no, make sure it does not cause -set_version
10312 # flags to be left without arguments
10313 need_version=unknown
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10319 shlibpath_var=LIBPATH
10321 # AIX 3 has no versioning support, so we append a major version to the name.
10322 soname_spec='${libname}${release}${shared_ext}$major'
10329 hardcode_into_libs=yes
10330 if test "$host_cpu" = ia64; then
10331 # AIX 5 supports IA64
10332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10333 shlibpath_var=LD_LIBRARY_PATH
10335 # With GCC up to 2.95.x, collect2 would create an import file
10336 # for dependence libraries. The import file would start with
10337 # the line `#! .'. This would cause the generated library to
10338 # depend on `.', always an invalid library. This was fixed in
10339 # development snapshots of GCC prior to 3.0.
10341 aix4 | aix4.[01] | aix4.[01].*)
10342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10344 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10347 can_build_shared=no
10351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10352 # soname into executable. Probably we can add versioning support to
10353 # collect2, so additional links can be useful in future.
10354 if test "$aix_use_runtimelinking" = yes; then
10355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10356 # instead of lib<name>.a to let people know that these are not
10357 # typical AIX shared libraries.
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 # We preserve .a as extension for shared libraries through AIX4.2
10361 # and later when we are not doing run time linking.
10362 library_names_spec='${libname}${release}.a $libname.a'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LIBPATH
10370 library_names_spec='$libname.ixlibrary $libname.a'
10371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10372 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'
10376 library_names_spec='${libname}${shared_ext}'
10377 dynamic_linker="$host_os ld.so"
10378 shlibpath_var=LIBRARY_PATH
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10390 # the default ld.so.conf also contains /usr/contrib/lib and
10391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10392 # libtool to hard-code these into programs
10395 cygwin* | mingw* | pw32*)
10396 version_type=windows
10401 case $GCC,$host_os in
10402 yes,cygwin* | yes,mingw* | yes,pw32*)
10403 library_names_spec='$libname.dll.a'
10404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10405 postinstall_cmds='base_file=`basename \${file}`~
10406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10407 dldir=$destdir/`dirname \$dlpath`~
10408 test -d \$dldir || mkdir -p \$dldir~
10409 $install_prog $dir/$dlname \$dldir/$dlname~
10410 chmod a+x \$dldir/$dlname'
10411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10412 dlpath=$dir/\$dldll~
10414 shlibpath_overrides_runpath=yes
10418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10423 # MinGW DLLs use traditional 'lib' prefix
10424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10427 # It is most probably a Windows format PATH printed by
10428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10429 # path with ; separators, and with drive letters. We can handle the
10430 # drive letters (cygwin fileutils understands them), so leave them,
10431 # especially as we might pass files found there to a mingw objdump,
10432 # which wouldn't understand a cygwinified path. Ahh.
10433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10439 # pw32 DLLs use 'pw' prefix rather than 'lib'
10440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10449 dynamic_linker='Win32 ld.exe'
10450 # FIXME: first we should search . and the directory the executable is in
10454 darwin* | rhapsody*)
10455 dynamic_linker="$host_os dyld"
10456 version_type=darwin
10459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10460 soname_spec='${libname}${release}${major}$shared_ext'
10461 shlibpath_overrides_runpath=yes
10462 shlibpath_var=DYLD_LIBRARY_PATH
10463 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10465 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 shlibpath_var=LD_LIBRARY_PATH
10482 freebsd* | dragonfly*)
10483 # DragonFly does not have aout. When/if they implement a new
10484 # versioning mechanism, adjust this.
10485 if test -x /usr/bin/objformat; then
10486 objformat=`/usr/bin/objformat`
10489 freebsd[123]*) objformat=aout ;;
10490 *) objformat=elf ;;
10493 version_type=freebsd-$objformat
10494 case $version_type in
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10505 shlibpath_var=LD_LIBRARY_PATH
10508 shlibpath_overrides_runpath=yes
10510 freebsd3.[01]* | freebsdelf3.[01]*)
10511 shlibpath_overrides_runpath=yes
10512 hardcode_into_libs=yes
10514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10516 shlibpath_overrides_runpath=no
10517 hardcode_into_libs=yes
10519 *) # from 4.6 on, and DragonFly
10520 shlibpath_overrides_runpath=yes
10521 hardcode_into_libs=yes
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 hardcode_into_libs=yes
10536 hpux9* | hpux10* | hpux11*)
10537 # Give a soname corresponding to the major version so that dld.sl refuses to
10538 # link against other versions.
10545 hardcode_into_libs=yes
10546 dynamic_linker="$host_os dld.so"
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 if test "X$HPUX_IA64_MODE" = X32; then
10552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10560 hardcode_into_libs=yes
10561 dynamic_linker="$host_os dld.sl"
10562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10571 dynamic_linker="$host_os dld.sl"
10572 shlibpath_var=SHLIB_PATH
10573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
10578 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10579 postinstall_cmds='chmod 555 $lib'
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=no
10591 hardcode_into_libs=yes
10594 irix5* | irix6* | nonstopux*)
10596 nonstopux*) version_type=nonstopux ;;
10598 if test "$lt_cv_prog_gnu_ld" = yes; then
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10609 irix5* | nonstopux*)
10610 libsuff= shlibsuff=
10613 case $LD in # libtool.m4 will add one of these switches to LD
10614 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10615 libsuff= shlibsuff= libmagic=32-bit;;
10616 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10617 libsuff=32 shlibsuff=N32 libmagic=N32;;
10618 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10619 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10620 *) libsuff= shlibsuff= libmagic=never-match;;
10624 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10625 shlibpath_overrides_runpath=no
10626 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10627 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10628 hardcode_into_libs=yes
10631 # No shared lib support for Linux oldld, aout, or coff.
10632 linux*oldld* | linux*aout* | linux*coff*)
10636 # This must be Linux ELF.
10637 linux* | k*bsd*-gnu)
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 shlibpath_overrides_runpath=no
10646 # This implies no fast_install, which is unacceptable.
10647 # Some rework will be needed to allow for fast_install
10648 # before this can be enabled.
10649 hardcode_into_libs=yes
10650 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10651 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10653 # Append ld.so.conf contents to the search path
10654 if test -f /etc/ld.so.conf; then
10655 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' ' '`
10656 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10659 # We used to test for /lib/ld.so.1 and disable shared libraries on
10660 # powerpc, because MkLinux only supported shared libraries with the
10661 # GNU dynamic linker. Since this was broken with cross compilers,
10662 # most powerpc-linux boxes support dynamic linking these days and
10663 # people can always --disable-shared, the test was removed, and we
10664 # assume the GNU/Linux dynamic linker is in use.
10665 dynamic_linker='GNU/Linux ld.so'
10672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10675 dynamic_linker='NetBSD (a.out) ld.so'
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 dynamic_linker='NetBSD ld.elf_so'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 shlibpath_overrides_runpath=yes
10683 hardcode_into_libs=yes
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 shlibpath_overrides_runpath=yes
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 shlibpath_overrides_runpath=yes
10705 sys_lib_dlsearch_path_spec="/usr/lib"
10707 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10709 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10710 *) need_version=no ;;
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10717 openbsd2.[89] | openbsd2.[89].*)
10718 shlibpath_overrides_runpath=no
10721 shlibpath_overrides_runpath=yes
10725 shlibpath_overrides_runpath=yes
10730 libname_spec='$name'
10733 library_names_spec='$libname${shared_ext} $libname.a'
10734 dynamic_linker='OS/2 ld.exe'
10735 shlibpath_var=LIBPATH
10738 osf3* | osf4* | osf5*)
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10746 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 # ldd complains unless libraries are executable
10763 postinstall_cmds='chmod +x $lib'
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10769 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=yes
10772 if test "$with_gnu_ld" = yes; then
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 case $host_vendor in
10785 shlibpath_overrides_runpath=no
10787 export_dynamic_flag_spec='${wl}-Blargedynsym'
10788 runpath_var=LD_RUN_PATH
10796 shlibpath_overrides_runpath=no
10797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10803 if test -d /usr/nec ;then
10805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10806 soname_spec='$libname${shared_ext}.$major'
10807 shlibpath_var=LD_LIBRARY_PATH
10811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10812 version_type=freebsd-elf
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 hardcode_into_libs=yes
10819 if test "$with_gnu_ld" = yes; then
10820 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10821 shlibpath_overrides_runpath=no
10823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10824 shlibpath_overrides_runpath=yes
10827 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10831 sys_lib_dlsearch_path_spec='/usr/lib'
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10845 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10846 echo "${ECHO_T}$dynamic_linker" >&6; }
10847 test "$dynamic_linker" = no && can_build_shared=no
10849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10850 if test "$GCC" = yes; then
10851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10854 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10855 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10857 if test -n "$hardcode_libdir_flag_spec" || \
10858 test -n "$runpath_var" || \
10859 test "X$hardcode_automatic" = "Xyes" ; then
10861 # We can hardcode non-existant directories.
10862 if test "$hardcode_direct" != no &&
10863 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10864 # have to relink, otherwise we might link with an installed library
10865 # when we should be linking with a yet-to-be-installed one
10866 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10867 test "$hardcode_minus_L" != no; then
10868 # Linking always hardcodes the temporary library directory.
10869 hardcode_action=relink
10871 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10872 hardcode_action=immediate
10875 # We cannot hardcode anything, or else we can only hardcode existing
10877 hardcode_action=unsupported
10879 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10880 echo "${ECHO_T}$hardcode_action" >&6; }
10882 if test "$hardcode_action" = relink; then
10883 # Fast installation is not supported
10884 enable_fast_install=no
10885 elif test "$shlibpath_overrides_runpath" = yes ||
10886 test "$enable_shared" = no; then
10887 # Fast installation is not necessary
10888 enable_fast_install=needless
10893 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10894 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10895 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10896 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10897 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10898 { echo "$as_me:$LINENO: result: yes" >&5
10899 echo "${ECHO_T}yes" >&6; }
10901 # FIXME - insert some real tests, host_os isn't really good enough
10904 if test -n "$STRIP" ; then
10905 striplib="$STRIP -x"
10906 old_striplib="$STRIP -S"
10907 { echo "$as_me:$LINENO: result: yes" >&5
10908 echo "${ECHO_T}yes" >&6; }
10910 { echo "$as_me:$LINENO: result: no" >&5
10911 echo "${ECHO_T}no" >&6; }
10915 { echo "$as_me:$LINENO: result: no" >&5
10916 echo "${ECHO_T}no" >&6; }
10921 if test "x$enable_dlopen" != xyes; then
10922 enable_dlopen=unknown
10923 enable_dlopen_self=unknown
10924 enable_dlopen_self_static=unknown
10931 lt_cv_dlopen="load_add_on"
10933 lt_cv_dlopen_self=yes
10937 lt_cv_dlopen="LoadLibrary"
10942 lt_cv_dlopen="dlopen"
10947 # if libdl is installed we need to link against it
10948 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 ac_check_lib_save_LIBS=$LIBS
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_link") 2>conftest.er1
10986 grep -v '^ *+' conftest.er1 >conftest.err
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest$ac_exeext &&
10994 $as_test_x conftest$ac_exeext; then
10995 ac_cv_lib_dl_dlopen=yes
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 ac_cv_lib_dl_dlopen=no
11003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11007 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11008 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11009 if test $ac_cv_lib_dl_dlopen = yes; then
11010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11013 lt_cv_dlopen="dyld"
11015 lt_cv_dlopen_self=yes
11022 { echo "$as_me:$LINENO: checking for shl_load" >&5
11023 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11024 if test "${ac_cv_func_shl_load+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11035 #define shl_load innocuous_shl_load
11037 /* System header to define __stub macros and hopefully few prototypes,
11038 which can conflict with char shl_load (); below.
11039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11040 <limits.h> exists even on freestanding compilers. */
11043 # include <limits.h>
11045 # include <assert.h>
11050 /* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11057 /* The GNU C library defines this for functions which it implements
11058 to always fail with ENOSYS. Some functions are actually named
11059 something starting with __ and the normal name is an alias. */
11060 #if defined __stub_shl_load || defined __stub___shl_load
11067 return shl_load ();
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (ac_try="$ac_link"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_link") 2>conftest.er1
11081 grep -v '^ *+' conftest.er1 >conftest.err
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } && {
11086 test -z "$ac_c_werror_flag" ||
11087 test ! -s conftest.err
11088 } && test -s conftest$ac_exeext &&
11089 $as_test_x conftest$ac_exeext; then
11090 ac_cv_func_shl_load=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 ac_cv_func_shl_load=no
11098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11099 conftest$ac_exeext conftest.$ac_ext
11101 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11102 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11103 if test $ac_cv_func_shl_load = yes; then
11104 lt_cv_dlopen="shl_load"
11106 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11107 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11108 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 ac_check_lib_save_LIBS=$LIBS
11113 cat >conftest.$ac_ext <<_ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11120 /* Override any GCC internal prototype to avoid an error.
11121 Use char because int might match the return type of a GCC
11122 builtin and then its argument prototype would still apply. */
11130 return shl_load ();
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && {
11149 test -z "$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 } && test -s conftest$ac_exeext &&
11152 $as_test_x conftest$ac_exeext; then
11153 ac_cv_lib_dld_shl_load=yes
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ac_cv_lib_dld_shl_load=no
11161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11162 conftest$ac_exeext conftest.$ac_ext
11163 LIBS=$ac_check_lib_save_LIBS
11165 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11166 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11167 if test $ac_cv_lib_dld_shl_load = yes; then
11168 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11170 { echo "$as_me:$LINENO: checking for dlopen" >&5
11171 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11172 if test "${ac_cv_func_dlopen+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11183 #define dlopen innocuous_dlopen
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char dlopen (); below.
11187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11188 <limits.h> exists even on freestanding compilers. */
11191 # include <limits.h>
11193 # include <assert.h>
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined __stub_dlopen || defined __stub___dlopen
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (ac_try="$ac_link"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_link") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1 >conftest.err
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest$ac_exeext &&
11237 $as_test_x conftest$ac_exeext; then
11238 ac_cv_func_dlopen=yes
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ac_cv_func_dlopen=no
11246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11247 conftest$ac_exeext conftest.$ac_ext
11249 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11250 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11251 if test $ac_cv_func_dlopen = yes; then
11252 lt_cv_dlopen="dlopen"
11254 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11255 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 ac_check_lib_save_LIBS=$LIBS
11261 cat >conftest.$ac_ext <<_ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11268 /* Override any GCC internal prototype to avoid an error.
11269 Use char because int might match the return type of a GCC
11270 builtin and then its argument prototype would still apply. */
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (ac_try="$ac_link"
11285 case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_link") 2>conftest.er1
11292 grep -v '^ *+' conftest.er1 >conftest.err
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } && {
11297 test -z "$ac_c_werror_flag" ||
11298 test ! -s conftest.err
11299 } && test -s conftest$ac_exeext &&
11300 $as_test_x conftest$ac_exeext; then
11301 ac_cv_lib_dl_dlopen=yes
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ac_cv_lib_dl_dlopen=no
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_lib_save_LIBS
11313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11314 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11315 if test $ac_cv_lib_dl_dlopen = yes; then
11316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11318 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11319 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11320 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 ac_check_lib_save_LIBS=$LIBS
11324 LIBS="-lsvld $LIBS"
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (ac_try="$ac_link"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_link") 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && {
11361 test -z "$ac_c_werror_flag" ||
11362 test ! -s conftest.err
11363 } && test -s conftest$ac_exeext &&
11364 $as_test_x conftest$ac_exeext; then
11365 ac_cv_lib_svld_dlopen=yes
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_cv_lib_svld_dlopen=no
11373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11374 conftest$ac_exeext conftest.$ac_ext
11375 LIBS=$ac_check_lib_save_LIBS
11377 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11378 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11379 if test $ac_cv_lib_svld_dlopen = yes; then
11380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11382 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11383 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11384 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 ac_check_lib_save_LIBS=$LIBS
11389 cat >conftest.$ac_ext <<_ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11396 /* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11406 return dld_link ();
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_link") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest$ac_exeext &&
11428 $as_test_x conftest$ac_exeext; then
11429 ac_cv_lib_dld_dld_link=yes
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 ac_cv_lib_dld_dld_link=no
11437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11438 conftest$ac_exeext conftest.$ac_ext
11439 LIBS=$ac_check_lib_save_LIBS
11441 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11442 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11443 if test $ac_cv_lib_dld_dld_link = yes; then
11444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11465 if test "x$lt_cv_dlopen" != xno; then
11471 case $lt_cv_dlopen in
11473 save_CPPFLAGS="$CPPFLAGS"
11474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11476 save_LDFLAGS="$LDFLAGS"
11477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11480 LIBS="$lt_cv_dlopen_libs $LIBS"
11482 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11483 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11484 if test "${lt_cv_dlopen_self+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 if test "$cross_compiling" = yes; then :
11488 lt_cv_dlopen_self=cross
11490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11491 lt_status=$lt_dlunknown
11492 cat > conftest.$ac_ext <<EOF
11493 #line 11493 "configure"
11494 #include "confdefs.h"
11503 # define LT_DLGLOBAL RTLD_GLOBAL
11506 # define LT_DLGLOBAL DL_GLOBAL
11508 # define LT_DLGLOBAL 0
11512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11513 find out it does not work in some platform. */
11514 #ifndef LT_DLLAZY_OR_NOW
11516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11519 # define LT_DLLAZY_OR_NOW DL_LAZY
11522 # define LT_DLLAZY_OR_NOW RTLD_NOW
11525 # define LT_DLLAZY_OR_NOW DL_NOW
11527 # define LT_DLLAZY_OR_NOW 0
11535 extern "C" void exit (int);
11538 void fnord() { int i=42;}
11541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11542 int status = $lt_dlunknown;
11546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11548 /* dlclose (self); */
11556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11557 (eval $ac_link) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11561 (./conftest; exit; ) >&5 2>/dev/null
11563 case x$lt_status in
11564 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11565 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11566 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11569 # compilation failed
11570 lt_cv_dlopen_self=no
11577 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11578 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11580 if test "x$lt_cv_dlopen_self" = xyes; then
11581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11582 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11583 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11584 if test "${lt_cv_dlopen_self_static+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 if test "$cross_compiling" = yes; then :
11588 lt_cv_dlopen_self_static=cross
11590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11591 lt_status=$lt_dlunknown
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11593 "configure"
11594 #include "confdefs.h"
11603 # define LT_DLGLOBAL RTLD_GLOBAL
11606 # define LT_DLGLOBAL DL_GLOBAL
11608 # define LT_DLGLOBAL 0
11612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11613 find out it does not work in some platform. */
11614 #ifndef LT_DLLAZY_OR_NOW
11616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11619 # define LT_DLLAZY_OR_NOW DL_LAZY
11622 # define LT_DLLAZY_OR_NOW RTLD_NOW
11625 # define LT_DLLAZY_OR_NOW DL_NOW
11627 # define LT_DLLAZY_OR_NOW 0
11635 extern "C" void exit (int);
11638 void fnord() { int i=42;}
11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11642 int status = $lt_dlunknown;
11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11648 /* dlclose (self); */
11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11661 (./conftest; exit; ) >&5 2>/dev/null
11663 case x$lt_status in
11664 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11665 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11666 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11669 # compilation failed
11670 lt_cv_dlopen_self_static=no
11677 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11678 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11681 CPPFLAGS="$save_CPPFLAGS"
11682 LDFLAGS="$save_LDFLAGS"
11687 case $lt_cv_dlopen_self in
11688 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11689 *) enable_dlopen_self=unknown ;;
11692 case $lt_cv_dlopen_self_static in
11693 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11694 *) enable_dlopen_self_static=unknown ;;
11699 # Report which library types will actually be built
11700 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11701 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11702 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11703 echo "${ECHO_T}$can_build_shared" >&6; }
11705 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11706 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11707 test "$can_build_shared" = "no" && enable_shared=no
11709 # On AIX, shared libraries and static libraries use the same namespace, and
11710 # are all built from PIC.
11713 test "$enable_shared" = yes && enable_static=no
11714 if test -n "$RANLIB"; then
11715 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11716 postinstall_cmds='$RANLIB $lib'
11721 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11722 test "$enable_shared" = yes && enable_static=no
11726 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11727 echo "${ECHO_T}$enable_shared" >&6; }
11729 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11730 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11731 # Make sure either enable_shared or enable_static is yes.
11732 test "$enable_shared" = yes || enable_static=yes
11733 { echo "$as_me:$LINENO: result: $enable_static" >&5
11734 echo "${ECHO_T}$enable_static" >&6; }
11736 # The else clause should only fire when bootstrapping the
11737 # libtool distribution, otherwise you forgot to ship ltmain.sh
11738 # with your package, and you will get complaints that there are
11739 # no rules to generate ltmain.sh.
11740 if test -f "$ltmain"; then
11741 # See if we are running on zsh, and set the options which allow our commands through
11742 # without removal of \ escapes.
11743 if test -n "${ZSH_VERSION+set}" ; then
11744 setopt NO_GLOB_SUBST
11746 # Now quote all the things that may contain metacharacters while being
11747 # careful not to overquote the AC_SUBSTed values. We take copies of the
11748 # variables and quote the copies for generation of the libtool script.
11749 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11753 deplibs_check_method reload_flag reload_cmds need_locks \
11754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11755 lt_cv_sys_global_symbol_to_c_name_address \
11756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11757 old_postinstall_cmds old_postuninstall_cmds \
11761 lt_prog_compiler_wl \
11762 lt_prog_compiler_pic \
11763 lt_prog_compiler_static \
11764 lt_prog_compiler_no_builtin_flag \
11765 export_dynamic_flag_spec \
11766 thread_safe_flag_spec \
11767 whole_archive_flag_spec \
11768 enable_shared_with_static_runtimes \
11770 old_archive_from_new_cmds \
11775 compiler_lib_search_path \
11777 archive_expsym_cmds \
11779 postuninstall_cmds \
11780 old_archive_from_expsyms_cmds \
11781 allow_undefined_flag \
11782 no_undefined_flag \
11783 export_symbols_cmds \
11784 hardcode_libdir_flag_spec \
11785 hardcode_libdir_flag_spec_ld \
11786 hardcode_libdir_separator \
11787 hardcode_automatic \
11789 module_expsym_cmds \
11790 lt_cv_prog_compiler_c_o \
11793 include_expsyms; do
11796 old_archive_cmds | \
11797 old_archive_from_new_cmds | \
11799 archive_expsym_cmds | \
11801 module_expsym_cmds | \
11802 old_archive_from_expsyms_cmds | \
11803 export_symbols_cmds | \
11804 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11805 postinstall_cmds | postuninstall_cmds | \
11806 old_postinstall_cmds | old_postuninstall_cmds | \
11807 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11808 # Double-quote double-evaled strings.
11809 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11812 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11818 *'\$0 --fallback-echo"')
11819 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11823 cfgfile="${ofile}T"
11824 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11826 { echo "$as_me:$LINENO: creating $ofile" >&5
11827 echo "$as_me: creating $ofile" >&6;}
11829 cat <<__EOF__ >> "$cfgfile"
11832 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11833 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11836 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11837 # Free Software Foundation, Inc.
11839 # This file is part of GNU Libtool:
11840 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11842 # This program is free software; you can redistribute it and/or modify
11843 # it under the terms of the GNU General Public License as published by
11844 # the Free Software Foundation; either version 2 of the License, or
11845 # (at your option) any later version.
11847 # This program is distributed in the hope that it will be useful, but
11848 # WITHOUT ANY WARRANTY; without even the implied warranty of
11849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11850 # General Public License for more details.
11852 # You should have received a copy of the GNU General Public License
11853 # along with this program; if not, write to the Free Software
11854 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11856 # As a special exception to the GNU General Public License, if you
11857 # distribute this file as part of a program that contains a
11858 # configuration script generated by Autoconf, you may include it under
11859 # the same distribution terms that you use for the rest of that program.
11861 # A sed program that does not truncate output.
11864 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11865 Xsed="$SED -e 1s/^X//"
11867 # The HP-UX ksh and POSIX shell print the target directory to stdout
11868 # if CDPATH is set.
11869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11871 # The names of the tagged configurations supported by this script.
11874 # ### BEGIN LIBTOOL CONFIG
11876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11878 # Shell to use when invoking shell scripts.
11881 # Whether or not to build shared libraries.
11882 build_libtool_libs=$enable_shared
11884 # Whether or not to build static libraries.
11885 build_old_libs=$enable_static
11887 # Whether or not to add -lc for building shared libraries.
11888 build_libtool_need_lc=$archive_cmds_need_lc
11890 # Whether or not to disallow shared libs when runtime libs are static
11891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11893 # Whether or not to optimize for fast installation.
11894 fast_install=$enable_fast_install
11897 host_alias=$host_alias
11901 # The build system.
11902 build_alias=$build_alias
11906 # An echo program that does not interpret backslashes.
11911 AR_FLAGS=$lt_AR_FLAGS
11916 # LTCC compiler flags.
11917 LTCFLAGS=$lt_LTCFLAGS
11919 # A language-specific compiler.
11922 # Is the compiler the GNU C compiler?
11928 # The linker used to build libraries.
11931 # Whether we need hard or soft links.
11934 # A BSD-compatible nm program.
11937 # A symbol stripping program
11940 # Used to examine libraries when file_magic_cmd begins "file"
11941 MAGIC_CMD=$MAGIC_CMD
11943 # Used on cygwin: DLL creation program.
11946 # Used on cygwin: object dumper.
11949 # Used on cygwin: assembler.
11952 # The name of the directory that contains temporary libtool files.
11955 # How to create reloadable object files.
11956 reload_flag=$lt_reload_flag
11957 reload_cmds=$lt_reload_cmds
11959 # How to pass a linker flag through the compiler.
11960 wl=$lt_lt_prog_compiler_wl
11962 # Object file suffix (normally "o").
11963 objext="$ac_objext"
11965 # Old archive suffix (normally "a").
11968 # Shared library suffix (normally ".so").
11969 shrext_cmds='$shrext_cmds'
11971 # Executable file suffix (normally "").
11974 # Additional compiler flags for building library objects.
11975 pic_flag=$lt_lt_prog_compiler_pic
11978 # What is the maximum length of a command?
11979 max_cmd_len=$lt_cv_sys_max_cmd_len
11981 # Does compiler simultaneously support -c and -o options?
11982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11984 # Must we lock files when doing compilation?
11985 need_locks=$lt_need_locks
11987 # Do we need the lib prefix for modules?
11988 need_lib_prefix=$need_lib_prefix
11990 # Do we need a version for libraries?
11991 need_version=$need_version
11993 # Whether dlopen is supported.
11994 dlopen_support=$enable_dlopen
11996 # Whether dlopen of programs is supported.
11997 dlopen_self=$enable_dlopen_self
11999 # Whether dlopen of statically linked programs is supported.
12000 dlopen_self_static=$enable_dlopen_self_static
12002 # Compiler flag to prevent dynamic linking.
12003 link_static_flag=$lt_lt_prog_compiler_static
12005 # Compiler flag to turn off builtin functions.
12006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12008 # Compiler flag to allow reflexive dlopens.
12009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12011 # Compiler flag to generate shared objects directly from archives.
12012 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12014 # Compiler flag to generate thread-safe objects.
12015 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12017 # Library versioning type.
12018 version_type=$version_type
12020 # Format of library name prefix.
12021 libname_spec=$lt_libname_spec
12023 # List of archive names. First name is the real one, the rest are links.
12024 # The last name is the one that the linker finds with -lNAME.
12025 library_names_spec=$lt_library_names_spec
12027 # The coded name of the library, if different from the real name.
12028 soname_spec=$lt_soname_spec
12030 # Commands used to build and install an old-style archive.
12032 old_archive_cmds=$lt_old_archive_cmds
12033 old_postinstall_cmds=$lt_old_postinstall_cmds
12034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12036 # Create an old-style archive from a shared archive.
12037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12039 # Create a temporary old-style archive to link instead of a shared archive.
12040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12042 # Commands used to build and install a shared archive.
12043 archive_cmds=$lt_archive_cmds
12044 archive_expsym_cmds=$lt_archive_expsym_cmds
12045 postinstall_cmds=$lt_postinstall_cmds
12046 postuninstall_cmds=$lt_postuninstall_cmds
12048 # Commands used to build a loadable module (assumed same as above if empty)
12049 module_cmds=$lt_module_cmds
12050 module_expsym_cmds=$lt_module_expsym_cmds
12052 # Commands to strip libraries.
12053 old_striplib=$lt_old_striplib
12054 striplib=$lt_striplib
12056 # Dependencies to place before the objects being linked to create a
12058 predep_objects=$lt_predep_objects
12060 # Dependencies to place after the objects being linked to create a
12062 postdep_objects=$lt_postdep_objects
12064 # Dependencies to place before the objects being linked to create a
12066 predeps=$lt_predeps
12068 # Dependencies to place after the objects being linked to create a
12070 postdeps=$lt_postdeps
12072 # The library search path used internally by the compiler when linking
12073 # a shared library.
12074 compiler_lib_search_path=$lt_compiler_lib_search_path
12076 # Method to check whether dependent libraries are shared objects.
12077 deplibs_check_method=$lt_deplibs_check_method
12079 # Command to use when deplibs_check_method == file_magic.
12080 file_magic_cmd=$lt_file_magic_cmd
12082 # Flag that allows shared libraries with undefined symbols to be built.
12083 allow_undefined_flag=$lt_allow_undefined_flag
12085 # Flag that forces no undefined symbols.
12086 no_undefined_flag=$lt_no_undefined_flag
12088 # Commands used to finish a libtool library installation in a directory.
12089 finish_cmds=$lt_finish_cmds
12091 # Same as above, but a single script fragment to be evaled but not shown.
12092 finish_eval=$lt_finish_eval
12094 # Take the output of nm and produce a listing of raw symbols and C names.
12095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12097 # Transform the output of nm in a proper C declaration
12098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12100 # Transform the output of nm in a C name address pair
12101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12103 # This is the shared library runtime path variable.
12104 runpath_var=$runpath_var
12106 # This is the shared library path variable.
12107 shlibpath_var=$shlibpath_var
12109 # Is shlibpath searched before the hard-coded library search path?
12110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12112 # How to hardcode a shared library path into an executable.
12113 hardcode_action=$hardcode_action
12115 # Whether we should hardcode library paths into libraries.
12116 hardcode_into_libs=$hardcode_into_libs
12118 # Flag to hardcode \$libdir into a binary during linking.
12119 # This must work even if \$libdir does not exist.
12120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12122 # If ld is used when linking, flag to hardcode \$libdir into
12123 # a binary during linking. This must work even if \$libdir does
12125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12127 # Whether we need a single -rpath flag with a separated argument.
12128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12131 # resulting binary.
12132 hardcode_direct=$hardcode_direct
12134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12135 # resulting binary.
12136 hardcode_minus_L=$hardcode_minus_L
12138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12139 # the resulting binary.
12140 hardcode_shlibpath_var=$hardcode_shlibpath_var
12142 # Set to yes if building a shared library automatically hardcodes DIR into the library
12143 # and all subsequent libraries and executables linked against it.
12144 hardcode_automatic=$hardcode_automatic
12146 # Variables whose values should be saved in libtool wrapper scripts and
12147 # restored at relink time.
12148 variables_saved_for_relink="$variables_saved_for_relink"
12150 # Whether libtool must link a program against all its dependency libraries.
12151 link_all_deplibs=$link_all_deplibs
12153 # Compile-time system search path for libraries
12154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12156 # Run-time system search path for libraries
12157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12159 # Fix the shell variable \$srcfile for the compiler.
12160 fix_srcfile_path=$lt_fix_srcfile_path
12162 # Set to yes if exported symbols are required.
12163 always_export_symbols=$always_export_symbols
12165 # The commands to list exported symbols.
12166 export_symbols_cmds=$lt_export_symbols_cmds
12168 # The commands to extract the exported symbol list from a shared archive.
12169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12171 # Symbols that should not be listed in the preloaded symbols.
12172 exclude_expsyms=$lt_exclude_expsyms
12174 # Symbols that must always be exported.
12175 include_expsyms=$lt_include_expsyms
12177 # ### END LIBTOOL CONFIG
12184 cat <<\EOF >> "$cfgfile"
12186 # AIX sometimes has problems with the GCC collect2 program. For some
12187 # reason, if we set the COLLECT_NAMES environment variable, the problems
12188 # vanish in a puff of smoke.
12189 if test "X${COLLECT_NAMES+set}" != Xset; then
12191 export COLLECT_NAMES
12197 # We use sed instead of cat because bash on DJGPP gets confused if
12198 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12199 # text mode, it properly converts lines to CR/LF. This bash problem
12200 # is reportedly fixed, but why not run on old versions too?
12201 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12203 mv -f "$cfgfile" "$ofile" || \
12204 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12208 # If there is no Makefile yet, we rely on a make rule to execute
12209 # `config.status --recheck' to rerun these tests and create the
12210 # libtool script then.
12211 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12212 if test -f "$ltmain_in"; then
12213 test -f Makefile && make "$ltmain"
12219 ac_cpp='$CPP $CPPFLAGS'
12220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227 # Check whether --with-tags was given.
12228 if test "${with_tags+set}" = set; then
12229 withval=$with_tags; tagnames="$withval"
12233 if test -f "$ltmain" && test -n "$tagnames"; then
12234 if test ! -f "${ofile}"; then
12235 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12236 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12239 if test -z "$LTCC"; then
12240 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12241 if test -z "$LTCC"; then
12242 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12243 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12246 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12249 if test -z "$LTCFLAGS"; then
12250 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12253 # Extract list of available tagged configurations in $ofile.
12254 # Note that this assumes the entire list is on one line.
12255 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12258 for tagname in $tagnames; do
12260 # Check whether tagname contains only valid characters
12261 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12263 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12264 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12265 { (exit 1); exit 1; }; }
12269 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12271 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12272 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12273 { (exit 1); exit 1; }; }
12276 # Update the list of available tags.
12277 if test -n "$tagname"; then
12278 echo appending configuration tag \"$tagname\" to $ofile
12282 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12283 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12284 (test "X$CXX" != "Xg++"))) ; then
12286 ac_cpp='$CXXCPP $CPPFLAGS'
12287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12294 archive_cmds_need_lc_CXX=no
12295 allow_undefined_flag_CXX=
12296 always_export_symbols_CXX=no
12297 archive_expsym_cmds_CXX=
12298 export_dynamic_flag_spec_CXX=
12299 hardcode_direct_CXX=no
12300 hardcode_libdir_flag_spec_CXX=
12301 hardcode_libdir_flag_spec_ld_CXX=
12302 hardcode_libdir_separator_CXX=
12303 hardcode_minus_L_CXX=no
12304 hardcode_shlibpath_var_CXX=unsupported
12305 hardcode_automatic_CXX=no
12307 module_expsym_cmds_CXX=
12308 link_all_deplibs_CXX=unknown
12309 old_archive_cmds_CXX=$old_archive_cmds
12310 no_undefined_flag_CXX=
12311 whole_archive_flag_spec_CXX=
12312 enable_shared_with_static_runtimes_CXX=no
12314 # Dependencies to place before and after the object being linked:
12315 predep_objects_CXX=
12316 postdep_objects_CXX=
12319 compiler_lib_search_path_CXX=
12321 # Source file extension for C++ test sources.
12324 # Object file extension for compiled C++ test sources.
12328 # Code to be used in simple compile tests
12329 lt_simple_compile_test_code="int some_variable = 0;"
12331 # Code to be used in simple link tests
12332 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12336 # If no C compiler was specified, use CC.
12339 # If no C compiler flags were specified, use CFLAGS.
12340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12342 # Allow CC to be a program name with arguments.
12346 # save warnings/boilerplate of simple test code
12347 ac_outfile=conftest.$ac_objext
12348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12350 _lt_compiler_boilerplate=`cat conftest.err`
12353 ac_outfile=conftest.$ac_objext
12354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12356 _lt_linker_boilerplate=`cat conftest.err`
12360 # Allow CC to be a program name with arguments.
12365 lt_save_with_gnu_ld=$with_gnu_ld
12366 lt_save_path_LD=$lt_cv_path_LD
12367 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12368 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12370 $as_unset lt_cv_prog_gnu_ld
12372 if test -n "${lt_cv_path_LDCXX+set}"; then
12373 lt_cv_path_LD=$lt_cv_path_LDCXX
12375 $as_unset lt_cv_path_LD
12377 test -z "${LDCXX+set}" || LD=$LDCXX
12381 for cc_temp in $compiler""; do
12383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12392 # We don't want -fno-exception wen compiling C++ code, so set the
12393 # no_builtin_flag separately
12394 if test "$GXX" = yes; then
12395 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12397 lt_prog_compiler_no_builtin_flag_CXX=
12400 if test "$GXX" = yes; then
12401 # Set up default GNU C++ configuration
12404 # Check whether --with-gnu-ld was given.
12405 if test "${with_gnu_ld+set}" = set; then
12406 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12412 if test "$GCC" = yes; then
12413 # Check if gcc -print-prog-name=ld gives a path.
12414 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12415 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12418 # gcc leaves a trailing carriage return which upsets mingw
12419 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12421 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12424 # Accept absolute paths.
12426 re_direlt='/[^/][^/]*/\.\./'
12427 # Canonicalize the pathname of ld
12428 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12429 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12430 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12432 test -z "$LD" && LD="$ac_prog"
12435 # If it fails, then pretend we aren't using GCC.
12439 # If it is relative, then search for the first ld in PATH.
12440 with_gnu_ld=unknown
12443 elif test "$with_gnu_ld" = yes; then
12444 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12445 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12447 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12448 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12450 if test "${lt_cv_path_LD+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 if test -z "$LD"; then
12454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12455 for ac_dir in $PATH; do
12457 test -z "$ac_dir" && ac_dir=.
12458 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12459 lt_cv_path_LD="$ac_dir/$ac_prog"
12460 # Check to see if the program is GNU ld. I'd rather use --version,
12461 # but apparently some variants of GNU ld only accept -v.
12462 # Break only if it was the GNU/non-GNU ld that we prefer.
12463 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12464 *GNU* | *'with BFD'*)
12465 test "$with_gnu_ld" != no && break
12468 test "$with_gnu_ld" != yes && break
12475 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12479 LD="$lt_cv_path_LD"
12480 if test -n "$LD"; then
12481 { echo "$as_me:$LINENO: result: $LD" >&5
12482 echo "${ECHO_T}$LD" >&6; }
12484 { echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6; }
12487 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12488 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12489 { (exit 1); exit 1; }; }
12490 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12491 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12492 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12496 case `$LD -v 2>&1 </dev/null` in
12497 *GNU* | *'with BFD'*)
12498 lt_cv_prog_gnu_ld=yes
12501 lt_cv_prog_gnu_ld=no
12505 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12506 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12507 with_gnu_ld=$lt_cv_prog_gnu_ld
12511 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12512 # archiving commands below assume that GNU ld is being used.
12513 if test "$with_gnu_ld" = yes; then
12514 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12515 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'
12517 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12520 # If archive_cmds runs LD, not CC, wlarc should be empty
12521 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12522 # investigate it a little bit more. (MM)
12525 # ancient GNU ld didn't support --whole-archive et. al.
12526 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12527 grep 'no-whole-archive' > /dev/null; then
12528 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12530 whole_archive_flag_spec_CXX=
12536 # A generic and very simple default shared library creation
12537 # command for GNU C++ for the case where it uses the native
12538 # linker, instead of GNU ld. If possible, this setting should
12539 # overridden to take advantage of the native linker features on
12540 # the platform it is being used on.
12541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12544 # Commands to make compiler produce verbose output that lists
12545 # what "hidden" libraries, object files and flags are used when
12546 # linking a shared library.
12547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12555 # PORTME: fill in a description of your system's C++ link characteristics
12556 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12561 # FIXME: insert proper C++ library support
12565 if test "$host_cpu" = ia64; then
12566 # On IA64, the linker does run time linking by default, so we don't
12567 # have to do anything special.
12568 aix_use_runtimelinking=no
12569 exp_sym_flag='-Bexport'
12572 aix_use_runtimelinking=no
12574 # Test if we are trying to use run time linking or normal
12575 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12576 # need to do runtime linking.
12577 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12578 for ld_flag in $LDFLAGS; do
12581 aix_use_runtimelinking=yes
12589 exp_sym_flag='-bexport'
12590 no_entry_flag='-bnoentry'
12593 # When large executables or shared objects are built, AIX ld can
12594 # have problems creating the table of contents. If linking a library
12595 # or program results in "error TOC overflow" add -mminimal-toc to
12596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12599 archive_cmds_CXX=''
12600 hardcode_direct_CXX=yes
12601 hardcode_libdir_separator_CXX=':'
12602 link_all_deplibs_CXX=yes
12604 if test "$GXX" = yes; then
12605 case $host_os in aix4.[012]|aix4.[012].*)
12606 # We only want to do this on AIX 4.2 and lower, the check
12607 # below for broken collect2 doesn't work under 4.3+
12608 collect2name=`${CC} -print-prog-name=collect2`
12609 if test -f "$collect2name" && \
12610 strings "$collect2name" | grep resolve_lib_name >/dev/null
12612 # We have reworked collect2
12615 # We have old collect2
12616 hardcode_direct_CXX=unsupported
12617 # It fails to find uninstalled libraries when the uninstalled
12618 # path is not listed in the libpath. Setting hardcode_minus_L
12619 # to unsupported forces relinking
12620 hardcode_minus_L_CXX=yes
12621 hardcode_libdir_flag_spec_CXX='-L$libdir'
12622 hardcode_libdir_separator_CXX=
12626 shared_flag='-shared'
12627 if test "$aix_use_runtimelinking" = yes; then
12628 shared_flag="$shared_flag "'${wl}-G'
12632 if test "$host_cpu" = ia64; then
12633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12634 # chokes on -Wl,-G. The following line is correct:
12637 if test "$aix_use_runtimelinking" = yes; then
12638 shared_flag='${wl}-G'
12640 shared_flag='${wl}-bM:SRE'
12645 # It seems that -bexpall does not export symbols beginning with
12646 # underscore (_), so it is better to generate a list of symbols to export.
12647 always_export_symbols_CXX=yes
12648 if test "$aix_use_runtimelinking" = yes; then
12649 # Warning - without using the other runtime loading flags (-brtl),
12650 # -berok will link without error, but may produce a broken library.
12651 allow_undefined_flag_CXX='-berok'
12652 # Determine the default libpath from the value encoded in an empty executable.
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12668 rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675 (eval "$ac_link") 2>conftest.er1
12677 grep -v '^ *+' conftest.er1 >conftest.err
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } && {
12682 test -z "$ac_cxx_werror_flag" ||
12683 test ! -s conftest.err
12684 } && test -s conftest$ac_exeext &&
12685 $as_test_x conftest$ac_exeext; then
12687 lt_aix_libpath_sed='
12688 /Import File Strings/,/^$/ {
12694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12695 # Check for a 64-bit object if we didn't find anything.
12696 if test -z "$aix_libpath"; then
12697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12707 conftest$ac_exeext conftest.$ac_ext
12708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12710 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12712 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"
12714 if test "$host_cpu" = ia64; then
12715 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12716 allow_undefined_flag_CXX="-z nodefs"
12717 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"
12719 # Determine the default libpath from the value encoded in an empty executable.
12720 cat >conftest.$ac_ext <<_ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12744 grep -v '^ *+' conftest.er1 >conftest.err
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_cxx_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest$ac_exeext &&
12752 $as_test_x conftest$ac_exeext; then
12754 lt_aix_libpath_sed='
12755 /Import File Strings/,/^$/ {
12761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12762 # Check for a 64-bit object if we didn't find anything.
12763 if test -z "$aix_libpath"; then
12764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12774 conftest$ac_exeext conftest.$ac_ext
12775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12777 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12778 # Warning - without using the other run time loading flags,
12779 # -berok will link without error, but may produce a broken library.
12780 no_undefined_flag_CXX=' ${wl}-bernotok'
12781 allow_undefined_flag_CXX=' ${wl}-berok'
12782 # Exported symbols can be pulled into shared objects from archives
12783 whole_archive_flag_spec_CXX='$convenience'
12784 archive_cmds_need_lc_CXX=yes
12785 # This is similar to how AIX traditionally builds its shared libraries.
12786 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'
12792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12793 allow_undefined_flag_CXX=unsupported
12794 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12795 # support --undefined. This deserves some investigation. FIXME
12796 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803 case $cc_basename in
12805 # FIXME: insert proper C++ library support
12811 cygwin* | mingw* | pw32*)
12812 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12813 # as there is no search path for DLLs.
12814 hardcode_libdir_flag_spec_CXX='-L$libdir'
12815 allow_undefined_flag_CXX=unsupported
12816 always_export_symbols_CXX=no
12817 enable_shared_with_static_runtimes_CXX=yes
12819 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12820 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'
12821 # If the export-symbols file already is a .def file (1st line
12822 # is EXPORTS), use it as is; otherwise, prepend...
12823 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12824 cp $export_symbols $output_objdir/$soname.def;
12826 echo EXPORTS > $output_objdir/$soname.def;
12827 cat $export_symbols >> $output_objdir/$soname.def;
12829 $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'
12834 darwin* | rhapsody*)
12836 rhapsody* | darwin1.[012])
12837 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12840 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12841 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12843 case ${MACOSX_DEPLOYMENT_TARGET} in
12845 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12848 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12854 archive_cmds_need_lc_CXX=no
12855 hardcode_direct_CXX=no
12856 hardcode_automatic_CXX=yes
12857 hardcode_shlibpath_var_CXX=unsupported
12858 whole_archive_flag_spec_CXX=''
12859 link_all_deplibs_CXX=yes
12861 if test "$GXX" = yes ; then
12862 lt_int_apple_cc_single_mod=no
12863 output_verbose_link_cmd='echo'
12864 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12865 lt_int_apple_cc_single_mod=yes
12867 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12868 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12870 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'
12872 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12873 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12874 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12875 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}'
12877 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}'
12879 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}'
12881 case $cc_basename in
12883 output_verbose_link_cmd='echo'
12884 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'
12885 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12887 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}'
12888 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}'
12898 case $cc_basename in
12900 # FIXME: insert proper C++ library support
12904 # Green Hills C++ Compiler
12905 # FIXME: insert proper C++ library support
12909 # FIXME: insert proper C++ library support
12915 # C++ shared libraries reported to be fairly broken before switch to ELF
12919 archive_cmds_need_lc_CXX=no
12921 freebsd* | dragonfly*)
12922 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12930 hardcode_libdir_separator_CXX=:
12931 export_dynamic_flag_spec_CXX='${wl}-E'
12932 hardcode_direct_CXX=yes
12933 hardcode_minus_L_CXX=yes # Not in the search PATH,
12934 # but as the default
12935 # location of the library.
12937 case $cc_basename in
12939 # FIXME: insert proper C++ library support
12943 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'
12944 # Commands to make compiler produce verbose output that lists
12945 # what "hidden" libraries, object files and flags are used when
12946 # linking a shared library.
12948 # There doesn't appear to be a way to prevent this compiler from
12949 # explicitly linking system object files so we need to strip them
12950 # from the output so that they don't get included in the library
12952 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'
12955 if test "$GXX" = yes; then
12956 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'
12958 # FIXME: insert proper C++ library support
12965 if test $with_gnu_ld = no; then
12966 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12967 hardcode_libdir_separator_CXX=:
12972 export_dynamic_flag_spec_CXX='${wl}-E'
12978 hardcode_direct_CXX=no
12979 hardcode_shlibpath_var_CXX=no
12982 hardcode_direct_CXX=yes
12983 hardcode_minus_L_CXX=yes # Not in the search PATH,
12984 # but as the default
12985 # location of the library.
12989 case $cc_basename in
12991 # FIXME: insert proper C++ library support
12997 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13000 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13006 # Commands to make compiler produce verbose output that lists
13007 # what "hidden" libraries, object files and flags are used when
13008 # linking a shared library.
13010 # There doesn't appear to be a way to prevent this compiler from
13011 # explicitly linking system object files so we need to strip them
13012 # from the output so that they don't get included in the library
13014 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'
13017 if test "$GXX" = yes; then
13018 if test $with_gnu_ld = no; then
13021 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13027 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'
13032 # FIXME: insert proper C++ library support
13039 hardcode_direct_CXX=no
13040 hardcode_shlibpath_var_CXX=no
13041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13042 export_dynamic_flag_spec_CXX='${wl}-E'
13043 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13044 # Instead, shared libraries are loaded at an image base (0x10000000 by
13045 # default) and relocated if they conflict, which is a slow very memory
13046 # consuming and fragmenting process. To avoid this, we pick a random,
13047 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13048 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13049 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'
13050 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'
13053 case $cc_basename in
13056 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'
13058 # Archives containing C++ object files must be created using
13059 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13060 # necessary to make sure instantiated templates are included
13062 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13065 if test "$GXX" = yes; then
13066 if test "$with_gnu_ld" = no; then
13067 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'
13069 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'
13072 link_all_deplibs_CXX=yes
13075 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13076 hardcode_libdir_separator_CXX=:
13078 linux* | k*bsd*-gnu)
13079 case $cc_basename in
13081 # Kuck and Associates, Inc. (KAI) C++ Compiler
13083 # KCC will only create a shared library if the output file
13084 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13085 # to its proper name (with version) after linking.
13086 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'
13087 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'
13088 # Commands to make compiler produce verbose output that lists
13089 # what "hidden" libraries, object files and flags are used when
13090 # linking a shared library.
13092 # There doesn't appear to be a way to prevent this compiler from
13093 # explicitly linking system object files so we need to strip them
13094 # from the output so that they don't get included in the library
13096 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'
13098 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13101 # Archives containing C++ object files must be created using
13102 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13103 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13108 # version 8.0 and above of icpc choke on multiply defined symbols
13109 # if we add $predep_objects and $postdep_objects, however 7.1 and
13110 # earlier do not add the objects themselves.
13111 case `$CC -V 2>&1` in
13113 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114 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'
13116 *) # Version 8.0 or newer
13119 ia64*) tmp_idyn=' -i_dynamic';;
13121 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122 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'
13125 archive_cmds_need_lc_CXX=no
13126 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13127 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13128 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13131 # Portland Group C++ compiler
13132 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13133 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'
13135 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13137 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'
13141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13142 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'
13144 runpath_var=LD_RUN_PATH
13145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13146 hardcode_libdir_separator_CXX=:
13148 # Commands to make compiler produce verbose output that lists
13149 # what "hidden" libraries, object files and flags are used when
13150 # linking a shared library.
13152 # There doesn't appear to be a way to prevent this compiler from
13153 # explicitly linking system object files so we need to strip them
13154 # from the output so that they don't get included in the library
13156 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'
13159 case `$CC -V 2>&1 | sed 5q` in
13162 no_undefined_flag_CXX=' -zdefs'
13163 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164 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'
13165 hardcode_libdir_flag_spec_CXX='-R$libdir'
13166 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'
13168 # Not sure whether something based on
13169 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13171 output_verbose_link_cmd='echo'
13173 # Archives containing C++ object files must be created using
13174 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13175 # necessary to make sure instantiated templates are included
13177 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13184 # FIXME: insert proper C++ library support
13188 # FIXME: insert proper C++ library support
13192 case $cc_basename in
13194 # FIXME: insert proper C++ library support
13198 # FIXME: insert proper C++ library support
13204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13205 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13207 hardcode_libdir_flag_spec_CXX='-R$libdir'
13208 hardcode_direct_CXX=yes
13209 hardcode_shlibpath_var_CXX=no
13211 # Workaround some broken pre-1.5 toolchains
13212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13215 # C++ shared libraries are fairly broken
13219 if test -f /usr/libexec/ld.so; then
13220 hardcode_direct_CXX=yes
13221 hardcode_shlibpath_var_CXX=no
13222 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13225 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13226 export_dynamic_flag_spec_CXX='${wl}-E'
13227 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13229 output_verbose_link_cmd='echo'
13235 case $cc_basename in
13237 # Kuck and Associates, Inc. (KAI) C++ Compiler
13239 # KCC will only create a shared library if the output file
13240 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13241 # to its proper name (with version) after linking.
13242 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'
13244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13245 hardcode_libdir_separator_CXX=:
13247 # Archives containing C++ object files must be created using
13248 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13249 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13253 # Rational C++ 2.4.1
13254 # FIXME: insert proper C++ library support
13258 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13259 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'
13261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13262 hardcode_libdir_separator_CXX=:
13264 # Commands to make compiler produce verbose output that lists
13265 # what "hidden" libraries, object files and flags are used when
13266 # linking a shared library.
13268 # There doesn't appear to be a way to prevent this compiler from
13269 # explicitly linking system object files so we need to strip them
13270 # from the output so that they don't get included in the library
13272 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'
13275 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13276 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13277 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'
13279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13280 hardcode_libdir_separator_CXX=:
13282 # Commands to make compiler produce verbose output that lists
13283 # what "hidden" libraries, object files and flags are used when
13284 # linking a shared library.
13285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13288 # FIXME: insert proper C++ library support
13295 case $cc_basename in
13297 # Kuck and Associates, Inc. (KAI) C++ Compiler
13299 # KCC will only create a shared library if the output file
13300 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13301 # to its proper name (with version) after linking.
13302 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'
13304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13305 hardcode_libdir_separator_CXX=:
13307 # Archives containing C++ object files must be created using
13308 # the KAI C++ compiler.
13309 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13312 # Rational C++ 2.4.1
13313 # FIXME: insert proper C++ library support
13317 allow_undefined_flag_CXX=' -expect_unresolved \*'
13318 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'
13319 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13320 echo "-hidden">> $lib.exp~
13321 $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~
13324 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13325 hardcode_libdir_separator_CXX=:
13327 # Commands to make compiler produce verbose output that lists
13328 # what "hidden" libraries, object files and flags are used when
13329 # linking a shared library.
13331 # There doesn't appear to be a way to prevent this compiler from
13332 # explicitly linking system object files so we need to strip them
13333 # from the output so that they don't get included in the library
13335 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'
13338 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13339 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13340 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'
13342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13343 hardcode_libdir_separator_CXX=:
13345 # Commands to make compiler produce verbose output that lists
13346 # what "hidden" libraries, object files and flags are used when
13347 # linking a shared library.
13348 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13351 # FIXME: insert proper C++ library support
13358 # FIXME: insert proper C++ library support
13362 case $cc_basename in
13365 # FIXME: insert proper C++ library support
13370 # FIXME: insert proper C++ library support
13374 # FIXME: insert proper C++ library support
13380 case $cc_basename in
13382 # Sun C++ 4.2, 5.x and Centerline C++
13383 archive_cmds_need_lc_CXX=yes
13384 no_undefined_flag_CXX=' -zdefs'
13385 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13387 $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'
13389 hardcode_libdir_flag_spec_CXX='-R$libdir'
13390 hardcode_shlibpath_var_CXX=no
13392 solaris2.[0-5] | solaris2.[0-5].*) ;;
13394 # The compiler driver will combine and reorder linker options,
13395 # but understands `-z linker_flag'.
13396 # Supported since Solaris 2.6 (maybe 2.5.1?)
13397 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13400 link_all_deplibs_CXX=yes
13402 output_verbose_link_cmd='echo'
13404 # Archives containing C++ object files must be created using
13405 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13406 # necessary to make sure instantiated templates are included
13408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13411 # Green Hills C++ Compiler
13412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13414 # The C++ compiler must be used to create the archive.
13415 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13418 # GNU C++ compiler with Solaris linker
13419 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13420 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13421 if $CC --version | grep -v '^2\.7' > /dev/null; then
13422 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13423 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13424 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13426 # Commands to make compiler produce verbose output that lists
13427 # what "hidden" libraries, object files and flags are used when
13428 # linking a shared library.
13429 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13431 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13433 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13434 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13435 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13437 # Commands to make compiler produce verbose output that lists
13438 # what "hidden" libraries, object files and flags are used when
13439 # linking a shared library.
13440 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13443 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13445 solaris2.[0-5] | solaris2.[0-5].*) ;;
13447 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13454 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13455 no_undefined_flag_CXX='${wl}-z,text'
13456 archive_cmds_need_lc_CXX=no
13457 hardcode_shlibpath_var_CXX=no
13458 runpath_var='LD_RUN_PATH'
13460 case $cc_basename in
13462 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13471 sysv5* | sco3.2v5* | sco5v6*)
13472 # Note: We can NOT use -z defs as we might desire, because we do not
13473 # link with -lc, and that would cause any symbols used from libc to
13474 # always be unresolved, which means just about no library would
13475 # ever link correctly. If we're not using GNU ld we use -z text
13476 # though, which does catch some bad symbols but isn't as heavy-handed
13478 # For security reasons, it is highly recommended that you always
13479 # use absolute paths for naming shared libraries, and exclude the
13480 # DT_RUNPATH tag from executables and libraries. But doing so
13481 # requires that you compile everything twice, which is a pain.
13482 # So that behaviour is only enabled if SCOABSPATH is set to a
13483 # non-empty value in the environment. Most likely only useful for
13484 # creating official distributions of packages.
13485 # This is a hack until libtool officially supports absolute path
13486 # names for shared libraries.
13487 no_undefined_flag_CXX='${wl}-z,text'
13488 allow_undefined_flag_CXX='${wl}-z,nodefs'
13489 archive_cmds_need_lc_CXX=no
13490 hardcode_shlibpath_var_CXX=no
13491 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13492 hardcode_libdir_separator_CXX=':'
13493 link_all_deplibs_CXX=yes
13494 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13495 runpath_var='LD_RUN_PATH'
13497 case $cc_basename in
13499 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13500 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13503 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13504 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13509 case $cc_basename in
13511 # NonStop-UX NCC 3.20
13512 # FIXME: insert proper C++ library support
13516 # FIXME: insert proper C++ library support
13522 # FIXME: insert proper C++ library support
13526 # FIXME: insert proper C++ library support
13530 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13531 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13532 test "$ld_shlibs_CXX" = no && can_build_shared=no
13538 cat > conftest.$ac_ext <<EOF
13542 Foo (void) { a = 0; }
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549 (eval $ac_compile) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; then
13553 # Parse the compiler output and extract the necessary
13554 # objects, libraries and library flags.
13556 # Sentinel used to keep track of whether or not we are before
13557 # the conftest object file.
13558 pre_test_object_deps_done=no
13560 # The `*' in the case matches for architectures that use `case' in
13561 # $output_verbose_cmd can trigger glob expansion during the loop
13562 # eval without this substitution.
13563 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13565 for p in `eval $output_verbose_link_cmd`; do
13569 # Some compilers place space between "-{L,R}" and the path.
13570 # Remove the space.
13571 if test $p = "-L" \
13572 || test $p = "-R"; then
13579 if test "$pre_test_object_deps_done" = no; then
13582 # Internal compiler library paths should come after those
13583 # provided the user. The postdeps already come after the
13584 # user supplied libs so there is no need to process them.
13585 if test -z "$compiler_lib_search_path_CXX"; then
13586 compiler_lib_search_path_CXX="${prev}${p}"
13588 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13591 # The "-l" case would never come before the object being
13592 # linked, so don't bother handling this case.
13595 if test -z "$postdeps_CXX"; then
13596 postdeps_CXX="${prev}${p}"
13598 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13604 # This assumes that the test object file only shows up
13605 # once in the compiler output.
13606 if test "$p" = "conftest.$objext"; then
13607 pre_test_object_deps_done=yes
13611 if test "$pre_test_object_deps_done" = no; then
13612 if test -z "$predep_objects_CXX"; then
13613 predep_objects_CXX="$p"
13615 predep_objects_CXX="$predep_objects_CXX $p"
13618 if test -z "$postdep_objects_CXX"; then
13619 postdep_objects_CXX="$p"
13621 postdep_objects_CXX="$postdep_objects_CXX $p"
13626 *) ;; # Ignore the rest.
13634 echo "libtool.m4: error: problem compiling CXX test program"
13637 $rm -f confest.$objext
13639 # PORTME: override above test on systems where it is broken
13642 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13643 # hack all around it, let's just trust "g++" to DTRT.
13644 predep_objects_CXX=
13645 postdep_objects_CXX=
13650 case `$CC -V 2>&1 | sed 5q` in
13654 # The more standards-conforming stlport4 library is
13655 # incompatible with the Cstd library. Avoid specifying
13656 # it if it's in CXXFLAGS. Ignore libCrun as
13657 # -library=stlport4 depends on it.
13658 case " $CXX $CXXFLAGS " in
13659 *" -library=stlport4 "*)
13660 solaris_use_stlport4=yes
13663 if test "$solaris_use_stlport4" != yes; then
13664 postdeps_CXX='-library=Cstd -library=Crun'
13671 case $cc_basename in
13673 # The more standards-conforming stlport4 library is
13674 # incompatible with the Cstd library. Avoid specifying
13675 # it if it's in CXXFLAGS. Ignore libCrun as
13676 # -library=stlport4 depends on it.
13677 case " $CXX $CXXFLAGS " in
13678 *" -library=stlport4 "*)
13679 solaris_use_stlport4=yes
13683 # Adding this requires a known-good setup of shared libraries for
13684 # Sun compiler versions before 5.6, else PIC objects from an old
13685 # archive will be linked into the output, leading to subtle bugs.
13686 if test "$solaris_use_stlport4" != yes; then
13687 postdeps_CXX='-library=Cstd -library=Crun'
13695 case " $postdeps_CXX " in
13696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13699 lt_prog_compiler_wl_CXX=
13700 lt_prog_compiler_pic_CXX=
13701 lt_prog_compiler_static_CXX=
13703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13706 # C++ specific cases for pic, static, wl, etc.
13707 if test "$GXX" = yes; then
13708 lt_prog_compiler_wl_CXX='-Wl,'
13709 lt_prog_compiler_static_CXX='-static'
13713 # All AIX code is PIC.
13714 if test "$host_cpu" = ia64; then
13715 # AIX 5 now supports IA64 processor
13716 lt_prog_compiler_static_CXX='-Bstatic'
13720 # FIXME: we need at least 68020 code to build shared libraries, but
13721 # adding the `-m68020' flag to GCC prevents building anything better,
13723 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13725 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13726 # PIC is the default for these OSes.
13728 mingw* | cygwin* | os2* | pw32*)
13729 # This hack is so that the source file can tell whether it is being
13730 # built for inclusion in a dll (and should export symbols for example).
13731 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13732 # (--disable-auto-import) libraries
13733 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13735 darwin* | rhapsody*)
13736 # PIC is the default on this platform
13737 # Common symbols not allowed in MH_DYLIB files
13738 lt_prog_compiler_pic_CXX='-fno-common'
13741 # DJGPP does not support shared libraries at all
13742 lt_prog_compiler_pic_CXX=
13745 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13746 # Instead, we relocate shared libraries at runtime.
13749 if test -d /usr/nec; then
13750 lt_prog_compiler_pic_CXX=-Kconform_pic
13754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13755 # not for PA HP-UX.
13760 lt_prog_compiler_pic_CXX='-fPIC'
13765 lt_prog_compiler_pic_CXX='-fPIC'
13771 # All AIX code is PIC.
13772 if test "$host_cpu" = ia64; then
13773 # AIX 5 now supports IA64 processor
13774 lt_prog_compiler_static_CXX='-Bstatic'
13776 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13780 case $cc_basename in
13782 # Green Hills C++ Compiler
13783 # _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"
13788 # PIC is the default on this platform
13789 # Common symbols not allowed in MH_DYLIB files
13790 case $cc_basename in
13792 lt_prog_compiler_pic_CXX='-qnocommon'
13793 lt_prog_compiler_wl_CXX='-Wl,'
13798 case $cc_basename in
13800 lt_prog_compiler_pic_CXX='-KPIC'
13803 # Green Hills C++ Compiler
13804 lt_prog_compiler_pic_CXX='-pic'
13810 freebsd* | dragonfly*)
13811 # FreeBSD uses GNU C++
13813 hpux9* | hpux10* | hpux11*)
13814 case $cc_basename in
13816 lt_prog_compiler_wl_CXX='-Wl,'
13817 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13818 if test "$host_cpu" != ia64; then
13819 lt_prog_compiler_pic_CXX='+Z'
13823 lt_prog_compiler_wl_CXX='-Wl,'
13824 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13830 lt_prog_compiler_pic_CXX='+Z'
13839 # This is c89, which is MS Visual C++ (no shared libs)
13840 # Anyone wants to do a port?
13842 irix5* | irix6* | nonstopux*)
13843 case $cc_basename in
13845 lt_prog_compiler_wl_CXX='-Wl,'
13846 lt_prog_compiler_static_CXX='-non_shared'
13847 # CC pic flag -KPIC is the default.
13853 linux* | k*bsd*-gnu)
13854 case $cc_basename in
13857 lt_prog_compiler_wl_CXX='--backend -Wl,'
13858 lt_prog_compiler_pic_CXX='-fPIC'
13862 lt_prog_compiler_wl_CXX='-Wl,'
13863 lt_prog_compiler_pic_CXX='-KPIC'
13864 lt_prog_compiler_static_CXX='-static'
13867 # Portland Group C++ compiler.
13868 lt_prog_compiler_wl_CXX='-Wl,'
13869 lt_prog_compiler_pic_CXX='-fpic'
13870 lt_prog_compiler_static_CXX='-Bstatic'
13874 # Make sure the PIC flag is empty. It appears that all Alpha
13875 # Linux and Compaq Tru64 Unix objects are PIC.
13876 lt_prog_compiler_pic_CXX=
13877 lt_prog_compiler_static_CXX='-non_shared'
13880 case `$CC -V 2>&1 | sed 5q` in
13883 lt_prog_compiler_pic_CXX='-KPIC'
13884 lt_prog_compiler_static_CXX='-Bstatic'
13885 lt_prog_compiler_wl_CXX='-Qoption ld '
13896 case $cc_basename in
13898 lt_prog_compiler_pic_CXX='-W c,exportall'
13906 osf3* | osf4* | osf5*)
13907 case $cc_basename in
13909 lt_prog_compiler_wl_CXX='--backend -Wl,'
13912 # Rational C++ 2.4.1
13913 lt_prog_compiler_pic_CXX='-pic'
13916 # Digital/Compaq C++
13917 lt_prog_compiler_wl_CXX='-Wl,'
13918 # Make sure the PIC flag is empty. It appears that all Alpha
13919 # Linux and Compaq Tru64 Unix objects are PIC.
13920 lt_prog_compiler_pic_CXX=
13921 lt_prog_compiler_static_CXX='-non_shared'
13930 case $cc_basename in
13932 # Sun C++ 4.2, 5.x and Centerline C++
13933 lt_prog_compiler_pic_CXX='-KPIC'
13934 lt_prog_compiler_static_CXX='-Bstatic'
13935 lt_prog_compiler_wl_CXX='-Qoption ld '
13938 # Green Hills C++ Compiler
13939 lt_prog_compiler_pic_CXX='-PIC'
13946 case $cc_basename in
13949 lt_prog_compiler_pic_CXX='-pic'
13950 lt_prog_compiler_static_CXX='-Bstatic'
13954 lt_prog_compiler_pic_CXX='-pic'
13961 case $cc_basename in
13963 # NonStop-UX NCC 3.20
13964 lt_prog_compiler_pic_CXX='-KPIC'
13970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13971 case $cc_basename in
13973 lt_prog_compiler_wl_CXX='-Wl,'
13974 lt_prog_compiler_pic_CXX='-KPIC'
13975 lt_prog_compiler_static_CXX='-Bstatic'
13982 lt_prog_compiler_can_build_shared_CXX=no
13987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13988 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13991 # Check to make sure the PIC flag actually works.
13993 if test -n "$lt_prog_compiler_pic_CXX"; then
13995 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13996 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13997 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 lt_prog_compiler_pic_works_CXX=no
14001 ac_outfile=conftest.$ac_objext
14002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14003 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14004 # Insert the option either (1) after the last *FLAGS variable, or
14005 # (2) before a word containing "conftest.", or (3) at the end.
14006 # Note that $ac_compile itself does not contain backslashes and begins
14007 # with a dollar sign (not a hyphen), so the echo should work correctly.
14008 # The option is referenced via a variable to avoid confusing sed.
14009 lt_compile=`echo "$ac_compile" | $SED \
14010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14012 -e 's:$: $lt_compiler_flag:'`
14013 (eval echo "\"\$as_me:14013: $lt_compile\"" >&5)
14014 (eval "$lt_compile" 2>conftest.err)
14016 cat conftest.err >&5
14017 echo "$as_me:14017: \$? = $ac_status" >&5
14018 if (exit $ac_status) && test -s "$ac_outfile"; then
14019 # The compiler can only warn and ignore the option if not recognized
14020 # So say no if there are warnings other than the usual output.
14021 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14024 lt_prog_compiler_pic_works_CXX=yes
14030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14031 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14033 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14034 case $lt_prog_compiler_pic_CXX in
14036 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14039 lt_prog_compiler_pic_CXX=
14040 lt_prog_compiler_can_build_shared_CXX=no
14045 # For platforms which do not support PIC, -DPIC is meaningless:
14047 lt_prog_compiler_pic_CXX=
14050 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14055 # Check to make sure the static flag actually works.
14057 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14058 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14059 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14060 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 lt_prog_compiler_static_works_CXX=no
14064 save_LDFLAGS="$LDFLAGS"
14065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14066 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14068 # The linker can only warn and ignore the option if not recognized
14069 # So say no if there are warnings
14070 if test -s conftest.err; then
14071 # Append any errors to the config.log.
14072 cat conftest.err 1>&5
14073 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14075 if diff conftest.exp conftest.er2 >/dev/null; then
14076 lt_prog_compiler_static_works_CXX=yes
14079 lt_prog_compiler_static_works_CXX=yes
14083 LDFLAGS="$save_LDFLAGS"
14086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14087 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14089 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14092 lt_prog_compiler_static_CXX=
14096 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14097 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14098 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 lt_cv_prog_compiler_c_o_CXX=no
14102 $rm -r conftest 2>/dev/null
14106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14108 lt_compiler_flag="-o out/conftest2.$ac_objext"
14109 # Insert the option either (1) after the last *FLAGS variable, or
14110 # (2) before a word containing "conftest.", or (3) at the end.
14111 # Note that $ac_compile itself does not contain backslashes and begins
14112 # with a dollar sign (not a hyphen), so the echo should work correctly.
14113 lt_compile=`echo "$ac_compile" | $SED \
14114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14116 -e 's:$: $lt_compiler_flag:'`
14117 (eval echo "\"\$as_me:14117: $lt_compile\"" >&5)
14118 (eval "$lt_compile" 2>out/conftest.err)
14120 cat out/conftest.err >&5
14121 echo "$as_me:14121: \$? = $ac_status" >&5
14122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14124 # The compiler can only warn and ignore the option if not recognized
14125 # So say no if there are warnings
14126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14129 lt_cv_prog_compiler_c_o_CXX=yes
14134 # SGI C++ compiler will create directory out/ii_files/ for
14135 # template instantiation
14136 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14137 $rm out/* && rmdir out
14143 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14144 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14147 hard_links="nottested"
14148 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14149 # do not overwrite the value of need_locks provided by the user
14150 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14151 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14156 ln conftest.a conftest.b 2>&5 || hard_links=no
14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158 { echo "$as_me:$LINENO: result: $hard_links" >&5
14159 echo "${ECHO_T}$hard_links" >&6; }
14160 if test "$hard_links" = no; then
14161 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14162 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14169 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14172 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14175 # If we're using GNU nm, then we don't want the "-C" option.
14176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14178 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'
14180 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'
14184 export_symbols_cmds_CXX="$ltdll_cmds"
14187 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'
14190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14194 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14195 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14196 test "$ld_shlibs_CXX" = no && can_build_shared=no
14199 # Do we need to explicitly link libc?
14201 case "x$archive_cmds_need_lc_CXX" in
14203 # Assume -lc should be added
14204 archive_cmds_need_lc_CXX=yes
14206 if test "$enable_shared" = yes && test "$GCC" = yes; then
14207 case $archive_cmds_CXX in
14209 # FIXME: we may have to deal with multi-command sequences.
14212 # Test whether the compiler implicitly links with -lc since on some
14213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14214 # to ld, don't add -lc before -lgcc.
14215 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221 (eval $ac_compile) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } 2>conftest.err; then
14227 libobjs=conftest.$ac_objext
14229 wl=$lt_prog_compiler_wl_CXX
14230 pic_flag=$lt_prog_compiler_pic_CXX
14236 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14237 allow_undefined_flag_CXX=
14238 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14239 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }
14244 archive_cmds_need_lc_CXX=no
14246 archive_cmds_need_lc_CXX=yes
14248 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14250 cat conftest.err 1>&5
14253 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14254 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14261 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14262 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14263 library_names_spec=
14264 libname_spec='lib$name'
14268 postuninstall_cmds=
14272 shlibpath_overrides_runpath=unknown
14274 dynamic_linker="$host_os ld.so"
14275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14277 need_lib_prefix=unknown
14278 hardcode_into_libs=no
14280 # when you set need_version to no, make sure it does not cause -set_version
14281 # flags to be left without arguments
14282 need_version=unknown
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14288 shlibpath_var=LIBPATH
14290 # AIX 3 has no versioning support, so we append a major version to the name.
14291 soname_spec='${libname}${release}${shared_ext}$major'
14298 hardcode_into_libs=yes
14299 if test "$host_cpu" = ia64; then
14300 # AIX 5 supports IA64
14301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14302 shlibpath_var=LD_LIBRARY_PATH
14304 # With GCC up to 2.95.x, collect2 would create an import file
14305 # for dependence libraries. The import file would start with
14306 # the line `#! .'. This would cause the generated library to
14307 # depend on `.', always an invalid library. This was fixed in
14308 # development snapshots of GCC prior to 3.0.
14310 aix4 | aix4.[01] | aix4.[01].*)
14311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14313 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14316 can_build_shared=no
14320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14321 # soname into executable. Probably we can add versioning support to
14322 # collect2, so additional links can be useful in future.
14323 if test "$aix_use_runtimelinking" = yes; then
14324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14325 # instead of lib<name>.a to let people know that these are not
14326 # typical AIX shared libraries.
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329 # We preserve .a as extension for shared libraries through AIX4.2
14330 # and later when we are not doing run time linking.
14331 library_names_spec='${libname}${release}.a $libname.a'
14332 soname_spec='${libname}${release}${shared_ext}$major'
14334 shlibpath_var=LIBPATH
14339 library_names_spec='$libname.ixlibrary $libname.a'
14340 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14341 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'
14345 library_names_spec='${libname}${shared_ext}'
14346 dynamic_linker="$host_os ld.so"
14347 shlibpath_var=LIBRARY_PATH
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354 soname_spec='${libname}${release}${shared_ext}$major'
14355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14356 shlibpath_var=LD_LIBRARY_PATH
14357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14359 # the default ld.so.conf also contains /usr/contrib/lib and
14360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14361 # libtool to hard-code these into programs
14364 cygwin* | mingw* | pw32*)
14365 version_type=windows
14370 case $GCC,$host_os in
14371 yes,cygwin* | yes,mingw* | yes,pw32*)
14372 library_names_spec='$libname.dll.a'
14373 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14374 postinstall_cmds='base_file=`basename \${file}`~
14375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14376 dldir=$destdir/`dirname \$dlpath`~
14377 test -d \$dldir || mkdir -p \$dldir~
14378 $install_prog $dir/$dlname \$dldir/$dlname~
14379 chmod a+x \$dldir/$dlname'
14380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14381 dlpath=$dir/\$dldll~
14383 shlibpath_overrides_runpath=yes
14387 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14388 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14389 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14392 # MinGW DLLs use traditional 'lib' prefix
14393 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14394 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14395 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14396 # It is most probably a Windows format PATH printed by
14397 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14398 # path with ; separators, and with drive letters. We can handle the
14399 # drive letters (cygwin fileutils understands them), so leave them,
14400 # especially as we might pass files found there to a mingw objdump,
14401 # which wouldn't understand a cygwinified path. Ahh.
14402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14408 # pw32 DLLs use 'pw' prefix rather than 'lib'
14409 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14415 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14418 dynamic_linker='Win32 ld.exe'
14419 # FIXME: first we should search . and the directory the executable is in
14423 darwin* | rhapsody*)
14424 dynamic_linker="$host_os dyld"
14425 version_type=darwin
14428 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14429 soname_spec='${libname}${release}${major}$shared_ext'
14430 shlibpath_overrides_runpath=yes
14431 shlibpath_var=DYLD_LIBRARY_PATH
14432 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14434 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14442 soname_spec='${libname}${release}${shared_ext}$major'
14443 shlibpath_var=LD_LIBRARY_PATH
14450 freebsd* | dragonfly*)
14451 # DragonFly does not have aout. When/if they implement a new
14452 # versioning mechanism, adjust this.
14453 if test -x /usr/bin/objformat; then
14454 objformat=`/usr/bin/objformat`
14457 freebsd[123]*) objformat=aout ;;
14458 *) objformat=elf ;;
14461 version_type=freebsd-$objformat
14462 case $version_type in
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14473 shlibpath_var=LD_LIBRARY_PATH
14476 shlibpath_overrides_runpath=yes
14478 freebsd3.[01]* | freebsdelf3.[01]*)
14479 shlibpath_overrides_runpath=yes
14480 hardcode_into_libs=yes
14482 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14483 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14484 shlibpath_overrides_runpath=no
14485 hardcode_into_libs=yes
14487 *) # from 4.6 on, and DragonFly
14488 shlibpath_overrides_runpath=yes
14489 hardcode_into_libs=yes
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 shlibpath_var=LD_LIBRARY_PATH
14501 hardcode_into_libs=yes
14504 hpux9* | hpux10* | hpux11*)
14505 # Give a soname corresponding to the major version so that dld.sl refuses to
14506 # link against other versions.
14513 hardcode_into_libs=yes
14514 dynamic_linker="$host_os dld.so"
14515 shlibpath_var=LD_LIBRARY_PATH
14516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 if test "X$HPUX_IA64_MODE" = X32; then
14520 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14528 hardcode_into_libs=yes
14529 dynamic_linker="$host_os dld.sl"
14530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14539 dynamic_linker="$host_os dld.sl"
14540 shlibpath_var=SHLIB_PATH
14541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
14546 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14547 postinstall_cmds='chmod 555 $lib'
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14562 irix5* | irix6* | nonstopux*)
14564 nonstopux*) version_type=nonstopux ;;
14566 if test "$lt_cv_prog_gnu_ld" = yes; then
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14577 irix5* | nonstopux*)
14578 libsuff= shlibsuff=
14581 case $LD in # libtool.m4 will add one of these switches to LD
14582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14583 libsuff= shlibsuff= libmagic=32-bit;;
14584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14585 libsuff=32 shlibsuff=N32 libmagic=N32;;
14586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14587 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14588 *) libsuff= shlibsuff= libmagic=never-match;;
14592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14593 shlibpath_overrides_runpath=no
14594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14596 hardcode_into_libs=yes
14599 # No shared lib support for Linux oldld, aout, or coff.
14600 linux*oldld* | linux*aout* | linux*coff*)
14604 # This must be Linux ELF.
14605 linux* | k*bsd*-gnu)
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610 soname_spec='${libname}${release}${shared_ext}$major'
14611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=no
14614 # This implies no fast_install, which is unacceptable.
14615 # Some rework will be needed to allow for fast_install
14616 # before this can be enabled.
14617 hardcode_into_libs=yes
14618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14621 # Append ld.so.conf contents to the search path
14622 if test -f /etc/ld.so.conf; then
14623 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' ' '`
14624 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14627 # We used to test for /lib/ld.so.1 and disable shared libraries on
14628 # powerpc, because MkLinux only supported shared libraries with the
14629 # GNU dynamic linker. Since this was broken with cross compilers,
14630 # most powerpc-linux boxes support dynamic linking these days and
14631 # people can always --disable-shared, the test was removed, and we
14632 # assume the GNU/Linux dynamic linker is in use.
14633 dynamic_linker='GNU/Linux ld.so'
14640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14643 dynamic_linker='NetBSD (a.out) ld.so'
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14646 soname_spec='${libname}${release}${shared_ext}$major'
14647 dynamic_linker='NetBSD ld.elf_so'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=yes
14651 hardcode_into_libs=yes
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 shlibpath_overrides_runpath=yes
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 shlibpath_overrides_runpath=yes
14673 sys_lib_dlsearch_path_spec="/usr/lib"
14675 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14677 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14678 *) need_version=no ;;
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14685 openbsd2.[89] | openbsd2.[89].*)
14686 shlibpath_overrides_runpath=no
14689 shlibpath_overrides_runpath=yes
14693 shlibpath_overrides_runpath=yes
14698 libname_spec='$name'
14701 library_names_spec='$libname${shared_ext} $libname.a'
14702 dynamic_linker='OS/2 ld.exe'
14703 shlibpath_var=LIBPATH
14706 osf3* | osf4* | osf5*)
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14714 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=yes
14729 hardcode_into_libs=yes
14730 # ldd complains unless libraries are executable
14731 postinstall_cmds='chmod +x $lib'
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14737 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14740 if test "$with_gnu_ld" = yes; then
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 case $host_vendor in
14753 shlibpath_overrides_runpath=no
14755 export_dynamic_flag_spec='${wl}-Blargedynsym'
14756 runpath_var=LD_RUN_PATH
14764 shlibpath_overrides_runpath=no
14765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14771 if test -d /usr/nec ;then
14773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14774 soname_spec='$libname${shared_ext}.$major'
14775 shlibpath_var=LD_LIBRARY_PATH
14779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14780 version_type=freebsd-elf
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 hardcode_into_libs=yes
14787 if test "$with_gnu_ld" = yes; then
14788 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14789 shlibpath_overrides_runpath=no
14791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14792 shlibpath_overrides_runpath=yes
14795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14799 sys_lib_dlsearch_path_spec='/usr/lib'
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805 soname_spec='${libname}${release}${shared_ext}$major'
14806 shlibpath_var=LD_LIBRARY_PATH
14813 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14814 echo "${ECHO_T}$dynamic_linker" >&6; }
14815 test "$dynamic_linker" = no && can_build_shared=no
14817 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14818 if test "$GCC" = yes; then
14819 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14822 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14823 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14824 hardcode_action_CXX=
14825 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14826 test -n "$runpath_var_CXX" || \
14827 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14829 # We can hardcode non-existant directories.
14830 if test "$hardcode_direct_CXX" != no &&
14831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14832 # have to relink, otherwise we might link with an installed library
14833 # when we should be linking with a yet-to-be-installed one
14834 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14835 test "$hardcode_minus_L_CXX" != no; then
14836 # Linking always hardcodes the temporary library directory.
14837 hardcode_action_CXX=relink
14839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14840 hardcode_action_CXX=immediate
14843 # We cannot hardcode anything, or else we can only hardcode existing
14845 hardcode_action_CXX=unsupported
14847 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14848 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14850 if test "$hardcode_action_CXX" = relink; then
14851 # Fast installation is not supported
14852 enable_fast_install=no
14853 elif test "$shlibpath_overrides_runpath" = yes ||
14854 test "$enable_shared" = no; then
14855 # Fast installation is not necessary
14856 enable_fast_install=needless
14860 # The else clause should only fire when bootstrapping the
14861 # libtool distribution, otherwise you forgot to ship ltmain.sh
14862 # with your package, and you will get complaints that there are
14863 # no rules to generate ltmain.sh.
14864 if test -f "$ltmain"; then
14865 # See if we are running on zsh, and set the options which allow our commands through
14866 # without removal of \ escapes.
14867 if test -n "${ZSH_VERSION+set}" ; then
14868 setopt NO_GLOB_SUBST
14870 # Now quote all the things that may contain metacharacters while being
14871 # careful not to overquote the AC_SUBSTed values. We take copies of the
14872 # variables and quote the copies for generation of the libtool script.
14873 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14875 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14876 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14877 deplibs_check_method reload_flag reload_cmds need_locks \
14878 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14879 lt_cv_sys_global_symbol_to_c_name_address \
14880 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14881 old_postinstall_cmds old_postuninstall_cmds \
14885 lt_prog_compiler_wl_CXX \
14886 lt_prog_compiler_pic_CXX \
14887 lt_prog_compiler_static_CXX \
14888 lt_prog_compiler_no_builtin_flag_CXX \
14889 export_dynamic_flag_spec_CXX \
14890 thread_safe_flag_spec_CXX \
14891 whole_archive_flag_spec_CXX \
14892 enable_shared_with_static_runtimes_CXX \
14893 old_archive_cmds_CXX \
14894 old_archive_from_new_cmds_CXX \
14895 predep_objects_CXX \
14896 postdep_objects_CXX \
14899 compiler_lib_search_path_CXX \
14901 archive_expsym_cmds_CXX \
14902 postinstall_cmds_CXX \
14903 postuninstall_cmds_CXX \
14904 old_archive_from_expsyms_cmds_CXX \
14905 allow_undefined_flag_CXX \
14906 no_undefined_flag_CXX \
14907 export_symbols_cmds_CXX \
14908 hardcode_libdir_flag_spec_CXX \
14909 hardcode_libdir_flag_spec_ld_CXX \
14910 hardcode_libdir_separator_CXX \
14911 hardcode_automatic_CXX \
14913 module_expsym_cmds_CXX \
14914 lt_cv_prog_compiler_c_o_CXX \
14915 fix_srcfile_path_CXX \
14916 exclude_expsyms_CXX \
14917 include_expsyms_CXX; do
14920 old_archive_cmds_CXX | \
14921 old_archive_from_new_cmds_CXX | \
14922 archive_cmds_CXX | \
14923 archive_expsym_cmds_CXX | \
14924 module_cmds_CXX | \
14925 module_expsym_cmds_CXX | \
14926 old_archive_from_expsyms_cmds_CXX | \
14927 export_symbols_cmds_CXX | \
14928 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14929 postinstall_cmds | postuninstall_cmds | \
14930 old_postinstall_cmds | old_postuninstall_cmds | \
14931 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14932 # Double-quote double-evaled strings.
14933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14942 *'\$0 --fallback-echo"')
14943 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14949 cat <<__EOF__ >> "$cfgfile"
14950 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14954 # Shell to use when invoking shell scripts.
14957 # Whether or not to build shared libraries.
14958 build_libtool_libs=$enable_shared
14960 # Whether or not to build static libraries.
14961 build_old_libs=$enable_static
14963 # Whether or not to add -lc for building shared libraries.
14964 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14966 # Whether or not to disallow shared libs when runtime libs are static
14967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14969 # Whether or not to optimize for fast installation.
14970 fast_install=$enable_fast_install
14973 host_alias=$host_alias
14977 # The build system.
14978 build_alias=$build_alias
14982 # An echo program that does not interpret backslashes.
14987 AR_FLAGS=$lt_AR_FLAGS
14992 # LTCC compiler flags.
14993 LTCFLAGS=$lt_LTCFLAGS
14995 # A language-specific compiler.
14996 CC=$lt_compiler_CXX
14998 # Is the compiler the GNU C compiler?
15004 # The linker used to build libraries.
15007 # Whether we need hard or soft links.
15010 # A BSD-compatible nm program.
15013 # A symbol stripping program
15016 # Used to examine libraries when file_magic_cmd begins "file"
15017 MAGIC_CMD=$MAGIC_CMD
15019 # Used on cygwin: DLL creation program.
15022 # Used on cygwin: object dumper.
15025 # Used on cygwin: assembler.
15028 # The name of the directory that contains temporary libtool files.
15031 # How to create reloadable object files.
15032 reload_flag=$lt_reload_flag
15033 reload_cmds=$lt_reload_cmds
15035 # How to pass a linker flag through the compiler.
15036 wl=$lt_lt_prog_compiler_wl_CXX
15038 # Object file suffix (normally "o").
15039 objext="$ac_objext"
15041 # Old archive suffix (normally "a").
15044 # Shared library suffix (normally ".so").
15045 shrext_cmds='$shrext_cmds'
15047 # Executable file suffix (normally "").
15050 # Additional compiler flags for building library objects.
15051 pic_flag=$lt_lt_prog_compiler_pic_CXX
15054 # What is the maximum length of a command?
15055 max_cmd_len=$lt_cv_sys_max_cmd_len
15057 # Does compiler simultaneously support -c and -o options?
15058 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15060 # Must we lock files when doing compilation?
15061 need_locks=$lt_need_locks
15063 # Do we need the lib prefix for modules?
15064 need_lib_prefix=$need_lib_prefix
15066 # Do we need a version for libraries?
15067 need_version=$need_version
15069 # Whether dlopen is supported.
15070 dlopen_support=$enable_dlopen
15072 # Whether dlopen of programs is supported.
15073 dlopen_self=$enable_dlopen_self
15075 # Whether dlopen of statically linked programs is supported.
15076 dlopen_self_static=$enable_dlopen_self_static
15078 # Compiler flag to prevent dynamic linking.
15079 link_static_flag=$lt_lt_prog_compiler_static_CXX
15081 # Compiler flag to turn off builtin functions.
15082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15084 # Compiler flag to allow reflexive dlopens.
15085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15087 # Compiler flag to generate shared objects directly from archives.
15088 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15090 # Compiler flag to generate thread-safe objects.
15091 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15093 # Library versioning type.
15094 version_type=$version_type
15096 # Format of library name prefix.
15097 libname_spec=$lt_libname_spec
15099 # List of archive names. First name is the real one, the rest are links.
15100 # The last name is the one that the linker finds with -lNAME.
15101 library_names_spec=$lt_library_names_spec
15103 # The coded name of the library, if different from the real name.
15104 soname_spec=$lt_soname_spec
15106 # Commands used to build and install an old-style archive.
15108 old_archive_cmds=$lt_old_archive_cmds_CXX
15109 old_postinstall_cmds=$lt_old_postinstall_cmds
15110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15112 # Create an old-style archive from a shared archive.
15113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15115 # Create a temporary old-style archive to link instead of a shared archive.
15116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15118 # Commands used to build and install a shared archive.
15119 archive_cmds=$lt_archive_cmds_CXX
15120 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15121 postinstall_cmds=$lt_postinstall_cmds
15122 postuninstall_cmds=$lt_postuninstall_cmds
15124 # Commands used to build a loadable module (assumed same as above if empty)
15125 module_cmds=$lt_module_cmds_CXX
15126 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15128 # Commands to strip libraries.
15129 old_striplib=$lt_old_striplib
15130 striplib=$lt_striplib
15132 # Dependencies to place before the objects being linked to create a
15134 predep_objects=$lt_predep_objects_CXX
15136 # Dependencies to place after the objects being linked to create a
15138 postdep_objects=$lt_postdep_objects_CXX
15140 # Dependencies to place before the objects being linked to create a
15142 predeps=$lt_predeps_CXX
15144 # Dependencies to place after the objects being linked to create a
15146 postdeps=$lt_postdeps_CXX
15148 # The library search path used internally by the compiler when linking
15149 # a shared library.
15150 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15152 # Method to check whether dependent libraries are shared objects.
15153 deplibs_check_method=$lt_deplibs_check_method
15155 # Command to use when deplibs_check_method == file_magic.
15156 file_magic_cmd=$lt_file_magic_cmd
15158 # Flag that allows shared libraries with undefined symbols to be built.
15159 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15161 # Flag that forces no undefined symbols.
15162 no_undefined_flag=$lt_no_undefined_flag_CXX
15164 # Commands used to finish a libtool library installation in a directory.
15165 finish_cmds=$lt_finish_cmds
15167 # Same as above, but a single script fragment to be evaled but not shown.
15168 finish_eval=$lt_finish_eval
15170 # Take the output of nm and produce a listing of raw symbols and C names.
15171 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15173 # Transform the output of nm in a proper C declaration
15174 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15176 # Transform the output of nm in a C name address pair
15177 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15179 # This is the shared library runtime path variable.
15180 runpath_var=$runpath_var
15182 # This is the shared library path variable.
15183 shlibpath_var=$shlibpath_var
15185 # Is shlibpath searched before the hard-coded library search path?
15186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15188 # How to hardcode a shared library path into an executable.
15189 hardcode_action=$hardcode_action_CXX
15191 # Whether we should hardcode library paths into libraries.
15192 hardcode_into_libs=$hardcode_into_libs
15194 # Flag to hardcode \$libdir into a binary during linking.
15195 # This must work even if \$libdir does not exist.
15196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15198 # If ld is used when linking, flag to hardcode \$libdir into
15199 # a binary during linking. This must work even if \$libdir does
15201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15203 # Whether we need a single -rpath flag with a separated argument.
15204 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15206 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15207 # resulting binary.
15208 hardcode_direct=$hardcode_direct_CXX
15210 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15211 # resulting binary.
15212 hardcode_minus_L=$hardcode_minus_L_CXX
15214 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15215 # the resulting binary.
15216 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15218 # Set to yes if building a shared library automatically hardcodes DIR into the library
15219 # and all subsequent libraries and executables linked against it.
15220 hardcode_automatic=$hardcode_automatic_CXX
15222 # Variables whose values should be saved in libtool wrapper scripts and
15223 # restored at relink time.
15224 variables_saved_for_relink="$variables_saved_for_relink"
15226 # Whether libtool must link a program against all its dependency libraries.
15227 link_all_deplibs=$link_all_deplibs_CXX
15229 # Compile-time system search path for libraries
15230 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15232 # Run-time system search path for libraries
15233 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15235 # Fix the shell variable \$srcfile for the compiler.
15236 fix_srcfile_path=$lt_fix_srcfile_path
15238 # Set to yes if exported symbols are required.
15239 always_export_symbols=$always_export_symbols_CXX
15241 # The commands to list exported symbols.
15242 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15244 # The commands to extract the exported symbol list from a shared archive.
15245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15247 # Symbols that should not be listed in the preloaded symbols.
15248 exclude_expsyms=$lt_exclude_expsyms_CXX
15250 # Symbols that must always be exported.
15251 include_expsyms=$lt_include_expsyms_CXX
15253 # ### END LIBTOOL TAG CONFIG: $tagname
15259 # If there is no Makefile yet, we rely on a make rule to execute
15260 # `config.status --recheck' to rerun these tests and create the
15261 # libtool script then.
15262 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15263 if test -f "$ltmain_in"; then
15264 test -f Makefile && make "$ltmain"
15270 ac_cpp='$CPP $CPPFLAGS'
15271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15279 with_gnu_ldcxx=$with_gnu_ld
15280 with_gnu_ld=$lt_save_with_gnu_ld
15281 lt_cv_path_LDCXX=$lt_cv_path_LD
15282 lt_cv_path_LD=$lt_save_path_LD
15283 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15284 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15292 if test -n "$F77" && test "X$F77" != "Xno"; then
15295 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15296 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15297 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15300 archive_cmds_need_lc_F77=no
15301 allow_undefined_flag_F77=
15302 always_export_symbols_F77=no
15303 archive_expsym_cmds_F77=
15304 export_dynamic_flag_spec_F77=
15305 hardcode_direct_F77=no
15306 hardcode_libdir_flag_spec_F77=
15307 hardcode_libdir_flag_spec_ld_F77=
15308 hardcode_libdir_separator_F77=
15309 hardcode_minus_L_F77=no
15310 hardcode_automatic_F77=no
15312 module_expsym_cmds_F77=
15313 link_all_deplibs_F77=unknown
15314 old_archive_cmds_F77=$old_archive_cmds
15315 no_undefined_flag_F77=
15316 whole_archive_flag_spec_F77=
15317 enable_shared_with_static_runtimes_F77=no
15319 # Source file extension for f77 test sources.
15322 # Object file extension for compiled f77 test sources.
15326 # Code to be used in simple compile tests
15327 lt_simple_compile_test_code="\
15333 # Code to be used in simple link tests
15334 lt_simple_link_test_code="\
15339 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15341 # If no C compiler was specified, use CC.
15344 # If no C compiler flags were specified, use CFLAGS.
15345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15347 # Allow CC to be a program name with arguments.
15351 # save warnings/boilerplate of simple test code
15352 ac_outfile=conftest.$ac_objext
15353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15355 _lt_compiler_boilerplate=`cat conftest.err`
15358 ac_outfile=conftest.$ac_objext
15359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15361 _lt_linker_boilerplate=`cat conftest.err`
15365 # Allow CC to be a program name with arguments.
15370 for cc_temp in $compiler""; do
15372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15381 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15382 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15383 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15384 echo "${ECHO_T}$can_build_shared" >&6; }
15386 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15387 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15388 test "$can_build_shared" = "no" && enable_shared=no
15390 # On AIX, shared libraries and static libraries use the same namespace, and
15391 # are all built from PIC.
15394 test "$enable_shared" = yes && enable_static=no
15395 if test -n "$RANLIB"; then
15396 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15397 postinstall_cmds='$RANLIB $lib'
15401 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15402 test "$enable_shared" = yes && enable_static=no
15406 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15407 echo "${ECHO_T}$enable_shared" >&6; }
15409 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15410 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15411 # Make sure either enable_shared or enable_static is yes.
15412 test "$enable_shared" = yes || enable_static=yes
15413 { echo "$as_me:$LINENO: result: $enable_static" >&5
15414 echo "${ECHO_T}$enable_static" >&6; }
15419 lt_prog_compiler_wl_F77=
15420 lt_prog_compiler_pic_F77=
15421 lt_prog_compiler_static_F77=
15423 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15424 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15426 if test "$GCC" = yes; then
15427 lt_prog_compiler_wl_F77='-Wl,'
15428 lt_prog_compiler_static_F77='-static'
15432 # All AIX code is PIC.
15433 if test "$host_cpu" = ia64; then
15434 # AIX 5 now supports IA64 processor
15435 lt_prog_compiler_static_F77='-Bstatic'
15440 # FIXME: we need at least 68020 code to build shared libraries, but
15441 # adding the `-m68020' flag to GCC prevents building anything better,
15443 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15447 # PIC is the default for these OSes.
15450 mingw* | cygwin* | pw32* | os2*)
15451 # This hack is so that the source file can tell whether it is being
15452 # built for inclusion in a dll (and should export symbols for example).
15453 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15454 # (--disable-auto-import) libraries
15455 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15458 darwin* | rhapsody*)
15459 # PIC is the default on this platform
15460 # Common symbols not allowed in MH_DYLIB files
15461 lt_prog_compiler_pic_F77='-fno-common'
15465 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15466 # Instead, we relocate shared libraries at runtime.
15470 # Just because we use GCC doesn't mean we suddenly get shared libraries
15471 # on systems that don't support them.
15472 lt_prog_compiler_can_build_shared_F77=no
15477 if test -d /usr/nec; then
15478 lt_prog_compiler_pic_F77=-Kconform_pic
15483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15484 # not for PA HP-UX.
15490 lt_prog_compiler_pic_F77='-fPIC'
15496 lt_prog_compiler_pic_F77='-fPIC'
15500 # PORTME Check for flag to pass linker flags through the system compiler.
15503 lt_prog_compiler_wl_F77='-Wl,'
15504 if test "$host_cpu" = ia64; then
15505 # AIX 5 now supports IA64 processor
15506 lt_prog_compiler_static_F77='-Bstatic'
15508 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15512 # PIC is the default on this platform
15513 # Common symbols not allowed in MH_DYLIB files
15514 case $cc_basename in
15516 lt_prog_compiler_pic_F77='-qnocommon'
15517 lt_prog_compiler_wl_F77='-Wl,'
15522 mingw* | cygwin* | pw32* | os2*)
15523 # This hack is so that the source file can tell whether it is being
15524 # built for inclusion in a dll (and should export symbols for example).
15525 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15528 hpux9* | hpux10* | hpux11*)
15529 lt_prog_compiler_wl_F77='-Wl,'
15530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15531 # not for PA HP-UX.
15537 lt_prog_compiler_pic_F77='+Z'
15540 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15541 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15544 irix5* | irix6* | nonstopux*)
15545 lt_prog_compiler_wl_F77='-Wl,'
15546 # PIC (with -KPIC) is the default.
15547 lt_prog_compiler_static_F77='-non_shared'
15551 lt_prog_compiler_pic_F77='-KPIC'
15552 lt_prog_compiler_static_F77='-Bstatic'
15555 linux* | k*bsd*-gnu)
15556 case $cc_basename in
15558 lt_prog_compiler_wl_F77='-Wl,'
15559 lt_prog_compiler_pic_F77='-KPIC'
15560 lt_prog_compiler_static_F77='-static'
15562 pgcc* | pgf77* | pgf90* | pgf95*)
15563 # Portland Group compilers (*not* the Pentium gcc compiler,
15564 # which looks to be a dead project)
15565 lt_prog_compiler_wl_F77='-Wl,'
15566 lt_prog_compiler_pic_F77='-fpic'
15567 lt_prog_compiler_static_F77='-Bstatic'
15570 lt_prog_compiler_wl_F77='-Wl,'
15571 # All Alpha code is PIC.
15572 lt_prog_compiler_static_F77='-non_shared'
15575 case `$CC -V 2>&1 | sed 5q` in
15578 lt_prog_compiler_pic_F77='-KPIC'
15579 lt_prog_compiler_static_F77='-Bstatic'
15580 lt_prog_compiler_wl_F77='-Wl,'
15583 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15584 lt_prog_compiler_pic_F77='-KPIC'
15585 lt_prog_compiler_static_F77='-Bstatic'
15586 lt_prog_compiler_wl_F77=''
15593 osf3* | osf4* | osf5*)
15594 lt_prog_compiler_wl_F77='-Wl,'
15595 # All OSF/1 code is PIC.
15596 lt_prog_compiler_static_F77='-non_shared'
15600 lt_prog_compiler_static_F77='-non_shared'
15604 lt_prog_compiler_pic_F77='-KPIC'
15605 lt_prog_compiler_static_F77='-Bstatic'
15606 case $cc_basename in
15607 f77* | f90* | f95*)
15608 lt_prog_compiler_wl_F77='-Qoption ld ';;
15610 lt_prog_compiler_wl_F77='-Wl,';;
15615 lt_prog_compiler_wl_F77='-Qoption ld '
15616 lt_prog_compiler_pic_F77='-PIC'
15617 lt_prog_compiler_static_F77='-Bstatic'
15620 sysv4 | sysv4.2uw2* | sysv4.3*)
15621 lt_prog_compiler_wl_F77='-Wl,'
15622 lt_prog_compiler_pic_F77='-KPIC'
15623 lt_prog_compiler_static_F77='-Bstatic'
15627 if test -d /usr/nec ;then
15628 lt_prog_compiler_pic_F77='-Kconform_pic'
15629 lt_prog_compiler_static_F77='-Bstatic'
15633 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15634 lt_prog_compiler_wl_F77='-Wl,'
15635 lt_prog_compiler_pic_F77='-KPIC'
15636 lt_prog_compiler_static_F77='-Bstatic'
15640 lt_prog_compiler_wl_F77='-Wl,'
15641 lt_prog_compiler_can_build_shared_F77=no
15645 lt_prog_compiler_pic_F77='-pic'
15646 lt_prog_compiler_static_F77='-Bstatic'
15650 lt_prog_compiler_can_build_shared_F77=no
15655 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15656 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15659 # Check to make sure the PIC flag actually works.
15661 if test -n "$lt_prog_compiler_pic_F77"; then
15663 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15664 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15665 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15666 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 lt_prog_compiler_pic_works_F77=no
15669 ac_outfile=conftest.$ac_objext
15670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15671 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15672 # Insert the option either (1) after the last *FLAGS variable, or
15673 # (2) before a word containing "conftest.", or (3) at the end.
15674 # Note that $ac_compile itself does not contain backslashes and begins
15675 # with a dollar sign (not a hyphen), so the echo should work correctly.
15676 # The option is referenced via a variable to avoid confusing sed.
15677 lt_compile=`echo "$ac_compile" | $SED \
15678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15680 -e 's:$: $lt_compiler_flag:'`
15681 (eval echo "\"\$as_me:15681: $lt_compile\"" >&5)
15682 (eval "$lt_compile" 2>conftest.err)
15684 cat conftest.err >&5
15685 echo "$as_me:15685: \$? = $ac_status" >&5
15686 if (exit $ac_status) && test -s "$ac_outfile"; then
15687 # The compiler can only warn and ignore the option if not recognized
15688 # So say no if there are warnings other than the usual output.
15689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15692 lt_prog_compiler_pic_works_F77=yes
15698 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15699 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15701 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15702 case $lt_prog_compiler_pic_F77 in
15704 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15707 lt_prog_compiler_pic_F77=
15708 lt_prog_compiler_can_build_shared_F77=no
15713 # For platforms which do not support PIC, -DPIC is meaningless:
15715 lt_prog_compiler_pic_F77=
15718 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15723 # Check to make sure the static flag actually works.
15725 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15726 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15727 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15728 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 lt_prog_compiler_static_works_F77=no
15732 save_LDFLAGS="$LDFLAGS"
15733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15734 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15736 # The linker can only warn and ignore the option if not recognized
15737 # So say no if there are warnings
15738 if test -s conftest.err; then
15739 # Append any errors to the config.log.
15740 cat conftest.err 1>&5
15741 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15743 if diff conftest.exp conftest.er2 >/dev/null; then
15744 lt_prog_compiler_static_works_F77=yes
15747 lt_prog_compiler_static_works_F77=yes
15751 LDFLAGS="$save_LDFLAGS"
15754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15755 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15757 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15760 lt_prog_compiler_static_F77=
15764 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15765 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15766 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 lt_cv_prog_compiler_c_o_F77=no
15770 $rm -r conftest 2>/dev/null
15774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15776 lt_compiler_flag="-o out/conftest2.$ac_objext"
15777 # Insert the option either (1) after the last *FLAGS variable, or
15778 # (2) before a word containing "conftest.", or (3) at the end.
15779 # Note that $ac_compile itself does not contain backslashes and begins
15780 # with a dollar sign (not a hyphen), so the echo should work correctly.
15781 lt_compile=`echo "$ac_compile" | $SED \
15782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15784 -e 's:$: $lt_compiler_flag:'`
15785 (eval echo "\"\$as_me:15785: $lt_compile\"" >&5)
15786 (eval "$lt_compile" 2>out/conftest.err)
15788 cat out/conftest.err >&5
15789 echo "$as_me:15789: \$? = $ac_status" >&5
15790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15792 # The compiler can only warn and ignore the option if not recognized
15793 # So say no if there are warnings
15794 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15797 lt_cv_prog_compiler_c_o_F77=yes
15802 # SGI C++ compiler will create directory out/ii_files/ for
15803 # template instantiation
15804 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15805 $rm out/* && rmdir out
15811 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15815 hard_links="nottested"
15816 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15817 # do not overwrite the value of need_locks provided by the user
15818 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15819 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15824 ln conftest.a conftest.b 2>&5 || hard_links=no
15825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15826 { echo "$as_me:$LINENO: result: $hard_links" >&5
15827 echo "${ECHO_T}$hard_links" >&6; }
15828 if test "$hard_links" = no; then
15829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15830 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15837 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15838 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15841 allow_undefined_flag_F77=
15842 enable_shared_with_static_runtimes_F77=no
15844 archive_expsym_cmds_F77=
15845 old_archive_From_new_cmds_F77=
15846 old_archive_from_expsyms_cmds_F77=
15847 export_dynamic_flag_spec_F77=
15848 whole_archive_flag_spec_F77=
15849 thread_safe_flag_spec_F77=
15850 hardcode_libdir_flag_spec_F77=
15851 hardcode_libdir_flag_spec_ld_F77=
15852 hardcode_libdir_separator_F77=
15853 hardcode_direct_F77=no
15854 hardcode_minus_L_F77=no
15855 hardcode_shlibpath_var_F77=unsupported
15856 link_all_deplibs_F77=unknown
15857 hardcode_automatic_F77=no
15859 module_expsym_cmds_F77=
15860 always_export_symbols_F77=no
15861 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15862 # include_expsyms should be a list of space-separated symbols to be *always*
15863 # included in the symbol list
15864 include_expsyms_F77=
15865 # exclude_expsyms can be an extended regexp of symbols to exclude
15866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15868 # as well as any symbol that contains `d'.
15869 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15871 # platforms (ab)use it in PIC code, but their linkers get confused if
15872 # the symbol is explicitly referenced. Since portable code cannot
15873 # rely on this symbol name, it's probably fine to never include it in
15874 # preloaded symbol tables.
15875 extract_expsyms_cmds=
15876 # Just being paranoid about ensuring that cc_basename is set.
15877 for cc_temp in $compiler""; do
15879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15885 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15888 cygwin* | mingw* | pw32*)
15889 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15890 # When not using gcc, we currently assume that we are using
15891 # Microsoft Visual C++.
15892 if test "$GCC" != yes; then
15897 # we just hope/assume this is gcc and not c89 (= MSVC++)
15906 if test "$with_gnu_ld" = yes; then
15907 # If archive_cmds runs LD, not CC, wlarc should be empty
15910 # Set some defaults for GNU ld with shared library support. These
15911 # are reset later if shared libraries are not supported. Putting them
15912 # here allows them to be overridden if necessary.
15913 runpath_var=LD_RUN_PATH
15914 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15915 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15916 # ancient GNU ld didn't support --whole-archive et. al.
15917 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15918 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15920 whole_archive_flag_spec_F77=
15922 supports_anon_versioning=no
15923 case `$LD -v 2>/dev/null` in
15924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15927 *\ 2.11.*) ;; # other 2.11 versions
15928 *) supports_anon_versioning=yes ;;
15931 # See if GNU ld supports shared libraries.
15933 aix3* | aix4* | aix5*)
15934 # On AIX/PPC, the GNU linker is very broken
15935 if test "$host_cpu" != ia64; then
15939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15940 *** to be unable to reliably create shared libraries on AIX.
15941 *** Therefore, libtool is disabling shared libraries support. If you
15942 *** really care for shared libraries, you may want to modify your PATH
15943 *** so that a non-GNU linker is found, and then restart.
15950 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)'
15951 hardcode_libdir_flag_spec_F77='-L$libdir'
15952 hardcode_minus_L_F77=yes
15954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15955 # that the semantics of dynamic libraries on AmigaOS, at least up
15956 # to version 4, is to share data among multiple programs linked
15957 # with the same dynamic library. Since this doesn't match the
15958 # behavior of shared libraries on other platforms, we can't use
15964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15965 allow_undefined_flag_F77=unsupported
15966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15967 # support --undefined. This deserves some investigation. FIXME
15968 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15974 cygwin* | mingw* | pw32*)
15975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15976 # as there is no search path for DLLs.
15977 hardcode_libdir_flag_spec_F77='-L$libdir'
15978 allow_undefined_flag_F77=unsupported
15979 always_export_symbols_F77=no
15980 enable_shared_with_static_runtimes_F77=yes
15981 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15984 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15985 # If the export-symbols file already is a .def file (1st line
15986 # is EXPORTS), use it as is; otherwise, prepend...
15987 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15988 cp $export_symbols $output_objdir/$soname.def;
15990 echo EXPORTS > $output_objdir/$soname.def;
15991 cat $export_symbols >> $output_objdir/$soname.def;
15993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16000 hardcode_direct_F77=no
16001 hardcode_shlibpath_var_F77=no
16002 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16003 export_dynamic_flag_spec_F77='${wl}-E'
16004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16005 # Instead, shared libraries are loaded at an image base (0x10000000 by
16006 # default) and relocated if they conflict, which is a slow very memory
16007 # consuming and fragmenting process. To avoid this, we pick a random,
16008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16009 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16010 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'
16011 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'
16014 gnu* | linux* | k*bsd*-gnu)
16015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16017 case $cc_basename,$host_cpu in
16018 pgcc*) # Portland Group C compiler
16019 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'
16020 tmp_addflag=' $pic_flag'
16022 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16023 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'
16024 tmp_addflag=' $pic_flag -Mnomain' ;;
16025 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16026 tmp_addflag=' -i_dynamic' ;;
16027 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16028 tmp_addflag=' -i_dynamic -nofor_main' ;;
16029 ifc* | ifort*) # Intel Fortran compiler
16030 tmp_addflag=' -nofor_main' ;;
16032 case `$CC -V 2>&1 | sed 5q` in
16033 *Sun\ C*) # Sun C 5.9
16034 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'
16035 tmp_sharedflag='-G' ;;
16036 *Sun\ F*) # Sun Fortran 8.3
16037 tmp_sharedflag='-G' ;;
16039 tmp_sharedflag='-shared' ;;
16041 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16043 if test $supports_anon_versioning = yes; then
16044 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16046 $echo "local: *; };" >> $output_objdir/$libname.ver~
16047 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16056 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16059 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16065 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16069 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16070 *** create shared libraries on Solaris systems. Therefore, libtool
16071 *** is disabling shared libraries support. We urge you to upgrade GNU
16072 *** binutils to release 2.9.1 or newer. Another option is to modify
16073 *** your PATH or compiler configuration so that the native linker is
16074 *** used, and then restart.
16077 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16078 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16079 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16086 case `$LD -v 2>&1` in
16087 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16091 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16092 *** reliably create shared libraries on SCO systems. Therefore, libtool
16093 *** is disabling shared libraries support. We urge you to upgrade GNU
16094 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16095 *** your PATH or compiler configuration so that the native linker is
16096 *** used, and then restart.
16101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16102 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16103 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16104 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16113 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_direct_F77=yes
16116 hardcode_shlibpath_var_F77=no
16120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16129 if test "$ld_shlibs_F77" = no; then
16131 hardcode_libdir_flag_spec_F77=
16132 export_dynamic_flag_spec_F77=
16133 whole_archive_flag_spec_F77=
16136 # PORTME fill in a description of your system's linker (not GNU ld)
16139 allow_undefined_flag_F77=unsupported
16140 always_export_symbols_F77=yes
16141 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'
16142 # Note: this linker hardcodes the directories in LIBPATH if there
16143 # are no directories specified by -L.
16144 hardcode_minus_L_F77=yes
16145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16146 # Neither direct hardcoding nor static linking is supported with a
16148 hardcode_direct_F77=unsupported
16153 if test "$host_cpu" = ia64; then
16154 # On IA64, the linker does run time linking by default, so we don't
16155 # have to do anything special.
16156 aix_use_runtimelinking=no
16157 exp_sym_flag='-Bexport'
16160 # If we're using GNU nm, then we don't want the "-C" option.
16161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16162 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16163 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'
16165 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'
16167 aix_use_runtimelinking=no
16169 # Test if we are trying to use run time linking or normal
16170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16171 # need to do runtime linking.
16172 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16173 for ld_flag in $LDFLAGS; do
16174 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16175 aix_use_runtimelinking=yes
16182 exp_sym_flag='-bexport'
16183 no_entry_flag='-bnoentry'
16186 # When large executables or shared objects are built, AIX ld can
16187 # have problems creating the table of contents. If linking a library
16188 # or program results in "error TOC overflow" add -mminimal-toc to
16189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16192 archive_cmds_F77=''
16193 hardcode_direct_F77=yes
16194 hardcode_libdir_separator_F77=':'
16195 link_all_deplibs_F77=yes
16197 if test "$GCC" = yes; then
16198 case $host_os in aix4.[012]|aix4.[012].*)
16199 # We only want to do this on AIX 4.2 and lower, the check
16200 # below for broken collect2 doesn't work under 4.3+
16201 collect2name=`${CC} -print-prog-name=collect2`
16202 if test -f "$collect2name" && \
16203 strings "$collect2name" | grep resolve_lib_name >/dev/null
16205 # We have reworked collect2
16208 # We have old collect2
16209 hardcode_direct_F77=unsupported
16210 # It fails to find uninstalled libraries when the uninstalled
16211 # path is not listed in the libpath. Setting hardcode_minus_L
16212 # to unsupported forces relinking
16213 hardcode_minus_L_F77=yes
16214 hardcode_libdir_flag_spec_F77='-L$libdir'
16215 hardcode_libdir_separator_F77=
16219 shared_flag='-shared'
16220 if test "$aix_use_runtimelinking" = yes; then
16221 shared_flag="$shared_flag "'${wl}-G'
16225 if test "$host_cpu" = ia64; then
16226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16227 # chokes on -Wl,-G. The following line is correct:
16230 if test "$aix_use_runtimelinking" = yes; then
16231 shared_flag='${wl}-G'
16233 shared_flag='${wl}-bM:SRE'
16238 # It seems that -bexpall does not export symbols beginning with
16239 # underscore (_), so it is better to generate a list of symbols to export.
16240 always_export_symbols_F77=yes
16241 if test "$aix_use_runtimelinking" = yes; then
16242 # Warning - without using the other runtime loading flags (-brtl),
16243 # -berok will link without error, but may produce a broken library.
16244 allow_undefined_flag_F77='-berok'
16245 # Determine the default libpath from the value encoded in an empty executable.
16246 cat >conftest.$ac_ext <<_ACEOF
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_link") 2>conftest.er1
16260 grep -v '^ *+' conftest.er1 >conftest.err
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } && {
16265 test -z "$ac_f77_werror_flag" ||
16266 test ! -s conftest.err
16267 } && test -s conftest$ac_exeext &&
16268 $as_test_x conftest$ac_exeext; then
16270 lt_aix_libpath_sed='
16271 /Import File Strings/,/^$/ {
16277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16278 # Check for a 64-bit object if we didn't find anything.
16279 if test -z "$aix_libpath"; then
16280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16290 conftest$ac_exeext conftest.$ac_ext
16291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16293 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16294 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"
16296 if test "$host_cpu" = ia64; then
16297 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16298 allow_undefined_flag_F77="-z nodefs"
16299 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"
16301 # Determine the default libpath from the value encoded in an empty executable.
16302 cat >conftest.$ac_ext <<_ACEOF
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_link") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_f77_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest$ac_exeext &&
16324 $as_test_x conftest$ac_exeext; then
16326 lt_aix_libpath_sed='
16327 /Import File Strings/,/^$/ {
16333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16334 # Check for a 64-bit object if we didn't find anything.
16335 if test -z "$aix_libpath"; then
16336 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16339 echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16346 conftest$ac_exeext conftest.$ac_ext
16347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16349 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16350 # Warning - without using the other run time loading flags,
16351 # -berok will link without error, but may produce a broken library.
16352 no_undefined_flag_F77=' ${wl}-bernotok'
16353 allow_undefined_flag_F77=' ${wl}-berok'
16354 # Exported symbols can be pulled into shared objects from archives
16355 whole_archive_flag_spec_F77='$convenience'
16356 archive_cmds_need_lc_F77=yes
16357 # This is similar to how AIX traditionally builds its shared libraries.
16358 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'
16364 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)'
16365 hardcode_libdir_flag_spec_F77='-L$libdir'
16366 hardcode_minus_L_F77=yes
16367 # see comment about different semantics on the GNU ld section
16372 export_dynamic_flag_spec_F77=-rdynamic
16375 cygwin* | mingw* | pw32*)
16376 # When not using gcc, we currently assume that we are using
16377 # Microsoft Visual C++.
16378 # hardcode_libdir_flag_spec is actually meaningless, as there is
16379 # no search path for DLLs.
16380 hardcode_libdir_flag_spec_F77=' '
16381 allow_undefined_flag_F77=unsupported
16382 # Tell ltmain to make .lib files, not .a files.
16384 # Tell ltmain to make .dll files, not .so files.
16386 # FIXME: Setting linknames here is a bad hack.
16387 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16388 # The linker will automatically build a .lib file if we build a DLL.
16389 old_archive_From_new_cmds_F77='true'
16390 # FIXME: Should let the user specify the lib program.
16391 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16392 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16393 enable_shared_with_static_runtimes_F77=yes
16396 darwin* | rhapsody*)
16398 rhapsody* | darwin1.[012])
16399 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16402 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16403 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16405 case ${MACOSX_DEPLOYMENT_TARGET} in
16407 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16410 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16416 archive_cmds_need_lc_F77=no
16417 hardcode_direct_F77=no
16418 hardcode_automatic_F77=yes
16419 hardcode_shlibpath_var_F77=unsupported
16420 whole_archive_flag_spec_F77=''
16421 link_all_deplibs_F77=yes
16422 if test "$GCC" = yes ; then
16423 output_verbose_link_cmd='echo'
16424 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16425 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16427 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}'
16428 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}'
16430 case $cc_basename in
16432 output_verbose_link_cmd='echo'
16433 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16434 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16436 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}'
16437 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}'
16447 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16448 hardcode_libdir_flag_spec_F77='-L$libdir'
16449 hardcode_shlibpath_var_F77=no
16456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16457 # support. Future versions do this automatically, but an explicit c++rt0.o
16458 # does not break anything, and helps significantly (at the cost of a little
16461 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16462 hardcode_libdir_flag_spec_F77='-R$libdir'
16463 hardcode_direct_F77=yes
16464 hardcode_shlibpath_var_F77=no
16467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16469 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16470 hardcode_direct_F77=yes
16471 hardcode_minus_L_F77=yes
16472 hardcode_shlibpath_var_F77=no
16475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16476 freebsd* | dragonfly*)
16477 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16478 hardcode_libdir_flag_spec_F77='-R$libdir'
16479 hardcode_direct_F77=yes
16480 hardcode_shlibpath_var_F77=no
16484 if test "$GCC" = yes; then
16485 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'
16487 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'
16489 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16490 hardcode_libdir_separator_F77=:
16491 hardcode_direct_F77=yes
16493 # hardcode_minus_L: Not really in the search PATH,
16494 # but as the default location of the library.
16495 hardcode_minus_L_F77=yes
16496 export_dynamic_flag_spec_F77='${wl}-E'
16500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16501 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16503 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16505 if test "$with_gnu_ld" = no; then
16506 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16507 hardcode_libdir_separator_F77=:
16509 hardcode_direct_F77=yes
16510 export_dynamic_flag_spec_F77='${wl}-E'
16512 # hardcode_minus_L: Not really in the search PATH,
16513 # but as the default location of the library.
16514 hardcode_minus_L_F77=yes
16519 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16522 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16525 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16528 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16544 if test "$with_gnu_ld" = no; then
16545 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16546 hardcode_libdir_separator_F77=:
16550 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16551 hardcode_direct_F77=no
16552 hardcode_shlibpath_var_F77=no
16555 hardcode_direct_F77=yes
16556 export_dynamic_flag_spec_F77='${wl}-E'
16558 # hardcode_minus_L: Not really in the search PATH,
16559 # but as the default location of the library.
16560 hardcode_minus_L_F77=yes
16566 irix5* | irix6* | nonstopux*)
16567 if test "$GCC" = yes; then
16568 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'
16570 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'
16571 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16573 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16574 hardcode_libdir_separator_F77=:
16575 link_all_deplibs_F77=yes
16579 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16580 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16582 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16584 hardcode_libdir_flag_spec_F77='-R$libdir'
16585 hardcode_direct_F77=yes
16586 hardcode_shlibpath_var_F77=no
16590 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16591 hardcode_direct_F77=yes
16592 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16593 hardcode_libdir_separator_F77=:
16594 hardcode_shlibpath_var_F77=no
16598 if test -f /usr/libexec/ld.so; then
16599 hardcode_direct_F77=yes
16600 hardcode_shlibpath_var_F77=no
16601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16602 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16603 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16604 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16605 export_dynamic_flag_spec_F77='${wl}-E'
16608 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16609 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16610 hardcode_libdir_flag_spec_F77='-R$libdir'
16613 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16614 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16624 hardcode_libdir_flag_spec_F77='-L$libdir'
16625 hardcode_minus_L_F77=yes
16626 allow_undefined_flag_F77=unsupported
16627 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'
16628 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16636 allow_undefined_flag_F77=' -expect_unresolved \*'
16637 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'
16639 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16640 hardcode_libdir_separator_F77=:
16643 osf4* | osf5*) # as osf3* with the addition of -msym flag
16644 if test "$GCC" = yes; then
16645 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16646 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'
16647 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16649 allow_undefined_flag_F77=' -expect_unresolved \*'
16650 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'
16651 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~
16652 $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'
16654 # Both c and cxx compiler support -rpath directly
16655 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16657 hardcode_libdir_separator_F77=:
16661 no_undefined_flag_F77=' -z text'
16662 if test "$GCC" = yes; then
16664 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16666 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16669 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16671 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16673 hardcode_libdir_flag_spec_F77='-R$libdir'
16674 hardcode_shlibpath_var_F77=no
16676 solaris2.[0-5] | solaris2.[0-5].*) ;;
16678 # The compiler driver will combine and reorder linker options,
16679 # but understands `-z linker_flag'. GCC discards it without `$wl',
16680 # but is careful enough not to reorder.
16681 # Supported since Solaris 2.6 (maybe 2.5.1?)
16682 if test "$GCC" = yes; then
16683 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16685 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16689 link_all_deplibs_F77=yes
16693 if test "x$host_vendor" = xsequent; then
16694 # Use $CC to link under sequent, because it throws in some extra .o
16695 # files that make .init and .fini sections work.
16696 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16698 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_libdir_flag_spec_F77='-L$libdir'
16701 hardcode_direct_F77=yes
16702 hardcode_minus_L_F77=yes
16703 hardcode_shlibpath_var_F77=no
16707 case $host_vendor in
16709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 hardcode_direct_F77=yes # is this really true???
16713 ## LD is ld it makes a PLAMLIB
16714 ## CC just makes a GrossModule.
16715 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16716 reload_cmds_F77='$CC -r -o $output$reload_objs'
16717 hardcode_direct_F77=no
16720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16724 runpath_var='LD_RUN_PATH'
16725 hardcode_shlibpath_var_F77=no
16729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730 hardcode_shlibpath_var_F77=no
16731 export_dynamic_flag_spec_F77='-Bexport'
16735 if test -d /usr/nec; then
16736 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737 hardcode_shlibpath_var_F77=no
16738 runpath_var=LD_RUN_PATH
16739 hardcode_runpath_var=yes
16744 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16745 no_undefined_flag_F77='${wl}-z,text'
16746 archive_cmds_need_lc_F77=no
16747 hardcode_shlibpath_var_F77=no
16748 runpath_var='LD_RUN_PATH'
16750 if test "$GCC" = yes; then
16751 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16752 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16754 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16755 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16759 sysv5* | sco3.2v5* | sco5v6*)
16760 # Note: We can NOT use -z defs as we might desire, because we do not
16761 # link with -lc, and that would cause any symbols used from libc to
16762 # always be unresolved, which means just about no library would
16763 # ever link correctly. If we're not using GNU ld we use -z text
16764 # though, which does catch some bad symbols but isn't as heavy-handed
16766 no_undefined_flag_F77='${wl}-z,text'
16767 allow_undefined_flag_F77='${wl}-z,nodefs'
16768 archive_cmds_need_lc_F77=no
16769 hardcode_shlibpath_var_F77=no
16770 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16771 hardcode_libdir_separator_F77=':'
16772 link_all_deplibs_F77=yes
16773 export_dynamic_flag_spec_F77='${wl}-Bexport'
16774 runpath_var='LD_RUN_PATH'
16776 if test "$GCC" = yes; then
16777 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16778 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16780 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16781 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16787 hardcode_libdir_flag_spec_F77='-L$libdir'
16788 hardcode_shlibpath_var_F77=no
16797 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16798 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16799 test "$ld_shlibs_F77" = no && can_build_shared=no
16802 # Do we need to explicitly link libc?
16804 case "x$archive_cmds_need_lc_F77" in
16806 # Assume -lc should be added
16807 archive_cmds_need_lc_F77=yes
16809 if test "$enable_shared" = yes && test "$GCC" = yes; then
16810 case $archive_cmds_F77 in
16812 # FIXME: we may have to deal with multi-command sequences.
16815 # Test whether the compiler implicitly links with -lc since on some
16816 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16817 # to ld, don't add -lc before -lgcc.
16818 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16819 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16824 (eval $ac_compile) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } 2>conftest.err; then
16830 libobjs=conftest.$ac_objext
16832 wl=$lt_prog_compiler_wl_F77
16833 pic_flag=$lt_prog_compiler_pic_F77
16839 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16840 allow_undefined_flag_F77=
16841 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16842 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }
16847 archive_cmds_need_lc_F77=no
16849 archive_cmds_need_lc_F77=yes
16851 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16853 cat conftest.err 1>&5
16856 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16857 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16864 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16865 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16866 library_names_spec=
16867 libname_spec='lib$name'
16871 postuninstall_cmds=
16875 shlibpath_overrides_runpath=unknown
16877 dynamic_linker="$host_os ld.so"
16878 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16880 need_lib_prefix=unknown
16881 hardcode_into_libs=no
16883 # when you set need_version to no, make sure it does not cause -set_version
16884 # flags to be left without arguments
16885 need_version=unknown
16890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16891 shlibpath_var=LIBPATH
16893 # AIX 3 has no versioning support, so we append a major version to the name.
16894 soname_spec='${libname}${release}${shared_ext}$major'
16901 hardcode_into_libs=yes
16902 if test "$host_cpu" = ia64; then
16903 # AIX 5 supports IA64
16904 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16905 shlibpath_var=LD_LIBRARY_PATH
16907 # With GCC up to 2.95.x, collect2 would create an import file
16908 # for dependence libraries. The import file would start with
16909 # the line `#! .'. This would cause the generated library to
16910 # depend on `.', always an invalid library. This was fixed in
16911 # development snapshots of GCC prior to 3.0.
16913 aix4 | aix4.[01] | aix4.[01].*)
16914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16916 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16919 can_build_shared=no
16923 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16924 # soname into executable. Probably we can add versioning support to
16925 # collect2, so additional links can be useful in future.
16926 if test "$aix_use_runtimelinking" = yes; then
16927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16928 # instead of lib<name>.a to let people know that these are not
16929 # typical AIX shared libraries.
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 # We preserve .a as extension for shared libraries through AIX4.2
16933 # and later when we are not doing run time linking.
16934 library_names_spec='${libname}${release}.a $libname.a'
16935 soname_spec='${libname}${release}${shared_ext}$major'
16937 shlibpath_var=LIBPATH
16942 library_names_spec='$libname.ixlibrary $libname.a'
16943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16944 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'
16948 library_names_spec='${libname}${shared_ext}'
16949 dynamic_linker="$host_os ld.so"
16950 shlibpath_var=LIBRARY_PATH
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
16958 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16959 shlibpath_var=LD_LIBRARY_PATH
16960 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16961 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16962 # the default ld.so.conf also contains /usr/contrib/lib and
16963 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16964 # libtool to hard-code these into programs
16967 cygwin* | mingw* | pw32*)
16968 version_type=windows
16973 case $GCC,$host_os in
16974 yes,cygwin* | yes,mingw* | yes,pw32*)
16975 library_names_spec='$libname.dll.a'
16976 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16977 postinstall_cmds='base_file=`basename \${file}`~
16978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16979 dldir=$destdir/`dirname \$dlpath`~
16980 test -d \$dldir || mkdir -p \$dldir~
16981 $install_prog $dir/$dlname \$dldir/$dlname~
16982 chmod a+x \$dldir/$dlname'
16983 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16984 dlpath=$dir/\$dldll~
16986 shlibpath_overrides_runpath=yes
16990 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16991 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16992 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16995 # MinGW DLLs use traditional 'lib' prefix
16996 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16998 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16999 # It is most probably a Windows format PATH printed by
17000 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17001 # path with ; separators, and with drive letters. We can handle the
17002 # drive letters (cygwin fileutils understands them), so leave them,
17003 # especially as we might pass files found there to a mingw objdump,
17004 # which wouldn't understand a cygwinified path. Ahh.
17005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17011 # pw32 DLLs use 'pw' prefix rather than 'lib'
17012 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17018 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17021 dynamic_linker='Win32 ld.exe'
17022 # FIXME: first we should search . and the directory the executable is in
17026 darwin* | rhapsody*)
17027 dynamic_linker="$host_os dyld"
17028 version_type=darwin
17031 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17032 soname_spec='${libname}${release}${major}$shared_ext'
17033 shlibpath_overrides_runpath=yes
17034 shlibpath_var=DYLD_LIBRARY_PATH
17035 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17045 soname_spec='${libname}${release}${shared_ext}$major'
17046 shlibpath_var=LD_LIBRARY_PATH
17053 freebsd* | dragonfly*)
17054 # DragonFly does not have aout. When/if they implement a new
17055 # versioning mechanism, adjust this.
17056 if test -x /usr/bin/objformat; then
17057 objformat=`/usr/bin/objformat`
17060 freebsd[123]*) objformat=aout ;;
17061 *) objformat=elf ;;
17064 version_type=freebsd-$objformat
17065 case $version_type in
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17076 shlibpath_var=LD_LIBRARY_PATH
17079 shlibpath_overrides_runpath=yes
17081 freebsd3.[01]* | freebsdelf3.[01]*)
17082 shlibpath_overrides_runpath=yes
17083 hardcode_into_libs=yes
17085 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17086 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17087 shlibpath_overrides_runpath=no
17088 hardcode_into_libs=yes
17090 *) # from 4.6 on, and DragonFly
17091 shlibpath_overrides_runpath=yes
17092 hardcode_into_libs=yes
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 shlibpath_var=LD_LIBRARY_PATH
17104 hardcode_into_libs=yes
17107 hpux9* | hpux10* | hpux11*)
17108 # Give a soname corresponding to the major version so that dld.sl refuses to
17109 # link against other versions.
17116 hardcode_into_libs=yes
17117 dynamic_linker="$host_os dld.so"
17118 shlibpath_var=LD_LIBRARY_PATH
17119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17122 if test "X$HPUX_IA64_MODE" = X32; then
17123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17131 hardcode_into_libs=yes
17132 dynamic_linker="$host_os dld.sl"
17133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17142 dynamic_linker="$host_os dld.sl"
17143 shlibpath_var=SHLIB_PATH
17144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
17149 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17150 postinstall_cmds='chmod 555 $lib'
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath=no
17162 hardcode_into_libs=yes
17165 irix5* | irix6* | nonstopux*)
17167 nonstopux*) version_type=nonstopux ;;
17169 if test "$lt_cv_prog_gnu_ld" = yes; then
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17180 irix5* | nonstopux*)
17181 libsuff= shlibsuff=
17184 case $LD in # libtool.m4 will add one of these switches to LD
17185 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17186 libsuff= shlibsuff= libmagic=32-bit;;
17187 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17188 libsuff=32 shlibsuff=N32 libmagic=N32;;
17189 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17190 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17191 *) libsuff= shlibsuff= libmagic=never-match;;
17195 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17196 shlibpath_overrides_runpath=no
17197 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17198 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17199 hardcode_into_libs=yes
17202 # No shared lib support for Linux oldld, aout, or coff.
17203 linux*oldld* | linux*aout* | linux*coff*)
17207 # This must be Linux ELF.
17208 linux* | k*bsd*-gnu)
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=no
17217 # This implies no fast_install, which is unacceptable.
17218 # Some rework will be needed to allow for fast_install
17219 # before this can be enabled.
17220 hardcode_into_libs=yes
17221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17224 # Append ld.so.conf contents to the search path
17225 if test -f /etc/ld.so.conf; then
17226 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' ' '`
17227 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17230 # We used to test for /lib/ld.so.1 and disable shared libraries on
17231 # powerpc, because MkLinux only supported shared libraries with the
17232 # GNU dynamic linker. Since this was broken with cross compilers,
17233 # most powerpc-linux boxes support dynamic linking these days and
17234 # people can always --disable-shared, the test was removed, and we
17235 # assume the GNU/Linux dynamic linker is in use.
17236 dynamic_linker='GNU/Linux ld.so'
17243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17246 dynamic_linker='NetBSD (a.out) ld.so'
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 dynamic_linker='NetBSD ld.elf_so'
17252 shlibpath_var=LD_LIBRARY_PATH
17253 shlibpath_overrides_runpath=yes
17254 hardcode_into_libs=yes
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 shlibpath_overrides_runpath=yes
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes
17276 sys_lib_dlsearch_path_spec="/usr/lib"
17278 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17280 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17281 *) need_version=no ;;
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17288 openbsd2.[89] | openbsd2.[89].*)
17289 shlibpath_overrides_runpath=no
17292 shlibpath_overrides_runpath=yes
17296 shlibpath_overrides_runpath=yes
17301 libname_spec='$name'
17304 library_names_spec='$libname${shared_ext} $libname.a'
17305 dynamic_linker='OS/2 ld.exe'
17306 shlibpath_var=LIBPATH
17309 osf3* | osf4* | osf5*)
17313 soname_spec='${libname}${release}${shared_ext}$major'
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 shlibpath_overrides_runpath=yes
17332 hardcode_into_libs=yes
17333 # ldd complains unless libraries are executable
17334 postinstall_cmds='chmod +x $lib'
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17340 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 shlibpath_overrides_runpath=yes
17343 if test "$with_gnu_ld" = yes; then
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 case $host_vendor in
17356 shlibpath_overrides_runpath=no
17358 export_dynamic_flag_spec='${wl}-Blargedynsym'
17359 runpath_var=LD_RUN_PATH
17367 shlibpath_overrides_runpath=no
17368 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17374 if test -d /usr/nec ;then
17376 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17377 soname_spec='$libname${shared_ext}.$major'
17378 shlibpath_var=LD_LIBRARY_PATH
17382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17383 version_type=freebsd-elf
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 hardcode_into_libs=yes
17390 if test "$with_gnu_ld" = yes; then
17391 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17392 shlibpath_overrides_runpath=no
17394 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17395 shlibpath_overrides_runpath=yes
17398 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17402 sys_lib_dlsearch_path_spec='/usr/lib'
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 shlibpath_var=LD_LIBRARY_PATH
17416 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17417 echo "${ECHO_T}$dynamic_linker" >&6; }
17418 test "$dynamic_linker" = no && can_build_shared=no
17420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17421 if test "$GCC" = yes; then
17422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17425 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17426 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17427 hardcode_action_F77=
17428 if test -n "$hardcode_libdir_flag_spec_F77" || \
17429 test -n "$runpath_var_F77" || \
17430 test "X$hardcode_automatic_F77" = "Xyes" ; then
17432 # We can hardcode non-existant directories.
17433 if test "$hardcode_direct_F77" != no &&
17434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17435 # have to relink, otherwise we might link with an installed library
17436 # when we should be linking with a yet-to-be-installed one
17437 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17438 test "$hardcode_minus_L_F77" != no; then
17439 # Linking always hardcodes the temporary library directory.
17440 hardcode_action_F77=relink
17442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17443 hardcode_action_F77=immediate
17446 # We cannot hardcode anything, or else we can only hardcode existing
17448 hardcode_action_F77=unsupported
17450 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17451 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17453 if test "$hardcode_action_F77" = relink; then
17454 # Fast installation is not supported
17455 enable_fast_install=no
17456 elif test "$shlibpath_overrides_runpath" = yes ||
17457 test "$enable_shared" = no; then
17458 # Fast installation is not necessary
17459 enable_fast_install=needless
17463 # The else clause should only fire when bootstrapping the
17464 # libtool distribution, otherwise you forgot to ship ltmain.sh
17465 # with your package, and you will get complaints that there are
17466 # no rules to generate ltmain.sh.
17467 if test -f "$ltmain"; then
17468 # See if we are running on zsh, and set the options which allow our commands through
17469 # without removal of \ escapes.
17470 if test -n "${ZSH_VERSION+set}" ; then
17471 setopt NO_GLOB_SUBST
17473 # Now quote all the things that may contain metacharacters while being
17474 # careful not to overquote the AC_SUBSTed values. We take copies of the
17475 # variables and quote the copies for generation of the libtool script.
17476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17478 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17479 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17480 deplibs_check_method reload_flag reload_cmds need_locks \
17481 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17482 lt_cv_sys_global_symbol_to_c_name_address \
17483 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17484 old_postinstall_cmds old_postuninstall_cmds \
17488 lt_prog_compiler_wl_F77 \
17489 lt_prog_compiler_pic_F77 \
17490 lt_prog_compiler_static_F77 \
17491 lt_prog_compiler_no_builtin_flag_F77 \
17492 export_dynamic_flag_spec_F77 \
17493 thread_safe_flag_spec_F77 \
17494 whole_archive_flag_spec_F77 \
17495 enable_shared_with_static_runtimes_F77 \
17496 old_archive_cmds_F77 \
17497 old_archive_from_new_cmds_F77 \
17498 predep_objects_F77 \
17499 postdep_objects_F77 \
17502 compiler_lib_search_path_F77 \
17504 archive_expsym_cmds_F77 \
17505 postinstall_cmds_F77 \
17506 postuninstall_cmds_F77 \
17507 old_archive_from_expsyms_cmds_F77 \
17508 allow_undefined_flag_F77 \
17509 no_undefined_flag_F77 \
17510 export_symbols_cmds_F77 \
17511 hardcode_libdir_flag_spec_F77 \
17512 hardcode_libdir_flag_spec_ld_F77 \
17513 hardcode_libdir_separator_F77 \
17514 hardcode_automatic_F77 \
17516 module_expsym_cmds_F77 \
17517 lt_cv_prog_compiler_c_o_F77 \
17518 fix_srcfile_path_F77 \
17519 exclude_expsyms_F77 \
17520 include_expsyms_F77; do
17523 old_archive_cmds_F77 | \
17524 old_archive_from_new_cmds_F77 | \
17525 archive_cmds_F77 | \
17526 archive_expsym_cmds_F77 | \
17527 module_cmds_F77 | \
17528 module_expsym_cmds_F77 | \
17529 old_archive_from_expsyms_cmds_F77 | \
17530 export_symbols_cmds_F77 | \
17531 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17532 postinstall_cmds | postuninstall_cmds | \
17533 old_postinstall_cmds | old_postuninstall_cmds | \
17534 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17535 # Double-quote double-evaled strings.
17536 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17545 *'\$0 --fallback-echo"')
17546 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17552 cat <<__EOF__ >> "$cfgfile"
17553 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17555 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17557 # Shell to use when invoking shell scripts.
17560 # Whether or not to build shared libraries.
17561 build_libtool_libs=$enable_shared
17563 # Whether or not to build static libraries.
17564 build_old_libs=$enable_static
17566 # Whether or not to add -lc for building shared libraries.
17567 build_libtool_need_lc=$archive_cmds_need_lc_F77
17569 # Whether or not to disallow shared libs when runtime libs are static
17570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17572 # Whether or not to optimize for fast installation.
17573 fast_install=$enable_fast_install
17576 host_alias=$host_alias
17580 # The build system.
17581 build_alias=$build_alias
17585 # An echo program that does not interpret backslashes.
17590 AR_FLAGS=$lt_AR_FLAGS
17595 # LTCC compiler flags.
17596 LTCFLAGS=$lt_LTCFLAGS
17598 # A language-specific compiler.
17599 CC=$lt_compiler_F77
17601 # Is the compiler the GNU C compiler?
17607 # The linker used to build libraries.
17610 # Whether we need hard or soft links.
17613 # A BSD-compatible nm program.
17616 # A symbol stripping program
17619 # Used to examine libraries when file_magic_cmd begins "file"
17620 MAGIC_CMD=$MAGIC_CMD
17622 # Used on cygwin: DLL creation program.
17625 # Used on cygwin: object dumper.
17628 # Used on cygwin: assembler.
17631 # The name of the directory that contains temporary libtool files.
17634 # How to create reloadable object files.
17635 reload_flag=$lt_reload_flag
17636 reload_cmds=$lt_reload_cmds
17638 # How to pass a linker flag through the compiler.
17639 wl=$lt_lt_prog_compiler_wl_F77
17641 # Object file suffix (normally "o").
17642 objext="$ac_objext"
17644 # Old archive suffix (normally "a").
17647 # Shared library suffix (normally ".so").
17648 shrext_cmds='$shrext_cmds'
17650 # Executable file suffix (normally "").
17653 # Additional compiler flags for building library objects.
17654 pic_flag=$lt_lt_prog_compiler_pic_F77
17657 # What is the maximum length of a command?
17658 max_cmd_len=$lt_cv_sys_max_cmd_len
17660 # Does compiler simultaneously support -c and -o options?
17661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17663 # Must we lock files when doing compilation?
17664 need_locks=$lt_need_locks
17666 # Do we need the lib prefix for modules?
17667 need_lib_prefix=$need_lib_prefix
17669 # Do we need a version for libraries?
17670 need_version=$need_version
17672 # Whether dlopen is supported.
17673 dlopen_support=$enable_dlopen
17675 # Whether dlopen of programs is supported.
17676 dlopen_self=$enable_dlopen_self
17678 # Whether dlopen of statically linked programs is supported.
17679 dlopen_self_static=$enable_dlopen_self_static
17681 # Compiler flag to prevent dynamic linking.
17682 link_static_flag=$lt_lt_prog_compiler_static_F77
17684 # Compiler flag to turn off builtin functions.
17685 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17687 # Compiler flag to allow reflexive dlopens.
17688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17690 # Compiler flag to generate shared objects directly from archives.
17691 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17693 # Compiler flag to generate thread-safe objects.
17694 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17696 # Library versioning type.
17697 version_type=$version_type
17699 # Format of library name prefix.
17700 libname_spec=$lt_libname_spec
17702 # List of archive names. First name is the real one, the rest are links.
17703 # The last name is the one that the linker finds with -lNAME.
17704 library_names_spec=$lt_library_names_spec
17706 # The coded name of the library, if different from the real name.
17707 soname_spec=$lt_soname_spec
17709 # Commands used to build and install an old-style archive.
17711 old_archive_cmds=$lt_old_archive_cmds_F77
17712 old_postinstall_cmds=$lt_old_postinstall_cmds
17713 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17715 # Create an old-style archive from a shared archive.
17716 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17718 # Create a temporary old-style archive to link instead of a shared archive.
17719 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17721 # Commands used to build and install a shared archive.
17722 archive_cmds=$lt_archive_cmds_F77
17723 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17724 postinstall_cmds=$lt_postinstall_cmds
17725 postuninstall_cmds=$lt_postuninstall_cmds
17727 # Commands used to build a loadable module (assumed same as above if empty)
17728 module_cmds=$lt_module_cmds_F77
17729 module_expsym_cmds=$lt_module_expsym_cmds_F77
17731 # Commands to strip libraries.
17732 old_striplib=$lt_old_striplib
17733 striplib=$lt_striplib
17735 # Dependencies to place before the objects being linked to create a
17737 predep_objects=$lt_predep_objects_F77
17739 # Dependencies to place after the objects being linked to create a
17741 postdep_objects=$lt_postdep_objects_F77
17743 # Dependencies to place before the objects being linked to create a
17745 predeps=$lt_predeps_F77
17747 # Dependencies to place after the objects being linked to create a
17749 postdeps=$lt_postdeps_F77
17751 # The library search path used internally by the compiler when linking
17752 # a shared library.
17753 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17755 # Method to check whether dependent libraries are shared objects.
17756 deplibs_check_method=$lt_deplibs_check_method
17758 # Command to use when deplibs_check_method == file_magic.
17759 file_magic_cmd=$lt_file_magic_cmd
17761 # Flag that allows shared libraries with undefined symbols to be built.
17762 allow_undefined_flag=$lt_allow_undefined_flag_F77
17764 # Flag that forces no undefined symbols.
17765 no_undefined_flag=$lt_no_undefined_flag_F77
17767 # Commands used to finish a libtool library installation in a directory.
17768 finish_cmds=$lt_finish_cmds
17770 # Same as above, but a single script fragment to be evaled but not shown.
17771 finish_eval=$lt_finish_eval
17773 # Take the output of nm and produce a listing of raw symbols and C names.
17774 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17776 # Transform the output of nm in a proper C declaration
17777 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17779 # Transform the output of nm in a C name address pair
17780 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17782 # This is the shared library runtime path variable.
17783 runpath_var=$runpath_var
17785 # This is the shared library path variable.
17786 shlibpath_var=$shlibpath_var
17788 # Is shlibpath searched before the hard-coded library search path?
17789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17791 # How to hardcode a shared library path into an executable.
17792 hardcode_action=$hardcode_action_F77
17794 # Whether we should hardcode library paths into libraries.
17795 hardcode_into_libs=$hardcode_into_libs
17797 # Flag to hardcode \$libdir into a binary during linking.
17798 # This must work even if \$libdir does not exist.
17799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17801 # If ld is used when linking, flag to hardcode \$libdir into
17802 # a binary during linking. This must work even if \$libdir does
17804 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17806 # Whether we need a single -rpath flag with a separated argument.
17807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17809 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17810 # resulting binary.
17811 hardcode_direct=$hardcode_direct_F77
17813 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17814 # resulting binary.
17815 hardcode_minus_L=$hardcode_minus_L_F77
17817 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17818 # the resulting binary.
17819 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17821 # Set to yes if building a shared library automatically hardcodes DIR into the library
17822 # and all subsequent libraries and executables linked against it.
17823 hardcode_automatic=$hardcode_automatic_F77
17825 # Variables whose values should be saved in libtool wrapper scripts and
17826 # restored at relink time.
17827 variables_saved_for_relink="$variables_saved_for_relink"
17829 # Whether libtool must link a program against all its dependency libraries.
17830 link_all_deplibs=$link_all_deplibs_F77
17832 # Compile-time system search path for libraries
17833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17835 # Run-time system search path for libraries
17836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17838 # Fix the shell variable \$srcfile for the compiler.
17839 fix_srcfile_path=$lt_fix_srcfile_path
17841 # Set to yes if exported symbols are required.
17842 always_export_symbols=$always_export_symbols_F77
17844 # The commands to list exported symbols.
17845 export_symbols_cmds=$lt_export_symbols_cmds_F77
17847 # The commands to extract the exported symbol list from a shared archive.
17848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17850 # Symbols that should not be listed in the preloaded symbols.
17851 exclude_expsyms=$lt_exclude_expsyms_F77
17853 # Symbols that must always be exported.
17854 include_expsyms=$lt_include_expsyms_F77
17856 # ### END LIBTOOL TAG CONFIG: $tagname
17862 # If there is no Makefile yet, we rely on a make rule to execute
17863 # `config.status --recheck' to rerun these tests and create the
17864 # libtool script then.
17865 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17866 if test -f "$ltmain_in"; then
17867 test -f Makefile && make "$ltmain"
17873 ac_cpp='$CPP $CPPFLAGS'
17874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17886 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17889 # Source file extension for Java test sources.
17892 # Object file extension for compiled Java test sources.
17896 # Code to be used in simple compile tests
17897 lt_simple_compile_test_code="class foo {}"
17899 # Code to be used in simple link tests
17900 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17902 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17904 # If no C compiler was specified, use CC.
17907 # If no C compiler flags were specified, use CFLAGS.
17908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17910 # Allow CC to be a program name with arguments.
17914 # save warnings/boilerplate of simple test code
17915 ac_outfile=conftest.$ac_objext
17916 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17917 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17918 _lt_compiler_boilerplate=`cat conftest.err`
17921 ac_outfile=conftest.$ac_objext
17922 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17923 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17924 _lt_linker_boilerplate=`cat conftest.err`
17928 # Allow CC to be a program name with arguments.
17933 for cc_temp in $compiler""; do
17935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17944 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17945 archive_cmds_need_lc_GCJ=no
17947 old_archive_cmds_GCJ=$old_archive_cmds
17950 lt_prog_compiler_no_builtin_flag_GCJ=
17952 if test "$GCC" = yes; then
17953 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17956 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17957 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17958 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 lt_cv_prog_compiler_rtti_exceptions=no
17962 ac_outfile=conftest.$ac_objext
17963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17964 lt_compiler_flag="-fno-rtti -fno-exceptions"
17965 # Insert the option either (1) after the last *FLAGS variable, or
17966 # (2) before a word containing "conftest.", or (3) at the end.
17967 # Note that $ac_compile itself does not contain backslashes and begins
17968 # with a dollar sign (not a hyphen), so the echo should work correctly.
17969 # The option is referenced via a variable to avoid confusing sed.
17970 lt_compile=`echo "$ac_compile" | $SED \
17971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17973 -e 's:$: $lt_compiler_flag:'`
17974 (eval echo "\"\$as_me:17974: $lt_compile\"" >&5)
17975 (eval "$lt_compile" 2>conftest.err)
17977 cat conftest.err >&5
17978 echo "$as_me:17978: \$? = $ac_status" >&5
17979 if (exit $ac_status) && test -s "$ac_outfile"; then
17980 # The compiler can only warn and ignore the option if not recognized
17981 # So say no if there are warnings other than the usual output.
17982 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17985 lt_cv_prog_compiler_rtti_exceptions=yes
17991 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17992 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17995 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18002 lt_prog_compiler_wl_GCJ=
18003 lt_prog_compiler_pic_GCJ=
18004 lt_prog_compiler_static_GCJ=
18006 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18009 if test "$GCC" = yes; then
18010 lt_prog_compiler_wl_GCJ='-Wl,'
18011 lt_prog_compiler_static_GCJ='-static'
18015 # All AIX code is PIC.
18016 if test "$host_cpu" = ia64; then
18017 # AIX 5 now supports IA64 processor
18018 lt_prog_compiler_static_GCJ='-Bstatic'
18023 # FIXME: we need at least 68020 code to build shared libraries, but
18024 # adding the `-m68020' flag to GCC prevents building anything better,
18026 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18029 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18030 # PIC is the default for these OSes.
18033 mingw* | cygwin* | pw32* | os2*)
18034 # This hack is so that the source file can tell whether it is being
18035 # built for inclusion in a dll (and should export symbols for example).
18036 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18037 # (--disable-auto-import) libraries
18038 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18041 darwin* | rhapsody*)
18042 # PIC is the default on this platform
18043 # Common symbols not allowed in MH_DYLIB files
18044 lt_prog_compiler_pic_GCJ='-fno-common'
18048 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18049 # Instead, we relocate shared libraries at runtime.
18053 # Just because we use GCC doesn't mean we suddenly get shared libraries
18054 # on systems that don't support them.
18055 lt_prog_compiler_can_build_shared_GCJ=no
18060 if test -d /usr/nec; then
18061 lt_prog_compiler_pic_GCJ=-Kconform_pic
18066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18067 # not for PA HP-UX.
18073 lt_prog_compiler_pic_GCJ='-fPIC'
18079 lt_prog_compiler_pic_GCJ='-fPIC'
18083 # PORTME Check for flag to pass linker flags through the system compiler.
18086 lt_prog_compiler_wl_GCJ='-Wl,'
18087 if test "$host_cpu" = ia64; then
18088 # AIX 5 now supports IA64 processor
18089 lt_prog_compiler_static_GCJ='-Bstatic'
18091 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18095 # PIC is the default on this platform
18096 # Common symbols not allowed in MH_DYLIB files
18097 case $cc_basename in
18099 lt_prog_compiler_pic_GCJ='-qnocommon'
18100 lt_prog_compiler_wl_GCJ='-Wl,'
18105 mingw* | cygwin* | pw32* | os2*)
18106 # This hack is so that the source file can tell whether it is being
18107 # built for inclusion in a dll (and should export symbols for example).
18108 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18111 hpux9* | hpux10* | hpux11*)
18112 lt_prog_compiler_wl_GCJ='-Wl,'
18113 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18114 # not for PA HP-UX.
18120 lt_prog_compiler_pic_GCJ='+Z'
18123 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18124 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18127 irix5* | irix6* | nonstopux*)
18128 lt_prog_compiler_wl_GCJ='-Wl,'
18129 # PIC (with -KPIC) is the default.
18130 lt_prog_compiler_static_GCJ='-non_shared'
18134 lt_prog_compiler_pic_GCJ='-KPIC'
18135 lt_prog_compiler_static_GCJ='-Bstatic'
18138 linux* | k*bsd*-gnu)
18139 case $cc_basename in
18141 lt_prog_compiler_wl_GCJ='-Wl,'
18142 lt_prog_compiler_pic_GCJ='-KPIC'
18143 lt_prog_compiler_static_GCJ='-static'
18145 pgcc* | pgf77* | pgf90* | pgf95*)
18146 # Portland Group compilers (*not* the Pentium gcc compiler,
18147 # which looks to be a dead project)
18148 lt_prog_compiler_wl_GCJ='-Wl,'
18149 lt_prog_compiler_pic_GCJ='-fpic'
18150 lt_prog_compiler_static_GCJ='-Bstatic'
18153 lt_prog_compiler_wl_GCJ='-Wl,'
18154 # All Alpha code is PIC.
18155 lt_prog_compiler_static_GCJ='-non_shared'
18158 case `$CC -V 2>&1 | sed 5q` in
18161 lt_prog_compiler_pic_GCJ='-KPIC'
18162 lt_prog_compiler_static_GCJ='-Bstatic'
18163 lt_prog_compiler_wl_GCJ='-Wl,'
18166 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18167 lt_prog_compiler_pic_GCJ='-KPIC'
18168 lt_prog_compiler_static_GCJ='-Bstatic'
18169 lt_prog_compiler_wl_GCJ=''
18176 osf3* | osf4* | osf5*)
18177 lt_prog_compiler_wl_GCJ='-Wl,'
18178 # All OSF/1 code is PIC.
18179 lt_prog_compiler_static_GCJ='-non_shared'
18183 lt_prog_compiler_static_GCJ='-non_shared'
18187 lt_prog_compiler_pic_GCJ='-KPIC'
18188 lt_prog_compiler_static_GCJ='-Bstatic'
18189 case $cc_basename in
18190 f77* | f90* | f95*)
18191 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18193 lt_prog_compiler_wl_GCJ='-Wl,';;
18198 lt_prog_compiler_wl_GCJ='-Qoption ld '
18199 lt_prog_compiler_pic_GCJ='-PIC'
18200 lt_prog_compiler_static_GCJ='-Bstatic'
18203 sysv4 | sysv4.2uw2* | sysv4.3*)
18204 lt_prog_compiler_wl_GCJ='-Wl,'
18205 lt_prog_compiler_pic_GCJ='-KPIC'
18206 lt_prog_compiler_static_GCJ='-Bstatic'
18210 if test -d /usr/nec ;then
18211 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18212 lt_prog_compiler_static_GCJ='-Bstatic'
18216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18217 lt_prog_compiler_wl_GCJ='-Wl,'
18218 lt_prog_compiler_pic_GCJ='-KPIC'
18219 lt_prog_compiler_static_GCJ='-Bstatic'
18223 lt_prog_compiler_wl_GCJ='-Wl,'
18224 lt_prog_compiler_can_build_shared_GCJ=no
18228 lt_prog_compiler_pic_GCJ='-pic'
18229 lt_prog_compiler_static_GCJ='-Bstatic'
18233 lt_prog_compiler_can_build_shared_GCJ=no
18238 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18239 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18242 # Check to make sure the PIC flag actually works.
18244 if test -n "$lt_prog_compiler_pic_GCJ"; then
18246 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18248 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 lt_prog_compiler_pic_works_GCJ=no
18252 ac_outfile=conftest.$ac_objext
18253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18254 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18255 # Insert the option either (1) after the last *FLAGS variable, or
18256 # (2) before a word containing "conftest.", or (3) at the end.
18257 # Note that $ac_compile itself does not contain backslashes and begins
18258 # with a dollar sign (not a hyphen), so the echo should work correctly.
18259 # The option is referenced via a variable to avoid confusing sed.
18260 lt_compile=`echo "$ac_compile" | $SED \
18261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18263 -e 's:$: $lt_compiler_flag:'`
18264 (eval echo "\"\$as_me:18264: $lt_compile\"" >&5)
18265 (eval "$lt_compile" 2>conftest.err)
18267 cat conftest.err >&5
18268 echo "$as_me:18268: \$? = $ac_status" >&5
18269 if (exit $ac_status) && test -s "$ac_outfile"; then
18270 # The compiler can only warn and ignore the option if not recognized
18271 # So say no if there are warnings other than the usual output.
18272 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18275 lt_prog_compiler_pic_works_GCJ=yes
18281 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18282 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18284 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18285 case $lt_prog_compiler_pic_GCJ in
18287 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18290 lt_prog_compiler_pic_GCJ=
18291 lt_prog_compiler_can_build_shared_GCJ=no
18296 # For platforms which do not support PIC, -DPIC is meaningless:
18298 lt_prog_compiler_pic_GCJ=
18301 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18306 # Check to make sure the static flag actually works.
18308 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18309 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18310 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18311 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
18314 lt_prog_compiler_static_works_GCJ=no
18315 save_LDFLAGS="$LDFLAGS"
18316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18319 # The linker can only warn and ignore the option if not recognized
18320 # So say no if there are warnings
18321 if test -s conftest.err; then
18322 # Append any errors to the config.log.
18323 cat conftest.err 1>&5
18324 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18326 if diff conftest.exp conftest.er2 >/dev/null; then
18327 lt_prog_compiler_static_works_GCJ=yes
18330 lt_prog_compiler_static_works_GCJ=yes
18334 LDFLAGS="$save_LDFLAGS"
18337 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18338 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18340 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18343 lt_prog_compiler_static_GCJ=
18347 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18349 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 lt_cv_prog_compiler_c_o_GCJ=no
18353 $rm -r conftest 2>/dev/null
18357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18359 lt_compiler_flag="-o out/conftest2.$ac_objext"
18360 # Insert the option either (1) after the last *FLAGS variable, or
18361 # (2) before a word containing "conftest.", or (3) at the end.
18362 # Note that $ac_compile itself does not contain backslashes and begins
18363 # with a dollar sign (not a hyphen), so the echo should work correctly.
18364 lt_compile=`echo "$ac_compile" | $SED \
18365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18367 -e 's:$: $lt_compiler_flag:'`
18368 (eval echo "\"\$as_me:18368: $lt_compile\"" >&5)
18369 (eval "$lt_compile" 2>out/conftest.err)
18371 cat out/conftest.err >&5
18372 echo "$as_me:18372: \$? = $ac_status" >&5
18373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18375 # The compiler can only warn and ignore the option if not recognized
18376 # So say no if there are warnings
18377 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18380 lt_cv_prog_compiler_c_o_GCJ=yes
18385 # SGI C++ compiler will create directory out/ii_files/ for
18386 # template instantiation
18387 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18388 $rm out/* && rmdir out
18394 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18395 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18398 hard_links="nottested"
18399 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18400 # do not overwrite the value of need_locks provided by the user
18401 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18402 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18407 ln conftest.a conftest.b 2>&5 || hard_links=no
18408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18409 { echo "$as_me:$LINENO: result: $hard_links" >&5
18410 echo "${ECHO_T}$hard_links" >&6; }
18411 if test "$hard_links" = no; then
18412 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18413 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18420 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18424 allow_undefined_flag_GCJ=
18425 enable_shared_with_static_runtimes_GCJ=no
18427 archive_expsym_cmds_GCJ=
18428 old_archive_From_new_cmds_GCJ=
18429 old_archive_from_expsyms_cmds_GCJ=
18430 export_dynamic_flag_spec_GCJ=
18431 whole_archive_flag_spec_GCJ=
18432 thread_safe_flag_spec_GCJ=
18433 hardcode_libdir_flag_spec_GCJ=
18434 hardcode_libdir_flag_spec_ld_GCJ=
18435 hardcode_libdir_separator_GCJ=
18436 hardcode_direct_GCJ=no
18437 hardcode_minus_L_GCJ=no
18438 hardcode_shlibpath_var_GCJ=unsupported
18439 link_all_deplibs_GCJ=unknown
18440 hardcode_automatic_GCJ=no
18442 module_expsym_cmds_GCJ=
18443 always_export_symbols_GCJ=no
18444 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18445 # include_expsyms should be a list of space-separated symbols to be *always*
18446 # included in the symbol list
18447 include_expsyms_GCJ=
18448 # exclude_expsyms can be an extended regexp of symbols to exclude
18449 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18450 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18451 # as well as any symbol that contains `d'.
18452 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18453 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18454 # platforms (ab)use it in PIC code, but their linkers get confused if
18455 # the symbol is explicitly referenced. Since portable code cannot
18456 # rely on this symbol name, it's probably fine to never include it in
18457 # preloaded symbol tables.
18458 extract_expsyms_cmds=
18459 # Just being paranoid about ensuring that cc_basename is set.
18460 for cc_temp in $compiler""; do
18462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18471 cygwin* | mingw* | pw32*)
18472 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18473 # When not using gcc, we currently assume that we are using
18474 # Microsoft Visual C++.
18475 if test "$GCC" != yes; then
18480 # we just hope/assume this is gcc and not c89 (= MSVC++)
18489 if test "$with_gnu_ld" = yes; then
18490 # If archive_cmds runs LD, not CC, wlarc should be empty
18493 # Set some defaults for GNU ld with shared library support. These
18494 # are reset later if shared libraries are not supported. Putting them
18495 # here allows them to be overridden if necessary.
18496 runpath_var=LD_RUN_PATH
18497 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18498 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18499 # ancient GNU ld didn't support --whole-archive et. al.
18500 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18501 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18503 whole_archive_flag_spec_GCJ=
18505 supports_anon_versioning=no
18506 case `$LD -v 2>/dev/null` in
18507 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18510 *\ 2.11.*) ;; # other 2.11 versions
18511 *) supports_anon_versioning=yes ;;
18514 # See if GNU ld supports shared libraries.
18516 aix3* | aix4* | aix5*)
18517 # On AIX/PPC, the GNU linker is very broken
18518 if test "$host_cpu" != ia64; then
18522 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18523 *** to be unable to reliably create shared libraries on AIX.
18524 *** Therefore, libtool is disabling shared libraries support. If you
18525 *** really care for shared libraries, you may want to modify your PATH
18526 *** so that a non-GNU linker is found, and then restart.
18533 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)'
18534 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18535 hardcode_minus_L_GCJ=yes
18537 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18538 # that the semantics of dynamic libraries on AmigaOS, at least up
18539 # to version 4, is to share data among multiple programs linked
18540 # with the same dynamic library. Since this doesn't match the
18541 # behavior of shared libraries on other platforms, we can't use
18547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18548 allow_undefined_flag_GCJ=unsupported
18549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18550 # support --undefined. This deserves some investigation. FIXME
18551 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18557 cygwin* | mingw* | pw32*)
18558 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18559 # as there is no search path for DLLs.
18560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18561 allow_undefined_flag_GCJ=unsupported
18562 always_export_symbols_GCJ=no
18563 enable_shared_with_static_runtimes_GCJ=yes
18564 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18566 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18567 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18568 # If the export-symbols file already is a .def file (1st line
18569 # is EXPORTS), use it as is; otherwise, prepend...
18570 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18571 cp $export_symbols $output_objdir/$soname.def;
18573 echo EXPORTS > $output_objdir/$soname.def;
18574 cat $export_symbols >> $output_objdir/$soname.def;
18576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18583 hardcode_direct_GCJ=no
18584 hardcode_shlibpath_var_GCJ=no
18585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18586 export_dynamic_flag_spec_GCJ='${wl}-E'
18587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18588 # Instead, shared libraries are loaded at an image base (0x10000000 by
18589 # default) and relocated if they conflict, which is a slow very memory
18590 # consuming and fragmenting process. To avoid this, we pick a random,
18591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18593 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'
18594 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'
18597 gnu* | linux* | k*bsd*-gnu)
18598 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18600 case $cc_basename,$host_cpu in
18601 pgcc*) # Portland Group C compiler
18602 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'
18603 tmp_addflag=' $pic_flag'
18605 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18606 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'
18607 tmp_addflag=' $pic_flag -Mnomain' ;;
18608 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18609 tmp_addflag=' -i_dynamic' ;;
18610 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18611 tmp_addflag=' -i_dynamic -nofor_main' ;;
18612 ifc* | ifort*) # Intel Fortran compiler
18613 tmp_addflag=' -nofor_main' ;;
18615 case `$CC -V 2>&1 | sed 5q` in
18616 *Sun\ C*) # Sun C 5.9
18617 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'
18618 tmp_sharedflag='-G' ;;
18619 *Sun\ F*) # Sun Fortran 8.3
18620 tmp_sharedflag='-G' ;;
18622 tmp_sharedflag='-shared' ;;
18624 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18626 if test $supports_anon_versioning = yes; then
18627 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18629 $echo "local: *; };" >> $output_objdir/$libname.ver~
18630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18639 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18642 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18643 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18653 *** create shared libraries on Solaris systems. Therefore, libtool
18654 *** is disabling shared libraries support. We urge you to upgrade GNU
18655 *** binutils to release 2.9.1 or newer. Another option is to modify
18656 *** your PATH or compiler configuration so that the native linker is
18657 *** used, and then restart.
18660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18661 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18662 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18669 case `$LD -v 2>&1` in
18670 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18674 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18675 *** reliably create shared libraries on SCO systems. Therefore, libtool
18676 *** is disabling shared libraries support. We urge you to upgrade GNU
18677 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18678 *** your PATH or compiler configuration so that the native linker is
18679 *** used, and then restart.
18684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18685 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18686 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18687 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18696 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18698 hardcode_direct_GCJ=yes
18699 hardcode_shlibpath_var_GCJ=no
18703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18704 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18705 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18712 if test "$ld_shlibs_GCJ" = no; then
18714 hardcode_libdir_flag_spec_GCJ=
18715 export_dynamic_flag_spec_GCJ=
18716 whole_archive_flag_spec_GCJ=
18719 # PORTME fill in a description of your system's linker (not GNU ld)
18722 allow_undefined_flag_GCJ=unsupported
18723 always_export_symbols_GCJ=yes
18724 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'
18725 # Note: this linker hardcodes the directories in LIBPATH if there
18726 # are no directories specified by -L.
18727 hardcode_minus_L_GCJ=yes
18728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18729 # Neither direct hardcoding nor static linking is supported with a
18731 hardcode_direct_GCJ=unsupported
18736 if test "$host_cpu" = ia64; then
18737 # On IA64, the linker does run time linking by default, so we don't
18738 # have to do anything special.
18739 aix_use_runtimelinking=no
18740 exp_sym_flag='-Bexport'
18743 # If we're using GNU nm, then we don't want the "-C" option.
18744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18745 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18746 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'
18748 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'
18750 aix_use_runtimelinking=no
18752 # Test if we are trying to use run time linking or normal
18753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18754 # need to do runtime linking.
18755 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18756 for ld_flag in $LDFLAGS; do
18757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18758 aix_use_runtimelinking=yes
18765 exp_sym_flag='-bexport'
18766 no_entry_flag='-bnoentry'
18769 # When large executables or shared objects are built, AIX ld can
18770 # have problems creating the table of contents. If linking a library
18771 # or program results in "error TOC overflow" add -mminimal-toc to
18772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18775 archive_cmds_GCJ=''
18776 hardcode_direct_GCJ=yes
18777 hardcode_libdir_separator_GCJ=':'
18778 link_all_deplibs_GCJ=yes
18780 if test "$GCC" = yes; then
18781 case $host_os in aix4.[012]|aix4.[012].*)
18782 # We only want to do this on AIX 4.2 and lower, the check
18783 # below for broken collect2 doesn't work under 4.3+
18784 collect2name=`${CC} -print-prog-name=collect2`
18785 if test -f "$collect2name" && \
18786 strings "$collect2name" | grep resolve_lib_name >/dev/null
18788 # We have reworked collect2
18791 # We have old collect2
18792 hardcode_direct_GCJ=unsupported
18793 # It fails to find uninstalled libraries when the uninstalled
18794 # path is not listed in the libpath. Setting hardcode_minus_L
18795 # to unsupported forces relinking
18796 hardcode_minus_L_GCJ=yes
18797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18798 hardcode_libdir_separator_GCJ=
18802 shared_flag='-shared'
18803 if test "$aix_use_runtimelinking" = yes; then
18804 shared_flag="$shared_flag "'${wl}-G'
18808 if test "$host_cpu" = ia64; then
18809 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18810 # chokes on -Wl,-G. The following line is correct:
18813 if test "$aix_use_runtimelinking" = yes; then
18814 shared_flag='${wl}-G'
18816 shared_flag='${wl}-bM:SRE'
18821 # It seems that -bexpall does not export symbols beginning with
18822 # underscore (_), so it is better to generate a list of symbols to export.
18823 always_export_symbols_GCJ=yes
18824 if test "$aix_use_runtimelinking" = yes; then
18825 # Warning - without using the other runtime loading flags (-brtl),
18826 # -berok will link without error, but may produce a broken library.
18827 allow_undefined_flag_GCJ='-berok'
18828 # Determine the default libpath from the value encoded in an empty executable.
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_link") 2>conftest.er1
18853 grep -v '^ *+' conftest.er1 >conftest.err
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest$ac_exeext &&
18861 $as_test_x conftest$ac_exeext; then
18863 lt_aix_libpath_sed='
18864 /Import File Strings/,/^$/ {
18870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18871 # Check for a 64-bit object if we didn't find anything.
18872 if test -z "$aix_libpath"; then
18873 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18883 conftest$ac_exeext conftest.$ac_ext
18884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18886 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18887 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"
18889 if test "$host_cpu" = ia64; then
18890 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18891 allow_undefined_flag_GCJ="-z nodefs"
18892 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"
18894 # Determine the default libpath from the value encoded in an empty executable.
18895 cat >conftest.$ac_ext <<_ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18910 rm -f conftest.$ac_objext conftest$ac_exeext
18911 if { (ac_try="$ac_link"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_link") 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest$ac_exeext &&
18927 $as_test_x conftest$ac_exeext; then
18929 lt_aix_libpath_sed='
18930 /Import File Strings/,/^$/ {
18936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18937 # Check for a 64-bit object if we didn't find anything.
18938 if test -z "$aix_libpath"; then
18939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18942 echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18949 conftest$ac_exeext conftest.$ac_ext
18950 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18952 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18953 # Warning - without using the other run time loading flags,
18954 # -berok will link without error, but may produce a broken library.
18955 no_undefined_flag_GCJ=' ${wl}-bernotok'
18956 allow_undefined_flag_GCJ=' ${wl}-berok'
18957 # Exported symbols can be pulled into shared objects from archives
18958 whole_archive_flag_spec_GCJ='$convenience'
18959 archive_cmds_need_lc_GCJ=yes
18960 # This is similar to how AIX traditionally builds its shared libraries.
18961 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'
18967 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)'
18968 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18969 hardcode_minus_L_GCJ=yes
18970 # see comment about different semantics on the GNU ld section
18975 export_dynamic_flag_spec_GCJ=-rdynamic
18978 cygwin* | mingw* | pw32*)
18979 # When not using gcc, we currently assume that we are using
18980 # Microsoft Visual C++.
18981 # hardcode_libdir_flag_spec is actually meaningless, as there is
18982 # no search path for DLLs.
18983 hardcode_libdir_flag_spec_GCJ=' '
18984 allow_undefined_flag_GCJ=unsupported
18985 # Tell ltmain to make .lib files, not .a files.
18987 # Tell ltmain to make .dll files, not .so files.
18989 # FIXME: Setting linknames here is a bad hack.
18990 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18991 # The linker will automatically build a .lib file if we build a DLL.
18992 old_archive_From_new_cmds_GCJ='true'
18993 # FIXME: Should let the user specify the lib program.
18994 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18995 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18996 enable_shared_with_static_runtimes_GCJ=yes
18999 darwin* | rhapsody*)
19001 rhapsody* | darwin1.[012])
19002 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19005 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19006 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19008 case ${MACOSX_DEPLOYMENT_TARGET} in
19010 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19013 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19019 archive_cmds_need_lc_GCJ=no
19020 hardcode_direct_GCJ=no
19021 hardcode_automatic_GCJ=yes
19022 hardcode_shlibpath_var_GCJ=unsupported
19023 whole_archive_flag_spec_GCJ=''
19024 link_all_deplibs_GCJ=yes
19025 if test "$GCC" = yes ; then
19026 output_verbose_link_cmd='echo'
19027 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19028 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19029 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19030 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}'
19031 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}'
19033 case $cc_basename in
19035 output_verbose_link_cmd='echo'
19036 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19037 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19038 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19039 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}'
19040 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}'
19050 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19051 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19052 hardcode_shlibpath_var_GCJ=no
19059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19060 # support. Future versions do this automatically, but an explicit c++rt0.o
19061 # does not break anything, and helps significantly (at the cost of a little
19064 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19065 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19066 hardcode_direct_GCJ=yes
19067 hardcode_shlibpath_var_GCJ=no
19070 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19072 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19073 hardcode_direct_GCJ=yes
19074 hardcode_minus_L_GCJ=yes
19075 hardcode_shlibpath_var_GCJ=no
19078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19079 freebsd* | dragonfly*)
19080 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19081 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19082 hardcode_direct_GCJ=yes
19083 hardcode_shlibpath_var_GCJ=no
19087 if test "$GCC" = yes; then
19088 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'
19090 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'
19092 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19093 hardcode_libdir_separator_GCJ=:
19094 hardcode_direct_GCJ=yes
19096 # hardcode_minus_L: Not really in the search PATH,
19097 # but as the default location of the library.
19098 hardcode_minus_L_GCJ=yes
19099 export_dynamic_flag_spec_GCJ='${wl}-E'
19103 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19104 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19106 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19108 if test "$with_gnu_ld" = no; then
19109 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19110 hardcode_libdir_separator_GCJ=:
19112 hardcode_direct_GCJ=yes
19113 export_dynamic_flag_spec_GCJ='${wl}-E'
19115 # hardcode_minus_L: Not really in the search PATH,
19116 # but as the default location of the library.
19117 hardcode_minus_L_GCJ=yes
19122 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19125 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19128 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19131 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19137 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19140 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19143 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19147 if test "$with_gnu_ld" = no; then
19148 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19149 hardcode_libdir_separator_GCJ=:
19153 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19154 hardcode_direct_GCJ=no
19155 hardcode_shlibpath_var_GCJ=no
19158 hardcode_direct_GCJ=yes
19159 export_dynamic_flag_spec_GCJ='${wl}-E'
19161 # hardcode_minus_L: Not really in the search PATH,
19162 # but as the default location of the library.
19163 hardcode_minus_L_GCJ=yes
19169 irix5* | irix6* | nonstopux*)
19170 if test "$GCC" = yes; then
19171 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'
19173 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'
19174 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19176 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19177 hardcode_libdir_separator_GCJ=:
19178 link_all_deplibs_GCJ=yes
19182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19183 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19185 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19187 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19188 hardcode_direct_GCJ=yes
19189 hardcode_shlibpath_var_GCJ=no
19193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19194 hardcode_direct_GCJ=yes
19195 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19196 hardcode_libdir_separator_GCJ=:
19197 hardcode_shlibpath_var_GCJ=no
19201 if test -f /usr/libexec/ld.so; then
19202 hardcode_direct_GCJ=yes
19203 hardcode_shlibpath_var_GCJ=no
19204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19205 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19206 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19208 export_dynamic_flag_spec_GCJ='${wl}-E'
19211 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19212 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19213 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19216 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19217 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19227 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19228 hardcode_minus_L_GCJ=yes
19229 allow_undefined_flag_GCJ=unsupported
19230 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'
19231 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19239 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19240 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'
19242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19243 hardcode_libdir_separator_GCJ=:
19246 osf4* | osf5*) # as osf3* with the addition of -msym flag
19247 if test "$GCC" = yes; then
19248 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19249 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'
19250 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19252 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19253 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'
19254 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~
19255 $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'
19257 # Both c and cxx compiler support -rpath directly
19258 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19260 hardcode_libdir_separator_GCJ=:
19264 no_undefined_flag_GCJ=' -z text'
19265 if test "$GCC" = yes; then
19267 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19268 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19269 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19272 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19273 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19276 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19277 hardcode_shlibpath_var_GCJ=no
19279 solaris2.[0-5] | solaris2.[0-5].*) ;;
19281 # The compiler driver will combine and reorder linker options,
19282 # but understands `-z linker_flag'. GCC discards it without `$wl',
19283 # but is careful enough not to reorder.
19284 # Supported since Solaris 2.6 (maybe 2.5.1?)
19285 if test "$GCC" = yes; then
19286 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19288 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19292 link_all_deplibs_GCJ=yes
19296 if test "x$host_vendor" = xsequent; then
19297 # Use $CC to link under sequent, because it throws in some extra .o
19298 # files that make .init and .fini sections work.
19299 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19301 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19303 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19304 hardcode_direct_GCJ=yes
19305 hardcode_minus_L_GCJ=yes
19306 hardcode_shlibpath_var_GCJ=no
19310 case $host_vendor in
19312 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19313 hardcode_direct_GCJ=yes # is this really true???
19316 ## LD is ld it makes a PLAMLIB
19317 ## CC just makes a GrossModule.
19318 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19319 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19320 hardcode_direct_GCJ=no
19323 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19324 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19327 runpath_var='LD_RUN_PATH'
19328 hardcode_shlibpath_var_GCJ=no
19332 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19333 hardcode_shlibpath_var_GCJ=no
19334 export_dynamic_flag_spec_GCJ='-Bexport'
19338 if test -d /usr/nec; then
19339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19340 hardcode_shlibpath_var_GCJ=no
19341 runpath_var=LD_RUN_PATH
19342 hardcode_runpath_var=yes
19347 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19348 no_undefined_flag_GCJ='${wl}-z,text'
19349 archive_cmds_need_lc_GCJ=no
19350 hardcode_shlibpath_var_GCJ=no
19351 runpath_var='LD_RUN_PATH'
19353 if test "$GCC" = yes; then
19354 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19355 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19357 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19358 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19362 sysv5* | sco3.2v5* | sco5v6*)
19363 # Note: We can NOT use -z defs as we might desire, because we do not
19364 # link with -lc, and that would cause any symbols used from libc to
19365 # always be unresolved, which means just about no library would
19366 # ever link correctly. If we're not using GNU ld we use -z text
19367 # though, which does catch some bad symbols but isn't as heavy-handed
19369 no_undefined_flag_GCJ='${wl}-z,text'
19370 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19371 archive_cmds_need_lc_GCJ=no
19372 hardcode_shlibpath_var_GCJ=no
19373 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19374 hardcode_libdir_separator_GCJ=':'
19375 link_all_deplibs_GCJ=yes
19376 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19377 runpath_var='LD_RUN_PATH'
19379 if test "$GCC" = yes; then
19380 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19381 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19383 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19384 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19389 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19390 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19391 hardcode_shlibpath_var_GCJ=no
19400 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19401 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19402 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19405 # Do we need to explicitly link libc?
19407 case "x$archive_cmds_need_lc_GCJ" in
19409 # Assume -lc should be added
19410 archive_cmds_need_lc_GCJ=yes
19412 if test "$enable_shared" = yes && test "$GCC" = yes; then
19413 case $archive_cmds_GCJ in
19415 # FIXME: we may have to deal with multi-command sequences.
19418 # Test whether the compiler implicitly links with -lc since on some
19419 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19420 # to ld, don't add -lc before -lgcc.
19421 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19422 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } 2>conftest.err; then
19433 libobjs=conftest.$ac_objext
19435 wl=$lt_prog_compiler_wl_GCJ
19436 pic_flag=$lt_prog_compiler_pic_GCJ
19442 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19443 allow_undefined_flag_GCJ=
19444 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19445 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }
19450 archive_cmds_need_lc_GCJ=no
19452 archive_cmds_need_lc_GCJ=yes
19454 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19456 cat conftest.err 1>&5
19459 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19460 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19467 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19468 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19469 library_names_spec=
19470 libname_spec='lib$name'
19474 postuninstall_cmds=
19478 shlibpath_overrides_runpath=unknown
19480 dynamic_linker="$host_os ld.so"
19481 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19483 need_lib_prefix=unknown
19484 hardcode_into_libs=no
19486 # when you set need_version to no, make sure it does not cause -set_version
19487 # flags to be left without arguments
19488 need_version=unknown
19493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19494 shlibpath_var=LIBPATH
19496 # AIX 3 has no versioning support, so we append a major version to the name.
19497 soname_spec='${libname}${release}${shared_ext}$major'
19504 hardcode_into_libs=yes
19505 if test "$host_cpu" = ia64; then
19506 # AIX 5 supports IA64
19507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19508 shlibpath_var=LD_LIBRARY_PATH
19510 # With GCC up to 2.95.x, collect2 would create an import file
19511 # for dependence libraries. The import file would start with
19512 # the line `#! .'. This would cause the generated library to
19513 # depend on `.', always an invalid library. This was fixed in
19514 # development snapshots of GCC prior to 3.0.
19516 aix4 | aix4.[01] | aix4.[01].*)
19517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19519 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19522 can_build_shared=no
19526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19527 # soname into executable. Probably we can add versioning support to
19528 # collect2, so additional links can be useful in future.
19529 if test "$aix_use_runtimelinking" = yes; then
19530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19531 # instead of lib<name>.a to let people know that these are not
19532 # typical AIX shared libraries.
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19535 # We preserve .a as extension for shared libraries through AIX4.2
19536 # and later when we are not doing run time linking.
19537 library_names_spec='${libname}${release}.a $libname.a'
19538 soname_spec='${libname}${release}${shared_ext}$major'
19540 shlibpath_var=LIBPATH
19545 library_names_spec='$libname.ixlibrary $libname.a'
19546 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19547 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'
19551 library_names_spec='${libname}${shared_ext}'
19552 dynamic_linker="$host_os ld.so"
19553 shlibpath_var=LIBRARY_PATH
19559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19560 soname_spec='${libname}${release}${shared_ext}$major'
19561 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19562 shlibpath_var=LD_LIBRARY_PATH
19563 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19564 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19565 # the default ld.so.conf also contains /usr/contrib/lib and
19566 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19567 # libtool to hard-code these into programs
19570 cygwin* | mingw* | pw32*)
19571 version_type=windows
19576 case $GCC,$host_os in
19577 yes,cygwin* | yes,mingw* | yes,pw32*)
19578 library_names_spec='$libname.dll.a'
19579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19580 postinstall_cmds='base_file=`basename \${file}`~
19581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19582 dldir=$destdir/`dirname \$dlpath`~
19583 test -d \$dldir || mkdir -p \$dldir~
19584 $install_prog $dir/$dlname \$dldir/$dlname~
19585 chmod a+x \$dldir/$dlname'
19586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19587 dlpath=$dir/\$dldll~
19589 shlibpath_overrides_runpath=yes
19593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19595 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19598 # MinGW DLLs use traditional 'lib' prefix
19599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19601 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19602 # It is most probably a Windows format PATH printed by
19603 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19604 # path with ; separators, and with drive letters. We can handle the
19605 # drive letters (cygwin fileutils understands them), so leave them,
19606 # especially as we might pass files found there to a mingw objdump,
19607 # which wouldn't understand a cygwinified path. Ahh.
19608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19614 # pw32 DLLs use 'pw' prefix rather than 'lib'
19615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19621 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19624 dynamic_linker='Win32 ld.exe'
19625 # FIXME: first we should search . and the directory the executable is in
19629 darwin* | rhapsody*)
19630 dynamic_linker="$host_os dyld"
19631 version_type=darwin
19634 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19635 soname_spec='${libname}${release}${major}$shared_ext'
19636 shlibpath_overrides_runpath=yes
19637 shlibpath_var=DYLD_LIBRARY_PATH
19638 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19640 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19648 soname_spec='${libname}${release}${shared_ext}$major'
19649 shlibpath_var=LD_LIBRARY_PATH
19656 freebsd* | dragonfly*)
19657 # DragonFly does not have aout. When/if they implement a new
19658 # versioning mechanism, adjust this.
19659 if test -x /usr/bin/objformat; then
19660 objformat=`/usr/bin/objformat`
19663 freebsd[123]*) objformat=aout ;;
19664 *) objformat=elf ;;
19667 version_type=freebsd-$objformat
19668 case $version_type in
19670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19679 shlibpath_var=LD_LIBRARY_PATH
19682 shlibpath_overrides_runpath=yes
19684 freebsd3.[01]* | freebsdelf3.[01]*)
19685 shlibpath_overrides_runpath=yes
19686 hardcode_into_libs=yes
19688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19690 shlibpath_overrides_runpath=no
19691 hardcode_into_libs=yes
19693 *) # from 4.6 on, and DragonFly
19694 shlibpath_overrides_runpath=yes
19695 hardcode_into_libs=yes
19704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19705 soname_spec='${libname}${release}${shared_ext}$major'
19706 shlibpath_var=LD_LIBRARY_PATH
19707 hardcode_into_libs=yes
19710 hpux9* | hpux10* | hpux11*)
19711 # Give a soname corresponding to the major version so that dld.sl refuses to
19712 # link against other versions.
19719 hardcode_into_libs=yes
19720 dynamic_linker="$host_os dld.so"
19721 shlibpath_var=LD_LIBRARY_PATH
19722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724 soname_spec='${libname}${release}${shared_ext}$major'
19725 if test "X$HPUX_IA64_MODE" = X32; then
19726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19734 hardcode_into_libs=yes
19735 dynamic_linker="$host_os dld.sl"
19736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19739 soname_spec='${libname}${release}${shared_ext}$major'
19740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19745 dynamic_linker="$host_os dld.sl"
19746 shlibpath_var=SHLIB_PATH
19747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
19752 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19753 postinstall_cmds='chmod 555 $lib'
19760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19761 soname_spec='${libname}${release}${shared_ext}$major'
19762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19763 shlibpath_var=LD_LIBRARY_PATH
19764 shlibpath_overrides_runpath=no
19765 hardcode_into_libs=yes
19768 irix5* | irix6* | nonstopux*)
19770 nonstopux*) version_type=nonstopux ;;
19772 if test "$lt_cv_prog_gnu_ld" = yes; then
19780 soname_spec='${libname}${release}${shared_ext}$major'
19781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19783 irix5* | nonstopux*)
19784 libsuff= shlibsuff=
19787 case $LD in # libtool.m4 will add one of these switches to LD
19788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19789 libsuff= shlibsuff= libmagic=32-bit;;
19790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19791 libsuff=32 shlibsuff=N32 libmagic=N32;;
19792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19793 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19794 *) libsuff= shlibsuff= libmagic=never-match;;
19798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19799 shlibpath_overrides_runpath=no
19800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19802 hardcode_into_libs=yes
19805 # No shared lib support for Linux oldld, aout, or coff.
19806 linux*oldld* | linux*aout* | linux*coff*)
19810 # This must be Linux ELF.
19811 linux* | k*bsd*-gnu)
19815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19816 soname_spec='${libname}${release}${shared_ext}$major'
19817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19818 shlibpath_var=LD_LIBRARY_PATH
19819 shlibpath_overrides_runpath=no
19820 # This implies no fast_install, which is unacceptable.
19821 # Some rework will be needed to allow for fast_install
19822 # before this can be enabled.
19823 hardcode_into_libs=yes
19824 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19825 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19827 # Append ld.so.conf contents to the search path
19828 if test -f /etc/ld.so.conf; then
19829 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' ' '`
19830 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19833 # We used to test for /lib/ld.so.1 and disable shared libraries on
19834 # powerpc, because MkLinux only supported shared libraries with the
19835 # GNU dynamic linker. Since this was broken with cross compilers,
19836 # most powerpc-linux boxes support dynamic linking these days and
19837 # people can always --disable-shared, the test was removed, and we
19838 # assume the GNU/Linux dynamic linker is in use.
19839 dynamic_linker='GNU/Linux ld.so'
19846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19849 dynamic_linker='NetBSD (a.out) ld.so'
19851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19852 soname_spec='${libname}${release}${shared_ext}$major'
19853 dynamic_linker='NetBSD ld.elf_so'
19855 shlibpath_var=LD_LIBRARY_PATH
19856 shlibpath_overrides_runpath=yes
19857 hardcode_into_libs=yes
19862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19863 shlibpath_var=LD_LIBRARY_PATH
19864 shlibpath_overrides_runpath=yes
19871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19872 soname_spec='${libname}${release}${shared_ext}$major'
19873 shlibpath_var=LD_LIBRARY_PATH
19874 shlibpath_overrides_runpath=yes
19879 sys_lib_dlsearch_path_spec="/usr/lib"
19881 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19883 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19884 *) need_version=no ;;
19886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19888 shlibpath_var=LD_LIBRARY_PATH
19889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19891 openbsd2.[89] | openbsd2.[89].*)
19892 shlibpath_overrides_runpath=no
19895 shlibpath_overrides_runpath=yes
19899 shlibpath_overrides_runpath=yes
19904 libname_spec='$name'
19907 library_names_spec='$libname${shared_ext} $libname.a'
19908 dynamic_linker='OS/2 ld.exe'
19909 shlibpath_var=LIBPATH
19912 osf3* | osf4* | osf5*)
19916 soname_spec='${libname}${release}${shared_ext}$major'
19917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19918 shlibpath_var=LD_LIBRARY_PATH
19919 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19920 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19932 soname_spec='${libname}${release}${shared_ext}$major'
19933 shlibpath_var=LD_LIBRARY_PATH
19934 shlibpath_overrides_runpath=yes
19935 hardcode_into_libs=yes
19936 # ldd complains unless libraries are executable
19937 postinstall_cmds='chmod +x $lib'
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19943 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19944 shlibpath_var=LD_LIBRARY_PATH
19945 shlibpath_overrides_runpath=yes
19946 if test "$with_gnu_ld" = yes; then
19954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19955 soname_spec='${libname}${release}${shared_ext}$major'
19956 shlibpath_var=LD_LIBRARY_PATH
19957 case $host_vendor in
19959 shlibpath_overrides_runpath=no
19961 export_dynamic_flag_spec='${wl}-Blargedynsym'
19962 runpath_var=LD_RUN_PATH
19970 shlibpath_overrides_runpath=no
19971 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19977 if test -d /usr/nec ;then
19979 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19980 soname_spec='$libname${shared_ext}.$major'
19981 shlibpath_var=LD_LIBRARY_PATH
19985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19986 version_type=freebsd-elf
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19990 soname_spec='${libname}${release}${shared_ext}$major'
19991 shlibpath_var=LD_LIBRARY_PATH
19992 hardcode_into_libs=yes
19993 if test "$with_gnu_ld" = yes; then
19994 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19995 shlibpath_overrides_runpath=no
19997 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19998 shlibpath_overrides_runpath=yes
20001 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20005 sys_lib_dlsearch_path_spec='/usr/lib'
20010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20011 soname_spec='${libname}${release}${shared_ext}$major'
20012 shlibpath_var=LD_LIBRARY_PATH
20019 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20020 echo "${ECHO_T}$dynamic_linker" >&6; }
20021 test "$dynamic_linker" = no && can_build_shared=no
20023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20024 if test "$GCC" = yes; then
20025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20028 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20029 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20030 hardcode_action_GCJ=
20031 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20032 test -n "$runpath_var_GCJ" || \
20033 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20035 # We can hardcode non-existant directories.
20036 if test "$hardcode_direct_GCJ" != no &&
20037 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20038 # have to relink, otherwise we might link with an installed library
20039 # when we should be linking with a yet-to-be-installed one
20040 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20041 test "$hardcode_minus_L_GCJ" != no; then
20042 # Linking always hardcodes the temporary library directory.
20043 hardcode_action_GCJ=relink
20045 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20046 hardcode_action_GCJ=immediate
20049 # We cannot hardcode anything, or else we can only hardcode existing
20051 hardcode_action_GCJ=unsupported
20053 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20054 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20056 if test "$hardcode_action_GCJ" = relink; then
20057 # Fast installation is not supported
20058 enable_fast_install=no
20059 elif test "$shlibpath_overrides_runpath" = yes ||
20060 test "$enable_shared" = no; then
20061 # Fast installation is not necessary
20062 enable_fast_install=needless
20066 # The else clause should only fire when bootstrapping the
20067 # libtool distribution, otherwise you forgot to ship ltmain.sh
20068 # with your package, and you will get complaints that there are
20069 # no rules to generate ltmain.sh.
20070 if test -f "$ltmain"; then
20071 # See if we are running on zsh, and set the options which allow our commands through
20072 # without removal of \ escapes.
20073 if test -n "${ZSH_VERSION+set}" ; then
20074 setopt NO_GLOB_SUBST
20076 # Now quote all the things that may contain metacharacters while being
20077 # careful not to overquote the AC_SUBSTed values. We take copies of the
20078 # variables and quote the copies for generation of the libtool script.
20079 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20081 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20082 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20083 deplibs_check_method reload_flag reload_cmds need_locks \
20084 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20085 lt_cv_sys_global_symbol_to_c_name_address \
20086 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20087 old_postinstall_cmds old_postuninstall_cmds \
20091 lt_prog_compiler_wl_GCJ \
20092 lt_prog_compiler_pic_GCJ \
20093 lt_prog_compiler_static_GCJ \
20094 lt_prog_compiler_no_builtin_flag_GCJ \
20095 export_dynamic_flag_spec_GCJ \
20096 thread_safe_flag_spec_GCJ \
20097 whole_archive_flag_spec_GCJ \
20098 enable_shared_with_static_runtimes_GCJ \
20099 old_archive_cmds_GCJ \
20100 old_archive_from_new_cmds_GCJ \
20101 predep_objects_GCJ \
20102 postdep_objects_GCJ \
20105 compiler_lib_search_path_GCJ \
20107 archive_expsym_cmds_GCJ \
20108 postinstall_cmds_GCJ \
20109 postuninstall_cmds_GCJ \
20110 old_archive_from_expsyms_cmds_GCJ \
20111 allow_undefined_flag_GCJ \
20112 no_undefined_flag_GCJ \
20113 export_symbols_cmds_GCJ \
20114 hardcode_libdir_flag_spec_GCJ \
20115 hardcode_libdir_flag_spec_ld_GCJ \
20116 hardcode_libdir_separator_GCJ \
20117 hardcode_automatic_GCJ \
20119 module_expsym_cmds_GCJ \
20120 lt_cv_prog_compiler_c_o_GCJ \
20121 fix_srcfile_path_GCJ \
20122 exclude_expsyms_GCJ \
20123 include_expsyms_GCJ; do
20126 old_archive_cmds_GCJ | \
20127 old_archive_from_new_cmds_GCJ | \
20128 archive_cmds_GCJ | \
20129 archive_expsym_cmds_GCJ | \
20130 module_cmds_GCJ | \
20131 module_expsym_cmds_GCJ | \
20132 old_archive_from_expsyms_cmds_GCJ | \
20133 export_symbols_cmds_GCJ | \
20134 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20135 postinstall_cmds | postuninstall_cmds | \
20136 old_postinstall_cmds | old_postuninstall_cmds | \
20137 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20138 # Double-quote double-evaled strings.
20139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20148 *'\$0 --fallback-echo"')
20149 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20155 cat <<__EOF__ >> "$cfgfile"
20156 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20160 # Shell to use when invoking shell scripts.
20163 # Whether or not to build shared libraries.
20164 build_libtool_libs=$enable_shared
20166 # Whether or not to build static libraries.
20167 build_old_libs=$enable_static
20169 # Whether or not to add -lc for building shared libraries.
20170 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20172 # Whether or not to disallow shared libs when runtime libs are static
20173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20175 # Whether or not to optimize for fast installation.
20176 fast_install=$enable_fast_install
20179 host_alias=$host_alias
20183 # The build system.
20184 build_alias=$build_alias
20188 # An echo program that does not interpret backslashes.
20193 AR_FLAGS=$lt_AR_FLAGS
20198 # LTCC compiler flags.
20199 LTCFLAGS=$lt_LTCFLAGS
20201 # A language-specific compiler.
20202 CC=$lt_compiler_GCJ
20204 # Is the compiler the GNU C compiler?
20210 # The linker used to build libraries.
20213 # Whether we need hard or soft links.
20216 # A BSD-compatible nm program.
20219 # A symbol stripping program
20222 # Used to examine libraries when file_magic_cmd begins "file"
20223 MAGIC_CMD=$MAGIC_CMD
20225 # Used on cygwin: DLL creation program.
20228 # Used on cygwin: object dumper.
20231 # Used on cygwin: assembler.
20234 # The name of the directory that contains temporary libtool files.
20237 # How to create reloadable object files.
20238 reload_flag=$lt_reload_flag
20239 reload_cmds=$lt_reload_cmds
20241 # How to pass a linker flag through the compiler.
20242 wl=$lt_lt_prog_compiler_wl_GCJ
20244 # Object file suffix (normally "o").
20245 objext="$ac_objext"
20247 # Old archive suffix (normally "a").
20250 # Shared library suffix (normally ".so").
20251 shrext_cmds='$shrext_cmds'
20253 # Executable file suffix (normally "").
20256 # Additional compiler flags for building library objects.
20257 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20260 # What is the maximum length of a command?
20261 max_cmd_len=$lt_cv_sys_max_cmd_len
20263 # Does compiler simultaneously support -c and -o options?
20264 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20266 # Must we lock files when doing compilation?
20267 need_locks=$lt_need_locks
20269 # Do we need the lib prefix for modules?
20270 need_lib_prefix=$need_lib_prefix
20272 # Do we need a version for libraries?
20273 need_version=$need_version
20275 # Whether dlopen is supported.
20276 dlopen_support=$enable_dlopen
20278 # Whether dlopen of programs is supported.
20279 dlopen_self=$enable_dlopen_self
20281 # Whether dlopen of statically linked programs is supported.
20282 dlopen_self_static=$enable_dlopen_self_static
20284 # Compiler flag to prevent dynamic linking.
20285 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20287 # Compiler flag to turn off builtin functions.
20288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20290 # Compiler flag to allow reflexive dlopens.
20291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20293 # Compiler flag to generate shared objects directly from archives.
20294 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20296 # Compiler flag to generate thread-safe objects.
20297 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20299 # Library versioning type.
20300 version_type=$version_type
20302 # Format of library name prefix.
20303 libname_spec=$lt_libname_spec
20305 # List of archive names. First name is the real one, the rest are links.
20306 # The last name is the one that the linker finds with -lNAME.
20307 library_names_spec=$lt_library_names_spec
20309 # The coded name of the library, if different from the real name.
20310 soname_spec=$lt_soname_spec
20312 # Commands used to build and install an old-style archive.
20314 old_archive_cmds=$lt_old_archive_cmds_GCJ
20315 old_postinstall_cmds=$lt_old_postinstall_cmds
20316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20318 # Create an old-style archive from a shared archive.
20319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20321 # Create a temporary old-style archive to link instead of a shared archive.
20322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20324 # Commands used to build and install a shared archive.
20325 archive_cmds=$lt_archive_cmds_GCJ
20326 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20327 postinstall_cmds=$lt_postinstall_cmds
20328 postuninstall_cmds=$lt_postuninstall_cmds
20330 # Commands used to build a loadable module (assumed same as above if empty)
20331 module_cmds=$lt_module_cmds_GCJ
20332 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20334 # Commands to strip libraries.
20335 old_striplib=$lt_old_striplib
20336 striplib=$lt_striplib
20338 # Dependencies to place before the objects being linked to create a
20340 predep_objects=$lt_predep_objects_GCJ
20342 # Dependencies to place after the objects being linked to create a
20344 postdep_objects=$lt_postdep_objects_GCJ
20346 # Dependencies to place before the objects being linked to create a
20348 predeps=$lt_predeps_GCJ
20350 # Dependencies to place after the objects being linked to create a
20352 postdeps=$lt_postdeps_GCJ
20354 # The library search path used internally by the compiler when linking
20355 # a shared library.
20356 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20358 # Method to check whether dependent libraries are shared objects.
20359 deplibs_check_method=$lt_deplibs_check_method
20361 # Command to use when deplibs_check_method == file_magic.
20362 file_magic_cmd=$lt_file_magic_cmd
20364 # Flag that allows shared libraries with undefined symbols to be built.
20365 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20367 # Flag that forces no undefined symbols.
20368 no_undefined_flag=$lt_no_undefined_flag_GCJ
20370 # Commands used to finish a libtool library installation in a directory.
20371 finish_cmds=$lt_finish_cmds
20373 # Same as above, but a single script fragment to be evaled but not shown.
20374 finish_eval=$lt_finish_eval
20376 # Take the output of nm and produce a listing of raw symbols and C names.
20377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20379 # Transform the output of nm in a proper C declaration
20380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20382 # Transform the output of nm in a C name address pair
20383 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20385 # This is the shared library runtime path variable.
20386 runpath_var=$runpath_var
20388 # This is the shared library path variable.
20389 shlibpath_var=$shlibpath_var
20391 # Is shlibpath searched before the hard-coded library search path?
20392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20394 # How to hardcode a shared library path into an executable.
20395 hardcode_action=$hardcode_action_GCJ
20397 # Whether we should hardcode library paths into libraries.
20398 hardcode_into_libs=$hardcode_into_libs
20400 # Flag to hardcode \$libdir into a binary during linking.
20401 # This must work even if \$libdir does not exist.
20402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20404 # If ld is used when linking, flag to hardcode \$libdir into
20405 # a binary during linking. This must work even if \$libdir does
20407 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20409 # Whether we need a single -rpath flag with a separated argument.
20410 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20412 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20413 # resulting binary.
20414 hardcode_direct=$hardcode_direct_GCJ
20416 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20417 # resulting binary.
20418 hardcode_minus_L=$hardcode_minus_L_GCJ
20420 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20421 # the resulting binary.
20422 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20424 # Set to yes if building a shared library automatically hardcodes DIR into the library
20425 # and all subsequent libraries and executables linked against it.
20426 hardcode_automatic=$hardcode_automatic_GCJ
20428 # Variables whose values should be saved in libtool wrapper scripts and
20429 # restored at relink time.
20430 variables_saved_for_relink="$variables_saved_for_relink"
20432 # Whether libtool must link a program against all its dependency libraries.
20433 link_all_deplibs=$link_all_deplibs_GCJ
20435 # Compile-time system search path for libraries
20436 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20438 # Run-time system search path for libraries
20439 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20441 # Fix the shell variable \$srcfile for the compiler.
20442 fix_srcfile_path=$lt_fix_srcfile_path
20444 # Set to yes if exported symbols are required.
20445 always_export_symbols=$always_export_symbols_GCJ
20447 # The commands to list exported symbols.
20448 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20450 # The commands to extract the exported symbol list from a shared archive.
20451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20453 # Symbols that should not be listed in the preloaded symbols.
20454 exclude_expsyms=$lt_exclude_expsyms_GCJ
20456 # Symbols that must always be exported.
20457 include_expsyms=$lt_include_expsyms_GCJ
20459 # ### END LIBTOOL TAG CONFIG: $tagname
20465 # If there is no Makefile yet, we rely on a make rule to execute
20466 # `config.status --recheck' to rerun these tests and create the
20467 # libtool script then.
20468 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20469 if test -f "$ltmain_in"; then
20470 test -f Makefile && make "$ltmain"
20476 ac_cpp='$CPP $CPPFLAGS'
20477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491 # Source file extension for RC test sources.
20494 # Object file extension for compiled RC test sources.
20498 # Code to be used in simple compile tests
20499 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20501 # Code to be used in simple link tests
20502 lt_simple_link_test_code="$lt_simple_compile_test_code"
20504 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20506 # If no C compiler was specified, use CC.
20509 # If no C compiler flags were specified, use CFLAGS.
20510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20512 # Allow CC to be a program name with arguments.
20516 # save warnings/boilerplate of simple test code
20517 ac_outfile=conftest.$ac_objext
20518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20520 _lt_compiler_boilerplate=`cat conftest.err`
20523 ac_outfile=conftest.$ac_objext
20524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20526 _lt_linker_boilerplate=`cat conftest.err`
20530 # Allow CC to be a program name with arguments.
20535 for cc_temp in $compiler""; do
20537 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20538 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20543 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20545 lt_cv_prog_compiler_c_o_RC=yes
20547 # The else clause should only fire when bootstrapping the
20548 # libtool distribution, otherwise you forgot to ship ltmain.sh
20549 # with your package, and you will get complaints that there are
20550 # no rules to generate ltmain.sh.
20551 if test -f "$ltmain"; then
20552 # See if we are running on zsh, and set the options which allow our commands through
20553 # without removal of \ escapes.
20554 if test -n "${ZSH_VERSION+set}" ; then
20555 setopt NO_GLOB_SUBST
20557 # Now quote all the things that may contain metacharacters while being
20558 # careful not to overquote the AC_SUBSTed values. We take copies of the
20559 # variables and quote the copies for generation of the libtool script.
20560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20564 deplibs_check_method reload_flag reload_cmds need_locks \
20565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20566 lt_cv_sys_global_symbol_to_c_name_address \
20567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20568 old_postinstall_cmds old_postuninstall_cmds \
20572 lt_prog_compiler_wl_RC \
20573 lt_prog_compiler_pic_RC \
20574 lt_prog_compiler_static_RC \
20575 lt_prog_compiler_no_builtin_flag_RC \
20576 export_dynamic_flag_spec_RC \
20577 thread_safe_flag_spec_RC \
20578 whole_archive_flag_spec_RC \
20579 enable_shared_with_static_runtimes_RC \
20580 old_archive_cmds_RC \
20581 old_archive_from_new_cmds_RC \
20582 predep_objects_RC \
20583 postdep_objects_RC \
20586 compiler_lib_search_path_RC \
20588 archive_expsym_cmds_RC \
20589 postinstall_cmds_RC \
20590 postuninstall_cmds_RC \
20591 old_archive_from_expsyms_cmds_RC \
20592 allow_undefined_flag_RC \
20593 no_undefined_flag_RC \
20594 export_symbols_cmds_RC \
20595 hardcode_libdir_flag_spec_RC \
20596 hardcode_libdir_flag_spec_ld_RC \
20597 hardcode_libdir_separator_RC \
20598 hardcode_automatic_RC \
20600 module_expsym_cmds_RC \
20601 lt_cv_prog_compiler_c_o_RC \
20602 fix_srcfile_path_RC \
20603 exclude_expsyms_RC \
20604 include_expsyms_RC; do
20607 old_archive_cmds_RC | \
20608 old_archive_from_new_cmds_RC | \
20609 archive_cmds_RC | \
20610 archive_expsym_cmds_RC | \
20612 module_expsym_cmds_RC | \
20613 old_archive_from_expsyms_cmds_RC | \
20614 export_symbols_cmds_RC | \
20615 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20616 postinstall_cmds | postuninstall_cmds | \
20617 old_postinstall_cmds | old_postuninstall_cmds | \
20618 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20619 # Double-quote double-evaled strings.
20620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20629 *'\$0 --fallback-echo"')
20630 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20636 cat <<__EOF__ >> "$cfgfile"
20637 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20641 # Shell to use when invoking shell scripts.
20644 # Whether or not to build shared libraries.
20645 build_libtool_libs=$enable_shared
20647 # Whether or not to build static libraries.
20648 build_old_libs=$enable_static
20650 # Whether or not to add -lc for building shared libraries.
20651 build_libtool_need_lc=$archive_cmds_need_lc_RC
20653 # Whether or not to disallow shared libs when runtime libs are static
20654 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20656 # Whether or not to optimize for fast installation.
20657 fast_install=$enable_fast_install
20660 host_alias=$host_alias
20664 # The build system.
20665 build_alias=$build_alias
20669 # An echo program that does not interpret backslashes.
20674 AR_FLAGS=$lt_AR_FLAGS
20679 # LTCC compiler flags.
20680 LTCFLAGS=$lt_LTCFLAGS
20682 # A language-specific compiler.
20685 # Is the compiler the GNU C compiler?
20691 # The linker used to build libraries.
20694 # Whether we need hard or soft links.
20697 # A BSD-compatible nm program.
20700 # A symbol stripping program
20703 # Used to examine libraries when file_magic_cmd begins "file"
20704 MAGIC_CMD=$MAGIC_CMD
20706 # Used on cygwin: DLL creation program.
20709 # Used on cygwin: object dumper.
20712 # Used on cygwin: assembler.
20715 # The name of the directory that contains temporary libtool files.
20718 # How to create reloadable object files.
20719 reload_flag=$lt_reload_flag
20720 reload_cmds=$lt_reload_cmds
20722 # How to pass a linker flag through the compiler.
20723 wl=$lt_lt_prog_compiler_wl_RC
20725 # Object file suffix (normally "o").
20726 objext="$ac_objext"
20728 # Old archive suffix (normally "a").
20731 # Shared library suffix (normally ".so").
20732 shrext_cmds='$shrext_cmds'
20734 # Executable file suffix (normally "").
20737 # Additional compiler flags for building library objects.
20738 pic_flag=$lt_lt_prog_compiler_pic_RC
20741 # What is the maximum length of a command?
20742 max_cmd_len=$lt_cv_sys_max_cmd_len
20744 # Does compiler simultaneously support -c and -o options?
20745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20747 # Must we lock files when doing compilation?
20748 need_locks=$lt_need_locks
20750 # Do we need the lib prefix for modules?
20751 need_lib_prefix=$need_lib_prefix
20753 # Do we need a version for libraries?
20754 need_version=$need_version
20756 # Whether dlopen is supported.
20757 dlopen_support=$enable_dlopen
20759 # Whether dlopen of programs is supported.
20760 dlopen_self=$enable_dlopen_self
20762 # Whether dlopen of statically linked programs is supported.
20763 dlopen_self_static=$enable_dlopen_self_static
20765 # Compiler flag to prevent dynamic linking.
20766 link_static_flag=$lt_lt_prog_compiler_static_RC
20768 # Compiler flag to turn off builtin functions.
20769 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20771 # Compiler flag to allow reflexive dlopens.
20772 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20774 # Compiler flag to generate shared objects directly from archives.
20775 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20777 # Compiler flag to generate thread-safe objects.
20778 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20780 # Library versioning type.
20781 version_type=$version_type
20783 # Format of library name prefix.
20784 libname_spec=$lt_libname_spec
20786 # List of archive names. First name is the real one, the rest are links.
20787 # The last name is the one that the linker finds with -lNAME.
20788 library_names_spec=$lt_library_names_spec
20790 # The coded name of the library, if different from the real name.
20791 soname_spec=$lt_soname_spec
20793 # Commands used to build and install an old-style archive.
20795 old_archive_cmds=$lt_old_archive_cmds_RC
20796 old_postinstall_cmds=$lt_old_postinstall_cmds
20797 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20799 # Create an old-style archive from a shared archive.
20800 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20802 # Create a temporary old-style archive to link instead of a shared archive.
20803 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20805 # Commands used to build and install a shared archive.
20806 archive_cmds=$lt_archive_cmds_RC
20807 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20808 postinstall_cmds=$lt_postinstall_cmds
20809 postuninstall_cmds=$lt_postuninstall_cmds
20811 # Commands used to build a loadable module (assumed same as above if empty)
20812 module_cmds=$lt_module_cmds_RC
20813 module_expsym_cmds=$lt_module_expsym_cmds_RC
20815 # Commands to strip libraries.
20816 old_striplib=$lt_old_striplib
20817 striplib=$lt_striplib
20819 # Dependencies to place before the objects being linked to create a
20821 predep_objects=$lt_predep_objects_RC
20823 # Dependencies to place after the objects being linked to create a
20825 postdep_objects=$lt_postdep_objects_RC
20827 # Dependencies to place before the objects being linked to create a
20829 predeps=$lt_predeps_RC
20831 # Dependencies to place after the objects being linked to create a
20833 postdeps=$lt_postdeps_RC
20835 # The library search path used internally by the compiler when linking
20836 # a shared library.
20837 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20839 # Method to check whether dependent libraries are shared objects.
20840 deplibs_check_method=$lt_deplibs_check_method
20842 # Command to use when deplibs_check_method == file_magic.
20843 file_magic_cmd=$lt_file_magic_cmd
20845 # Flag that allows shared libraries with undefined symbols to be built.
20846 allow_undefined_flag=$lt_allow_undefined_flag_RC
20848 # Flag that forces no undefined symbols.
20849 no_undefined_flag=$lt_no_undefined_flag_RC
20851 # Commands used to finish a libtool library installation in a directory.
20852 finish_cmds=$lt_finish_cmds
20854 # Same as above, but a single script fragment to be evaled but not shown.
20855 finish_eval=$lt_finish_eval
20857 # Take the output of nm and produce a listing of raw symbols and C names.
20858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20860 # Transform the output of nm in a proper C declaration
20861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20863 # Transform the output of nm in a C name address pair
20864 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20866 # This is the shared library runtime path variable.
20867 runpath_var=$runpath_var
20869 # This is the shared library path variable.
20870 shlibpath_var=$shlibpath_var
20872 # Is shlibpath searched before the hard-coded library search path?
20873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20875 # How to hardcode a shared library path into an executable.
20876 hardcode_action=$hardcode_action_RC
20878 # Whether we should hardcode library paths into libraries.
20879 hardcode_into_libs=$hardcode_into_libs
20881 # Flag to hardcode \$libdir into a binary during linking.
20882 # This must work even if \$libdir does not exist.
20883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20885 # If ld is used when linking, flag to hardcode \$libdir into
20886 # a binary during linking. This must work even if \$libdir does
20888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20890 # Whether we need a single -rpath flag with a separated argument.
20891 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20893 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20894 # resulting binary.
20895 hardcode_direct=$hardcode_direct_RC
20897 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20898 # resulting binary.
20899 hardcode_minus_L=$hardcode_minus_L_RC
20901 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20902 # the resulting binary.
20903 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20905 # Set to yes if building a shared library automatically hardcodes DIR into the library
20906 # and all subsequent libraries and executables linked against it.
20907 hardcode_automatic=$hardcode_automatic_RC
20909 # Variables whose values should be saved in libtool wrapper scripts and
20910 # restored at relink time.
20911 variables_saved_for_relink="$variables_saved_for_relink"
20913 # Whether libtool must link a program against all its dependency libraries.
20914 link_all_deplibs=$link_all_deplibs_RC
20916 # Compile-time system search path for libraries
20917 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20919 # Run-time system search path for libraries
20920 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20922 # Fix the shell variable \$srcfile for the compiler.
20923 fix_srcfile_path=$lt_fix_srcfile_path
20925 # Set to yes if exported symbols are required.
20926 always_export_symbols=$always_export_symbols_RC
20928 # The commands to list exported symbols.
20929 export_symbols_cmds=$lt_export_symbols_cmds_RC
20931 # The commands to extract the exported symbol list from a shared archive.
20932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20934 # Symbols that should not be listed in the preloaded symbols.
20935 exclude_expsyms=$lt_exclude_expsyms_RC
20937 # Symbols that must always be exported.
20938 include_expsyms=$lt_include_expsyms_RC
20940 # ### END LIBTOOL TAG CONFIG: $tagname
20946 # If there is no Makefile yet, we rely on a make rule to execute
20947 # `config.status --recheck' to rerun these tests and create the
20948 # libtool script then.
20949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20950 if test -f "$ltmain_in"; then
20951 test -f Makefile && make "$ltmain"
20957 ac_cpp='$CPP $CPPFLAGS'
20958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20968 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20969 { (exit 1); exit 1; }; }
20973 # Append the new tag name to the list of available tags.
20974 if test -n "$tagname" ; then
20975 available_tags="$available_tags $tagname"
20981 # Now substitute the updated list of available tags.
20982 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20983 mv "${ofile}T" "$ofile"
20987 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20988 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20989 { (exit 1); exit 1; }; }
20995 # This can be used to rebuild libtool when needed
20996 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20998 # Always use our own libtool.
20999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21001 # Prevent multiple expansion
21022 if test "x$CC" != xcc; then
21023 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21024 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21026 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21027 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21029 set dummy $CC; ac_cc=`echo $2 |
21030 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21031 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 cat >conftest.$ac_ext <<_ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21049 # Make sure it works both with $CC and with simple cc.
21050 # We do the test twice because some compilers refuse to overwrite an
21051 # existing .o file with -o, though they will create one.
21052 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21054 if { (case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_try") 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_try") 2>&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); };
21073 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21074 if test "x$CC" != xcc; then
21075 # Test first that cc exists at all.
21076 if { ac_try='cc -c conftest.$ac_ext >&5'
21077 { (case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_try") 2>&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21088 if { (case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_try") 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } &&
21097 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_try") 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); };
21110 # cc exists but doesn't like -o.
21111 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21116 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21118 rm -f core conftest*
21121 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21122 { echo "$as_me:$LINENO: result: yes" >&5
21123 echo "${ECHO_T}yes" >&6; }
21125 { echo "$as_me:$LINENO: result: no" >&5
21126 echo "${ECHO_T}no" >&6; }
21128 cat >>confdefs.h <<\_ACEOF
21129 #define NO_MINUS_C_MINUS_O 1
21134 # FIXME: we rely on the cache variable name because
21135 # there is no other way.
21137 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21138 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21139 # Losing compiler, so override with the script.
21140 # FIXME: It is wrong to rewrite CC.
21141 # But if we don't then we get into trouble of one sort or another.
21142 # A longer-term fix would be to have automake use am__CC in this case,
21143 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21144 CC="$am_aux_dir/compile $CC"
21149 if test "x$cross_compiling" = "xno"; then
21150 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21152 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21157 if test -n "$ac_tool_prefix"; then
21158 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21159 set dummy ${ac_tool_prefix}ar; ac_word=$2
21160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21162 if test "${ac_cv_prog_AR+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 if test -n "$AR"; then
21166 ac_cv_prog_AR="$AR" # Let the user override the test.
21168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21169 for as_dir in $PATH
21172 test -z "$as_dir" && as_dir=.
21173 for ac_exec_ext in '' $ac_executable_extensions; do
21174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21175 ac_cv_prog_AR="${ac_tool_prefix}ar"
21176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21186 if test -n "$AR"; then
21187 { echo "$as_me:$LINENO: result: $AR" >&5
21188 echo "${ECHO_T}$AR" >&6; }
21190 { echo "$as_me:$LINENO: result: no" >&5
21191 echo "${ECHO_T}no" >&6; }
21196 if test -z "$ac_cv_prog_AR"; then
21198 # Extract the first word of "ar", so it can be a program name with args.
21199 set dummy ar; ac_word=$2
21200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21202 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 if test -n "$ac_ct_AR"; then
21206 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21209 for as_dir in $PATH
21212 test -z "$as_dir" && as_dir=.
21213 for ac_exec_ext in '' $ac_executable_extensions; do
21214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21215 ac_cv_prog_ac_ct_AR="ar"
21216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21226 if test -n "$ac_ct_AR"; then
21227 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21228 echo "${ECHO_T}$ac_ct_AR" >&6; }
21230 { echo "$as_me:$LINENO: result: no" >&5
21231 echo "${ECHO_T}no" >&6; }
21234 if test "x$ac_ct_AR" = x; then
21237 case $cross_compiling:$ac_tool_warned in
21239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21240 whose name does not start with the host triplet. If you think this
21241 configuration is useful to you, please write to autoconf@gnu.org." >&5
21242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21243 whose name does not start with the host triplet. If you think this
21244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21245 ac_tool_warned=yes ;;
21250 AR="$ac_cv_prog_AR"
21253 if test -n "$ac_tool_prefix"; then
21254 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21255 set dummy ${ac_tool_prefix}ld; ac_word=$2
21256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21258 if test "${ac_cv_prog_LD+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 if test -n "$LD"; then
21262 ac_cv_prog_LD="$LD" # Let the user override the test.
21264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21265 for as_dir in $PATH
21268 test -z "$as_dir" && as_dir=.
21269 for ac_exec_ext in '' $ac_executable_extensions; do
21270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21271 ac_cv_prog_LD="${ac_tool_prefix}ld"
21272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21282 if test -n "$LD"; then
21283 { echo "$as_me:$LINENO: result: $LD" >&5
21284 echo "${ECHO_T}$LD" >&6; }
21286 { echo "$as_me:$LINENO: result: no" >&5
21287 echo "${ECHO_T}no" >&6; }
21292 if test -z "$ac_cv_prog_LD"; then
21294 # Extract the first word of "ld", so it can be a program name with args.
21295 set dummy ld; ac_word=$2
21296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21298 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 if test -n "$ac_ct_LD"; then
21302 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21305 for as_dir in $PATH
21308 test -z "$as_dir" && as_dir=.
21309 for ac_exec_ext in '' $ac_executable_extensions; do
21310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21311 ac_cv_prog_ac_ct_LD="ld"
21312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21321 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21322 if test -n "$ac_ct_LD"; then
21323 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21324 echo "${ECHO_T}$ac_ct_LD" >&6; }
21326 { echo "$as_me:$LINENO: result: no" >&5
21327 echo "${ECHO_T}no" >&6; }
21330 if test "x$ac_ct_LD" = x; then
21333 case $cross_compiling:$ac_tool_warned in
21335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21336 whose name does not start with the host triplet. If you think this
21337 configuration is useful to you, please write to autoconf@gnu.org." >&5
21338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21339 whose name does not start with the host triplet. If you think this
21340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21341 ac_tool_warned=yes ;;
21346 LD="$ac_cv_prog_LD"
21350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21352 if test "${ac_cv_header_stdc+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 cat >conftest.$ac_ext <<_ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361 #include <stdlib.h>
21362 #include <stdarg.h>
21363 #include <string.h>
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_compile") 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest.$ac_objext; then
21391 ac_cv_header_stdc=yes
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 ac_cv_header_stdc=no
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 if test $ac_cv_header_stdc = yes; then
21402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <string.h>
21412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21413 $EGREP "memchr" >/dev/null 2>&1; then
21416 ac_cv_header_stdc=no
21422 if test $ac_cv_header_stdc = yes; then
21423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21424 cat >conftest.$ac_ext <<_ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 #include <stdlib.h>
21433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21434 $EGREP "free" >/dev/null 2>&1; then
21437 ac_cv_header_stdc=no
21443 if test $ac_cv_header_stdc = yes; then
21444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21445 if test "$cross_compiling" = yes; then
21448 cat >conftest.$ac_ext <<_ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 #include <stdlib.h>
21456 #if ((' ' & 0x0FF) == 0x020)
21457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21460 # define ISLOWER(c) \
21461 (('a' <= (c) && (c) <= 'i') \
21462 || ('j' <= (c) && (c) <= 'r') \
21463 || ('s' <= (c) && (c) <= 'z'))
21464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21472 for (i = 0; i < 256; i++)
21473 if (XOR (islower (i), ISLOWER (i))
21474 || toupper (i) != TOUPPER (i))
21479 rm -f conftest$ac_exeext
21480 if { (ac_try="$ac_link"
21481 case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486 (eval "$ac_link") 2>&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21490 { (case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495 (eval "$ac_try") 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21501 echo "$as_me: program exited with status $ac_status" >&5
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ( exit $ac_status )
21506 ac_cv_header_stdc=no
21508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21514 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21515 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21516 if test $ac_cv_header_stdc = yes; then
21518 cat >>confdefs.h <<\_ACEOF
21519 #define STDC_HEADERS 1
21525 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21526 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21527 if test "${knfsd_cv_glibc2+set}" = set; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 cat >conftest.$ac_ext <<_ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21537 #include <features.h>
21538 #if !defined(__GLIBC__)
21543 if { (ac_try="$ac_cpp conftest.$ac_ext"
21544 case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } >/dev/null && {
21556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21557 test ! -s conftest.err
21559 knfsd_cv_glibc2=yes
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21567 rm -f conftest.err conftest.$ac_ext
21570 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21571 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21572 if test $knfsd_cv_glibc2 = yes; then
21573 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21574 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21578 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21579 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21580 if test "${knfsd_cv_bsd_signals+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21583 if test "$cross_compiling" = yes; then
21586 *linux*) knfsd_cv_bsd_signals=no;;
21587 *bsd*) knfsd_cv_bsd_signals=yes;;
21588 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21589 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21590 { (exit 1); exit 1; }; };;
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21601 #include <signal.h>
21602 #include <unistd.h>
21603 #include <sys/wait.h>
21605 static int counter = 0;
21606 static RETSIGTYPE handler(int num) { counter++; }
21611 if ((s = fork()) < 0) return 1;
21613 if (wait(&s) < 0) return 1;
21614 return WIFSIGNALED(s)? 1 : 0;
21617 signal(SIGHUP, handler);
21618 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21619 return (counter == 2)? 0 : 1;
21623 rm -f conftest$ac_exeext
21624 if { (ac_try="$ac_link"
21625 case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630 (eval "$ac_link") 2>&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21634 { (case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_try") 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 knfsd_cv_bsd_signals=yes
21645 echo "$as_me: program exited with status $ac_status" >&5
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ( exit $ac_status )
21650 knfsd_cv_bsd_signals=no
21652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21658 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21659 test $knfsd_cv_bsd_signals = yes &&
21660 cat >>confdefs.h <<\_ACEOF
21661 #define HAVE_BSD_SIGNALS 1
21666 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21667 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21668 if test "${ac_cv_func_gethostbyname+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 cat >conftest.$ac_ext <<_ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21679 #define gethostbyname innocuous_gethostbyname
21681 /* System header to define __stub macros and hopefully few prototypes,
21682 which can conflict with char gethostbyname (); below.
21683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21684 <limits.h> exists even on freestanding compilers. */
21687 # include <limits.h>
21689 # include <assert.h>
21692 #undef gethostbyname
21694 /* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21700 char gethostbyname ();
21701 /* The GNU C library defines this for functions which it implements
21702 to always fail with ENOSYS. Some functions are actually named
21703 something starting with __ and the normal name is an alias. */
21704 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21711 return gethostbyname ();
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723 (eval "$ac_link") 2>conftest.er1
21725 grep -v '^ *+' conftest.er1 >conftest.err
21727 cat conftest.err >&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } && {
21730 test -z "$ac_c_werror_flag" ||
21731 test ! -s conftest.err
21732 } && test -s conftest$ac_exeext &&
21733 $as_test_x conftest$ac_exeext; then
21734 ac_cv_func_gethostbyname=yes
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_cv_func_gethostbyname=no
21742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21743 conftest$ac_exeext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21746 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21747 if test $ac_cv_func_gethostbyname = yes; then
21750 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21751 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21752 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21753 echo $ECHO_N "(cached) $ECHO_C" >&6
21755 ac_check_lib_save_LIBS=$LIBS
21757 cat >conftest.$ac_ext <<_ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h. */
21764 /* Override any GCC internal prototype to avoid an error.
21765 Use char because int might match the return type of a GCC
21766 builtin and then its argument prototype would still apply. */
21770 char gethostbyname ();
21774 return gethostbyname ();
21779 rm -f conftest.$ac_objext conftest$ac_exeext
21780 if { (ac_try="$ac_link"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_link") 2>conftest.er1
21788 grep -v '^ *+' conftest.er1 >conftest.err
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && {
21793 test -z "$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21795 } && test -s conftest$ac_exeext &&
21796 $as_test_x conftest$ac_exeext; then
21797 ac_cv_lib_nsl_gethostbyname=yes
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21802 ac_cv_lib_nsl_gethostbyname=no
21805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21806 conftest$ac_exeext conftest.$ac_ext
21807 LIBS=$ac_check_lib_save_LIBS
21809 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21810 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21811 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21819 { echo "$as_me:$LINENO: checking for connect" >&5
21820 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21821 if test "${ac_cv_func_connect+set}" = set; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 cat >conftest.$ac_ext <<_ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21832 #define connect innocuous_connect
21834 /* System header to define __stub macros and hopefully few prototypes,
21835 which can conflict with char connect (); below.
21836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21837 <limits.h> exists even on freestanding compilers. */
21840 # include <limits.h>
21842 # include <assert.h>
21847 /* Override any GCC internal prototype to avoid an error.
21848 Use char because int might match the return type of a GCC
21849 builtin and then its argument prototype would still apply. */
21854 /* The GNU C library defines this for functions which it implements
21855 to always fail with ENOSYS. Some functions are actually named
21856 something starting with __ and the normal name is an alias. */
21857 #if defined __stub_connect || defined __stub___connect
21869 rm -f conftest.$ac_objext conftest$ac_exeext
21870 if { (ac_try="$ac_link"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_link") 2>conftest.er1
21878 grep -v '^ *+' conftest.er1 >conftest.err
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } && {
21883 test -z "$ac_c_werror_flag" ||
21884 test ! -s conftest.err
21885 } && test -s conftest$ac_exeext &&
21886 $as_test_x conftest$ac_exeext; then
21887 ac_cv_func_connect=yes
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 ac_cv_func_connect=no
21895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21896 conftest$ac_exeext conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21899 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21900 if test $ac_cv_func_connect = yes; then
21903 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21904 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21905 if test "${ac_cv_lib_socket_connect+set}" = set; then
21906 echo $ECHO_N "(cached) $ECHO_C" >&6
21908 ac_check_lib_save_LIBS=$LIBS
21909 LIBS="-lsocket $LIBNSL $LIBS"
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21917 /* Override any GCC internal prototype to avoid an error.
21918 Use char because int might match the return type of a GCC
21919 builtin and then its argument prototype would still apply. */
21932 rm -f conftest.$ac_objext conftest$ac_exeext
21933 if { (ac_try="$ac_link"
21934 case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_link") 2>conftest.er1
21941 grep -v '^ *+' conftest.er1 >conftest.err
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } && {
21946 test -z "$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21948 } && test -s conftest$ac_exeext &&
21949 $as_test_x conftest$ac_exeext; then
21950 ac_cv_lib_socket_connect=yes
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ac_cv_lib_socket_connect=no
21958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21959 conftest$ac_exeext conftest.$ac_ext
21960 LIBS=$ac_check_lib_save_LIBS
21962 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21963 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21964 if test $ac_cv_lib_socket_connect = yes; then
21965 LIBSOCKET="-lsocket"
21967 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21968 echo "$as_me: error: Function 'socket' not found." >&2;}
21969 { (exit 1); exit 1; }; }
21975 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21976 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
21977 if test "${ac_cv_func_getaddrinfo+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
21987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21988 #define getaddrinfo innocuous_getaddrinfo
21990 /* System header to define __stub macros and hopefully few prototypes,
21991 which can conflict with char getaddrinfo (); below.
21992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21993 <limits.h> exists even on freestanding compilers. */
21996 # include <limits.h>
21998 # include <assert.h>
22003 /* Override any GCC internal prototype to avoid an error.
22004 Use char because int might match the return type of a GCC
22005 builtin and then its argument prototype would still apply. */
22009 char getaddrinfo ();
22010 /* The GNU C library defines this for functions which it implements
22011 to always fail with ENOSYS. Some functions are actually named
22012 something starting with __ and the normal name is an alias. */
22013 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
22020 return getaddrinfo ();
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (ac_try="$ac_link"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_link") 2>conftest.er1
22034 grep -v '^ *+' conftest.er1 >conftest.err
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } && {
22039 test -z "$ac_c_werror_flag" ||
22040 test ! -s conftest.err
22041 } && test -s conftest$ac_exeext &&
22042 $as_test_x conftest$ac_exeext; then
22043 ac_cv_func_getaddrinfo=yes
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_cv_func_getaddrinfo=no
22051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22052 conftest$ac_exeext conftest.$ac_ext
22054 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
22055 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
22058 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22059 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22060 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 ac_check_lib_save_LIBS=$LIBS
22064 LIBS="-lcrypt $LIBS"
22065 cat >conftest.$ac_ext <<_ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22072 /* Override any GCC internal prototype to avoid an error.
22073 Use char because int might match the return type of a GCC
22074 builtin and then its argument prototype would still apply. */
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_link") 2>conftest.er1
22096 grep -v '^ *+' conftest.er1 >conftest.err
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } && {
22101 test -z "$ac_c_werror_flag" ||
22102 test ! -s conftest.err
22103 } && test -s conftest$ac_exeext &&
22104 $as_test_x conftest$ac_exeext; then
22105 ac_cv_lib_crypt_crypt=yes
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 ac_cv_lib_crypt_crypt=no
22113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22114 conftest$ac_exeext conftest.$ac_ext
22115 LIBS=$ac_check_lib_save_LIBS
22117 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22118 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22119 if test $ac_cv_lib_crypt_crypt = yes; then
22123 if test "$enable_nfsv4" = yes; then
22124 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22125 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22126 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 ac_check_lib_save_LIBS=$LIBS
22130 LIBS="-levent $LIBS"
22131 cat >conftest.$ac_ext <<_ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22138 /* Override any GCC internal prototype to avoid an error.
22139 Use char because int might match the return type of a GCC
22140 builtin and then its argument prototype would still apply. */
22144 char event_dispatch ();
22148 return event_dispatch ();
22153 rm -f conftest.$ac_objext conftest$ac_exeext
22154 if { (ac_try="$ac_link"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_link") 2>conftest.er1
22162 grep -v '^ *+' conftest.er1 >conftest.err
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } && {
22167 test -z "$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22169 } && test -s conftest$ac_exeext &&
22170 $as_test_x conftest$ac_exeext; then
22171 ac_cv_lib_event_event_dispatch=yes
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 ac_cv_lib_event_event_dispatch=no
22179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22180 conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22183 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22184 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22185 if test $ac_cv_lib_event_event_dispatch = yes; then
22188 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22189 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22190 { (exit 1); exit 1; }; }
22193 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22194 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22195 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 ac_check_lib_save_LIBS=$LIBS
22199 LIBS="-lnfsidmap $LIBS"
22200 cat >conftest.$ac_ext <<_ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22207 /* Override any GCC internal prototype to avoid an error.
22208 Use char because int might match the return type of a GCC
22209 builtin and then its argument prototype would still apply. */
22213 char nfs4_init_name_mapping ();
22217 return nfs4_init_name_mapping ();
22222 rm -f conftest.$ac_objext conftest$ac_exeext
22223 if { (ac_try="$ac_link"
22224 case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229 (eval "$ac_link") 2>conftest.er1
22231 grep -v '^ *+' conftest.er1 >conftest.err
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } && {
22236 test -z "$ac_c_werror_flag" ||
22237 test ! -s conftest.err
22238 } && test -s conftest$ac_exeext &&
22239 $as_test_x conftest$ac_exeext; then
22240 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22249 conftest$ac_exeext conftest.$ac_ext
22250 LIBS=$ac_check_lib_save_LIBS
22252 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22253 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22254 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22257 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22258 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22259 { (exit 1); exit 1; }; }
22263 for ac_header in event.h
22265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22272 ac_res=`eval echo '${'$as_ac_Header'}'`
22273 { echo "$as_me:$LINENO: result: $ac_res" >&5
22274 echo "${ECHO_T}$ac_res" >&6; }
22276 # Is the header compilable?
22277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22279 cat >conftest.$ac_ext <<_ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22285 $ac_includes_default
22286 #include <$ac_header>
22288 rm -f conftest.$ac_objext
22289 if { (ac_try="$ac_compile"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_compile") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest.$ac_objext; then
22305 ac_header_compiler=yes
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22310 ac_header_compiler=no
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22315 echo "${ECHO_T}$ac_header_compiler" >&6; }
22317 # Is the header present?
22318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22320 cat >conftest.$ac_ext <<_ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22326 #include <$ac_header>
22328 if { (ac_try="$ac_cpp conftest.$ac_ext"
22329 case "(($ac_try" in
22330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331 *) ac_try_echo=$ac_try;;
22333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22336 grep -v '^ *+' conftest.er1 >conftest.err
22338 cat conftest.err >&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } >/dev/null && {
22341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22342 test ! -s conftest.err
22344 ac_header_preproc=yes
22346 echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22349 ac_header_preproc=no
22352 rm -f conftest.err conftest.$ac_ext
22353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22354 echo "${ECHO_T}$ac_header_preproc" >&6; }
22356 # So? What about this header?
22357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22363 ac_header_preproc=yes
22366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22379 ## ---------------------------------------- ##
22380 ## Report this to linux-nfs@vger.kernel.org ##
22381 ## ---------------------------------------- ##
22383 ) | sed "s/^/$as_me: WARNING: /" >&2
22386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 eval "$as_ac_Header=\$ac_header_preproc"
22393 ac_res=`eval echo '${'$as_ac_Header'}'`
22394 { echo "$as_me:$LINENO: result: $ac_res" >&5
22395 echo "${ECHO_T}$ac_res" >&6; }
22398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22399 cat >>confdefs.h <<_ACEOF
22400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22404 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22405 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22406 { (exit 1); exit 1; }; }
22412 for ac_header in nfsidmap.h
22414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22421 ac_res=`eval echo '${'$as_ac_Header'}'`
22422 { echo "$as_me:$LINENO: result: $ac_res" >&5
22423 echo "${ECHO_T}$ac_res" >&6; }
22425 # Is the header compilable?
22426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22434 $ac_includes_default
22435 #include <$ac_header>
22437 rm -f conftest.$ac_objext
22438 if { (ac_try="$ac_compile"
22439 case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444 (eval "$ac_compile") 2>conftest.er1
22446 grep -v '^ *+' conftest.er1 >conftest.err
22448 cat conftest.err >&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } && {
22451 test -z "$ac_c_werror_flag" ||
22452 test ! -s conftest.err
22453 } && test -s conftest.$ac_objext; then
22454 ac_header_compiler=yes
22456 echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22459 ac_header_compiler=no
22462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22464 echo "${ECHO_T}$ac_header_compiler" >&6; }
22466 # Is the header present?
22467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 #include <$ac_header>
22477 if { (ac_try="$ac_cpp conftest.$ac_ext"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } >/dev/null && {
22490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22493 ac_header_preproc=yes
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22498 ac_header_preproc=no
22501 rm -f conftest.err conftest.$ac_ext
22502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22503 echo "${ECHO_T}$ac_header_preproc" >&6; }
22505 # So? What about this header?
22506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22512 ac_header_preproc=yes
22515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22528 ## ---------------------------------------- ##
22529 ## Report this to linux-nfs@vger.kernel.org ##
22530 ## ---------------------------------------- ##
22532 ) | sed "s/^/$as_me: WARNING: /" >&2
22535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22540 eval "$as_ac_Header=\$ac_header_preproc"
22542 ac_res=`eval echo '${'$as_ac_Header'}'`
22543 { echo "$as_me:$LINENO: result: $ac_res" >&5
22544 echo "${ECHO_T}$ac_res" >&6; }
22547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22548 cat >>confdefs.h <<_ACEOF
22549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22553 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22554 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22555 { (exit 1); exit 1; }; }
22560 if test "$enable_gss" = yes; then
22563 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22564 if test -n "$ac_tool_prefix"; then
22565 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22566 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 case $PKG_CONFIG in
22574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22578 for as_dir in $PATH
22581 test -z "$as_dir" && as_dir=.
22582 for ac_exec_ext in '' $ac_executable_extensions; do
22583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22595 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22596 if test -n "$PKG_CONFIG"; then
22597 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22598 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22600 { echo "$as_me:$LINENO: result: no" >&5
22601 echo "${ECHO_T}no" >&6; }
22606 if test -z "$ac_cv_path_PKG_CONFIG"; then
22607 ac_pt_PKG_CONFIG=$PKG_CONFIG
22608 # Extract the first word of "pkg-config", so it can be a program name with args.
22609 set dummy pkg-config; ac_word=$2
22610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22612 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22615 case $ac_pt_PKG_CONFIG in
22617 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22624 test -z "$as_dir" && as_dir=.
22625 for ac_exec_ext in '' $ac_executable_extensions; do
22626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22627 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22638 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22639 if test -n "$ac_pt_PKG_CONFIG"; then
22640 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22641 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22643 { echo "$as_me:$LINENO: result: no" >&5
22644 echo "${ECHO_T}no" >&6; }
22647 if test "x$ac_pt_PKG_CONFIG" = x; then
22650 case $cross_compiling:$ac_tool_warned in
22652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22653 whose name does not start with the host triplet. If you think this
22654 configuration is useful to you, please write to autoconf@gnu.org." >&5
22655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22656 whose name does not start with the host triplet. If you think this
22657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22658 ac_tool_warned=yes ;;
22660 PKG_CONFIG=$ac_pt_PKG_CONFIG
22663 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22667 if test -n "$PKG_CONFIG"; then
22668 _pkg_min_version=0.9.0
22669 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22670 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22671 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22672 { echo "$as_me:$LINENO: result: yes" >&5
22673 echo "${ECHO_T}yes" >&6; }
22675 { echo "$as_me:$LINENO: result: no" >&5
22676 echo "${ECHO_T}no" >&6; }
22683 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22684 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22686 if test -n "$RPCSECGSS_CFLAGS"; then
22687 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22688 elif test -n "$PKG_CONFIG"; then
22689 if test -n "$PKG_CONFIG" && \
22690 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22691 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; then
22695 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22702 if test -n "$RPCSECGSS_LIBS"; then
22703 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22704 elif test -n "$PKG_CONFIG"; then
22705 if test -n "$PKG_CONFIG" && \
22706 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22707 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); }; then
22711 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22721 if test $pkg_failed = yes; then
22723 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22724 _pkg_short_errors_supported=yes
22726 _pkg_short_errors_supported=no
22728 if test $_pkg_short_errors_supported = yes; then
22729 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
22731 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
22733 # Put the nasty error message in config.log where it belongs
22734 echo "$RPCSECGSS_PKG_ERRORS" >&5
22736 { echo "$as_me:$LINENO: result: no" >&5
22737 echo "${ECHO_T}no" >&6; }
22738 { { 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
22739 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;}
22740 { (exit 1); exit 1; }; }
22743 elif test $pkg_failed = untried; then
22744 { { 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
22745 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;}
22746 { (exit 1); exit 1; }; }
22750 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22751 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22752 { echo "$as_me:$LINENO: result: yes" >&5
22753 echo "${ECHO_T}yes" >&6; }
22758 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22759 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22761 if test -n "$GSSGLUE_CFLAGS"; then
22762 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22763 elif test -n "$PKG_CONFIG"; then
22764 if test -n "$PKG_CONFIG" && \
22765 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22766 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; then
22770 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22777 if test -n "$GSSGLUE_LIBS"; then
22778 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22779 elif test -n "$PKG_CONFIG"; then
22780 if test -n "$PKG_CONFIG" && \
22781 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22782 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; then
22786 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22796 if test $pkg_failed = yes; then
22798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22799 _pkg_short_errors_supported=yes
22801 _pkg_short_errors_supported=no
22803 if test $_pkg_short_errors_supported = yes; then
22804 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
22806 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
22808 # Put the nasty error message in config.log where it belongs
22809 echo "$GSSGLUE_PKG_ERRORS" >&5
22811 { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22813 $GSSGLUE_PKG_ERRORS
22815 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22816 installed software in a non-standard prefix.
22818 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22819 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22820 See the pkg-config man page for more details.
22822 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22824 $GSSGLUE_PKG_ERRORS
22826 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22827 installed software in a non-standard prefix.
22829 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22830 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22831 See the pkg-config man page for more details.
22833 { (exit 1); exit 1; }; }
22834 elif test $pkg_failed = untried; then
22835 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22836 is in your PATH or set the PKG_CONFIG environment variable to the full
22837 path to pkg-config.
22839 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22840 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22841 See the pkg-config man page for more details.
22843 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22844 See \`config.log' for more details." >&5
22845 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22846 is in your PATH or set the PKG_CONFIG environment variable to the full
22847 path to pkg-config.
22849 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22850 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22851 See the pkg-config man page for more details.
22853 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22854 See \`config.log' for more details." >&2;}
22855 { (exit 1); exit 1; }; }
22857 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22858 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22859 { echo "$as_me:$LINENO: result: yes" >&5
22860 echo "${ECHO_T}yes" >&6; }
22866 if test "$knfsd_cv_glibc2" = no; then
22867 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22868 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22869 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22872 ac_check_lib_save_LIBS=$LIBS
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22881 /* Override any GCC internal prototype to avoid an error.
22882 Use char because int might match the return type of a GCC
22883 builtin and then its argument prototype would still apply. */
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (ac_try="$ac_link"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_link") 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest$ac_exeext &&
22913 $as_test_x conftest$ac_exeext; then
22914 ac_cv_lib_bsd_daemon=yes
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22919 ac_cv_lib_bsd_daemon=no
22922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22923 conftest$ac_exeext conftest.$ac_ext
22924 LIBS=$ac_check_lib_save_LIBS
22926 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22927 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22928 if test $ac_cv_lib_bsd_daemon = yes; then
22934 if test "$choose_blkid" != no; then
22935 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22936 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22937 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 ac_check_lib_save_LIBS=$LIBS
22941 LIBS="-lblkid $LIBS"
22942 cat >conftest.$ac_ext <<_ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22949 /* Override any GCC internal prototype to avoid an error.
22950 Use char because int might match the return type of a GCC
22951 builtin and then its argument prototype would still apply. */
22955 char blkid_get_library_version ();
22959 return blkid_get_library_version ();
22964 rm -f conftest.$ac_objext conftest$ac_exeext
22965 if { (ac_try="$ac_link"
22966 case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_link") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest$ac_exeext &&
22981 $as_test_x conftest$ac_exeext; then
22982 ac_cv_lib_blkid_blkid_get_library_version=yes
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_cv_lib_blkid_blkid_get_library_version=no
22990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22991 conftest$ac_exeext conftest.$ac_ext
22992 LIBS=$ac_check_lib_save_LIBS
22994 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22995 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22996 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22999 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
23000 echo "$as_me: error: libblkid needed" >&2;}
23001 { (exit 1); exit 1; }; }
23004 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23005 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23006 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23007 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23008 echo $ECHO_N "(cached) $ECHO_C" >&6
23010 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23011 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23013 # Is the header compilable?
23014 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
23015 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
23016 cat >conftest.$ac_ext <<_ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h. */
23022 $ac_includes_default
23023 #include <blkid/blkid.h>
23025 rm -f conftest.$ac_objext
23026 if { (ac_try="$ac_compile"
23027 case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_compile") 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } && {
23039 test -z "$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23041 } && test -s conftest.$ac_objext; then
23042 ac_header_compiler=yes
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23047 ac_header_compiler=no
23050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23052 echo "${ECHO_T}$ac_header_compiler" >&6; }
23054 # Is the header present?
23055 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23056 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23057 cat >conftest.$ac_ext <<_ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23063 #include <blkid/blkid.h>
23065 if { (ac_try="$ac_cpp conftest.$ac_ext"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } >/dev/null && {
23078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23081 ac_header_preproc=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_header_preproc=no
23089 rm -f conftest.err conftest.$ac_ext
23090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23091 echo "${ECHO_T}$ac_header_preproc" >&6; }
23093 # So? What about this header?
23094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23096 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23097 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23098 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23099 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23100 ac_header_preproc=yes
23103 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23104 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23105 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
23106 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
23107 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23108 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23109 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
23110 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23111 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23112 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23114 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23116 ## ---------------------------------------- ##
23117 ## Report this to linux-nfs@vger.kernel.org ##
23118 ## ---------------------------------------- ##
23120 ) | sed "s/^/$as_me: WARNING: /" >&2
23123 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23124 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23125 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
23128 ac_cv_header_blkid_blkid_h=$ac_header_preproc
23130 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23131 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23134 if test $ac_cv_header_blkid_blkid_h = yes; then
23137 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23138 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23139 { (exit 1); exit 1; }; }
23144 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23145 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23146 if test "${libblkid_is_recent+set}" = set; then
23147 echo $ECHO_N "(cached) $ECHO_C" >&6
23152 if test "$cross_compiling" = yes; then
23153 libblkid_is_recent=unknown
23155 cat >conftest.$ac_ext <<_ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23162 #include <blkid/blkid.h>
23165 int vers = blkid_get_library_version(0, 0);
23166 return vers >= 140 ? 0 : 1;
23170 rm -f conftest$ac_exeext
23171 if { (ac_try="$ac_link"
23172 case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23177 (eval "$ac_link") 2>&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23181 { (case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_try") 2>&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 libblkid_is_recent=yes
23192 echo "$as_me: program exited with status $ac_status" >&5
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ( exit $ac_status )
23197 libblkid_is_recent=no
23199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23206 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23207 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23209 if test $choose_blkid = yes; then
23211 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23212 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23214 if test $libblkid_is_recent = yes
23217 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23218 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23222 cat >>confdefs.h <<_ACEOF
23223 #define USE_BLKID $use_blkid
23232 if test "$enable_gss" = yes; then
23234 for ac_header in nfsidmap.h
23236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 ac_res=`eval echo '${'$as_ac_Header'}'`
23244 { echo "$as_me:$LINENO: result: $ac_res" >&5
23245 echo "${ECHO_T}$ac_res" >&6; }
23247 # Is the header compilable?
23248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23250 cat >conftest.$ac_ext <<_ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 $ac_includes_default
23257 #include <$ac_header>
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_compile") 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } && {
23273 test -z "$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 } && test -s conftest.$ac_objext; then
23276 ac_header_compiler=yes
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ac_header_compiler=no
23284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23286 echo "${ECHO_T}$ac_header_compiler" >&6; }
23288 # Is the header present?
23289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23291 cat >conftest.$ac_ext <<_ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23297 #include <$ac_header>
23299 if { (ac_try="$ac_cpp conftest.$ac_ext"
23300 case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23307 grep -v '^ *+' conftest.er1 >conftest.err
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } >/dev/null && {
23312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23313 test ! -s conftest.err
23315 ac_header_preproc=yes
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23320 ac_header_preproc=no
23323 rm -f conftest.err conftest.$ac_ext
23324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23325 echo "${ECHO_T}$ac_header_preproc" >&6; }
23327 # So? What about this header?
23328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23334 ac_header_preproc=yes
23337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23350 ## ---------------------------------------- ##
23351 ## Report this to linux-nfs@vger.kernel.org ##
23352 ## ---------------------------------------- ##
23354 ) | sed "s/^/$as_me: WARNING: /" >&2
23357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23360 echo $ECHO_N "(cached) $ECHO_C" >&6
23362 eval "$as_ac_Header=\$ac_header_preproc"
23364 ac_res=`eval echo '${'$as_ac_Header'}'`
23365 { echo "$as_me:$LINENO: result: $ac_res" >&5
23366 echo "${ECHO_T}$ac_res" >&6; }
23369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23370 cat >>confdefs.h <<_ACEOF
23371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23375 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23376 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23377 { (exit 1); exit 1; }; }
23383 for ac_header in spkm3.h
23385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23392 ac_res=`eval echo '${'$as_ac_Header'}'`
23393 { echo "$as_me:$LINENO: result: $ac_res" >&5
23394 echo "${ECHO_T}$ac_res" >&6; }
23396 # Is the header compilable?
23397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23399 cat >conftest.$ac_ext <<_ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 $ac_includes_default
23406 #include <$ac_header>
23408 rm -f conftest.$ac_objext
23409 if { (ac_try="$ac_compile"
23410 case "(($ac_try" in
23411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412 *) ac_try_echo=$ac_try;;
23414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23415 (eval "$ac_compile") 2>conftest.er1
23417 grep -v '^ *+' conftest.er1 >conftest.err
23419 cat conftest.err >&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } && {
23422 test -z "$ac_c_werror_flag" ||
23423 test ! -s conftest.err
23424 } && test -s conftest.$ac_objext; then
23425 ac_header_compiler=yes
23427 echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23430 ac_header_compiler=no
23433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23435 echo "${ECHO_T}$ac_header_compiler" >&6; }
23437 # Is the header present?
23438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23440 cat >conftest.$ac_ext <<_ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23446 #include <$ac_header>
23448 if { (ac_try="$ac_cpp conftest.$ac_ext"
23449 case "(($ac_try" in
23450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451 *) ac_try_echo=$ac_try;;
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23456 grep -v '^ *+' conftest.er1 >conftest.err
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } >/dev/null && {
23461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23464 ac_header_preproc=yes
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469 ac_header_preproc=no
23472 rm -f conftest.err conftest.$ac_ext
23473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23474 echo "${ECHO_T}$ac_header_preproc" >&6; }
23476 # So? What about this header?
23477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23483 ac_header_preproc=yes
23486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23499 ## ---------------------------------------- ##
23500 ## Report this to linux-nfs@vger.kernel.org ##
23501 ## ---------------------------------------- ##
23503 ) | sed "s/^/$as_me: WARNING: /" >&2
23506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23511 eval "$as_ac_Header=\$ac_header_preproc"
23513 ac_res=`eval echo '${'$as_ac_Header'}'`
23514 { echo "$as_me:$LINENO: result: $ac_res" >&5
23515 echo "${ECHO_T}$ac_res" >&6; }
23518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23519 cat >>confdefs.h <<_ACEOF
23520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23524 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23525 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23530 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23531 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23532 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23533 echo $ECHO_N "(cached) $ECHO_C" >&6
23535 ac_check_lib_save_LIBS=$LIBS
23536 LIBS="-lnfsidmap $LIBS"
23537 cat >conftest.$ac_ext <<_ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23544 /* Override any GCC internal prototype to avoid an error.
23545 Use char because int might match the return type of a GCC
23546 builtin and then its argument prototype would still apply. */
23550 char nfs4_set_debug ();
23554 return nfs4_set_debug ();
23559 rm -f conftest.$ac_objext conftest$ac_exeext
23560 if { (ac_try="$ac_link"
23561 case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566 (eval "$ac_link") 2>conftest.er1
23568 grep -v '^ *+' conftest.er1 >conftest.err
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest$ac_exeext &&
23576 $as_test_x conftest$ac_exeext; then
23577 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23579 echo "$as_me: failed program was:" >&5
23580 sed 's/^/| /' conftest.$ac_ext >&5
23582 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23586 conftest$ac_exeext conftest.$ac_ext
23587 LIBS=$ac_check_lib_save_LIBS
23589 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23590 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23591 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23593 cat >>confdefs.h <<\_ACEOF
23594 #define HAVE_NFS4_SET_DEBUG 1
23601 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23602 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23604 # Check whether --with-krb5 was given.
23605 if test "${with_krb5+set}" = set; then
23606 withval=$with_krb5; case "$withval" in
23611 krb5_with="$withval"
23618 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23619 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23621 if test -f $dir/bin/krb5-config; then
23622 K5CONFIG=$dir/bin/krb5-config
23623 elif test -f "/usr/kerberos/bin/krb5-config"; then
23624 K5CONFIG="/usr/kerberos/bin/krb5-config"
23625 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23626 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23628 if test "$K5CONFIG" != ""; then
23629 KRBCFLAGS=`$K5CONFIG --cflags`
23630 KRBLIBS=`$K5CONFIG --libs gssapi`
23631 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23633 cat >>confdefs.h <<_ACEOF
23634 #define KRB5_VERSION $K5VERS
23637 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23638 \( -f $dir/lib/libgssapi_krb5.a -o \
23639 -f $dir/lib64/libgssapi_krb5.a -o \
23640 -f $dir/lib64/libgssapi_krb5.so -o \
23641 -f $dir/lib/libgssapi_krb5.so \) ; then
23643 cat >>confdefs.h <<\_ACEOF
23644 #define HAVE_KRB5 1
23648 if test $K5VERS -le 131; then
23650 cat >>confdefs.h <<\_ACEOF
23651 #define USE_GSS_KRB5_CCACHE_NAME 1
23655 gssapi_lib=gssapi_krb5
23657 elif test \( -f $dir/include/heim_err.h -o\
23658 -f $dir/include/heimdal/heim_err.h \) -a \
23659 -f $dir/lib/libroken.a; then
23661 cat >>confdefs.h <<\_ACEOF
23662 #define HAVE_HEIMDAL 1
23671 if test "x$KRBDIR" = "x"; then
23672 if test "x$krb5_with" = "x"; then
23673 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23674 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23675 { (exit 1); exit 1; }; }
23677 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23678 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23679 { (exit 1); exit 1; }; }
23682 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23683 echo "${ECHO_T}$KRBDIR" >&6; }
23685 echo "The current KRBDIR is $KRBDIR"
23686 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23687 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23689 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23692 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23695 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23696 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23697 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23698 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 ac_check_lib_save_LIBS=$LIBS
23702 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23703 cat >conftest.$ac_ext <<_ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23710 /* Override any GCC internal prototype to avoid an error.
23711 Use char because int might match the return type of a GCC
23712 builtin and then its argument prototype would still apply. */
23716 char gss_krb5_export_lucid_sec_context ();
23720 return gss_krb5_export_lucid_sec_context ();
23725 rm -f conftest.$ac_objext conftest$ac_exeext
23726 if { (ac_try="$ac_link"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732 (eval "$ac_link") 2>conftest.er1
23734 grep -v '^ *+' conftest.er1 >conftest.err
23736 cat conftest.err >&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } && {
23739 test -z "$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23741 } && test -s conftest$ac_exeext &&
23742 $as_test_x conftest$ac_exeext; then
23743 eval "$as_ac_Lib=yes"
23745 echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23748 eval "$as_ac_Lib=no"
23751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23752 conftest$ac_exeext conftest.$ac_ext
23753 LIBS=$ac_check_lib_save_LIBS
23755 ac_res=`eval echo '${'$as_ac_Lib'}'`
23756 { echo "$as_me:$LINENO: result: $ac_res" >&5
23757 echo "${ECHO_T}$ac_res" >&6; }
23758 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23760 cat >>confdefs.h <<\_ACEOF
23761 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23766 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23767 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23768 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23769 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23772 ac_check_lib_save_LIBS=$LIBS
23773 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23781 /* Override any GCC internal prototype to avoid an error.
23782 Use char because int might match the return type of a GCC
23783 builtin and then its argument prototype would still apply. */
23787 char gss_krb5_set_allowable_enctypes ();
23791 return gss_krb5_set_allowable_enctypes ();
23796 rm -f conftest.$ac_objext conftest$ac_exeext
23797 if { (ac_try="$ac_link"
23798 case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803 (eval "$ac_link") 2>conftest.er1
23805 grep -v '^ *+' conftest.er1 >conftest.err
23807 cat conftest.err >&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } && {
23810 test -z "$ac_c_werror_flag" ||
23811 test ! -s conftest.err
23812 } && test -s conftest$ac_exeext &&
23813 $as_test_x conftest$ac_exeext; then
23814 eval "$as_ac_Lib=yes"
23816 echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23819 eval "$as_ac_Lib=no"
23822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23823 conftest$ac_exeext conftest.$ac_ext
23824 LIBS=$ac_check_lib_save_LIBS
23826 ac_res=`eval echo '${'$as_ac_Lib'}'`
23827 { echo "$as_me:$LINENO: result: $ac_res" >&5
23828 echo "${ECHO_T}$ac_res" >&6; }
23829 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23831 cat >>confdefs.h <<\_ACEOF
23832 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23837 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23838 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23839 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23840 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23841 echo $ECHO_N "(cached) $ECHO_C" >&6
23843 ac_check_lib_save_LIBS=$LIBS
23844 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23845 cat >conftest.$ac_ext <<_ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23852 /* Override any GCC internal prototype to avoid an error.
23853 Use char because int might match the return type of a GCC
23854 builtin and then its argument prototype would still apply. */
23858 char gss_krb5_ccache_name ();
23862 return gss_krb5_ccache_name ();
23867 rm -f conftest.$ac_objext conftest$ac_exeext
23868 if { (ac_try="$ac_link"
23869 case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874 (eval "$ac_link") 2>conftest.er1
23876 grep -v '^ *+' conftest.er1 >conftest.err
23878 cat conftest.err >&5
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } && {
23881 test -z "$ac_c_werror_flag" ||
23882 test ! -s conftest.err
23883 } && test -s conftest$ac_exeext &&
23884 $as_test_x conftest$ac_exeext; then
23885 eval "$as_ac_Lib=yes"
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 eval "$as_ac_Lib=no"
23893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23894 conftest$ac_exeext conftest.$ac_ext
23895 LIBS=$ac_check_lib_save_LIBS
23897 ac_res=`eval echo '${'$as_ac_Lib'}'`
23898 { echo "$as_me:$LINENO: result: $ac_res" >&5
23899 echo "${ECHO_T}$ac_res" >&6; }
23900 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23902 cat >>confdefs.h <<\_ACEOF
23903 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23909 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23910 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23911 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23912 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23913 echo $ECHO_N "(cached) $ECHO_C" >&6
23915 ac_check_lib_save_LIBS=$LIBS
23916 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23917 cat >conftest.$ac_ext <<_ACEOF
23920 cat confdefs.h >>conftest.$ac_ext
23921 cat >>conftest.$ac_ext <<_ACEOF
23922 /* end confdefs.h. */
23924 /* Override any GCC internal prototype to avoid an error.
23925 Use char because int might match the return type of a GCC
23926 builtin and then its argument prototype would still apply. */
23930 char krb5_get_error_message ();
23934 return krb5_get_error_message ();
23939 rm -f conftest.$ac_objext conftest$ac_exeext
23940 if { (ac_try="$ac_link"
23941 case "(($ac_try" in
23942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_link") 2>conftest.er1
23948 grep -v '^ *+' conftest.er1 >conftest.err
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } && {
23953 test -z "$ac_c_werror_flag" ||
23954 test ! -s conftest.err
23955 } && test -s conftest$ac_exeext &&
23956 $as_test_x conftest$ac_exeext; then
23957 eval "$as_ac_Lib=yes"
23959 echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23962 eval "$as_ac_Lib=no"
23965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23966 conftest$ac_exeext conftest.$ac_ext
23967 LIBS=$ac_check_lib_save_LIBS
23969 ac_res=`eval echo '${'$as_ac_Lib'}'`
23970 { echo "$as_me:$LINENO: result: $ac_res" >&5
23971 echo "${ECHO_T}$ac_res" >&6; }
23972 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23974 cat >>confdefs.h <<\_ACEOF
23975 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23981 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23982 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23983 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23984 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23987 ac_check_lib_save_LIBS=$LIBS
23988 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23989 cat >conftest.$ac_ext <<_ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23996 /* Override any GCC internal prototype to avoid an error.
23997 Use char because int might match the return type of a GCC
23998 builtin and then its argument prototype would still apply. */
24002 char krb5_get_init_creds_opt_set_addressless ();
24006 return krb5_get_init_creds_opt_set_addressless ();
24011 rm -f conftest.$ac_objext conftest$ac_exeext
24012 if { (ac_try="$ac_link"
24013 case "(($ac_try" in
24014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24015 *) ac_try_echo=$ac_try;;
24017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24018 (eval "$ac_link") 2>conftest.er1
24020 grep -v '^ *+' conftest.er1 >conftest.err
24022 cat conftest.err >&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } && {
24025 test -z "$ac_c_werror_flag" ||
24026 test ! -s conftest.err
24027 } && test -s conftest$ac_exeext &&
24028 $as_test_x conftest$ac_exeext; then
24029 eval "$as_ac_Lib=yes"
24031 echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24034 eval "$as_ac_Lib=no"
24037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24038 conftest$ac_exeext conftest.$ac_ext
24039 LIBS=$ac_check_lib_save_LIBS
24041 ac_res=`eval echo '${'$as_ac_Lib'}'`
24042 { echo "$as_me:$LINENO: result: $ac_res" >&5
24043 echo "${ECHO_T}$ac_res" >&6; }
24044 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24046 cat >>confdefs.h <<\_ACEOF
24047 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24053 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24054 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24055 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24066 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24067 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24068 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24069 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 ac_check_lib_save_LIBS=$LIBS
24072 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24073 cat >conftest.$ac_ext <<_ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24080 /* Override any GCC internal prototype to avoid an error.
24081 Use char because int might match the return type of a GCC
24082 builtin and then its argument prototype would still apply. */
24086 char authgss_create_default ();
24090 return authgss_create_default ();
24095 rm -f conftest.$ac_objext conftest$ac_exeext
24096 if { (ac_try="$ac_link"
24097 case "(($ac_try" in
24098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099 *) ac_try_echo=$ac_try;;
24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24102 (eval "$ac_link") 2>conftest.er1
24104 grep -v '^ *+' conftest.er1 >conftest.err
24106 cat conftest.err >&5
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); } && {
24109 test -z "$ac_c_werror_flag" ||
24110 test ! -s conftest.err
24111 } && test -s conftest$ac_exeext &&
24112 $as_test_x conftest$ac_exeext; then
24113 ac_cv_lib_rpcsecgss_authgss_create_default=yes
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ac_cv_lib_rpcsecgss_authgss_create_default=no
24121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24122 conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24125 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24126 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24127 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24130 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24131 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24132 { (exit 1); exit 1; }; }
24135 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24136 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24137 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24138 echo $ECHO_N "(cached) $ECHO_C" >&6
24140 ac_check_lib_save_LIBS=$LIBS
24141 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24142 cat >conftest.$ac_ext <<_ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24149 /* Override any GCC internal prototype to avoid an error.
24150 Use char because int might match the return type of a GCC
24151 builtin and then its argument prototype would still apply. */
24155 char authgss_set_debug_level ();
24159 return authgss_set_debug_level ();
24164 rm -f conftest.$ac_objext conftest$ac_exeext
24165 if { (ac_try="$ac_link"
24166 case "(($ac_try" in
24167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168 *) ac_try_echo=$ac_try;;
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171 (eval "$ac_link") 2>conftest.er1
24173 grep -v '^ *+' conftest.er1 >conftest.err
24175 cat conftest.err >&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); } && {
24178 test -z "$ac_c_werror_flag" ||
24179 test ! -s conftest.err
24180 } && test -s conftest$ac_exeext &&
24181 $as_test_x conftest$ac_exeext; then
24182 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24184 echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24191 conftest$ac_exeext conftest.$ac_ext
24192 LIBS=$ac_check_lib_save_LIBS
24194 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24195 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24196 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24207 if test "$enable_ipv6" = yes; then
24208 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
24209 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
24210 if test "${ac_cv_func_inet_ntop+set}" = set; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24213 cat >conftest.$ac_ext <<_ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24219 /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
24220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24221 #define inet_ntop innocuous_inet_ntop
24223 /* System header to define __stub macros and hopefully few prototypes,
24224 which can conflict with char inet_ntop (); below.
24225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24226 <limits.h> exists even on freestanding compilers. */
24229 # include <limits.h>
24231 # include <assert.h>
24236 /* Override any GCC internal prototype to avoid an error.
24237 Use char because int might match the return type of a GCC
24238 builtin and then its argument prototype would still apply. */
24243 /* The GNU C library defines this for functions which it implements
24244 to always fail with ENOSYS. Some functions are actually named
24245 something starting with __ and the normal name is an alias. */
24246 #if defined __stub_inet_ntop || defined __stub___inet_ntop
24253 return inet_ntop ();
24258 rm -f conftest.$ac_objext conftest$ac_exeext
24259 if { (ac_try="$ac_link"
24260 case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265 (eval "$ac_link") 2>conftest.er1
24267 grep -v '^ *+' conftest.er1 >conftest.err
24269 cat conftest.err >&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } && {
24272 test -z "$ac_c_werror_flag" ||
24273 test ! -s conftest.err
24274 } && test -s conftest$ac_exeext &&
24275 $as_test_x conftest$ac_exeext; then
24276 ac_cv_func_inet_ntop=yes
24278 echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24281 ac_cv_func_inet_ntop=no
24284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24285 conftest$ac_exeext conftest.$ac_ext
24287 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
24288 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
24290 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
24291 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
24292 if test "${ac_cv_func_getnameinfo+set}" = set; then
24293 echo $ECHO_N "(cached) $ECHO_C" >&6
24295 cat >conftest.$ac_ext <<_ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
24302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24303 #define getnameinfo innocuous_getnameinfo
24305 /* System header to define __stub macros and hopefully few prototypes,
24306 which can conflict with char getnameinfo (); below.
24307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24308 <limits.h> exists even on freestanding compilers. */
24311 # include <limits.h>
24313 # include <assert.h>
24318 /* Override any GCC internal prototype to avoid an error.
24319 Use char because int might match the return type of a GCC
24320 builtin and then its argument prototype would still apply. */
24324 char getnameinfo ();
24325 /* The GNU C library defines this for functions which it implements
24326 to always fail with ENOSYS. Some functions are actually named
24327 something starting with __ and the normal name is an alias. */
24328 #if defined __stub_getnameinfo || defined __stub___getnameinfo
24335 return getnameinfo ();
24340 rm -f conftest.$ac_objext conftest$ac_exeext
24341 if { (ac_try="$ac_link"
24342 case "(($ac_try" in
24343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344 *) ac_try_echo=$ac_try;;
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_link") 2>conftest.er1
24349 grep -v '^ *+' conftest.er1 >conftest.err
24351 cat conftest.err >&5
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); } && {
24354 test -z "$ac_c_werror_flag" ||
24355 test ! -s conftest.err
24356 } && test -s conftest$ac_exeext &&
24357 $as_test_x conftest$ac_exeext; then
24358 ac_cv_func_getnameinfo=yes
24360 echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24363 ac_cv_func_getnameinfo=no
24366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367 conftest$ac_exeext conftest.$ac_ext
24369 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24370 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
24373 { echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
24374 echo $ECHO_N "checking for clnt_tli_create in -ltirpc... $ECHO_C" >&6; }
24375 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
24376 echo $ECHO_N "(cached) $ECHO_C" >&6
24378 ac_check_lib_save_LIBS=$LIBS
24379 LIBS="-ltirpc $LIBS"
24380 cat >conftest.$ac_ext <<_ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h. */
24387 /* Override any GCC internal prototype to avoid an error.
24388 Use char because int might match the return type of a GCC
24389 builtin and then its argument prototype would still apply. */
24393 char clnt_tli_create ();
24397 return clnt_tli_create ();
24402 rm -f conftest.$ac_objext conftest$ac_exeext
24403 if { (ac_try="$ac_link"
24404 case "(($ac_try" in
24405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406 *) ac_try_echo=$ac_try;;
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409 (eval "$ac_link") 2>conftest.er1
24411 grep -v '^ *+' conftest.er1 >conftest.err
24413 cat conftest.err >&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); } && {
24416 test -z "$ac_c_werror_flag" ||
24417 test ! -s conftest.err
24418 } && test -s conftest$ac_exeext &&
24419 $as_test_x conftest$ac_exeext; then
24420 ac_cv_lib_tirpc_clnt_tli_create=yes
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 ac_cv_lib_tirpc_clnt_tli_create=no
24428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24429 conftest$ac_exeext conftest.$ac_ext
24430 LIBS=$ac_check_lib_save_LIBS
24432 { echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
24433 echo "${ECHO_T}$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
24434 if test $ac_cv_lib_tirpc_clnt_tli_create = yes; then
24435 cat >>confdefs.h <<_ACEOF
24436 #define HAVE_LIBTIRPC 1
24439 LIBS="-ltirpc $LIBS"
24442 { { echo "$as_me:$LINENO: error: libtirpc needed for IPv6 support" >&5
24443 echo "$as_me: error: libtirpc needed for IPv6 support" >&2;}
24444 { (exit 1); exit 1; }; }
24448 for ac_header in tirpc/netconfig.h
24450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24455 echo $ECHO_N "(cached) $ECHO_C" >&6
24457 ac_res=`eval echo '${'$as_ac_Header'}'`
24458 { echo "$as_me:$LINENO: result: $ac_res" >&5
24459 echo "${ECHO_T}$ac_res" >&6; }
24461 # Is the header compilable?
24462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24464 cat >conftest.$ac_ext <<_ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h. */
24470 $ac_includes_default
24471 #include <$ac_header>
24473 rm -f conftest.$ac_objext
24474 if { (ac_try="$ac_compile"
24475 case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480 (eval "$ac_compile") 2>conftest.er1
24482 grep -v '^ *+' conftest.er1 >conftest.err
24484 cat conftest.err >&5
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); } && {
24487 test -z "$ac_c_werror_flag" ||
24488 test ! -s conftest.err
24489 } && test -s conftest.$ac_objext; then
24490 ac_header_compiler=yes
24492 echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24495 ac_header_compiler=no
24498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24500 echo "${ECHO_T}$ac_header_compiler" >&6; }
24502 # Is the header present?
24503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24505 cat >conftest.$ac_ext <<_ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h. */
24511 #include <$ac_header>
24513 if { (ac_try="$ac_cpp conftest.$ac_ext"
24514 case "(($ac_try" in
24515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24521 grep -v '^ *+' conftest.er1 >conftest.err
24523 cat conftest.err >&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } >/dev/null && {
24526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24527 test ! -s conftest.err
24529 ac_header_preproc=yes
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24534 ac_header_preproc=no
24537 rm -f conftest.err conftest.$ac_ext
24538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24539 echo "${ECHO_T}$ac_header_preproc" >&6; }
24541 # So? What about this header?
24542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24548 ac_header_preproc=yes
24551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24564 ## ---------------------------------------- ##
24565 ## Report this to linux-nfs@vger.kernel.org ##
24566 ## ---------------------------------------- ##
24568 ) | sed "s/^/$as_me: WARNING: /" >&2
24571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24574 echo $ECHO_N "(cached) $ECHO_C" >&6
24576 eval "$as_ac_Header=\$ac_header_preproc"
24578 ac_res=`eval echo '${'$as_ac_Header'}'`
24579 { echo "$as_me:$LINENO: result: $ac_res" >&5
24580 echo "${ECHO_T}$ac_res" >&6; }
24583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24584 cat >>confdefs.h <<_ACEOF
24585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24589 { { echo "$as_me:$LINENO: error: libtirpc-devel needed for IPv6 support" >&5
24590 echo "$as_me: error: libtirpc-devel needed for IPv6 support" >&2;}
24591 { (exit 1); exit 1; }; }
24622 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24623 malloc.h memory.h netdb.h netinet/in.h paths.h \
24624 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24625 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24626 syslog.h unistd.h com_err.h et/com_err.h \
24627 ifaddrs.h tirpc/netconfig.h
24629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24634 echo $ECHO_N "(cached) $ECHO_C" >&6
24636 ac_res=`eval echo '${'$as_ac_Header'}'`
24637 { echo "$as_me:$LINENO: result: $ac_res" >&5
24638 echo "${ECHO_T}$ac_res" >&6; }
24640 # Is the header compilable?
24641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24643 cat >conftest.$ac_ext <<_ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 $ac_includes_default
24650 #include <$ac_header>
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_compile") 2>conftest.er1
24661 grep -v '^ *+' conftest.er1 >conftest.err
24663 cat conftest.err >&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && {
24666 test -z "$ac_c_werror_flag" ||
24667 test ! -s conftest.err
24668 } && test -s conftest.$ac_objext; then
24669 ac_header_compiler=yes
24671 echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24674 ac_header_compiler=no
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24679 echo "${ECHO_T}$ac_header_compiler" >&6; }
24681 # Is the header present?
24682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24684 cat >conftest.$ac_ext <<_ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24690 #include <$ac_header>
24692 if { (ac_try="$ac_cpp conftest.$ac_ext"
24693 case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24700 grep -v '^ *+' conftest.er1 >conftest.err
24702 cat conftest.err >&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } >/dev/null && {
24705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24706 test ! -s conftest.err
24708 ac_header_preproc=yes
24710 echo "$as_me: failed program was:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24713 ac_header_preproc=no
24716 rm -f conftest.err conftest.$ac_ext
24717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24718 echo "${ECHO_T}$ac_header_preproc" >&6; }
24720 # So? What about this header?
24721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24727 ac_header_preproc=yes
24730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24743 ## ---------------------------------------- ##
24744 ## Report this to linux-nfs@vger.kernel.org ##
24745 ## ---------------------------------------- ##
24747 ) | sed "s/^/$as_me: WARNING: /" >&2
24750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24755 eval "$as_ac_Header=\$ac_header_preproc"
24757 ac_res=`eval echo '${'$as_ac_Header'}'`
24758 { echo "$as_me:$LINENO: result: $ac_res" >&5
24759 echo "${ECHO_T}$ac_res" >&6; }
24762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24763 cat >>confdefs.h <<_ACEOF
24764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24774 if test "${ac_cv_c_const+set}" = set; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24777 cat >conftest.$ac_ext <<_ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h. */
24787 /* FIXME: Include the comments suggested by Paul. */
24788 #ifndef __cplusplus
24789 /* Ultrix mips cc rejects this. */
24790 typedef int charset[2];
24792 /* SunOS 4.1.1 cc rejects this. */
24793 char const *const *pcpcc;
24795 /* NEC SVR4.0.2 mips cc rejects this. */
24796 struct point {int x, y;};
24797 static struct point const zero = {0,0};
24798 /* AIX XL C 1.02.0.0 rejects this.
24799 It does not let you subtract one const X* pointer from another in
24800 an arm of an if-expression whose if-part is not a constant
24802 const char *g = "string";
24803 pcpcc = &g + (g ? g-g : 0);
24804 /* HPUX 7.0 cc rejects these. */
24806 ppc = (char**) pcpcc;
24807 pcpcc = (char const *const *) ppc;
24808 { /* SCO 3.2v4 cc rejects this. */
24810 char const *s = 0 ? (char *) 0 : (char const *) 0;
24815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24816 int x[] = {25, 17};
24817 const int *foo = &x[0];
24820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24821 typedef const int *iptr;
24825 { /* AIX XL C 1.02.0.0 rejects this saying
24826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24827 struct s { int j; const int *ap[3]; };
24828 struct s *b; b->j = 5;
24830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24831 const int foo = 10;
24832 if (!foo) return 0;
24834 return !cs[0] && !zero.x;
24841 rm -f conftest.$ac_objext
24842 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
24860 echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24868 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24869 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24870 if test $ac_cv_c_const = no; then
24872 cat >>confdefs.h <<\_ACEOF
24878 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24879 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24880 if test "${ac_cv_type_uid_t+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 cat >conftest.$ac_ext <<_ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24889 #include <sys/types.h>
24892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24893 $EGREP "uid_t" >/dev/null 2>&1; then
24894 ac_cv_type_uid_t=yes
24896 ac_cv_type_uid_t=no
24901 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24902 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24903 if test $ac_cv_type_uid_t = no; then
24905 cat >>confdefs.h <<\_ACEOF
24910 cat >>confdefs.h <<\_ACEOF
24916 { echo "$as_me:$LINENO: checking for inline" >&5
24917 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24918 if test "${ac_cv_c_inline+set}" = set; then
24919 echo $ECHO_N "(cached) $ECHO_C" >&6
24922 for ac_kw in inline __inline__ __inline; do
24923 cat >conftest.$ac_ext <<_ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h. */
24929 #ifndef __cplusplus
24931 static $ac_kw foo_t static_foo () {return 0; }
24932 $ac_kw foo_t foo () {return 0; }
24936 rm -f conftest.$ac_objext
24937 if { (ac_try="$ac_compile"
24938 case "(($ac_try" in
24939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24940 *) ac_try_echo=$ac_try;;
24942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24943 (eval "$ac_compile") 2>conftest.er1
24945 grep -v '^ *+' conftest.er1 >conftest.err
24947 cat conftest.err >&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } && {
24950 test -z "$ac_c_werror_flag" ||
24951 test ! -s conftest.err
24952 } && test -s conftest.$ac_objext; then
24953 ac_cv_c_inline=$ac_kw
24955 echo "$as_me: failed program was:" >&5
24956 sed 's/^/| /' conftest.$ac_ext >&5
24961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24962 test "$ac_cv_c_inline" != no && break
24966 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24967 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24970 case $ac_cv_c_inline in
24973 case $ac_cv_c_inline in
24975 *) ac_val=$ac_cv_c_inline;;
24977 cat >>confdefs.h <<_ACEOF
24978 #ifndef __cplusplus
24979 #define inline $ac_val
24985 { echo "$as_me:$LINENO: checking for off_t" >&5
24986 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24987 if test "${ac_cv_type_off_t+set}" = set; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 $ac_includes_default
24997 typedef off_t ac__type_new_;
25001 if ((ac__type_new_ *) 0)
25003 if (sizeof (ac__type_new_))
25009 rm -f conftest.$ac_objext
25010 if { (ac_try="$ac_compile"
25011 case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_compile") 2>conftest.er1
25018 grep -v '^ *+' conftest.er1 >conftest.err
25020 cat conftest.err >&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } && {
25023 test -z "$ac_c_werror_flag" ||
25024 test ! -s conftest.err
25025 } && test -s conftest.$ac_objext; then
25026 ac_cv_type_off_t=yes
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25031 ac_cv_type_off_t=no
25034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25036 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25037 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25038 if test $ac_cv_type_off_t = yes; then
25042 cat >>confdefs.h <<_ACEOF
25043 #define off_t long int
25048 { echo "$as_me:$LINENO: checking for pid_t" >&5
25049 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
25050 if test "${ac_cv_type_pid_t+set}" = set; then
25051 echo $ECHO_N "(cached) $ECHO_C" >&6
25053 cat >conftest.$ac_ext <<_ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25059 $ac_includes_default
25060 typedef pid_t ac__type_new_;
25064 if ((ac__type_new_ *) 0)
25066 if (sizeof (ac__type_new_))
25072 rm -f conftest.$ac_objext
25073 if { (ac_try="$ac_compile"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_compile") 2>conftest.er1
25081 grep -v '^ *+' conftest.er1 >conftest.err
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } && {
25086 test -z "$ac_c_werror_flag" ||
25087 test ! -s conftest.err
25088 } && test -s conftest.$ac_objext; then
25089 ac_cv_type_pid_t=yes
25091 echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25094 ac_cv_type_pid_t=no
25097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25099 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25100 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
25101 if test $ac_cv_type_pid_t = yes; then
25105 cat >>confdefs.h <<_ACEOF
25111 { echo "$as_me:$LINENO: checking for size_t" >&5
25112 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
25113 if test "${ac_cv_type_size_t+set}" = set; then
25114 echo $ECHO_N "(cached) $ECHO_C" >&6
25116 cat >conftest.$ac_ext <<_ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25122 $ac_includes_default
25123 typedef size_t ac__type_new_;
25127 if ((ac__type_new_ *) 0)
25129 if (sizeof (ac__type_new_))
25135 rm -f conftest.$ac_objext
25136 if { (ac_try="$ac_compile"
25137 case "(($ac_try" in
25138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139 *) ac_try_echo=$ac_try;;
25141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25142 (eval "$ac_compile") 2>conftest.er1
25144 grep -v '^ *+' conftest.er1 >conftest.err
25146 cat conftest.err >&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); } && {
25149 test -z "$ac_c_werror_flag" ||
25150 test ! -s conftest.err
25151 } && test -s conftest.$ac_objext; then
25152 ac_cv_type_size_t=yes
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25157 ac_cv_type_size_t=no
25160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25163 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25164 if test $ac_cv_type_size_t = yes; then
25168 cat >>confdefs.h <<_ACEOF
25169 #define size_t unsigned int
25174 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25175 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25176 if test "${ac_cv_header_time+set}" = set; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25179 cat >conftest.$ac_ext <<_ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h. */
25185 #include <sys/types.h>
25186 #include <sys/time.h>
25192 if ((struct tm *) 0)
25198 rm -f conftest.$ac_objext
25199 if { (ac_try="$ac_compile"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_compile") 2>conftest.er1
25207 grep -v '^ *+' conftest.er1 >conftest.err
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } && {
25212 test -z "$ac_c_werror_flag" ||
25213 test ! -s conftest.err
25214 } && test -s conftest.$ac_objext; then
25215 ac_cv_header_time=yes
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25220 ac_cv_header_time=no
25223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25225 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25226 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25227 if test $ac_cv_header_time = yes; then
25229 cat >>confdefs.h <<\_ACEOF
25230 #define TIME_WITH_SYS_TIME 1
25235 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25236 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25237 if test "${ac_cv_struct_tm+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 #include <sys/types.h>
25253 int *p = &tm.tm_sec;
25259 rm -f conftest.$ac_objext
25260 if { (ac_try="$ac_compile"
25261 case "(($ac_try" in
25262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263 *) ac_try_echo=$ac_try;;
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266 (eval "$ac_compile") 2>conftest.er1
25268 grep -v '^ *+' conftest.er1 >conftest.err
25270 cat conftest.err >&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); } && {
25273 test -z "$ac_c_werror_flag" ||
25274 test ! -s conftest.err
25275 } && test -s conftest.$ac_objext; then
25276 ac_cv_struct_tm=time.h
25278 echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25281 ac_cv_struct_tm=sys/time.h
25284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25287 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25288 if test $ac_cv_struct_tm = sys/time.h; then
25290 cat >>confdefs.h <<\_ACEOF
25291 #define TM_IN_SYS_TIME 1
25297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25298 # for constant arguments. Useless!
25299 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25300 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25301 if test "${ac_cv_working_alloca_h+set}" = set; then
25302 echo $ECHO_N "(cached) $ECHO_C" >&6
25304 cat >conftest.$ac_ext <<_ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h. */
25310 #include <alloca.h>
25314 char *p = (char *) alloca (2 * sizeof (int));
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324 *) ac_try_echo=$ac_try;;
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327 (eval "$ac_link") 2>conftest.er1
25329 grep -v '^ *+' conftest.er1 >conftest.err
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } && {
25334 test -z "$ac_c_werror_flag" ||
25335 test ! -s conftest.err
25336 } && test -s conftest$ac_exeext &&
25337 $as_test_x conftest$ac_exeext; then
25338 ac_cv_working_alloca_h=yes
25340 echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25343 ac_cv_working_alloca_h=no
25346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25347 conftest$ac_exeext conftest.$ac_ext
25349 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25350 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25351 if test $ac_cv_working_alloca_h = yes; then
25353 cat >>confdefs.h <<\_ACEOF
25354 #define HAVE_ALLOCA_H 1
25359 { echo "$as_me:$LINENO: checking for alloca" >&5
25360 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25361 if test "${ac_cv_func_alloca_works+set}" = set; then
25362 echo $ECHO_N "(cached) $ECHO_C" >&6
25364 cat >conftest.$ac_ext <<_ACEOF
25367 cat confdefs.h >>conftest.$ac_ext
25368 cat >>conftest.$ac_ext <<_ACEOF
25369 /* end confdefs.h. */
25371 # define alloca __builtin_alloca
25374 # include <malloc.h>
25375 # define alloca _alloca
25377 # ifdef HAVE_ALLOCA_H
25378 # include <alloca.h>
25383 # ifndef alloca /* predefined by HP cc +Olibcalls */
25394 char *p = (char *) alloca (1);
25400 rm -f conftest.$ac_objext conftest$ac_exeext
25401 if { (ac_try="$ac_link"
25402 case "(($ac_try" in
25403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404 *) ac_try_echo=$ac_try;;
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407 (eval "$ac_link") 2>conftest.er1
25409 grep -v '^ *+' conftest.er1 >conftest.err
25411 cat conftest.err >&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } && {
25414 test -z "$ac_c_werror_flag" ||
25415 test ! -s conftest.err
25416 } && test -s conftest$ac_exeext &&
25417 $as_test_x conftest$ac_exeext; then
25418 ac_cv_func_alloca_works=yes
25420 echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25423 ac_cv_func_alloca_works=no
25426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25427 conftest$ac_exeext conftest.$ac_ext
25429 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25430 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25432 if test $ac_cv_func_alloca_works = yes; then
25434 cat >>confdefs.h <<\_ACEOF
25435 #define HAVE_ALLOCA 1
25439 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25440 # that cause trouble. Some versions do not even contain alloca or
25441 # contain a buggy version. If you still want to use their alloca,
25442 # use ar to extract alloca.o from them instead of compiling alloca.c.
25444 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25446 cat >>confdefs.h <<\_ACEOF
25451 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25452 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25453 if test "${ac_cv_os_cray+set}" = set; then
25454 echo $ECHO_N "(cached) $ECHO_C" >&6
25456 cat >conftest.$ac_ext <<_ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h. */
25462 #if defined CRAY && ! defined CRAY2
25469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25470 $EGREP "webecray" >/dev/null 2>&1; then
25478 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25479 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25480 if test $ac_cv_os_cray = yes; then
25481 for ac_func in _getb67 GETB67 getb67; do
25482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
25488 cat >conftest.$ac_ext <<_ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25496 #define $ac_func innocuous_$ac_func
25498 /* System header to define __stub macros and hopefully few prototypes,
25499 which can conflict with char $ac_func (); below.
25500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25501 <limits.h> exists even on freestanding compilers. */
25504 # include <limits.h>
25506 # include <assert.h>
25511 /* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply. */
25518 /* The GNU C library defines this for functions which it implements
25519 to always fail with ENOSYS. Some functions are actually named
25520 something starting with __ and the normal name is an alias. */
25521 #if defined __stub_$ac_func || defined __stub___$ac_func
25528 return $ac_func ();
25533 rm -f conftest.$ac_objext conftest$ac_exeext
25534 if { (ac_try="$ac_link"
25535 case "(($ac_try" in
25536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537 *) ac_try_echo=$ac_try;;
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540 (eval "$ac_link") 2>conftest.er1
25542 grep -v '^ *+' conftest.er1 >conftest.err
25544 cat conftest.err >&5
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); } && {
25547 test -z "$ac_c_werror_flag" ||
25548 test ! -s conftest.err
25549 } && test -s conftest$ac_exeext &&
25550 $as_test_x conftest$ac_exeext; then
25551 eval "$as_ac_var=yes"
25553 echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25556 eval "$as_ac_var=no"
25559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25560 conftest$ac_exeext conftest.$ac_ext
25562 ac_res=`eval echo '${'$as_ac_var'}'`
25563 { echo "$as_me:$LINENO: result: $ac_res" >&5
25564 echo "${ECHO_T}$ac_res" >&6; }
25565 if test `eval echo '${'$as_ac_var'}'` = yes; then
25567 cat >>confdefs.h <<_ACEOF
25568 #define CRAY_STACKSEG_END $ac_func
25577 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25578 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25579 if test "${ac_cv_c_stack_direction+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25582 if test "$cross_compiling" = yes; then
25583 ac_cv_c_stack_direction=0
25585 cat >conftest.$ac_ext <<_ACEOF
25588 cat confdefs.h >>conftest.$ac_ext
25589 cat >>conftest.$ac_ext <<_ACEOF
25590 /* end confdefs.h. */
25591 $ac_includes_default
25593 find_stack_direction ()
25595 static char *addr = 0;
25600 return find_stack_direction ();
25603 return (&dummy > addr) ? 1 : -1;
25609 return find_stack_direction () < 0;
25612 rm -f conftest$ac_exeext
25613 if { (ac_try="$ac_link"
25614 case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_link") 2>&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25623 { (case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_try") 2>&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
25632 ac_cv_c_stack_direction=1
25634 echo "$as_me: program exited with status $ac_status" >&5
25635 echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25638 ( exit $ac_status )
25639 ac_cv_c_stack_direction=-1
25641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25646 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25647 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25649 cat >>confdefs.h <<_ACEOF
25650 #define STACK_DIRECTION $ac_cv_c_stack_direction
25661 ac_header_dirent=no
25662 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25663 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25664 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25665 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25667 echo $ECHO_N "(cached) $ECHO_C" >&6
25669 cat >conftest.$ac_ext <<_ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25675 #include <sys/types.h>
25687 rm -f conftest.$ac_objext
25688 if { (ac_try="$ac_compile"
25689 case "(($ac_try" in
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691 *) ac_try_echo=$ac_try;;
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694 (eval "$ac_compile") 2>conftest.er1
25696 grep -v '^ *+' conftest.er1 >conftest.err
25698 cat conftest.err >&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } && {
25701 test -z "$ac_c_werror_flag" ||
25702 test ! -s conftest.err
25703 } && test -s conftest.$ac_objext; then
25704 eval "$as_ac_Header=yes"
25706 echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25709 eval "$as_ac_Header=no"
25712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714 ac_res=`eval echo '${'$as_ac_Header'}'`
25715 { echo "$as_me:$LINENO: result: $ac_res" >&5
25716 echo "${ECHO_T}$ac_res" >&6; }
25717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25718 cat >>confdefs.h <<_ACEOF
25719 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25722 ac_header_dirent=$ac_hdr; break
25726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25727 if test $ac_header_dirent = dirent.h; then
25728 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25729 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25730 if test "${ac_cv_search_opendir+set}" = set; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
25733 ac_func_search_save_LIBS=$LIBS
25734 cat >conftest.$ac_ext <<_ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25741 /* Override any GCC internal prototype to avoid an error.
25742 Use char because int might match the return type of a GCC
25743 builtin and then its argument prototype would still apply. */
25756 for ac_lib in '' dir; do
25757 if test -z "$ac_lib"; then
25758 ac_res="none required"
25761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25763 rm -f conftest.$ac_objext conftest$ac_exeext
25764 if { (ac_try="$ac_link"
25765 case "(($ac_try" in
25766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25767 *) ac_try_echo=$ac_try;;
25769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25770 (eval "$ac_link") 2>conftest.er1
25772 grep -v '^ *+' conftest.er1 >conftest.err
25774 cat conftest.err >&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } && {
25777 test -z "$ac_c_werror_flag" ||
25778 test ! -s conftest.err
25779 } && test -s conftest$ac_exeext &&
25780 $as_test_x conftest$ac_exeext; then
25781 ac_cv_search_opendir=$ac_res
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25791 if test "${ac_cv_search_opendir+set}" = set; then
25795 if test "${ac_cv_search_opendir+set}" = set; then
25798 ac_cv_search_opendir=no
25800 rm conftest.$ac_ext
25801 LIBS=$ac_func_search_save_LIBS
25803 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25804 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25805 ac_res=$ac_cv_search_opendir
25806 if test "$ac_res" != no; then
25807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25812 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25813 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25814 if test "${ac_cv_search_opendir+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25817 ac_func_search_save_LIBS=$LIBS
25818 cat >conftest.$ac_ext <<_ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h. */
25825 /* Override any GCC internal prototype to avoid an error.
25826 Use char because int might match the return type of a GCC
25827 builtin and then its argument prototype would still apply. */
25840 for ac_lib in '' x; do
25841 if test -z "$ac_lib"; then
25842 ac_res="none required"
25845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25847 rm -f conftest.$ac_objext conftest$ac_exeext
25848 if { (ac_try="$ac_link"
25849 case "(($ac_try" in
25850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25851 *) ac_try_echo=$ac_try;;
25853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25854 (eval "$ac_link") 2>conftest.er1
25856 grep -v '^ *+' conftest.er1 >conftest.err
25858 cat conftest.err >&5
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); } && {
25861 test -z "$ac_c_werror_flag" ||
25862 test ! -s conftest.err
25863 } && test -s conftest$ac_exeext &&
25864 $as_test_x conftest$ac_exeext; then
25865 ac_cv_search_opendir=$ac_res
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25875 if test "${ac_cv_search_opendir+set}" = set; then
25879 if test "${ac_cv_search_opendir+set}" = set; then
25882 ac_cv_search_opendir=no
25884 rm conftest.$ac_ext
25885 LIBS=$ac_func_search_save_LIBS
25887 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25888 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25889 ac_res=$ac_cv_search_opendir
25890 if test "$ac_res" != no; then
25891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25897 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25898 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25899 if test "${ac_cv_func_closedir_void+set}" = set; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 if test "$cross_compiling" = yes; then
25903 ac_cv_func_closedir_void=yes
25905 cat >conftest.$ac_ext <<_ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h. */
25911 $ac_includes_default
25912 #include <$ac_header_dirent>
25913 #ifndef __cplusplus
25920 return closedir (opendir (".")) != 0;
25925 rm -f conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929 *) ac_try_echo=$ac_try;;
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932 (eval "$ac_link") 2>&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25936 { (case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_try") 2>&5
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
25945 ac_cv_func_closedir_void=no
25947 echo "$as_me: program exited with status $ac_status" >&5
25948 echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25951 ( exit $ac_status )
25952 ac_cv_func_closedir_void=yes
25954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25959 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25960 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25961 if test $ac_cv_func_closedir_void = yes; then
25963 cat >>confdefs.h <<\_ACEOF
25964 #define CLOSEDIR_VOID 1
25969 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25970 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25971 if test "${ac_cv_lib_error_at_line+set}" = set; then
25972 echo $ECHO_N "(cached) $ECHO_C" >&6
25974 cat >conftest.$ac_ext <<_ACEOF
25977 cat confdefs.h >>conftest.$ac_ext
25978 cat >>conftest.$ac_ext <<_ACEOF
25979 /* end confdefs.h. */
25984 error_at_line (0, 0, "", 0, "an error occurred");
25989 rm -f conftest.$ac_objext conftest$ac_exeext
25990 if { (ac_try="$ac_link"
25991 case "(($ac_try" in
25992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_link") 2>conftest.er1
25998 grep -v '^ *+' conftest.er1 >conftest.err
26000 cat conftest.err >&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); } && {
26003 test -z "$ac_c_werror_flag" ||
26004 test ! -s conftest.err
26005 } && test -s conftest$ac_exeext &&
26006 $as_test_x conftest$ac_exeext; then
26007 ac_cv_lib_error_at_line=yes
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26012 ac_cv_lib_error_at_line=no
26015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26016 conftest$ac_exeext conftest.$ac_ext
26018 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
26019 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
26020 if test $ac_cv_lib_error_at_line = no; then
26021 case " $LIBOBJS " in
26022 *" error.$ac_objext "* ) ;;
26023 *) LIBOBJS="$LIBOBJS error.$ac_objext"
26030 for ac_header in vfork.h
26032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26039 ac_res=`eval echo '${'$as_ac_Header'}'`
26040 { echo "$as_me:$LINENO: result: $ac_res" >&5
26041 echo "${ECHO_T}$ac_res" >&6; }
26043 # Is the header compilable?
26044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26046 cat >conftest.$ac_ext <<_ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h. */
26052 $ac_includes_default
26053 #include <$ac_header>
26055 rm -f conftest.$ac_objext
26056 if { (ac_try="$ac_compile"
26057 case "(($ac_try" in
26058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059 *) ac_try_echo=$ac_try;;
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062 (eval "$ac_compile") 2>conftest.er1
26064 grep -v '^ *+' conftest.er1 >conftest.err
26066 cat conftest.err >&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); } && {
26069 test -z "$ac_c_werror_flag" ||
26070 test ! -s conftest.err
26071 } && test -s conftest.$ac_objext; then
26072 ac_header_compiler=yes
26074 echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26077 ac_header_compiler=no
26080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26082 echo "${ECHO_T}$ac_header_compiler" >&6; }
26084 # Is the header present?
26085 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26087 cat >conftest.$ac_ext <<_ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h. */
26093 #include <$ac_header>
26095 if { (ac_try="$ac_cpp conftest.$ac_ext"
26096 case "(($ac_try" in
26097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098 *) ac_try_echo=$ac_try;;
26100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26103 grep -v '^ *+' conftest.er1 >conftest.err
26105 cat conftest.err >&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); } >/dev/null && {
26108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26109 test ! -s conftest.err
26111 ac_header_preproc=yes
26113 echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26116 ac_header_preproc=no
26119 rm -f conftest.err conftest.$ac_ext
26120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26121 echo "${ECHO_T}$ac_header_preproc" >&6; }
26123 # So? What about this header?
26124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26130 ac_header_preproc=yes
26133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26146 ## ---------------------------------------- ##
26147 ## Report this to linux-nfs@vger.kernel.org ##
26148 ## ---------------------------------------- ##
26150 ) | sed "s/^/$as_me: WARNING: /" >&2
26153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26156 echo $ECHO_N "(cached) $ECHO_C" >&6
26158 eval "$as_ac_Header=\$ac_header_preproc"
26160 ac_res=`eval echo '${'$as_ac_Header'}'`
26161 { echo "$as_me:$LINENO: result: $ac_res" >&5
26162 echo "${ECHO_T}$ac_res" >&6; }
26165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26166 cat >>confdefs.h <<_ACEOF
26167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26176 for ac_func in fork vfork
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26182 echo $ECHO_N "(cached) $ECHO_C" >&6
26184 cat >conftest.$ac_ext <<_ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26192 #define $ac_func innocuous_$ac_func
26194 /* System header to define __stub macros and hopefully few prototypes,
26195 which can conflict with char $ac_func (); below.
26196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197 <limits.h> exists even on freestanding compilers. */
26200 # include <limits.h>
26202 # include <assert.h>
26207 /* Override any GCC internal prototype to avoid an error.
26208 Use char because int might match the return type of a GCC
26209 builtin and then its argument prototype would still apply. */
26214 /* The GNU C library defines this for functions which it implements
26215 to always fail with ENOSYS. Some functions are actually named
26216 something starting with __ and the normal name is an alias. */
26217 #if defined __stub_$ac_func || defined __stub___$ac_func
26224 return $ac_func ();
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (ac_try="$ac_link"
26231 case "(($ac_try" in
26232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233 *) ac_try_echo=$ac_try;;
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236 (eval "$ac_link") 2>conftest.er1
26238 grep -v '^ *+' conftest.er1 >conftest.err
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } && {
26243 test -z "$ac_c_werror_flag" ||
26244 test ! -s conftest.err
26245 } && test -s conftest$ac_exeext &&
26246 $as_test_x conftest$ac_exeext; then
26247 eval "$as_ac_var=yes"
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 eval "$as_ac_var=no"
26255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26256 conftest$ac_exeext conftest.$ac_ext
26258 ac_res=`eval echo '${'$as_ac_var'}'`
26259 { echo "$as_me:$LINENO: result: $ac_res" >&5
26260 echo "${ECHO_T}$ac_res" >&6; }
26261 if test `eval echo '${'$as_ac_var'}'` = yes; then
26262 cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26269 if test "x$ac_cv_func_fork" = xyes; then
26270 { echo "$as_me:$LINENO: checking for working fork" >&5
26271 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
26272 if test "${ac_cv_func_fork_works+set}" = set; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 if test "$cross_compiling" = yes; then
26276 ac_cv_func_fork_works=cross
26278 cat >conftest.$ac_ext <<_ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26284 $ac_includes_default
26289 /* By Ruediger Kuhlmann. */
26290 return fork () < 0;
26296 rm -f conftest$ac_exeext
26297 if { (ac_try="$ac_link"
26298 case "(($ac_try" in
26299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300 *) ac_try_echo=$ac_try;;
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303 (eval "$ac_link") 2>&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26307 { (case "(($ac_try" in
26308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312 (eval "$ac_try") 2>&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; }; then
26316 ac_cv_func_fork_works=yes
26318 echo "$as_me: program exited with status $ac_status" >&5
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26322 ( exit $ac_status )
26323 ac_cv_func_fork_works=no
26325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26330 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
26331 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
26334 ac_cv_func_fork_works=$ac_cv_func_fork
26336 if test "x$ac_cv_func_fork_works" = xcross; then
26338 *-*-amigaos* | *-*-msdosdjgpp*)
26339 # Override, as these systems have only a dummy fork() stub
26340 ac_cv_func_fork_works=no
26343 ac_cv_func_fork_works=yes
26346 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26347 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26349 ac_cv_func_vfork_works=$ac_cv_func_vfork
26350 if test "x$ac_cv_func_vfork" = xyes; then
26351 { echo "$as_me:$LINENO: checking for working vfork" >&5
26352 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
26353 if test "${ac_cv_func_vfork_works+set}" = set; then
26354 echo $ECHO_N "(cached) $ECHO_C" >&6
26356 if test "$cross_compiling" = yes; then
26357 ac_cv_func_vfork_works=cross
26359 cat >conftest.$ac_ext <<_ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h. */
26365 /* Thanks to Paul Eggert for this test. */
26366 $ac_includes_default
26367 #include <sys/wait.h>
26368 #ifdef HAVE_VFORK_H
26369 # include <vfork.h>
26371 /* On some sparc systems, changes by the child to local and incoming
26372 argument registers are propagated back to the parent. The compiler
26373 is told about this with #include <vfork.h>, but some compilers
26374 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
26375 static variable whose address is put into a register that is
26376 clobbered by the vfork. */
26379 sparc_address_test (int arg)
26381 sparc_address_test (arg) int arg;
26384 static pid_t child;
26402 pid_t parent = getpid ();
26405 sparc_address_test (0);
26410 /* Here is another test for sparc vfork register problems. This
26411 test uses lots of local variables, at least as many local
26412 variables as main has allocated so far including compiler
26413 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
26414 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
26415 reuse the register of parent for one of the local variables,
26416 since it will think that parent can't possibly be used any more
26417 in this routine. Assigning to the local variable will thus
26418 munge parent in the parent process. */
26420 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26421 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26422 /* Convince the compiler that p..p7 are live; otherwise, it might
26423 use the same hardware register for all 8 local variables. */
26424 if (p != p1 || p != p2 || p != p3 || p != p4
26425 || p != p5 || p != p6 || p != p7)
26428 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26429 from child file descriptors. If the child closes a descriptor
26430 before it execs or exits, this munges the parent's descriptor
26431 as well. Test for this by closing stdout in the child. */
26432 _exit(close(fileno(stdout)) != 0);
26437 while (wait(&status) != child)
26440 /* Was there some problem with vforking? */
26443 /* Did the child fail? (This shouldn't happen.) */
26446 /* Did the vfork/compiler bug occur? */
26447 || parent != getpid()
26449 /* Did the file descriptor bug occur? */
26450 || fstat(fileno(stdout), &st) != 0
26455 rm -f conftest$ac_exeext
26456 if { (ac_try="$ac_link"
26457 case "(($ac_try" in
26458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459 *) ac_try_echo=$ac_try;;
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462 (eval "$ac_link") 2>&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26466 { (case "(($ac_try" in
26467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468 *) ac_try_echo=$ac_try;;
26470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26471 (eval "$ac_try") 2>&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); }; }; then
26475 ac_cv_func_vfork_works=yes
26477 echo "$as_me: program exited with status $ac_status" >&5
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 ( exit $ac_status )
26482 ac_cv_func_vfork_works=no
26484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26489 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26490 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26493 if test "x$ac_cv_func_fork_works" = xcross; then
26494 ac_cv_func_vfork_works=$ac_cv_func_vfork
26495 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26496 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26499 if test "x$ac_cv_func_vfork_works" = xyes; then
26501 cat >>confdefs.h <<\_ACEOF
26502 #define HAVE_WORKING_VFORK 1
26507 cat >>confdefs.h <<\_ACEOF
26512 if test "x$ac_cv_func_fork_works" = xyes; then
26514 cat >>confdefs.h <<\_ACEOF
26515 #define HAVE_WORKING_FORK 1
26520 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26521 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26522 if test "${ac_cv_type_getgroups+set}" = set; then
26523 echo $ECHO_N "(cached) $ECHO_C" >&6
26525 if test "$cross_compiling" = yes; then
26526 ac_cv_type_getgroups=cross
26528 cat >conftest.$ac_ext <<_ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h. */
26534 /* Thanks to Mike Rendell for this test. */
26535 $ac_includes_default
26538 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26543 gid_t gidset[NGID];
26545 union { gid_t gval; long int lval; } val;
26548 for (i = 0; i < NGID; i++)
26549 gidset[i] = val.gval;
26550 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26552 /* Exit non-zero if getgroups seems to require an array of ints. This
26553 happens when gid_t is short int but getgroups modifies an array
26555 return n > 0 && gidset[n] != val.gval;
26558 rm -f conftest$ac_exeext
26559 if { (ac_try="$ac_link"
26560 case "(($ac_try" in
26561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562 *) ac_try_echo=$ac_try;;
26564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565 (eval "$ac_link") 2>&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26569 { (case "(($ac_try" in
26570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571 *) ac_try_echo=$ac_try;;
26573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574 (eval "$ac_try") 2>&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578 ac_cv_type_getgroups=gid_t
26580 echo "$as_me: program exited with status $ac_status" >&5
26581 echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.$ac_ext >&5
26584 ( exit $ac_status )
26585 ac_cv_type_getgroups=int
26587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26591 if test $ac_cv_type_getgroups = cross; then
26592 cat >conftest.$ac_ext <<_ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26598 #include <unistd.h>
26601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26602 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26603 ac_cv_type_getgroups=gid_t
26605 ac_cv_type_getgroups=int
26611 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26612 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26614 cat >>confdefs.h <<_ACEOF
26615 #define GETGROUPS_T $ac_cv_type_getgroups
26619 { echo "$as_me:$LINENO: checking for getgroups" >&5
26620 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26621 if test "${ac_cv_func_getgroups+set}" = set; then
26622 echo $ECHO_N "(cached) $ECHO_C" >&6
26624 cat >conftest.$ac_ext <<_ACEOF
26627 cat confdefs.h >>conftest.$ac_ext
26628 cat >>conftest.$ac_ext <<_ACEOF
26629 /* end confdefs.h. */
26630 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26632 #define getgroups innocuous_getgroups
26634 /* System header to define __stub macros and hopefully few prototypes,
26635 which can conflict with char getgroups (); below.
26636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26637 <limits.h> exists even on freestanding compilers. */
26640 # include <limits.h>
26642 # include <assert.h>
26647 /* Override any GCC internal prototype to avoid an error.
26648 Use char because int might match the return type of a GCC
26649 builtin and then its argument prototype would still apply. */
26654 /* The GNU C library defines this for functions which it implements
26655 to always fail with ENOSYS. Some functions are actually named
26656 something starting with __ and the normal name is an alias. */
26657 #if defined __stub_getgroups || defined __stub___getgroups
26664 return getgroups ();
26669 rm -f conftest.$ac_objext conftest$ac_exeext
26670 if { (ac_try="$ac_link"
26671 case "(($ac_try" in
26672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26673 *) ac_try_echo=$ac_try;;
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676 (eval "$ac_link") 2>conftest.er1
26678 grep -v '^ *+' conftest.er1 >conftest.err
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } && {
26683 test -z "$ac_c_werror_flag" ||
26684 test ! -s conftest.err
26685 } && test -s conftest$ac_exeext &&
26686 $as_test_x conftest$ac_exeext; then
26687 ac_cv_func_getgroups=yes
26689 echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26692 ac_cv_func_getgroups=no
26695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26696 conftest$ac_exeext conftest.$ac_ext
26698 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26699 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26702 # If we don't yet have getgroups, see if it's in -lbsd.
26703 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26705 if test $ac_cv_func_getgroups = no; then
26706 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26707 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26708 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26711 ac_check_lib_save_LIBS=$LIBS
26713 cat >conftest.$ac_ext <<_ACEOF
26716 cat confdefs.h >>conftest.$ac_ext
26717 cat >>conftest.$ac_ext <<_ACEOF
26718 /* end confdefs.h. */
26720 /* Override any GCC internal prototype to avoid an error.
26721 Use char because int might match the return type of a GCC
26722 builtin and then its argument prototype would still apply. */
26730 return getgroups ();
26735 rm -f conftest.$ac_objext conftest$ac_exeext
26736 if { (ac_try="$ac_link"
26737 case "(($ac_try" in
26738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739 *) ac_try_echo=$ac_try;;
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742 (eval "$ac_link") 2>conftest.er1
26744 grep -v '^ *+' conftest.er1 >conftest.err
26746 cat conftest.err >&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); } && {
26749 test -z "$ac_c_werror_flag" ||
26750 test ! -s conftest.err
26751 } && test -s conftest$ac_exeext &&
26752 $as_test_x conftest$ac_exeext; then
26753 ac_cv_lib_bsd_getgroups=yes
26755 echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26758 ac_cv_lib_bsd_getgroups=no
26761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26762 conftest$ac_exeext conftest.$ac_ext
26763 LIBS=$ac_check_lib_save_LIBS
26765 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26766 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26767 if test $ac_cv_lib_bsd_getgroups = yes; then
26768 GETGROUPS_LIB=-lbsd
26773 # Run the program to test the functionality of the system-supplied
26774 # getgroups function only if there is such a function.
26775 if test $ac_cv_func_getgroups = yes; then
26776 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26777 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26778 if test "${ac_cv_func_getgroups_works+set}" = set; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26781 if test "$cross_compiling" = yes; then
26782 ac_cv_func_getgroups_works=no
26784 cat >conftest.$ac_ext <<_ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h. */
26790 $ac_includes_default
26794 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26795 return getgroups (0, 0) == -1;
26800 rm -f conftest$ac_exeext
26801 if { (ac_try="$ac_link"
26802 case "(($ac_try" in
26803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26804 *) ac_try_echo=$ac_try;;
26806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26807 (eval "$ac_link") 2>&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26811 { (case "(($ac_try" in
26812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813 *) ac_try_echo=$ac_try;;
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816 (eval "$ac_try") 2>&5
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; }; then
26820 ac_cv_func_getgroups_works=yes
26822 echo "$as_me: program exited with status $ac_status" >&5
26823 echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26826 ( exit $ac_status )
26827 ac_cv_func_getgroups_works=no
26829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26835 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26836 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26837 if test $ac_cv_func_getgroups_works = yes; then
26839 cat >>confdefs.h <<\_ACEOF
26840 #define HAVE_GETGROUPS 1
26847 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26848 # -lseq on Dynix/PTX, -lgen on Unixware.
26849 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26850 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26851 if test "${ac_cv_search_getmntent+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26854 ac_func_search_save_LIBS=$LIBS
26855 cat >conftest.$ac_ext <<_ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h. */
26862 /* Override any GCC internal prototype to avoid an error.
26863 Use char because int might match the return type of a GCC
26864 builtin and then its argument prototype would still apply. */
26872 return getmntent ();
26877 for ac_lib in '' sun seq gen; do
26878 if test -z "$ac_lib"; then
26879 ac_res="none required"
26882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26884 rm -f conftest.$ac_objext conftest$ac_exeext
26885 if { (ac_try="$ac_link"
26886 case "(($ac_try" in
26887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888 *) ac_try_echo=$ac_try;;
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891 (eval "$ac_link") 2>conftest.er1
26893 grep -v '^ *+' conftest.er1 >conftest.err
26895 cat conftest.err >&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } && {
26898 test -z "$ac_c_werror_flag" ||
26899 test ! -s conftest.err
26900 } && test -s conftest$ac_exeext &&
26901 $as_test_x conftest$ac_exeext; then
26902 ac_cv_search_getmntent=$ac_res
26904 echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26912 if test "${ac_cv_search_getmntent+set}" = set; then
26916 if test "${ac_cv_search_getmntent+set}" = set; then
26919 ac_cv_search_getmntent=no
26921 rm conftest.$ac_ext
26922 LIBS=$ac_func_search_save_LIBS
26924 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26925 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26926 ac_res=$ac_cv_search_getmntent
26927 if test "$ac_res" != no; then
26928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26929 ac_cv_func_getmntent=yes
26931 cat >>confdefs.h <<\_ACEOF
26932 #define HAVE_GETMNTENT
26936 ac_cv_func_getmntent=no
26940 if test $ac_cv_c_compiler_gnu = yes; then
26941 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26942 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26943 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26944 echo $ECHO_N "(cached) $ECHO_C" >&6
26946 ac_pattern="Autoconf.*'x'"
26947 cat >conftest.$ac_ext <<_ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26957 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26958 ac_cv_prog_gcc_traditional=yes
26960 ac_cv_prog_gcc_traditional=no
26965 if test $ac_cv_prog_gcc_traditional = no; then
26966 cat >conftest.$ac_ext <<_ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26972 #include <termio.h>
26975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26976 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26977 ac_cv_prog_gcc_traditional=yes
26983 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26984 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26985 if test $ac_cv_prog_gcc_traditional = yes; then
26986 CC="$CC -traditional"
26990 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26991 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26992 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26993 echo $ECHO_N "(cached) $ECHO_C" >&6
26995 rm -f conftest.sym conftest.file
26996 echo >conftest.file
26997 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26998 if test "$cross_compiling" = yes; then
26999 ac_cv_func_lstat_dereferences_slashed_symlink=no
27001 cat >conftest.$ac_ext <<_ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h. */
27007 $ac_includes_default
27012 /* Linux will dereference the symlink and fail.
27013 That is better in the sense that it means we will not
27014 have to compile and use the lstat wrapper. */
27015 return lstat ("conftest.sym/", &sbuf) == 0;
27020 rm -f conftest$ac_exeext
27021 if { (ac_try="$ac_link"
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_link") 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27031 { (case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_try") 2>&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; }; then
27040 ac_cv_func_lstat_dereferences_slashed_symlink=yes
27042 echo "$as_me: program exited with status $ac_status" >&5
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27046 ( exit $ac_status )
27047 ac_cv_func_lstat_dereferences_slashed_symlink=no
27049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27054 # If the `ln -s' command failed, then we probably don't even
27055 # have an lstat function.
27056 ac_cv_func_lstat_dereferences_slashed_symlink=no
27058 rm -f conftest.sym conftest.file
27061 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
27062 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27064 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
27066 cat >>confdefs.h <<_ACEOF
27067 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27071 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
27072 case " $LIBOBJS " in
27073 *" lstat.$ac_objext "* ) ;;
27074 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27080 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
27081 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
27082 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27085 if test "$cross_compiling" = yes; then
27086 ac_cv_func_lstat_empty_string_bug=yes
27088 cat >conftest.$ac_ext <<_ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 $ac_includes_default
27099 return lstat ("", &sbuf) == 0;
27104 rm -f conftest$ac_exeext
27105 if { (ac_try="$ac_link"
27106 case "(($ac_try" in
27107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108 *) ac_try_echo=$ac_try;;
27110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27111 (eval "$ac_link") 2>&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
27124 ac_cv_func_lstat_empty_string_bug=no
27126 echo "$as_me: program exited with status $ac_status" >&5
27127 echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27130 ( exit $ac_status )
27131 ac_cv_func_lstat_empty_string_bug=yes
27133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27138 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
27139 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
27140 if test $ac_cv_func_lstat_empty_string_bug = yes; then
27141 case " $LIBOBJS " in
27142 *" lstat.$ac_objext "* ) ;;
27143 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27148 cat >>confdefs.h <<_ACEOF
27149 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
27154 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
27155 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
27156 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
27157 echo $ECHO_N "(cached) $ECHO_C" >&6
27159 rm -f conftest.sym conftest.file
27160 echo >conftest.file
27161 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
27162 if test "$cross_compiling" = yes; then
27163 ac_cv_func_lstat_dereferences_slashed_symlink=no
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27171 $ac_includes_default
27176 /* Linux will dereference the symlink and fail.
27177 That is better in the sense that it means we will not
27178 have to compile and use the lstat wrapper. */
27179 return lstat ("conftest.sym/", &sbuf) == 0;
27184 rm -f conftest$ac_exeext
27185 if { (ac_try="$ac_link"
27186 case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_link") 2>&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27195 { (case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_try") 2>&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); }; }; then
27204 ac_cv_func_lstat_dereferences_slashed_symlink=yes
27206 echo "$as_me: program exited with status $ac_status" >&5
27207 echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27210 ( exit $ac_status )
27211 ac_cv_func_lstat_dereferences_slashed_symlink=no
27213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27218 # If the `ln -s' command failed, then we probably don't even
27219 # have an lstat function.
27220 ac_cv_func_lstat_dereferences_slashed_symlink=no
27222 rm -f conftest.sym conftest.file
27225 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
27226 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27228 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
27230 cat >>confdefs.h <<_ACEOF
27231 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27235 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
27236 case " $LIBOBJS " in
27237 *" lstat.$ac_objext "* ) ;;
27238 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27244 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
27245 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
27246 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
27247 echo $ECHO_N "(cached) $ECHO_C" >&6
27249 cat >conftest.$ac_ext <<_ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h. */
27255 #include <sys/types.h>
27259 return makedev(0, 0);
27264 rm -f conftest.$ac_objext conftest$ac_exeext
27265 if { (ac_try="$ac_link"
27266 case "(($ac_try" in
27267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268 *) ac_try_echo=$ac_try;;
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271 (eval "$ac_link") 2>conftest.er1
27273 grep -v '^ *+' conftest.er1 >conftest.err
27275 cat conftest.err >&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); } && {
27278 test -z "$ac_c_werror_flag" ||
27279 test ! -s conftest.err
27280 } && test -s conftest$ac_exeext &&
27281 $as_test_x conftest$ac_exeext; then
27282 ac_cv_header_sys_types_h_makedev=yes
27284 echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27287 ac_cv_header_sys_types_h_makedev=no
27290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27291 conftest$ac_exeext conftest.$ac_ext
27294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
27295 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
27297 if test $ac_cv_header_sys_types_h_makedev = no; then
27298 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27299 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
27300 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
27301 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27302 echo $ECHO_N "(cached) $ECHO_C" >&6
27304 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27305 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27307 # Is the header compilable?
27308 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
27309 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
27310 cat >conftest.$ac_ext <<_ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h. */
27316 $ac_includes_default
27317 #include <sys/mkdev.h>
27319 rm -f conftest.$ac_objext
27320 if { (ac_try="$ac_compile"
27321 case "(($ac_try" in
27322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323 *) ac_try_echo=$ac_try;;
27325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326 (eval "$ac_compile") 2>conftest.er1
27328 grep -v '^ *+' conftest.er1 >conftest.err
27330 cat conftest.err >&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } && {
27333 test -z "$ac_c_werror_flag" ||
27334 test ! -s conftest.err
27335 } && test -s conftest.$ac_objext; then
27336 ac_header_compiler=yes
27338 echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27341 ac_header_compiler=no
27344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27346 echo "${ECHO_T}$ac_header_compiler" >&6; }
27348 # Is the header present?
27349 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
27350 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
27351 cat >conftest.$ac_ext <<_ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h. */
27357 #include <sys/mkdev.h>
27359 if { (ac_try="$ac_cpp conftest.$ac_ext"
27360 case "(($ac_try" in
27361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362 *) ac_try_echo=$ac_try;;
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27367 grep -v '^ *+' conftest.er1 >conftest.err
27369 cat conftest.err >&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } >/dev/null && {
27372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27373 test ! -s conftest.err
27375 ac_header_preproc=yes
27377 echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27380 ac_header_preproc=no
27383 rm -f conftest.err conftest.$ac_ext
27384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27385 echo "${ECHO_T}$ac_header_preproc" >&6; }
27387 # So? What about this header?
27388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27390 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
27391 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
27393 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
27394 ac_header_preproc=yes
27397 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
27398 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
27399 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
27400 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
27401 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
27402 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
27403 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
27404 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
27405 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
27406 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
27407 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
27408 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
27410 ## ---------------------------------------- ##
27411 ## Report this to linux-nfs@vger.kernel.org ##
27412 ## ---------------------------------------- ##
27414 ) | sed "s/^/$as_me: WARNING: /" >&2
27417 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
27418 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
27419 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
27422 ac_cv_header_sys_mkdev_h=$ac_header_preproc
27424 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27425 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27428 if test $ac_cv_header_sys_mkdev_h = yes; then
27430 cat >>confdefs.h <<\_ACEOF
27431 #define MAJOR_IN_MKDEV 1
27438 if test $ac_cv_header_sys_mkdev_h = no; then
27439 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27440 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27441 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27442 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27443 echo $ECHO_N "(cached) $ECHO_C" >&6
27445 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27446 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27448 # Is the header compilable?
27449 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27450 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27451 cat >conftest.$ac_ext <<_ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h. */
27457 $ac_includes_default
27458 #include <sys/sysmacros.h>
27460 rm -f conftest.$ac_objext
27461 if { (ac_try="$ac_compile"
27462 case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_compile") 2>conftest.er1
27469 grep -v '^ *+' conftest.er1 >conftest.err
27471 cat conftest.err >&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); } && {
27474 test -z "$ac_c_werror_flag" ||
27475 test ! -s conftest.err
27476 } && test -s conftest.$ac_objext; then
27477 ac_header_compiler=yes
27479 echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27482 ac_header_compiler=no
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27487 echo "${ECHO_T}$ac_header_compiler" >&6; }
27489 # Is the header present?
27490 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27491 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27492 cat >conftest.$ac_ext <<_ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h. */
27498 #include <sys/sysmacros.h>
27500 if { (ac_try="$ac_cpp conftest.$ac_ext"
27501 case "(($ac_try" in
27502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503 *) ac_try_echo=$ac_try;;
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27508 grep -v '^ *+' conftest.er1 >conftest.err
27510 cat conftest.err >&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } >/dev/null && {
27513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27514 test ! -s conftest.err
27516 ac_header_preproc=yes
27518 echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27521 ac_header_preproc=no
27524 rm -f conftest.err conftest.$ac_ext
27525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27526 echo "${ECHO_T}$ac_header_preproc" >&6; }
27528 # So? What about this header?
27529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27531 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27532 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27533 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27534 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27535 ac_header_preproc=yes
27538 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27539 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27540 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27541 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27542 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27543 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27544 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27545 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27546 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27547 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27548 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27549 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27551 ## ---------------------------------------- ##
27552 ## Report this to linux-nfs@vger.kernel.org ##
27553 ## ---------------------------------------- ##
27555 ) | sed "s/^/$as_me: WARNING: /" >&2
27558 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27559 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27560 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27561 echo $ECHO_N "(cached) $ECHO_C" >&6
27563 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27565 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27566 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27569 if test $ac_cv_header_sys_sysmacros_h = yes; then
27571 cat >>confdefs.h <<\_ACEOF
27572 #define MAJOR_IN_SYSMACROS 1
27582 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27583 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27584 if test "${ac_cv_func_memcmp_working+set}" = set; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27587 if test "$cross_compiling" = yes; then
27588 ac_cv_func_memcmp_working=no
27590 cat >conftest.$ac_ext <<_ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h. */
27596 $ac_includes_default
27601 /* Some versions of memcmp are not 8-bit clean. */
27602 char c0 = '\100', c1 = '\200', c2 = '\201';
27603 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27606 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27607 or more and with at least one buffer not starting on a 4-byte boundary.
27608 William Lewis provided this test program. */
27613 for (i = 0; i < 4; i++)
27617 strcpy (a, "--------01111111");
27618 strcpy (b, "--------10000000");
27619 if (memcmp (a, b, 16) >= 0)
27629 rm -f conftest$ac_exeext
27630 if { (ac_try="$ac_link"
27631 case "(($ac_try" in
27632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27633 *) ac_try_echo=$ac_try;;
27635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27636 (eval "$ac_link") 2>&5
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27640 { (case "(($ac_try" in
27641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642 *) ac_try_echo=$ac_try;;
27644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27645 (eval "$ac_try") 2>&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27649 ac_cv_func_memcmp_working=yes
27651 echo "$as_me: program exited with status $ac_status" >&5
27652 echo "$as_me: failed program was:" >&5
27653 sed 's/^/| /' conftest.$ac_ext >&5
27655 ( exit $ac_status )
27656 ac_cv_func_memcmp_working=no
27658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27663 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27664 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27665 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27666 *" memcmp.$ac_objext "* ) ;;
27667 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27675 for ac_header in sys/select.h sys/socket.h
27677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27682 echo $ECHO_N "(cached) $ECHO_C" >&6
27684 ac_res=`eval echo '${'$as_ac_Header'}'`
27685 { echo "$as_me:$LINENO: result: $ac_res" >&5
27686 echo "${ECHO_T}$ac_res" >&6; }
27688 # Is the header compilable?
27689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27691 cat >conftest.$ac_ext <<_ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h. */
27697 $ac_includes_default
27698 #include <$ac_header>
27700 rm -f conftest.$ac_objext
27701 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
27717 ac_header_compiler=yes
27719 echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27722 ac_header_compiler=no
27725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27727 echo "${ECHO_T}$ac_header_compiler" >&6; }
27729 # Is the header present?
27730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27738 #include <$ac_header>
27740 if { (ac_try="$ac_cpp conftest.$ac_ext"
27741 case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27748 grep -v '^ *+' conftest.er1 >conftest.err
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } >/dev/null && {
27753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27754 test ! -s conftest.err
27756 ac_header_preproc=yes
27758 echo "$as_me: failed program was:" >&5
27759 sed 's/^/| /' conftest.$ac_ext >&5
27761 ac_header_preproc=no
27764 rm -f conftest.err conftest.$ac_ext
27765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27766 echo "${ECHO_T}$ac_header_preproc" >&6; }
27768 # So? What about this header?
27769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27775 ac_header_preproc=yes
27778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27791 ## ---------------------------------------- ##
27792 ## Report this to linux-nfs@vger.kernel.org ##
27793 ## ---------------------------------------- ##
27795 ) | sed "s/^/$as_me: WARNING: /" >&2
27798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27801 echo $ECHO_N "(cached) $ECHO_C" >&6
27803 eval "$as_ac_Header=\$ac_header_preproc"
27805 ac_res=`eval echo '${'$as_ac_Header'}'`
27806 { echo "$as_me:$LINENO: result: $ac_res" >&5
27807 echo "${ECHO_T}$ac_res" >&6; }
27810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27811 cat >>confdefs.h <<_ACEOF
27812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27819 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27820 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27821 if test "${ac_cv_func_select_args+set}" = set; then
27822 echo $ECHO_N "(cached) $ECHO_C" >&6
27824 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27825 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27826 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27827 cat >conftest.$ac_ext <<_ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h. */
27833 $ac_includes_default
27834 #ifdef HAVE_SYS_SELECT_H
27835 # include <sys/select.h>
27837 #ifdef HAVE_SYS_SOCKET_H
27838 # include <sys/socket.h>
27844 extern int select ($ac_arg1,
27845 $ac_arg234, $ac_arg234, $ac_arg234,
27851 rm -f conftest.$ac_objext
27852 if { (ac_try="$ac_compile"
27853 case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_compile") 2>conftest.er1
27860 grep -v '^ *+' conftest.er1 >conftest.err
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); } && {
27865 test -z "$ac_c_werror_flag" ||
27866 test ! -s conftest.err
27867 } && test -s conftest.$ac_objext; then
27868 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27880 # Provide a safe default value.
27881 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27884 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27885 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27886 ac_save_IFS=$IFS; IFS=','
27887 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27891 cat >>confdefs.h <<_ACEOF
27892 #define SELECT_TYPE_ARG1 $1
27896 cat >>confdefs.h <<_ACEOF
27897 #define SELECT_TYPE_ARG234 ($2)
27901 cat >>confdefs.h <<_ACEOF
27902 #define SELECT_TYPE_ARG5 ($3)
27907 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27908 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27909 if test "${ac_cv_type_signal+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27912 cat >conftest.$ac_ext <<_ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h. */
27918 #include <sys/types.h>
27919 #include <signal.h>
27924 return *(signal (0, 0)) (0) == 1;
27929 rm -f conftest.$ac_objext
27930 if { (ac_try="$ac_compile"
27931 case "(($ac_try" in
27932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27933 *) ac_try_echo=$ac_try;;
27935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27936 (eval "$ac_compile") 2>conftest.er1
27938 grep -v '^ *+' conftest.er1 >conftest.err
27940 cat conftest.err >&5
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); } && {
27943 test -z "$ac_c_werror_flag" ||
27944 test ! -s conftest.err
27945 } && test -s conftest.$ac_objext; then
27946 ac_cv_type_signal=int
27948 echo "$as_me: failed program was:" >&5
27949 sed 's/^/| /' conftest.$ac_ext >&5
27951 ac_cv_type_signal=void
27954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27956 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27957 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27959 cat >>confdefs.h <<_ACEOF
27960 #define RETSIGTYPE $ac_cv_type_signal
27964 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27965 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27966 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27967 echo $ECHO_N "(cached) $ECHO_C" >&6
27969 if test "$cross_compiling" = yes; then
27970 ac_cv_func_stat_empty_string_bug=yes
27972 cat >conftest.$ac_ext <<_ACEOF
27975 cat confdefs.h >>conftest.$ac_ext
27976 cat >>conftest.$ac_ext <<_ACEOF
27977 /* end confdefs.h. */
27978 $ac_includes_default
27983 return stat ("", &sbuf) == 0;
27988 rm -f conftest$ac_exeext
27989 if { (ac_try="$ac_link"
27990 case "(($ac_try" in
27991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992 *) ac_try_echo=$ac_try;;
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995 (eval "$ac_link") 2>&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27999 { (case "(($ac_try" in
28000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004 (eval "$ac_try") 2>&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; }; then
28008 ac_cv_func_stat_empty_string_bug=no
28010 echo "$as_me: program exited with status $ac_status" >&5
28011 echo "$as_me: failed program was:" >&5
28012 sed 's/^/| /' conftest.$ac_ext >&5
28014 ( exit $ac_status )
28015 ac_cv_func_stat_empty_string_bug=yes
28017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28022 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
28023 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
28024 if test $ac_cv_func_stat_empty_string_bug = yes; then
28025 case " $LIBOBJS " in
28026 *" stat.$ac_objext "* ) ;;
28027 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
28032 cat >>confdefs.h <<_ACEOF
28033 #define HAVE_STAT_EMPTY_STRING_BUG 1
28039 for ac_func in vprintf
28041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28045 echo $ECHO_N "(cached) $ECHO_C" >&6
28047 cat >conftest.$ac_ext <<_ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h. */
28053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28055 #define $ac_func innocuous_$ac_func
28057 /* System header to define __stub macros and hopefully few prototypes,
28058 which can conflict with char $ac_func (); below.
28059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28060 <limits.h> exists even on freestanding compilers. */
28063 # include <limits.h>
28065 # include <assert.h>
28070 /* Override any GCC internal prototype to avoid an error.
28071 Use char because int might match the return type of a GCC
28072 builtin and then its argument prototype would still apply. */
28077 /* The GNU C library defines this for functions which it implements
28078 to always fail with ENOSYS. Some functions are actually named
28079 something starting with __ and the normal name is an alias. */
28080 #if defined __stub_$ac_func || defined __stub___$ac_func
28087 return $ac_func ();
28092 rm -f conftest.$ac_objext conftest$ac_exeext
28093 if { (ac_try="$ac_link"
28094 case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_link") 2>conftest.er1
28101 grep -v '^ *+' conftest.er1 >conftest.err
28103 cat conftest.err >&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); } && {
28106 test -z "$ac_c_werror_flag" ||
28107 test ! -s conftest.err
28108 } && test -s conftest$ac_exeext &&
28109 $as_test_x conftest$ac_exeext; then
28110 eval "$as_ac_var=yes"
28112 echo "$as_me: failed program was:" >&5
28113 sed 's/^/| /' conftest.$ac_ext >&5
28115 eval "$as_ac_var=no"
28118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28119 conftest$ac_exeext conftest.$ac_ext
28121 ac_res=`eval echo '${'$as_ac_var'}'`
28122 { echo "$as_me:$LINENO: result: $ac_res" >&5
28123 echo "${ECHO_T}$ac_res" >&6; }
28124 if test `eval echo '${'$as_ac_var'}'` = yes; then
28125 cat >>confdefs.h <<_ACEOF
28126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28129 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28130 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28131 if test "${ac_cv_func__doprnt+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28134 cat >conftest.$ac_ext <<_ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28140 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28142 #define _doprnt innocuous__doprnt
28144 /* System header to define __stub macros and hopefully few prototypes,
28145 which can conflict with char _doprnt (); below.
28146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28147 <limits.h> exists even on freestanding compilers. */
28150 # include <limits.h>
28152 # include <assert.h>
28157 /* Override any GCC internal prototype to avoid an error.
28158 Use char because int might match the return type of a GCC
28159 builtin and then its argument prototype would still apply. */
28164 /* The GNU C library defines this for functions which it implements
28165 to always fail with ENOSYS. Some functions are actually named
28166 something starting with __ and the normal name is an alias. */
28167 #if defined __stub__doprnt || defined __stub____doprnt
28179 rm -f conftest.$ac_objext conftest$ac_exeext
28180 if { (ac_try="$ac_link"
28181 case "(($ac_try" in
28182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183 *) ac_try_echo=$ac_try;;
28185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28186 (eval "$ac_link") 2>conftest.er1
28188 grep -v '^ *+' conftest.er1 >conftest.err
28190 cat conftest.err >&5
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); } && {
28193 test -z "$ac_c_werror_flag" ||
28194 test ! -s conftest.err
28195 } && test -s conftest$ac_exeext &&
28196 $as_test_x conftest$ac_exeext; then
28197 ac_cv_func__doprnt=yes
28199 echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28202 ac_cv_func__doprnt=no
28205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28206 conftest$ac_exeext conftest.$ac_ext
28208 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28209 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28210 if test $ac_cv_func__doprnt = yes; then
28212 cat >>confdefs.h <<\_ACEOF
28213 #define HAVE_DOPRNT 1
28262 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
28263 gethostbyaddr gethostbyname gethostname getmntent \
28264 inet_ntop getnameinfo getrpcbyname \
28265 bindresvport_sa getnetconfig \
28266 clnt_create clnt_create_timed \
28267 clnt_tli_create clnt_vc_create clnt_dg_create xdr_rpcb \
28268 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
28269 realpath rmdir select socket strcasecmp strchr strdup \
28270 strerror strrchr strtol strtoul sigprocmask
28272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28276 echo $ECHO_N "(cached) $ECHO_C" >&6
28278 cat >conftest.$ac_ext <<_ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28286 #define $ac_func innocuous_$ac_func
28288 /* System header to define __stub macros and hopefully few prototypes,
28289 which can conflict with char $ac_func (); below.
28290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28291 <limits.h> exists even on freestanding compilers. */
28294 # include <limits.h>
28296 # include <assert.h>
28301 /* Override any GCC internal prototype to avoid an error.
28302 Use char because int might match the return type of a GCC
28303 builtin and then its argument prototype would still apply. */
28308 /* The GNU C library defines this for functions which it implements
28309 to always fail with ENOSYS. Some functions are actually named
28310 something starting with __ and the normal name is an alias. */
28311 #if defined __stub_$ac_func || defined __stub___$ac_func
28318 return $ac_func ();
28323 rm -f conftest.$ac_objext conftest$ac_exeext
28324 if { (ac_try="$ac_link"
28325 case "(($ac_try" in
28326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28327 *) ac_try_echo=$ac_try;;
28329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28330 (eval "$ac_link") 2>conftest.er1
28332 grep -v '^ *+' conftest.er1 >conftest.err
28334 cat conftest.err >&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } && {
28337 test -z "$ac_c_werror_flag" ||
28338 test ! -s conftest.err
28339 } && test -s conftest$ac_exeext &&
28340 $as_test_x conftest$ac_exeext; then
28341 eval "$as_ac_var=yes"
28343 echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28346 eval "$as_ac_var=no"
28349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28350 conftest$ac_exeext conftest.$ac_ext
28352 ac_res=`eval echo '${'$as_ac_var'}'`
28353 { echo "$as_me:$LINENO: result: $ac_res" >&5
28354 echo "${ECHO_T}$ac_res" >&6; }
28355 if test `eval echo '${'$as_ac_var'}'` = yes; then
28356 cat >>confdefs.h <<_ACEOF
28357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28365 { echo "$as_me:$LINENO: checking for short" >&5
28366 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
28367 if test "${ac_cv_type_short+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28370 cat >conftest.$ac_ext <<_ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h. */
28376 $ac_includes_default
28377 typedef short ac__type_new_;
28381 if ((ac__type_new_ *) 0)
28383 if (sizeof (ac__type_new_))
28389 rm -f conftest.$ac_objext
28390 if { (ac_try="$ac_compile"
28391 case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_compile") 2>conftest.er1
28398 grep -v '^ *+' conftest.er1 >conftest.err
28400 cat conftest.err >&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); } && {
28403 test -z "$ac_c_werror_flag" ||
28404 test ! -s conftest.err
28405 } && test -s conftest.$ac_objext; then
28406 ac_cv_type_short=yes
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ac_cv_type_short=no
28414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28416 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28417 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28419 # The cast to long int works around a bug in the HP C Compiler
28420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28422 # This bug is HP SR number 8606223364.
28423 { echo "$as_me:$LINENO: checking size of short" >&5
28424 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28425 if test "${ac_cv_sizeof_short+set}" = set; then
28426 echo $ECHO_N "(cached) $ECHO_C" >&6
28428 if test "$cross_compiling" = yes; then
28429 # Depending upon the size, compute the lo and hi bounds.
28430 cat >conftest.$ac_ext <<_ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h. */
28436 $ac_includes_default
28437 typedef short ac__type_sizeof_;
28441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28448 rm -f conftest.$ac_objext
28449 if { (ac_try="$ac_compile"
28450 case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455 (eval "$ac_compile") 2>conftest.er1
28457 grep -v '^ *+' conftest.er1 >conftest.err
28459 cat conftest.err >&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } && {
28462 test -z "$ac_c_werror_flag" ||
28463 test ! -s conftest.err
28464 } && test -s conftest.$ac_objext; then
28467 cat >conftest.$ac_ext <<_ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h. */
28473 $ac_includes_default
28474 typedef short ac__type_sizeof_;
28478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28485 rm -f conftest.$ac_objext
28486 if { (ac_try="$ac_compile"
28487 case "(($ac_try" in
28488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489 *) ac_try_echo=$ac_try;;
28491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492 (eval "$ac_compile") 2>conftest.er1
28494 grep -v '^ *+' conftest.er1 >conftest.err
28496 cat conftest.err >&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } && {
28499 test -z "$ac_c_werror_flag" ||
28500 test ! -s conftest.err
28501 } && test -s conftest.$ac_objext; then
28502 ac_hi=$ac_mid; break
28504 echo "$as_me: failed program was:" >&5
28505 sed 's/^/| /' conftest.$ac_ext >&5
28507 ac_lo=`expr $ac_mid + 1`
28508 if test $ac_lo -le $ac_mid; then
28512 ac_mid=`expr 2 '*' $ac_mid + 1`
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28518 echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 $ac_includes_default
28528 typedef short ac__type_sizeof_;
28532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28539 rm -f conftest.$ac_objext
28540 if { (ac_try="$ac_compile"
28541 case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_compile") 2>conftest.er1
28548 grep -v '^ *+' conftest.er1 >conftest.err
28550 cat conftest.err >&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } && {
28553 test -z "$ac_c_werror_flag" ||
28554 test ! -s conftest.err
28555 } && test -s conftest.$ac_objext; then
28558 cat >conftest.$ac_ext <<_ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h. */
28564 $ac_includes_default
28565 typedef short ac__type_sizeof_;
28569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28576 rm -f conftest.$ac_objext
28577 if { (ac_try="$ac_compile"
28578 case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_compile") 2>conftest.er1
28585 grep -v '^ *+' conftest.er1 >conftest.err
28587 cat conftest.err >&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } && {
28590 test -z "$ac_c_werror_flag" ||
28591 test ! -s conftest.err
28592 } && test -s conftest.$ac_objext; then
28593 ac_lo=$ac_mid; break
28595 echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28598 ac_hi=`expr '(' $ac_mid ')' - 1`
28599 if test $ac_mid -le $ac_hi; then
28603 ac_mid=`expr 2 '*' $ac_mid`
28606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28609 echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619 # Binary search between lo and hi bounds.
28620 while test "x$ac_lo" != "x$ac_hi"; do
28621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28622 cat >conftest.$ac_ext <<_ACEOF
28625 cat confdefs.h >>conftest.$ac_ext
28626 cat >>conftest.$ac_ext <<_ACEOF
28627 /* end confdefs.h. */
28628 $ac_includes_default
28629 typedef short ac__type_sizeof_;
28633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28640 rm -f conftest.$ac_objext
28641 if { (ac_try="$ac_compile"
28642 case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_compile") 2>conftest.er1
28649 grep -v '^ *+' conftest.er1 >conftest.err
28651 cat conftest.err >&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); } && {
28654 test -z "$ac_c_werror_flag" ||
28655 test ! -s conftest.err
28656 } && test -s conftest.$ac_objext; then
28659 echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28662 ac_lo=`expr '(' $ac_mid ')' + 1`
28665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28668 ?*) ac_cv_sizeof_short=$ac_lo;;
28669 '') if test "$ac_cv_type_short" = yes; then
28670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28671 See \`config.log' for more details." >&5
28672 echo "$as_me: error: cannot compute sizeof (short)
28673 See \`config.log' for more details." >&2;}
28674 { (exit 77); exit 77; }; }
28676 ac_cv_sizeof_short=0
28680 cat >conftest.$ac_ext <<_ACEOF
28683 cat confdefs.h >>conftest.$ac_ext
28684 cat >>conftest.$ac_ext <<_ACEOF
28685 /* end confdefs.h. */
28686 $ac_includes_default
28687 typedef short ac__type_sizeof_;
28688 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28689 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28691 #include <stdlib.h>
28696 FILE *f = fopen ("conftest.val", "w");
28699 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28701 long int i = longval ();
28702 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28704 fprintf (f, "%ld\n", i);
28708 unsigned long int i = ulongval ();
28709 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28711 fprintf (f, "%lu\n", i);
28713 return ferror (f) || fclose (f) != 0;
28719 rm -f conftest$ac_exeext
28720 if { (ac_try="$ac_link"
28721 case "(($ac_try" in
28722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723 *) ac_try_echo=$ac_try;;
28725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28726 (eval "$ac_link") 2>&5
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28730 { (case "(($ac_try" in
28731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28732 *) ac_try_echo=$ac_try;;
28734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735 (eval "$ac_try") 2>&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); }; }; then
28739 ac_cv_sizeof_short=`cat conftest.val`
28741 echo "$as_me: program exited with status $ac_status" >&5
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28745 ( exit $ac_status )
28746 if test "$ac_cv_type_short" = yes; then
28747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28748 See \`config.log' for more details." >&5
28749 echo "$as_me: error: cannot compute sizeof (short)
28750 See \`config.log' for more details." >&2;}
28751 { (exit 77); exit 77; }; }
28753 ac_cv_sizeof_short=0
28756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28760 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28761 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28765 cat >>confdefs.h <<_ACEOF
28766 #define SIZEOF_SHORT $ac_cv_sizeof_short
28770 { echo "$as_me:$LINENO: checking for int" >&5
28771 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28772 if test "${ac_cv_type_int+set}" = set; then
28773 echo $ECHO_N "(cached) $ECHO_C" >&6
28775 cat >conftest.$ac_ext <<_ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h. */
28781 $ac_includes_default
28782 typedef int ac__type_new_;
28786 if ((ac__type_new_ *) 0)
28788 if (sizeof (ac__type_new_))
28794 rm -f conftest.$ac_objext
28795 if { (ac_try="$ac_compile"
28796 case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_compile") 2>conftest.er1
28803 grep -v '^ *+' conftest.er1 >conftest.err
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } && {
28808 test -z "$ac_c_werror_flag" ||
28809 test ! -s conftest.err
28810 } && test -s conftest.$ac_objext; then
28813 echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28821 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28822 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28824 # The cast to long int works around a bug in the HP C Compiler
28825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28827 # This bug is HP SR number 8606223364.
28828 { echo "$as_me:$LINENO: checking size of int" >&5
28829 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28830 if test "${ac_cv_sizeof_int+set}" = set; then
28831 echo $ECHO_N "(cached) $ECHO_C" >&6
28833 if test "$cross_compiling" = yes; then
28834 # Depending upon the size, compute the lo and hi bounds.
28835 cat >conftest.$ac_ext <<_ACEOF
28838 cat confdefs.h >>conftest.$ac_ext
28839 cat >>conftest.$ac_ext <<_ACEOF
28840 /* end confdefs.h. */
28841 $ac_includes_default
28842 typedef int ac__type_sizeof_;
28846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28853 rm -f conftest.$ac_objext
28854 if { (ac_try="$ac_compile"
28855 case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_compile") 2>conftest.er1
28862 grep -v '^ *+' conftest.er1 >conftest.err
28864 cat conftest.err >&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } && {
28867 test -z "$ac_c_werror_flag" ||
28868 test ! -s conftest.err
28869 } && test -s conftest.$ac_objext; then
28872 cat >conftest.$ac_ext <<_ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h. */
28878 $ac_includes_default
28879 typedef int ac__type_sizeof_;
28883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28890 rm -f conftest.$ac_objext
28891 if { (ac_try="$ac_compile"
28892 case "(($ac_try" in
28893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894 *) ac_try_echo=$ac_try;;
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897 (eval "$ac_compile") 2>conftest.er1
28899 grep -v '^ *+' conftest.er1 >conftest.err
28901 cat conftest.err >&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); } && {
28904 test -z "$ac_c_werror_flag" ||
28905 test ! -s conftest.err
28906 } && test -s conftest.$ac_objext; then
28907 ac_hi=$ac_mid; break
28909 echo "$as_me: failed program was:" >&5
28910 sed 's/^/| /' conftest.$ac_ext >&5
28912 ac_lo=`expr $ac_mid + 1`
28913 if test $ac_lo -le $ac_mid; then
28917 ac_mid=`expr 2 '*' $ac_mid + 1`
28920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28923 echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28926 cat >conftest.$ac_ext <<_ACEOF
28929 cat confdefs.h >>conftest.$ac_ext
28930 cat >>conftest.$ac_ext <<_ACEOF
28931 /* end confdefs.h. */
28932 $ac_includes_default
28933 typedef int ac__type_sizeof_;
28937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28944 rm -f conftest.$ac_objext
28945 if { (ac_try="$ac_compile"
28946 case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951 (eval "$ac_compile") 2>conftest.er1
28953 grep -v '^ *+' conftest.er1 >conftest.err
28955 cat conftest.err >&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); } && {
28958 test -z "$ac_c_werror_flag" ||
28959 test ! -s conftest.err
28960 } && test -s conftest.$ac_objext; then
28963 cat >conftest.$ac_ext <<_ACEOF
28966 cat confdefs.h >>conftest.$ac_ext
28967 cat >>conftest.$ac_ext <<_ACEOF
28968 /* end confdefs.h. */
28969 $ac_includes_default
28970 typedef int ac__type_sizeof_;
28974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28981 rm -f conftest.$ac_objext
28982 if { (ac_try="$ac_compile"
28983 case "(($ac_try" in
28984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985 *) ac_try_echo=$ac_try;;
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_compile") 2>conftest.er1
28990 grep -v '^ *+' conftest.er1 >conftest.err
28992 cat conftest.err >&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); } && {
28995 test -z "$ac_c_werror_flag" ||
28996 test ! -s conftest.err
28997 } && test -s conftest.$ac_objext; then
28998 ac_lo=$ac_mid; break
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 ac_hi=`expr '(' $ac_mid ')' - 1`
29004 if test $ac_mid -le $ac_hi; then
29008 ac_mid=`expr 2 '*' $ac_mid`
29011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29014 echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29024 # Binary search between lo and hi bounds.
29025 while test "x$ac_lo" != "x$ac_hi"; do
29026 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29027 cat >conftest.$ac_ext <<_ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h. */
29033 $ac_includes_default
29034 typedef int ac__type_sizeof_;
29038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29045 rm -f conftest.$ac_objext
29046 if { (ac_try="$ac_compile"
29047 case "(($ac_try" in
29048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049 *) ac_try_echo=$ac_try;;
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052 (eval "$ac_compile") 2>conftest.er1
29054 grep -v '^ *+' conftest.er1 >conftest.err
29056 cat conftest.err >&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } && {
29059 test -z "$ac_c_werror_flag" ||
29060 test ! -s conftest.err
29061 } && test -s conftest.$ac_objext; then
29064 echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29067 ac_lo=`expr '(' $ac_mid ')' + 1`
29070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29073 ?*) ac_cv_sizeof_int=$ac_lo;;
29074 '') if test "$ac_cv_type_int" = yes; then
29075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29076 See \`config.log' for more details." >&5
29077 echo "$as_me: error: cannot compute sizeof (int)
29078 See \`config.log' for more details." >&2;}
29079 { (exit 77); exit 77; }; }
29085 cat >conftest.$ac_ext <<_ACEOF
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h. */
29091 $ac_includes_default
29092 typedef int ac__type_sizeof_;
29093 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29094 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29096 #include <stdlib.h>
29101 FILE *f = fopen ("conftest.val", "w");
29104 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29106 long int i = longval ();
29107 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29109 fprintf (f, "%ld\n", i);
29113 unsigned long int i = ulongval ();
29114 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29116 fprintf (f, "%lu\n", i);
29118 return ferror (f) || fclose (f) != 0;
29124 rm -f conftest$ac_exeext
29125 if { (ac_try="$ac_link"
29126 case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_link") 2>&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29135 { (case "(($ac_try" in
29136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137 *) ac_try_echo=$ac_try;;
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_try") 2>&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; }; then
29144 ac_cv_sizeof_int=`cat conftest.val`
29146 echo "$as_me: program exited with status $ac_status" >&5
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29150 ( exit $ac_status )
29151 if test "$ac_cv_type_int" = yes; then
29152 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29153 See \`config.log' for more details." >&5
29154 echo "$as_me: error: cannot compute sizeof (int)
29155 See \`config.log' for more details." >&2;}
29156 { (exit 77); exit 77; }; }
29161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29165 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29166 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29170 cat >>confdefs.h <<_ACEOF
29171 #define SIZEOF_INT $ac_cv_sizeof_int
29175 { echo "$as_me:$LINENO: checking for long" >&5
29176 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
29177 if test "${ac_cv_type_long+set}" = set; then
29178 echo $ECHO_N "(cached) $ECHO_C" >&6
29180 cat >conftest.$ac_ext <<_ACEOF
29183 cat confdefs.h >>conftest.$ac_ext
29184 cat >>conftest.$ac_ext <<_ACEOF
29185 /* end confdefs.h. */
29186 $ac_includes_default
29187 typedef long ac__type_new_;
29191 if ((ac__type_new_ *) 0)
29193 if (sizeof (ac__type_new_))
29199 rm -f conftest.$ac_objext
29200 if { (ac_try="$ac_compile"
29201 case "(($ac_try" in
29202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29203 *) ac_try_echo=$ac_try;;
29205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29206 (eval "$ac_compile") 2>conftest.er1
29208 grep -v '^ *+' conftest.er1 >conftest.err
29210 cat conftest.err >&5
29211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212 (exit $ac_status); } && {
29213 test -z "$ac_c_werror_flag" ||
29214 test ! -s conftest.err
29215 } && test -s conftest.$ac_objext; then
29216 ac_cv_type_long=yes
29218 echo "$as_me: failed program was:" >&5
29219 sed 's/^/| /' conftest.$ac_ext >&5
29224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29226 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29227 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29229 # The cast to long int works around a bug in the HP C Compiler
29230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29232 # This bug is HP SR number 8606223364.
29233 { echo "$as_me:$LINENO: checking size of long" >&5
29234 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29235 if test "${ac_cv_sizeof_long+set}" = set; then
29236 echo $ECHO_N "(cached) $ECHO_C" >&6
29238 if test "$cross_compiling" = yes; then
29239 # Depending upon the size, compute the lo and hi bounds.
29240 cat >conftest.$ac_ext <<_ACEOF
29243 cat confdefs.h >>conftest.$ac_ext
29244 cat >>conftest.$ac_ext <<_ACEOF
29245 /* end confdefs.h. */
29246 $ac_includes_default
29247 typedef long ac__type_sizeof_;
29251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29258 rm -f conftest.$ac_objext
29259 if { (ac_try="$ac_compile"
29260 case "(($ac_try" in
29261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262 *) ac_try_echo=$ac_try;;
29264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265 (eval "$ac_compile") 2>conftest.er1
29267 grep -v '^ *+' conftest.er1 >conftest.err
29269 cat conftest.err >&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } && {
29272 test -z "$ac_c_werror_flag" ||
29273 test ! -s conftest.err
29274 } && test -s conftest.$ac_objext; then
29277 cat >conftest.$ac_ext <<_ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h. */
29283 $ac_includes_default
29284 typedef long ac__type_sizeof_;
29288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29295 rm -f conftest.$ac_objext
29296 if { (ac_try="$ac_compile"
29297 case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_compile") 2>conftest.er1
29304 grep -v '^ *+' conftest.er1 >conftest.err
29306 cat conftest.err >&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } && {
29309 test -z "$ac_c_werror_flag" ||
29310 test ! -s conftest.err
29311 } && test -s conftest.$ac_objext; then
29312 ac_hi=$ac_mid; break
29314 echo "$as_me: failed program was:" >&5
29315 sed 's/^/| /' conftest.$ac_ext >&5
29317 ac_lo=`expr $ac_mid + 1`
29318 if test $ac_lo -le $ac_mid; then
29322 ac_mid=`expr 2 '*' $ac_mid + 1`
29325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328 echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29331 cat >conftest.$ac_ext <<_ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h. */
29337 $ac_includes_default
29338 typedef long ac__type_sizeof_;
29342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29349 rm -f conftest.$ac_objext
29350 if { (ac_try="$ac_compile"
29351 case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_compile") 2>conftest.er1
29358 grep -v '^ *+' conftest.er1 >conftest.err
29360 cat conftest.err >&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); } && {
29363 test -z "$ac_c_werror_flag" ||
29364 test ! -s conftest.err
29365 } && test -s conftest.$ac_objext; then
29368 cat >conftest.$ac_ext <<_ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h. */
29374 $ac_includes_default
29375 typedef long ac__type_sizeof_;
29379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29386 rm -f conftest.$ac_objext
29387 if { (ac_try="$ac_compile"
29388 case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_compile") 2>conftest.er1
29395 grep -v '^ *+' conftest.er1 >conftest.err
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } && {
29400 test -z "$ac_c_werror_flag" ||
29401 test ! -s conftest.err
29402 } && test -s conftest.$ac_objext; then
29403 ac_lo=$ac_mid; break
29405 echo "$as_me: failed program was:" >&5
29406 sed 's/^/| /' conftest.$ac_ext >&5
29408 ac_hi=`expr '(' $ac_mid ')' - 1`
29409 if test $ac_mid -le $ac_hi; then
29413 ac_mid=`expr 2 '*' $ac_mid`
29416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29419 echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29429 # Binary search between lo and hi bounds.
29430 while test "x$ac_lo" != "x$ac_hi"; do
29431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29432 cat >conftest.$ac_ext <<_ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h. */
29438 $ac_includes_default
29439 typedef long ac__type_sizeof_;
29443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29450 rm -f conftest.$ac_objext
29451 if { (ac_try="$ac_compile"
29452 case "(($ac_try" in
29453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454 *) ac_try_echo=$ac_try;;
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457 (eval "$ac_compile") 2>conftest.er1
29459 grep -v '^ *+' conftest.er1 >conftest.err
29461 cat conftest.err >&5
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); } && {
29464 test -z "$ac_c_werror_flag" ||
29465 test ! -s conftest.err
29466 } && test -s conftest.$ac_objext; then
29469 echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29472 ac_lo=`expr '(' $ac_mid ')' + 1`
29475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29478 ?*) ac_cv_sizeof_long=$ac_lo;;
29479 '') if test "$ac_cv_type_long" = yes; then
29480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29481 See \`config.log' for more details." >&5
29482 echo "$as_me: error: cannot compute sizeof (long)
29483 See \`config.log' for more details." >&2;}
29484 { (exit 77); exit 77; }; }
29486 ac_cv_sizeof_long=0
29490 cat >conftest.$ac_ext <<_ACEOF
29493 cat confdefs.h >>conftest.$ac_ext
29494 cat >>conftest.$ac_ext <<_ACEOF
29495 /* end confdefs.h. */
29496 $ac_includes_default
29497 typedef long ac__type_sizeof_;
29498 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29499 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29501 #include <stdlib.h>
29506 FILE *f = fopen ("conftest.val", "w");
29509 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29511 long int i = longval ();
29512 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29514 fprintf (f, "%ld\n", i);
29518 unsigned long int i = ulongval ();
29519 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29521 fprintf (f, "%lu\n", i);
29523 return ferror (f) || fclose (f) != 0;
29529 rm -f conftest$ac_exeext
29530 if { (ac_try="$ac_link"
29531 case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_link") 2>&5
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29540 { (case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545 (eval "$ac_try") 2>&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; }; then
29549 ac_cv_sizeof_long=`cat conftest.val`
29551 echo "$as_me: program exited with status $ac_status" >&5
29552 echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29555 ( exit $ac_status )
29556 if test "$ac_cv_type_long" = yes; then
29557 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29558 See \`config.log' for more details." >&5
29559 echo "$as_me: error: cannot compute sizeof (long)
29560 See \`config.log' for more details." >&2;}
29561 { (exit 77); exit 77; }; }
29563 ac_cv_sizeof_long=0
29566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29570 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29571 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29575 cat >>confdefs.h <<_ACEOF
29576 #define SIZEOF_LONG $ac_cv_sizeof_long
29580 { echo "$as_me:$LINENO: checking for size_t" >&5
29581 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29582 if test "${ac_cv_type_size_t+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29585 cat >conftest.$ac_ext <<_ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h. */
29591 $ac_includes_default
29592 typedef size_t ac__type_new_;
29596 if ((ac__type_new_ *) 0)
29598 if (sizeof (ac__type_new_))
29604 rm -f conftest.$ac_objext
29605 if { (ac_try="$ac_compile"
29606 case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_compile") 2>conftest.er1
29613 grep -v '^ *+' conftest.er1 >conftest.err
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } && {
29618 test -z "$ac_c_werror_flag" ||
29619 test ! -s conftest.err
29620 } && test -s conftest.$ac_objext; then
29621 ac_cv_type_size_t=yes
29623 echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29626 ac_cv_type_size_t=no
29629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29631 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29632 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29634 # The cast to long int works around a bug in the HP C Compiler
29635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29637 # This bug is HP SR number 8606223364.
29638 { echo "$as_me:$LINENO: checking size of size_t" >&5
29639 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29640 if test "${ac_cv_sizeof_size_t+set}" = set; then
29641 echo $ECHO_N "(cached) $ECHO_C" >&6
29643 if test "$cross_compiling" = yes; then
29644 # Depending upon the size, compute the lo and hi bounds.
29645 cat >conftest.$ac_ext <<_ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h. */
29651 $ac_includes_default
29652 typedef size_t ac__type_sizeof_;
29656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_compile") 2>conftest.er1
29672 grep -v '^ *+' conftest.er1 >conftest.err
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } && {
29677 test -z "$ac_c_werror_flag" ||
29678 test ! -s conftest.err
29679 } && test -s conftest.$ac_objext; then
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29688 $ac_includes_default
29689 typedef size_t ac__type_sizeof_;
29693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29700 rm -f conftest.$ac_objext
29701 if { (ac_try="$ac_compile"
29702 case "(($ac_try" in
29703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704 *) ac_try_echo=$ac_try;;
29706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29707 (eval "$ac_compile") 2>conftest.er1
29709 grep -v '^ *+' conftest.er1 >conftest.err
29711 cat conftest.err >&5
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); } && {
29714 test -z "$ac_c_werror_flag" ||
29715 test ! -s conftest.err
29716 } && test -s conftest.$ac_objext; then
29717 ac_hi=$ac_mid; break
29719 echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29722 ac_lo=`expr $ac_mid + 1`
29723 if test $ac_lo -le $ac_mid; then
29727 ac_mid=`expr 2 '*' $ac_mid + 1`
29730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29733 echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29736 cat >conftest.$ac_ext <<_ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h. */
29742 $ac_includes_default
29743 typedef size_t ac__type_sizeof_;
29747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29754 rm -f conftest.$ac_objext
29755 if { (ac_try="$ac_compile"
29756 case "(($ac_try" in
29757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758 *) ac_try_echo=$ac_try;;
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761 (eval "$ac_compile") 2>conftest.er1
29763 grep -v '^ *+' conftest.er1 >conftest.err
29765 cat conftest.err >&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } && {
29768 test -z "$ac_c_werror_flag" ||
29769 test ! -s conftest.err
29770 } && test -s conftest.$ac_objext; then
29773 cat >conftest.$ac_ext <<_ACEOF
29776 cat confdefs.h >>conftest.$ac_ext
29777 cat >>conftest.$ac_ext <<_ACEOF
29778 /* end confdefs.h. */
29779 $ac_includes_default
29780 typedef size_t ac__type_sizeof_;
29784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29791 rm -f conftest.$ac_objext
29792 if { (ac_try="$ac_compile"
29793 case "(($ac_try" in
29794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795 *) ac_try_echo=$ac_try;;
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798 (eval "$ac_compile") 2>conftest.er1
29800 grep -v '^ *+' conftest.er1 >conftest.err
29802 cat conftest.err >&5
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); } && {
29805 test -z "$ac_c_werror_flag" ||
29806 test ! -s conftest.err
29807 } && test -s conftest.$ac_objext; then
29808 ac_lo=$ac_mid; break
29810 echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29813 ac_hi=`expr '(' $ac_mid ')' - 1`
29814 if test $ac_mid -le $ac_hi; then
29818 ac_mid=`expr 2 '*' $ac_mid`
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29824 echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29834 # Binary search between lo and hi bounds.
29835 while test "x$ac_lo" != "x$ac_hi"; do
29836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29837 cat >conftest.$ac_ext <<_ACEOF
29840 cat confdefs.h >>conftest.$ac_ext
29841 cat >>conftest.$ac_ext <<_ACEOF
29842 /* end confdefs.h. */
29843 $ac_includes_default
29844 typedef size_t ac__type_sizeof_;
29848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29855 rm -f conftest.$ac_objext
29856 if { (ac_try="$ac_compile"
29857 case "(($ac_try" in
29858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859 *) ac_try_echo=$ac_try;;
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862 (eval "$ac_compile") 2>conftest.er1
29864 grep -v '^ *+' conftest.er1 >conftest.err
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } && {
29869 test -z "$ac_c_werror_flag" ||
29870 test ! -s conftest.err
29871 } && test -s conftest.$ac_objext; then
29874 echo "$as_me: failed program was:" >&5
29875 sed 's/^/| /' conftest.$ac_ext >&5
29877 ac_lo=`expr '(' $ac_mid ')' + 1`
29880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29883 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29884 '') if test "$ac_cv_type_size_t" = yes; then
29885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29886 See \`config.log' for more details." >&5
29887 echo "$as_me: error: cannot compute sizeof (size_t)
29888 See \`config.log' for more details." >&2;}
29889 { (exit 77); exit 77; }; }
29891 ac_cv_sizeof_size_t=0
29895 cat >conftest.$ac_ext <<_ACEOF
29898 cat confdefs.h >>conftest.$ac_ext
29899 cat >>conftest.$ac_ext <<_ACEOF
29900 /* end confdefs.h. */
29901 $ac_includes_default
29902 typedef size_t ac__type_sizeof_;
29903 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29904 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29906 #include <stdlib.h>
29911 FILE *f = fopen ("conftest.val", "w");
29914 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29916 long int i = longval ();
29917 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29919 fprintf (f, "%ld\n", i);
29923 unsigned long int i = ulongval ();
29924 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29926 fprintf (f, "%lu\n", i);
29928 return ferror (f) || fclose (f) != 0;
29934 rm -f conftest$ac_exeext
29935 if { (ac_try="$ac_link"
29936 case "(($ac_try" in
29937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29938 *) ac_try_echo=$ac_try;;
29940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29941 (eval "$ac_link") 2>&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29945 { (case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950 (eval "$ac_try") 2>&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
29954 ac_cv_sizeof_size_t=`cat conftest.val`
29956 echo "$as_me: program exited with status $ac_status" >&5
29957 echo "$as_me: failed program was:" >&5
29958 sed 's/^/| /' conftest.$ac_ext >&5
29960 ( exit $ac_status )
29961 if test "$ac_cv_type_size_t" = yes; then
29962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29963 See \`config.log' for more details." >&5
29964 echo "$as_me: error: cannot compute sizeof (size_t)
29965 See \`config.log' for more details." >&2;}
29966 { (exit 77); exit 77; }; }
29968 ac_cv_sizeof_size_t=0
29971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29975 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29976 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29980 cat >>confdefs.h <<_ACEOF
29981 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29985 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29986 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29987 if test "${ac_cv_type_socklen_t+set}" = set; then
29988 echo $ECHO_N "(cached) $ECHO_C" >&6
29990 cat >conftest.$ac_ext <<_ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h. */
29996 $ac_includes_default
29997 typedef socklen_t ac__type_new_;
30001 if ((ac__type_new_ *) 0)
30003 if (sizeof (ac__type_new_))
30009 rm -f conftest.$ac_objext
30010 if { (ac_try="$ac_compile"
30011 case "(($ac_try" in
30012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013 *) ac_try_echo=$ac_try;;
30015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016 (eval "$ac_compile") 2>conftest.er1
30018 grep -v '^ *+' conftest.er1 >conftest.err
30020 cat conftest.err >&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); } && {
30023 test -z "$ac_c_werror_flag" ||
30024 test ! -s conftest.err
30025 } && test -s conftest.$ac_objext; then
30026 ac_cv_type_socklen_t=yes
30028 echo "$as_me: failed program was:" >&5
30029 sed 's/^/| /' conftest.$ac_ext >&5
30031 ac_cv_type_socklen_t=no
30034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30036 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30037 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30039 # The cast to long int works around a bug in the HP C Compiler
30040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30042 # This bug is HP SR number 8606223364.
30043 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
30044 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30045 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30046 echo $ECHO_N "(cached) $ECHO_C" >&6
30048 if test "$cross_compiling" = yes; then
30049 # Depending upon the size, compute the lo and hi bounds.
30050 cat >conftest.$ac_ext <<_ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h. */
30056 $ac_includes_default
30057 typedef socklen_t ac__type_sizeof_;
30061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072 *) ac_try_echo=$ac_try;;
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075 (eval "$ac_compile") 2>conftest.er1
30077 grep -v '^ *+' conftest.er1 >conftest.err
30079 cat conftest.err >&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); } && {
30082 test -z "$ac_c_werror_flag" ||
30083 test ! -s conftest.err
30084 } && test -s conftest.$ac_objext; then
30087 cat >conftest.$ac_ext <<_ACEOF
30090 cat confdefs.h >>conftest.$ac_ext
30091 cat >>conftest.$ac_ext <<_ACEOF
30092 /* end confdefs.h. */
30093 $ac_includes_default
30094 typedef socklen_t ac__type_sizeof_;
30098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30105 rm -f conftest.$ac_objext
30106 if { (ac_try="$ac_compile"
30107 case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_compile") 2>conftest.er1
30114 grep -v '^ *+' conftest.er1 >conftest.err
30116 cat conftest.err >&5
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } && {
30119 test -z "$ac_c_werror_flag" ||
30120 test ! -s conftest.err
30121 } && test -s conftest.$ac_objext; then
30122 ac_hi=$ac_mid; break
30124 echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30127 ac_lo=`expr $ac_mid + 1`
30128 if test $ac_lo -le $ac_mid; then
30132 ac_mid=`expr 2 '*' $ac_mid + 1`
30135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30138 echo "$as_me: failed program was:" >&5
30139 sed 's/^/| /' conftest.$ac_ext >&5
30141 cat >conftest.$ac_ext <<_ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h. */
30147 $ac_includes_default
30148 typedef socklen_t ac__type_sizeof_;
30152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30159 rm -f conftest.$ac_objext
30160 if { (ac_try="$ac_compile"
30161 case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_compile") 2>conftest.er1
30168 grep -v '^ *+' conftest.er1 >conftest.err
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } && {
30173 test -z "$ac_c_werror_flag" ||
30174 test ! -s conftest.err
30175 } && test -s conftest.$ac_objext; then
30178 cat >conftest.$ac_ext <<_ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h. */
30184 $ac_includes_default
30185 typedef socklen_t ac__type_sizeof_;
30189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30196 rm -f conftest.$ac_objext
30197 if { (ac_try="$ac_compile"
30198 case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_compile") 2>conftest.er1
30205 grep -v '^ *+' conftest.er1 >conftest.err
30207 cat conftest.err >&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); } && {
30210 test -z "$ac_c_werror_flag" ||
30211 test ! -s conftest.err
30212 } && test -s conftest.$ac_objext; then
30213 ac_lo=$ac_mid; break
30215 echo "$as_me: failed program was:" >&5
30216 sed 's/^/| /' conftest.$ac_ext >&5
30218 ac_hi=`expr '(' $ac_mid ')' - 1`
30219 if test $ac_mid -le $ac_hi; then
30223 ac_mid=`expr 2 '*' $ac_mid`
30226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30229 echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30239 # Binary search between lo and hi bounds.
30240 while test "x$ac_lo" != "x$ac_hi"; do
30241 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30242 cat >conftest.$ac_ext <<_ACEOF
30245 cat confdefs.h >>conftest.$ac_ext
30246 cat >>conftest.$ac_ext <<_ACEOF
30247 /* end confdefs.h. */
30248 $ac_includes_default
30249 typedef socklen_t ac__type_sizeof_;
30253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30260 rm -f conftest.$ac_objext
30261 if { (ac_try="$ac_compile"
30262 case "(($ac_try" in
30263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264 *) ac_try_echo=$ac_try;;
30266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30267 (eval "$ac_compile") 2>conftest.er1
30269 grep -v '^ *+' conftest.er1 >conftest.err
30271 cat conftest.err >&5
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); } && {
30274 test -z "$ac_c_werror_flag" ||
30275 test ! -s conftest.err
30276 } && test -s conftest.$ac_objext; then
30279 echo "$as_me: failed program was:" >&5
30280 sed 's/^/| /' conftest.$ac_ext >&5
30282 ac_lo=`expr '(' $ac_mid ')' + 1`
30285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30288 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30289 '') if test "$ac_cv_type_socklen_t" = yes; then
30290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30291 See \`config.log' for more details." >&5
30292 echo "$as_me: error: cannot compute sizeof (socklen_t)
30293 See \`config.log' for more details." >&2;}
30294 { (exit 77); exit 77; }; }
30296 ac_cv_sizeof_socklen_t=0
30300 cat >conftest.$ac_ext <<_ACEOF
30303 cat confdefs.h >>conftest.$ac_ext
30304 cat >>conftest.$ac_ext <<_ACEOF
30305 /* end confdefs.h. */
30306 $ac_includes_default
30307 typedef socklen_t ac__type_sizeof_;
30308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30311 #include <stdlib.h>
30316 FILE *f = fopen ("conftest.val", "w");
30319 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30321 long int i = longval ();
30322 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30324 fprintf (f, "%ld\n", i);
30328 unsigned long int i = ulongval ();
30329 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30331 fprintf (f, "%lu\n", i);
30333 return ferror (f) || fclose (f) != 0;
30339 rm -f conftest$ac_exeext
30340 if { (ac_try="$ac_link"
30341 case "(($ac_try" in
30342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343 *) ac_try_echo=$ac_try;;
30345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30346 (eval "$ac_link") 2>&5
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30350 { (case "(($ac_try" in
30351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352 *) ac_try_echo=$ac_try;;
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355 (eval "$ac_try") 2>&5
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; }; then
30359 ac_cv_sizeof_socklen_t=`cat conftest.val`
30361 echo "$as_me: program exited with status $ac_status" >&5
30362 echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30365 ( exit $ac_status )
30366 if test "$ac_cv_type_socklen_t" = yes; then
30367 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30368 See \`config.log' for more details." >&5
30369 echo "$as_me: error: cannot compute sizeof (socklen_t)
30370 See \`config.log' for more details." >&2;}
30371 { (exit 77); exit 77; }; }
30373 ac_cv_sizeof_socklen_t=0
30376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30381 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30385 cat >>confdefs.h <<_ACEOF
30386 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
30393 cat >>confdefs.h <<_ACEOF
30394 #define NFS_STATEDIR "$statedir"
30398 if test "x$cross_compiling" = "xno"; then
30399 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
30400 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
30401 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
30402 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
30404 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
30405 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
30406 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
30407 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
30425 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
30427 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
30429 AM_CFLAGS="$my_am_cflags"
30432 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
30433 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30436 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"
30438 cat >confcache <<\_ACEOF
30439 # This file is a shell script that caches the results of configure
30440 # tests run on this system so they can be shared between configure
30441 # scripts and configure runs, see configure's option --config-cache.
30442 # It is not useful on other systems. If it contains results you don't
30443 # want to keep, you may remove or edit it.
30445 # config.status only pays attention to the cache file if you give it
30446 # the --recheck option to rerun configure.
30448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30450 # following values.
30454 # The following way of writing the cache mishandles newlines in values,
30455 # but we know of no workaround that is simple, portable, and efficient.
30456 # So, we kill variables containing newlines.
30457 # Ultrix sh set writes to stderr and can't be redirected directly,
30458 # and sets the high bit in the cache file unless we assign to the vars.
30460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30461 eval ac_val=\$$ac_var
30465 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30466 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30469 _ | IFS | as_nl) ;; #(
30470 *) $as_unset $ac_var ;;
30476 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30477 *${as_nl}ac_space=\ *)
30478 # `set' does not quote correctly, so add quotes (double-quote
30479 # substitution turns \\\\ into \\, and sed turns \\ into \).
30482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30485 # `set' quotes correctly as required by POSIX, so do not add quotes.
30486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30497 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30499 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30500 if test -w "$cache_file"; then
30501 test "x$cache_file" != "x/dev/null" &&
30502 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30503 echo "$as_me: updating cache $cache_file" >&6;}
30504 cat confcache >$cache_file
30506 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30507 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30513 # Let make expand exec_prefix.
30514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30516 DEFS=-DHAVE_CONFIG_H
30520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30521 # 1. Remove the extension, and $U if already installed.
30522 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30523 ac_i=`echo "$ac_i" | sed "$ac_script"`
30524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30525 # will be set to the directory where LIBOBJS objects are built.
30526 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30527 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30529 LIBOBJS=$ac_libobjs
30531 LTLIBOBJS=$ac_ltlibobjs
30534 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30535 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30536 Usually this means the macro was only invoked conditionally." >&5
30537 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30538 Usually this means the macro was only invoked conditionally." >&2;}
30539 { (exit 1); exit 1; }; }
30541 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30542 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30543 Usually this means the macro was only invoked conditionally." >&5
30544 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30545 Usually this means the macro was only invoked conditionally." >&2;}
30546 { (exit 1); exit 1; }; }
30548 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30549 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30550 Usually this means the macro was only invoked conditionally." >&5
30551 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30552 Usually this means the macro was only invoked conditionally." >&2;}
30553 { (exit 1); exit 1; }; }
30555 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30556 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30557 Usually this means the macro was only invoked conditionally." >&5
30558 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30559 Usually this means the macro was only invoked conditionally." >&2;}
30560 { (exit 1); exit 1; }; }
30562 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30563 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30564 Usually this means the macro was only invoked conditionally." >&5
30565 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30566 Usually this means the macro was only invoked conditionally." >&2;}
30567 { (exit 1); exit 1; }; }
30569 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
30570 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
30571 Usually this means the macro was only invoked conditionally." >&5
30572 echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
30573 Usually this means the macro was only invoked conditionally." >&2;}
30574 { (exit 1); exit 1; }; }
30576 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30577 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30578 Usually this means the macro was only invoked conditionally." >&5
30579 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30580 Usually this means the macro was only invoked conditionally." >&2;}
30581 { (exit 1); exit 1; }; }
30583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30584 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30585 Usually this means the macro was only invoked conditionally." >&5
30586 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30587 Usually this means the macro was only invoked conditionally." >&2;}
30588 { (exit 1); exit 1; }; }
30590 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30591 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30592 Usually this means the macro was only invoked conditionally." >&5
30593 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30594 Usually this means the macro was only invoked conditionally." >&2;}
30595 { (exit 1); exit 1; }; }
30597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30598 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30599 Usually this means the macro was only invoked conditionally." >&5
30600 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30601 Usually this means the macro was only invoked conditionally." >&2;}
30602 { (exit 1); exit 1; }; }
30605 : ${CONFIG_STATUS=./config.status}
30606 ac_clean_files_save=$ac_clean_files
30607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30608 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30609 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30610 cat >$CONFIG_STATUS <<_ACEOF
30612 # Generated by $as_me.
30613 # Run this file to recreate the current configuration.
30614 # Compiler output produced by configure, useful for debugging
30615 # configure, is in config.log if it exists.
30618 ac_cs_recheck=false
30620 SHELL=\${CONFIG_SHELL-$SHELL}
30623 cat >>$CONFIG_STATUS <<\_ACEOF
30624 ## --------------------- ##
30625 ## M4sh Initialization. ##
30626 ## --------------------- ##
30628 # Be more Bourne compatible
30629 DUALCASE=1; export DUALCASE # for MKS sh
30630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30633 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30634 # is contrary to our usage. Disable this feature.
30635 alias -g '${1+"$@"}'='"$@"'
30636 setopt NO_GLOB_SUBST
30638 case `(set -o) 2>/dev/null` in
30639 *posix*) set -o posix ;;
30648 # Avoid depending upon Character Ranges.
30649 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30650 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30651 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30652 as_cr_digits='0123456789'
30653 as_cr_alnum=$as_cr_Letters$as_cr_digits
30655 # The user is always right.
30656 if test "${PATH_SEPARATOR+set}" != set; then
30657 echo "#! /bin/sh" >conf$$.sh
30658 echo "exit 0" >>conf$$.sh
30660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30668 # Support unset when possible.
30669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30677 # We need space, tab and new line, in precisely that order. Quoting is
30678 # there to prevent editors from complaining about space-tab.
30679 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30680 # splitting by setting IFS to empty value.)
30685 # Find who we are. Look in the path if we contain no directory separator.
30687 *[\\/]* ) as_myself=$0 ;;
30688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30689 for as_dir in $PATH
30692 test -z "$as_dir" && as_dir=.
30693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30699 # We did not find ourselves, most probably we were run as `sh COMMAND'
30700 # in which case we are not to be found in the path.
30701 if test "x$as_myself" = x; then
30704 if test ! -f "$as_myself"; then
30705 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30706 { (exit 1); exit 1; }
30709 # Work around bugs in pre-3.0 UWIN ksh.
30710 for as_var in ENV MAIL MAILPATH
30711 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30719 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30720 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30721 LC_TELEPHONE LC_TIME
30723 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30724 eval $as_var=C; export $as_var
30726 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30730 # Required to use basename.
30731 if expr a : '\(a\)' >/dev/null 2>&1 &&
30732 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30738 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30739 as_basename=basename
30745 # Name of the executable.
30746 as_me=`$as_basename -- "$0" ||
30747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30748 X"$0" : 'X\(//\)$' \| \
30749 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30751 sed '/^.*\/\([^/][^/]*\)\/*$/{
30770 as_lineno_1=$LINENO
30771 as_lineno_2=$LINENO
30772 test "x$as_lineno_1" != "x$as_lineno_2" &&
30773 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30775 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30776 # uniformly replaced by the line number. The first 'sed' inserts a
30777 # line-number line after each line using $LINENO; the second 'sed'
30778 # does the real work. The second script uses 'N' to pair each
30779 # line-number line with the line containing $LINENO, and appends
30780 # trailing '-' during substitution so that $LINENO is not a special
30781 # case at line end.
30782 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30783 # scripts with optimization help from Paolo Bonzini. Blame Lee
30784 # E. McMahon (1931-1989) for sed's syntax. :-)
30796 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30799 ' >$as_me.lineno &&
30800 chmod +x "$as_me.lineno" ||
30801 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30802 { (exit 1); exit 1; }; }
30804 # Don't try to exec as it changes $[0], causing all sort of problems
30805 # (the dirname of $[0] is not the place where we might find the
30806 # original and so on. Autoconf is especially sensitive to this).
30807 . "./$as_me.lineno"
30808 # Exit status is that of the last command.
30813 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30819 ECHO_C= ECHO_N= ECHO_T=
30820 case `echo -n x` in
30822 case `echo 'x\c'` in
30823 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30830 if expr a : '\(a\)' >/dev/null 2>&1 &&
30831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30837 rm -f conf$$ conf$$.exe conf$$.file
30838 if test -d conf$$.dir; then
30839 rm -f conf$$.dir/conf$$.file
30845 if ln -s conf$$.file conf$$ 2>/dev/null; then
30847 # ... but there are two gotchas:
30848 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30849 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30850 # In both cases, we have to default to `cp -p'.
30851 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30853 elif ln conf$$.file conf$$ 2>/dev/null; then
30858 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30859 rmdir conf$$.dir 2>/dev/null
30861 if mkdir -p . 2>/dev/null; then
30864 test -d ./-p && rmdir ./-p
30868 if test -x / >/dev/null 2>&1; then
30869 as_test_x='test -x'
30871 if ls -dL / >/dev/null 2>&1; then
30878 if test -d "$1"; then
30884 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30885 ???[sx]*):;;*)false;;esac;fi
30889 as_executable_p=$as_test_x
30891 # Sed expression to map a string onto a valid CPP name.
30892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30894 # Sed expression to map a string onto a valid variable name.
30895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30900 # Save the log message, to keep $[0] and so on meaningful, and to
30901 # report actual input values of CONFIG_FILES etc. instead of their
30902 # values after options handling.
30904 This file was extended by linux nfs-utils $as_me 1.1.4, which was
30905 generated by GNU Autoconf 2.61. Invocation command line was
30907 CONFIG_FILES = $CONFIG_FILES
30908 CONFIG_HEADERS = $CONFIG_HEADERS
30909 CONFIG_LINKS = $CONFIG_LINKS
30910 CONFIG_COMMANDS = $CONFIG_COMMANDS
30913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30918 cat >>$CONFIG_STATUS <<_ACEOF
30919 # Files that config.status was made for.
30920 config_files="$ac_config_files"
30921 config_headers="$ac_config_headers"
30922 config_commands="$ac_config_commands"
30926 cat >>$CONFIG_STATUS <<\_ACEOF
30928 \`$as_me' instantiates files from templates according to the
30929 current configuration.
30931 Usage: $0 [OPTIONS] [FILE]...
30933 -h, --help print this help, then exit
30934 -V, --version print version number and configuration settings, then exit
30935 -q, --quiet do not print progress messages
30936 -d, --debug don't remove temporary files
30937 --recheck update $as_me by reconfiguring in the same conditions
30938 --file=FILE[:TEMPLATE]
30939 instantiate the configuration file FILE
30940 --header=FILE[:TEMPLATE]
30941 instantiate the configuration header FILE
30943 Configuration files:
30946 Configuration headers:
30949 Configuration commands:
30952 Report bugs to <bug-autoconf@gnu.org>."
30955 cat >>$CONFIG_STATUS <<_ACEOF
30957 linux nfs-utils config.status 1.1.4
30958 configured by $0, generated by GNU Autoconf 2.61,
30959 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30961 Copyright (C) 2006 Free Software Foundation, Inc.
30962 This config.status script is free software; the Free Software Foundation
30963 gives unlimited permission to copy, distribute and modify it."
30971 cat >>$CONFIG_STATUS <<\_ACEOF
30972 # If no file are specified by the user, then we need to provide default
30973 # value. By we need to know if files were specified by the user.
30979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30991 # Handling of the options.
30992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30995 echo "$ac_cs_version"; exit ;;
30996 --debug | --debu | --deb | --de | --d | -d )
30998 --file | --fil | --fi | --f )
31000 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31001 ac_need_defaults=false;;
31002 --header | --heade | --head | --hea )
31004 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31005 ac_need_defaults=false;;
31007 # Conflict between --help and --header
31008 { echo "$as_me: error: ambiguous option: $1
31009 Try \`$0 --help' for more information." >&2
31010 { (exit 1); exit 1; }; };;
31011 --help | --hel | -h )
31012 echo "$ac_cs_usage"; exit ;;
31013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31017 # This is an error.
31018 -*) { echo "$as_me: error: unrecognized option: $1
31019 Try \`$0 --help' for more information." >&2
31020 { (exit 1); exit 1; }; } ;;
31022 *) ac_config_targets="$ac_config_targets $1"
31023 ac_need_defaults=false ;;
31029 ac_configure_extra_args=
31031 if $ac_cs_silent; then
31033 ac_configure_extra_args="$ac_configure_extra_args --silent"
31037 cat >>$CONFIG_STATUS <<_ACEOF
31038 if \$ac_cs_recheck; then
31039 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31040 CONFIG_SHELL=$SHELL
31041 export CONFIG_SHELL
31042 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31046 cat >>$CONFIG_STATUS <<\_ACEOF
31050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31051 ## Running $as_me. ##
31057 cat >>$CONFIG_STATUS <<_ACEOF
31061 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31065 cat >>$CONFIG_STATUS <<\_ACEOF
31067 # Handling of arguments.
31068 for ac_config_target in $ac_config_targets
31070 case $ac_config_target in
31071 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31072 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
31073 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31074 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
31075 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31076 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
31077 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
31078 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
31079 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
31080 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
31081 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
31082 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
31083 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
31084 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31085 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
31086 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
31087 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
31088 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
31089 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
31090 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
31091 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
31092 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
31093 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
31094 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
31095 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
31096 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
31097 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
31098 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
31100 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31101 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31102 { (exit 1); exit 1; }; };;
31107 # If the user did not use the arguments to specify the items to instantiate,
31108 # then the envvar interface is used. Set only those that are not.
31109 # We use the long form for the default assignment because of an extremely
31110 # bizarre bug on SunOS 4.1.3.
31111 if $ac_need_defaults; then
31112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31117 # Have a temporary directory for convenience. Make it in the build tree
31118 # simply because there is no reason against having it here, and in addition,
31119 # creating and moving files from /tmp can sometimes cause problems.
31120 # Hook for its removal unless debugging.
31121 # Note that there is a small window in which the directory will not be cleaned:
31122 # after its creation but before its name has been assigned to `$tmp'.
31126 trap 'exit_status=$?
31127 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31129 trap '{ (exit 1); exit 1; }' 1 2 13 15
31131 # Create a (secure) tmp directory for tmp files.
31134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31135 test -n "$tmp" && test -d "$tmp"
31138 tmp=./conf$$-$RANDOM
31139 (umask 077 && mkdir "$tmp")
31142 echo "$me: cannot create a temporary directory in ." >&2
31143 { (exit 1); exit 1; }
31147 # Set up the sed scripts for CONFIG_FILES section.
31150 # No need to generate the scripts if there are no CONFIG_FILES.
31151 # This happens for instance when ./config.status config.h
31152 if test -n "$CONFIG_FILES"; then
31159 for ac_last_try in false false false false false :; do
31160 cat >conf$$subs.sed <<_ACEOF
31161 SHELL!$SHELL$ac_delim
31162 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31163 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31164 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31165 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31166 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31167 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31168 exec_prefix!$exec_prefix$ac_delim
31169 prefix!$prefix$ac_delim
31170 program_transform_name!$program_transform_name$ac_delim
31171 bindir!$bindir$ac_delim
31172 sbindir!$sbindir$ac_delim
31173 libexecdir!$libexecdir$ac_delim
31174 datarootdir!$datarootdir$ac_delim
31175 datadir!$datadir$ac_delim
31176 sysconfdir!$sysconfdir$ac_delim
31177 sharedstatedir!$sharedstatedir$ac_delim
31178 localstatedir!$localstatedir$ac_delim
31179 includedir!$includedir$ac_delim
31180 oldincludedir!$oldincludedir$ac_delim
31181 docdir!$docdir$ac_delim
31182 infodir!$infodir$ac_delim
31183 htmldir!$htmldir$ac_delim
31184 dvidir!$dvidir$ac_delim
31185 pdfdir!$pdfdir$ac_delim
31186 psdir!$psdir$ac_delim
31187 libdir!$libdir$ac_delim
31188 localedir!$localedir$ac_delim
31189 mandir!$mandir$ac_delim
31190 DEFS!$DEFS$ac_delim
31191 ECHO_C!$ECHO_C$ac_delim
31192 ECHO_N!$ECHO_N$ac_delim
31193 ECHO_T!$ECHO_T$ac_delim
31194 LIBS!$LIBS$ac_delim
31195 build_alias!$build_alias$ac_delim
31196 host_alias!$host_alias$ac_delim
31197 target_alias!$target_alias$ac_delim
31198 build!$build$ac_delim
31199 build_cpu!$build_cpu$ac_delim
31200 build_vendor!$build_vendor$ac_delim
31201 build_os!$build_os$ac_delim
31202 host!$host$ac_delim
31203 host_cpu!$host_cpu$ac_delim
31204 host_vendor!$host_vendor$ac_delim
31205 host_os!$host_os$ac_delim
31206 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31207 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31208 INSTALL_DATA!$INSTALL_DATA$ac_delim
31209 am__isrc!$am__isrc$ac_delim
31210 CYGPATH_W!$CYGPATH_W$ac_delim
31211 PACKAGE!$PACKAGE$ac_delim
31212 VERSION!$VERSION$ac_delim
31213 ACLOCAL!$ACLOCAL$ac_delim
31214 AUTOCONF!$AUTOCONF$ac_delim
31215 AUTOMAKE!$AUTOMAKE$ac_delim
31216 AUTOHEADER!$AUTOHEADER$ac_delim
31217 MAKEINFO!$MAKEINFO$ac_delim
31218 install_sh!$install_sh$ac_delim
31219 STRIP!$STRIP$ac_delim
31220 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31221 mkdir_p!$mkdir_p$ac_delim
31223 SET_MAKE!$SET_MAKE$ac_delim
31224 am__leading_dot!$am__leading_dot$ac_delim
31225 AMTAR!$AMTAR$ac_delim
31226 am__tar!$am__tar$ac_delim
31227 am__untar!$am__untar$ac_delim
31228 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
31229 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
31230 MAINT!$MAINT$ac_delim
31231 RELEASE!$RELEASE$ac_delim
31232 statedir!$statedir$ac_delim
31233 statduser!$statduser$ac_delim
31234 startstatd!$startstatd$ac_delim
31235 enable_nfsv3!$enable_nfsv3$ac_delim
31236 IDMAPD!$IDMAPD$ac_delim
31237 enable_nfsv4!$enable_nfsv4$ac_delim
31238 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
31239 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
31240 GSSD!$GSSD$ac_delim
31241 SVCGSSD!$SVCGSSD$ac_delim
31242 enable_gss!$enable_gss$ac_delim
31243 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
31244 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
31245 kprefix!$kprefix$ac_delim
31246 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
31247 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
31248 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
31249 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
31250 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
31251 enable_ipv6!$enable_ipv6$ac_delim
31252 CONFIG_IPV6_TRUE!$CONFIG_IPV6_TRUE$ac_delim
31253 CONFIG_IPV6_FALSE!$CONFIG_IPV6_FALSE$ac_delim
31255 CFLAGS!$CFLAGS$ac_delim
31256 LDFLAGS!$LDFLAGS$ac_delim
31257 CPPFLAGS!$CPPFLAGS$ac_delim
31260 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31262 elif $ac_last_try; then
31263 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31264 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31265 { (exit 1); exit 1; }; }
31267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31271 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31272 if test -n "$ac_eof"; then
31273 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31274 ac_eof=`expr $ac_eof + 1`
31277 cat >>$CONFIG_STATUS <<_ACEOF
31278 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31282 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31283 s/^/s,@/; s/!/@,|#_!!_#|/
31286 s/'"$ac_delim"'$/,g/; t
31288 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31289 ' >>$CONFIG_STATUS <conf$$subs.sed
31290 rm -f conf$$subs.sed
31291 cat >>$CONFIG_STATUS <<_ACEOF
31297 for ac_last_try in false false false false false :; do
31298 cat >conf$$subs.sed <<_ACEOF
31299 ac_ct_CC!$ac_ct_CC$ac_delim
31300 EXEEXT!$EXEEXT$ac_delim
31301 OBJEXT!$OBJEXT$ac_delim
31302 DEPDIR!$DEPDIR$ac_delim
31303 am__include!$am__include$ac_delim
31304 am__quote!$am__quote$ac_delim
31305 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31306 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31307 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31308 CCDEPMODE!$CCDEPMODE$ac_delim
31309 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31310 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31311 LIBWRAP!$LIBWRAP$ac_delim
31312 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
31313 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
31315 CXXFLAGS!$CXXFLAGS$ac_delim
31316 ac_ct_CXX!$ac_ct_CXX$ac_delim
31317 CXXDEPMODE!$CXXDEPMODE$ac_delim
31318 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31319 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31321 LN_S!$LN_S$ac_delim
31323 GREP!$GREP$ac_delim
31324 EGREP!$EGREP$ac_delim
31325 ECHO!$ECHO$ac_delim
31327 RANLIB!$RANLIB$ac_delim
31328 CXXCPP!$CXXCPP$ac_delim
31330 FFLAGS!$FFLAGS$ac_delim
31331 ac_ct_F77!$ac_ct_F77$ac_delim
31332 LIBTOOL!$LIBTOOL$ac_delim
31333 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
31335 LIBNSL!$LIBNSL$ac_delim
31336 PKG_CONFIG!$PKG_CONFIG$ac_delim
31337 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
31338 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
31339 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
31340 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
31341 LIBSOCKET!$LIBSOCKET$ac_delim
31342 LIBCRYPT!$LIBCRYPT$ac_delim
31343 LIBBSD!$LIBBSD$ac_delim
31344 LIBBLKID!$LIBBLKID$ac_delim
31345 KRBDIR!$KRBDIR$ac_delim
31346 KRBLIBS!$KRBLIBS$ac_delim
31347 KRBCFLAGS!$KRBCFLAGS$ac_delim
31348 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
31349 K5VERS!$K5VERS$ac_delim
31350 ALLOCA!$ALLOCA$ac_delim
31351 LIBOBJS!$LIBOBJS$ac_delim
31352 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
31353 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
31354 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
31355 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
31356 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
31357 AM_CFLAGS!$AM_CFLAGS$ac_delim
31358 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
31359 LTLIBOBJS!$LTLIBOBJS$ac_delim
31362 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
31364 elif $ac_last_try; then
31365 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31366 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31367 { (exit 1); exit 1; }; }
31369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31373 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31374 if test -n "$ac_eof"; then
31375 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31376 ac_eof=`expr $ac_eof + 1`
31379 cat >>$CONFIG_STATUS <<_ACEOF
31380 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31384 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31385 s/^/s,@/; s/!/@,|#_!!_#|/
31388 s/'"$ac_delim"'$/,g/; t
31390 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31391 ' >>$CONFIG_STATUS <conf$$subs.sed
31392 rm -f conf$$subs.sed
31393 cat >>$CONFIG_STATUS <<_ACEOF
31400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31402 # trailing colons and then remove the whole line if VPATH becomes empty
31403 # (actually we leave an empty line to preserve line numbers).
31404 if test "x$srcdir" = x.; then
31405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31406 s/:*\$(srcdir):*/:/
31407 s/:*\${srcdir}:*/:/
31409 s/^\([^=]*=[ ]*\):*/\1/
31415 cat >>$CONFIG_STATUS <<\_ACEOF
31416 fi # test -n "$CONFIG_FILES"
31419 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31422 :[FHLC]) ac_mode=$ac_tag; continue;;
31424 case $ac_mode$ac_tag in
31426 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31427 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31428 { (exit 1); exit 1; }; };;
31429 :[FH]-) ac_tag=-:-;;
31430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31447 -) ac_f="$tmp/stdin";;
31448 *) # Look for the file first in the build tree, then in the source tree
31449 # (if the path is not absolute). The absolute path cannot be DOS-style,
31450 # because $ac_f cannot contain `:'.
31454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31456 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31457 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31458 { (exit 1); exit 1; }; };;
31460 ac_file_inputs="$ac_file_inputs $ac_f"
31463 # Let's still pretend it is `configure' which instantiates (i.e., don't
31464 # use $as_me), people would be surprised to read:
31465 # /* config.h. Generated by config.status. */
31466 configure_input="Generated from "`IFS=:
31467 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31468 if test x"$ac_file" != x-; then
31469 configure_input="$ac_file. $configure_input"
31470 { echo "$as_me:$LINENO: creating $ac_file" >&5
31471 echo "$as_me: creating $ac_file" >&6;}
31475 *:-:* | *:-) cat >"$tmp/stdin";;
31480 ac_dir=`$as_dirname -- "$ac_file" ||
31481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31482 X"$ac_file" : 'X\(//\)[^/]' \| \
31483 X"$ac_file" : 'X\(//\)$' \| \
31484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31490 /^X\(\/\/\)[^/].*/{
31505 -*) as_dir=./$as_dir;;
31507 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31511 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31512 *) as_qdir=$as_dir;;
31514 as_dirs="'$as_qdir' $as_dirs"
31515 as_dir=`$as_dirname -- "$as_dir" ||
31516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31517 X"$as_dir" : 'X\(//\)[^/]' \| \
31518 X"$as_dir" : 'X\(//\)$' \| \
31519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31525 /^X\(\/\/\)[^/].*/{
31538 test -d "$as_dir" && break
31540 test -z "$as_dirs" || eval "mkdir $as_dirs"
31541 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31543 { (exit 1); exit 1; }; }; }
31547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31550 # A ".." for each directory in $ac_dir_suffix.
31551 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31552 case $ac_top_builddir_sub in
31553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31557 ac_abs_top_builddir=$ac_pwd
31558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31559 # for backward compatibility:
31560 ac_top_builddir=$ac_top_build_prefix
31563 .) # We are building in place.
31565 ac_top_srcdir=$ac_top_builddir_sub
31566 ac_abs_top_srcdir=$ac_pwd ;;
31567 [\\/]* | ?:[\\/]* ) # Absolute name.
31568 ac_srcdir=$srcdir$ac_dir_suffix;
31569 ac_top_srcdir=$srcdir
31570 ac_abs_top_srcdir=$srcdir ;;
31571 *) # Relative name.
31572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31573 ac_top_srcdir=$ac_top_build_prefix$srcdir
31574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31587 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31589 ac_MKDIR_P=$MKDIR_P
31591 [\\/$]* | ?:[\\/]* ) ;;
31592 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31596 cat >>$CONFIG_STATUS <<\_ACEOF
31597 # If the template does not know about datarootdir, expand it.
31598 # FIXME: This hack should be removed a few years after 2.60.
31599 ac_datarootdir_hack=; ac_datarootdir_seen=
31601 case `sed -n '/datarootdir/ {
31610 ' $ac_file_inputs` in
31611 *datarootdir*) ac_datarootdir_seen=yes;;
31612 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31613 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31614 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31616 cat >>$CONFIG_STATUS <<_ACEOF
31617 ac_datarootdir_hack='
31618 s&@datadir@&$datadir&g
31619 s&@docdir@&$docdir&g
31620 s&@infodir@&$infodir&g
31621 s&@localedir@&$localedir&g
31622 s&@mandir@&$mandir&g
31623 s&\\\${datarootdir}&$datarootdir&g' ;;
31627 # Neutralize VPATH when `$srcdir' = `.'.
31628 # Shell code in configure.ac might set extrasub.
31629 # FIXME: do we really want to maintain this feature?
31630 cat >>$CONFIG_STATUS <<_ACEOF
31634 cat >>$CONFIG_STATUS <<\_ACEOF
31636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31637 s&@configure_input@&$configure_input&;t t
31638 s&@top_builddir@&$ac_top_builddir_sub&;t t
31639 s&@srcdir@&$ac_srcdir&;t t
31640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31641 s&@top_srcdir@&$ac_top_srcdir&;t t
31642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31643 s&@builddir@&$ac_builddir&;t t
31644 s&@abs_builddir@&$ac_abs_builddir&;t t
31645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31646 s&@INSTALL@&$ac_INSTALL&;t t
31647 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31648 $ac_datarootdir_hack
31649 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31652 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31654 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31655 which seems to be undefined. Please make sure it is defined." >&5
31656 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31657 which seems to be undefined. Please make sure it is defined." >&2;}
31661 -) cat "$tmp/out"; rm -f "$tmp/out";;
31662 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31671 # Transform confdefs.h into a sed script `conftest.defines', that
31672 # substitutes the proper values into config.h.in to produce config.h.
31673 rm -f conftest.defines conftest.tail
31674 # First, append a space to every undef/define line, to ease matching.
31675 echo 's/$/ /' >conftest.defines
31676 # Then, protect against being on the right side of a sed subst, or in
31677 # an unquoted here document, in config.status. If some macros were
31678 # called several times there might be several #defines for the same
31679 # symbol, which is useless. But do not sort them, since the last
31680 # AC_DEFINE must be honored.
31681 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31682 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31683 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31684 # PARAMS is the parameter list in the macro definition--in most cases, it's
31685 # just an empty string.
31686 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31687 ac_dB='\\)[ (].*,\\1define\\2'
31695 s/^[ ]*#[ ]*define[ ][ ]*//
31700 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31701 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31702 ' >>conftest.defines
31704 # Remove the space that was appended to ease matching.
31705 # Then replace #undef with comments. This is necessary, for
31706 # example, in the case of _POSIX_SOURCE, which is predefined and required
31707 # on some systems where configure will not decide to define it.
31708 # (The regexp can be short, since the line contains either #define or #undef.)
31710 s,^[ #]*u.*,/* & */,' >>conftest.defines
31712 # Break up conftest.defines:
31713 ac_max_sed_lines=50
31715 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31716 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31717 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31719 ac_in='$ac_file_inputs'
31720 ac_out='"$tmp/out1"'
31721 ac_nxt='"$tmp/out2"'
31725 # Write a here document:
31726 cat >>$CONFIG_STATUS <<_ACEOF
31727 # First, check the format of the line:
31728 cat >"\$tmp/defines.sed" <<\\CEOF
31729 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31730 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31734 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31736 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31737 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31738 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31739 grep . conftest.tail >/dev/null || break
31740 rm -f conftest.defines
31741 mv conftest.tail conftest.defines
31743 rm -f conftest.defines conftest.tail
31745 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31746 cat >>$CONFIG_STATUS <<\_ACEOF
31747 if test x"$ac_file" != x-; then
31748 echo "/* $configure_input */" >"$tmp/config.h"
31749 cat "$ac_result" >>"$tmp/config.h"
31750 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31751 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31752 echo "$as_me: $ac_file is unchanged" >&6;}
31755 mv "$tmp/config.h" $ac_file
31758 echo "/* $configure_input */"
31762 # Compute $ac_file's index in $config_headers.
31765 for _am_header in $config_headers :; do
31766 case $_am_header in
31767 $_am_arg | $_am_arg:* )
31770 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31773 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31774 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31775 X"$_am_arg" : 'X\(//\)[^/]' \| \
31776 X"$_am_arg" : 'X\(//\)$' \| \
31777 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31783 /^X\(\/\/\)[^/].*/{
31795 s/.*/./; q'`/stamp-h$_am_stamp_count
31798 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31799 echo "$as_me: executing $ac_file commands" >&6;}
31804 case $ac_file$ac_mode in
31805 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31806 # Strip MF so we end up with the name of the file.
31807 mf=`echo "$mf" | sed -e 's/:.*$//'`
31808 # Check whether this is an Automake generated Makefile or not.
31809 # We used to match only the files named `Makefile.in', but
31810 # some people rename them; so instead we look at the file content.
31811 # Grep'ing the first line is not enough: some people post-process
31812 # each Makefile.in and add a new line on top of each file to say so.
31813 # Grep'ing the whole file is not good either: AIX grep has a line
31814 # limit of 2048, but all sed's we know have understand at least 4000.
31815 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31816 dirpart=`$as_dirname -- "$mf" ||
31817 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31818 X"$mf" : 'X\(//\)[^/]' \| \
31819 X"$mf" : 'X\(//\)$' \| \
31820 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31826 /^X\(\/\/\)[^/].*/{
31842 # Extract the definition of DEPDIR, am__include, and am__quote
31843 # from the Makefile without running `make'.
31844 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31845 test -z "$DEPDIR" && continue
31846 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31847 test -z "am__include" && continue
31848 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31849 # When using ansi2knr, U may be empty or an underscore; expand it
31850 U=`sed -n 's/^U = //p' < "$mf"`
31851 # Find all dependency output files, they are included files with
31852 # $(DEPDIR) in their names. We invoke sed twice because it is the
31853 # simplest approach to changing $(DEPDIR) to its actual value in the
31855 for file in `sed -n "
31856 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31857 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31858 # Make sure the directory exists.
31859 test -f "$dirpart/$file" && continue
31860 fdir=`$as_dirname -- "$file" ||
31861 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31862 X"$file" : 'X\(//\)[^/]' \| \
31863 X"$file" : 'X\(//\)$' \| \
31864 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31870 /^X\(\/\/\)[^/].*/{
31883 { as_dir=$dirpart/$fdir
31885 -*) as_dir=./$as_dir;;
31887 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31891 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31892 *) as_qdir=$as_dir;;
31894 as_dirs="'$as_qdir' $as_dirs"
31895 as_dir=`$as_dirname -- "$as_dir" ||
31896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31897 X"$as_dir" : 'X\(//\)[^/]' \| \
31898 X"$as_dir" : 'X\(//\)$' \| \
31899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31905 /^X\(\/\/\)[^/].*/{
31918 test -d "$as_dir" && break
31920 test -z "$as_dirs" || eval "mkdir $as_dirs"
31921 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31922 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31923 { (exit 1); exit 1; }; }; }
31924 # echo "creating $dirpart/$file"
31925 echo '# dummy' > "$dirpart/$file"
31934 { (exit 0); exit 0; }
31936 chmod +x $CONFIG_STATUS
31937 ac_clean_files=$ac_clean_files_save
31940 # configure is writing to config.log, and then calls config.status.
31941 # config.status does its own redirection, appending to config.log.
31942 # Unfortunately, on DOS this fails, as config.log is still kept open
31943 # by configure, so config.status won't be able to write to it; its
31944 # output is simply discarded. So we exec the FD to /dev/null,
31945 # effectively closing config.log, so it can be properly (re)opened and
31946 # appended to by config.status. When coming back to configure, we
31947 # need to make the FD available again.
31948 if test "$no_create" != yes; then
31950 ac_config_status_args=
31951 test "$silent" = yes &&
31952 ac_config_status_args="$ac_config_status_args --quiet"
31954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31957 # would make configure fail if this is the last instruction.
31958 $ac_cs_success || { (exit 1); exit 1; }