2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.0-rc2.
5 # Report bugs to <nfs@lists.sf.net>.
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.0-rc2'
732 PACKAGE_STRING='linux nfs-utils 1.1.0-rc2'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
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
931 ac_precious_vars='build_alias
953 # Initialize some variables set by options.
955 ac_init_version=false
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
965 program_transform_name=s,x,x,
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_$ac_feature=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079 eval enable_$ac_feature=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1243 -site=* | --site=* | --sit=*)
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1270 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 { echo "$as_me: error: invalid package name: $ac_package" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1276 eval with_$ac_package=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1285 eval with_$ac_package=no ;;
1288 # Obsolete; use --with-x.
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1305 -*) { echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307 { (exit 1); exit 1; }; }
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315 { (exit 1); exit 1; }; }
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 { echo "$as_me: error: missing argument to $ac_option" >&2
1333 { (exit 1); exit 1; }; }
1336 # Be sure to have absolute directory names.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1342 eval ac_val=\$$ac_var
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348 { (exit 1); exit 1; }; }
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1356 target=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used." >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372 test "$silent" = yes && exec 6>/dev/null
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 { echo "$as_me: error: Working directory cannot be determined" >&2
1379 { (exit 1); exit 1; }; }
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 { echo "$as_me: error: pwd does not report name of working directory" >&2
1382 { (exit 1); exit 1; }; }
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387 ac_srcdir_defaulted=yes
1388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir=`$as_dirname -- "$0" ||
1390 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$0" : 'X\(//\)[^/]' \| \
1392 X"$0" : 'X\(//\)$' \| \
1393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1417 ac_srcdir_defaulted=no
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422 { (exit 1); exit 1; }; }
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1427 { (exit 1); exit 1; }; }
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 # Report the --help message.
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1453 \`configure' configures linux nfs-utils 1.1.0-rc2 to adapt to many kinds of systems.
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1460 Defaults for the options are specified in brackets.
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1484 For better control, use the options below.
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive ) echo "Configuration of linux nfs-utils 1.1.0-rc2:";;
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --enable-maintainer-mode enable make rules and dependencies not useful
1531 (and sometimes confusing) to the casual installer
1532 --enable-nfsv3 enable support for NFSv3 [default=yes]
1533 --enable-nfsv4 enable support for NFSv4 [default=yes]
1534 --enable-gss enable support for rpcsec_gss [default=yes]
1535 --enable-kprefix install progs as rpc.knfsd etc
1536 --enable-secure-statd Only lockd can use statd (security)
1537 --enable-rquotad enable rquotad [default=yes]
1538 --without-uuid Exclude uuid support and so avoid possibly buggy
1540 --enable-mount Create mount.nfs and don't use the util-linux
1541 mount(8) functionality. [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 GSSAPI, overriding pkg-config
1591 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1596 Report bugs to <nfs@lists.sf.net>.
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" || continue
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1624 .) # We are building in place.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1648 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1657 linux nfs-utils configure 1.1.0-rc2
1658 generated by GNU Autoconf 2.61
1660 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1661 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1667 cat >config.log <<_ACEOF
1668 This file contains any messages produced by compilers while
1669 running configure, to aid debugging if configure makes a mistake.
1671 It was created by linux nfs-utils $as_me 1.1.0-rc2, which was
1672 generated by GNU Autoconf 2.61. Invocation command line was
1684 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1685 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1686 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1687 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1688 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1691 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1693 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1694 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1695 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1696 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1697 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1698 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1699 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 test -z "$as_dir" && as_dir=.
1708 echo "PATH: $as_dir"
1724 # Keep a trace of the command line.
1725 # Strip out --no-create and --no-recursion so they do not pile up.
1726 # Strip out --silent because we don't want to record it for future runs.
1727 # Also quote any args containing shell meta-characters.
1728 # Make two passes to allow for proper duplicate-argument suppression.
1732 ac_must_keep_next=false
1738 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740 | -silent | --silent | --silen | --sile | --sil)
1743 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1749 if test $ac_must_keep_next = true; then
1750 ac_must_keep_next=false # Got value, back to normal.
1753 *=* | --config-cache | -C | -disable-* | --disable-* \
1754 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1755 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1756 | -with-* | --with-* | -without-* | --without-* | --x)
1757 case "$ac_configure_args0 " in
1758 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1761 -* ) ac_must_keep_next=true ;;
1764 ac_configure_args="$ac_configure_args '$ac_arg'"
1769 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1770 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772 # When interrupted or exit'd, cleanup temporary files, and complete
1773 # config.log. We remove comments because anyway the quotes in there
1774 # would cause problems or look ugly.
1775 # WARNING: Use '\'' to represent an apostrophe within the trap.
1776 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1777 trap 'exit_status=$?
1778 # Save into config.log some information that might help in debugging.
1783 ## ---------------- ##
1784 ## Cache variables. ##
1785 ## ---------------- ##
1788 # The following way of writing the cache mishandles newlines in values,
1790 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1791 eval ac_val=\$$ac_var
1795 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1796 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1799 _ | IFS | as_nl) ;; #(
1800 *) $as_unset $ac_var ;;
1805 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806 *${as_nl}ac_space=\ *)
1808 "s/'\''/'\''\\\\'\'''\''/g;
1809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1820 ## ----------------- ##
1821 ## Output variables. ##
1822 ## ----------------- ##
1825 for ac_var in $ac_subst_vars
1827 eval ac_val=\$$ac_var
1829 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 echo "$ac_var='\''$ac_val'\''"
1835 if test -n "$ac_subst_files"; then
1837 ## ------------------- ##
1838 ## File substitutions. ##
1839 ## ------------------- ##
1842 for ac_var in $ac_subst_files
1844 eval ac_val=\$$ac_var
1846 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 echo "$ac_var='\''$ac_val'\''"
1853 if test -s confdefs.h; then
1863 test "$ac_signal" != 0 &&
1864 echo "$as_me: caught signal $ac_signal"
1865 echo "$as_me: exit $exit_status"
1867 rm -f core *.core core.conftest.* &&
1868 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1871 for ac_signal in 1 2 13 15; do
1872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1877 rm -f -r conftest* confdefs.h
1879 # Predefined preprocessor variables.
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 # Let the site file select an alternate cache file if it wants to.
1907 # Prefer explicitly selected file to automatically selected ones.
1908 if test -n "$CONFIG_SITE"; then
1909 set x "$CONFIG_SITE"
1910 elif test "x$prefix" != xNONE; then
1911 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1913 set x "$ac_default_prefix/share/config.site" \
1914 "$ac_default_prefix/etc/config.site"
1919 if test -r "$ac_site_file"; then
1920 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921 echo "$as_me: loading site script $ac_site_file" >&6;}
1922 sed 's/^/| /' "$ac_site_file" >&5
1927 if test -r "$cache_file"; then
1928 # Some versions of bash will fail to source /dev/null (special
1929 # files actually), so we avoid doing that.
1930 if test -f "$cache_file"; then
1931 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932 echo "$as_me: loading cache $cache_file" >&6;}
1934 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1935 *) . "./$cache_file";;
1939 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940 echo "$as_me: creating cache $cache_file" >&6;}
1944 # Check that the precious variables saved in the cache have kept the same
1946 ac_cache_corrupted=false
1947 for ac_var in $ac_precious_vars; do
1948 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1949 eval ac_new_set=\$ac_env_${ac_var}_set
1950 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1951 eval ac_new_val=\$ac_env_${ac_var}_value
1952 case $ac_old_set,$ac_new_set in
1954 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1956 ac_cache_corrupted=: ;;
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1963 if test "x$ac_old_val" != "x$ac_new_val"; then
1964 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1965 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1966 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1967 echo "$as_me: former value: $ac_old_val" >&2;}
1968 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1969 echo "$as_me: current value: $ac_new_val" >&2;}
1970 ac_cache_corrupted=:
1973 # Pass precious variables to config.status.
1974 if test "$ac_new_set" = set; then
1976 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1977 *) ac_arg=$ac_var=$ac_new_val ;;
1979 case " $ac_configure_args " in
1980 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1981 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 if $ac_cache_corrupted; then
1986 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1987 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1988 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1989 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1990 { (exit 1); exit 1; }; }
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2026 if test -f "$ac_dir/install-sh"; then
2028 ac_install_sh="$ac_aux_dir/install-sh -c"
2030 elif test -f "$ac_dir/install.sh"; then
2032 ac_install_sh="$ac_aux_dir/install.sh -c"
2034 elif test -f "$ac_dir/shtool"; then
2036 ac_install_sh="$ac_aux_dir/shtool install -c"
2040 if test -z "$ac_aux_dir"; then
2041 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2042 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2043 { (exit 1); exit 1; }; }
2046 # These three variables are undocumented and unsupported,
2047 # and are intended to be withdrawn in a future Autoconf release.
2048 # They can cause serious problems if a builder's source tree is in a directory
2049 # whose full name contains unusual characters.
2050 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2051 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2052 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2055 # Make sure we can run config.sub.
2056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2057 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2058 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2059 { (exit 1); exit 1; }; }
2061 { echo "$as_me:$LINENO: checking build system type" >&5
2062 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_build+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 ac_build_alias=$build_alias
2067 test "x$ac_build_alias" = x &&
2068 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069 test "x$ac_build_alias" = x &&
2070 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072 { (exit 1); exit 1; }; }
2073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
2079 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080 echo "${ECHO_T}$ac_cv_build" >&6; }
2081 case $ac_cv_build in
2083 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2084 echo "$as_me: error: invalid value of canonical build" >&2;}
2085 { (exit 1); exit 1; }; };;
2088 ac_save_IFS=$IFS; IFS='-'
2094 # Remember, the first character of IFS is used to create $*,
2095 # except with old shells:
2098 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2101 { echo "$as_me:$LINENO: checking host system type" >&5
2102 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_host+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 if test "x$host_alias" = x; then
2107 ac_cv_host=$ac_cv_build
2109 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2110 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2111 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2112 { (exit 1); exit 1; }; }
2116 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2117 echo "${ECHO_T}$ac_cv_host" >&6; }
2120 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2121 echo "$as_me: error: invalid value of canonical host" >&2;}
2122 { (exit 1); exit 1; }; };;
2125 ac_save_IFS=$IFS; IFS='-'
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2139 am__api_version='1.10'
2141 # Find a good install program. We prefer a C program (faster),
2142 # so one script is as good as another. But avoid the broken or
2143 # incompatible versions:
2144 # SysV /etc/install, /usr/sbin/install
2145 # SunOS /usr/etc/install
2146 # IRIX /sbin/install
2148 # AmigaOS /C/install, which installs bootblocks on floppy discs
2149 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2150 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2151 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2152 # OS/2's system install, which has a completely different semantic
2153 # ./install, which can be erroneously created by make from ./install.sh.
2154 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2155 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2156 if test -z "$INSTALL"; then
2157 if test "${ac_cv_path_install+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 # Account for people who put trailing slashes in PATH elements.
2167 ./ | .// | /cC/* | \
2168 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2169 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2172 # OSF1 and SCO ODT 3.0 have their own names for install.
2173 # Don't use installbsd from OSF since it installs stuff as root
2175 for ac_prog in ginstall scoinst install; do
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2178 if test $ac_prog = install &&
2179 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2180 # AIX install. It has an incompatible calling convention.
2182 elif test $ac_prog = install &&
2183 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2184 # program-specific install script used by HP pwplus--don't use.
2187 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2200 if test "${ac_cv_path_install+set}" = set; then
2201 INSTALL=$ac_cv_path_install
2203 # As a last resort, use the slow shell script. Don't cache a
2204 # value for INSTALL within a source directory, because that will
2205 # break other packages using the cache if that directory is
2206 # removed, or if the value is a relative name.
2207 INSTALL=$ac_install_sh
2210 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2211 echo "${ECHO_T}$INSTALL" >&6; }
2213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2214 # It thinks the first close brace ends the variable substitution.
2215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2221 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2222 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2225 echo timestamp > conftest.file
2226 # Do `set' in a subshell so we don't clobber the current shell's
2227 # arguments. Must try -L first in case configure is actually a
2228 # symlink; some systems play weird games with the mod time of symlinks
2229 # (eg FreeBSD returns the mod time of the symlink's containing
2232 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2233 if test "$*" = "X"; then
2235 set X `ls -t $srcdir/configure conftest.file`
2238 if test "$*" != "X $srcdir/configure conftest.file" \
2239 && test "$*" != "X conftest.file $srcdir/configure"; then
2241 # If neither matched, then we have a broken ls. This can happen
2242 # if, for instance, CONFIG_SHELL is bash and it inherits a
2243 # broken ls alias from the environment. This has actually
2244 # happened. Such a system could not be considered "sane".
2245 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2246 alias in your environment" >&5
2247 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2248 alias in your environment" >&2;}
2249 { (exit 1); exit 1; }; }
2252 test "$2" = conftest.file
2258 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2259 Check your system clock" >&5
2260 echo "$as_me: error: newly created file is older than distributed files!
2261 Check your system clock" >&2;}
2262 { (exit 1); exit 1; }; }
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2266 test "$program_prefix" != NONE &&
2267 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2268 # Use a double $ so make ignores it.
2269 test "$program_suffix" != NONE &&
2270 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2271 # Double any \ or $. echo might interpret backslashes.
2272 # By default was `s,x,x', remove it if useless.
2273 cat <<\_ACEOF >conftest.sed
2274 s/[\\$]/&&/g;s/;s,x,x,$//
2276 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2279 # expand $ac_aux_dir to an absolute path
2280 am_aux_dir=`cd $ac_aux_dir && pwd`
2282 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2283 # Use eval to expand $SHELL
2284 if eval "$MISSING --run true"; then
2285 am_missing_run="$MISSING --run "
2288 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2289 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2292 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2293 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2294 if test -z "$MKDIR_P"; then
2295 if test "${ac_cv_path_mkdir+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2302 test -z "$as_dir" && as_dir=.
2303 for ac_prog in mkdir gmkdir; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2306 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2307 'mkdir (GNU coreutils) '* | \
2308 'mkdir (coreutils) '* | \
2309 'mkdir (fileutils) '4.1*)
2310 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2320 if test "${ac_cv_path_mkdir+set}" = set; then
2321 MKDIR_P="$ac_cv_path_mkdir -p"
2323 # As a last resort, use the slow shell script. Don't cache a
2324 # value for MKDIR_P within a source directory, because that will
2325 # break other packages using the cache if that directory is
2326 # removed, or if the value is a relative name.
2327 test -d ./--version && rmdir ./--version
2328 MKDIR_P="$ac_install_sh -d"
2331 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2332 echo "${ECHO_T}$MKDIR_P" >&6; }
2336 [\\/$]* | ?:[\\/]*) ;;
2337 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2340 for ac_prog in gawk mawk nawk awk
2342 # Extract the first word of "$ac_prog", so it can be a program name with args.
2343 set dummy $ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_AWK+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 if test -n "$AWK"; then
2350 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_AWK="$ac_prog"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 if test -n "$AWK"; then
2371 { echo "$as_me:$LINENO: result: $AWK" >&5
2372 echo "${ECHO_T}$AWK" >&6; }
2374 { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2379 test -n "$AWK" && break
2382 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2383 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2384 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2385 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat >conftest.make <<\_ACEOF
2391 @echo '@@@%%%=$(MAKE)=@@@%%%'
2393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2394 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2396 eval ac_cv_prog_make_${ac_make}_set=yes;;
2398 eval ac_cv_prog_make_${ac_make}_set=no;;
2402 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2403 { echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2409 SET_MAKE="MAKE=${MAKE-make}"
2412 rm -rf .tst 2>/dev/null
2413 mkdir .tst 2>/dev/null
2414 if test -d .tst; then
2419 rmdir .tst 2>/dev/null
2421 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2422 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2423 # is not polluted with repeated "-I."
2424 am__isrc=' -I$(srcdir)'
2425 # test to see if srcdir already configured
2426 if test -f $srcdir/config.status; then
2427 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2428 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2429 { (exit 1); exit 1; }; }
2433 # test whether we have cygpath
2434 if test -z "$CYGPATH_W"; then
2435 if (cygpath --version) >/dev/null 2>/dev/null; then
2436 CYGPATH_W='cygpath -w'
2443 # Define the identity of the package.
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE "$PACKAGE"
2453 cat >>confdefs.h <<_ACEOF
2454 #define VERSION "$VERSION"
2457 # Some tools Automake needs.
2459 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2462 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2465 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2468 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2471 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2473 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2475 # Installed binaries are usually stripped using `strip' when the user
2476 # run `make install-strip'. However `strip' might not be the right
2477 # tool to use in cross-compilation environments, therefore Automake
2478 # will honor the `STRIP' environment variable to overrule this program.
2479 if test "$cross_compiling" != no; then
2480 if test -n "$ac_tool_prefix"; then
2481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2482 set dummy ${ac_tool_prefix}strip; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_STRIP+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test -n "$STRIP"; then
2489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 STRIP=$ac_cv_prog_STRIP
2509 if test -n "$STRIP"; then
2510 { echo "$as_me:$LINENO: result: $STRIP" >&5
2511 echo "${ECHO_T}$STRIP" >&6; }
2513 { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2519 if test -z "$ac_cv_prog_STRIP"; then
2521 # Extract the first word of "strip", so it can be a program name with args.
2522 set dummy strip; ac_word=$2
2523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2525 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$ac_ct_STRIP"; then
2529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_ac_ct_STRIP="strip"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2549 if test -n "$ac_ct_STRIP"; then
2550 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2551 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2553 { echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6; }
2557 if test "x$ac_ct_STRIP" = x; then
2560 case $cross_compiling:$ac_tool_warned in
2562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2563 whose name does not start with the host triplet. If you think this
2564 configuration is useful to you, please write to autoconf@gnu.org." >&5
2565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2566 whose name does not start with the host triplet. If you think this
2567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2568 ac_tool_warned=yes ;;
2573 STRIP="$ac_cv_prog_STRIP"
2577 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579 # We need awk for the "check" target. The system "awk" is bad on
2581 # Always define AMTAR for backward compatibility.
2583 AMTAR=${AMTAR-"${am_missing_run}tar"}
2585 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2593 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2594 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2595 # Check whether --enable-maintainer-mode was given.
2596 if test "${enable_maintainer_mode+set}" = set; then
2597 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2599 USE_MAINTAINER_MODE=no
2602 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2603 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2604 if test $USE_MAINTAINER_MODE = yes; then
2605 MAINTAINER_MODE_TRUE=
2606 MAINTAINER_MODE_FALSE='#'
2608 MAINTAINER_MODE_TRUE='#'
2609 MAINTAINER_MODE_FALSE=
2612 MAINT=$MAINTAINER_MODE_TRUE
2617 # Check whether --with-release was given.
2618 if test "${with_release+set}" = set; then
2619 withval=$with_release; RELEASE=$withval
2626 # Check whether --with-statedir was given.
2627 if test "${with_statedir+set}" = set; then
2628 withval=$with_statedir; statedir=$withval
2630 statedir=/var/lib/nfs
2635 # Check whether --with-statduser was given.
2636 if test "${with_statduser+set}" = set; then
2637 withval=$with_statduser; statduser=$withval
2639 if test "x$cross_compiling" = "xno"; then
2640 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2652 # Check whether --with-start-statd was given.
2653 if test "${with_start_statd+set}" = set; then
2654 withval=$with_start_statd; startstatd=$withval
2656 startstatd=/usr/sbin/start-statd
2662 cat >>confdefs.h <<_ACEOF
2663 #define START_STATD "$startstatd"
2666 # Check whether --enable-nfsv3 was given.
2667 if test "${enable_nfsv3+set}" = set; then
2668 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2673 if test "$enable_nfsv3" = yes; then
2675 cat >>confdefs.h <<\_ACEOF
2676 #define NFS3_SUPPORTED 1
2683 # Check whether --enable-nfsv4 was given.
2684 if test "${enable_nfsv4+set}" = set; then
2685 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2690 if test "$enable_nfsv4" = yes; then
2692 cat >>confdefs.h <<\_ACEOF
2693 #define NFS4_SUPPORTED 1
2703 if test "$enable_nfsv4" = "yes"; then
2705 CONFIG_NFSV4_FALSE='#'
2707 CONFIG_NFSV4_TRUE='#'
2711 # Check whether --enable-gss was given.
2712 if test "${enable_gss+set}" = set; then
2713 enableval=$enable_gss; enable_gss=$enableval
2718 if test "$enable_gss" = yes; then
2720 cat >>confdefs.h <<\_ACEOF
2721 #define GSS_SUPPORTED 1
2734 if test "$enable_gss" = "yes"; then
2736 CONFIG_GSS_FALSE='#'
2742 # Check whether --enable-kprefix was given.
2743 if test "${enable_kprefix+set}" = set; then
2744 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2750 # Check whether --enable-secure-statd was given.
2751 if test "${enable_secure_statd+set}" = set; then
2752 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2757 if test "$secure_statd" = yes; then
2759 cat >>confdefs.h <<\_ACEOF
2760 #define RESTRICTED_STATD 1
2765 # Check whether --enable-rquotad was given.
2766 if test "${enable_rquotad+set}" = set; then
2767 enableval=$enable_rquotad; enable_rquotad=$enableval
2772 if test "$enable_rquotad" = yes; then
2777 if test "$enable_rquotad" = "yes"; then
2778 CONFIG_RQUOTAD_TRUE=
2779 CONFIG_RQUOTAD_FALSE='#'
2781 CONFIG_RQUOTAD_TRUE='#'
2782 CONFIG_RQUOTAD_FALSE=
2786 # Check whether --with-rpcgen was given.
2787 if test "${with_rpcgen+set}" = set; then
2788 withval=$with_rpcgen; rpcgen_path=$withval
2794 if test "$rpcgen_path" == "yes"; then
2795 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2796 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2797 elif test "$rpcgen_path" != "internal"; then
2798 RPCGEN_PATH=$rpcgen_path
2801 if test "$RPCGEN_PATH" == ""; then
2803 CONFIG_RPCGEN_FALSE='#'
2805 CONFIG_RPCGEN_TRUE='#'
2806 CONFIG_RPCGEN_FALSE=
2809 # Check whether --enable-uuid was given.
2810 if test "${enable_uuid+set}" = set; then
2811 enableval=$enable_uuid; if test "$enableval" = "yes" ; then use_blkid=1; else use_blkid=0; fi
2817 cat >>confdefs.h <<_ACEOF
2818 #define USE_BLKID $use_blkid
2821 # Check whether --enable-mount was given.
2822 if test "${enable_mount+set}" = set; then
2823 enableval=$enable_mount; enable_mount=$enableval
2828 if test "$enable_mount" = "yes"; then
2830 CONFIG_MOUNT_FALSE='#'
2832 CONFIG_MOUNT_TRUE='#'
2837 # Check whether user wants TCP wrappers support
2838 DEPDIR="${am__leading_dot}deps"
2840 ac_config_commands="$ac_config_commands depfiles"
2843 am_make=${MAKE-make}
2844 cat > confinc << 'END'
2849 # If we don't find an include directive, just comment out the code.
2850 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2851 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2855 # First try GNU make style include.
2856 echo "include confinc" > confmf
2857 # We grep out `Entering directory' and `Leaving directory'
2858 # messages which can occur if `w' ends up in MAKEFLAGS.
2859 # In particular we don't look at `^make:' because GNU make might
2860 # be invoked under some other name (usually "gmake"), in which
2861 # case it prints its new name instead of `make'.
2862 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2867 # Now try BSD make style include.
2868 if test "$am__include" = "#"; then
2869 echo '.include "confinc"' > confmf
2870 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2871 am__include=.include
2878 { echo "$as_me:$LINENO: result: $_am_result" >&5
2879 echo "${ECHO_T}$_am_result" >&6; }
2880 rm -f confinc confmf
2882 # Check whether --enable-dependency-tracking was given.
2883 if test "${enable_dependency_tracking+set}" = set; then
2884 enableval=$enable_dependency_tracking;
2887 if test "x$enable_dependency_tracking" != xno; then
2888 am_depcomp="$ac_aux_dir/depcomp"
2891 if test "x$enable_dependency_tracking" != xno; then
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 if test -n "$CC"; then
2935 { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2944 if test -z "$ac_cv_prog_CC"; then
2946 # Extract the first word of "gcc", so it can be a program name with args.
2947 set dummy gcc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$ac_ct_CC"; then
2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_prog_ac_ct_CC="gcc"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974 if test -n "$ac_ct_CC"; then
2975 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2976 echo "${ECHO_T}$ac_ct_CC" >&6; }
2978 { echo "$as_me:$LINENO: result: no" >&5
2979 echo "${ECHO_T}no" >&6; }
2982 if test "x$ac_ct_CC" = x; then
2985 case $cross_compiling:$ac_tool_warned in
2987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2988 whose name does not start with the host triplet. If you think this
2989 configuration is useful to you, please write to autoconf@gnu.org." >&5
2990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2991 whose name does not start with the host triplet. If you think this
2992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2993 ac_tool_warned=yes ;;
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
3005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="${ac_tool_prefix}cc"
3021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test -n "$CC"; then
3032 { echo "$as_me:$LINENO: result: $CC" >&5
3033 echo "${ECHO_T}$CC" >&6; }
3035 { echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; }
3042 if test -z "$CC"; then
3043 # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_CC+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062 ac_prog_rejected=yes
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 if test $ac_prog_rejected = yes; then
3074 # We found a bogon in the path, so make sure we never use it.
3075 set dummy $ac_cv_prog_CC
3077 if test $# != 0; then
3078 # We chose a different compiler from the bogus one.
3079 # However, it has the same basename, so the bogon will be chosen
3080 # first if we set CC to just the basename; use the full file name.
3082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3088 if test -n "$CC"; then
3089 { echo "$as_me:$LINENO: result: $CC" >&5
3090 echo "${ECHO_T}$CC" >&6; }
3092 { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3098 if test -z "$CC"; then
3099 if test -n "$ac_tool_prefix"; then
3100 for ac_prog in cl.exe
3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3106 if test "${ac_cv_prog_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 if test -n "$CC"; then
3131 { echo "$as_me:$LINENO: result: $CC" >&5
3132 echo "${ECHO_T}$CC" >&6; }
3134 { echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6; }
3139 test -n "$CC" && break
3142 if test -z "$CC"; then
3144 for ac_prog in cl.exe
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 if test -n "$ac_ct_CC"; then
3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_ac_ct_CC="$ac_prog"
3164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3176 echo "${ECHO_T}$ac_ct_CC" >&6; }
3178 { echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6; }
3183 test -n "$ac_ct_CC" && break
3186 if test "x$ac_ct_CC" = x; then
3189 case $cross_compiling:$ac_tool_warned in
3191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3192 whose name does not start with the host triplet. If you think this
3193 configuration is useful to you, please write to autoconf@gnu.org." >&5
3194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3195 whose name does not start with the host triplet. If you think this
3196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3197 ac_tool_warned=yes ;;
3206 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: no acceptable C compiler found in \$PATH
3209 See \`config.log' for more details." >&2;}
3210 { (exit 1); exit 1; }; }
3212 # Provide some information about the compiler.
3213 echo "$as_me:$LINENO: checking for C compiler version" >&5
3214 ac_compiler=`set X $ac_compile; echo $2`
3215 { (ac_try="$ac_compiler --version >&5"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compiler --version >&5") 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }
3225 { (ac_try="$ac_compiler -v >&5"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compiler -v >&5") 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }
3235 { (ac_try="$ac_compiler -V >&5"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compiler -V >&5") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3261 ac_clean_files_save=$ac_clean_files
3262 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3263 # Try to create an executable without -o first, disregard a.out.
3264 # It will help us diagnose broken compilers, and finding out an intuition
3266 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3267 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3268 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270 # List of possible output files, starting from the most likely.
3271 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3272 # only as a last resort. b.out is created by i960 compilers.
3273 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3275 # The IRIX 6 linker writes into existing files which may not be
3276 # executable, retaining their permissions. Remove them first so a
3277 # subsequent execution test works.
3279 for ac_file in $ac_files
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3283 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288 if { (ac_try="$ac_link_default"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_link_default") 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; then
3298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3299 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3300 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3301 # so that the user can short-circuit this test for compilers unknown to
3303 for ac_file in $ac_files ''
3305 test -f "$ac_file" || continue
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3310 # We found the default executable, but exeext='' is most
3314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318 # We set ac_cv_exeext here because the later test for it is not
3319 # safe: cross compilers may not add the suffix if given an `-o'
3320 # argument, so we may need to know it at that point already.
3321 # Even if this section looks crufty: it has the advantage of
3328 test "$ac_cv_exeext" = no && ac_cv_exeext=
3334 { echo "$as_me:$LINENO: result: $ac_file" >&5
3335 echo "${ECHO_T}$ac_file" >&6; }
3336 if test -z "$ac_file"; then
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3341 See \`config.log' for more details." >&5
3342 echo "$as_me: error: C compiler cannot create executables
3343 See \`config.log' for more details." >&2;}
3344 { (exit 77); exit 77; }; }
3347 ac_exeext=$ac_cv_exeext
3349 # Check that the compiler produces executables we can run. If not, either
3350 # the compiler is broken, or we cross compile.
3351 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3352 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3353 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3354 # If not cross compiling, check that we can run a simple program.
3355 if test "$cross_compiling" != yes; then
3356 if { ac_try='./$ac_file'
3357 { (case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_try") 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3368 if test "$cross_compiling" = maybe; then
3371 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3372 If you meant to cross compile, use \`--host'.
3373 See \`config.log' for more details." >&5
3374 echo "$as_me: error: cannot run C compiled programs.
3375 If you meant to cross compile, use \`--host'.
3376 See \`config.log' for more details." >&2;}
3377 { (exit 1); exit 1; }; }
3381 { echo "$as_me:$LINENO: result: yes" >&5
3382 echo "${ECHO_T}yes" >&6; }
3384 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3385 ac_clean_files=$ac_clean_files_save
3386 # Check that the compiler produces executables we can run. If not, either
3387 # the compiler is broken, or we cross compile.
3388 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3390 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3391 echo "${ECHO_T}$cross_compiling" >&6; }
3393 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3395 if { (ac_try="$ac_link"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_link") 2>&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; then
3405 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3406 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3407 # work properly (i.e., refer to `conftest.exe'), while it won't with
3409 for ac_file in conftest.exe conftest conftest.*; do
3410 test -f "$ac_file" || continue
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3413 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3420 See \`config.log' for more details." >&5
3421 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3422 See \`config.log' for more details." >&2;}
3423 { (exit 1); exit 1; }; }
3426 rm -f conftest$ac_cv_exeext
3427 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3428 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3430 rm -f conftest.$ac_ext
3431 EXEEXT=$ac_cv_exeext
3433 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3434 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3435 if test "${ac_cv_objext+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3453 rm -f conftest.o conftest.obj
3454 if { (ac_try="$ac_compile"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_compile") 2>&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; then
3464 for ac_file in conftest.o conftest.obj conftest.*; do
3465 test -f "$ac_file" || continue;
3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3479 See \`config.log' for more details." >&2;}
3480 { (exit 1); exit 1; }; }
3483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3485 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3486 echo "${ECHO_T}$ac_cv_objext" >&6; }
3487 OBJEXT=$ac_cv_objext
3489 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3490 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3491 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.$ac_objext; then
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3541 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3542 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3543 GCC=`test $ac_compiler_gnu = yes && echo yes`
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3547 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3548 if test "${ac_cv_prog_cc_g+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 ac_save_c_werror_flag=$ac_c_werror_flag
3552 ac_c_werror_flag=yes
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3570 rm -f conftest.$ac_objext
3571 if { (ac_try="$ac_compile"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_compile") 2>conftest.er1
3579 grep -v '^ *+' conftest.er1 >conftest.err
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } && {
3584 test -z "$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3586 } && test -s conftest.$ac_objext; then
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && {
3622 test -z "$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest.$ac_objext; then
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3647 rm -f conftest.$ac_objext
3648 if { (ac_try="$ac_compile"
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_compile") 2>conftest.er1
3656 grep -v '^ *+' conftest.er1 >conftest.err
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && {
3661 test -z "$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3663 } && test -s conftest.$ac_objext; then
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3681 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3682 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3683 if test "$ac_test_CFLAGS" = set; then
3684 CFLAGS=$ac_save_CFLAGS
3685 elif test $ac_cv_prog_cc_g = yes; then
3686 if test "$GCC" = yes; then
3692 if test "$GCC" = yes; then
3698 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3699 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3700 if test "${ac_cv_prog_cc_c89+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_cv_prog_cc_c89=no
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3713 #include <sys/types.h>
3714 #include <sys/stat.h>
3715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3716 struct buf { int x; };
3717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3718 static char *e (p, i)
3724 static char *f (char * (*g) (char **, int), char **p, ...)
3729 s = g (p, va_arg (v,int));
3734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3735 function prototypes and stuff, but not '\xHH' hex character constants.
3736 These don't provoke an error unfortunately, instead are silently treated
3737 as 'x'. The following induces an error, until -std is added to get
3738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3739 array size at least. It's necessary to write '\x00'==0 to get something
3740 that's true only with -std. */
3741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3744 inside strings and character constants. */
3746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748 int test (int i, double x);
3749 struct s1 {int (*f) (int a);};
3750 struct s2 {int (*f) (double a);};
3751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 CC="$ac_save_CC $ac_arg"
3766 rm -f conftest.$ac_objext
3767 if { (ac_try="$ac_compile"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3783 ac_cv_prog_cc_c89=$ac_arg
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 rm -f conftest.$ac_ext
3799 case "x$ac_cv_prog_cc_c89" in
3801 { echo "$as_me:$LINENO: result: none needed" >&5
3802 echo "${ECHO_T}none needed" >&6; } ;;
3804 { echo "$as_me:$LINENO: result: unsupported" >&5
3805 echo "${ECHO_T}unsupported" >&6; } ;;
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819 depcc="$CC" am_compiler_list=
3821 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3822 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3823 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3827 # We make a subdir and do the tests there. Otherwise we can end up
3828 # making bogus files that we don't know about and never remove. For
3829 # instance it was reported that on HP-UX the gcc test will end up
3830 # making a dummy file named `D' -- because `-MD' means `put the output
3833 # Copy depcomp to subdir because otherwise we won't find it if we're
3834 # using a relative directory.
3835 cp "$am_depcomp" conftest.dir
3837 # We will build objects and dependencies in a subdirectory because
3838 # it helps to detect inapplicable dependency modes. For instance
3839 # both Tru64's cc and ICC support -MD to output dependencies as a
3840 # side effect of compilation, but ICC will put the dependencies in
3841 # the current directory while Tru64 will put them in the object
3845 am_cv_CC_dependencies_compiler_type=none
3846 if test "$am_compiler_list" = ""; then
3847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3849 for depmode in $am_compiler_list; do
3850 # Setup a source with many dependencies, because some compilers
3851 # like to wrap large dependency lists on column 80 (with \), and
3852 # we should not choose a depcomp mode which is confused by this.
3854 # We need to recreate these files for each test, as the compiler may
3855 # overwrite some of them when testing with obscure command lines.
3856 # This happens at least with the AIX C compiler.
3858 for i in 1 2 3 4 5 6; do
3859 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3860 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3861 # Solaris 8's {/usr,}/bin/sh.
3862 touch sub/conftst$i.h
3864 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3868 # after this tag, mechanisms are not by side-effect, so they'll
3869 # only be used when explicitly requested
3870 if test "x$enable_dependency_tracking" = xyes; then
3878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3879 # mode. It turns out that the SunPro C++ compiler does not properly
3880 # handle `-M -o', and we need to detect this.
3881 if depmode=$depmode \
3882 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3883 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3884 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3885 >/dev/null 2>conftest.err &&
3886 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3887 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3888 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3889 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3890 # icc doesn't choke on unknown options, it will just issue warnings
3891 # or remarks (even with -Werror). So we grep stderr for any message
3892 # that says an option was ignored or not supported.
3893 # When given -MP, icc 7.0 and 7.1 complain thusly:
3894 # icc: Command line warning: ignoring option '-M'; no argument required
3895 # The diagnosis changed in icc 8.0:
3896 # icc: Command line remark: option '-MP' not supported
3897 if (grep 'ignoring option' conftest.err ||
3898 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3899 am_cv_CC_dependencies_compiler_type=$depmode
3908 am_cv_CC_dependencies_compiler_type=none
3912 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3913 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3914 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3917 test "x$enable_dependency_tracking" != xno \
3918 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3920 am__fastdepCC_FALSE='#'
3922 am__fastdepCC_TRUE='#'
3923 am__fastdepCC_FALSE=
3931 # Check whether --with-tcp-wrappers was given.
3932 if test "${with_tcp_wrappers+set}" = set; then
3933 withval=$with_tcp_wrappers; with_tcpw=$withval
3938 if test "x$with_tcpw" != "xno" ; then
3940 saved_LDFLAGS="$LDFLAGS"
3941 saved_CPPFLAGS="$CPPFLAGS"
3942 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3943 if test -d "${with_tcpw}/lib"; then
3944 if test -n "${need_dash_r}"; then
3945 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3947 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3950 if test -n "${need_dash_r}"; then
3951 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3953 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3956 if test -d "${with_tcpw}/include"; then
3957 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3959 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3963 LIBS="$LIBWRAP $LIBS"
3964 { echo "$as_me:$LINENO: checking for libwrap" >&5
3965 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3974 int deny_severity = 0, allow_severity = 0;
3984 rm -f conftest.$ac_objext conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_link") 2>conftest.er1
3993 grep -v '^ *+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest$ac_exeext &&
4001 $as_test_x conftest$ac_exeext; then
4003 { echo "$as_me:$LINENO: result: yes" >&5
4004 echo "${ECHO_T}yes" >&6; }
4007 cat >>confdefs.h <<\_ACEOF
4012 cat >>confdefs.h <<\_ACEOF
4013 #define HAVE_LIBWRAP 1
4017 cat >>confdefs.h <<\_ACEOF
4018 #define HAVE_TCP_WRAPPER 1
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4028 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4029 echo "$as_me: error: *** libwrap missing" >&2;}
4030 { (exit 1); exit 1; }; }
4035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4036 conftest$ac_exeext conftest.$ac_ext
4044 # Arrange for large-file support
4045 # Check whether --enable-largefile was given.
4046 if test "${enable_largefile+set}" = set; then
4047 enableval=$enable_largefile;
4050 if test "$enable_largefile" != no; then
4052 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4053 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4054 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 ac_cv_sys_largefile_CC=no
4058 if test "$GCC" != yes; then
4061 # IRIX 6.2 and later do not support large files by default,
4062 # so use the C compiler's -n32 option if that helps.
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #include <sys/types.h>
4070 /* Check that off_t can represent 2**63 - 1 correctly.
4071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4072 since some C++ compilers masquerading as C compilers
4073 incorrectly reject 9223372036854775807. */
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4076 && LARGE_OFF_T % 2147483647 == 1)
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && {
4100 test -z "$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 } && test -s conftest.$ac_objext; then
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4111 rm -f core conftest.err conftest.$ac_objext
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 ac_cv_sys_largefile_CC=' -n32'; break
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4138 rm -f core conftest.err conftest.$ac_objext
4142 rm -f conftest.$ac_ext
4145 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4146 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4147 if test "$ac_cv_sys_largefile_CC" != no; then
4148 CC=$CC$ac_cv_sys_largefile_CC
4151 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4152 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4153 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4163 #include <sys/types.h>
4164 /* Check that off_t can represent 2**63 - 1 correctly.
4165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4166 since some C++ compilers masquerading as C compilers
4167 incorrectly reject 9223372036854775807. */
4168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4170 && LARGE_OFF_T % 2147483647 == 1)
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4197 ac_cv_sys_file_offset_bits=no; break
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #define _FILE_OFFSET_BITS 64
4213 #include <sys/types.h>
4214 /* Check that off_t can represent 2**63 - 1 correctly.
4215 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4216 since some C++ compilers masquerading as C compilers
4217 incorrectly reject 9223372036854775807. */
4218 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4220 && LARGE_OFF_T % 2147483647 == 1)
4230 rm -f conftest.$ac_objext
4231 if { (ac_try="$ac_compile"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_compile") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && {
4244 test -z "$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 } && test -s conftest.$ac_objext; then
4247 ac_cv_sys_file_offset_bits=64; break
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_cv_sys_file_offset_bits=unknown
4260 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4261 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4262 case $ac_cv_sys_file_offset_bits in #(
4265 cat >>confdefs.h <<_ACEOF
4266 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4271 if test $ac_cv_sys_file_offset_bits = unknown; then
4272 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4273 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4274 if test "${ac_cv_sys_large_files+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 #include <sys/types.h>
4285 /* Check that off_t can represent 2**63 - 1 correctly.
4286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4287 since some C++ compilers masquerading as C compilers
4288 incorrectly reject 9223372036854775807. */
4289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4291 && LARGE_OFF_T % 2147483647 == 1)
4301 rm -f conftest.$ac_objext
4302 if { (ac_try="$ac_compile"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_compile") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest.$ac_objext; then
4318 ac_cv_sys_large_files=no; break
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #define _LARGE_FILES 1
4334 #include <sys/types.h>
4335 /* Check that off_t can represent 2**63 - 1 correctly.
4336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4337 since some C++ compilers masquerading as C compilers
4338 incorrectly reject 9223372036854775807. */
4339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4341 && LARGE_OFF_T % 2147483647 == 1)
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4360 grep -v '^ *+' conftest.er1 >conftest.err
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.$ac_objext; then
4368 ac_cv_sys_large_files=1; break
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 ac_cv_sys_large_files=unknown
4381 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4382 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4383 case $ac_cv_sys_large_files in #(
4386 cat >>confdefs.h <<_ACEOF
4387 #define _LARGE_FILES $ac_cv_sys_large_files
4397 ac_config_headers="$ac_config_headers support/include/config.h"
4400 # Checks for programs.
4402 ac_cpp='$CXXCPP $CPPFLAGS'
4403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4406 if test -z "$CXX"; then
4407 if test -n "$CCC"; then
4410 if test -n "$ac_tool_prefix"; then
4411 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_CXX+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 if test -n "$CXX"; then
4421 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 if test -n "$CXX"; then
4442 { echo "$as_me:$LINENO: result: $CXX" >&5
4443 echo "${ECHO_T}$CXX" >&6; }
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4450 test -n "$CXX" && break
4453 if test -z "$CXX"; then
4455 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458 set dummy $ac_prog; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 if test -n "$ac_ct_CXX"; then
4465 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_CXX="$ac_prog"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4485 if test -n "$ac_ct_CXX"; then
4486 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4487 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4489 { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4494 test -n "$ac_ct_CXX" && break
4497 if test "x$ac_ct_CXX" = x; then
4500 case $cross_compiling:$ac_tool_warned in
4502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&5
4505 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4506 whose name does not start with the host triplet. If you think this
4507 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4508 ac_tool_warned=yes ;;
4516 # Provide some information about the compiler.
4517 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4518 ac_compiler=`set X $ac_compile; echo $2`
4519 { (ac_try="$ac_compiler --version >&5"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_compiler --version >&5") 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }
4529 { (ac_try="$ac_compiler -v >&5"
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_compiler -v >&5") 2>&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }
4539 { (ac_try="$ac_compiler -V >&5"
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545 (eval "$ac_compiler -V >&5") 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }
4550 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4551 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4552 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 cat >conftest.$ac_ext <<_ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_compile") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && {
4587 test -z "$ac_cxx_werror_flag" ||
4588 test ! -s conftest.err
4589 } && test -s conftest.$ac_objext; then
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4602 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4604 GXX=`test $ac_compiler_gnu = yes && echo yes`
4605 ac_test_CXXFLAGS=${CXXFLAGS+set}
4606 ac_save_CXXFLAGS=$CXXFLAGS
4607 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4608 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_cxx_g+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4613 ac_cxx_werror_flag=yes
4616 cat >conftest.$ac_ext <<_ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4631 rm -f conftest.$ac_objext
4632 if { (ac_try="$ac_compile"
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_compile") 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } && {
4645 test -z "$ac_cxx_werror_flag" ||
4646 test ! -s conftest.err
4647 } && test -s conftest.$ac_objext; then
4648 ac_cv_prog_cxx_g=yes
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4654 cat >conftest.$ac_ext <<_ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_cxx_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.$ac_objext; then
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4708 rm -f conftest.$ac_objext
4709 if { (ac_try="$ac_compile"
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_compile") 2>conftest.er1
4717 grep -v '^ *+' conftest.er1 >conftest.err
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } && {
4722 test -z "$ac_cxx_werror_flag" ||
4723 test ! -s conftest.err
4724 } && test -s conftest.$ac_objext; then
4725 ac_cv_prog_cxx_g=yes
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4742 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4743 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4744 if test "$ac_test_CXXFLAGS" = set; then
4745 CXXFLAGS=$ac_save_CXXFLAGS
4746 elif test $ac_cv_prog_cxx_g = yes; then
4747 if test "$GXX" = yes; then
4753 if test "$GXX" = yes; then
4760 ac_cpp='$CPP $CPPFLAGS'
4761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765 depcc="$CXX" am_compiler_list=
4767 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4768 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4769 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4773 # We make a subdir and do the tests there. Otherwise we can end up
4774 # making bogus files that we don't know about and never remove. For
4775 # instance it was reported that on HP-UX the gcc test will end up
4776 # making a dummy file named `D' -- because `-MD' means `put the output
4779 # Copy depcomp to subdir because otherwise we won't find it if we're
4780 # using a relative directory.
4781 cp "$am_depcomp" conftest.dir
4783 # We will build objects and dependencies in a subdirectory because
4784 # it helps to detect inapplicable dependency modes. For instance
4785 # both Tru64's cc and ICC support -MD to output dependencies as a
4786 # side effect of compilation, but ICC will put the dependencies in
4787 # the current directory while Tru64 will put them in the object
4791 am_cv_CXX_dependencies_compiler_type=none
4792 if test "$am_compiler_list" = ""; then
4793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4795 for depmode in $am_compiler_list; do
4796 # Setup a source with many dependencies, because some compilers
4797 # like to wrap large dependency lists on column 80 (with \), and
4798 # we should not choose a depcomp mode which is confused by this.
4800 # We need to recreate these files for each test, as the compiler may
4801 # overwrite some of them when testing with obscure command lines.
4802 # This happens at least with the AIX C compiler.
4804 for i in 1 2 3 4 5 6; do
4805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4807 # Solaris 8's {/usr,}/bin/sh.
4808 touch sub/conftst$i.h
4810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4814 # after this tag, mechanisms are not by side-effect, so they'll
4815 # only be used when explicitly requested
4816 if test "x$enable_dependency_tracking" = xyes; then
4824 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4825 # mode. It turns out that the SunPro C++ compiler does not properly
4826 # handle `-M -o', and we need to detect this.
4827 if depmode=$depmode \
4828 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4830 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4831 >/dev/null 2>conftest.err &&
4832 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4833 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4834 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4836 # icc doesn't choke on unknown options, it will just issue warnings
4837 # or remarks (even with -Werror). So we grep stderr for any message
4838 # that says an option was ignored or not supported.
4839 # When given -MP, icc 7.0 and 7.1 complain thusly:
4840 # icc: Command line warning: ignoring option '-M'; no argument required
4841 # The diagnosis changed in icc 8.0:
4842 # icc: Command line remark: option '-MP' not supported
4843 if (grep 'ignoring option' conftest.err ||
4844 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4845 am_cv_CXX_dependencies_compiler_type=$depmode
4854 am_cv_CXX_dependencies_compiler_type=none
4858 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4859 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4860 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4863 test "x$enable_dependency_tracking" != xno \
4864 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4865 am__fastdepCXX_TRUE=
4866 am__fastdepCXX_FALSE='#'
4868 am__fastdepCXX_TRUE='#'
4869 am__fastdepCXX_FALSE=
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_prog_CC+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test -n "$CC"; then
4887 ac_cv_prog_CC="$CC" # Let the user override the test.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 if test -n "$CC"; then
4908 { echo "$as_me:$LINENO: result: $CC" >&5
4909 echo "${ECHO_T}$CC" >&6; }
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4917 if test -z "$ac_cv_prog_CC"; then
4919 # Extract the first word of "gcc", so it can be a program name with args.
4920 set dummy gcc; ac_word=$2
4921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 if test -n "$ac_ct_CC"; then
4927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_ac_ct_CC="gcc"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4947 if test -n "$ac_ct_CC"; then
4948 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4949 echo "${ECHO_T}$ac_ct_CC" >&6; }
4951 { echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6; }
4955 if test "x$ac_ct_CC" = x; then
4958 case $cross_compiling:$ac_tool_warned in
4960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4961 whose name does not start with the host triplet. If you think this
4962 configuration is useful to you, please write to autoconf@gnu.org." >&5
4963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4964 whose name does not start with the host triplet. If you think this
4965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4966 ac_tool_warned=yes ;;
4974 if test -z "$CC"; then
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4977 set dummy ${ac_tool_prefix}cc; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_prog_CC+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 if test -n "$CC"; then
4984 ac_cv_prog_CC="$CC" # Let the user override the test.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_CC="${ac_tool_prefix}cc"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 if test -n "$CC"; then
5005 { echo "$as_me:$LINENO: result: $CC" >&5
5006 echo "${ECHO_T}$CC" >&6; }
5008 { echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6; }
5015 if test -z "$CC"; then
5016 # Extract the first word of "cc", so it can be a program name with args.
5017 set dummy cc; ac_word=$2
5018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5020 if test "${ac_cv_prog_CC+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 if test -n "$CC"; then
5024 ac_cv_prog_CC="$CC" # Let the user override the test.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5035 ac_prog_rejected=yes
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 if test $ac_prog_rejected = yes; then
5047 # We found a bogon in the path, so make sure we never use it.
5048 set dummy $ac_cv_prog_CC
5050 if test $# != 0; then
5051 # We chose a different compiler from the bogus one.
5052 # However, it has the same basename, so the bogon will be chosen
5053 # first if we set CC to just the basename; use the full file name.
5055 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5061 if test -n "$CC"; then
5062 { echo "$as_me:$LINENO: result: $CC" >&5
5063 echo "${ECHO_T}$CC" >&6; }
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5071 if test -z "$CC"; then
5072 if test -n "$ac_tool_prefix"; then
5073 for ac_prog in cl.exe
5075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5079 if test "${ac_cv_prog_CC+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 if test -n "$CC"; then
5083 ac_cv_prog_CC="$CC" # Let the user override the test.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 if test -n "$CC"; then
5104 { echo "$as_me:$LINENO: result: $CC" >&5
5105 echo "${ECHO_T}$CC" >&6; }
5107 { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5112 test -n "$CC" && break
5115 if test -z "$CC"; then
5117 for ac_prog in cl.exe
5119 # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 if test -n "$ac_ct_CC"; then
5127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_ac_ct_CC="$ac_prog"
5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5147 if test -n "$ac_ct_CC"; then
5148 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5149 echo "${ECHO_T}$ac_ct_CC" >&6; }
5151 { echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6; }
5156 test -n "$ac_ct_CC" && break
5159 if test "x$ac_ct_CC" = x; then
5162 case $cross_compiling:$ac_tool_warned in
5164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5165 whose name does not start with the host triplet. If you think this
5166 configuration is useful to you, please write to autoconf@gnu.org." >&5
5167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5168 whose name does not start with the host triplet. If you think this
5169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5170 ac_tool_warned=yes ;;
5179 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5180 See \`config.log' for more details." >&5
5181 echo "$as_me: error: no acceptable C compiler found in \$PATH
5182 See \`config.log' for more details." >&2;}
5183 { (exit 1); exit 1; }; }
5185 # Provide some information about the compiler.
5186 echo "$as_me:$LINENO: checking for C compiler version" >&5
5187 ac_compiler=`set X $ac_compile; echo $2`
5188 { (ac_try="$ac_compiler --version >&5"
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compiler --version >&5") 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }
5198 { (ac_try="$ac_compiler -v >&5"
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_compiler -v >&5") 2>&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }
5208 { (ac_try="$ac_compiler -V >&5"
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_compiler -V >&5") 2>&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }
5219 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5220 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5221 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_compile") 2>conftest.er1
5251 grep -v '^ *+' conftest.er1 >conftest.err
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } && {
5256 test -z "$ac_c_werror_flag" ||
5257 test ! -s conftest.err
5258 } && test -s conftest.$ac_objext; then
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5271 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5273 GCC=`test $ac_compiler_gnu = yes && echo yes`
5274 ac_test_CFLAGS=${CFLAGS+set}
5275 ac_save_CFLAGS=$CFLAGS
5276 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_cc_g+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 ac_save_c_werror_flag=$ac_c_werror_flag
5282 ac_c_werror_flag=yes
5285 cat >conftest.$ac_ext <<_ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compile") 2>conftest.er1
5347 grep -v '^ *+' conftest.er1 >conftest.err
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_c_werror_flag=$ac_save_c_werror_flag
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5377 rm -f conftest.$ac_objext
5378 if { (ac_try="$ac_compile"
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_compile") 2>conftest.er1
5386 grep -v '^ *+' conftest.er1 >conftest.err
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest.$ac_objext; then
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_c_werror_flag=$ac_save_c_werror_flag
5411 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5412 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5413 if test "$ac_test_CFLAGS" = set; then
5414 CFLAGS=$ac_save_CFLAGS
5415 elif test $ac_cv_prog_cc_g = yes; then
5416 if test "$GCC" = yes; then
5422 if test "$GCC" = yes; then
5428 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5429 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5430 if test "${ac_cv_prog_cc_c89+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 ac_cv_prog_cc_c89=no
5435 cat >conftest.$ac_ext <<_ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5443 #include <sys/types.h>
5444 #include <sys/stat.h>
5445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5446 struct buf { int x; };
5447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5448 static char *e (p, i)
5454 static char *f (char * (*g) (char **, int), char **p, ...)
5459 s = g (p, va_arg (v,int));
5464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5465 function prototypes and stuff, but not '\xHH' hex character constants.
5466 These don't provoke an error unfortunately, instead are silently treated
5467 as 'x'. The following induces an error, until -std is added to get
5468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5469 array size at least. It's necessary to write '\x00'==0 to get something
5470 that's true only with -std. */
5471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5474 inside strings and character constants. */
5476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5478 int test (int i, double x);
5479 struct s1 {int (*f) (int a);};
5480 struct s2 {int (*f) (double a);};
5481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5495 CC="$ac_save_CC $ac_arg"
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 ac_cv_prog_cc_c89=$ac_arg
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5521 rm -f core conftest.err conftest.$ac_objext
5522 test "x$ac_cv_prog_cc_c89" != "xno" && break
5524 rm -f conftest.$ac_ext
5529 case "x$ac_cv_prog_cc_c89" in
5531 { echo "$as_me:$LINENO: result: none needed" >&5
5532 echo "${ECHO_T}none needed" >&6; } ;;
5534 { echo "$as_me:$LINENO: result: unsupported" >&5
5535 echo "${ECHO_T}unsupported" >&6; } ;;
5537 CC="$CC $ac_cv_prog_cc_c89"
5538 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5539 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5544 ac_cpp='$CPP $CPPFLAGS'
5545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5549 depcc="$CC" am_compiler_list=
5551 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5557 # We make a subdir and do the tests there. Otherwise we can end up
5558 # making bogus files that we don't know about and never remove. For
5559 # instance it was reported that on HP-UX the gcc test will end up
5560 # making a dummy file named `D' -- because `-MD' means `put the output
5563 # Copy depcomp to subdir because otherwise we won't find it if we're
5564 # using a relative directory.
5565 cp "$am_depcomp" conftest.dir
5567 # We will build objects and dependencies in a subdirectory because
5568 # it helps to detect inapplicable dependency modes. For instance
5569 # both Tru64's cc and ICC support -MD to output dependencies as a
5570 # side effect of compilation, but ICC will put the dependencies in
5571 # the current directory while Tru64 will put them in the object
5575 am_cv_CC_dependencies_compiler_type=none
5576 if test "$am_compiler_list" = ""; then
5577 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5579 for depmode in $am_compiler_list; do
5580 # Setup a source with many dependencies, because some compilers
5581 # like to wrap large dependency lists on column 80 (with \), and
5582 # we should not choose a depcomp mode which is confused by this.
5584 # We need to recreate these files for each test, as the compiler may
5585 # overwrite some of them when testing with obscure command lines.
5586 # This happens at least with the AIX C compiler.
5588 for i in 1 2 3 4 5 6; do
5589 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5590 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5591 # Solaris 8's {/usr,}/bin/sh.
5592 touch sub/conftst$i.h
5594 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5598 # after this tag, mechanisms are not by side-effect, so they'll
5599 # only be used when explicitly requested
5600 if test "x$enable_dependency_tracking" = xyes; then
5608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5609 # mode. It turns out that the SunPro C++ compiler does not properly
5610 # handle `-M -o', and we need to detect this.
5611 if depmode=$depmode \
5612 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5614 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5615 >/dev/null 2>conftest.err &&
5616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5618 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5620 # icc doesn't choke on unknown options, it will just issue warnings
5621 # or remarks (even with -Werror). So we grep stderr for any message
5622 # that says an option was ignored or not supported.
5623 # When given -MP, icc 7.0 and 7.1 complain thusly:
5624 # icc: Command line warning: ignoring option '-M'; no argument required
5625 # The diagnosis changed in icc 8.0:
5626 # icc: Command line remark: option '-MP' not supported
5627 if (grep 'ignoring option' conftest.err ||
5628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5629 am_cv_CC_dependencies_compiler_type=$depmode
5638 am_cv_CC_dependencies_compiler_type=none
5642 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5643 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5644 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5647 test "x$enable_dependency_tracking" != xno \
5648 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5650 am__fastdepCC_FALSE='#'
5652 am__fastdepCC_TRUE='#'
5653 am__fastdepCC_FALSE=
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5663 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5664 # On Suns, sometimes $CPP names a directory.
5665 if test -n "$CPP" && test -d "$CPP"; then
5668 if test -z "$CPP"; then
5669 if test "${ac_cv_prog_CPP+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 # Double quotes because CPP needs to be expanded
5673 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5676 for ac_c_preproc_warn_flag in '' yes
5678 # Use a header file that comes with gcc, so configuring glibc
5679 # with a fresh cross-compiler works.
5680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 # <limits.h> exists even on freestanding compilers.
5682 # On the NeXT, cc -E runs the code through the compiler's parser,
5683 # not just through cpp. "Syntax error" is here to catch this case.
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 # include <limits.h>
5693 # include <assert.h>
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null && {
5710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 # Broken: fails on valid input.
5722 rm -f conftest.err conftest.$ac_ext
5724 # OK, works on sane cases. Now check whether nonexistent headers
5725 # can be detected and how.
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <ac_nonexistent.h>
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5742 grep -v '^ *+' conftest.er1 >conftest.err
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } >/dev/null && {
5747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5748 test ! -s conftest.err
5750 # Broken: success on invalid input.
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 # Passes both tests.
5761 rm -f conftest.err conftest.$ac_ext
5764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765 rm -f conftest.err conftest.$ac_ext
5766 if $ac_preproc_ok; then
5778 { echo "$as_me:$LINENO: result: $CPP" >&5
5779 echo "${ECHO_T}$CPP" >&6; }
5781 for ac_c_preproc_warn_flag in '' yes
5783 # Use a header file that comes with gcc, so configuring glibc
5784 # with a fresh cross-compiler works.
5785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786 # <limits.h> exists even on freestanding compilers.
5787 # On the NeXT, cc -E runs the code through the compiler's parser,
5788 # not just through cpp. "Syntax error" is here to catch this case.
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5796 # include <limits.h>
5798 # include <assert.h>
5802 if { (ac_try="$ac_cpp conftest.$ac_ext"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } >/dev/null && {
5815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 # Broken: fails on valid input.
5827 rm -f conftest.err conftest.$ac_ext
5829 # OK, works on sane cases. Now check whether nonexistent headers
5830 # can be detected and how.
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <ac_nonexistent.h>
5839 if { (ac_try="$ac_cpp conftest.$ac_ext"
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } >/dev/null && {
5852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5855 # Broken: success on invalid input.
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Passes both tests.
5866 rm -f conftest.err conftest.$ac_ext
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then
5874 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5875 See \`config.log' for more details." >&5
5876 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5877 See \`config.log' for more details." >&2;}
5878 { (exit 1); exit 1; }; }
5882 ac_cpp='$CPP $CPPFLAGS'
5883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5887 # Find a good install program. We prefer a C program (faster),
5888 # so one script is as good as another. But avoid the broken or
5889 # incompatible versions:
5890 # SysV /etc/install, /usr/sbin/install
5891 # SunOS /usr/etc/install
5892 # IRIX /sbin/install
5894 # AmigaOS /C/install, which installs bootblocks on floppy discs
5895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5898 # OS/2's system install, which has a completely different semantic
5899 # ./install, which can be erroneously created by make from ./install.sh.
5900 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5902 if test -z "$INSTALL"; then
5903 if test "${ac_cv_path_install+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 test -z "$as_dir" && as_dir=.
5911 # Account for people who put trailing slashes in PATH elements.
5913 ./ | .// | /cC/* | \
5914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5918 # OSF1 and SCO ODT 3.0 have their own names for install.
5919 # Don't use installbsd from OSF since it installs stuff as root
5921 for ac_prog in ginstall scoinst install; do
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5924 if test $ac_prog = install &&
5925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5926 # AIX install. It has an incompatible calling convention.
5928 elif test $ac_prog = install &&
5929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5930 # program-specific install script used by HP pwplus--don't use.
5933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5946 if test "${ac_cv_path_install+set}" = set; then
5947 INSTALL=$ac_cv_path_install
5949 # As a last resort, use the slow shell script. Don't cache a
5950 # value for INSTALL within a source directory, because that will
5951 # break other packages using the cache if that directory is
5952 # removed, or if the value is a relative name.
5953 INSTALL=$ac_install_sh
5956 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5957 echo "${ECHO_T}$INSTALL" >&6; }
5959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5960 # It thinks the first close brace ends the variable substitution.
5961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5967 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5968 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5970 if test "$LN_S" = "ln -s"; then
5971 { echo "$as_me:$LINENO: result: yes" >&5
5972 echo "${ECHO_T}yes" >&6; }
5974 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5975 echo "${ECHO_T}no, using $LN_S" >&6; }
5978 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5979 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5980 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5981 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.make <<\_ACEOF
5987 @echo '@@@%%%=$(MAKE)=@@@%%%'
5989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5992 eval ac_cv_prog_make_${ac_make}_set=yes;;
5994 eval ac_cv_prog_make_${ac_make}_set=no;;
5998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5999 { echo "$as_me:$LINENO: result: yes" >&5
6000 echo "${ECHO_T}yes" >&6; }
6003 { echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6; }
6005 SET_MAKE="MAKE=${MAKE-make}"
6008 # Check whether --enable-shared was given.
6009 if test "${enable_shared+set}" = set; then
6010 enableval=$enable_shared; p=${PACKAGE-default}
6012 yes) enable_shared=yes ;;
6013 no) enable_shared=no ;;
6016 # Look at the argument we got. We use all the common list separators.
6017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6018 for pkg in $enableval; do
6020 if test "X$pkg" = "X$p"; then
6032 # Check whether --enable-static was given.
6033 if test "${enable_static+set}" = set; then
6034 enableval=$enable_static; p=${PACKAGE-default}
6036 yes) enable_static=yes ;;
6037 no) enable_static=no ;;
6040 # Look at the argument we got. We use all the common list separators.
6041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6042 for pkg in $enableval; do
6044 if test "X$pkg" = "X$p"; then
6056 # Check whether --enable-fast-install was given.
6057 if test "${enable_fast_install+set}" = set; then
6058 enableval=$enable_fast_install; p=${PACKAGE-default}
6060 yes) enable_fast_install=yes ;;
6061 no) enable_fast_install=no ;;
6063 enable_fast_install=no
6064 # Look at the argument we got. We use all the common list separators.
6065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6066 for pkg in $enableval; do
6068 if test "X$pkg" = "X$p"; then
6069 enable_fast_install=yes
6076 enable_fast_install=yes
6080 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6081 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6082 if test "${lt_cv_path_SED+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 # Loop through the user's path and test for sed and gsed.
6086 # Then use that list of sed's as ones to test for truncation.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for lt_ac_prog in sed gsed; do
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6095 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6102 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6103 # along with /bin/sed that truncates output.
6104 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6105 test ! -f $lt_ac_sed && continue
6106 cat /dev/null > conftest.in
6108 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6109 # Check for GNU sed and select it if it is found.
6110 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6111 lt_cv_path_SED=$lt_ac_sed
6115 cat conftest.in conftest.in >conftest.tmp
6116 mv conftest.tmp conftest.in
6117 cp conftest.in conftest.nl
6119 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6120 cmp -s conftest.out conftest.nl || break
6121 # 10000 chars as input seems more than enough
6122 test $lt_ac_count -gt 10 && break
6123 lt_ac_count=`expr $lt_ac_count + 1`
6124 if test $lt_ac_count -gt $lt_ac_max; then
6125 lt_ac_max=$lt_ac_count
6126 lt_cv_path_SED=$lt_ac_sed
6134 { echo "$as_me:$LINENO: result: $SED" >&5
6135 echo "${ECHO_T}$SED" >&6; }
6137 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6138 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6139 if test "${ac_cv_path_GREP+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 # Extract the first word of "grep ggrep" to use in msg output
6143 if test -z "$GREP"; then
6144 set dummy grep ggrep; ac_prog_name=$2
6145 if test "${ac_cv_path_GREP+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 ac_path_GREP_found=false
6149 # Loop through the user's path and test for each of PROGNAME-LIST
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6154 test -z "$as_dir" && as_dir=.
6155 for ac_prog in grep ggrep; do
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6158 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6159 # Check for GNU ac_path_GREP and select it if it is found.
6160 # Check for GNU $ac_path_GREP
6161 case `"$ac_path_GREP" --version 2>&1` in
6163 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6166 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6169 cat "conftest.in" "conftest.in" >"conftest.tmp"
6170 mv "conftest.tmp" "conftest.in"
6171 cp "conftest.in" "conftest.nl"
6172 echo 'GREP' >> "conftest.nl"
6173 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175 ac_count=`expr $ac_count + 1`
6176 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6177 # Best one so far, save it but keep looking for a better one
6178 ac_cv_path_GREP="$ac_path_GREP"
6179 ac_path_GREP_max=$ac_count
6181 # 10*(2^10) chars as input seems more than enough
6182 test $ac_count -gt 10 && break
6184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6188 $ac_path_GREP_found && break 3
6198 GREP="$ac_cv_path_GREP"
6199 if test -z "$GREP"; then
6200 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6201 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6202 { (exit 1); exit 1; }; }
6206 ac_cv_path_GREP=$GREP
6211 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6212 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6213 GREP="$ac_cv_path_GREP"
6216 { echo "$as_me:$LINENO: checking for egrep" >&5
6217 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6218 if test "${ac_cv_path_EGREP+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6222 then ac_cv_path_EGREP="$GREP -E"
6224 # Extract the first word of "egrep" to use in msg output
6225 if test -z "$EGREP"; then
6226 set dummy egrep; ac_prog_name=$2
6227 if test "${ac_cv_path_EGREP+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 ac_path_EGREP_found=false
6231 # Loop through the user's path and test for each of PROGNAME-LIST
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6236 test -z "$as_dir" && as_dir=.
6237 for ac_prog in egrep; do
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6240 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6241 # Check for GNU ac_path_EGREP and select it if it is found.
6242 # Check for GNU $ac_path_EGREP
6243 case `"$ac_path_EGREP" --version 2>&1` in
6245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6248 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6251 cat "conftest.in" "conftest.in" >"conftest.tmp"
6252 mv "conftest.tmp" "conftest.in"
6253 cp "conftest.in" "conftest.nl"
6254 echo 'EGREP' >> "conftest.nl"
6255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6257 ac_count=`expr $ac_count + 1`
6258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6259 # Best one so far, save it but keep looking for a better one
6260 ac_cv_path_EGREP="$ac_path_EGREP"
6261 ac_path_EGREP_max=$ac_count
6263 # 10*(2^10) chars as input seems more than enough
6264 test $ac_count -gt 10 && break
6266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6270 $ac_path_EGREP_found && break 3
6280 EGREP="$ac_cv_path_EGREP"
6281 if test -z "$EGREP"; then
6282 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6283 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6284 { (exit 1); exit 1; }; }
6288 ac_cv_path_EGREP=$EGREP
6294 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6295 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6296 EGREP="$ac_cv_path_EGREP"
6300 # Check whether --with-gnu-ld was given.
6301 if test "${with_gnu_ld+set}" = set; then
6302 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6308 if test "$GCC" = yes; then
6309 # Check if gcc -print-prog-name=ld gives a path.
6310 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6311 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6314 # gcc leaves a trailing carriage return which upsets mingw
6315 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6317 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6320 # Accept absolute paths.
6322 re_direlt='/[^/][^/]*/\.\./'
6323 # Canonicalize the pathname of ld
6324 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6325 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6326 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6328 test -z "$LD" && LD="$ac_prog"
6331 # If it fails, then pretend we aren't using GCC.
6335 # If it is relative, then search for the first ld in PATH.
6339 elif test "$with_gnu_ld" = yes; then
6340 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6341 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6343 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6344 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6346 if test "${lt_cv_path_LD+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 if test -z "$LD"; then
6350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6351 for ac_dir in $PATH; do
6353 test -z "$ac_dir" && ac_dir=.
6354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6355 lt_cv_path_LD="$ac_dir/$ac_prog"
6356 # Check to see if the program is GNU ld. I'd rather use --version,
6357 # but apparently some variants of GNU ld only accept -v.
6358 # Break only if it was the GNU/non-GNU ld that we prefer.
6359 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6360 *GNU* | *'with BFD'*)
6361 test "$with_gnu_ld" != no && break
6364 test "$with_gnu_ld" != yes && break
6371 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6376 if test -n "$LD"; then
6377 { echo "$as_me:$LINENO: result: $LD" >&5
6378 echo "${ECHO_T}$LD" >&6; }
6380 { echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6; }
6383 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6384 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6385 { (exit 1); exit 1; }; }
6386 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6387 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6388 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6392 case `$LD -v 2>&1 </dev/null` in
6393 *GNU* | *'with BFD'*)
6394 lt_cv_prog_gnu_ld=yes
6397 lt_cv_prog_gnu_ld=no
6401 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6403 with_gnu_ld=$lt_cv_prog_gnu_ld
6406 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6408 if test "${lt_cv_ld_reload_flag+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 lt_cv_ld_reload_flag='-r'
6413 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6415 reload_flag=$lt_cv_ld_reload_flag
6416 case $reload_flag in
6418 *) reload_flag=" $reload_flag" ;;
6420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6423 if test "$GCC" = yes; then
6424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6431 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6432 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6433 if test "${lt_cv_path_NM+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 if test -n "$NM"; then
6437 # Let the user override the test.
6440 lt_nm_to_check="${ac_tool_prefix}nm"
6441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6442 lt_nm_to_check="$lt_nm_to_check nm"
6444 for lt_tmp_nm in $lt_nm_to_check; do
6445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6448 test -z "$ac_dir" && ac_dir=.
6449 tmp_nm="$ac_dir/$lt_tmp_nm"
6450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6451 # Check to see if the nm accepts a BSD-compat flag.
6452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6453 # nm: unknown option "B" ignored
6454 # Tru64's nm complains that /dev/null is an invalid object file
6455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6456 */dev/null* | *'Invalid file or object type'*)
6457 lt_cv_path_NM="$tmp_nm -B"
6461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6463 lt_cv_path_NM="$tmp_nm -p"
6467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6468 continue # so that we can try to find one that supports BSD flags
6477 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6480 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6481 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6484 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6485 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6486 if test "${lt_cv_deplibs_check_method+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 lt_cv_file_magic_cmd='$MAGIC_CMD'
6490 lt_cv_file_magic_test_file=
6491 lt_cv_deplibs_check_method='unknown'
6492 # Need to set the preceding variable on all platforms that support
6493 # interlibrary dependencies.
6494 # 'none' -- dependencies not supported.
6495 # `unknown' -- same as none, but documents that we really don't know.
6496 # 'pass_all' -- all dependencies passed with no checks.
6497 # 'test_compile' -- check by making test program.
6498 # 'file_magic [[regex]]' -- check by looking for files in library path
6499 # which responds to the $file_magic_cmd with a given extended regex.
6500 # If you have `file' or equivalent on your system and you're not sure
6501 # whether `pass_all' will *always* work, you probably want this one.
6505 lt_cv_deplibs_check_method=pass_all
6509 lt_cv_deplibs_check_method=pass_all
6513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6514 lt_cv_file_magic_cmd='/usr/bin/file -L'
6515 lt_cv_file_magic_test_file=/shlib/libc.so
6519 # func_win32_libid is a shell function defined in ltmain.sh
6520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6521 lt_cv_file_magic_cmd='func_win32_libid'
6525 # Base MSYS/MinGW do not provide the 'file' command needed by
6526 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6527 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6528 lt_cv_file_magic_cmd='$OBJDUMP -f'
6531 darwin* | rhapsody*)
6532 lt_cv_deplibs_check_method=pass_all
6535 freebsd* | dragonfly*)
6536 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6539 # Not sure whether the presence of OpenBSD here was a mistake.
6540 # Let's accept both of them until this is cleared up.
6541 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6542 lt_cv_file_magic_cmd=/usr/bin/file
6543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6547 lt_cv_deplibs_check_method=pass_all
6552 lt_cv_deplibs_check_method=pass_all
6555 hpux10.20* | hpux11*)
6556 lt_cv_file_magic_cmd=/usr/bin/file
6559 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6560 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6563 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]'
6564 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6567 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6568 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6574 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6578 irix5* | irix6* | nonstopux*)
6580 *-32|*"-32 ") libmagic=32-bit;;
6581 *-n32|*"-n32 ") libmagic=N32;;
6582 *-64|*"-64 ") libmagic=64-bit;;
6583 *) libmagic=never-match;;
6585 lt_cv_deplibs_check_method=pass_all
6588 # This must be Linux ELF.
6589 linux* | k*bsd*-gnu)
6590 lt_cv_deplibs_check_method=pass_all
6593 netbsd* | netbsdelf*-gnu)
6594 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6603 lt_cv_file_magic_cmd=/usr/bin/file
6604 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6608 lt_cv_deplibs_check_method=unknown
6612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6619 osf3* | osf4* | osf5*)
6620 lt_cv_deplibs_check_method=pass_all
6624 lt_cv_deplibs_check_method=pass_all
6628 case $host_vendor in
6630 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]'
6631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6634 lt_cv_deplibs_check_method=pass_all
6637 lt_cv_file_magic_cmd='/bin/file'
6638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6641 lt_cv_file_magic_cmd='/bin/file'
6642 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6643 lt_cv_file_magic_test_file=/lib/libc.so
6646 lt_cv_deplibs_check_method=pass_all
6649 lt_cv_deplibs_check_method=pass_all
6654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6655 lt_cv_deplibs_check_method=pass_all
6660 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6661 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6662 file_magic_cmd=$lt_cv_file_magic_cmd
6663 deplibs_check_method=$lt_cv_deplibs_check_method
6664 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6669 # If no C compiler was specified, use CC.
6672 # If no C compiler flags were specified, use CFLAGS.
6673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6675 # Allow CC to be a program name with arguments.
6678 # Check whether --enable-libtool-lock was given.
6679 if test "${enable_libtool_lock+set}" = set; then
6680 enableval=$enable_libtool_lock;
6683 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6685 # Some flags need to be propagated to the compiler or linker for good
6689 # Find out which ABI we are using.
6690 echo 'int i;' > conftest.$ac_ext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692 (eval $ac_compile) 2>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; then
6696 case `/usr/bin/file conftest.$ac_objext` in
6708 # Find out which ABI we are using.
6709 echo '#line 6709 "configure"' > conftest.$ac_ext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; then
6715 if test "$lt_cv_prog_gnu_ld" = yes; then
6716 case `/usr/bin/file conftest.$ac_objext` in
6718 LD="${LD-ld} -melf32bsmip"
6721 LD="${LD-ld} -melf32bmipn32"
6724 LD="${LD-ld} -melf64bmip"
6728 case `/usr/bin/file conftest.$ac_objext` in
6744 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6745 # Find out which ABI we are using.
6746 echo 'int i;' > conftest.$ac_ext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748 (eval $ac_compile) 2>&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; then
6752 case `/usr/bin/file conftest.o` in
6756 LD="${LD-ld} -m elf_i386"
6758 ppc64-*linux*|powerpc64-*linux*)
6759 LD="${LD-ld} -m elf32ppclinux"
6762 LD="${LD-ld} -m elf_s390"
6765 LD="${LD-ld} -m elf32_sparc"
6772 LD="${LD-ld} -m elf_x86_64"
6774 ppc*-*linux*|powerpc*-*linux*)
6775 LD="${LD-ld} -m elf64ppc"
6778 LD="${LD-ld} -m elf64_s390"
6781 LD="${LD-ld} -m elf64_sparc"
6791 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6792 SAVE_CFLAGS="$CFLAGS"
6793 CFLAGS="$CFLAGS -belf"
6794 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6795 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6796 if test "${lt_cv_cc_needs_belf+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 ac_cpp='$CPP $CPPFLAGS'
6801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (ac_try="$ac_link"
6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827 (eval "$ac_link") 2>conftest.er1
6829 grep -v '^ *+' conftest.er1 >conftest.err
6831 cat conftest.err >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } && {
6834 test -z "$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 } && test -s conftest$ac_exeext &&
6837 $as_test_x conftest$ac_exeext; then
6838 lt_cv_cc_needs_belf=yes
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6843 lt_cv_cc_needs_belf=no
6846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6847 conftest$ac_exeext conftest.$ac_ext
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6855 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6856 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6857 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6858 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6859 CFLAGS="$SAVE_CFLAGS"
6863 # Find out which ABI we are using.
6864 echo 'int i;' > conftest.$ac_ext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; then
6870 case `/usr/bin/file conftest.o` in
6872 case $lt_cv_prog_gnu_ld in
6873 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6874 *) LD="${LD-ld} -64" ;;
6885 need_locks="$enable_libtool_lock"
6889 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6890 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6891 if test "${ac_cv_header_stdc+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 cat >conftest.$ac_ext <<_ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6913 rm -f conftest.$ac_objext
6914 if { (ac_try="$ac_compile"
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6922 grep -v '^ *+' conftest.er1 >conftest.err
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6930 ac_cv_header_stdc=yes
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 ac_cv_header_stdc=no
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 if test $ac_cv_header_stdc = yes; then
6941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6942 cat >conftest.$ac_ext <<_ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "memchr" >/dev/null 2>&1; then
6955 ac_cv_header_stdc=no
6961 if test $ac_cv_header_stdc = yes; then
6962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6963 cat >conftest.$ac_ext <<_ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973 $EGREP "free" >/dev/null 2>&1; then
6976 ac_cv_header_stdc=no
6982 if test $ac_cv_header_stdc = yes; then
6983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6984 if test "$cross_compiling" = yes; then
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6995 #if ((' ' & 0x0FF) == 0x020)
6996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6999 # define ISLOWER(c) \
7000 (('a' <= (c) && (c) <= 'i') \
7001 || ('j' <= (c) && (c) <= 'r') \
7002 || ('s' <= (c) && (c) <= 'z'))
7003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7011 for (i = 0; i < 256; i++)
7012 if (XOR (islower (i), ISLOWER (i))
7013 || toupper (i) != TOUPPER (i))
7018 rm -f conftest$ac_exeext
7019 if { (ac_try="$ac_link"
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025 (eval "$ac_link") 2>&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7029 { (case "(($ac_try" in
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_try") 2>&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7040 echo "$as_me: program exited with status $ac_status" >&5
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_cv_header_stdc=no
7047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7053 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7054 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7055 if test $ac_cv_header_stdc = yes; then
7057 cat >>confdefs.h <<\_ACEOF
7058 #define STDC_HEADERS 1
7063 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7073 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7074 inttypes.h stdint.h unistd.h
7076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 $ac_includes_default
7090 #include <$ac_header>
7092 rm -f conftest.$ac_objext
7093 if { (ac_try="$ac_compile"
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_compile") 2>conftest.er1
7101 grep -v '^ *+' conftest.er1 >conftest.err
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } && {
7106 test -z "$ac_c_werror_flag" ||
7107 test ! -s conftest.err
7108 } && test -s conftest.$ac_objext; then
7109 eval "$as_ac_Header=yes"
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7114 eval "$as_ac_Header=no"
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 ac_res=`eval echo '${'$as_ac_Header'}'`
7120 { echo "$as_me:$LINENO: result: $ac_res" >&5
7121 echo "${ECHO_T}$ac_res" >&6; }
7122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7123 cat >>confdefs.h <<_ACEOF
7124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133 for ac_header in dlfcn.h
7135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_res=`eval echo '${'$as_ac_Header'}'`
7143 { echo "$as_me:$LINENO: result: $ac_res" >&5
7144 echo "${ECHO_T}$ac_res" >&6; }
7146 # Is the header compilable?
7147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7149 cat >conftest.$ac_ext <<_ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7156 #include <$ac_header>
7158 rm -f conftest.$ac_objext
7159 if { (ac_try="$ac_compile"
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7167 grep -v '^ *+' conftest.er1 >conftest.err
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
7175 ac_header_compiler=yes
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 ac_header_compiler=no
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185 echo "${ECHO_T}$ac_header_compiler" >&6; }
7187 # Is the header present?
7188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7190 cat >conftest.$ac_ext <<_ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 #include <$ac_header>
7198 if { (ac_try="$ac_cpp conftest.$ac_ext"
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7206 grep -v '^ *+' conftest.er1 >conftest.err
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } >/dev/null && {
7211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7214 ac_header_preproc=yes
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 ac_header_preproc=no
7222 rm -f conftest.err conftest.$ac_ext
7223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7224 echo "${ECHO_T}$ac_header_preproc" >&6; }
7226 # So? What about this header?
7227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7233 ac_header_preproc=yes
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7249 ## ------------------------------- ##
7250 ## Report this to nfs@lists.sf.net ##
7251 ## ------------------------------- ##
7253 ) | sed "s/^/$as_me: WARNING: /" >&2
7256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 eval "$as_ac_Header=\$ac_header_preproc"
7263 ac_res=`eval echo '${'$as_ac_Header'}'`
7264 { echo "$as_me:$LINENO: result: $ac_res" >&5
7265 echo "${ECHO_T}$ac_res" >&6; }
7268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7279 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7280 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7281 (test "X$CXX" != "Xg++"))) ; then
7283 ac_cpp='$CXXCPP $CPPFLAGS'
7284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7287 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7288 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7289 if test -z "$CXXCPP"; then
7290 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 # Double quotes because CXXCPP needs to be expanded
7294 for CXXCPP in "$CXX -E" "/lib/cpp"
7297 for ac_cxx_preproc_warn_flag in '' yes
7299 # Use a header file that comes with gcc, so configuring glibc
7300 # with a fresh cross-compiler works.
7301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7302 # <limits.h> exists even on freestanding compilers.
7303 # On the NeXT, cc -E runs the code through the compiler's parser,
7304 # not just through cpp. "Syntax error" is here to catch this case.
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7312 # include <limits.h>
7314 # include <assert.h>
7318 if { (ac_try="$ac_cpp conftest.$ac_ext"
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1 >conftest.err
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } >/dev/null && {
7331 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7332 test ! -s conftest.err
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 # Broken: fails on valid input.
7343 rm -f conftest.err conftest.$ac_ext
7345 # OK, works on sane cases. Now check whether nonexistent headers
7346 # can be detected and how.
7347 cat >conftest.$ac_ext <<_ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353 #include <ac_nonexistent.h>
7355 if { (ac_try="$ac_cpp conftest.$ac_ext"
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } >/dev/null && {
7368 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7369 test ! -s conftest.err
7371 # Broken: success on invalid input.
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 # Passes both tests.
7382 rm -f conftest.err conftest.$ac_ext
7385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7386 rm -f conftest.err conftest.$ac_ext
7387 if $ac_preproc_ok; then
7392 ac_cv_prog_CXXCPP=$CXXCPP
7395 CXXCPP=$ac_cv_prog_CXXCPP
7397 ac_cv_prog_CXXCPP=$CXXCPP
7399 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7400 echo "${ECHO_T}$CXXCPP" >&6; }
7402 for ac_cxx_preproc_warn_flag in '' yes
7404 # Use a header file that comes with gcc, so configuring glibc
7405 # with a fresh cross-compiler works.
7406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7407 # <limits.h> exists even on freestanding compilers.
7408 # On the NeXT, cc -E runs the code through the compiler's parser,
7409 # not just through cpp. "Syntax error" is here to catch this case.
7410 cat >conftest.$ac_ext <<_ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7417 # include <limits.h>
7419 # include <assert.h>
7423 if { (ac_try="$ac_cpp conftest.$ac_ext"
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7431 grep -v '^ *+' conftest.er1 >conftest.err
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } >/dev/null && {
7436 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7437 test ! -s conftest.err
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7444 # Broken: fails on valid input.
7448 rm -f conftest.err conftest.$ac_ext
7450 # OK, works on sane cases. Now check whether nonexistent headers
7451 # can be detected and how.
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #include <ac_nonexistent.h>
7460 if { (ac_try="$ac_cpp conftest.$ac_ext"
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7468 grep -v '^ *+' conftest.er1 >conftest.err
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } >/dev/null && {
7473 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7474 test ! -s conftest.err
7476 # Broken: success on invalid input.
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7482 # Passes both tests.
7487 rm -f conftest.err conftest.$ac_ext
7490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7491 rm -f conftest.err conftest.$ac_ext
7492 if $ac_preproc_ok; then
7495 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7496 See \`config.log' for more details." >&5
7497 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7498 See \`config.log' for more details." >&2;}
7499 { (exit 1); exit 1; }; }
7503 ac_cpp='$CXXCPP $CPPFLAGS'
7504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7512 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7513 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7514 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7515 if test -n "$ac_tool_prefix"; then
7516 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
7518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522 if test "${ac_cv_prog_F77+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 if test -n "$F77"; then
7526 ac_cv_prog_F77="$F77" # Let the user override the test.
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7535 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 if test -n "$F77"; then
7547 { echo "$as_me:$LINENO: result: $F77" >&5
7548 echo "${ECHO_T}$F77" >&6; }
7550 { echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6; }
7555 test -n "$F77" && break
7558 if test -z "$F77"; then
7560 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
7562 # Extract the first word of "$ac_prog", so it can be a program name with args.
7563 set dummy $ac_prog; ac_word=$2
7564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 if test -n "$ac_ct_F77"; then
7570 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_prog_ac_ct_F77="$ac_prog"
7580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7590 if test -n "$ac_ct_F77"; then
7591 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7592 echo "${ECHO_T}$ac_ct_F77" >&6; }
7594 { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7599 test -n "$ac_ct_F77" && break
7602 if test "x$ac_ct_F77" = x; then
7605 case $cross_compiling:$ac_tool_warned in
7607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7608 whose name does not start with the host triplet. If you think this
7609 configuration is useful to you, please write to autoconf@gnu.org." >&5
7610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7611 whose name does not start with the host triplet. If you think this
7612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7613 ac_tool_warned=yes ;;
7620 # Provide some information about the compiler.
7621 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7622 ac_compiler=`set X $ac_compile; echo $2`
7623 { (ac_try="$ac_compiler --version >&5"
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compiler --version >&5") 2>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }
7633 { (ac_try="$ac_compiler -v >&5"
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compiler -v >&5") 2>&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }
7643 { (ac_try="$ac_compiler -V >&5"
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_compiler -V >&5") 2>&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }
7655 # If we don't use `.F' as extension, the preprocessor is not run on the
7656 # input file. (Note that this only needs to work for GNU compilers.)
7659 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7660 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7661 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 cat >conftest.$ac_ext <<_ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (ac_try="$ac_compile"
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_compile") 2>conftest.er1
7681 grep -v '^ *+' conftest.er1 >conftest.err
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && {
7686 test -z "$ac_f77_werror_flag" ||
7687 test ! -s conftest.err
7688 } && test -s conftest.$ac_objext; then
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7701 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7702 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7704 ac_test_FFLAGS=${FFLAGS+set}
7705 ac_save_FFLAGS=$FFLAGS
7707 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7708 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7709 if test "${ac_cv_prog_f77_g+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.$ac_ext <<_ACEOF
7718 rm -f conftest.$ac_objext
7719 if { (ac_try="$ac_compile"
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_compile") 2>conftest.er1
7727 grep -v '^ *+' conftest.er1 >conftest.err
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_f77_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest.$ac_objext; then
7735 ac_cv_prog_f77_g=yes
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7747 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7748 if test "$ac_test_FFLAGS" = set; then
7749 FFLAGS=$ac_save_FFLAGS
7750 elif test $ac_cv_prog_f77_g = yes; then
7751 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7757 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7764 G77=`test $ac_compiler_gnu = yes && echo yes`
7766 ac_cpp='$CPP $CPPFLAGS'
7767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7775 # find the maximum length of command line arguments
7776 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7777 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7778 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 # On DJGPP, this test can blow up pretty badly due to problems in libc
7787 # (any single argument exceeding 2000 bytes causes a buffer overrun
7788 # during glob expansion). Even if it were fixed, the result of this
7789 # check would be larger than it should be.
7790 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7794 # Under GNU Hurd, this test is not required because there is
7795 # no limit to the length of command line arguments.
7796 # Libtool will interpret -1 as no limit whatsoever
7797 lt_cv_sys_max_cmd_len=-1;
7801 # On Win9x/ME, this test blows up -- it succeeds, but takes
7802 # about 5 minutes as the teststring grows exponentially.
7803 # Worse, since 9x/ME are not pre-emptively multitasking,
7804 # you end up with a "frozen" computer, even though with patience
7805 # the test eventually succeeds (with a max line length of 256k).
7806 # Instead, let's just punt: use the minimum linelength reported by
7807 # all of the supported platforms: 8192 (on NT/2K/XP).
7808 lt_cv_sys_max_cmd_len=8192;
7812 # On AmigaOS with pdksh, this test takes hours, literally.
7813 # So we just punt and use a minimum line length of 8192.
7814 lt_cv_sys_max_cmd_len=8192;
7817 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7818 # This has been around since 386BSD, at least. Likely further.
7819 if test -x /sbin/sysctl; then
7820 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7821 elif test -x /usr/sbin/sysctl; then
7822 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7824 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7826 # And add a safety zone
7827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7832 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7833 lt_cv_sys_max_cmd_len=196608
7837 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7838 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7839 # nice to cause kernel panics so lets avoid the loop below.
7840 # First set a reasonable default.
7841 lt_cv_sys_max_cmd_len=16384
7843 if test -x /sbin/sysconfig; then
7844 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7845 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7850 lt_cv_sys_max_cmd_len=102400
7852 sysv5* | sco5v6* | sysv4.2uw2*)
7853 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7854 if test -n "$kargmax"; then
7855 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7857 lt_cv_sys_max_cmd_len=32768
7861 # If test is not a shell built-in, we'll probably end up computing a
7862 # maximum length that is only half of the actual maximum length, but
7864 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7865 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7866 = "XX$teststring") >/dev/null 2>&1 &&
7867 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7868 lt_cv_sys_max_cmd_len=$new_result &&
7869 test $i != 17 # 1/2 MB should be enough
7872 teststring=$teststring$teststring
7875 # Add a significant safety factor because C++ compilers can tack on massive
7876 # amounts of additional arguments before passing them to the linker.
7877 # It appears as though 1/2 is a usable value.
7878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7884 if test -n $lt_cv_sys_max_cmd_len ; then
7885 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7886 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7888 { echo "$as_me:$LINENO: result: none" >&5
7889 echo "${ECHO_T}none" >&6; }
7895 # Check for command to grab the raw symbol name followed by C symbol from nm.
7896 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7897 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7898 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 # These are sane defaults that work on at least a few old systems.
7903 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7905 # Character class describing NM global symbol codes.
7906 symcode='[BCDEGRST]'
7908 # Regexp to match symbols that can be accessed directly from C.
7909 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7911 # Transform an extracted symbol line into a proper C declaration
7912 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7914 # Transform an extracted symbol line into symbol name and symbol address
7915 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'"
7917 # Define system-specific variables.
7922 cygwin* | mingw* | pw32*)
7923 symcode='[ABCDGISTW]'
7925 hpux*) # Its linker distinguishes data from code symbols
7926 if test "$host_cpu" = ia64; then
7927 symcode='[ABCDEGRST]'
7929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7930 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'"
7932 linux* | k*bsd*-gnu)
7933 if test "$host_cpu" = ia64; then
7934 symcode='[ABCDGIRSTW]'
7935 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7936 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'"
7940 symcode='[BCDEGRST]'
7943 symcode='[BCDEGQRST]'
7954 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7962 # Handle CRLF in mingw tool chain
7966 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7970 # If we're using GNU nm, then use its standard symbol codes.
7971 case `$NM -V 2>&1` in
7972 *GNU* | *'with BFD'*)
7973 symcode='[ABCDGIRSTW]' ;;
7976 # Try without a prefix undercore, then with it.
7977 for ac_symprfx in "" "_"; do
7979 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7980 symxfrm="\\1 $ac_symprfx\\2 \\2"
7982 # Write the raw and C identifiers.
7983 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7985 # Check to see that the pipe works correctly.
7989 cat > conftest.$ac_ext <<EOF
7994 void nm_test_func(){}
7998 int main(){nm_test_var='a';nm_test_func();return(0);}
8001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002 (eval $ac_compile) 2>&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; then
8006 # Now try to grab the symbols.
8008 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8009 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && test -s "$nlist"; then
8013 # Try sorting and uniquifying the output.
8014 if sort "$nlist" | uniq > "$nlist"T; then
8015 mv -f "$nlist"T "$nlist"
8020 # Make sure that we snagged all the symbols we need.
8021 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8022 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8023 cat <<EOF > conftest.$ac_ext
8029 # Now generate the symbol file.
8030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8032 cat <<EOF >> conftest.$ac_ext
8033 #if defined (__STDC__) && __STDC__
8034 # define lt_ptr_t void *
8036 # define lt_ptr_t char *
8040 /* The mapping between symbol names and symbols. */
8045 lt_preloaded_symbols[] =
8048 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8049 cat <<\EOF >> conftest.$ac_ext
8057 # Now try linking the two files.
8058 mv conftest.$ac_objext conftstm.$ac_objext
8059 lt_save_LIBS="$LIBS"
8060 lt_save_CFLAGS="$CFLAGS"
8061 LIBS="conftstm.$ac_objext"
8062 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8064 (eval $ac_link) 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8070 LIBS="$lt_save_LIBS"
8071 CFLAGS="$lt_save_CFLAGS"
8073 echo "cannot find nm_test_func in $nlist" >&5
8076 echo "cannot find nm_test_var in $nlist" >&5
8079 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8082 echo "$progname: failed program was:" >&5
8083 cat conftest.$ac_ext >&5
8085 rm -f conftest* conftst*
8087 # Do not use the global_symbol_pipe unless it works.
8088 if test "$pipe_works" = yes; then
8091 lt_cv_sys_global_symbol_pipe=
8097 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8098 lt_cv_sys_global_symbol_to_cdecl=
8100 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8101 { echo "$as_me:$LINENO: result: failed" >&5
8102 echo "${ECHO_T}failed" >&6; }
8104 { echo "$as_me:$LINENO: result: ok" >&5
8105 echo "${ECHO_T}ok" >&6; }
8108 { echo "$as_me:$LINENO: checking for objdir" >&5
8109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8110 if test "${lt_cv_objdir+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 rm -f .libs 2>/dev/null
8114 mkdir .libs 2>/dev/null
8115 if test -d .libs; then
8118 # MS-DOS does not allow filenames that begin with a dot.
8121 rmdir .libs 2>/dev/null
8123 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8124 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8125 objdir=$lt_cv_objdir
8133 # AIX sometimes has problems with the GCC collect2 program. For some
8134 # reason, if we set the COLLECT_NAMES environment variable, the problems
8135 # vanish in a puff of smoke.
8136 if test "X${COLLECT_NAMES+set}" != Xset; then
8138 export COLLECT_NAMES
8143 # Sed substitution that helps us do robust quoting. It backslashifies
8144 # metacharacters that are still active within double-quoted strings.
8145 Xsed='sed -e 1s/^X//'
8146 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8148 # Same as above, but do not quote variable references.
8149 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8151 # Sed substitution to delay expansion of an escaped shell variable in a
8152 # double_quote_subst'ed string.
8153 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8155 # Sed substitution to avoid accidental globbing in evaled expressions
8156 no_glob_subst='s/\*/\\\*/g'
8162 default_ofile=libtool
8163 can_build_shared=yes
8165 # All known linkers require a `.a' archive for static linking (except MSVC,
8166 # which needs '.lib').
8168 ltmain="$ac_aux_dir/ltmain.sh"
8169 ofile="$default_ofile"
8170 with_gnu_ld="$lt_cv_prog_gnu_ld"
8172 if test -n "$ac_tool_prefix"; then
8173 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8174 set dummy ${ac_tool_prefix}ar; ac_word=$2
8175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8177 if test "${ac_cv_prog_AR+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 if test -n "$AR"; then
8181 ac_cv_prog_AR="$AR" # Let the user override the test.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_AR="${ac_tool_prefix}ar"
8191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 if test -n "$AR"; then
8202 { echo "$as_me:$LINENO: result: $AR" >&5
8203 echo "${ECHO_T}$AR" >&6; }
8205 { echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6; }
8211 if test -z "$ac_cv_prog_AR"; then
8213 # Extract the first word of "ar", so it can be a program name with args.
8214 set dummy ar; ac_word=$2
8215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 if test -n "$ac_ct_AR"; then
8221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230 ac_cv_prog_ac_ct_AR="ar"
8231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8241 if test -n "$ac_ct_AR"; then
8242 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8243 echo "${ECHO_T}$ac_ct_AR" >&6; }
8245 { echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6; }
8249 if test "x$ac_ct_AR" = x; then
8252 case $cross_compiling:$ac_tool_warned in
8254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8255 whose name does not start with the host triplet. If you think this
8256 configuration is useful to you, please write to autoconf@gnu.org." >&5
8257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8258 whose name does not start with the host triplet. If you think this
8259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8260 ac_tool_warned=yes ;;
8268 if test -n "$ac_tool_prefix"; then
8269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8273 if test "${ac_cv_prog_RANLIB+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 if test -n "$RANLIB"; then
8277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 RANLIB=$ac_cv_prog_RANLIB
8297 if test -n "$RANLIB"; then
8298 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8299 echo "${ECHO_T}$RANLIB" >&6; }
8301 { echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6; }
8307 if test -z "$ac_cv_prog_RANLIB"; then
8308 ac_ct_RANLIB=$RANLIB
8309 # Extract the first word of "ranlib", so it can be a program name with args.
8310 set dummy ranlib; ac_word=$2
8311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8313 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 if test -n "$ac_ct_RANLIB"; then
8317 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_ac_ct_RANLIB="ranlib"
8327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8337 if test -n "$ac_ct_RANLIB"; then
8338 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8339 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8341 { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8345 if test "x$ac_ct_RANLIB" = x; then
8348 case $cross_compiling:$ac_tool_warned in
8350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8351 whose name does not start with the host triplet. If you think this
8352 configuration is useful to you, please write to autoconf@gnu.org." >&5
8353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8354 whose name does not start with the host triplet. If you think this
8355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8356 ac_tool_warned=yes ;;
8358 RANLIB=$ac_ct_RANLIB
8361 RANLIB="$ac_cv_prog_RANLIB"
8364 if test -n "$ac_tool_prefix"; then
8365 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8366 set dummy ${ac_tool_prefix}strip; ac_word=$2
8367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8369 if test "${ac_cv_prog_STRIP+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 if test -n "$STRIP"; then
8373 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 STRIP=$ac_cv_prog_STRIP
8393 if test -n "$STRIP"; then
8394 { echo "$as_me:$LINENO: result: $STRIP" >&5
8395 echo "${ECHO_T}$STRIP" >&6; }
8397 { echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6; }
8403 if test -z "$ac_cv_prog_STRIP"; then
8405 # Extract the first word of "strip", so it can be a program name with args.
8406 set dummy strip; ac_word=$2
8407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8409 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 if test -n "$ac_ct_STRIP"; then
8413 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_prog_ac_ct_STRIP="strip"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8433 if test -n "$ac_ct_STRIP"; then
8434 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8435 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8437 { echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6; }
8441 if test "x$ac_ct_STRIP" = x; then
8444 case $cross_compiling:$ac_tool_warned in
8446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet. If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&5
8449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8450 whose name does not start with the host triplet. If you think this
8451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8452 ac_tool_warned=yes ;;
8457 STRIP="$ac_cv_prog_STRIP"
8462 old_CFLAGS="$CFLAGS"
8464 # Set sane defaults for various variables
8465 test -z "$AR" && AR=ar
8466 test -z "$AR_FLAGS" && AR_FLAGS=cru
8467 test -z "$AS" && AS=as
8468 test -z "$CC" && CC=cc
8469 test -z "$LTCC" && LTCC=$CC
8470 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8471 test -z "$DLLTOOL" && DLLTOOL=dlltool
8472 test -z "$LD" && LD=ld
8473 test -z "$LN_S" && LN_S="ln -s"
8474 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8475 test -z "$NM" && NM=nm
8476 test -z "$SED" && SED=sed
8477 test -z "$OBJDUMP" && OBJDUMP=objdump
8478 test -z "$RANLIB" && RANLIB=:
8479 test -z "$STRIP" && STRIP=:
8480 test -z "$ac_objext" && ac_objext=o
8482 # Determine commands to create old-style static archives.
8483 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8484 old_postinstall_cmds='chmod 644 $oldlib'
8485 old_postuninstall_cmds=
8487 if test -n "$RANLIB"; then
8490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8496 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8499 for cc_temp in $compiler""; do
8501 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8502 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8507 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8510 # Only perform the check for file, if the check method requires it
8511 case $deplibs_check_method in
8513 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8514 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8515 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8516 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8524 lt_save_MAGIC_CMD="$MAGIC_CMD"
8525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8527 for ac_dir in $ac_dummy; do
8529 test -z "$ac_dir" && ac_dir=.
8530 if test -f $ac_dir/${ac_tool_prefix}file; then
8531 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8532 if test -n "$file_magic_test_file"; then
8533 case $deplibs_check_method in
8535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8538 $EGREP "$file_magic_regex" > /dev/null; then
8543 *** Warning: the command libtool uses to detect shared libraries,
8544 *** $file_magic_cmd, produces output that libtool cannot recognize.
8545 *** The result is that libtool may fail to recognize shared libraries
8546 *** as such. This will affect the creation of libtool libraries that
8547 *** depend on shared libraries, but programs linked with such libtool
8548 *** libraries will work regardless of this problem. Nevertheless, you
8549 *** may want to report the problem to your system manager and/or to
8550 *** bug-libtool@gnu.org
8560 MAGIC_CMD="$lt_save_MAGIC_CMD"
8565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8566 if test -n "$MAGIC_CMD"; then
8567 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8568 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8570 { echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6; }
8574 if test -z "$lt_cv_path_MAGIC_CMD"; then
8575 if test -n "$ac_tool_prefix"; then
8576 { echo "$as_me:$LINENO: checking for file" >&5
8577 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8578 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8586 lt_save_MAGIC_CMD="$MAGIC_CMD"
8587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8589 for ac_dir in $ac_dummy; do
8591 test -z "$ac_dir" && ac_dir=.
8592 if test -f $ac_dir/file; then
8593 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8594 if test -n "$file_magic_test_file"; then
8595 case $deplibs_check_method in
8597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8600 $EGREP "$file_magic_regex" > /dev/null; then
8605 *** Warning: the command libtool uses to detect shared libraries,
8606 *** $file_magic_cmd, produces output that libtool cannot recognize.
8607 *** The result is that libtool may fail to recognize shared libraries
8608 *** as such. This will affect the creation of libtool libraries that
8609 *** depend on shared libraries, but programs linked with such libtool
8610 *** libraries will work regardless of this problem. Nevertheless, you
8611 *** may want to report the problem to your system manager and/or to
8612 *** bug-libtool@gnu.org
8622 MAGIC_CMD="$lt_save_MAGIC_CMD"
8627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8628 if test -n "$MAGIC_CMD"; then
8629 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8630 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8632 { echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6; }
8648 # Check whether --enable-libtool-lock was given.
8649 if test "${enable_libtool_lock+set}" = set; then
8650 enableval=$enable_libtool_lock;
8653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8656 # Check whether --with-pic was given.
8657 if test "${with_pic+set}" = set; then
8658 withval=$with_pic; pic_mode="$withval"
8663 test -z "$pic_mode" && pic_mode=default
8665 # Use C for the default configuration in the libtool script
8669 ac_cpp='$CPP $CPPFLAGS'
8670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8675 # Source file extension for C test sources.
8678 # Object file extension for compiled C test sources.
8682 # Code to be used in simple compile tests
8683 lt_simple_compile_test_code="int some_variable = 0;\n"
8685 # Code to be used in simple link tests
8686 lt_simple_link_test_code='int main(){return(0);}\n'
8689 # If no C compiler was specified, use CC.
8692 # If no C compiler flags were specified, use CFLAGS.
8693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8695 # Allow CC to be a program name with arguments.
8699 # save warnings/boilerplate of simple test code
8700 ac_outfile=conftest.$ac_objext
8701 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8702 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8703 _lt_compiler_boilerplate=`cat conftest.err`
8706 ac_outfile=conftest.$ac_objext
8707 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8708 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8709 _lt_linker_boilerplate=`cat conftest.err`
8714 lt_prog_compiler_no_builtin_flag=
8716 if test "$GCC" = yes; then
8717 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8720 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8721 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8722 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 lt_cv_prog_compiler_rtti_exceptions=no
8726 ac_outfile=conftest.$ac_objext
8727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8728 lt_compiler_flag="-fno-rtti -fno-exceptions"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 # The option is referenced via a variable to avoid confusing sed.
8734 lt_compile=`echo "$ac_compile" | $SED \
8735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737 -e 's:$: $lt_compiler_flag:'`
8738 (eval echo "\"\$as_me:8738: $lt_compile\"" >&5)
8739 (eval "$lt_compile" 2>conftest.err)
8741 cat conftest.err >&5
8742 echo "$as_me:8742: \$? = $ac_status" >&5
8743 if (exit $ac_status) && test -s "$ac_outfile"; then
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings other than the usual output.
8746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_rtti_exceptions=yes
8755 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8756 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8758 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8759 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8766 lt_prog_compiler_wl=
8767 lt_prog_compiler_pic=
8768 lt_prog_compiler_static=
8770 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8771 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8773 if test "$GCC" = yes; then
8774 lt_prog_compiler_wl='-Wl,'
8775 lt_prog_compiler_static='-static'
8779 # All AIX code is PIC.
8780 if test "$host_cpu" = ia64; then
8781 # AIX 5 now supports IA64 processor
8782 lt_prog_compiler_static='-Bstatic'
8787 # FIXME: we need at least 68020 code to build shared libraries, but
8788 # adding the `-m68020' flag to GCC prevents building anything better,
8790 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8793 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8794 # PIC is the default for these OSes.
8797 mingw* | pw32* | os2*)
8798 # This hack is so that the source file can tell whether it is being
8799 # built for inclusion in a dll (and should export symbols for example).
8800 lt_prog_compiler_pic='-DDLL_EXPORT'
8803 darwin* | rhapsody*)
8804 # PIC is the default on this platform
8805 # Common symbols not allowed in MH_DYLIB files
8806 lt_prog_compiler_pic='-fno-common'
8810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8811 # Instead, we relocate shared libraries at runtime.
8815 # Just because we use GCC doesn't mean we suddenly get shared libraries
8816 # on systems that don't support them.
8817 lt_prog_compiler_can_build_shared=no
8822 if test -d /usr/nec; then
8823 lt_prog_compiler_pic=-Kconform_pic
8828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8835 lt_prog_compiler_pic='-fPIC'
8841 lt_prog_compiler_pic='-fPIC'
8845 # PORTME Check for flag to pass linker flags through the system compiler.
8848 lt_prog_compiler_wl='-Wl,'
8849 if test "$host_cpu" = ia64; then
8850 # AIX 5 now supports IA64 processor
8851 lt_prog_compiler_static='-Bstatic'
8853 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8857 # PIC is the default on this platform
8858 # Common symbols not allowed in MH_DYLIB files
8859 case $cc_basename in
8861 lt_prog_compiler_pic='-qnocommon'
8862 lt_prog_compiler_wl='-Wl,'
8867 mingw* | pw32* | os2*)
8868 # This hack is so that the source file can tell whether it is being
8869 # built for inclusion in a dll (and should export symbols for example).
8870 lt_prog_compiler_pic='-DDLL_EXPORT'
8873 hpux9* | hpux10* | hpux11*)
8874 lt_prog_compiler_wl='-Wl,'
8875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8882 lt_prog_compiler_pic='+Z'
8885 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8886 lt_prog_compiler_static='${wl}-a ${wl}archive'
8889 irix5* | irix6* | nonstopux*)
8890 lt_prog_compiler_wl='-Wl,'
8891 # PIC (with -KPIC) is the default.
8892 lt_prog_compiler_static='-non_shared'
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8900 linux* | k*bsd*-gnu)
8901 case $cc_basename in
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-static'
8907 pgcc* | pgf77* | pgf90* | pgf95*)
8908 # Portland Group compilers (*not* the Pentium gcc compiler,
8909 # which looks to be a dead project)
8910 lt_prog_compiler_wl='-Wl,'
8911 lt_prog_compiler_pic='-fpic'
8912 lt_prog_compiler_static='-Bstatic'
8915 lt_prog_compiler_wl='-Wl,'
8916 # All Alpha code is PIC.
8917 lt_prog_compiler_static='-non_shared'
8922 osf3* | osf4* | osf5*)
8923 lt_prog_compiler_wl='-Wl,'
8924 # All OSF/1 code is PIC.
8925 lt_prog_compiler_static='-non_shared'
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 case $cc_basename in
8933 lt_prog_compiler_wl='-Qoption ld ';;
8935 lt_prog_compiler_wl='-Wl,';;
8940 lt_prog_compiler_wl='-Qoption ld '
8941 lt_prog_compiler_pic='-PIC'
8942 lt_prog_compiler_static='-Bstatic'
8945 sysv4 | sysv4.2uw2* | sysv4.3*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8952 if test -d /usr/nec ;then
8953 lt_prog_compiler_pic='-Kconform_pic'
8954 lt_prog_compiler_static='-Bstatic'
8958 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='-KPIC'
8961 lt_prog_compiler_static='-Bstatic'
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_can_build_shared=no
8970 lt_prog_compiler_pic='-pic'
8971 lt_prog_compiler_static='-Bstatic'
8975 lt_prog_compiler_can_build_shared=no
8980 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8981 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8984 # Check to make sure the PIC flag actually works.
8986 if test -n "$lt_prog_compiler_pic"; then
8988 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8989 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8990 if test "${lt_prog_compiler_pic_works+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 lt_prog_compiler_pic_works=no
8994 ac_outfile=conftest.$ac_objext
8995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8997 # Insert the option either (1) after the last *FLAGS variable, or
8998 # (2) before a word containing "conftest.", or (3) at the end.
8999 # Note that $ac_compile itself does not contain backslashes and begins
9000 # with a dollar sign (not a hyphen), so the echo should work correctly.
9001 # The option is referenced via a variable to avoid confusing sed.
9002 lt_compile=`echo "$ac_compile" | $SED \
9003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9005 -e 's:$: $lt_compiler_flag:'`
9006 (eval echo "\"\$as_me:9006: $lt_compile\"" >&5)
9007 (eval "$lt_compile" 2>conftest.err)
9009 cat conftest.err >&5
9010 echo "$as_me:9010: \$? = $ac_status" >&5
9011 if (exit $ac_status) && test -s "$ac_outfile"; then
9012 # The compiler can only warn and ignore the option if not recognized
9013 # So say no if there are warnings other than the usual output.
9014 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9017 lt_prog_compiler_pic_works=yes
9023 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9024 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9026 if test x"$lt_prog_compiler_pic_works" = xyes; then
9027 case $lt_prog_compiler_pic in
9029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9032 lt_prog_compiler_pic=
9033 lt_prog_compiler_can_build_shared=no
9038 # For platforms which do not support PIC, -DPIC is meaningless:
9040 lt_prog_compiler_pic=
9043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9048 # Check to make sure the static flag actually works.
9050 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9051 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9052 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9053 if test "${lt_prog_compiler_static_works+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 lt_prog_compiler_static_works=no
9057 save_LDFLAGS="$LDFLAGS"
9058 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9059 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9060 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9061 # The linker can only warn and ignore the option if not recognized
9062 # So say no if there are warnings
9063 if test -s conftest.err; then
9064 # Append any errors to the config.log.
9065 cat conftest.err 1>&5
9066 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9068 if diff conftest.exp conftest.er2 >/dev/null; then
9069 lt_prog_compiler_static_works=yes
9072 lt_prog_compiler_static_works=yes
9076 LDFLAGS="$save_LDFLAGS"
9079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9080 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9082 if test x"$lt_prog_compiler_static_works" = xyes; then
9085 lt_prog_compiler_static=
9089 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9090 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9091 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 lt_cv_prog_compiler_c_o=no
9095 $rm -r conftest 2>/dev/null
9099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9101 lt_compiler_flag="-o out/conftest2.$ac_objext"
9102 # Insert the option either (1) after the last *FLAGS variable, or
9103 # (2) before a word containing "conftest.", or (3) at the end.
9104 # Note that $ac_compile itself does not contain backslashes and begins
9105 # with a dollar sign (not a hyphen), so the echo should work correctly.
9106 lt_compile=`echo "$ac_compile" | $SED \
9107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9109 -e 's:$: $lt_compiler_flag:'`
9110 (eval echo "\"\$as_me:9110: $lt_compile\"" >&5)
9111 (eval "$lt_compile" 2>out/conftest.err)
9113 cat out/conftest.err >&5
9114 echo "$as_me:9114: \$? = $ac_status" >&5
9115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9117 # The compiler can only warn and ignore the option if not recognized
9118 # So say no if there are warnings
9119 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9122 lt_cv_prog_compiler_c_o=yes
9127 # SGI C++ compiler will create directory out/ii_files/ for
9128 # template instantiation
9129 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9130 $rm out/* && rmdir out
9136 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9137 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9140 hard_links="nottested"
9141 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9142 # do not overwrite the value of need_locks provided by the user
9143 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9144 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9149 ln conftest.a conftest.b 2>&5 || hard_links=no
9150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9151 { echo "$as_me:$LINENO: result: $hard_links" >&5
9152 echo "${ECHO_T}$hard_links" >&6; }
9153 if test "$hard_links" = no; then
9154 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9155 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9162 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9163 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9166 allow_undefined_flag=
9167 enable_shared_with_static_runtimes=no
9169 archive_expsym_cmds=
9170 old_archive_From_new_cmds=
9171 old_archive_from_expsyms_cmds=
9172 export_dynamic_flag_spec=
9173 whole_archive_flag_spec=
9174 thread_safe_flag_spec=
9175 hardcode_libdir_flag_spec=
9176 hardcode_libdir_flag_spec_ld=
9177 hardcode_libdir_separator=
9180 hardcode_shlibpath_var=unsupported
9181 link_all_deplibs=unknown
9182 hardcode_automatic=no
9185 always_export_symbols=no
9186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9187 # include_expsyms should be a list of space-separated symbols to be *always*
9188 # included in the symbol list
9190 # exclude_expsyms can be an extended regexp of symbols to exclude
9191 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9192 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9193 # as well as any symbol that contains `d'.
9194 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9196 # platforms (ab)use it in PIC code, but their linkers get confused if
9197 # the symbol is explicitly referenced. Since portable code cannot
9198 # rely on this symbol name, it's probably fine to never include it in
9199 # preloaded symbol tables.
9200 extract_expsyms_cmds=
9201 # Just being paranoid about ensuring that cc_basename is set.
9202 for cc_temp in $compiler""; do
9204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9213 cygwin* | mingw* | pw32*)
9214 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9215 # When not using gcc, we currently assume that we are using
9216 # Microsoft Visual C++.
9217 if test "$GCC" != yes; then
9222 # we just hope/assume this is gcc and not c89 (= MSVC++)
9231 if test "$with_gnu_ld" = yes; then
9232 # If archive_cmds runs LD, not CC, wlarc should be empty
9235 # Set some defaults for GNU ld with shared library support. These
9236 # are reset later if shared libraries are not supported. Putting them
9237 # here allows them to be overridden if necessary.
9238 runpath_var=LD_RUN_PATH
9239 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9240 export_dynamic_flag_spec='${wl}--export-dynamic'
9241 # ancient GNU ld didn't support --whole-archive et. al.
9242 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9243 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9245 whole_archive_flag_spec=
9247 supports_anon_versioning=no
9248 case `$LD -v 2>/dev/null` in
9249 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9252 *\ 2.11.*) ;; # other 2.11 versions
9253 *) supports_anon_versioning=yes ;;
9256 # See if GNU ld supports shared libraries.
9258 aix3* | aix4* | aix5*)
9259 # On AIX/PPC, the GNU linker is very broken
9260 if test "$host_cpu" != ia64; then
9264 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9265 *** to be unable to reliably create shared libraries on AIX.
9266 *** Therefore, libtool is disabling shared libraries support. If you
9267 *** really care for shared libraries, you may want to modify your PATH
9268 *** so that a non-GNU linker is found, and then restart.
9275 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)'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9279 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9280 # that the semantics of dynamic libraries on AmigaOS, at least up
9281 # to version 4, is to share data among multiple programs linked
9282 # with the same dynamic library. Since this doesn't match the
9283 # behavior of shared libraries on other platforms, we can't use
9289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9290 allow_undefined_flag=unsupported
9291 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9292 # support --undefined. This deserves some investigation. FIXME
9293 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 cygwin* | mingw* | pw32*)
9300 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9301 # as there is no search path for DLLs.
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 allow_undefined_flag=unsupported
9304 always_export_symbols=no
9305 enable_shared_with_static_runtimes=yes
9306 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9308 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9310 # If the export-symbols file already is a .def file (1st line
9311 # is EXPORTS), use it as is; otherwise, prepend...
9312 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9313 cp $export_symbols $output_objdir/$soname.def;
9315 echo EXPORTS > $output_objdir/$soname.def;
9316 cat $export_symbols >> $output_objdir/$soname.def;
9318 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9326 hardcode_shlibpath_var=no
9327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9328 export_dynamic_flag_spec='${wl}-E'
9329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9330 # Instead, shared libraries are loaded at an image base (0x10000000 by
9331 # default) and relocated if they conflict, which is a slow very memory
9332 # consuming and fragmenting process. To avoid this, we pick a random,
9333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9336 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'
9339 linux* | k*bsd*-gnu)
9340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9342 case $cc_basename,$host_cpu in
9343 pgcc*) # Portland Group C compiler
9344 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'
9345 tmp_addflag=' $pic_flag'
9347 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9348 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'
9349 tmp_addflag=' $pic_flag -Mnomain' ;;
9350 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9351 tmp_addflag=' -i_dynamic' ;;
9352 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9353 tmp_addflag=' -i_dynamic -nofor_main' ;;
9354 ifc* | ifort*) # Intel Fortran compiler
9355 tmp_addflag=' -nofor_main' ;;
9357 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359 if test $supports_anon_versioning = yes; then
9360 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9362 $echo "local: *; };" >> $output_objdir/$libname.ver~
9363 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9371 netbsd* | netbsdelf*-gnu)
9372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9373 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9387 *** create shared libraries on Solaris systems. Therefore, libtool
9388 *** is disabling shared libraries support. We urge you to upgrade GNU
9389 *** binutils to release 2.9.1 or newer. Another option is to modify
9390 *** your PATH or compiler configuration so that the native linker is
9391 *** used, and then restart.
9394 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9403 case `$LD -v 2>&1` in
9404 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9408 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9409 *** reliably create shared libraries on SCO systems. Therefore, libtool
9410 *** is disabling shared libraries support. We urge you to upgrade GNU
9411 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9412 *** your PATH or compiler configuration so that the native linker is
9413 *** used, and then restart.
9418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9419 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9430 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_shlibpath_var=no
9437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9446 if test "$ld_shlibs" = no; then
9448 hardcode_libdir_flag_spec=
9449 export_dynamic_flag_spec=
9450 whole_archive_flag_spec=
9453 # PORTME fill in a description of your system's linker (not GNU ld)
9456 allow_undefined_flag=unsupported
9457 always_export_symbols=yes
9458 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'
9459 # Note: this linker hardcodes the directories in LIBPATH if there
9460 # are no directories specified by -L.
9461 hardcode_minus_L=yes
9462 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9463 # Neither direct hardcoding nor static linking is supported with a
9465 hardcode_direct=unsupported
9470 if test "$host_cpu" = ia64; then
9471 # On IA64, the linker does run time linking by default, so we don't
9472 # have to do anything special.
9473 aix_use_runtimelinking=no
9474 exp_sym_flag='-Bexport'
9477 # If we're using GNU nm, then we don't want the "-C" option.
9478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9479 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9480 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'
9482 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'
9484 aix_use_runtimelinking=no
9486 # Test if we are trying to use run time linking or normal
9487 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9488 # need to do runtime linking.
9489 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9490 for ld_flag in $LDFLAGS; do
9491 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9492 aix_use_runtimelinking=yes
9499 exp_sym_flag='-bexport'
9500 no_entry_flag='-bnoentry'
9503 # When large executables or shared objects are built, AIX ld can
9504 # have problems creating the table of contents. If linking a library
9505 # or program results in "error TOC overflow" add -mminimal-toc to
9506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9511 hardcode_libdir_separator=':'
9512 link_all_deplibs=yes
9514 if test "$GCC" = yes; then
9515 case $host_os in aix4.[012]|aix4.[012].*)
9516 # We only want to do this on AIX 4.2 and lower, the check
9517 # below for broken collect2 doesn't work under 4.3+
9518 collect2name=`${CC} -print-prog-name=collect2`
9519 if test -f "$collect2name" && \
9520 strings "$collect2name" | grep resolve_lib_name >/dev/null
9522 # We have reworked collect2
9525 # We have old collect2
9526 hardcode_direct=unsupported
9527 # It fails to find uninstalled libraries when the uninstalled
9528 # path is not listed in the libpath. Setting hardcode_minus_L
9529 # to unsupported forces relinking
9530 hardcode_minus_L=yes
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_libdir_separator=
9536 shared_flag='-shared'
9537 if test "$aix_use_runtimelinking" = yes; then
9538 shared_flag="$shared_flag "'${wl}-G'
9542 if test "$host_cpu" = ia64; then
9543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9544 # chokes on -Wl,-G. The following line is correct:
9547 if test "$aix_use_runtimelinking" = yes; then
9548 shared_flag='${wl}-G'
9550 shared_flag='${wl}-bM:SRE'
9555 # It seems that -bexpall does not export symbols beginning with
9556 # underscore (_), so it is better to generate a list of symbols to export.
9557 always_export_symbols=yes
9558 if test "$aix_use_runtimelinking" = yes; then
9559 # Warning - without using the other runtime loading flags (-brtl),
9560 # -berok will link without error, but may produce a broken library.
9561 allow_undefined_flag='-berok'
9562 # Determine the default libpath from the value encoded in an empty executable.
9563 cat >conftest.$ac_ext <<_ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_link") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest$ac_exeext &&
9595 $as_test_x conftest$ac_exeext; then
9597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9599 # Check for a 64-bit object if we didn't find anything.
9600 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610 conftest$ac_exeext conftest.$ac_ext
9611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9613 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9614 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"
9616 if test "$host_cpu" = ia64; then
9617 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9618 allow_undefined_flag="-z nodefs"
9619 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"
9621 # Determine the default libpath from the value encoded in an empty executable.
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest$ac_exeext &&
9654 $as_test_x conftest$ac_exeext; then
9656 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9658 # Check for a 64-bit object if we didn't find anything.
9659 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9669 conftest$ac_exeext conftest.$ac_ext
9670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9673 # Warning - without using the other run time loading flags,
9674 # -berok will link without error, but may produce a broken library.
9675 no_undefined_flag=' ${wl}-bernotok'
9676 allow_undefined_flag=' ${wl}-berok'
9677 # Exported symbols can be pulled into shared objects from archives
9678 whole_archive_flag_spec='$convenience'
9679 archive_cmds_need_lc=yes
9680 # This is similar to how AIX traditionally builds its shared libraries.
9681 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'
9687 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)'
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 hardcode_minus_L=yes
9690 # see comment about different semantics on the GNU ld section
9695 export_dynamic_flag_spec=-rdynamic
9698 cygwin* | mingw* | pw32*)
9699 # When not using gcc, we currently assume that we are using
9700 # Microsoft Visual C++.
9701 # hardcode_libdir_flag_spec is actually meaningless, as there is
9702 # no search path for DLLs.
9703 hardcode_libdir_flag_spec=' '
9704 allow_undefined_flag=unsupported
9705 # Tell ltmain to make .lib files, not .a files.
9707 # Tell ltmain to make .dll files, not .so files.
9709 # FIXME: Setting linknames here is a bad hack.
9710 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9711 # The linker will automatically build a .lib file if we build a DLL.
9712 old_archive_From_new_cmds='true'
9713 # FIXME: Should let the user specify the lib program.
9714 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9715 fix_srcfile_path='`cygpath -w "$srcfile"`'
9716 enable_shared_with_static_runtimes=yes
9719 darwin* | rhapsody*)
9721 rhapsody* | darwin1.[012])
9722 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9725 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9726 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9728 case ${MACOSX_DEPLOYMENT_TARGET} in
9730 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9733 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9739 archive_cmds_need_lc=no
9741 hardcode_automatic=yes
9742 hardcode_shlibpath_var=unsupported
9743 whole_archive_flag_spec=''
9744 link_all_deplibs=yes
9745 if test "$GCC" = yes ; then
9746 output_verbose_link_cmd='echo'
9747 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9748 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9750 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}'
9751 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}'
9753 case $cc_basename in
9755 output_verbose_link_cmd='echo'
9756 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9757 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9759 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9760 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}'
9770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771 hardcode_libdir_flag_spec='-L$libdir'
9772 hardcode_shlibpath_var=no
9779 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9780 # support. Future versions do this automatically, but an explicit c++rt0.o
9781 # does not break anything, and helps significantly (at the cost of a little
9784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9785 hardcode_libdir_flag_spec='-R$libdir'
9787 hardcode_shlibpath_var=no
9790 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_minus_L=yes
9795 hardcode_shlibpath_var=no
9798 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9799 freebsd* | dragonfly*)
9800 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9801 hardcode_libdir_flag_spec='-R$libdir'
9803 hardcode_shlibpath_var=no
9807 if test "$GCC" = yes; then
9808 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'
9810 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'
9812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9813 hardcode_libdir_separator=:
9816 # hardcode_minus_L: Not really in the search PATH,
9817 # but as the default location of the library.
9818 hardcode_minus_L=yes
9819 export_dynamic_flag_spec='${wl}-E'
9823 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9824 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9828 if test "$with_gnu_ld" = no; then
9829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9830 hardcode_libdir_separator=:
9833 export_dynamic_flag_spec='${wl}-E'
9835 # hardcode_minus_L: Not really in the search PATH,
9836 # but as the default location of the library.
9837 hardcode_minus_L=yes
9842 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9845 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9848 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9857 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867 if test "$with_gnu_ld" = no; then
9868 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9869 hardcode_libdir_separator=:
9873 hardcode_libdir_flag_spec_ld='+b $libdir'
9875 hardcode_shlibpath_var=no
9879 export_dynamic_flag_spec='${wl}-E'
9881 # hardcode_minus_L: Not really in the search PATH,
9882 # but as the default location of the library.
9883 hardcode_minus_L=yes
9889 irix5* | irix6* | nonstopux*)
9890 if test "$GCC" = yes; then
9891 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'
9893 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'
9894 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator=:
9898 link_all_deplibs=yes
9901 netbsd* | netbsdelf*-gnu)
9902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9905 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9907 hardcode_libdir_flag_spec='-R$libdir'
9909 hardcode_shlibpath_var=no
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916 hardcode_libdir_separator=:
9917 hardcode_shlibpath_var=no
9922 hardcode_shlibpath_var=no
9923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9926 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9927 export_dynamic_flag_spec='${wl}-E'
9930 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9932 hardcode_libdir_flag_spec='-R$libdir'
9935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9943 hardcode_libdir_flag_spec='-L$libdir'
9944 hardcode_minus_L=yes
9945 allow_undefined_flag=unsupported
9946 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'
9947 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9951 if test "$GCC" = yes; then
9952 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9953 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'
9955 allow_undefined_flag=' -expect_unresolved \*'
9956 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'
9958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959 hardcode_libdir_separator=:
9962 osf4* | osf5*) # as osf3* with the addition of -msym flag
9963 if test "$GCC" = yes; then
9964 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9965 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'
9966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968 allow_undefined_flag=' -expect_unresolved \*'
9969 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'
9970 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9971 $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'
9973 # Both c and cxx compiler support -rpath directly
9974 hardcode_libdir_flag_spec='-rpath $libdir'
9976 hardcode_libdir_separator=:
9980 no_undefined_flag=' -z text'
9981 if test "$GCC" = yes; then
9983 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9985 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9988 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9992 hardcode_libdir_flag_spec='-R$libdir'
9993 hardcode_shlibpath_var=no
9995 solaris2.[0-5] | solaris2.[0-5].*) ;;
9997 # The compiler driver will combine linker options so we
9998 # cannot just pass the convience library names through
9999 # without $wl, iff we do not link with $LD.
10000 # Luckily, gcc supports the same syntax we need for Sun Studio.
10001 # Supported since Solaris 2.6 (maybe 2.5.1?)
10004 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10006 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10009 link_all_deplibs=yes
10013 if test "x$host_vendor" = xsequent; then
10014 # Use $CC to link under sequent, because it throws in some extra .o
10015 # files that make .init and .fini sections work.
10016 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_direct=yes
10022 hardcode_minus_L=yes
10023 hardcode_shlibpath_var=no
10027 case $host_vendor in
10029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_direct=yes # is this really true???
10033 ## LD is ld it makes a PLAMLIB
10034 ## CC just makes a GrossModule.
10035 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10036 reload_cmds='$CC -r -o $output$reload_objs'
10040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10044 runpath_var='LD_RUN_PATH'
10045 hardcode_shlibpath_var=no
10049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_shlibpath_var=no
10051 export_dynamic_flag_spec='-Bexport'
10055 if test -d /usr/nec; then
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_shlibpath_var=no
10058 runpath_var=LD_RUN_PATH
10059 hardcode_runpath_var=yes
10064 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10065 no_undefined_flag='${wl}-z,text'
10066 archive_cmds_need_lc=no
10067 hardcode_shlibpath_var=no
10068 runpath_var='LD_RUN_PATH'
10070 if test "$GCC" = yes; then
10071 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10075 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 sysv5* | sco3.2v5* | sco5v6*)
10080 # Note: We can NOT use -z defs as we might desire, because we do not
10081 # link with -lc, and that would cause any symbols used from libc to
10082 # always be unresolved, which means just about no library would
10083 # ever link correctly. If we're not using GNU ld we use -z text
10084 # though, which does catch some bad symbols but isn't as heavy-handed
10086 no_undefined_flag='${wl}-z,text'
10087 allow_undefined_flag='${wl}-z,nodefs'
10088 archive_cmds_need_lc=no
10089 hardcode_shlibpath_var=no
10090 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10091 hardcode_libdir_separator=':'
10092 link_all_deplibs=yes
10093 export_dynamic_flag_spec='${wl}-Bexport'
10094 runpath_var='LD_RUN_PATH'
10096 if test "$GCC" = yes; then
10097 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_libdir_flag_spec='-L$libdir'
10108 hardcode_shlibpath_var=no
10117 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10118 echo "${ECHO_T}$ld_shlibs" >&6; }
10119 test "$ld_shlibs" = no && can_build_shared=no
10122 # Do we need to explicitly link libc?
10124 case "x$archive_cmds_need_lc" in
10126 # Assume -lc should be added
10127 archive_cmds_need_lc=yes
10129 if test "$enable_shared" = yes && test "$GCC" = yes; then
10130 case $archive_cmds in
10132 # FIXME: we may have to deal with multi-command sequences.
10135 # Test whether the compiler implicitly links with -lc since on some
10136 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10137 # to ld, don't add -lc before -lgcc.
10138 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10139 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } 2>conftest.err; then
10150 libobjs=conftest.$ac_objext
10152 wl=$lt_prog_compiler_wl
10153 pic_flag=$lt_prog_compiler_pic
10159 lt_save_allow_undefined_flag=$allow_undefined_flag
10160 allow_undefined_flag=
10161 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10162 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }
10167 archive_cmds_need_lc=no
10169 archive_cmds_need_lc=yes
10171 allow_undefined_flag=$lt_save_allow_undefined_flag
10173 cat conftest.err 1>&5
10176 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10177 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10184 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10185 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10186 library_names_spec=
10187 libname_spec='lib$name'
10191 postuninstall_cmds=
10195 shlibpath_overrides_runpath=unknown
10197 dynamic_linker="$host_os ld.so"
10198 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10199 if test "$GCC" = yes; then
10200 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10201 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10202 # if the path contains ";" then we assume it to be the separator
10203 # otherwise default to the standard path separator (i.e. ":") - it is
10204 # assumed that no part of a normal pathname contains ";" but that should
10205 # okay in the real world where ";" in dirpaths is itself problematic.
10206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10211 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10213 need_lib_prefix=unknown
10214 hardcode_into_libs=no
10216 # when you set need_version to no, make sure it does not cause -set_version
10217 # flags to be left without arguments
10218 need_version=unknown
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10224 shlibpath_var=LIBPATH
10226 # AIX 3 has no versioning support, so we append a major version to the name.
10227 soname_spec='${libname}${release}${shared_ext}$major'
10234 hardcode_into_libs=yes
10235 if test "$host_cpu" = ia64; then
10236 # AIX 5 supports IA64
10237 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10238 shlibpath_var=LD_LIBRARY_PATH
10240 # With GCC up to 2.95.x, collect2 would create an import file
10241 # for dependence libraries. The import file would start with
10242 # the line `#! .'. This would cause the generated library to
10243 # depend on `.', always an invalid library. This was fixed in
10244 # development snapshots of GCC prior to 3.0.
10246 aix4 | aix4.[01] | aix4.[01].*)
10247 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10249 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10252 can_build_shared=no
10256 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10257 # soname into executable. Probably we can add versioning support to
10258 # collect2, so additional links can be useful in future.
10259 if test "$aix_use_runtimelinking" = yes; then
10260 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10261 # instead of lib<name>.a to let people know that these are not
10262 # typical AIX shared libraries.
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 # We preserve .a as extension for shared libraries through AIX4.2
10266 # and later when we are not doing run time linking.
10267 library_names_spec='${libname}${release}.a $libname.a'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10270 shlibpath_var=LIBPATH
10275 library_names_spec='$libname.ixlibrary $libname.a'
10276 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10277 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'
10281 library_names_spec='${libname}${shared_ext}'
10282 dynamic_linker="$host_os ld.so"
10283 shlibpath_var=LIBRARY_PATH
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10295 # the default ld.so.conf also contains /usr/contrib/lib and
10296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10297 # libtool to hard-code these into programs
10300 cygwin* | mingw* | pw32*)
10301 version_type=windows
10306 case $GCC,$host_os in
10307 yes,cygwin* | yes,mingw* | yes,pw32*)
10308 library_names_spec='$libname.dll.a'
10309 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10310 postinstall_cmds='base_file=`basename \${file}`~
10311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10312 dldir=$destdir/`dirname \$dlpath`~
10313 test -d \$dldir || mkdir -p \$dldir~
10314 $install_prog $dir/$dlname \$dldir/$dlname~
10315 chmod a+x \$dldir/$dlname'
10316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10317 dlpath=$dir/\$dldll~
10319 shlibpath_overrides_runpath=yes
10323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10325 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10328 # MinGW DLLs use traditional 'lib' prefix
10329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10331 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10332 # It is most probably a Windows format PATH printed by
10333 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10334 # path with ; separators, and with drive letters. We can handle the
10335 # drive letters (cygwin fileutils understands them), so leave them,
10336 # especially as we might pass files found there to a mingw objdump,
10337 # which wouldn't understand a cygwinified path. Ahh.
10338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10344 # pw32 DLLs use 'pw' prefix rather than 'lib'
10345 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10354 dynamic_linker='Win32 ld.exe'
10355 # FIXME: first we should search . and the directory the executable is in
10359 darwin* | rhapsody*)
10360 dynamic_linker="$host_os dyld"
10361 version_type=darwin
10364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10365 soname_spec='${libname}${release}${major}$shared_ext'
10366 shlibpath_overrides_runpath=yes
10367 shlibpath_var=DYLD_LIBRARY_PATH
10368 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10369 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10370 if test "$GCC" = yes; then
10371 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10373 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10391 freebsd* | dragonfly*)
10392 # DragonFly does not have aout. When/if they implement a new
10393 # versioning mechanism, adjust this.
10394 if test -x /usr/bin/objformat; then
10395 objformat=`/usr/bin/objformat`
10398 freebsd[123]*) objformat=aout ;;
10399 *) objformat=elf ;;
10402 version_type=freebsd-$objformat
10403 case $version_type in
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10414 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=yes
10419 freebsd3.[01]* | freebsdelf3.[01]*)
10420 shlibpath_overrides_runpath=yes
10421 hardcode_into_libs=yes
10423 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10424 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10425 shlibpath_overrides_runpath=no
10426 hardcode_into_libs=yes
10428 freebsd*) # from 4.6 on
10429 shlibpath_overrides_runpath=yes
10430 hardcode_into_libs=yes
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 hardcode_into_libs=yes
10445 hpux9* | hpux10* | hpux11*)
10446 # Give a soname corresponding to the major version so that dld.sl refuses to
10447 # link against other versions.
10454 hardcode_into_libs=yes
10455 dynamic_linker="$host_os dld.so"
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 if test "X$HPUX_IA64_MODE" = X32; then
10461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10469 hardcode_into_libs=yes
10470 dynamic_linker="$host_os dld.sl"
10471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10480 dynamic_linker="$host_os dld.sl"
10481 shlibpath_var=SHLIB_PATH
10482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 soname_spec='${libname}${release}${shared_ext}$major'
10487 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10488 postinstall_cmds='chmod 555 $lib'
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=no
10500 hardcode_into_libs=yes
10503 irix5* | irix6* | nonstopux*)
10505 nonstopux*) version_type=nonstopux ;;
10507 if test "$lt_cv_prog_gnu_ld" = yes; then
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10518 irix5* | nonstopux*)
10519 libsuff= shlibsuff=
10522 case $LD in # libtool.m4 will add one of these switches to LD
10523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10524 libsuff= shlibsuff= libmagic=32-bit;;
10525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10526 libsuff=32 shlibsuff=N32 libmagic=N32;;
10527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10529 *) libsuff= shlibsuff= libmagic=never-match;;
10533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10534 shlibpath_overrides_runpath=no
10535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10537 hardcode_into_libs=yes
10540 # No shared lib support for Linux oldld, aout, or coff.
10541 linux*oldld* | linux*aout* | linux*coff*)
10545 # This must be Linux ELF.
10546 linux* | k*bsd*-gnu)
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=no
10555 # This implies no fast_install, which is unacceptable.
10556 # Some rework will be needed to allow for fast_install
10557 # before this can be enabled.
10558 hardcode_into_libs=yes
10560 # Append ld.so.conf contents to the search path
10561 if test -f /etc/ld.so.conf; then
10562 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10563 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10566 # We used to test for /lib/ld.so.1 and disable shared libraries on
10567 # powerpc, because MkLinux only supported shared libraries with the
10568 # GNU dynamic linker. Since this was broken with cross compilers,
10569 # most powerpc-linux boxes support dynamic linking these days and
10570 # people can always --disable-shared, the test was removed, and we
10571 # assume the GNU/Linux dynamic linker is in use.
10572 dynamic_linker='GNU/Linux ld.so'
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=no
10583 hardcode_into_libs=yes
10584 dynamic_linker='NetBSD ld.elf_so'
10591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10594 dynamic_linker='NetBSD (a.out) ld.so'
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 dynamic_linker='NetBSD ld.elf_so'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 hardcode_into_libs=yes
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10624 sys_lib_dlsearch_path_spec="/usr/lib"
10626 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10628 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10629 *) need_version=no ;;
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10636 openbsd2.[89] | openbsd2.[89].*)
10637 shlibpath_overrides_runpath=no
10640 shlibpath_overrides_runpath=yes
10644 shlibpath_overrides_runpath=yes
10649 libname_spec='$name'
10652 library_names_spec='$libname${shared_ext} $libname.a'
10653 dynamic_linker='OS/2 ld.exe'
10654 shlibpath_var=LIBPATH
10657 osf3* | osf4* | osf5*)
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10665 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 # ldd complains unless libraries are executable
10678 postinstall_cmds='chmod +x $lib'
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10684 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 if test "$with_gnu_ld" = yes; then
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 case $host_vendor in
10700 shlibpath_overrides_runpath=no
10702 export_dynamic_flag_spec='${wl}-Blargedynsym'
10703 runpath_var=LD_RUN_PATH
10711 shlibpath_overrides_runpath=no
10712 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10718 if test -d /usr/nec ;then
10720 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10721 soname_spec='$libname${shared_ext}.$major'
10722 shlibpath_var=LD_LIBRARY_PATH
10726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10727 version_type=freebsd-elf
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 hardcode_into_libs=yes
10734 if test "$with_gnu_ld" = yes; then
10735 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10736 shlibpath_overrides_runpath=no
10738 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10739 shlibpath_overrides_runpath=yes
10742 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10746 sys_lib_dlsearch_path_spec='/usr/lib'
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LD_LIBRARY_PATH
10760 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10761 echo "${ECHO_T}$dynamic_linker" >&6; }
10762 test "$dynamic_linker" = no && can_build_shared=no
10764 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10765 if test "$GCC" = yes; then
10766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10769 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10770 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10772 if test -n "$hardcode_libdir_flag_spec" || \
10773 test -n "$runpath_var" || \
10774 test "X$hardcode_automatic" = "Xyes" ; then
10776 # We can hardcode non-existant directories.
10777 if test "$hardcode_direct" != no &&
10778 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10779 # have to relink, otherwise we might link with an installed library
10780 # when we should be linking with a yet-to-be-installed one
10781 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10782 test "$hardcode_minus_L" != no; then
10783 # Linking always hardcodes the temporary library directory.
10784 hardcode_action=relink
10786 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10787 hardcode_action=immediate
10790 # We cannot hardcode anything, or else we can only hardcode existing
10792 hardcode_action=unsupported
10794 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10795 echo "${ECHO_T}$hardcode_action" >&6; }
10797 if test "$hardcode_action" = relink; then
10798 # Fast installation is not supported
10799 enable_fast_install=no
10800 elif test "$shlibpath_overrides_runpath" = yes ||
10801 test "$enable_shared" = no; then
10802 # Fast installation is not necessary
10803 enable_fast_install=needless
10808 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10809 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10810 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10811 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10812 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10813 { echo "$as_me:$LINENO: result: yes" >&5
10814 echo "${ECHO_T}yes" >&6; }
10816 # FIXME - insert some real tests, host_os isn't really good enough
10819 if test -n "$STRIP" ; then
10820 striplib="$STRIP -x"
10821 { echo "$as_me:$LINENO: result: yes" >&5
10822 echo "${ECHO_T}yes" >&6; }
10824 { echo "$as_me:$LINENO: result: no" >&5
10825 echo "${ECHO_T}no" >&6; }
10829 { echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6; }
10835 if test "x$enable_dlopen" != xyes; then
10836 enable_dlopen=unknown
10837 enable_dlopen_self=unknown
10838 enable_dlopen_self_static=unknown
10845 lt_cv_dlopen="load_add_on"
10847 lt_cv_dlopen_self=yes
10851 lt_cv_dlopen="LoadLibrary"
10856 lt_cv_dlopen="dlopen"
10861 # if libdl is installed we need to link against it
10862 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10863 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 ac_check_lib_save_LIBS=$LIBS
10869 cat >conftest.$ac_ext <<_ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10876 /* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (ac_try="$ac_link"
10893 case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest$ac_exeext &&
10908 $as_test_x conftest$ac_exeext; then
10909 ac_cv_lib_dl_dlopen=yes
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 ac_cv_lib_dl_dlopen=no
10917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10923 if test $ac_cv_lib_dl_dlopen = yes; then
10924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10927 lt_cv_dlopen="dyld"
10929 lt_cv_dlopen_self=yes
10936 { echo "$as_me:$LINENO: checking for shl_load" >&5
10937 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10938 if test "${ac_cv_func_shl_load+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10949 #define shl_load innocuous_shl_load
10951 /* System header to define __stub macros and hopefully few prototypes,
10952 which can conflict with char shl_load (); below.
10953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954 <limits.h> exists even on freestanding compilers. */
10957 # include <limits.h>
10959 # include <assert.h>
10964 /* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10971 /* The GNU C library defines this for functions which it implements
10972 to always fail with ENOSYS. Some functions are actually named
10973 something starting with __ and the normal name is an alias. */
10974 #if defined __stub_shl_load || defined __stub___shl_load
10981 return shl_load ();
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (ac_try="$ac_link"
10988 case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_link") 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && {
11000 test -z "$ac_c_werror_flag" ||
11001 test ! -s conftest.err
11002 } && test -s conftest$ac_exeext &&
11003 $as_test_x conftest$ac_exeext; then
11004 ac_cv_func_shl_load=yes
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_cv_func_shl_load=no
11012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11013 conftest$ac_exeext conftest.$ac_ext
11015 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11016 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11017 if test $ac_cv_func_shl_load = yes; then
11018 lt_cv_dlopen="shl_load"
11020 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11021 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11022 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 ac_check_lib_save_LIBS=$LIBS
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11044 return shl_load ();
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (ac_try="$ac_link"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_link") 2>conftest.er1
11058 grep -v '^ *+' conftest.er1 >conftest.err
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } && {
11063 test -z "$ac_c_werror_flag" ||
11064 test ! -s conftest.err
11065 } && test -s conftest$ac_exeext &&
11066 $as_test_x conftest$ac_exeext; then
11067 ac_cv_lib_dld_shl_load=yes
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_cv_lib_dld_shl_load=no
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11080 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11081 if test $ac_cv_lib_dld_shl_load = yes; then
11082 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11084 { echo "$as_me:$LINENO: checking for dlopen" >&5
11085 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11086 if test "${ac_cv_func_dlopen+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 cat >conftest.$ac_ext <<_ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11097 #define dlopen innocuous_dlopen
11099 /* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char dlopen (); below.
11101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102 <limits.h> exists even on freestanding compilers. */
11105 # include <limits.h>
11107 # include <assert.h>
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11119 /* The GNU C library defines this for functions which it implements
11120 to always fail with ENOSYS. Some functions are actually named
11121 something starting with __ and the normal name is an alias. */
11122 #if defined __stub_dlopen || defined __stub___dlopen
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_link") 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } && {
11148 test -z "$ac_c_werror_flag" ||
11149 test ! -s conftest.err
11150 } && test -s conftest$ac_exeext &&
11151 $as_test_x conftest$ac_exeext; then
11152 ac_cv_func_dlopen=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_func_dlopen=no
11160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11161 conftest$ac_exeext conftest.$ac_ext
11163 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11164 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11165 if test $ac_cv_func_dlopen = yes; then
11166 lt_cv_dlopen="dlopen"
11168 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11169 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11170 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 ac_check_lib_save_LIBS=$LIBS
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11182 /* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (ac_try="$ac_link"
11199 case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_link") 2>conftest.er1
11206 grep -v '^ *+' conftest.er1 >conftest.err
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && {
11211 test -z "$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 } && test -s conftest$ac_exeext &&
11214 $as_test_x conftest$ac_exeext; then
11215 ac_cv_lib_dl_dlopen=yes
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 ac_cv_lib_dl_dlopen=no
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224 conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11227 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11228 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11229 if test $ac_cv_lib_dl_dlopen = yes; then
11230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11232 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11233 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 ac_check_lib_save_LIBS=$LIBS
11238 LIBS="-lsvld $LIBS"
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_link") 2>conftest.er1
11270 grep -v '^ *+' conftest.er1 >conftest.err
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest$ac_exeext &&
11278 $as_test_x conftest$ac_exeext; then
11279 ac_cv_lib_svld_dlopen=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_cv_lib_svld_dlopen=no
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11291 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11292 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11293 if test $ac_cv_lib_svld_dlopen = yes; then
11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11296 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11297 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11298 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_check_lib_save_LIBS=$LIBS
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11310 /* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11320 return dld_link ();
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_link") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest$ac_exeext &&
11342 $as_test_x conftest$ac_exeext; then
11343 ac_cv_lib_dld_dld_link=yes
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_cv_lib_dld_dld_link=no
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352 conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11356 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11357 if test $ac_cv_lib_dld_dld_link = yes; then
11358 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11379 if test "x$lt_cv_dlopen" != xno; then
11385 case $lt_cv_dlopen in
11387 save_CPPFLAGS="$CPPFLAGS"
11388 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11390 save_LDFLAGS="$LDFLAGS"
11391 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11394 LIBS="$lt_cv_dlopen_libs $LIBS"
11396 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11397 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11398 if test "${lt_cv_dlopen_self+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 if test "$cross_compiling" = yes; then :
11402 lt_cv_dlopen_self=cross
11404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11405 lt_status=$lt_dlunknown
11406 cat > conftest.$ac_ext <<EOF
11407 #line 11407 "configure"
11408 #include "confdefs.h"
11417 # define LT_DLGLOBAL RTLD_GLOBAL
11420 # define LT_DLGLOBAL DL_GLOBAL
11422 # define LT_DLGLOBAL 0
11426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11427 find out it does not work in some platform. */
11428 #ifndef LT_DLLAZY_OR_NOW
11430 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11433 # define LT_DLLAZY_OR_NOW DL_LAZY
11436 # define LT_DLLAZY_OR_NOW RTLD_NOW
11439 # define LT_DLLAZY_OR_NOW DL_NOW
11441 # define LT_DLLAZY_OR_NOW 0
11449 extern "C" void exit (int);
11452 void fnord() { int i=42;}
11455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11456 int status = $lt_dlunknown;
11460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11461 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11462 /* dlclose (self); */
11470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11471 (eval $ac_link) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11475 (./conftest; exit; ) >&5 2>/dev/null
11477 case x$lt_status in
11478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11483 # compilation failed
11484 lt_cv_dlopen_self=no
11491 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11492 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11494 if test "x$lt_cv_dlopen_self" = xyes; then
11495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11496 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11497 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11498 if test "${lt_cv_dlopen_self_static+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 if test "$cross_compiling" = yes; then :
11502 lt_cv_dlopen_self_static=cross
11504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11505 lt_status=$lt_dlunknown
11506 cat > conftest.$ac_ext <<EOF
11507 #line 11507 "configure"
11508 #include "confdefs.h"
11517 # define LT_DLGLOBAL RTLD_GLOBAL
11520 # define LT_DLGLOBAL DL_GLOBAL
11522 # define LT_DLGLOBAL 0
11526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11527 find out it does not work in some platform. */
11528 #ifndef LT_DLLAZY_OR_NOW
11530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11533 # define LT_DLLAZY_OR_NOW DL_LAZY
11536 # define LT_DLLAZY_OR_NOW RTLD_NOW
11539 # define LT_DLLAZY_OR_NOW DL_NOW
11541 # define LT_DLLAZY_OR_NOW 0
11549 extern "C" void exit (int);
11552 void fnord() { int i=42;}
11555 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11556 int status = $lt_dlunknown;
11560 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11561 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11562 /* dlclose (self); */
11570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571 (eval $ac_link) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11575 (./conftest; exit; ) >&5 2>/dev/null
11577 case x$lt_status in
11578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11580 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11583 # compilation failed
11584 lt_cv_dlopen_self_static=no
11591 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11592 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11595 CPPFLAGS="$save_CPPFLAGS"
11596 LDFLAGS="$save_LDFLAGS"
11601 case $lt_cv_dlopen_self in
11602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11603 *) enable_dlopen_self=unknown ;;
11606 case $lt_cv_dlopen_self_static in
11607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11608 *) enable_dlopen_self_static=unknown ;;
11613 # Report which library types will actually be built
11614 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11615 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11616 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11617 echo "${ECHO_T}$can_build_shared" >&6; }
11619 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11620 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11621 test "$can_build_shared" = "no" && enable_shared=no
11623 # On AIX, shared libraries and static libraries use the same namespace, and
11624 # are all built from PIC.
11627 test "$enable_shared" = yes && enable_static=no
11628 if test -n "$RANLIB"; then
11629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11630 postinstall_cmds='$RANLIB $lib'
11635 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11636 test "$enable_shared" = yes && enable_static=no
11640 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11641 echo "${ECHO_T}$enable_shared" >&6; }
11643 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11644 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11645 # Make sure either enable_shared or enable_static is yes.
11646 test "$enable_shared" = yes || enable_static=yes
11647 { echo "$as_me:$LINENO: result: $enable_static" >&5
11648 echo "${ECHO_T}$enable_static" >&6; }
11650 # The else clause should only fire when bootstrapping the
11651 # libtool distribution, otherwise you forgot to ship ltmain.sh
11652 # with your package, and you will get complaints that there are
11653 # no rules to generate ltmain.sh.
11654 if test -f "$ltmain"; then
11655 # See if we are running on zsh, and set the options which allow our commands through
11656 # without removal of \ escapes.
11657 if test -n "${ZSH_VERSION+set}" ; then
11658 setopt NO_GLOB_SUBST
11660 # Now quote all the things that may contain metacharacters while being
11661 # careful not to overquote the AC_SUBSTed values. We take copies of the
11662 # variables and quote the copies for generation of the libtool script.
11663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11667 deplibs_check_method reload_flag reload_cmds need_locks \
11668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11669 lt_cv_sys_global_symbol_to_c_name_address \
11670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11671 old_postinstall_cmds old_postuninstall_cmds \
11675 lt_prog_compiler_wl \
11676 lt_prog_compiler_pic \
11677 lt_prog_compiler_static \
11678 lt_prog_compiler_no_builtin_flag \
11679 export_dynamic_flag_spec \
11680 thread_safe_flag_spec \
11681 whole_archive_flag_spec \
11682 enable_shared_with_static_runtimes \
11684 old_archive_from_new_cmds \
11689 compiler_lib_search_path \
11691 archive_expsym_cmds \
11693 postuninstall_cmds \
11694 old_archive_from_expsyms_cmds \
11695 allow_undefined_flag \
11696 no_undefined_flag \
11697 export_symbols_cmds \
11698 hardcode_libdir_flag_spec \
11699 hardcode_libdir_flag_spec_ld \
11700 hardcode_libdir_separator \
11701 hardcode_automatic \
11703 module_expsym_cmds \
11704 lt_cv_prog_compiler_c_o \
11706 include_expsyms; do
11709 old_archive_cmds | \
11710 old_archive_from_new_cmds | \
11712 archive_expsym_cmds | \
11714 module_expsym_cmds | \
11715 old_archive_from_expsyms_cmds | \
11716 export_symbols_cmds | \
11717 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11718 postinstall_cmds | postuninstall_cmds | \
11719 old_postinstall_cmds | old_postuninstall_cmds | \
11720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11721 # Double-quote double-evaled strings.
11722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11731 *'\$0 --fallback-echo"')
11732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11736 cfgfile="${ofile}T"
11737 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11739 { echo "$as_me:$LINENO: creating $ofile" >&5
11740 echo "$as_me: creating $ofile" >&6;}
11742 cat <<__EOF__ >> "$cfgfile"
11745 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11746 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11747 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11749 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11750 # Free Software Foundation, Inc.
11752 # This file is part of GNU Libtool:
11753 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11755 # This program is free software; you can redistribute it and/or modify
11756 # it under the terms of the GNU General Public License as published by
11757 # the Free Software Foundation; either version 2 of the License, or
11758 # (at your option) any later version.
11760 # This program is distributed in the hope that it will be useful, but
11761 # WITHOUT ANY WARRANTY; without even the implied warranty of
11762 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11763 # General Public License for more details.
11765 # You should have received a copy of the GNU General Public License
11766 # along with this program; if not, write to the Free Software
11767 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11769 # As a special exception to the GNU General Public License, if you
11770 # distribute this file as part of a program that contains a
11771 # configuration script generated by Autoconf, you may include it under
11772 # the same distribution terms that you use for the rest of that program.
11774 # A sed program that does not truncate output.
11777 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11778 Xsed="$SED -e 1s/^X//"
11780 # The HP-UX ksh and POSIX shell print the target directory to stdout
11781 # if CDPATH is set.
11782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11784 # The names of the tagged configurations supported by this script.
11787 # ### BEGIN LIBTOOL CONFIG
11789 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11791 # Shell to use when invoking shell scripts.
11794 # Whether or not to build shared libraries.
11795 build_libtool_libs=$enable_shared
11797 # Whether or not to build static libraries.
11798 build_old_libs=$enable_static
11800 # Whether or not to add -lc for building shared libraries.
11801 build_libtool_need_lc=$archive_cmds_need_lc
11803 # Whether or not to disallow shared libs when runtime libs are static
11804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11806 # Whether or not to optimize for fast installation.
11807 fast_install=$enable_fast_install
11810 host_alias=$host_alias
11814 # The build system.
11815 build_alias=$build_alias
11819 # An echo program that does not interpret backslashes.
11824 AR_FLAGS=$lt_AR_FLAGS
11829 # LTCC compiler flags.
11830 LTCFLAGS=$lt_LTCFLAGS
11832 # A language-specific compiler.
11835 # Is the compiler the GNU C compiler?
11841 # The linker used to build libraries.
11844 # Whether we need hard or soft links.
11847 # A BSD-compatible nm program.
11850 # A symbol stripping program
11853 # Used to examine libraries when file_magic_cmd begins "file"
11854 MAGIC_CMD=$MAGIC_CMD
11856 # Used on cygwin: DLL creation program.
11859 # Used on cygwin: object dumper.
11862 # Used on cygwin: assembler.
11865 # The name of the directory that contains temporary libtool files.
11868 # How to create reloadable object files.
11869 reload_flag=$lt_reload_flag
11870 reload_cmds=$lt_reload_cmds
11872 # How to pass a linker flag through the compiler.
11873 wl=$lt_lt_prog_compiler_wl
11875 # Object file suffix (normally "o").
11876 objext="$ac_objext"
11878 # Old archive suffix (normally "a").
11881 # Shared library suffix (normally ".so").
11882 shrext_cmds='$shrext_cmds'
11884 # Executable file suffix (normally "").
11887 # Additional compiler flags for building library objects.
11888 pic_flag=$lt_lt_prog_compiler_pic
11891 # What is the maximum length of a command?
11892 max_cmd_len=$lt_cv_sys_max_cmd_len
11894 # Does compiler simultaneously support -c and -o options?
11895 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11897 # Must we lock files when doing compilation?
11898 need_locks=$lt_need_locks
11900 # Do we need the lib prefix for modules?
11901 need_lib_prefix=$need_lib_prefix
11903 # Do we need a version for libraries?
11904 need_version=$need_version
11906 # Whether dlopen is supported.
11907 dlopen_support=$enable_dlopen
11909 # Whether dlopen of programs is supported.
11910 dlopen_self=$enable_dlopen_self
11912 # Whether dlopen of statically linked programs is supported.
11913 dlopen_self_static=$enable_dlopen_self_static
11915 # Compiler flag to prevent dynamic linking.
11916 link_static_flag=$lt_lt_prog_compiler_static
11918 # Compiler flag to turn off builtin functions.
11919 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11921 # Compiler flag to allow reflexive dlopens.
11922 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11924 # Compiler flag to generate shared objects directly from archives.
11925 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11927 # Compiler flag to generate thread-safe objects.
11928 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11930 # Library versioning type.
11931 version_type=$version_type
11933 # Format of library name prefix.
11934 libname_spec=$lt_libname_spec
11936 # List of archive names. First name is the real one, the rest are links.
11937 # The last name is the one that the linker finds with -lNAME.
11938 library_names_spec=$lt_library_names_spec
11940 # The coded name of the library, if different from the real name.
11941 soname_spec=$lt_soname_spec
11943 # Commands used to build and install an old-style archive.
11945 old_archive_cmds=$lt_old_archive_cmds
11946 old_postinstall_cmds=$lt_old_postinstall_cmds
11947 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11949 # Create an old-style archive from a shared archive.
11950 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11952 # Create a temporary old-style archive to link instead of a shared archive.
11953 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11955 # Commands used to build and install a shared archive.
11956 archive_cmds=$lt_archive_cmds
11957 archive_expsym_cmds=$lt_archive_expsym_cmds
11958 postinstall_cmds=$lt_postinstall_cmds
11959 postuninstall_cmds=$lt_postuninstall_cmds
11961 # Commands used to build a loadable module (assumed same as above if empty)
11962 module_cmds=$lt_module_cmds
11963 module_expsym_cmds=$lt_module_expsym_cmds
11965 # Commands to strip libraries.
11966 old_striplib=$lt_old_striplib
11967 striplib=$lt_striplib
11969 # Dependencies to place before the objects being linked to create a
11971 predep_objects=$lt_predep_objects
11973 # Dependencies to place after the objects being linked to create a
11975 postdep_objects=$lt_postdep_objects
11977 # Dependencies to place before the objects being linked to create a
11979 predeps=$lt_predeps
11981 # Dependencies to place after the objects being linked to create a
11983 postdeps=$lt_postdeps
11985 # The library search path used internally by the compiler when linking
11986 # a shared library.
11987 compiler_lib_search_path=$lt_compiler_lib_search_path
11989 # Method to check whether dependent libraries are shared objects.
11990 deplibs_check_method=$lt_deplibs_check_method
11992 # Command to use when deplibs_check_method == file_magic.
11993 file_magic_cmd=$lt_file_magic_cmd
11995 # Flag that allows shared libraries with undefined symbols to be built.
11996 allow_undefined_flag=$lt_allow_undefined_flag
11998 # Flag that forces no undefined symbols.
11999 no_undefined_flag=$lt_no_undefined_flag
12001 # Commands used to finish a libtool library installation in a directory.
12002 finish_cmds=$lt_finish_cmds
12004 # Same as above, but a single script fragment to be evaled but not shown.
12005 finish_eval=$lt_finish_eval
12007 # Take the output of nm and produce a listing of raw symbols and C names.
12008 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12010 # Transform the output of nm in a proper C declaration
12011 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12013 # Transform the output of nm in a C name address pair
12014 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12016 # This is the shared library runtime path variable.
12017 runpath_var=$runpath_var
12019 # This is the shared library path variable.
12020 shlibpath_var=$shlibpath_var
12022 # Is shlibpath searched before the hard-coded library search path?
12023 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12025 # How to hardcode a shared library path into an executable.
12026 hardcode_action=$hardcode_action
12028 # Whether we should hardcode library paths into libraries.
12029 hardcode_into_libs=$hardcode_into_libs
12031 # Flag to hardcode \$libdir into a binary during linking.
12032 # This must work even if \$libdir does not exist.
12033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12035 # If ld is used when linking, flag to hardcode \$libdir into
12036 # a binary during linking. This must work even if \$libdir does
12038 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12040 # Whether we need a single -rpath flag with a separated argument.
12041 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12043 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12044 # resulting binary.
12045 hardcode_direct=$hardcode_direct
12047 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12048 # resulting binary.
12049 hardcode_minus_L=$hardcode_minus_L
12051 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12052 # the resulting binary.
12053 hardcode_shlibpath_var=$hardcode_shlibpath_var
12055 # Set to yes if building a shared library automatically hardcodes DIR into the library
12056 # and all subsequent libraries and executables linked against it.
12057 hardcode_automatic=$hardcode_automatic
12059 # Variables whose values should be saved in libtool wrapper scripts and
12060 # restored at relink time.
12061 variables_saved_for_relink="$variables_saved_for_relink"
12063 # Whether libtool must link a program against all its dependency libraries.
12064 link_all_deplibs=$link_all_deplibs
12066 # Compile-time system search path for libraries
12067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12069 # Run-time system search path for libraries
12070 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12072 # Fix the shell variable \$srcfile for the compiler.
12073 fix_srcfile_path="$fix_srcfile_path"
12075 # Set to yes if exported symbols are required.
12076 always_export_symbols=$always_export_symbols
12078 # The commands to list exported symbols.
12079 export_symbols_cmds=$lt_export_symbols_cmds
12081 # The commands to extract the exported symbol list from a shared archive.
12082 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12084 # Symbols that should not be listed in the preloaded symbols.
12085 exclude_expsyms=$lt_exclude_expsyms
12087 # Symbols that must always be exported.
12088 include_expsyms=$lt_include_expsyms
12090 # ### END LIBTOOL CONFIG
12097 cat <<\EOF >> "$cfgfile"
12099 # AIX sometimes has problems with the GCC collect2 program. For some
12100 # reason, if we set the COLLECT_NAMES environment variable, the problems
12101 # vanish in a puff of smoke.
12102 if test "X${COLLECT_NAMES+set}" != Xset; then
12104 export COLLECT_NAMES
12110 # We use sed instead of cat because bash on DJGPP gets confused if
12111 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12112 # text mode, it properly converts lines to CR/LF. This bash problem
12113 # is reportedly fixed, but why not run on old versions too?
12114 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12116 mv -f "$cfgfile" "$ofile" || \
12117 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12121 # If there is no Makefile yet, we rely on a make rule to execute
12122 # `config.status --recheck' to rerun these tests and create the
12123 # libtool script then.
12124 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12125 if test -f "$ltmain_in"; then
12126 test -f Makefile && make "$ltmain"
12132 ac_cpp='$CPP $CPPFLAGS'
12133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12140 # Check whether --with-tags was given.
12141 if test "${with_tags+set}" = set; then
12142 withval=$with_tags; tagnames="$withval"
12146 if test -f "$ltmain" && test -n "$tagnames"; then
12147 if test ! -f "${ofile}"; then
12148 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12149 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12152 if test -z "$LTCC"; then
12153 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12154 if test -z "$LTCC"; then
12155 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12156 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12158 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12159 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12162 if test -z "$LTCFLAGS"; then
12163 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12166 # Extract list of available tagged configurations in $ofile.
12167 # Note that this assumes the entire list is on one line.
12168 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12171 for tagname in $tagnames; do
12173 # Check whether tagname contains only valid characters
12174 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12176 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12177 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12178 { (exit 1); exit 1; }; }
12182 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12184 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12185 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12186 { (exit 1); exit 1; }; }
12189 # Update the list of available tags.
12190 if test -n "$tagname"; then
12191 echo appending configuration tag \"$tagname\" to $ofile
12195 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12196 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12197 (test "X$CXX" != "Xg++"))) ; then
12199 ac_cpp='$CXXCPP $CPPFLAGS'
12200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12207 archive_cmds_need_lc_CXX=no
12208 allow_undefined_flag_CXX=
12209 always_export_symbols_CXX=no
12210 archive_expsym_cmds_CXX=
12211 export_dynamic_flag_spec_CXX=
12212 hardcode_direct_CXX=no
12213 hardcode_libdir_flag_spec_CXX=
12214 hardcode_libdir_flag_spec_ld_CXX=
12215 hardcode_libdir_separator_CXX=
12216 hardcode_minus_L_CXX=no
12217 hardcode_shlibpath_var_CXX=unsupported
12218 hardcode_automatic_CXX=no
12220 module_expsym_cmds_CXX=
12221 link_all_deplibs_CXX=unknown
12222 old_archive_cmds_CXX=$old_archive_cmds
12223 no_undefined_flag_CXX=
12224 whole_archive_flag_spec_CXX=
12225 enable_shared_with_static_runtimes_CXX=no
12227 # Dependencies to place before and after the object being linked:
12228 predep_objects_CXX=
12229 postdep_objects_CXX=
12232 compiler_lib_search_path_CXX=
12234 # Source file extension for C++ test sources.
12237 # Object file extension for compiled C++ test sources.
12241 # Code to be used in simple compile tests
12242 lt_simple_compile_test_code="int some_variable = 0;\n"
12244 # Code to be used in simple link tests
12245 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12247 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12249 # If no C compiler was specified, use CC.
12252 # If no C compiler flags were specified, use CFLAGS.
12253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12255 # Allow CC to be a program name with arguments.
12259 # save warnings/boilerplate of simple test code
12260 ac_outfile=conftest.$ac_objext
12261 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12262 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12263 _lt_compiler_boilerplate=`cat conftest.err`
12266 ac_outfile=conftest.$ac_objext
12267 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12268 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12269 _lt_linker_boilerplate=`cat conftest.err`
12273 # Allow CC to be a program name with arguments.
12278 lt_save_with_gnu_ld=$with_gnu_ld
12279 lt_save_path_LD=$lt_cv_path_LD
12280 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12281 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12283 $as_unset lt_cv_prog_gnu_ld
12285 if test -n "${lt_cv_path_LDCXX+set}"; then
12286 lt_cv_path_LD=$lt_cv_path_LDCXX
12288 $as_unset lt_cv_path_LD
12290 test -z "${LDCXX+set}" || LD=$LDCXX
12294 for cc_temp in $compiler""; do
12296 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12297 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12302 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12305 # We don't want -fno-exception wen compiling C++ code, so set the
12306 # no_builtin_flag separately
12307 if test "$GXX" = yes; then
12308 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12310 lt_prog_compiler_no_builtin_flag_CXX=
12313 if test "$GXX" = yes; then
12314 # Set up default GNU C++ configuration
12317 # Check whether --with-gnu-ld was given.
12318 if test "${with_gnu_ld+set}" = set; then
12319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12325 if test "$GCC" = yes; then
12326 # Check if gcc -print-prog-name=ld gives a path.
12327 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12328 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12331 # gcc leaves a trailing carriage return which upsets mingw
12332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12337 # Accept absolute paths.
12339 re_direlt='/[^/][^/]*/\.\./'
12340 # Canonicalize the pathname of ld
12341 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12342 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12343 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12345 test -z "$LD" && LD="$ac_prog"
12348 # If it fails, then pretend we aren't using GCC.
12352 # If it is relative, then search for the first ld in PATH.
12353 with_gnu_ld=unknown
12356 elif test "$with_gnu_ld" = yes; then
12357 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12360 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12363 if test "${lt_cv_path_LD+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 if test -z "$LD"; then
12367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12368 for ac_dir in $PATH; do
12370 test -z "$ac_dir" && ac_dir=.
12371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12372 lt_cv_path_LD="$ac_dir/$ac_prog"
12373 # Check to see if the program is GNU ld. I'd rather use --version,
12374 # but apparently some variants of GNU ld only accept -v.
12375 # Break only if it was the GNU/non-GNU ld that we prefer.
12376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12377 *GNU* | *'with BFD'*)
12378 test "$with_gnu_ld" != no && break
12381 test "$with_gnu_ld" != yes && break
12388 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12392 LD="$lt_cv_path_LD"
12393 if test -n "$LD"; then
12394 { echo "$as_me:$LINENO: result: $LD" >&5
12395 echo "${ECHO_T}$LD" >&6; }
12397 { echo "$as_me:$LINENO: result: no" >&5
12398 echo "${ECHO_T}no" >&6; }
12400 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12401 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12402 { (exit 1); exit 1; }; }
12403 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12404 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12405 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12409 case `$LD -v 2>&1 </dev/null` in
12410 *GNU* | *'with BFD'*)
12411 lt_cv_prog_gnu_ld=yes
12414 lt_cv_prog_gnu_ld=no
12418 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12419 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12420 with_gnu_ld=$lt_cv_prog_gnu_ld
12424 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12425 # archiving commands below assume that GNU ld is being used.
12426 if test "$with_gnu_ld" = yes; then
12427 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12428 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'
12430 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12433 # If archive_cmds runs LD, not CC, wlarc should be empty
12434 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12435 # investigate it a little bit more. (MM)
12438 # ancient GNU ld didn't support --whole-archive et. al.
12439 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12440 grep 'no-whole-archive' > /dev/null; then
12441 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12443 whole_archive_flag_spec_CXX=
12449 # A generic and very simple default shared library creation
12450 # command for GNU C++ for the case where it uses the native
12451 # linker, instead of GNU ld. If possible, this setting should
12452 # overridden to take advantage of the native linker features on
12453 # the platform it is being used on.
12454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12457 # Commands to make compiler produce verbose output that lists
12458 # what "hidden" libraries, object files and flags are used when
12459 # linking a shared library.
12460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12468 # PORTME: fill in a description of your system's C++ link characteristics
12469 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12470 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12474 # FIXME: insert proper C++ library support
12478 if test "$host_cpu" = ia64; then
12479 # On IA64, the linker does run time linking by default, so we don't
12480 # have to do anything special.
12481 aix_use_runtimelinking=no
12482 exp_sym_flag='-Bexport'
12485 aix_use_runtimelinking=no
12487 # Test if we are trying to use run time linking or normal
12488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489 # need to do runtime linking.
12490 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12491 for ld_flag in $LDFLAGS; do
12494 aix_use_runtimelinking=yes
12502 exp_sym_flag='-bexport'
12503 no_entry_flag='-bnoentry'
12506 # When large executables or shared objects are built, AIX ld can
12507 # have problems creating the table of contents. If linking a library
12508 # or program results in "error TOC overflow" add -mminimal-toc to
12509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12512 archive_cmds_CXX=''
12513 hardcode_direct_CXX=yes
12514 hardcode_libdir_separator_CXX=':'
12515 link_all_deplibs_CXX=yes
12517 if test "$GXX" = yes; then
12518 case $host_os in aix4.[012]|aix4.[012].*)
12519 # We only want to do this on AIX 4.2 and lower, the check
12520 # below for broken collect2 doesn't work under 4.3+
12521 collect2name=`${CC} -print-prog-name=collect2`
12522 if test -f "$collect2name" && \
12523 strings "$collect2name" | grep resolve_lib_name >/dev/null
12525 # We have reworked collect2
12526 hardcode_direct_CXX=yes
12528 # We have old collect2
12529 hardcode_direct_CXX=unsupported
12530 # It fails to find uninstalled libraries when the uninstalled
12531 # path is not listed in the libpath. Setting hardcode_minus_L
12532 # to unsupported forces relinking
12533 hardcode_minus_L_CXX=yes
12534 hardcode_libdir_flag_spec_CXX='-L$libdir'
12535 hardcode_libdir_separator_CXX=
12539 shared_flag='-shared'
12540 if test "$aix_use_runtimelinking" = yes; then
12541 shared_flag="$shared_flag "'${wl}-G'
12545 if test "$host_cpu" = ia64; then
12546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12547 # chokes on -Wl,-G. The following line is correct:
12550 if test "$aix_use_runtimelinking" = yes; then
12551 shared_flag='${wl}-G'
12553 shared_flag='${wl}-bM:SRE'
12558 # It seems that -bexpall does not export symbols beginning with
12559 # underscore (_), so it is better to generate a list of symbols to export.
12560 always_export_symbols_CXX=yes
12561 if test "$aix_use_runtimelinking" = yes; then
12562 # Warning - without using the other runtime loading flags (-brtl),
12563 # -berok will link without error, but may produce a broken library.
12564 allow_undefined_flag_CXX='-berok'
12565 # Determine the default libpath from the value encoded in an empty executable.
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (ac_try="$ac_link"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_link") 2>conftest.er1
12590 grep -v '^ *+' conftest.er1 >conftest.err
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } && {
12595 test -z "$ac_cxx_werror_flag" ||
12596 test ! -s conftest.err
12597 } && test -s conftest$ac_exeext &&
12598 $as_test_x conftest$ac_exeext; then
12600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12602 # Check for a 64-bit object if we didn't find anything.
12603 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12606 echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12613 conftest$ac_exeext conftest.$ac_ext
12614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12616 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12618 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"
12620 if test "$host_cpu" = ia64; then
12621 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12622 allow_undefined_flag_CXX="-z nodefs"
12623 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"
12625 # Determine the default libpath from the value encoded in an empty executable.
12626 cat >conftest.$ac_ext <<_ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (ac_try="$ac_link"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_link") 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && {
12655 test -z "$ac_cxx_werror_flag" ||
12656 test ! -s conftest.err
12657 } && test -s conftest$ac_exeext &&
12658 $as_test_x conftest$ac_exeext; then
12660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12662 # Check for a 64-bit object if we didn't find anything.
12663 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12673 conftest$ac_exeext conftest.$ac_ext
12674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12676 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12677 # Warning - without using the other run time loading flags,
12678 # -berok will link without error, but may produce a broken library.
12679 no_undefined_flag_CXX=' ${wl}-bernotok'
12680 allow_undefined_flag_CXX=' ${wl}-berok'
12681 # Exported symbols can be pulled into shared objects from archives
12682 whole_archive_flag_spec_CXX='$convenience'
12683 archive_cmds_need_lc_CXX=yes
12684 # This is similar to how AIX traditionally builds its shared libraries.
12685 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'
12691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12692 allow_undefined_flag_CXX=unsupported
12693 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12694 # support --undefined. This deserves some investigation. FIXME
12695 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12702 case $cc_basename in
12704 # FIXME: insert proper C++ library support
12710 cygwin* | mingw* | pw32*)
12711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12712 # as there is no search path for DLLs.
12713 hardcode_libdir_flag_spec_CXX='-L$libdir'
12714 allow_undefined_flag_CXX=unsupported
12715 always_export_symbols_CXX=no
12716 enable_shared_with_static_runtimes_CXX=yes
12718 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12719 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'
12720 # If the export-symbols file already is a .def file (1st line
12721 # is EXPORTS), use it as is; otherwise, prepend...
12722 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12723 cp $export_symbols $output_objdir/$soname.def;
12725 echo EXPORTS > $output_objdir/$soname.def;
12726 cat $export_symbols >> $output_objdir/$soname.def;
12728 $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'
12733 darwin* | rhapsody*)
12735 rhapsody* | darwin1.[012])
12736 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12739 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12740 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12742 case ${MACOSX_DEPLOYMENT_TARGET} in
12744 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12747 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12753 archive_cmds_need_lc_CXX=no
12754 hardcode_direct_CXX=no
12755 hardcode_automatic_CXX=yes
12756 hardcode_shlibpath_var_CXX=unsupported
12757 whole_archive_flag_spec_CXX=''
12758 link_all_deplibs_CXX=yes
12760 if test "$GXX" = yes ; then
12761 lt_int_apple_cc_single_mod=no
12762 output_verbose_link_cmd='echo'
12763 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12764 lt_int_apple_cc_single_mod=yes
12766 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12767 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12769 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'
12771 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12772 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12773 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12774 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}'
12776 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}'
12778 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}'
12780 case $cc_basename in
12782 output_verbose_link_cmd='echo'
12783 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12784 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12785 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12786 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12787 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}'
12797 case $cc_basename in
12799 # FIXME: insert proper C++ library support
12803 # Green Hills C++ Compiler
12804 # FIXME: insert proper C++ library support
12808 # FIXME: insert proper C++ library support
12814 # C++ shared libraries reported to be fairly broken before switch to ELF
12818 archive_cmds_need_lc_CXX=no
12820 freebsd* | dragonfly*)
12821 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12828 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12829 hardcode_libdir_separator_CXX=:
12830 export_dynamic_flag_spec_CXX='${wl}-E'
12831 hardcode_direct_CXX=yes
12832 hardcode_minus_L_CXX=yes # Not in the search PATH,
12833 # but as the default
12834 # location of the library.
12836 case $cc_basename in
12838 # FIXME: insert proper C++ library support
12842 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'
12843 # Commands to make compiler produce verbose output that lists
12844 # what "hidden" libraries, object files and flags are used when
12845 # linking a shared library.
12847 # There doesn't appear to be a way to prevent this compiler from
12848 # explicitly linking system object files so we need to strip them
12849 # from the output so that they don't get included in the library
12851 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'
12854 if test "$GXX" = yes; then
12855 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'
12857 # FIXME: insert proper C++ library support
12864 if test $with_gnu_ld = no; then
12865 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12866 hardcode_libdir_separator_CXX=:
12870 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12873 export_dynamic_flag_spec_CXX='${wl}-E'
12879 hardcode_direct_CXX=no
12880 hardcode_shlibpath_var_CXX=no
12883 hardcode_direct_CXX=yes
12884 hardcode_minus_L_CXX=yes # Not in the search PATH,
12885 # but as the default
12886 # location of the library.
12890 case $cc_basename in
12892 # FIXME: insert proper C++ library support
12898 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12901 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12904 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12907 # Commands to make compiler produce verbose output that lists
12908 # what "hidden" libraries, object files and flags are used when
12909 # linking a shared library.
12911 # There doesn't appear to be a way to prevent this compiler from
12912 # explicitly linking system object files so we need to strip them
12913 # from the output so that they don't get included in the library
12915 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'
12918 if test "$GXX" = yes; then
12919 if test $with_gnu_ld = no; then
12922 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12925 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12928 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'
12933 # FIXME: insert proper C++ library support
12940 hardcode_direct_CXX=no
12941 hardcode_shlibpath_var_CXX=no
12942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12943 export_dynamic_flag_spec_CXX='${wl}-E'
12944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12945 # Instead, shared libraries are loaded at an image base (0x10000000 by
12946 # default) and relocated if they conflict, which is a slow very memory
12947 # consuming and fragmenting process. To avoid this, we pick a random,
12948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12950 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'
12951 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'
12954 case $cc_basename in
12957 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'
12959 # Archives containing C++ object files must be created using
12960 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12961 # necessary to make sure instantiated templates are included
12963 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12966 if test "$GXX" = yes; then
12967 if test "$with_gnu_ld" = no; then
12968 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'
12970 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'
12973 link_all_deplibs_CXX=yes
12976 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12977 hardcode_libdir_separator_CXX=:
12979 linux* | k*bsd*-gnu)
12980 case $cc_basename in
12982 # Kuck and Associates, Inc. (KAI) C++ Compiler
12984 # KCC will only create a shared library if the output file
12985 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12986 # to its proper name (with version) after linking.
12987 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'
12988 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'
12989 # Commands to make compiler produce verbose output that lists
12990 # what "hidden" libraries, object files and flags are used when
12991 # linking a shared library.
12993 # There doesn't appear to be a way to prevent this compiler from
12994 # explicitly linking system object files so we need to strip them
12995 # from the output so that they don't get included in the library
12997 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'
12999 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13002 # Archives containing C++ object files must be created using
13003 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13004 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13009 # version 8.0 and above of icpc choke on multiply defined symbols
13010 # if we add $predep_objects and $postdep_objects, however 7.1 and
13011 # earlier do not add the objects themselves.
13012 case `$CC -V 2>&1` in
13014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015 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'
13017 *) # Version 8.0 or newer
13020 ia64*) tmp_idyn=' -i_dynamic';;
13022 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023 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'
13026 archive_cmds_need_lc_CXX=no
13027 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13029 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13032 # Portland Group C++ compiler
13033 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13034 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'
13036 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038 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'
13042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 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'
13045 runpath_var=LD_RUN_PATH
13046 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13047 hardcode_libdir_separator_CXX=:
13049 # Commands to make compiler produce verbose output that lists
13050 # what "hidden" libraries, object files and flags are used when
13051 # linking a shared library.
13053 # There doesn't appear to be a way to prevent this compiler from
13054 # explicitly linking system object files so we need to strip them
13055 # from the output so that they don't get included in the library
13057 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'
13062 # FIXME: insert proper C++ library support
13066 # FIXME: insert proper C++ library support
13070 case $cc_basename in
13072 # FIXME: insert proper C++ library support
13076 # FIXME: insert proper C++ library support
13081 netbsd* | netbsdelf*-gnu)
13082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13083 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13085 hardcode_libdir_flag_spec_CXX='-R$libdir'
13086 hardcode_direct_CXX=yes
13087 hardcode_shlibpath_var_CXX=no
13089 # Workaround some broken pre-1.5 toolchains
13090 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13093 # C++ shared libraries are fairly broken
13097 hardcode_direct_CXX=yes
13098 hardcode_shlibpath_var_CXX=no
13099 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13100 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13102 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13103 export_dynamic_flag_spec_CXX='${wl}-E'
13104 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13106 output_verbose_link_cmd='echo'
13109 case $cc_basename in
13111 # Kuck and Associates, Inc. (KAI) C++ Compiler
13113 # KCC will only create a shared library if the output file
13114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13115 # to its proper name (with version) after linking.
13116 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'
13118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13119 hardcode_libdir_separator_CXX=:
13121 # Archives containing C++ object files must be created using
13122 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13123 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13127 # Rational C++ 2.4.1
13128 # FIXME: insert proper C++ library support
13132 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13133 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'
13135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13136 hardcode_libdir_separator_CXX=:
13138 # Commands to make compiler produce verbose output that lists
13139 # what "hidden" libraries, object files and flags are used when
13140 # linking a shared library.
13142 # There doesn't appear to be a way to prevent this compiler from
13143 # explicitly linking system object files so we need to strip them
13144 # from the output so that they don't get included in the library
13146 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'
13149 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13151 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'
13153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13154 hardcode_libdir_separator_CXX=:
13156 # Commands to make compiler produce verbose output that lists
13157 # what "hidden" libraries, object files and flags are used when
13158 # linking a shared library.
13159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13162 # FIXME: insert proper C++ library support
13169 case $cc_basename in
13171 # Kuck and Associates, Inc. (KAI) C++ Compiler
13173 # KCC will only create a shared library if the output file
13174 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13175 # to its proper name (with version) after linking.
13176 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'
13178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13179 hardcode_libdir_separator_CXX=:
13181 # Archives containing C++ object files must be created using
13182 # the KAI C++ compiler.
13183 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13186 # Rational C++ 2.4.1
13187 # FIXME: insert proper C++ library support
13191 allow_undefined_flag_CXX=' -expect_unresolved \*'
13192 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'
13193 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13194 echo "-hidden">> $lib.exp~
13195 $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~
13198 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13199 hardcode_libdir_separator_CXX=:
13201 # Commands to make compiler produce verbose output that lists
13202 # what "hidden" libraries, object files and flags are used when
13203 # linking a shared library.
13205 # There doesn't appear to be a way to prevent this compiler from
13206 # explicitly linking system object files so we need to strip them
13207 # from the output so that they don't get included in the library
13209 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'
13212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13214 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'
13216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13217 hardcode_libdir_separator_CXX=:
13219 # Commands to make compiler produce verbose output that lists
13220 # what "hidden" libraries, object files and flags are used when
13221 # linking a shared library.
13222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13225 # FIXME: insert proper C++ library support
13232 # FIXME: insert proper C++ library support
13236 case $cc_basename in
13239 # FIXME: insert proper C++ library support
13244 # FIXME: insert proper C++ library support
13248 # FIXME: insert proper C++ library support
13254 case $cc_basename in
13256 # Sun C++ 4.2, 5.x and Centerline C++
13257 archive_cmds_need_lc_CXX=yes
13258 no_undefined_flag_CXX=' -zdefs'
13259 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13261 $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'
13263 hardcode_libdir_flag_spec_CXX='-R$libdir'
13264 hardcode_shlibpath_var_CXX=no
13266 solaris2.[0-5] | solaris2.[0-5].*) ;;
13268 # The C++ compiler is used as linker so we must use $wl
13269 # flag to pass the commands to the underlying system
13270 # linker. We must also pass each convience library through
13271 # to the system linker between allextract/defaultextract.
13272 # The C++ compiler will combine linker options so we
13273 # cannot just pass the convience library names through
13275 # Supported since Solaris 2.6 (maybe 2.5.1?)
13276 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13279 link_all_deplibs_CXX=yes
13281 output_verbose_link_cmd='echo'
13283 # Archives containing C++ object files must be created using
13284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13285 # necessary to make sure instantiated templates are included
13287 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13290 # Green Hills C++ Compiler
13291 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13293 # The C++ compiler must be used to create the archive.
13294 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13297 # GNU C++ compiler with Solaris linker
13298 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13299 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13300 if $CC --version | grep -v '^2\.7' > /dev/null; then
13301 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13303 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13305 # Commands to make compiler produce verbose output that lists
13306 # what "hidden" libraries, object files and flags are used when
13307 # linking a shared library.
13308 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13310 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13312 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13313 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13314 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13316 # Commands to make compiler produce verbose output that lists
13317 # what "hidden" libraries, object files and flags are used when
13318 # linking a shared library.
13319 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13322 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13328 no_undefined_flag_CXX='${wl}-z,text'
13329 archive_cmds_need_lc_CXX=no
13330 hardcode_shlibpath_var_CXX=no
13331 runpath_var='LD_RUN_PATH'
13333 case $cc_basename in
13335 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13340 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13344 sysv5* | sco3.2v5* | sco5v6*)
13345 # Note: We can NOT use -z defs as we might desire, because we do not
13346 # link with -lc, and that would cause any symbols used from libc to
13347 # always be unresolved, which means just about no library would
13348 # ever link correctly. If we're not using GNU ld we use -z text
13349 # though, which does catch some bad symbols but isn't as heavy-handed
13351 # For security reasons, it is highly recommended that you always
13352 # use absolute paths for naming shared libraries, and exclude the
13353 # DT_RUNPATH tag from executables and libraries. But doing so
13354 # requires that you compile everything twice, which is a pain.
13355 # So that behaviour is only enabled if SCOABSPATH is set to a
13356 # non-empty value in the environment. Most likely only useful for
13357 # creating official distributions of packages.
13358 # This is a hack until libtool officially supports absolute path
13359 # names for shared libraries.
13360 no_undefined_flag_CXX='${wl}-z,text'
13361 allow_undefined_flag_CXX='${wl}-z,nodefs'
13362 archive_cmds_need_lc_CXX=no
13363 hardcode_shlibpath_var_CXX=no
13364 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13365 hardcode_libdir_separator_CXX=':'
13366 link_all_deplibs_CXX=yes
13367 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13368 runpath_var='LD_RUN_PATH'
13370 case $cc_basename in
13372 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13373 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13376 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13377 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13382 case $cc_basename in
13384 # NonStop-UX NCC 3.20
13385 # FIXME: insert proper C++ library support
13389 # FIXME: insert proper C++ library support
13395 # FIXME: insert proper C++ library support
13399 # FIXME: insert proper C++ library support
13403 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13404 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13405 test "$ld_shlibs_CXX" = no && can_build_shared=no
13411 cat > conftest.$ac_ext <<EOF
13415 Foo (void) { a = 0; }
13421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; then
13426 # Parse the compiler output and extract the necessary
13427 # objects, libraries and library flags.
13429 # Sentinel used to keep track of whether or not we are before
13430 # the conftest object file.
13431 pre_test_object_deps_done=no
13433 # The `*' in the case matches for architectures that use `case' in
13434 # $output_verbose_cmd can trigger glob expansion during the loop
13435 # eval without this substitution.
13436 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13438 for p in `eval $output_verbose_link_cmd`; do
13442 # Some compilers place space between "-{L,R}" and the path.
13443 # Remove the space.
13444 if test $p = "-L" \
13445 || test $p = "-R"; then
13452 if test "$pre_test_object_deps_done" = no; then
13455 # Internal compiler library paths should come after those
13456 # provided the user. The postdeps already come after the
13457 # user supplied libs so there is no need to process them.
13458 if test -z "$compiler_lib_search_path_CXX"; then
13459 compiler_lib_search_path_CXX="${prev}${p}"
13461 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13464 # The "-l" case would never come before the object being
13465 # linked, so don't bother handling this case.
13468 if test -z "$postdeps_CXX"; then
13469 postdeps_CXX="${prev}${p}"
13471 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13477 # This assumes that the test object file only shows up
13478 # once in the compiler output.
13479 if test "$p" = "conftest.$objext"; then
13480 pre_test_object_deps_done=yes
13484 if test "$pre_test_object_deps_done" = no; then
13485 if test -z "$predep_objects_CXX"; then
13486 predep_objects_CXX="$p"
13488 predep_objects_CXX="$predep_objects_CXX $p"
13491 if test -z "$postdep_objects_CXX"; then
13492 postdep_objects_CXX="$p"
13494 postdep_objects_CXX="$postdep_objects_CXX $p"
13499 *) ;; # Ignore the rest.
13507 echo "libtool.m4: error: problem compiling CXX test program"
13510 $rm -f confest.$objext
13512 # PORTME: override above test on systems where it is broken
13515 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13516 # hack all around it, let's just trust "g++" to DTRT.
13517 predep_objects_CXX=
13518 postdep_objects_CXX=
13523 case $cc_basename in
13525 # Adding this requires a known-good setup of shared libraries for
13526 # Sun compiler versions before 5.6, else PIC objects from an old
13527 # archive will be linked into the output, leading to subtle bugs.
13528 postdeps_CXX='-lCstd -lCrun'
13535 case " $postdeps_CXX " in
13536 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13539 lt_prog_compiler_wl_CXX=
13540 lt_prog_compiler_pic_CXX=
13541 lt_prog_compiler_static_CXX=
13543 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13546 # C++ specific cases for pic, static, wl, etc.
13547 if test "$GXX" = yes; then
13548 lt_prog_compiler_wl_CXX='-Wl,'
13549 lt_prog_compiler_static_CXX='-static'
13553 # All AIX code is PIC.
13554 if test "$host_cpu" = ia64; then
13555 # AIX 5 now supports IA64 processor
13556 lt_prog_compiler_static_CXX='-Bstatic'
13560 # FIXME: we need at least 68020 code to build shared libraries, but
13561 # adding the `-m68020' flag to GCC prevents building anything better,
13563 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13565 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13566 # PIC is the default for these OSes.
13568 mingw* | os2* | pw32*)
13569 # This hack is so that the source file can tell whether it is being
13570 # built for inclusion in a dll (and should export symbols for example).
13571 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13573 darwin* | rhapsody*)
13574 # PIC is the default on this platform
13575 # Common symbols not allowed in MH_DYLIB files
13576 lt_prog_compiler_pic_CXX='-fno-common'
13579 # DJGPP does not support shared libraries at all
13580 lt_prog_compiler_pic_CXX=
13583 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13584 # Instead, we relocate shared libraries at runtime.
13587 if test -d /usr/nec; then
13588 lt_prog_compiler_pic_CXX=-Kconform_pic
13592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13593 # not for PA HP-UX.
13598 lt_prog_compiler_pic_CXX='-fPIC'
13603 lt_prog_compiler_pic_CXX='-fPIC'
13609 # All AIX code is PIC.
13610 if test "$host_cpu" = ia64; then
13611 # AIX 5 now supports IA64 processor
13612 lt_prog_compiler_static_CXX='-Bstatic'
13614 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13618 case $cc_basename in
13620 # Green Hills C++ Compiler
13621 # _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"
13626 # PIC is the default on this platform
13627 # Common symbols not allowed in MH_DYLIB files
13628 case $cc_basename in
13630 lt_prog_compiler_pic_CXX='-qnocommon'
13631 lt_prog_compiler_wl_CXX='-Wl,'
13636 case $cc_basename in
13638 lt_prog_compiler_pic_CXX='-KPIC'
13641 # Green Hills C++ Compiler
13642 lt_prog_compiler_pic_CXX='-pic'
13648 freebsd* | dragonfly*)
13649 # FreeBSD uses GNU C++
13651 hpux9* | hpux10* | hpux11*)
13652 case $cc_basename in
13654 lt_prog_compiler_wl_CXX='-Wl,'
13655 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13656 if test "$host_cpu" != ia64; then
13657 lt_prog_compiler_pic_CXX='+Z'
13661 lt_prog_compiler_wl_CXX='-Wl,'
13662 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13668 lt_prog_compiler_pic_CXX='+Z'
13677 # This is c89, which is MS Visual C++ (no shared libs)
13678 # Anyone wants to do a port?
13680 irix5* | irix6* | nonstopux*)
13681 case $cc_basename in
13683 lt_prog_compiler_wl_CXX='-Wl,'
13684 lt_prog_compiler_static_CXX='-non_shared'
13685 # CC pic flag -KPIC is the default.
13691 linux* | k*bsd*-gnu)
13692 case $cc_basename in
13695 lt_prog_compiler_wl_CXX='--backend -Wl,'
13696 lt_prog_compiler_pic_CXX='-fPIC'
13700 lt_prog_compiler_wl_CXX='-Wl,'
13701 lt_prog_compiler_pic_CXX='-KPIC'
13702 lt_prog_compiler_static_CXX='-static'
13705 # Portland Group C++ compiler.
13706 lt_prog_compiler_wl_CXX='-Wl,'
13707 lt_prog_compiler_pic_CXX='-fpic'
13708 lt_prog_compiler_static_CXX='-Bstatic'
13712 # Make sure the PIC flag is empty. It appears that all Alpha
13713 # Linux and Compaq Tru64 Unix objects are PIC.
13714 lt_prog_compiler_pic_CXX=
13715 lt_prog_compiler_static_CXX='-non_shared'
13726 case $cc_basename in
13728 lt_prog_compiler_pic_CXX='-W c,exportall'
13734 netbsd* | netbsdelf*-gnu)
13736 osf3* | osf4* | osf5*)
13737 case $cc_basename in
13739 lt_prog_compiler_wl_CXX='--backend -Wl,'
13742 # Rational C++ 2.4.1
13743 lt_prog_compiler_pic_CXX='-pic'
13746 # Digital/Compaq C++
13747 lt_prog_compiler_wl_CXX='-Wl,'
13748 # Make sure the PIC flag is empty. It appears that all Alpha
13749 # Linux and Compaq Tru64 Unix objects are PIC.
13750 lt_prog_compiler_pic_CXX=
13751 lt_prog_compiler_static_CXX='-non_shared'
13760 case $cc_basename in
13762 # Sun C++ 4.2, 5.x and Centerline C++
13763 lt_prog_compiler_pic_CXX='-KPIC'
13764 lt_prog_compiler_static_CXX='-Bstatic'
13765 lt_prog_compiler_wl_CXX='-Qoption ld '
13768 # Green Hills C++ Compiler
13769 lt_prog_compiler_pic_CXX='-PIC'
13776 case $cc_basename in
13779 lt_prog_compiler_pic_CXX='-pic'
13780 lt_prog_compiler_static_CXX='-Bstatic'
13784 lt_prog_compiler_pic_CXX='-pic'
13791 case $cc_basename in
13793 # NonStop-UX NCC 3.20
13794 lt_prog_compiler_pic_CXX='-KPIC'
13800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13801 case $cc_basename in
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 lt_prog_compiler_pic_CXX='-KPIC'
13805 lt_prog_compiler_static_CXX='-Bstatic'
13812 lt_prog_compiler_can_build_shared_CXX=no
13817 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13818 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13821 # Check to make sure the PIC flag actually works.
13823 if test -n "$lt_prog_compiler_pic_CXX"; then
13825 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13826 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13827 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 lt_prog_compiler_pic_works_CXX=no
13831 ac_outfile=conftest.$ac_objext
13832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13833 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13834 # Insert the option either (1) after the last *FLAGS variable, or
13835 # (2) before a word containing "conftest.", or (3) at the end.
13836 # Note that $ac_compile itself does not contain backslashes and begins
13837 # with a dollar sign (not a hyphen), so the echo should work correctly.
13838 # The option is referenced via a variable to avoid confusing sed.
13839 lt_compile=`echo "$ac_compile" | $SED \
13840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13842 -e 's:$: $lt_compiler_flag:'`
13843 (eval echo "\"\$as_me:13843: $lt_compile\"" >&5)
13844 (eval "$lt_compile" 2>conftest.err)
13846 cat conftest.err >&5
13847 echo "$as_me:13847: \$? = $ac_status" >&5
13848 if (exit $ac_status) && test -s "$ac_outfile"; then
13849 # The compiler can only warn and ignore the option if not recognized
13850 # So say no if there are warnings other than the usual output.
13851 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13854 lt_prog_compiler_pic_works_CXX=yes
13860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13861 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13863 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13864 case $lt_prog_compiler_pic_CXX in
13866 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13869 lt_prog_compiler_pic_CXX=
13870 lt_prog_compiler_can_build_shared_CXX=no
13875 # For platforms which do not support PIC, -DPIC is meaningless:
13877 lt_prog_compiler_pic_CXX=
13880 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13885 # Check to make sure the static flag actually works.
13887 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13888 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13889 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13890 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 lt_prog_compiler_static_works_CXX=no
13894 save_LDFLAGS="$LDFLAGS"
13895 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13896 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13897 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13898 # The linker can only warn and ignore the option if not recognized
13899 # So say no if there are warnings
13900 if test -s conftest.err; then
13901 # Append any errors to the config.log.
13902 cat conftest.err 1>&5
13903 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13905 if diff conftest.exp conftest.er2 >/dev/null; then
13906 lt_prog_compiler_static_works_CXX=yes
13909 lt_prog_compiler_static_works_CXX=yes
13913 LDFLAGS="$save_LDFLAGS"
13916 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13917 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13919 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13922 lt_prog_compiler_static_CXX=
13926 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13928 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 lt_cv_prog_compiler_c_o_CXX=no
13932 $rm -r conftest 2>/dev/null
13936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13938 lt_compiler_flag="-o out/conftest2.$ac_objext"
13939 # Insert the option either (1) after the last *FLAGS variable, or
13940 # (2) before a word containing "conftest.", or (3) at the end.
13941 # Note that $ac_compile itself does not contain backslashes and begins
13942 # with a dollar sign (not a hyphen), so the echo should work correctly.
13943 lt_compile=`echo "$ac_compile" | $SED \
13944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13946 -e 's:$: $lt_compiler_flag:'`
13947 (eval echo "\"\$as_me:13947: $lt_compile\"" >&5)
13948 (eval "$lt_compile" 2>out/conftest.err)
13950 cat out/conftest.err >&5
13951 echo "$as_me:13951: \$? = $ac_status" >&5
13952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13954 # The compiler can only warn and ignore the option if not recognized
13955 # So say no if there are warnings
13956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13959 lt_cv_prog_compiler_c_o_CXX=yes
13964 # SGI C++ compiler will create directory out/ii_files/ for
13965 # template instantiation
13966 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13967 $rm out/* && rmdir out
13973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13977 hard_links="nottested"
13978 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13979 # do not overwrite the value of need_locks provided by the user
13980 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13981 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13986 ln conftest.a conftest.b 2>&5 || hard_links=no
13987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13988 { echo "$as_me:$LINENO: result: $hard_links" >&5
13989 echo "${ECHO_T}$hard_links" >&6; }
13990 if test "$hard_links" = no; then
13991 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13992 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13999 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14002 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14005 # If we're using GNU nm, then we don't want the "-C" option.
14006 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14007 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14008 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'
14010 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'
14014 export_symbols_cmds_CXX="$ltdll_cmds"
14017 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'
14019 linux* | k*bsd*-gnu)
14020 link_all_deplibs_CXX=no
14023 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14027 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14028 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14029 test "$ld_shlibs_CXX" = no && can_build_shared=no
14032 # Do we need to explicitly link libc?
14034 case "x$archive_cmds_need_lc_CXX" in
14036 # Assume -lc should be added
14037 archive_cmds_need_lc_CXX=yes
14039 if test "$enable_shared" = yes && test "$GCC" = yes; then
14040 case $archive_cmds_CXX in
14042 # FIXME: we may have to deal with multi-command sequences.
14045 # Test whether the compiler implicitly links with -lc since on some
14046 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14047 # to ld, don't add -lc before -lgcc.
14048 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14049 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054 (eval $ac_compile) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } 2>conftest.err; then
14060 libobjs=conftest.$ac_objext
14062 wl=$lt_prog_compiler_wl_CXX
14063 pic_flag=$lt_prog_compiler_pic_CXX
14069 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14070 allow_undefined_flag_CXX=
14071 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14072 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }
14077 archive_cmds_need_lc_CXX=no
14079 archive_cmds_need_lc_CXX=yes
14081 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14083 cat conftest.err 1>&5
14086 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14087 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14094 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14095 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14096 library_names_spec=
14097 libname_spec='lib$name'
14101 postuninstall_cmds=
14105 shlibpath_overrides_runpath=unknown
14107 dynamic_linker="$host_os ld.so"
14108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14109 if test "$GCC" = yes; then
14110 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14111 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14112 # if the path contains ";" then we assume it to be the separator
14113 # otherwise default to the standard path separator (i.e. ":") - it is
14114 # assumed that no part of a normal pathname contains ";" but that should
14115 # okay in the real world where ";" in dirpaths is itself problematic.
14116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14121 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14123 need_lib_prefix=unknown
14124 hardcode_into_libs=no
14126 # when you set need_version to no, make sure it does not cause -set_version
14127 # flags to be left without arguments
14128 need_version=unknown
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14134 shlibpath_var=LIBPATH
14136 # AIX 3 has no versioning support, so we append a major version to the name.
14137 soname_spec='${libname}${release}${shared_ext}$major'
14144 hardcode_into_libs=yes
14145 if test "$host_cpu" = ia64; then
14146 # AIX 5 supports IA64
14147 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14148 shlibpath_var=LD_LIBRARY_PATH
14150 # With GCC up to 2.95.x, collect2 would create an import file
14151 # for dependence libraries. The import file would start with
14152 # the line `#! .'. This would cause the generated library to
14153 # depend on `.', always an invalid library. This was fixed in
14154 # development snapshots of GCC prior to 3.0.
14156 aix4 | aix4.[01] | aix4.[01].*)
14157 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14159 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14162 can_build_shared=no
14166 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14167 # soname into executable. Probably we can add versioning support to
14168 # collect2, so additional links can be useful in future.
14169 if test "$aix_use_runtimelinking" = yes; then
14170 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14171 # instead of lib<name>.a to let people know that these are not
14172 # typical AIX shared libraries.
14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175 # We preserve .a as extension for shared libraries through AIX4.2
14176 # and later when we are not doing run time linking.
14177 library_names_spec='${libname}${release}.a $libname.a'
14178 soname_spec='${libname}${release}${shared_ext}$major'
14180 shlibpath_var=LIBPATH
14185 library_names_spec='$libname.ixlibrary $libname.a'
14186 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14187 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'
14191 library_names_spec='${libname}${shared_ext}'
14192 dynamic_linker="$host_os ld.so"
14193 shlibpath_var=LIBRARY_PATH
14199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14200 soname_spec='${libname}${release}${shared_ext}$major'
14201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14202 shlibpath_var=LD_LIBRARY_PATH
14203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14205 # the default ld.so.conf also contains /usr/contrib/lib and
14206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14207 # libtool to hard-code these into programs
14210 cygwin* | mingw* | pw32*)
14211 version_type=windows
14216 case $GCC,$host_os in
14217 yes,cygwin* | yes,mingw* | yes,pw32*)
14218 library_names_spec='$libname.dll.a'
14219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14220 postinstall_cmds='base_file=`basename \${file}`~
14221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14222 dldir=$destdir/`dirname \$dlpath`~
14223 test -d \$dldir || mkdir -p \$dldir~
14224 $install_prog $dir/$dlname \$dldir/$dlname~
14225 chmod a+x \$dldir/$dlname'
14226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14227 dlpath=$dir/\$dldll~
14229 shlibpath_overrides_runpath=yes
14233 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14234 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14235 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14238 # MinGW DLLs use traditional 'lib' prefix
14239 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14240 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14241 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14242 # It is most probably a Windows format PATH printed by
14243 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14244 # path with ; separators, and with drive letters. We can handle the
14245 # drive letters (cygwin fileutils understands them), so leave them,
14246 # especially as we might pass files found there to a mingw objdump,
14247 # which wouldn't understand a cygwinified path. Ahh.
14248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14254 # pw32 DLLs use 'pw' prefix rather than 'lib'
14255 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14261 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14264 dynamic_linker='Win32 ld.exe'
14265 # FIXME: first we should search . and the directory the executable is in
14269 darwin* | rhapsody*)
14270 dynamic_linker="$host_os dyld"
14271 version_type=darwin
14274 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14275 soname_spec='${libname}${release}${major}$shared_ext'
14276 shlibpath_overrides_runpath=yes
14277 shlibpath_var=DYLD_LIBRARY_PATH
14278 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14279 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14280 if test "$GCC" = yes; then
14281 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14283 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14293 soname_spec='${libname}${release}${shared_ext}$major'
14294 shlibpath_var=LD_LIBRARY_PATH
14301 freebsd* | dragonfly*)
14302 # DragonFly does not have aout. When/if they implement a new
14303 # versioning mechanism, adjust this.
14304 if test -x /usr/bin/objformat; then
14305 objformat=`/usr/bin/objformat`
14308 freebsd[123]*) objformat=aout ;;
14309 *) objformat=elf ;;
14312 version_type=freebsd-$objformat
14313 case $version_type in
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14324 shlibpath_var=LD_LIBRARY_PATH
14327 shlibpath_overrides_runpath=yes
14329 freebsd3.[01]* | freebsdelf3.[01]*)
14330 shlibpath_overrides_runpath=yes
14331 hardcode_into_libs=yes
14333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14335 shlibpath_overrides_runpath=no
14336 hardcode_into_libs=yes
14338 freebsd*) # from 4.6 on
14339 shlibpath_overrides_runpath=yes
14340 hardcode_into_libs=yes
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14350 soname_spec='${libname}${release}${shared_ext}$major'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 hardcode_into_libs=yes
14355 hpux9* | hpux10* | hpux11*)
14356 # Give a soname corresponding to the major version so that dld.sl refuses to
14357 # link against other versions.
14364 hardcode_into_libs=yes
14365 dynamic_linker="$host_os dld.so"
14366 shlibpath_var=LD_LIBRARY_PATH
14367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 if test "X$HPUX_IA64_MODE" = X32; then
14371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14379 hardcode_into_libs=yes
14380 dynamic_linker="$host_os dld.sl"
14381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14390 dynamic_linker="$host_os dld.sl"
14391 shlibpath_var=SHLIB_PATH
14392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394 soname_spec='${libname}${release}${shared_ext}$major'
14397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14398 postinstall_cmds='chmod 555 $lib'
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14408 shlibpath_var=LD_LIBRARY_PATH
14409 shlibpath_overrides_runpath=no
14410 hardcode_into_libs=yes
14413 irix5* | irix6* | nonstopux*)
14415 nonstopux*) version_type=nonstopux ;;
14417 if test "$lt_cv_prog_gnu_ld" = yes; then
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14428 irix5* | nonstopux*)
14429 libsuff= shlibsuff=
14432 case $LD in # libtool.m4 will add one of these switches to LD
14433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14434 libsuff= shlibsuff= libmagic=32-bit;;
14435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14436 libsuff=32 shlibsuff=N32 libmagic=N32;;
14437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14439 *) libsuff= shlibsuff= libmagic=never-match;;
14443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14444 shlibpath_overrides_runpath=no
14445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14447 hardcode_into_libs=yes
14450 # No shared lib support for Linux oldld, aout, or coff.
14451 linux*oldld* | linux*aout* | linux*coff*)
14455 # This must be Linux ELF.
14456 linux* | k*bsd*-gnu)
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=no
14465 # This implies no fast_install, which is unacceptable.
14466 # Some rework will be needed to allow for fast_install
14467 # before this can be enabled.
14468 hardcode_into_libs=yes
14470 # Append ld.so.conf contents to the search path
14471 if test -f /etc/ld.so.conf; then
14472 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14476 # We used to test for /lib/ld.so.1 and disable shared libraries on
14477 # powerpc, because MkLinux only supported shared libraries with the
14478 # GNU dynamic linker. Since this was broken with cross compilers,
14479 # most powerpc-linux boxes support dynamic linking these days and
14480 # people can always --disable-shared, the test was removed, and we
14481 # assume the GNU/Linux dynamic linker is in use.
14482 dynamic_linker='GNU/Linux ld.so'
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 shlibpath_overrides_runpath=no
14493 hardcode_into_libs=yes
14494 dynamic_linker='NetBSD ld.elf_so'
14501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14504 dynamic_linker='NetBSD (a.out) ld.so'
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 dynamic_linker='NetBSD ld.elf_so'
14510 shlibpath_var=LD_LIBRARY_PATH
14511 shlibpath_overrides_runpath=yes
14512 hardcode_into_libs=yes
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 shlibpath_var=LD_LIBRARY_PATH
14519 shlibpath_overrides_runpath=yes
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes
14534 sys_lib_dlsearch_path_spec="/usr/lib"
14536 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14538 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14539 *) need_version=no ;;
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14546 openbsd2.[89] | openbsd2.[89].*)
14547 shlibpath_overrides_runpath=no
14550 shlibpath_overrides_runpath=yes
14554 shlibpath_overrides_runpath=yes
14559 libname_spec='$name'
14562 library_names_spec='$libname${shared_ext} $libname.a'
14563 dynamic_linker='OS/2 ld.exe'
14564 shlibpath_var=LIBPATH
14567 osf3* | osf4* | osf5*)
14571 soname_spec='${libname}${release}${shared_ext}$major'
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14575 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 shlibpath_overrides_runpath=yes
14586 hardcode_into_libs=yes
14587 # ldd complains unless libraries are executable
14588 postinstall_cmds='chmod +x $lib'
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 shlibpath_overrides_runpath=yes
14597 if test "$with_gnu_ld" = yes; then
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 case $host_vendor in
14610 shlibpath_overrides_runpath=no
14612 export_dynamic_flag_spec='${wl}-Blargedynsym'
14613 runpath_var=LD_RUN_PATH
14621 shlibpath_overrides_runpath=no
14622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14628 if test -d /usr/nec ;then
14630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14631 soname_spec='$libname${shared_ext}.$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14637 version_type=freebsd-elf
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 hardcode_into_libs=yes
14644 if test "$with_gnu_ld" = yes; then
14645 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14646 shlibpath_overrides_runpath=no
14648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14649 shlibpath_overrides_runpath=yes
14652 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14656 sys_lib_dlsearch_path_spec='/usr/lib'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 soname_spec='${libname}${release}${shared_ext}$major'
14663 shlibpath_var=LD_LIBRARY_PATH
14670 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14671 echo "${ECHO_T}$dynamic_linker" >&6; }
14672 test "$dynamic_linker" = no && can_build_shared=no
14674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14675 if test "$GCC" = yes; then
14676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14679 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14680 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14681 hardcode_action_CXX=
14682 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14683 test -n "$runpath_var_CXX" || \
14684 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14686 # We can hardcode non-existant directories.
14687 if test "$hardcode_direct_CXX" != no &&
14688 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14689 # have to relink, otherwise we might link with an installed library
14690 # when we should be linking with a yet-to-be-installed one
14691 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14692 test "$hardcode_minus_L_CXX" != no; then
14693 # Linking always hardcodes the temporary library directory.
14694 hardcode_action_CXX=relink
14696 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14697 hardcode_action_CXX=immediate
14700 # We cannot hardcode anything, or else we can only hardcode existing
14702 hardcode_action_CXX=unsupported
14704 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14705 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14707 if test "$hardcode_action_CXX" = relink; then
14708 # Fast installation is not supported
14709 enable_fast_install=no
14710 elif test "$shlibpath_overrides_runpath" = yes ||
14711 test "$enable_shared" = no; then
14712 # Fast installation is not necessary
14713 enable_fast_install=needless
14717 # The else clause should only fire when bootstrapping the
14718 # libtool distribution, otherwise you forgot to ship ltmain.sh
14719 # with your package, and you will get complaints that there are
14720 # no rules to generate ltmain.sh.
14721 if test -f "$ltmain"; then
14722 # See if we are running on zsh, and set the options which allow our commands through
14723 # without removal of \ escapes.
14724 if test -n "${ZSH_VERSION+set}" ; then
14725 setopt NO_GLOB_SUBST
14727 # Now quote all the things that may contain metacharacters while being
14728 # careful not to overquote the AC_SUBSTed values. We take copies of the
14729 # variables and quote the copies for generation of the libtool script.
14730 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14732 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14733 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14734 deplibs_check_method reload_flag reload_cmds need_locks \
14735 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14736 lt_cv_sys_global_symbol_to_c_name_address \
14737 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14738 old_postinstall_cmds old_postuninstall_cmds \
14742 lt_prog_compiler_wl_CXX \
14743 lt_prog_compiler_pic_CXX \
14744 lt_prog_compiler_static_CXX \
14745 lt_prog_compiler_no_builtin_flag_CXX \
14746 export_dynamic_flag_spec_CXX \
14747 thread_safe_flag_spec_CXX \
14748 whole_archive_flag_spec_CXX \
14749 enable_shared_with_static_runtimes_CXX \
14750 old_archive_cmds_CXX \
14751 old_archive_from_new_cmds_CXX \
14752 predep_objects_CXX \
14753 postdep_objects_CXX \
14756 compiler_lib_search_path_CXX \
14758 archive_expsym_cmds_CXX \
14759 postinstall_cmds_CXX \
14760 postuninstall_cmds_CXX \
14761 old_archive_from_expsyms_cmds_CXX \
14762 allow_undefined_flag_CXX \
14763 no_undefined_flag_CXX \
14764 export_symbols_cmds_CXX \
14765 hardcode_libdir_flag_spec_CXX \
14766 hardcode_libdir_flag_spec_ld_CXX \
14767 hardcode_libdir_separator_CXX \
14768 hardcode_automatic_CXX \
14770 module_expsym_cmds_CXX \
14771 lt_cv_prog_compiler_c_o_CXX \
14772 exclude_expsyms_CXX \
14773 include_expsyms_CXX; do
14776 old_archive_cmds_CXX | \
14777 old_archive_from_new_cmds_CXX | \
14778 archive_cmds_CXX | \
14779 archive_expsym_cmds_CXX | \
14780 module_cmds_CXX | \
14781 module_expsym_cmds_CXX | \
14782 old_archive_from_expsyms_cmds_CXX | \
14783 export_symbols_cmds_CXX | \
14784 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14785 postinstall_cmds | postuninstall_cmds | \
14786 old_postinstall_cmds | old_postuninstall_cmds | \
14787 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14788 # Double-quote double-evaled strings.
14789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14798 *'\$0 --fallback-echo"')
14799 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14805 cat <<__EOF__ >> "$cfgfile"
14806 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14808 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14810 # Shell to use when invoking shell scripts.
14813 # Whether or not to build shared libraries.
14814 build_libtool_libs=$enable_shared
14816 # Whether or not to build static libraries.
14817 build_old_libs=$enable_static
14819 # Whether or not to add -lc for building shared libraries.
14820 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14822 # Whether or not to disallow shared libs when runtime libs are static
14823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14825 # Whether or not to optimize for fast installation.
14826 fast_install=$enable_fast_install
14829 host_alias=$host_alias
14833 # The build system.
14834 build_alias=$build_alias
14838 # An echo program that does not interpret backslashes.
14843 AR_FLAGS=$lt_AR_FLAGS
14848 # LTCC compiler flags.
14849 LTCFLAGS=$lt_LTCFLAGS
14851 # A language-specific compiler.
14852 CC=$lt_compiler_CXX
14854 # Is the compiler the GNU C compiler?
14860 # The linker used to build libraries.
14863 # Whether we need hard or soft links.
14866 # A BSD-compatible nm program.
14869 # A symbol stripping program
14872 # Used to examine libraries when file_magic_cmd begins "file"
14873 MAGIC_CMD=$MAGIC_CMD
14875 # Used on cygwin: DLL creation program.
14878 # Used on cygwin: object dumper.
14881 # Used on cygwin: assembler.
14884 # The name of the directory that contains temporary libtool files.
14887 # How to create reloadable object files.
14888 reload_flag=$lt_reload_flag
14889 reload_cmds=$lt_reload_cmds
14891 # How to pass a linker flag through the compiler.
14892 wl=$lt_lt_prog_compiler_wl_CXX
14894 # Object file suffix (normally "o").
14895 objext="$ac_objext"
14897 # Old archive suffix (normally "a").
14900 # Shared library suffix (normally ".so").
14901 shrext_cmds='$shrext_cmds'
14903 # Executable file suffix (normally "").
14906 # Additional compiler flags for building library objects.
14907 pic_flag=$lt_lt_prog_compiler_pic_CXX
14910 # What is the maximum length of a command?
14911 max_cmd_len=$lt_cv_sys_max_cmd_len
14913 # Does compiler simultaneously support -c and -o options?
14914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14916 # Must we lock files when doing compilation?
14917 need_locks=$lt_need_locks
14919 # Do we need the lib prefix for modules?
14920 need_lib_prefix=$need_lib_prefix
14922 # Do we need a version for libraries?
14923 need_version=$need_version
14925 # Whether dlopen is supported.
14926 dlopen_support=$enable_dlopen
14928 # Whether dlopen of programs is supported.
14929 dlopen_self=$enable_dlopen_self
14931 # Whether dlopen of statically linked programs is supported.
14932 dlopen_self_static=$enable_dlopen_self_static
14934 # Compiler flag to prevent dynamic linking.
14935 link_static_flag=$lt_lt_prog_compiler_static_CXX
14937 # Compiler flag to turn off builtin functions.
14938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14940 # Compiler flag to allow reflexive dlopens.
14941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14943 # Compiler flag to generate shared objects directly from archives.
14944 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14946 # Compiler flag to generate thread-safe objects.
14947 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14949 # Library versioning type.
14950 version_type=$version_type
14952 # Format of library name prefix.
14953 libname_spec=$lt_libname_spec
14955 # List of archive names. First name is the real one, the rest are links.
14956 # The last name is the one that the linker finds with -lNAME.
14957 library_names_spec=$lt_library_names_spec
14959 # The coded name of the library, if different from the real name.
14960 soname_spec=$lt_soname_spec
14962 # Commands used to build and install an old-style archive.
14964 old_archive_cmds=$lt_old_archive_cmds_CXX
14965 old_postinstall_cmds=$lt_old_postinstall_cmds
14966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14968 # Create an old-style archive from a shared archive.
14969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14971 # Create a temporary old-style archive to link instead of a shared archive.
14972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14974 # Commands used to build and install a shared archive.
14975 archive_cmds=$lt_archive_cmds_CXX
14976 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14977 postinstall_cmds=$lt_postinstall_cmds
14978 postuninstall_cmds=$lt_postuninstall_cmds
14980 # Commands used to build a loadable module (assumed same as above if empty)
14981 module_cmds=$lt_module_cmds_CXX
14982 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14984 # Commands to strip libraries.
14985 old_striplib=$lt_old_striplib
14986 striplib=$lt_striplib
14988 # Dependencies to place before the objects being linked to create a
14990 predep_objects=$lt_predep_objects_CXX
14992 # Dependencies to place after the objects being linked to create a
14994 postdep_objects=$lt_postdep_objects_CXX
14996 # Dependencies to place before the objects being linked to create a
14998 predeps=$lt_predeps_CXX
15000 # Dependencies to place after the objects being linked to create a
15002 postdeps=$lt_postdeps_CXX
15004 # The library search path used internally by the compiler when linking
15005 # a shared library.
15006 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15008 # Method to check whether dependent libraries are shared objects.
15009 deplibs_check_method=$lt_deplibs_check_method
15011 # Command to use when deplibs_check_method == file_magic.
15012 file_magic_cmd=$lt_file_magic_cmd
15014 # Flag that allows shared libraries with undefined symbols to be built.
15015 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15017 # Flag that forces no undefined symbols.
15018 no_undefined_flag=$lt_no_undefined_flag_CXX
15020 # Commands used to finish a libtool library installation in a directory.
15021 finish_cmds=$lt_finish_cmds
15023 # Same as above, but a single script fragment to be evaled but not shown.
15024 finish_eval=$lt_finish_eval
15026 # Take the output of nm and produce a listing of raw symbols and C names.
15027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15029 # Transform the output of nm in a proper C declaration
15030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15032 # Transform the output of nm in a C name address pair
15033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15035 # This is the shared library runtime path variable.
15036 runpath_var=$runpath_var
15038 # This is the shared library path variable.
15039 shlibpath_var=$shlibpath_var
15041 # Is shlibpath searched before the hard-coded library search path?
15042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15044 # How to hardcode a shared library path into an executable.
15045 hardcode_action=$hardcode_action_CXX
15047 # Whether we should hardcode library paths into libraries.
15048 hardcode_into_libs=$hardcode_into_libs
15050 # Flag to hardcode \$libdir into a binary during linking.
15051 # This must work even if \$libdir does not exist.
15052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15054 # If ld is used when linking, flag to hardcode \$libdir into
15055 # a binary during linking. This must work even if \$libdir does
15057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15059 # Whether we need a single -rpath flag with a separated argument.
15060 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15062 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15063 # resulting binary.
15064 hardcode_direct=$hardcode_direct_CXX
15066 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15067 # resulting binary.
15068 hardcode_minus_L=$hardcode_minus_L_CXX
15070 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15071 # the resulting binary.
15072 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15074 # Set to yes if building a shared library automatically hardcodes DIR into the library
15075 # and all subsequent libraries and executables linked against it.
15076 hardcode_automatic=$hardcode_automatic_CXX
15078 # Variables whose values should be saved in libtool wrapper scripts and
15079 # restored at relink time.
15080 variables_saved_for_relink="$variables_saved_for_relink"
15082 # Whether libtool must link a program against all its dependency libraries.
15083 link_all_deplibs=$link_all_deplibs_CXX
15085 # Compile-time system search path for libraries
15086 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15088 # Run-time system search path for libraries
15089 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15091 # Fix the shell variable \$srcfile for the compiler.
15092 fix_srcfile_path="$fix_srcfile_path_CXX"
15094 # Set to yes if exported symbols are required.
15095 always_export_symbols=$always_export_symbols_CXX
15097 # The commands to list exported symbols.
15098 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15100 # The commands to extract the exported symbol list from a shared archive.
15101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15103 # Symbols that should not be listed in the preloaded symbols.
15104 exclude_expsyms=$lt_exclude_expsyms_CXX
15106 # Symbols that must always be exported.
15107 include_expsyms=$lt_include_expsyms_CXX
15109 # ### END LIBTOOL TAG CONFIG: $tagname
15115 # If there is no Makefile yet, we rely on a make rule to execute
15116 # `config.status --recheck' to rerun these tests and create the
15117 # libtool script then.
15118 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15119 if test -f "$ltmain_in"; then
15120 test -f Makefile && make "$ltmain"
15126 ac_cpp='$CPP $CPPFLAGS'
15127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15135 with_gnu_ldcxx=$with_gnu_ld
15136 with_gnu_ld=$lt_save_with_gnu_ld
15137 lt_cv_path_LDCXX=$lt_cv_path_LD
15138 lt_cv_path_LD=$lt_save_path_LD
15139 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15140 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15148 if test -n "$F77" && test "X$F77" != "Xno"; then
15151 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15152 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15153 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15156 archive_cmds_need_lc_F77=no
15157 allow_undefined_flag_F77=
15158 always_export_symbols_F77=no
15159 archive_expsym_cmds_F77=
15160 export_dynamic_flag_spec_F77=
15161 hardcode_direct_F77=no
15162 hardcode_libdir_flag_spec_F77=
15163 hardcode_libdir_flag_spec_ld_F77=
15164 hardcode_libdir_separator_F77=
15165 hardcode_minus_L_F77=no
15166 hardcode_automatic_F77=no
15168 module_expsym_cmds_F77=
15169 link_all_deplibs_F77=unknown
15170 old_archive_cmds_F77=$old_archive_cmds
15171 no_undefined_flag_F77=
15172 whole_archive_flag_spec_F77=
15173 enable_shared_with_static_runtimes_F77=no
15175 # Source file extension for f77 test sources.
15178 # Object file extension for compiled f77 test sources.
15182 # Code to be used in simple compile tests
15183 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15185 # Code to be used in simple link tests
15186 lt_simple_link_test_code=" program t\n end\n"
15188 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15190 # If no C compiler was specified, use CC.
15193 # If no C compiler flags were specified, use CFLAGS.
15194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15196 # Allow CC to be a program name with arguments.
15200 # save warnings/boilerplate of simple test code
15201 ac_outfile=conftest.$ac_objext
15202 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15203 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15204 _lt_compiler_boilerplate=`cat conftest.err`
15207 ac_outfile=conftest.$ac_objext
15208 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15209 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15210 _lt_linker_boilerplate=`cat conftest.err`
15214 # Allow CC to be a program name with arguments.
15219 for cc_temp in $compiler""; do
15221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15227 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15230 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15231 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15232 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15233 echo "${ECHO_T}$can_build_shared" >&6; }
15235 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15236 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15237 test "$can_build_shared" = "no" && enable_shared=no
15239 # On AIX, shared libraries and static libraries use the same namespace, and
15240 # are all built from PIC.
15243 test "$enable_shared" = yes && enable_static=no
15244 if test -n "$RANLIB"; then
15245 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15246 postinstall_cmds='$RANLIB $lib'
15250 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15251 test "$enable_shared" = yes && enable_static=no
15255 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15256 echo "${ECHO_T}$enable_shared" >&6; }
15258 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15259 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15260 # Make sure either enable_shared or enable_static is yes.
15261 test "$enable_shared" = yes || enable_static=yes
15262 { echo "$as_me:$LINENO: result: $enable_static" >&5
15263 echo "${ECHO_T}$enable_static" >&6; }
15268 lt_prog_compiler_wl_F77=
15269 lt_prog_compiler_pic_F77=
15270 lt_prog_compiler_static_F77=
15272 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15273 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15275 if test "$GCC" = yes; then
15276 lt_prog_compiler_wl_F77='-Wl,'
15277 lt_prog_compiler_static_F77='-static'
15281 # All AIX code is PIC.
15282 if test "$host_cpu" = ia64; then
15283 # AIX 5 now supports IA64 processor
15284 lt_prog_compiler_static_F77='-Bstatic'
15289 # FIXME: we need at least 68020 code to build shared libraries, but
15290 # adding the `-m68020' flag to GCC prevents building anything better,
15292 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15295 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15296 # PIC is the default for these OSes.
15299 mingw* | pw32* | os2*)
15300 # This hack is so that the source file can tell whether it is being
15301 # built for inclusion in a dll (and should export symbols for example).
15302 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15305 darwin* | rhapsody*)
15306 # PIC is the default on this platform
15307 # Common symbols not allowed in MH_DYLIB files
15308 lt_prog_compiler_pic_F77='-fno-common'
15312 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15313 # Instead, we relocate shared libraries at runtime.
15317 # Just because we use GCC doesn't mean we suddenly get shared libraries
15318 # on systems that don't support them.
15319 lt_prog_compiler_can_build_shared_F77=no
15324 if test -d /usr/nec; then
15325 lt_prog_compiler_pic_F77=-Kconform_pic
15330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15331 # not for PA HP-UX.
15337 lt_prog_compiler_pic_F77='-fPIC'
15343 lt_prog_compiler_pic_F77='-fPIC'
15347 # PORTME Check for flag to pass linker flags through the system compiler.
15350 lt_prog_compiler_wl_F77='-Wl,'
15351 if test "$host_cpu" = ia64; then
15352 # AIX 5 now supports IA64 processor
15353 lt_prog_compiler_static_F77='-Bstatic'
15355 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15359 # PIC is the default on this platform
15360 # Common symbols not allowed in MH_DYLIB files
15361 case $cc_basename in
15363 lt_prog_compiler_pic_F77='-qnocommon'
15364 lt_prog_compiler_wl_F77='-Wl,'
15369 mingw* | pw32* | os2*)
15370 # This hack is so that the source file can tell whether it is being
15371 # built for inclusion in a dll (and should export symbols for example).
15372 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15375 hpux9* | hpux10* | hpux11*)
15376 lt_prog_compiler_wl_F77='-Wl,'
15377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15378 # not for PA HP-UX.
15384 lt_prog_compiler_pic_F77='+Z'
15387 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15388 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15391 irix5* | irix6* | nonstopux*)
15392 lt_prog_compiler_wl_F77='-Wl,'
15393 # PIC (with -KPIC) is the default.
15394 lt_prog_compiler_static_F77='-non_shared'
15398 lt_prog_compiler_pic_F77='-KPIC'
15399 lt_prog_compiler_static_F77='-Bstatic'
15402 linux* | k*bsd*-gnu)
15403 case $cc_basename in
15405 lt_prog_compiler_wl_F77='-Wl,'
15406 lt_prog_compiler_pic_F77='-KPIC'
15407 lt_prog_compiler_static_F77='-static'
15409 pgcc* | pgf77* | pgf90* | pgf95*)
15410 # Portland Group compilers (*not* the Pentium gcc compiler,
15411 # which looks to be a dead project)
15412 lt_prog_compiler_wl_F77='-Wl,'
15413 lt_prog_compiler_pic_F77='-fpic'
15414 lt_prog_compiler_static_F77='-Bstatic'
15417 lt_prog_compiler_wl_F77='-Wl,'
15418 # All Alpha code is PIC.
15419 lt_prog_compiler_static_F77='-non_shared'
15424 osf3* | osf4* | osf5*)
15425 lt_prog_compiler_wl_F77='-Wl,'
15426 # All OSF/1 code is PIC.
15427 lt_prog_compiler_static_F77='-non_shared'
15431 lt_prog_compiler_pic_F77='-KPIC'
15432 lt_prog_compiler_static_F77='-Bstatic'
15433 case $cc_basename in
15434 f77* | f90* | f95*)
15435 lt_prog_compiler_wl_F77='-Qoption ld ';;
15437 lt_prog_compiler_wl_F77='-Wl,';;
15442 lt_prog_compiler_wl_F77='-Qoption ld '
15443 lt_prog_compiler_pic_F77='-PIC'
15444 lt_prog_compiler_static_F77='-Bstatic'
15447 sysv4 | sysv4.2uw2* | sysv4.3*)
15448 lt_prog_compiler_wl_F77='-Wl,'
15449 lt_prog_compiler_pic_F77='-KPIC'
15450 lt_prog_compiler_static_F77='-Bstatic'
15454 if test -d /usr/nec ;then
15455 lt_prog_compiler_pic_F77='-Kconform_pic'
15456 lt_prog_compiler_static_F77='-Bstatic'
15460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15461 lt_prog_compiler_wl_F77='-Wl,'
15462 lt_prog_compiler_pic_F77='-KPIC'
15463 lt_prog_compiler_static_F77='-Bstatic'
15467 lt_prog_compiler_wl_F77='-Wl,'
15468 lt_prog_compiler_can_build_shared_F77=no
15472 lt_prog_compiler_pic_F77='-pic'
15473 lt_prog_compiler_static_F77='-Bstatic'
15477 lt_prog_compiler_can_build_shared_F77=no
15482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15483 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15486 # Check to make sure the PIC flag actually works.
15488 if test -n "$lt_prog_compiler_pic_F77"; then
15490 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15492 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 lt_prog_compiler_pic_works_F77=no
15496 ac_outfile=conftest.$ac_objext
15497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15498 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15499 # Insert the option either (1) after the last *FLAGS variable, or
15500 # (2) before a word containing "conftest.", or (3) at the end.
15501 # Note that $ac_compile itself does not contain backslashes and begins
15502 # with a dollar sign (not a hyphen), so the echo should work correctly.
15503 # The option is referenced via a variable to avoid confusing sed.
15504 lt_compile=`echo "$ac_compile" | $SED \
15505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15507 -e 's:$: $lt_compiler_flag:'`
15508 (eval echo "\"\$as_me:15508: $lt_compile\"" >&5)
15509 (eval "$lt_compile" 2>conftest.err)
15511 cat conftest.err >&5
15512 echo "$as_me:15512: \$? = $ac_status" >&5
15513 if (exit $ac_status) && test -s "$ac_outfile"; then
15514 # The compiler can only warn and ignore the option if not recognized
15515 # So say no if there are warnings other than the usual output.
15516 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15519 lt_prog_compiler_pic_works_F77=yes
15525 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15526 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15528 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15529 case $lt_prog_compiler_pic_F77 in
15531 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15534 lt_prog_compiler_pic_F77=
15535 lt_prog_compiler_can_build_shared_F77=no
15540 # For platforms which do not support PIC, -DPIC is meaningless:
15542 lt_prog_compiler_pic_F77=
15545 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15550 # Check to make sure the static flag actually works.
15552 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15553 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15554 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15555 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 lt_prog_compiler_static_works_F77=no
15559 save_LDFLAGS="$LDFLAGS"
15560 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15561 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15562 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15563 # The linker can only warn and ignore the option if not recognized
15564 # So say no if there are warnings
15565 if test -s conftest.err; then
15566 # Append any errors to the config.log.
15567 cat conftest.err 1>&5
15568 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15570 if diff conftest.exp conftest.er2 >/dev/null; then
15571 lt_prog_compiler_static_works_F77=yes
15574 lt_prog_compiler_static_works_F77=yes
15578 LDFLAGS="$save_LDFLAGS"
15581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15582 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15584 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15587 lt_prog_compiler_static_F77=
15591 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15592 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15593 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 lt_cv_prog_compiler_c_o_F77=no
15597 $rm -r conftest 2>/dev/null
15601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15603 lt_compiler_flag="-o out/conftest2.$ac_objext"
15604 # Insert the option either (1) after the last *FLAGS variable, or
15605 # (2) before a word containing "conftest.", or (3) at the end.
15606 # Note that $ac_compile itself does not contain backslashes and begins
15607 # with a dollar sign (not a hyphen), so the echo should work correctly.
15608 lt_compile=`echo "$ac_compile" | $SED \
15609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15611 -e 's:$: $lt_compiler_flag:'`
15612 (eval echo "\"\$as_me:15612: $lt_compile\"" >&5)
15613 (eval "$lt_compile" 2>out/conftest.err)
15615 cat out/conftest.err >&5
15616 echo "$as_me:15616: \$? = $ac_status" >&5
15617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15619 # The compiler can only warn and ignore the option if not recognized
15620 # So say no if there are warnings
15621 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15624 lt_cv_prog_compiler_c_o_F77=yes
15629 # SGI C++ compiler will create directory out/ii_files/ for
15630 # template instantiation
15631 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15632 $rm out/* && rmdir out
15638 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15639 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15642 hard_links="nottested"
15643 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15644 # do not overwrite the value of need_locks provided by the user
15645 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15646 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15651 ln conftest.a conftest.b 2>&5 || hard_links=no
15652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15653 { echo "$as_me:$LINENO: result: $hard_links" >&5
15654 echo "${ECHO_T}$hard_links" >&6; }
15655 if test "$hard_links" = no; then
15656 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15657 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15664 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15665 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15668 allow_undefined_flag_F77=
15669 enable_shared_with_static_runtimes_F77=no
15671 archive_expsym_cmds_F77=
15672 old_archive_From_new_cmds_F77=
15673 old_archive_from_expsyms_cmds_F77=
15674 export_dynamic_flag_spec_F77=
15675 whole_archive_flag_spec_F77=
15676 thread_safe_flag_spec_F77=
15677 hardcode_libdir_flag_spec_F77=
15678 hardcode_libdir_flag_spec_ld_F77=
15679 hardcode_libdir_separator_F77=
15680 hardcode_direct_F77=no
15681 hardcode_minus_L_F77=no
15682 hardcode_shlibpath_var_F77=unsupported
15683 link_all_deplibs_F77=unknown
15684 hardcode_automatic_F77=no
15686 module_expsym_cmds_F77=
15687 always_export_symbols_F77=no
15688 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15689 # include_expsyms should be a list of space-separated symbols to be *always*
15690 # included in the symbol list
15691 include_expsyms_F77=
15692 # exclude_expsyms can be an extended regexp of symbols to exclude
15693 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15695 # as well as any symbol that contains `d'.
15696 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15698 # platforms (ab)use it in PIC code, but their linkers get confused if
15699 # the symbol is explicitly referenced. Since portable code cannot
15700 # rely on this symbol name, it's probably fine to never include it in
15701 # preloaded symbol tables.
15702 extract_expsyms_cmds=
15703 # Just being paranoid about ensuring that cc_basename is set.
15704 for cc_temp in $compiler""; do
15706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15712 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15715 cygwin* | mingw* | pw32*)
15716 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15717 # When not using gcc, we currently assume that we are using
15718 # Microsoft Visual C++.
15719 if test "$GCC" != yes; then
15724 # we just hope/assume this is gcc and not c89 (= MSVC++)
15733 if test "$with_gnu_ld" = yes; then
15734 # If archive_cmds runs LD, not CC, wlarc should be empty
15737 # Set some defaults for GNU ld with shared library support. These
15738 # are reset later if shared libraries are not supported. Putting them
15739 # here allows them to be overridden if necessary.
15740 runpath_var=LD_RUN_PATH
15741 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15742 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15743 # ancient GNU ld didn't support --whole-archive et. al.
15744 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15745 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15747 whole_archive_flag_spec_F77=
15749 supports_anon_versioning=no
15750 case `$LD -v 2>/dev/null` in
15751 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15752 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15753 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15754 *\ 2.11.*) ;; # other 2.11 versions
15755 *) supports_anon_versioning=yes ;;
15758 # See if GNU ld supports shared libraries.
15760 aix3* | aix4* | aix5*)
15761 # On AIX/PPC, the GNU linker is very broken
15762 if test "$host_cpu" != ia64; then
15766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15767 *** to be unable to reliably create shared libraries on AIX.
15768 *** Therefore, libtool is disabling shared libraries support. If you
15769 *** really care for shared libraries, you may want to modify your PATH
15770 *** so that a non-GNU linker is found, and then restart.
15777 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)'
15778 hardcode_libdir_flag_spec_F77='-L$libdir'
15779 hardcode_minus_L_F77=yes
15781 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15782 # that the semantics of dynamic libraries on AmigaOS, at least up
15783 # to version 4, is to share data among multiple programs linked
15784 # with the same dynamic library. Since this doesn't match the
15785 # behavior of shared libraries on other platforms, we can't use
15791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15792 allow_undefined_flag_F77=unsupported
15793 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15794 # support --undefined. This deserves some investigation. FIXME
15795 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801 cygwin* | mingw* | pw32*)
15802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15803 # as there is no search path for DLLs.
15804 hardcode_libdir_flag_spec_F77='-L$libdir'
15805 allow_undefined_flag_F77=unsupported
15806 always_export_symbols_F77=no
15807 enable_shared_with_static_runtimes_F77=yes
15808 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15810 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15811 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15812 # If the export-symbols file already is a .def file (1st line
15813 # is EXPORTS), use it as is; otherwise, prepend...
15814 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15815 cp $export_symbols $output_objdir/$soname.def;
15817 echo EXPORTS > $output_objdir/$soname.def;
15818 cat $export_symbols >> $output_objdir/$soname.def;
15820 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15827 hardcode_direct_F77=no
15828 hardcode_shlibpath_var_F77=no
15829 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15830 export_dynamic_flag_spec_F77='${wl}-E'
15831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15832 # Instead, shared libraries are loaded at an image base (0x10000000 by
15833 # default) and relocated if they conflict, which is a slow very memory
15834 # consuming and fragmenting process. To avoid this, we pick a random,
15835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15837 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'
15838 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'
15841 linux* | k*bsd*-gnu)
15842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15844 case $cc_basename,$host_cpu in
15845 pgcc*) # Portland Group C compiler
15846 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'
15847 tmp_addflag=' $pic_flag'
15849 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15850 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'
15851 tmp_addflag=' $pic_flag -Mnomain' ;;
15852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15853 tmp_addflag=' -i_dynamic' ;;
15854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15855 tmp_addflag=' -i_dynamic -nofor_main' ;;
15856 ifc* | ifort*) # Intel Fortran compiler
15857 tmp_addflag=' -nofor_main' ;;
15859 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15861 if test $supports_anon_versioning = yes; then
15862 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15863 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15864 $echo "local: *; };" >> $output_objdir/$libname.ver~
15865 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15867 link_all_deplibs_F77=no
15873 netbsd* | netbsdelf*-gnu)
15874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15875 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15878 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15879 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15884 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15889 *** create shared libraries on Solaris systems. Therefore, libtool
15890 *** is disabling shared libraries support. We urge you to upgrade GNU
15891 *** binutils to release 2.9.1 or newer. Another option is to modify
15892 *** your PATH or compiler configuration so that the native linker is
15893 *** used, and then restart.
15896 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15897 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15905 case `$LD -v 2>&1` in
15906 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15911 *** reliably create shared libraries on SCO systems. Therefore, libtool
15912 *** is disabling shared libraries support. We urge you to upgrade GNU
15913 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15914 *** your PATH or compiler configuration so that the native linker is
15915 *** used, and then restart.
15920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15921 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15932 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_direct_F77=yes
15935 hardcode_shlibpath_var_F77=no
15939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15940 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15948 if test "$ld_shlibs_F77" = no; then
15950 hardcode_libdir_flag_spec_F77=
15951 export_dynamic_flag_spec_F77=
15952 whole_archive_flag_spec_F77=
15955 # PORTME fill in a description of your system's linker (not GNU ld)
15958 allow_undefined_flag_F77=unsupported
15959 always_export_symbols_F77=yes
15960 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'
15961 # Note: this linker hardcodes the directories in LIBPATH if there
15962 # are no directories specified by -L.
15963 hardcode_minus_L_F77=yes
15964 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15965 # Neither direct hardcoding nor static linking is supported with a
15967 hardcode_direct_F77=unsupported
15972 if test "$host_cpu" = ia64; then
15973 # On IA64, the linker does run time linking by default, so we don't
15974 # have to do anything special.
15975 aix_use_runtimelinking=no
15976 exp_sym_flag='-Bexport'
15979 # If we're using GNU nm, then we don't want the "-C" option.
15980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15981 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15982 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'
15984 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'
15986 aix_use_runtimelinking=no
15988 # Test if we are trying to use run time linking or normal
15989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15990 # need to do runtime linking.
15991 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15992 for ld_flag in $LDFLAGS; do
15993 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15994 aix_use_runtimelinking=yes
16001 exp_sym_flag='-bexport'
16002 no_entry_flag='-bnoentry'
16005 # When large executables or shared objects are built, AIX ld can
16006 # have problems creating the table of contents. If linking a library
16007 # or program results in "error TOC overflow" add -mminimal-toc to
16008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16011 archive_cmds_F77=''
16012 hardcode_direct_F77=yes
16013 hardcode_libdir_separator_F77=':'
16014 link_all_deplibs_F77=yes
16016 if test "$GCC" = yes; then
16017 case $host_os in aix4.[012]|aix4.[012].*)
16018 # We only want to do this on AIX 4.2 and lower, the check
16019 # below for broken collect2 doesn't work under 4.3+
16020 collect2name=`${CC} -print-prog-name=collect2`
16021 if test -f "$collect2name" && \
16022 strings "$collect2name" | grep resolve_lib_name >/dev/null
16024 # We have reworked collect2
16025 hardcode_direct_F77=yes
16027 # We have old collect2
16028 hardcode_direct_F77=unsupported
16029 # It fails to find uninstalled libraries when the uninstalled
16030 # path is not listed in the libpath. Setting hardcode_minus_L
16031 # to unsupported forces relinking
16032 hardcode_minus_L_F77=yes
16033 hardcode_libdir_flag_spec_F77='-L$libdir'
16034 hardcode_libdir_separator_F77=
16038 shared_flag='-shared'
16039 if test "$aix_use_runtimelinking" = yes; then
16040 shared_flag="$shared_flag "'${wl}-G'
16044 if test "$host_cpu" = ia64; then
16045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16046 # chokes on -Wl,-G. The following line is correct:
16049 if test "$aix_use_runtimelinking" = yes; then
16050 shared_flag='${wl}-G'
16052 shared_flag='${wl}-bM:SRE'
16057 # It seems that -bexpall does not export symbols beginning with
16058 # underscore (_), so it is better to generate a list of symbols to export.
16059 always_export_symbols_F77=yes
16060 if test "$aix_use_runtimelinking" = yes; then
16061 # Warning - without using the other runtime loading flags (-brtl),
16062 # -berok will link without error, but may produce a broken library.
16063 allow_undefined_flag_F77='-berok'
16064 # Determine the default libpath from the value encoded in an empty executable.
16065 cat >conftest.$ac_ext <<_ACEOF
16070 rm -f conftest.$ac_objext conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_link") 2>conftest.er1
16079 grep -v '^ *+' conftest.er1 >conftest.err
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && {
16084 test -z "$ac_f77_werror_flag" ||
16085 test ! -s conftest.err
16086 } && test -s conftest$ac_exeext &&
16087 $as_test_x conftest$ac_exeext; then
16089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16091 # Check for a 64-bit object if we didn't find anything.
16092 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16102 conftest$ac_exeext conftest.$ac_ext
16103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16105 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16106 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"
16108 if test "$host_cpu" = ia64; then
16109 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16110 allow_undefined_flag_F77="-z nodefs"
16111 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"
16113 # Determine the default libpath from the value encoded in an empty executable.
16114 cat >conftest.$ac_ext <<_ACEOF
16119 rm -f conftest.$ac_objext conftest$ac_exeext
16120 if { (ac_try="$ac_link"
16121 case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_link") 2>conftest.er1
16128 grep -v '^ *+' conftest.er1 >conftest.err
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && {
16133 test -z "$ac_f77_werror_flag" ||
16134 test ! -s conftest.err
16135 } && test -s conftest$ac_exeext &&
16136 $as_test_x conftest$ac_exeext; then
16138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16140 # Check for a 64-bit object if we didn't find anything.
16141 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16151 conftest$ac_exeext conftest.$ac_ext
16152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16154 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16155 # Warning - without using the other run time loading flags,
16156 # -berok will link without error, but may produce a broken library.
16157 no_undefined_flag_F77=' ${wl}-bernotok'
16158 allow_undefined_flag_F77=' ${wl}-berok'
16159 # Exported symbols can be pulled into shared objects from archives
16160 whole_archive_flag_spec_F77='$convenience'
16161 archive_cmds_need_lc_F77=yes
16162 # This is similar to how AIX traditionally builds its shared libraries.
16163 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'
16169 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)'
16170 hardcode_libdir_flag_spec_F77='-L$libdir'
16171 hardcode_minus_L_F77=yes
16172 # see comment about different semantics on the GNU ld section
16177 export_dynamic_flag_spec_F77=-rdynamic
16180 cygwin* | mingw* | pw32*)
16181 # When not using gcc, we currently assume that we are using
16182 # Microsoft Visual C++.
16183 # hardcode_libdir_flag_spec is actually meaningless, as there is
16184 # no search path for DLLs.
16185 hardcode_libdir_flag_spec_F77=' '
16186 allow_undefined_flag_F77=unsupported
16187 # Tell ltmain to make .lib files, not .a files.
16189 # Tell ltmain to make .dll files, not .so files.
16191 # FIXME: Setting linknames here is a bad hack.
16192 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16193 # The linker will automatically build a .lib file if we build a DLL.
16194 old_archive_From_new_cmds_F77='true'
16195 # FIXME: Should let the user specify the lib program.
16196 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16197 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16198 enable_shared_with_static_runtimes_F77=yes
16201 darwin* | rhapsody*)
16203 rhapsody* | darwin1.[012])
16204 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16208 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16210 case ${MACOSX_DEPLOYMENT_TARGET} in
16212 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16215 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16221 archive_cmds_need_lc_F77=no
16222 hardcode_direct_F77=no
16223 hardcode_automatic_F77=yes
16224 hardcode_shlibpath_var_F77=unsupported
16225 whole_archive_flag_spec_F77=''
16226 link_all_deplibs_F77=yes
16227 if test "$GCC" = yes ; then
16228 output_verbose_link_cmd='echo'
16229 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16230 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16232 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}'
16233 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}'
16235 case $cc_basename in
16237 output_verbose_link_cmd='echo'
16238 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16239 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16241 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16242 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}'
16252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16253 hardcode_libdir_flag_spec_F77='-L$libdir'
16254 hardcode_shlibpath_var_F77=no
16261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16262 # support. Future versions do this automatically, but an explicit c++rt0.o
16263 # does not break anything, and helps significantly (at the cost of a little
16266 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16267 hardcode_libdir_flag_spec_F77='-R$libdir'
16268 hardcode_direct_F77=yes
16269 hardcode_shlibpath_var_F77=no
16272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16274 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16275 hardcode_direct_F77=yes
16276 hardcode_minus_L_F77=yes
16277 hardcode_shlibpath_var_F77=no
16280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16281 freebsd* | dragonfly*)
16282 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16283 hardcode_libdir_flag_spec_F77='-R$libdir'
16284 hardcode_direct_F77=yes
16285 hardcode_shlibpath_var_F77=no
16289 if test "$GCC" = yes; then
16290 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'
16292 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'
16294 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16295 hardcode_libdir_separator_F77=:
16296 hardcode_direct_F77=yes
16298 # hardcode_minus_L: Not really in the search PATH,
16299 # but as the default location of the library.
16300 hardcode_minus_L_F77=yes
16301 export_dynamic_flag_spec_F77='${wl}-E'
16305 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16306 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16308 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16310 if test "$with_gnu_ld" = no; then
16311 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16312 hardcode_libdir_separator_F77=:
16314 hardcode_direct_F77=yes
16315 export_dynamic_flag_spec_F77='${wl}-E'
16317 # hardcode_minus_L: Not really in the search PATH,
16318 # but as the default location of the library.
16319 hardcode_minus_L_F77=yes
16324 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16327 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16330 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16333 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16339 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16342 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16345 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16349 if test "$with_gnu_ld" = no; then
16350 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16351 hardcode_libdir_separator_F77=:
16355 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16356 hardcode_direct_F77=no
16357 hardcode_shlibpath_var_F77=no
16360 hardcode_direct_F77=yes
16361 export_dynamic_flag_spec_F77='${wl}-E'
16363 # hardcode_minus_L: Not really in the search PATH,
16364 # but as the default location of the library.
16365 hardcode_minus_L_F77=yes
16371 irix5* | irix6* | nonstopux*)
16372 if test "$GCC" = yes; then
16373 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'
16375 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'
16376 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16378 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16379 hardcode_libdir_separator_F77=:
16380 link_all_deplibs_F77=yes
16383 netbsd* | netbsdelf*-gnu)
16384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16387 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16389 hardcode_libdir_flag_spec_F77='-R$libdir'
16390 hardcode_direct_F77=yes
16391 hardcode_shlibpath_var_F77=no
16395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396 hardcode_direct_F77=yes
16397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16398 hardcode_libdir_separator_F77=:
16399 hardcode_shlibpath_var_F77=no
16403 hardcode_direct_F77=yes
16404 hardcode_shlibpath_var_F77=no
16405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16406 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16407 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16409 export_dynamic_flag_spec_F77='${wl}-E'
16412 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16413 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_libdir_flag_spec_F77='-R$libdir'
16417 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16418 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16425 hardcode_libdir_flag_spec_F77='-L$libdir'
16426 hardcode_minus_L_F77=yes
16427 allow_undefined_flag_F77=unsupported
16428 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'
16429 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16433 if test "$GCC" = yes; then
16434 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16435 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'
16437 allow_undefined_flag_F77=' -expect_unresolved \*'
16438 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'
16440 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16441 hardcode_libdir_separator_F77=:
16444 osf4* | osf5*) # as osf3* with the addition of -msym flag
16445 if test "$GCC" = yes; then
16446 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16447 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'
16448 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16450 allow_undefined_flag_F77=' -expect_unresolved \*'
16451 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'
16452 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~
16453 $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'
16455 # Both c and cxx compiler support -rpath directly
16456 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16458 hardcode_libdir_separator_F77=:
16462 no_undefined_flag_F77=' -z text'
16463 if test "$GCC" = yes; then
16465 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16466 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16467 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16470 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16471 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16474 hardcode_libdir_flag_spec_F77='-R$libdir'
16475 hardcode_shlibpath_var_F77=no
16477 solaris2.[0-5] | solaris2.[0-5].*) ;;
16479 # The compiler driver will combine linker options so we
16480 # cannot just pass the convience library names through
16481 # without $wl, iff we do not link with $LD.
16482 # Luckily, gcc supports the same syntax we need for Sun Studio.
16483 # Supported since Solaris 2.6 (maybe 2.5.1?)
16486 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16488 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16491 link_all_deplibs_F77=yes
16495 if test "x$host_vendor" = xsequent; then
16496 # Use $CC to link under sequent, because it throws in some extra .o
16497 # files that make .init and .fini sections work.
16498 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16500 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16502 hardcode_libdir_flag_spec_F77='-L$libdir'
16503 hardcode_direct_F77=yes
16504 hardcode_minus_L_F77=yes
16505 hardcode_shlibpath_var_F77=no
16509 case $host_vendor in
16511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_direct_F77=yes # is this really true???
16515 ## LD is ld it makes a PLAMLIB
16516 ## CC just makes a GrossModule.
16517 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16518 reload_cmds_F77='$CC -r -o $output$reload_objs'
16519 hardcode_direct_F77=no
16522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16526 runpath_var='LD_RUN_PATH'
16527 hardcode_shlibpath_var_F77=no
16531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532 hardcode_shlibpath_var_F77=no
16533 export_dynamic_flag_spec_F77='-Bexport'
16537 if test -d /usr/nec; then
16538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539 hardcode_shlibpath_var_F77=no
16540 runpath_var=LD_RUN_PATH
16541 hardcode_runpath_var=yes
16546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16547 no_undefined_flag_F77='${wl}-z,text'
16548 archive_cmds_need_lc_F77=no
16549 hardcode_shlibpath_var_F77=no
16550 runpath_var='LD_RUN_PATH'
16552 if test "$GCC" = yes; then
16553 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16554 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561 sysv5* | sco3.2v5* | sco5v6*)
16562 # Note: We can NOT use -z defs as we might desire, because we do not
16563 # link with -lc, and that would cause any symbols used from libc to
16564 # always be unresolved, which means just about no library would
16565 # ever link correctly. If we're not using GNU ld we use -z text
16566 # though, which does catch some bad symbols but isn't as heavy-handed
16568 no_undefined_flag_F77='${wl}-z,text'
16569 allow_undefined_flag_F77='${wl}-z,nodefs'
16570 archive_cmds_need_lc_F77=no
16571 hardcode_shlibpath_var_F77=no
16572 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16573 hardcode_libdir_separator_F77=':'
16574 link_all_deplibs_F77=yes
16575 export_dynamic_flag_spec_F77='${wl}-Bexport'
16576 runpath_var='LD_RUN_PATH'
16578 if test "$GCC" = yes; then
16579 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16580 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16582 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16583 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16589 hardcode_libdir_flag_spec_F77='-L$libdir'
16590 hardcode_shlibpath_var_F77=no
16599 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16600 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16601 test "$ld_shlibs_F77" = no && can_build_shared=no
16604 # Do we need to explicitly link libc?
16606 case "x$archive_cmds_need_lc_F77" in
16608 # Assume -lc should be added
16609 archive_cmds_need_lc_F77=yes
16611 if test "$enable_shared" = yes && test "$GCC" = yes; then
16612 case $archive_cmds_F77 in
16614 # FIXME: we may have to deal with multi-command sequences.
16617 # Test whether the compiler implicitly links with -lc since on some
16618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16619 # to ld, don't add -lc before -lgcc.
16620 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16621 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626 (eval $ac_compile) 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } 2>conftest.err; then
16632 libobjs=conftest.$ac_objext
16634 wl=$lt_prog_compiler_wl_F77
16635 pic_flag=$lt_prog_compiler_pic_F77
16641 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16642 allow_undefined_flag_F77=
16643 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16644 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }
16649 archive_cmds_need_lc_F77=no
16651 archive_cmds_need_lc_F77=yes
16653 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16655 cat conftest.err 1>&5
16658 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16659 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16666 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16667 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16668 library_names_spec=
16669 libname_spec='lib$name'
16673 postuninstall_cmds=
16677 shlibpath_overrides_runpath=unknown
16679 dynamic_linker="$host_os ld.so"
16680 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16681 if test "$GCC" = yes; then
16682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16683 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16684 # if the path contains ";" then we assume it to be the separator
16685 # otherwise default to the standard path separator (i.e. ":") - it is
16686 # assumed that no part of a normal pathname contains ";" but that should
16687 # okay in the real world where ";" in dirpaths is itself problematic.
16688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16695 need_lib_prefix=unknown
16696 hardcode_into_libs=no
16698 # when you set need_version to no, make sure it does not cause -set_version
16699 # flags to be left without arguments
16700 need_version=unknown
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16706 shlibpath_var=LIBPATH
16708 # AIX 3 has no versioning support, so we append a major version to the name.
16709 soname_spec='${libname}${release}${shared_ext}$major'
16716 hardcode_into_libs=yes
16717 if test "$host_cpu" = ia64; then
16718 # AIX 5 supports IA64
16719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16720 shlibpath_var=LD_LIBRARY_PATH
16722 # With GCC up to 2.95.x, collect2 would create an import file
16723 # for dependence libraries. The import file would start with
16724 # the line `#! .'. This would cause the generated library to
16725 # depend on `.', always an invalid library. This was fixed in
16726 # development snapshots of GCC prior to 3.0.
16728 aix4 | aix4.[01] | aix4.[01].*)
16729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16731 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16734 can_build_shared=no
16738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16739 # soname into executable. Probably we can add versioning support to
16740 # collect2, so additional links can be useful in future.
16741 if test "$aix_use_runtimelinking" = yes; then
16742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16743 # instead of lib<name>.a to let people know that these are not
16744 # typical AIX shared libraries.
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747 # We preserve .a as extension for shared libraries through AIX4.2
16748 # and later when we are not doing run time linking.
16749 library_names_spec='${libname}${release}.a $libname.a'
16750 soname_spec='${libname}${release}${shared_ext}$major'
16752 shlibpath_var=LIBPATH
16757 library_names_spec='$libname.ixlibrary $libname.a'
16758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16759 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'
16763 library_names_spec='${libname}${shared_ext}'
16764 dynamic_linker="$host_os ld.so"
16765 shlibpath_var=LIBRARY_PATH
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 soname_spec='${libname}${release}${shared_ext}$major'
16773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16777 # the default ld.so.conf also contains /usr/contrib/lib and
16778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16779 # libtool to hard-code these into programs
16782 cygwin* | mingw* | pw32*)
16783 version_type=windows
16788 case $GCC,$host_os in
16789 yes,cygwin* | yes,mingw* | yes,pw32*)
16790 library_names_spec='$libname.dll.a'
16791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16792 postinstall_cmds='base_file=`basename \${file}`~
16793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16794 dldir=$destdir/`dirname \$dlpath`~
16795 test -d \$dldir || mkdir -p \$dldir~
16796 $install_prog $dir/$dlname \$dldir/$dlname~
16797 chmod a+x \$dldir/$dlname'
16798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16799 dlpath=$dir/\$dldll~
16801 shlibpath_overrides_runpath=yes
16805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16806 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16807 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16810 # MinGW DLLs use traditional 'lib' prefix
16811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16813 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16814 # It is most probably a Windows format PATH printed by
16815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16816 # path with ; separators, and with drive letters. We can handle the
16817 # drive letters (cygwin fileutils understands them), so leave them,
16818 # especially as we might pass files found there to a mingw objdump,
16819 # which wouldn't understand a cygwinified path. Ahh.
16820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16826 # pw32 DLLs use 'pw' prefix rather than 'lib'
16827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16836 dynamic_linker='Win32 ld.exe'
16837 # FIXME: first we should search . and the directory the executable is in
16841 darwin* | rhapsody*)
16842 dynamic_linker="$host_os dyld"
16843 version_type=darwin
16846 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16847 soname_spec='${libname}${release}${major}$shared_ext'
16848 shlibpath_overrides_runpath=yes
16849 shlibpath_var=DYLD_LIBRARY_PATH
16850 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16851 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16852 if test "$GCC" = yes; then
16853 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16855 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 shlibpath_var=LD_LIBRARY_PATH
16873 freebsd* | dragonfly*)
16874 # DragonFly does not have aout. When/if they implement a new
16875 # versioning mechanism, adjust this.
16876 if test -x /usr/bin/objformat; then
16877 objformat=`/usr/bin/objformat`
16880 freebsd[123]*) objformat=aout ;;
16881 *) objformat=elf ;;
16884 version_type=freebsd-$objformat
16885 case $version_type in
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16896 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes
16901 freebsd3.[01]* | freebsdelf3.[01]*)
16902 shlibpath_overrides_runpath=yes
16903 hardcode_into_libs=yes
16905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16907 shlibpath_overrides_runpath=no
16908 hardcode_into_libs=yes
16910 freebsd*) # from 4.6 on
16911 shlibpath_overrides_runpath=yes
16912 hardcode_into_libs=yes
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 hardcode_into_libs=yes
16927 hpux9* | hpux10* | hpux11*)
16928 # Give a soname corresponding to the major version so that dld.sl refuses to
16929 # link against other versions.
16936 hardcode_into_libs=yes
16937 dynamic_linker="$host_os dld.so"
16938 shlibpath_var=LD_LIBRARY_PATH
16939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941 soname_spec='${libname}${release}${shared_ext}$major'
16942 if test "X$HPUX_IA64_MODE" = X32; then
16943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16951 hardcode_into_libs=yes
16952 dynamic_linker="$host_os dld.sl"
16953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16962 dynamic_linker="$host_os dld.sl"
16963 shlibpath_var=SHLIB_PATH
16964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16969 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16970 postinstall_cmds='chmod 555 $lib'
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16978 soname_spec='${libname}${release}${shared_ext}$major'
16979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=no
16982 hardcode_into_libs=yes
16985 irix5* | irix6* | nonstopux*)
16987 nonstopux*) version_type=nonstopux ;;
16989 if test "$lt_cv_prog_gnu_ld" = yes; then
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17000 irix5* | nonstopux*)
17001 libsuff= shlibsuff=
17004 case $LD in # libtool.m4 will add one of these switches to LD
17005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17006 libsuff= shlibsuff= libmagic=32-bit;;
17007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17008 libsuff=32 shlibsuff=N32 libmagic=N32;;
17009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17011 *) libsuff= shlibsuff= libmagic=never-match;;
17015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17016 shlibpath_overrides_runpath=no
17017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17019 hardcode_into_libs=yes
17022 # No shared lib support for Linux oldld, aout, or coff.
17023 linux*oldld* | linux*aout* | linux*coff*)
17027 # This must be Linux ELF.
17028 linux* | k*bsd*-gnu)
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17035 shlibpath_var=LD_LIBRARY_PATH
17036 shlibpath_overrides_runpath=no
17037 # This implies no fast_install, which is unacceptable.
17038 # Some rework will be needed to allow for fast_install
17039 # before this can be enabled.
17040 hardcode_into_libs=yes
17042 # Append ld.so.conf contents to the search path
17043 if test -f /etc/ld.so.conf; then
17044 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17048 # We used to test for /lib/ld.so.1 and disable shared libraries on
17049 # powerpc, because MkLinux only supported shared libraries with the
17050 # GNU dynamic linker. Since this was broken with cross compilers,
17051 # most powerpc-linux boxes support dynamic linking these days and
17052 # people can always --disable-shared, the test was removed, and we
17053 # assume the GNU/Linux dynamic linker is in use.
17054 dynamic_linker='GNU/Linux ld.so'
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 shlibpath_var=LD_LIBRARY_PATH
17064 shlibpath_overrides_runpath=no
17065 hardcode_into_libs=yes
17066 dynamic_linker='NetBSD ld.elf_so'
17073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17076 dynamic_linker='NetBSD (a.out) ld.so'
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17079 soname_spec='${libname}${release}${shared_ext}$major'
17080 dynamic_linker='NetBSD ld.elf_so'
17082 shlibpath_var=LD_LIBRARY_PATH
17083 shlibpath_overrides_runpath=yes
17084 hardcode_into_libs=yes
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=yes
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 shlibpath_overrides_runpath=yes
17106 sys_lib_dlsearch_path_spec="/usr/lib"
17108 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17110 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17111 *) need_version=no ;;
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17115 shlibpath_var=LD_LIBRARY_PATH
17116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17118 openbsd2.[89] | openbsd2.[89].*)
17119 shlibpath_overrides_runpath=no
17122 shlibpath_overrides_runpath=yes
17126 shlibpath_overrides_runpath=yes
17131 libname_spec='$name'
17134 library_names_spec='$libname${shared_ext} $libname.a'
17135 dynamic_linker='OS/2 ld.exe'
17136 shlibpath_var=LIBPATH
17139 osf3* | osf4* | osf5*)
17143 soname_spec='${libname}${release}${shared_ext}$major'
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17147 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 shlibpath_overrides_runpath=yes
17158 hardcode_into_libs=yes
17159 # ldd complains unless libraries are executable
17160 postinstall_cmds='chmod +x $lib'
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes
17169 if test "$with_gnu_ld" = yes; then
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 case $host_vendor in
17182 shlibpath_overrides_runpath=no
17184 export_dynamic_flag_spec='${wl}-Blargedynsym'
17185 runpath_var=LD_RUN_PATH
17193 shlibpath_overrides_runpath=no
17194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17200 if test -d /usr/nec ;then
17202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17203 soname_spec='$libname${shared_ext}.$major'
17204 shlibpath_var=LD_LIBRARY_PATH
17208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17209 version_type=freebsd-elf
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 hardcode_into_libs=yes
17216 if test "$with_gnu_ld" = yes; then
17217 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17218 shlibpath_overrides_runpath=no
17220 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17221 shlibpath_overrides_runpath=yes
17224 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17228 sys_lib_dlsearch_path_spec='/usr/lib'
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 shlibpath_var=LD_LIBRARY_PATH
17242 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17243 echo "${ECHO_T}$dynamic_linker" >&6; }
17244 test "$dynamic_linker" = no && can_build_shared=no
17246 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17247 if test "$GCC" = yes; then
17248 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17251 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17252 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17253 hardcode_action_F77=
17254 if test -n "$hardcode_libdir_flag_spec_F77" || \
17255 test -n "$runpath_var_F77" || \
17256 test "X$hardcode_automatic_F77" = "Xyes" ; then
17258 # We can hardcode non-existant directories.
17259 if test "$hardcode_direct_F77" != no &&
17260 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17261 # have to relink, otherwise we might link with an installed library
17262 # when we should be linking with a yet-to-be-installed one
17263 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17264 test "$hardcode_minus_L_F77" != no; then
17265 # Linking always hardcodes the temporary library directory.
17266 hardcode_action_F77=relink
17268 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17269 hardcode_action_F77=immediate
17272 # We cannot hardcode anything, or else we can only hardcode existing
17274 hardcode_action_F77=unsupported
17276 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17277 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17279 if test "$hardcode_action_F77" = relink; then
17280 # Fast installation is not supported
17281 enable_fast_install=no
17282 elif test "$shlibpath_overrides_runpath" = yes ||
17283 test "$enable_shared" = no; then
17284 # Fast installation is not necessary
17285 enable_fast_install=needless
17289 # The else clause should only fire when bootstrapping the
17290 # libtool distribution, otherwise you forgot to ship ltmain.sh
17291 # with your package, and you will get complaints that there are
17292 # no rules to generate ltmain.sh.
17293 if test -f "$ltmain"; then
17294 # See if we are running on zsh, and set the options which allow our commands through
17295 # without removal of \ escapes.
17296 if test -n "${ZSH_VERSION+set}" ; then
17297 setopt NO_GLOB_SUBST
17299 # Now quote all the things that may contain metacharacters while being
17300 # careful not to overquote the AC_SUBSTed values. We take copies of the
17301 # variables and quote the copies for generation of the libtool script.
17302 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17304 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17305 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17306 deplibs_check_method reload_flag reload_cmds need_locks \
17307 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17308 lt_cv_sys_global_symbol_to_c_name_address \
17309 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17310 old_postinstall_cmds old_postuninstall_cmds \
17314 lt_prog_compiler_wl_F77 \
17315 lt_prog_compiler_pic_F77 \
17316 lt_prog_compiler_static_F77 \
17317 lt_prog_compiler_no_builtin_flag_F77 \
17318 export_dynamic_flag_spec_F77 \
17319 thread_safe_flag_spec_F77 \
17320 whole_archive_flag_spec_F77 \
17321 enable_shared_with_static_runtimes_F77 \
17322 old_archive_cmds_F77 \
17323 old_archive_from_new_cmds_F77 \
17324 predep_objects_F77 \
17325 postdep_objects_F77 \
17328 compiler_lib_search_path_F77 \
17330 archive_expsym_cmds_F77 \
17331 postinstall_cmds_F77 \
17332 postuninstall_cmds_F77 \
17333 old_archive_from_expsyms_cmds_F77 \
17334 allow_undefined_flag_F77 \
17335 no_undefined_flag_F77 \
17336 export_symbols_cmds_F77 \
17337 hardcode_libdir_flag_spec_F77 \
17338 hardcode_libdir_flag_spec_ld_F77 \
17339 hardcode_libdir_separator_F77 \
17340 hardcode_automatic_F77 \
17342 module_expsym_cmds_F77 \
17343 lt_cv_prog_compiler_c_o_F77 \
17344 exclude_expsyms_F77 \
17345 include_expsyms_F77; do
17348 old_archive_cmds_F77 | \
17349 old_archive_from_new_cmds_F77 | \
17350 archive_cmds_F77 | \
17351 archive_expsym_cmds_F77 | \
17352 module_cmds_F77 | \
17353 module_expsym_cmds_F77 | \
17354 old_archive_from_expsyms_cmds_F77 | \
17355 export_symbols_cmds_F77 | \
17356 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17357 postinstall_cmds | postuninstall_cmds | \
17358 old_postinstall_cmds | old_postuninstall_cmds | \
17359 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17360 # Double-quote double-evaled strings.
17361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17370 *'\$0 --fallback-echo"')
17371 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17377 cat <<__EOF__ >> "$cfgfile"
17378 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17380 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17382 # Shell to use when invoking shell scripts.
17385 # Whether or not to build shared libraries.
17386 build_libtool_libs=$enable_shared
17388 # Whether or not to build static libraries.
17389 build_old_libs=$enable_static
17391 # Whether or not to add -lc for building shared libraries.
17392 build_libtool_need_lc=$archive_cmds_need_lc_F77
17394 # Whether or not to disallow shared libs when runtime libs are static
17395 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17397 # Whether or not to optimize for fast installation.
17398 fast_install=$enable_fast_install
17401 host_alias=$host_alias
17405 # The build system.
17406 build_alias=$build_alias
17410 # An echo program that does not interpret backslashes.
17415 AR_FLAGS=$lt_AR_FLAGS
17420 # LTCC compiler flags.
17421 LTCFLAGS=$lt_LTCFLAGS
17423 # A language-specific compiler.
17424 CC=$lt_compiler_F77
17426 # Is the compiler the GNU C compiler?
17432 # The linker used to build libraries.
17435 # Whether we need hard or soft links.
17438 # A BSD-compatible nm program.
17441 # A symbol stripping program
17444 # Used to examine libraries when file_magic_cmd begins "file"
17445 MAGIC_CMD=$MAGIC_CMD
17447 # Used on cygwin: DLL creation program.
17450 # Used on cygwin: object dumper.
17453 # Used on cygwin: assembler.
17456 # The name of the directory that contains temporary libtool files.
17459 # How to create reloadable object files.
17460 reload_flag=$lt_reload_flag
17461 reload_cmds=$lt_reload_cmds
17463 # How to pass a linker flag through the compiler.
17464 wl=$lt_lt_prog_compiler_wl_F77
17466 # Object file suffix (normally "o").
17467 objext="$ac_objext"
17469 # Old archive suffix (normally "a").
17472 # Shared library suffix (normally ".so").
17473 shrext_cmds='$shrext_cmds'
17475 # Executable file suffix (normally "").
17478 # Additional compiler flags for building library objects.
17479 pic_flag=$lt_lt_prog_compiler_pic_F77
17482 # What is the maximum length of a command?
17483 max_cmd_len=$lt_cv_sys_max_cmd_len
17485 # Does compiler simultaneously support -c and -o options?
17486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17488 # Must we lock files when doing compilation?
17489 need_locks=$lt_need_locks
17491 # Do we need the lib prefix for modules?
17492 need_lib_prefix=$need_lib_prefix
17494 # Do we need a version for libraries?
17495 need_version=$need_version
17497 # Whether dlopen is supported.
17498 dlopen_support=$enable_dlopen
17500 # Whether dlopen of programs is supported.
17501 dlopen_self=$enable_dlopen_self
17503 # Whether dlopen of statically linked programs is supported.
17504 dlopen_self_static=$enable_dlopen_self_static
17506 # Compiler flag to prevent dynamic linking.
17507 link_static_flag=$lt_lt_prog_compiler_static_F77
17509 # Compiler flag to turn off builtin functions.
17510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17512 # Compiler flag to allow reflexive dlopens.
17513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17515 # Compiler flag to generate shared objects directly from archives.
17516 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17518 # Compiler flag to generate thread-safe objects.
17519 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17521 # Library versioning type.
17522 version_type=$version_type
17524 # Format of library name prefix.
17525 libname_spec=$lt_libname_spec
17527 # List of archive names. First name is the real one, the rest are links.
17528 # The last name is the one that the linker finds with -lNAME.
17529 library_names_spec=$lt_library_names_spec
17531 # The coded name of the library, if different from the real name.
17532 soname_spec=$lt_soname_spec
17534 # Commands used to build and install an old-style archive.
17536 old_archive_cmds=$lt_old_archive_cmds_F77
17537 old_postinstall_cmds=$lt_old_postinstall_cmds
17538 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17540 # Create an old-style archive from a shared archive.
17541 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17543 # Create a temporary old-style archive to link instead of a shared archive.
17544 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17546 # Commands used to build and install a shared archive.
17547 archive_cmds=$lt_archive_cmds_F77
17548 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17549 postinstall_cmds=$lt_postinstall_cmds
17550 postuninstall_cmds=$lt_postuninstall_cmds
17552 # Commands used to build a loadable module (assumed same as above if empty)
17553 module_cmds=$lt_module_cmds_F77
17554 module_expsym_cmds=$lt_module_expsym_cmds_F77
17556 # Commands to strip libraries.
17557 old_striplib=$lt_old_striplib
17558 striplib=$lt_striplib
17560 # Dependencies to place before the objects being linked to create a
17562 predep_objects=$lt_predep_objects_F77
17564 # Dependencies to place after the objects being linked to create a
17566 postdep_objects=$lt_postdep_objects_F77
17568 # Dependencies to place before the objects being linked to create a
17570 predeps=$lt_predeps_F77
17572 # Dependencies to place after the objects being linked to create a
17574 postdeps=$lt_postdeps_F77
17576 # The library search path used internally by the compiler when linking
17577 # a shared library.
17578 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17580 # Method to check whether dependent libraries are shared objects.
17581 deplibs_check_method=$lt_deplibs_check_method
17583 # Command to use when deplibs_check_method == file_magic.
17584 file_magic_cmd=$lt_file_magic_cmd
17586 # Flag that allows shared libraries with undefined symbols to be built.
17587 allow_undefined_flag=$lt_allow_undefined_flag_F77
17589 # Flag that forces no undefined symbols.
17590 no_undefined_flag=$lt_no_undefined_flag_F77
17592 # Commands used to finish a libtool library installation in a directory.
17593 finish_cmds=$lt_finish_cmds
17595 # Same as above, but a single script fragment to be evaled but not shown.
17596 finish_eval=$lt_finish_eval
17598 # Take the output of nm and produce a listing of raw symbols and C names.
17599 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17601 # Transform the output of nm in a proper C declaration
17602 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17604 # Transform the output of nm in a C name address pair
17605 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17607 # This is the shared library runtime path variable.
17608 runpath_var=$runpath_var
17610 # This is the shared library path variable.
17611 shlibpath_var=$shlibpath_var
17613 # Is shlibpath searched before the hard-coded library search path?
17614 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17616 # How to hardcode a shared library path into an executable.
17617 hardcode_action=$hardcode_action_F77
17619 # Whether we should hardcode library paths into libraries.
17620 hardcode_into_libs=$hardcode_into_libs
17622 # Flag to hardcode \$libdir into a binary during linking.
17623 # This must work even if \$libdir does not exist.
17624 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17626 # If ld is used when linking, flag to hardcode \$libdir into
17627 # a binary during linking. This must work even if \$libdir does
17629 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17631 # Whether we need a single -rpath flag with a separated argument.
17632 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17634 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17635 # resulting binary.
17636 hardcode_direct=$hardcode_direct_F77
17638 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17639 # resulting binary.
17640 hardcode_minus_L=$hardcode_minus_L_F77
17642 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17643 # the resulting binary.
17644 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17646 # Set to yes if building a shared library automatically hardcodes DIR into the library
17647 # and all subsequent libraries and executables linked against it.
17648 hardcode_automatic=$hardcode_automatic_F77
17650 # Variables whose values should be saved in libtool wrapper scripts and
17651 # restored at relink time.
17652 variables_saved_for_relink="$variables_saved_for_relink"
17654 # Whether libtool must link a program against all its dependency libraries.
17655 link_all_deplibs=$link_all_deplibs_F77
17657 # Compile-time system search path for libraries
17658 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17660 # Run-time system search path for libraries
17661 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17663 # Fix the shell variable \$srcfile for the compiler.
17664 fix_srcfile_path="$fix_srcfile_path_F77"
17666 # Set to yes if exported symbols are required.
17667 always_export_symbols=$always_export_symbols_F77
17669 # The commands to list exported symbols.
17670 export_symbols_cmds=$lt_export_symbols_cmds_F77
17672 # The commands to extract the exported symbol list from a shared archive.
17673 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17675 # Symbols that should not be listed in the preloaded symbols.
17676 exclude_expsyms=$lt_exclude_expsyms_F77
17678 # Symbols that must always be exported.
17679 include_expsyms=$lt_include_expsyms_F77
17681 # ### END LIBTOOL TAG CONFIG: $tagname
17687 # If there is no Makefile yet, we rely on a make rule to execute
17688 # `config.status --recheck' to rerun these tests and create the
17689 # libtool script then.
17690 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17691 if test -f "$ltmain_in"; then
17692 test -f Makefile && make "$ltmain"
17698 ac_cpp='$CPP $CPPFLAGS'
17699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17711 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17714 # Source file extension for Java test sources.
17717 # Object file extension for compiled Java test sources.
17721 # Code to be used in simple compile tests
17722 lt_simple_compile_test_code="class foo {}\n"
17724 # Code to be used in simple link tests
17725 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17729 # If no C compiler was specified, use CC.
17732 # If no C compiler flags were specified, use CFLAGS.
17733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17735 # Allow CC to be a program name with arguments.
17739 # save warnings/boilerplate of simple test code
17740 ac_outfile=conftest.$ac_objext
17741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17743 _lt_compiler_boilerplate=`cat conftest.err`
17746 ac_outfile=conftest.$ac_objext
17747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17749 _lt_linker_boilerplate=`cat conftest.err`
17753 # Allow CC to be a program name with arguments.
17758 for cc_temp in $compiler""; do
17760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17769 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17770 archive_cmds_need_lc_GCJ=no
17772 old_archive_cmds_GCJ=$old_archive_cmds
17775 lt_prog_compiler_no_builtin_flag_GCJ=
17777 if test "$GCC" = yes; then
17778 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17781 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17782 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17783 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 lt_cv_prog_compiler_rtti_exceptions=no
17787 ac_outfile=conftest.$ac_objext
17788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17789 lt_compiler_flag="-fno-rtti -fno-exceptions"
17790 # Insert the option either (1) after the last *FLAGS variable, or
17791 # (2) before a word containing "conftest.", or (3) at the end.
17792 # Note that $ac_compile itself does not contain backslashes and begins
17793 # with a dollar sign (not a hyphen), so the echo should work correctly.
17794 # The option is referenced via a variable to avoid confusing sed.
17795 lt_compile=`echo "$ac_compile" | $SED \
17796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17798 -e 's:$: $lt_compiler_flag:'`
17799 (eval echo "\"\$as_me:17799: $lt_compile\"" >&5)
17800 (eval "$lt_compile" 2>conftest.err)
17802 cat conftest.err >&5
17803 echo "$as_me:17803: \$? = $ac_status" >&5
17804 if (exit $ac_status) && test -s "$ac_outfile"; then
17805 # The compiler can only warn and ignore the option if not recognized
17806 # So say no if there are warnings other than the usual output.
17807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17810 lt_cv_prog_compiler_rtti_exceptions=yes
17816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17817 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17819 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17820 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17827 lt_prog_compiler_wl_GCJ=
17828 lt_prog_compiler_pic_GCJ=
17829 lt_prog_compiler_static_GCJ=
17831 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17832 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17834 if test "$GCC" = yes; then
17835 lt_prog_compiler_wl_GCJ='-Wl,'
17836 lt_prog_compiler_static_GCJ='-static'
17840 # All AIX code is PIC.
17841 if test "$host_cpu" = ia64; then
17842 # AIX 5 now supports IA64 processor
17843 lt_prog_compiler_static_GCJ='-Bstatic'
17848 # FIXME: we need at least 68020 code to build shared libraries, but
17849 # adding the `-m68020' flag to GCC prevents building anything better,
17851 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17854 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17855 # PIC is the default for these OSes.
17858 mingw* | pw32* | os2*)
17859 # This hack is so that the source file can tell whether it is being
17860 # built for inclusion in a dll (and should export symbols for example).
17861 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17864 darwin* | rhapsody*)
17865 # PIC is the default on this platform
17866 # Common symbols not allowed in MH_DYLIB files
17867 lt_prog_compiler_pic_GCJ='-fno-common'
17871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17872 # Instead, we relocate shared libraries at runtime.
17876 # Just because we use GCC doesn't mean we suddenly get shared libraries
17877 # on systems that don't support them.
17878 lt_prog_compiler_can_build_shared_GCJ=no
17883 if test -d /usr/nec; then
17884 lt_prog_compiler_pic_GCJ=-Kconform_pic
17889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17890 # not for PA HP-UX.
17896 lt_prog_compiler_pic_GCJ='-fPIC'
17902 lt_prog_compiler_pic_GCJ='-fPIC'
17906 # PORTME Check for flag to pass linker flags through the system compiler.
17909 lt_prog_compiler_wl_GCJ='-Wl,'
17910 if test "$host_cpu" = ia64; then
17911 # AIX 5 now supports IA64 processor
17912 lt_prog_compiler_static_GCJ='-Bstatic'
17914 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17918 # PIC is the default on this platform
17919 # Common symbols not allowed in MH_DYLIB files
17920 case $cc_basename in
17922 lt_prog_compiler_pic_GCJ='-qnocommon'
17923 lt_prog_compiler_wl_GCJ='-Wl,'
17928 mingw* | pw32* | os2*)
17929 # This hack is so that the source file can tell whether it is being
17930 # built for inclusion in a dll (and should export symbols for example).
17931 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17934 hpux9* | hpux10* | hpux11*)
17935 lt_prog_compiler_wl_GCJ='-Wl,'
17936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17937 # not for PA HP-UX.
17943 lt_prog_compiler_pic_GCJ='+Z'
17946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17947 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17950 irix5* | irix6* | nonstopux*)
17951 lt_prog_compiler_wl_GCJ='-Wl,'
17952 # PIC (with -KPIC) is the default.
17953 lt_prog_compiler_static_GCJ='-non_shared'
17957 lt_prog_compiler_pic_GCJ='-KPIC'
17958 lt_prog_compiler_static_GCJ='-Bstatic'
17961 linux* | k*bsd*-gnu)
17962 case $cc_basename in
17964 lt_prog_compiler_wl_GCJ='-Wl,'
17965 lt_prog_compiler_pic_GCJ='-KPIC'
17966 lt_prog_compiler_static_GCJ='-static'
17968 pgcc* | pgf77* | pgf90* | pgf95*)
17969 # Portland Group compilers (*not* the Pentium gcc compiler,
17970 # which looks to be a dead project)
17971 lt_prog_compiler_wl_GCJ='-Wl,'
17972 lt_prog_compiler_pic_GCJ='-fpic'
17973 lt_prog_compiler_static_GCJ='-Bstatic'
17976 lt_prog_compiler_wl_GCJ='-Wl,'
17977 # All Alpha code is PIC.
17978 lt_prog_compiler_static_GCJ='-non_shared'
17983 osf3* | osf4* | osf5*)
17984 lt_prog_compiler_wl_GCJ='-Wl,'
17985 # All OSF/1 code is PIC.
17986 lt_prog_compiler_static_GCJ='-non_shared'
17990 lt_prog_compiler_pic_GCJ='-KPIC'
17991 lt_prog_compiler_static_GCJ='-Bstatic'
17992 case $cc_basename in
17993 f77* | f90* | f95*)
17994 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17996 lt_prog_compiler_wl_GCJ='-Wl,';;
18001 lt_prog_compiler_wl_GCJ='-Qoption ld '
18002 lt_prog_compiler_pic_GCJ='-PIC'
18003 lt_prog_compiler_static_GCJ='-Bstatic'
18006 sysv4 | sysv4.2uw2* | sysv4.3*)
18007 lt_prog_compiler_wl_GCJ='-Wl,'
18008 lt_prog_compiler_pic_GCJ='-KPIC'
18009 lt_prog_compiler_static_GCJ='-Bstatic'
18013 if test -d /usr/nec ;then
18014 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18015 lt_prog_compiler_static_GCJ='-Bstatic'
18019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18020 lt_prog_compiler_wl_GCJ='-Wl,'
18021 lt_prog_compiler_pic_GCJ='-KPIC'
18022 lt_prog_compiler_static_GCJ='-Bstatic'
18026 lt_prog_compiler_wl_GCJ='-Wl,'
18027 lt_prog_compiler_can_build_shared_GCJ=no
18031 lt_prog_compiler_pic_GCJ='-pic'
18032 lt_prog_compiler_static_GCJ='-Bstatic'
18036 lt_prog_compiler_can_build_shared_GCJ=no
18041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18042 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18045 # Check to make sure the PIC flag actually works.
18047 if test -n "$lt_prog_compiler_pic_GCJ"; then
18049 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18050 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18051 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 lt_prog_compiler_pic_works_GCJ=no
18055 ac_outfile=conftest.$ac_objext
18056 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18057 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18058 # Insert the option either (1) after the last *FLAGS variable, or
18059 # (2) before a word containing "conftest.", or (3) at the end.
18060 # Note that $ac_compile itself does not contain backslashes and begins
18061 # with a dollar sign (not a hyphen), so the echo should work correctly.
18062 # The option is referenced via a variable to avoid confusing sed.
18063 lt_compile=`echo "$ac_compile" | $SED \
18064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18066 -e 's:$: $lt_compiler_flag:'`
18067 (eval echo "\"\$as_me:18067: $lt_compile\"" >&5)
18068 (eval "$lt_compile" 2>conftest.err)
18070 cat conftest.err >&5
18071 echo "$as_me:18071: \$? = $ac_status" >&5
18072 if (exit $ac_status) && test -s "$ac_outfile"; then
18073 # The compiler can only warn and ignore the option if not recognized
18074 # So say no if there are warnings other than the usual output.
18075 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18078 lt_prog_compiler_pic_works_GCJ=yes
18084 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18085 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18087 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18088 case $lt_prog_compiler_pic_GCJ in
18090 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18093 lt_prog_compiler_pic_GCJ=
18094 lt_prog_compiler_can_build_shared_GCJ=no
18099 # For platforms which do not support PIC, -DPIC is meaningless:
18101 lt_prog_compiler_pic_GCJ=
18104 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18109 # Check to make sure the static flag actually works.
18111 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18112 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18113 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18114 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 lt_prog_compiler_static_works_GCJ=no
18118 save_LDFLAGS="$LDFLAGS"
18119 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18120 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18121 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18122 # The linker can only warn and ignore the option if not recognized
18123 # So say no if there are warnings
18124 if test -s conftest.err; then
18125 # Append any errors to the config.log.
18126 cat conftest.err 1>&5
18127 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18129 if diff conftest.exp conftest.er2 >/dev/null; then
18130 lt_prog_compiler_static_works_GCJ=yes
18133 lt_prog_compiler_static_works_GCJ=yes
18137 LDFLAGS="$save_LDFLAGS"
18140 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18141 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18143 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18146 lt_prog_compiler_static_GCJ=
18150 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18151 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18152 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 lt_cv_prog_compiler_c_o_GCJ=no
18156 $rm -r conftest 2>/dev/null
18160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18162 lt_compiler_flag="-o out/conftest2.$ac_objext"
18163 # Insert the option either (1) after the last *FLAGS variable, or
18164 # (2) before a word containing "conftest.", or (3) at the end.
18165 # Note that $ac_compile itself does not contain backslashes and begins
18166 # with a dollar sign (not a hyphen), so the echo should work correctly.
18167 lt_compile=`echo "$ac_compile" | $SED \
18168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18170 -e 's:$: $lt_compiler_flag:'`
18171 (eval echo "\"\$as_me:18171: $lt_compile\"" >&5)
18172 (eval "$lt_compile" 2>out/conftest.err)
18174 cat out/conftest.err >&5
18175 echo "$as_me:18175: \$? = $ac_status" >&5
18176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18178 # The compiler can only warn and ignore the option if not recognized
18179 # So say no if there are warnings
18180 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18183 lt_cv_prog_compiler_c_o_GCJ=yes
18188 # SGI C++ compiler will create directory out/ii_files/ for
18189 # template instantiation
18190 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18191 $rm out/* && rmdir out
18197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18198 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18201 hard_links="nottested"
18202 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18203 # do not overwrite the value of need_locks provided by the user
18204 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18205 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18210 ln conftest.a conftest.b 2>&5 || hard_links=no
18211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18212 { echo "$as_me:$LINENO: result: $hard_links" >&5
18213 echo "${ECHO_T}$hard_links" >&6; }
18214 if test "$hard_links" = no; then
18215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18216 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18223 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18224 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18227 allow_undefined_flag_GCJ=
18228 enable_shared_with_static_runtimes_GCJ=no
18230 archive_expsym_cmds_GCJ=
18231 old_archive_From_new_cmds_GCJ=
18232 old_archive_from_expsyms_cmds_GCJ=
18233 export_dynamic_flag_spec_GCJ=
18234 whole_archive_flag_spec_GCJ=
18235 thread_safe_flag_spec_GCJ=
18236 hardcode_libdir_flag_spec_GCJ=
18237 hardcode_libdir_flag_spec_ld_GCJ=
18238 hardcode_libdir_separator_GCJ=
18239 hardcode_direct_GCJ=no
18240 hardcode_minus_L_GCJ=no
18241 hardcode_shlibpath_var_GCJ=unsupported
18242 link_all_deplibs_GCJ=unknown
18243 hardcode_automatic_GCJ=no
18245 module_expsym_cmds_GCJ=
18246 always_export_symbols_GCJ=no
18247 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18248 # include_expsyms should be a list of space-separated symbols to be *always*
18249 # included in the symbol list
18250 include_expsyms_GCJ=
18251 # exclude_expsyms can be an extended regexp of symbols to exclude
18252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18254 # as well as any symbol that contains `d'.
18255 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18257 # platforms (ab)use it in PIC code, but their linkers get confused if
18258 # the symbol is explicitly referenced. Since portable code cannot
18259 # rely on this symbol name, it's probably fine to never include it in
18260 # preloaded symbol tables.
18261 extract_expsyms_cmds=
18262 # Just being paranoid about ensuring that cc_basename is set.
18263 for cc_temp in $compiler""; do
18265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18271 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18274 cygwin* | mingw* | pw32*)
18275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18276 # When not using gcc, we currently assume that we are using
18277 # Microsoft Visual C++.
18278 if test "$GCC" != yes; then
18283 # we just hope/assume this is gcc and not c89 (= MSVC++)
18292 if test "$with_gnu_ld" = yes; then
18293 # If archive_cmds runs LD, not CC, wlarc should be empty
18296 # Set some defaults for GNU ld with shared library support. These
18297 # are reset later if shared libraries are not supported. Putting them
18298 # here allows them to be overridden if necessary.
18299 runpath_var=LD_RUN_PATH
18300 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18301 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18302 # ancient GNU ld didn't support --whole-archive et. al.
18303 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18304 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18306 whole_archive_flag_spec_GCJ=
18308 supports_anon_versioning=no
18309 case `$LD -v 2>/dev/null` in
18310 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18311 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18312 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18313 *\ 2.11.*) ;; # other 2.11 versions
18314 *) supports_anon_versioning=yes ;;
18317 # See if GNU ld supports shared libraries.
18319 aix3* | aix4* | aix5*)
18320 # On AIX/PPC, the GNU linker is very broken
18321 if test "$host_cpu" != ia64; then
18325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18326 *** to be unable to reliably create shared libraries on AIX.
18327 *** Therefore, libtool is disabling shared libraries support. If you
18328 *** really care for shared libraries, you may want to modify your PATH
18329 *** so that a non-GNU linker is found, and then restart.
18336 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)'
18337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18338 hardcode_minus_L_GCJ=yes
18340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18341 # that the semantics of dynamic libraries on AmigaOS, at least up
18342 # to version 4, is to share data among multiple programs linked
18343 # with the same dynamic library. Since this doesn't match the
18344 # behavior of shared libraries on other platforms, we can't use
18350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18351 allow_undefined_flag_GCJ=unsupported
18352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18353 # support --undefined. This deserves some investigation. FIXME
18354 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18360 cygwin* | mingw* | pw32*)
18361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18362 # as there is no search path for DLLs.
18363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18364 allow_undefined_flag_GCJ=unsupported
18365 always_export_symbols_GCJ=no
18366 enable_shared_with_static_runtimes_GCJ=yes
18367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18371 # If the export-symbols file already is a .def file (1st line
18372 # is EXPORTS), use it as is; otherwise, prepend...
18373 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18374 cp $export_symbols $output_objdir/$soname.def;
18376 echo EXPORTS > $output_objdir/$soname.def;
18377 cat $export_symbols >> $output_objdir/$soname.def;
18379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18386 hardcode_direct_GCJ=no
18387 hardcode_shlibpath_var_GCJ=no
18388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18389 export_dynamic_flag_spec_GCJ='${wl}-E'
18390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18391 # Instead, shared libraries are loaded at an image base (0x10000000 by
18392 # default) and relocated if they conflict, which is a slow very memory
18393 # consuming and fragmenting process. To avoid this, we pick a random,
18394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18396 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'
18397 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'
18400 linux* | k*bsd*-gnu)
18401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18403 case $cc_basename,$host_cpu in
18404 pgcc*) # Portland Group C compiler
18405 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'
18406 tmp_addflag=' $pic_flag'
18408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18409 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'
18410 tmp_addflag=' $pic_flag -Mnomain' ;;
18411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18412 tmp_addflag=' -i_dynamic' ;;
18413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18414 tmp_addflag=' -i_dynamic -nofor_main' ;;
18415 ifc* | ifort*) # Intel Fortran compiler
18416 tmp_addflag=' -nofor_main' ;;
18418 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18420 if test $supports_anon_versioning = yes; then
18421 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18423 $echo "local: *; };" >> $output_objdir/$libname.ver~
18424 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18426 link_all_deplibs_GCJ=no
18432 netbsd* | netbsdelf*-gnu)
18433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18434 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18438 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18443 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18447 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18448 *** create shared libraries on Solaris systems. Therefore, libtool
18449 *** is disabling shared libraries support. We urge you to upgrade GNU
18450 *** binutils to release 2.9.1 or newer. Another option is to modify
18451 *** your PATH or compiler configuration so that the native linker is
18452 *** used, and then restart.
18455 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18456 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18457 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18464 case `$LD -v 2>&1` in
18465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18469 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18470 *** reliably create shared libraries on SCO systems. Therefore, libtool
18471 *** is disabling shared libraries support. We urge you to upgrade GNU
18472 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18473 *** your PATH or compiler configuration so that the native linker is
18474 *** used, and then restart.
18479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18480 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18491 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18493 hardcode_direct_GCJ=yes
18494 hardcode_shlibpath_var_GCJ=no
18498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18507 if test "$ld_shlibs_GCJ" = no; then
18509 hardcode_libdir_flag_spec_GCJ=
18510 export_dynamic_flag_spec_GCJ=
18511 whole_archive_flag_spec_GCJ=
18514 # PORTME fill in a description of your system's linker (not GNU ld)
18517 allow_undefined_flag_GCJ=unsupported
18518 always_export_symbols_GCJ=yes
18519 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'
18520 # Note: this linker hardcodes the directories in LIBPATH if there
18521 # are no directories specified by -L.
18522 hardcode_minus_L_GCJ=yes
18523 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18524 # Neither direct hardcoding nor static linking is supported with a
18526 hardcode_direct_GCJ=unsupported
18531 if test "$host_cpu" = ia64; then
18532 # On IA64, the linker does run time linking by default, so we don't
18533 # have to do anything special.
18534 aix_use_runtimelinking=no
18535 exp_sym_flag='-Bexport'
18538 # If we're using GNU nm, then we don't want the "-C" option.
18539 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18540 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18541 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'
18543 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'
18545 aix_use_runtimelinking=no
18547 # Test if we are trying to use run time linking or normal
18548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18549 # need to do runtime linking.
18550 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18551 for ld_flag in $LDFLAGS; do
18552 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18553 aix_use_runtimelinking=yes
18560 exp_sym_flag='-bexport'
18561 no_entry_flag='-bnoentry'
18564 # When large executables or shared objects are built, AIX ld can
18565 # have problems creating the table of contents. If linking a library
18566 # or program results in "error TOC overflow" add -mminimal-toc to
18567 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18568 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18570 archive_cmds_GCJ=''
18571 hardcode_direct_GCJ=yes
18572 hardcode_libdir_separator_GCJ=':'
18573 link_all_deplibs_GCJ=yes
18575 if test "$GCC" = yes; then
18576 case $host_os in aix4.[012]|aix4.[012].*)
18577 # We only want to do this on AIX 4.2 and lower, the check
18578 # below for broken collect2 doesn't work under 4.3+
18579 collect2name=`${CC} -print-prog-name=collect2`
18580 if test -f "$collect2name" && \
18581 strings "$collect2name" | grep resolve_lib_name >/dev/null
18583 # We have reworked collect2
18584 hardcode_direct_GCJ=yes
18586 # We have old collect2
18587 hardcode_direct_GCJ=unsupported
18588 # It fails to find uninstalled libraries when the uninstalled
18589 # path is not listed in the libpath. Setting hardcode_minus_L
18590 # to unsupported forces relinking
18591 hardcode_minus_L_GCJ=yes
18592 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18593 hardcode_libdir_separator_GCJ=
18597 shared_flag='-shared'
18598 if test "$aix_use_runtimelinking" = yes; then
18599 shared_flag="$shared_flag "'${wl}-G'
18603 if test "$host_cpu" = ia64; then
18604 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18605 # chokes on -Wl,-G. The following line is correct:
18608 if test "$aix_use_runtimelinking" = yes; then
18609 shared_flag='${wl}-G'
18611 shared_flag='${wl}-bM:SRE'
18616 # It seems that -bexpall does not export symbols beginning with
18617 # underscore (_), so it is better to generate a list of symbols to export.
18618 always_export_symbols_GCJ=yes
18619 if test "$aix_use_runtimelinking" = yes; then
18620 # Warning - without using the other runtime loading flags (-brtl),
18621 # -berok will link without error, but may produce a broken library.
18622 allow_undefined_flag_GCJ='-berok'
18623 # Determine the default libpath from the value encoded in an empty executable.
18624 cat >conftest.$ac_ext <<_ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18639 rm -f conftest.$ac_objext conftest$ac_exeext
18640 if { (ac_try="$ac_link"
18641 case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_link") 2>conftest.er1
18648 grep -v '^ *+' conftest.er1 >conftest.err
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } && {
18653 test -z "$ac_c_werror_flag" ||
18654 test ! -s conftest.err
18655 } && test -s conftest$ac_exeext &&
18656 $as_test_x conftest$ac_exeext; then
18658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18660 # Check for a 64-bit object if we didn't find anything.
18661 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18664 echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18671 conftest$ac_exeext conftest.$ac_ext
18672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18674 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18675 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"
18677 if test "$host_cpu" = ia64; then
18678 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18679 allow_undefined_flag_GCJ="-z nodefs"
18680 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"
18682 # Determine the default libpath from the value encoded in an empty executable.
18683 cat >conftest.$ac_ext <<_ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (ac_try="$ac_link"
18700 case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_link") 2>conftest.er1
18707 grep -v '^ *+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } && {
18712 test -z "$ac_c_werror_flag" ||
18713 test ! -s conftest.err
18714 } && test -s conftest$ac_exeext &&
18715 $as_test_x conftest$ac_exeext; then
18717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18719 # Check for a 64-bit object if we didn't find anything.
18720 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18730 conftest$ac_exeext conftest.$ac_ext
18731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18733 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18734 # Warning - without using the other run time loading flags,
18735 # -berok will link without error, but may produce a broken library.
18736 no_undefined_flag_GCJ=' ${wl}-bernotok'
18737 allow_undefined_flag_GCJ=' ${wl}-berok'
18738 # Exported symbols can be pulled into shared objects from archives
18739 whole_archive_flag_spec_GCJ='$convenience'
18740 archive_cmds_need_lc_GCJ=yes
18741 # This is similar to how AIX traditionally builds its shared libraries.
18742 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'
18748 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)'
18749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18750 hardcode_minus_L_GCJ=yes
18751 # see comment about different semantics on the GNU ld section
18756 export_dynamic_flag_spec_GCJ=-rdynamic
18759 cygwin* | mingw* | pw32*)
18760 # When not using gcc, we currently assume that we are using
18761 # Microsoft Visual C++.
18762 # hardcode_libdir_flag_spec is actually meaningless, as there is
18763 # no search path for DLLs.
18764 hardcode_libdir_flag_spec_GCJ=' '
18765 allow_undefined_flag_GCJ=unsupported
18766 # Tell ltmain to make .lib files, not .a files.
18768 # Tell ltmain to make .dll files, not .so files.
18770 # FIXME: Setting linknames here is a bad hack.
18771 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18772 # The linker will automatically build a .lib file if we build a DLL.
18773 old_archive_From_new_cmds_GCJ='true'
18774 # FIXME: Should let the user specify the lib program.
18775 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18776 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18777 enable_shared_with_static_runtimes_GCJ=yes
18780 darwin* | rhapsody*)
18782 rhapsody* | darwin1.[012])
18783 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18786 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18787 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18789 case ${MACOSX_DEPLOYMENT_TARGET} in
18791 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18794 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18800 archive_cmds_need_lc_GCJ=no
18801 hardcode_direct_GCJ=no
18802 hardcode_automatic_GCJ=yes
18803 hardcode_shlibpath_var_GCJ=unsupported
18804 whole_archive_flag_spec_GCJ=''
18805 link_all_deplibs_GCJ=yes
18806 if test "$GCC" = yes ; then
18807 output_verbose_link_cmd='echo'
18808 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18809 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18810 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18811 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}'
18812 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}'
18814 case $cc_basename in
18816 output_verbose_link_cmd='echo'
18817 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18818 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18820 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18821 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}'
18831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18833 hardcode_shlibpath_var_GCJ=no
18840 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18841 # support. Future versions do this automatically, but an explicit c++rt0.o
18842 # does not break anything, and helps significantly (at the cost of a little
18845 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18847 hardcode_direct_GCJ=yes
18848 hardcode_shlibpath_var_GCJ=no
18851 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18853 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18854 hardcode_direct_GCJ=yes
18855 hardcode_minus_L_GCJ=yes
18856 hardcode_shlibpath_var_GCJ=no
18859 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18860 freebsd* | dragonfly*)
18861 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18862 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18863 hardcode_direct_GCJ=yes
18864 hardcode_shlibpath_var_GCJ=no
18868 if test "$GCC" = yes; then
18869 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'
18871 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'
18873 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18874 hardcode_libdir_separator_GCJ=:
18875 hardcode_direct_GCJ=yes
18877 # hardcode_minus_L: Not really in the search PATH,
18878 # but as the default location of the library.
18879 hardcode_minus_L_GCJ=yes
18880 export_dynamic_flag_spec_GCJ='${wl}-E'
18884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18885 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18887 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18889 if test "$with_gnu_ld" = no; then
18890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18891 hardcode_libdir_separator_GCJ=:
18893 hardcode_direct_GCJ=yes
18894 export_dynamic_flag_spec_GCJ='${wl}-E'
18896 # hardcode_minus_L: Not really in the search PATH,
18897 # but as the default location of the library.
18898 hardcode_minus_L_GCJ=yes
18903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18906 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18909 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18912 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18918 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18921 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18924 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18928 if test "$with_gnu_ld" = no; then
18929 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18930 hardcode_libdir_separator_GCJ=:
18934 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18935 hardcode_direct_GCJ=no
18936 hardcode_shlibpath_var_GCJ=no
18939 hardcode_direct_GCJ=yes
18940 export_dynamic_flag_spec_GCJ='${wl}-E'
18942 # hardcode_minus_L: Not really in the search PATH,
18943 # but as the default location of the library.
18944 hardcode_minus_L_GCJ=yes
18950 irix5* | irix6* | nonstopux*)
18951 if test "$GCC" = yes; then
18952 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'
18954 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'
18955 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18958 hardcode_libdir_separator_GCJ=:
18959 link_all_deplibs_GCJ=yes
18962 netbsd* | netbsdelf*-gnu)
18963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18966 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18968 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18969 hardcode_direct_GCJ=yes
18970 hardcode_shlibpath_var_GCJ=no
18974 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18975 hardcode_direct_GCJ=yes
18976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18977 hardcode_libdir_separator_GCJ=:
18978 hardcode_shlibpath_var_GCJ=no
18982 hardcode_direct_GCJ=yes
18983 hardcode_shlibpath_var_GCJ=no
18984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18985 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18986 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18988 export_dynamic_flag_spec_GCJ='${wl}-E'
18991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18992 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18993 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18996 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19005 hardcode_minus_L_GCJ=yes
19006 allow_undefined_flag_GCJ=unsupported
19007 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'
19008 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19012 if test "$GCC" = yes; then
19013 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19014 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'
19016 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19017 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'
19019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19020 hardcode_libdir_separator_GCJ=:
19023 osf4* | osf5*) # as osf3* with the addition of -msym flag
19024 if test "$GCC" = yes; then
19025 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19026 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'
19027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19029 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19030 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'
19031 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~
19032 $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'
19034 # Both c and cxx compiler support -rpath directly
19035 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19037 hardcode_libdir_separator_GCJ=:
19041 no_undefined_flag_GCJ=' -z text'
19042 if test "$GCC" = yes; then
19044 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19045 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19046 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19049 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19050 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19051 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19053 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19054 hardcode_shlibpath_var_GCJ=no
19056 solaris2.[0-5] | solaris2.[0-5].*) ;;
19058 # The compiler driver will combine linker options so we
19059 # cannot just pass the convience library names through
19060 # without $wl, iff we do not link with $LD.
19061 # Luckily, gcc supports the same syntax we need for Sun Studio.
19062 # Supported since Solaris 2.6 (maybe 2.5.1?)
19065 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19067 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19070 link_all_deplibs_GCJ=yes
19074 if test "x$host_vendor" = xsequent; then
19075 # Use $CC to link under sequent, because it throws in some extra .o
19076 # files that make .init and .fini sections work.
19077 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19079 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19081 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19082 hardcode_direct_GCJ=yes
19083 hardcode_minus_L_GCJ=yes
19084 hardcode_shlibpath_var_GCJ=no
19088 case $host_vendor in
19090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19091 hardcode_direct_GCJ=yes # is this really true???
19094 ## LD is ld it makes a PLAMLIB
19095 ## CC just makes a GrossModule.
19096 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19097 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19098 hardcode_direct_GCJ=no
19101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19102 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19105 runpath_var='LD_RUN_PATH'
19106 hardcode_shlibpath_var_GCJ=no
19110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19111 hardcode_shlibpath_var_GCJ=no
19112 export_dynamic_flag_spec_GCJ='-Bexport'
19116 if test -d /usr/nec; then
19117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19118 hardcode_shlibpath_var_GCJ=no
19119 runpath_var=LD_RUN_PATH
19120 hardcode_runpath_var=yes
19125 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19126 no_undefined_flag_GCJ='${wl}-z,text'
19127 archive_cmds_need_lc_GCJ=no
19128 hardcode_shlibpath_var_GCJ=no
19129 runpath_var='LD_RUN_PATH'
19131 if test "$GCC" = yes; then
19132 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19133 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19135 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19136 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19140 sysv5* | sco3.2v5* | sco5v6*)
19141 # Note: We can NOT use -z defs as we might desire, because we do not
19142 # link with -lc, and that would cause any symbols used from libc to
19143 # always be unresolved, which means just about no library would
19144 # ever link correctly. If we're not using GNU ld we use -z text
19145 # though, which does catch some bad symbols but isn't as heavy-handed
19147 no_undefined_flag_GCJ='${wl}-z,text'
19148 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19149 archive_cmds_need_lc_GCJ=no
19150 hardcode_shlibpath_var_GCJ=no
19151 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19152 hardcode_libdir_separator_GCJ=':'
19153 link_all_deplibs_GCJ=yes
19154 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19155 runpath_var='LD_RUN_PATH'
19157 if test "$GCC" = yes; then
19158 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19159 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19161 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19162 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19167 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19168 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19169 hardcode_shlibpath_var_GCJ=no
19178 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19179 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19180 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19183 # Do we need to explicitly link libc?
19185 case "x$archive_cmds_need_lc_GCJ" in
19187 # Assume -lc should be added
19188 archive_cmds_need_lc_GCJ=yes
19190 if test "$enable_shared" = yes && test "$GCC" = yes; then
19191 case $archive_cmds_GCJ in
19193 # FIXME: we may have to deal with multi-command sequences.
19196 # Test whether the compiler implicitly links with -lc since on some
19197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19198 # to ld, don't add -lc before -lgcc.
19199 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19200 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19205 (eval $ac_compile) 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } 2>conftest.err; then
19211 libobjs=conftest.$ac_objext
19213 wl=$lt_prog_compiler_wl_GCJ
19214 pic_flag=$lt_prog_compiler_pic_GCJ
19220 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19221 allow_undefined_flag_GCJ=
19222 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19223 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }
19228 archive_cmds_need_lc_GCJ=no
19230 archive_cmds_need_lc_GCJ=yes
19232 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19234 cat conftest.err 1>&5
19237 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19238 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19245 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19246 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19247 library_names_spec=
19248 libname_spec='lib$name'
19252 postuninstall_cmds=
19256 shlibpath_overrides_runpath=unknown
19258 dynamic_linker="$host_os ld.so"
19259 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19260 if test "$GCC" = yes; then
19261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19262 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19263 # if the path contains ";" then we assume it to be the separator
19264 # otherwise default to the standard path separator (i.e. ":") - it is
19265 # assumed that no part of a normal pathname contains ";" but that should
19266 # okay in the real world where ";" in dirpaths is itself problematic.
19267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19274 need_lib_prefix=unknown
19275 hardcode_into_libs=no
19277 # when you set need_version to no, make sure it does not cause -set_version
19278 # flags to be left without arguments
19279 need_version=unknown
19284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19285 shlibpath_var=LIBPATH
19287 # AIX 3 has no versioning support, so we append a major version to the name.
19288 soname_spec='${libname}${release}${shared_ext}$major'
19295 hardcode_into_libs=yes
19296 if test "$host_cpu" = ia64; then
19297 # AIX 5 supports IA64
19298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19299 shlibpath_var=LD_LIBRARY_PATH
19301 # With GCC up to 2.95.x, collect2 would create an import file
19302 # for dependence libraries. The import file would start with
19303 # the line `#! .'. This would cause the generated library to
19304 # depend on `.', always an invalid library. This was fixed in
19305 # development snapshots of GCC prior to 3.0.
19307 aix4 | aix4.[01] | aix4.[01].*)
19308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19310 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19313 can_build_shared=no
19317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19318 # soname into executable. Probably we can add versioning support to
19319 # collect2, so additional links can be useful in future.
19320 if test "$aix_use_runtimelinking" = yes; then
19321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19322 # instead of lib<name>.a to let people know that these are not
19323 # typical AIX shared libraries.
19324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19326 # We preserve .a as extension for shared libraries through AIX4.2
19327 # and later when we are not doing run time linking.
19328 library_names_spec='${libname}${release}.a $libname.a'
19329 soname_spec='${libname}${release}${shared_ext}$major'
19331 shlibpath_var=LIBPATH
19336 library_names_spec='$libname.ixlibrary $libname.a'
19337 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19338 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'
19342 library_names_spec='${libname}${shared_ext}'
19343 dynamic_linker="$host_os ld.so"
19344 shlibpath_var=LIBRARY_PATH
19350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19351 soname_spec='${libname}${release}${shared_ext}$major'
19352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19353 shlibpath_var=LD_LIBRARY_PATH
19354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19356 # the default ld.so.conf also contains /usr/contrib/lib and
19357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19358 # libtool to hard-code these into programs
19361 cygwin* | mingw* | pw32*)
19362 version_type=windows
19367 case $GCC,$host_os in
19368 yes,cygwin* | yes,mingw* | yes,pw32*)
19369 library_names_spec='$libname.dll.a'
19370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19371 postinstall_cmds='base_file=`basename \${file}`~
19372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19373 dldir=$destdir/`dirname \$dlpath`~
19374 test -d \$dldir || mkdir -p \$dldir~
19375 $install_prog $dir/$dlname \$dldir/$dlname~
19376 chmod a+x \$dldir/$dlname'
19377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19378 dlpath=$dir/\$dldll~
19380 shlibpath_overrides_runpath=yes
19384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19386 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19389 # MinGW DLLs use traditional 'lib' prefix
19390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19392 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19393 # It is most probably a Windows format PATH printed by
19394 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19395 # path with ; separators, and with drive letters. We can handle the
19396 # drive letters (cygwin fileutils understands them), so leave them,
19397 # especially as we might pass files found there to a mingw objdump,
19398 # which wouldn't understand a cygwinified path. Ahh.
19399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19405 # pw32 DLLs use 'pw' prefix rather than 'lib'
19406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19415 dynamic_linker='Win32 ld.exe'
19416 # FIXME: first we should search . and the directory the executable is in
19420 darwin* | rhapsody*)
19421 dynamic_linker="$host_os dyld"
19422 version_type=darwin
19425 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19426 soname_spec='${libname}${release}${major}$shared_ext'
19427 shlibpath_overrides_runpath=yes
19428 shlibpath_var=DYLD_LIBRARY_PATH
19429 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19430 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19431 if test "$GCC" = yes; then
19432 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19434 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19444 soname_spec='${libname}${release}${shared_ext}$major'
19445 shlibpath_var=LD_LIBRARY_PATH
19452 freebsd* | dragonfly*)
19453 # DragonFly does not have aout. When/if they implement a new
19454 # versioning mechanism, adjust this.
19455 if test -x /usr/bin/objformat; then
19456 objformat=`/usr/bin/objformat`
19459 freebsd[123]*) objformat=aout ;;
19460 *) objformat=elf ;;
19463 version_type=freebsd-$objformat
19464 case $version_type in
19466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19475 shlibpath_var=LD_LIBRARY_PATH
19478 shlibpath_overrides_runpath=yes
19480 freebsd3.[01]* | freebsdelf3.[01]*)
19481 shlibpath_overrides_runpath=yes
19482 hardcode_into_libs=yes
19484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19486 shlibpath_overrides_runpath=no
19487 hardcode_into_libs=yes
19489 freebsd*) # from 4.6 on
19490 shlibpath_overrides_runpath=yes
19491 hardcode_into_libs=yes
19500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19501 soname_spec='${libname}${release}${shared_ext}$major'
19502 shlibpath_var=LD_LIBRARY_PATH
19503 hardcode_into_libs=yes
19506 hpux9* | hpux10* | hpux11*)
19507 # Give a soname corresponding to the major version so that dld.sl refuses to
19508 # link against other versions.
19515 hardcode_into_libs=yes
19516 dynamic_linker="$host_os dld.so"
19517 shlibpath_var=LD_LIBRARY_PATH
19518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19520 soname_spec='${libname}${release}${shared_ext}$major'
19521 if test "X$HPUX_IA64_MODE" = X32; then
19522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19530 hardcode_into_libs=yes
19531 dynamic_linker="$host_os dld.sl"
19532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19535 soname_spec='${libname}${release}${shared_ext}$major'
19536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19541 dynamic_linker="$host_os dld.sl"
19542 shlibpath_var=SHLIB_PATH
19543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 soname_spec='${libname}${release}${shared_ext}$major'
19548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19549 postinstall_cmds='chmod 555 $lib'
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19557 soname_spec='${libname}${release}${shared_ext}$major'
19558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19559 shlibpath_var=LD_LIBRARY_PATH
19560 shlibpath_overrides_runpath=no
19561 hardcode_into_libs=yes
19564 irix5* | irix6* | nonstopux*)
19566 nonstopux*) version_type=nonstopux ;;
19568 if test "$lt_cv_prog_gnu_ld" = yes; then
19576 soname_spec='${libname}${release}${shared_ext}$major'
19577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19579 irix5* | nonstopux*)
19580 libsuff= shlibsuff=
19583 case $LD in # libtool.m4 will add one of these switches to LD
19584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19585 libsuff= shlibsuff= libmagic=32-bit;;
19586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19587 libsuff=32 shlibsuff=N32 libmagic=N32;;
19588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19590 *) libsuff= shlibsuff= libmagic=never-match;;
19594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19595 shlibpath_overrides_runpath=no
19596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19598 hardcode_into_libs=yes
19601 # No shared lib support for Linux oldld, aout, or coff.
19602 linux*oldld* | linux*aout* | linux*coff*)
19606 # This must be Linux ELF.
19607 linux* | k*bsd*-gnu)
19611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19612 soname_spec='${libname}${release}${shared_ext}$major'
19613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19614 shlibpath_var=LD_LIBRARY_PATH
19615 shlibpath_overrides_runpath=no
19616 # This implies no fast_install, which is unacceptable.
19617 # Some rework will be needed to allow for fast_install
19618 # before this can be enabled.
19619 hardcode_into_libs=yes
19621 # Append ld.so.conf contents to the search path
19622 if test -f /etc/ld.so.conf; then
19623 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19627 # We used to test for /lib/ld.so.1 and disable shared libraries on
19628 # powerpc, because MkLinux only supported shared libraries with the
19629 # GNU dynamic linker. Since this was broken with cross compilers,
19630 # most powerpc-linux boxes support dynamic linking these days and
19631 # people can always --disable-shared, the test was removed, and we
19632 # assume the GNU/Linux dynamic linker is in use.
19633 dynamic_linker='GNU/Linux ld.so'
19640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19641 soname_spec='${libname}${release}${shared_ext}$major'
19642 shlibpath_var=LD_LIBRARY_PATH
19643 shlibpath_overrides_runpath=no
19644 hardcode_into_libs=yes
19645 dynamic_linker='NetBSD ld.elf_so'
19652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19655 dynamic_linker='NetBSD (a.out) ld.so'
19657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19658 soname_spec='${libname}${release}${shared_ext}$major'
19659 dynamic_linker='NetBSD ld.elf_so'
19661 shlibpath_var=LD_LIBRARY_PATH
19662 shlibpath_overrides_runpath=yes
19663 hardcode_into_libs=yes
19668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19669 shlibpath_var=LD_LIBRARY_PATH
19670 shlibpath_overrides_runpath=yes
19677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19678 soname_spec='${libname}${release}${shared_ext}$major'
19679 shlibpath_var=LD_LIBRARY_PATH
19680 shlibpath_overrides_runpath=yes
19685 sys_lib_dlsearch_path_spec="/usr/lib"
19687 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19689 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19690 *) need_version=no ;;
19692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19694 shlibpath_var=LD_LIBRARY_PATH
19695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19697 openbsd2.[89] | openbsd2.[89].*)
19698 shlibpath_overrides_runpath=no
19701 shlibpath_overrides_runpath=yes
19705 shlibpath_overrides_runpath=yes
19710 libname_spec='$name'
19713 library_names_spec='$libname${shared_ext} $libname.a'
19714 dynamic_linker='OS/2 ld.exe'
19715 shlibpath_var=LIBPATH
19718 osf3* | osf4* | osf5*)
19722 soname_spec='${libname}${release}${shared_ext}$major'
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724 shlibpath_var=LD_LIBRARY_PATH
19725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734 soname_spec='${libname}${release}${shared_ext}$major'
19735 shlibpath_var=LD_LIBRARY_PATH
19736 shlibpath_overrides_runpath=yes
19737 hardcode_into_libs=yes
19738 # ldd complains unless libraries are executable
19739 postinstall_cmds='chmod +x $lib'
19744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19745 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19746 shlibpath_var=LD_LIBRARY_PATH
19747 shlibpath_overrides_runpath=yes
19748 if test "$with_gnu_ld" = yes; then
19756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19757 soname_spec='${libname}${release}${shared_ext}$major'
19758 shlibpath_var=LD_LIBRARY_PATH
19759 case $host_vendor in
19761 shlibpath_overrides_runpath=no
19763 export_dynamic_flag_spec='${wl}-Blargedynsym'
19764 runpath_var=LD_RUN_PATH
19772 shlibpath_overrides_runpath=no
19773 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19779 if test -d /usr/nec ;then
19781 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19782 soname_spec='$libname${shared_ext}.$major'
19783 shlibpath_var=LD_LIBRARY_PATH
19787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19788 version_type=freebsd-elf
19791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19792 soname_spec='${libname}${release}${shared_ext}$major'
19793 shlibpath_var=LD_LIBRARY_PATH
19794 hardcode_into_libs=yes
19795 if test "$with_gnu_ld" = yes; then
19796 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19797 shlibpath_overrides_runpath=no
19799 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19800 shlibpath_overrides_runpath=yes
19803 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19807 sys_lib_dlsearch_path_spec='/usr/lib'
19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813 soname_spec='${libname}${release}${shared_ext}$major'
19814 shlibpath_var=LD_LIBRARY_PATH
19821 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19822 echo "${ECHO_T}$dynamic_linker" >&6; }
19823 test "$dynamic_linker" = no && can_build_shared=no
19825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19826 if test "$GCC" = yes; then
19827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19830 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19832 hardcode_action_GCJ=
19833 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19834 test -n "$runpath_var_GCJ" || \
19835 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19837 # We can hardcode non-existant directories.
19838 if test "$hardcode_direct_GCJ" != no &&
19839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19840 # have to relink, otherwise we might link with an installed library
19841 # when we should be linking with a yet-to-be-installed one
19842 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19843 test "$hardcode_minus_L_GCJ" != no; then
19844 # Linking always hardcodes the temporary library directory.
19845 hardcode_action_GCJ=relink
19847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19848 hardcode_action_GCJ=immediate
19851 # We cannot hardcode anything, or else we can only hardcode existing
19853 hardcode_action_GCJ=unsupported
19855 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19856 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19858 if test "$hardcode_action_GCJ" = relink; then
19859 # Fast installation is not supported
19860 enable_fast_install=no
19861 elif test "$shlibpath_overrides_runpath" = yes ||
19862 test "$enable_shared" = no; then
19863 # Fast installation is not necessary
19864 enable_fast_install=needless
19868 # The else clause should only fire when bootstrapping the
19869 # libtool distribution, otherwise you forgot to ship ltmain.sh
19870 # with your package, and you will get complaints that there are
19871 # no rules to generate ltmain.sh.
19872 if test -f "$ltmain"; then
19873 # See if we are running on zsh, and set the options which allow our commands through
19874 # without removal of \ escapes.
19875 if test -n "${ZSH_VERSION+set}" ; then
19876 setopt NO_GLOB_SUBST
19878 # Now quote all the things that may contain metacharacters while being
19879 # careful not to overquote the AC_SUBSTed values. We take copies of the
19880 # variables and quote the copies for generation of the libtool script.
19881 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19883 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19884 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19885 deplibs_check_method reload_flag reload_cmds need_locks \
19886 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19887 lt_cv_sys_global_symbol_to_c_name_address \
19888 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19889 old_postinstall_cmds old_postuninstall_cmds \
19893 lt_prog_compiler_wl_GCJ \
19894 lt_prog_compiler_pic_GCJ \
19895 lt_prog_compiler_static_GCJ \
19896 lt_prog_compiler_no_builtin_flag_GCJ \
19897 export_dynamic_flag_spec_GCJ \
19898 thread_safe_flag_spec_GCJ \
19899 whole_archive_flag_spec_GCJ \
19900 enable_shared_with_static_runtimes_GCJ \
19901 old_archive_cmds_GCJ \
19902 old_archive_from_new_cmds_GCJ \
19903 predep_objects_GCJ \
19904 postdep_objects_GCJ \
19907 compiler_lib_search_path_GCJ \
19909 archive_expsym_cmds_GCJ \
19910 postinstall_cmds_GCJ \
19911 postuninstall_cmds_GCJ \
19912 old_archive_from_expsyms_cmds_GCJ \
19913 allow_undefined_flag_GCJ \
19914 no_undefined_flag_GCJ \
19915 export_symbols_cmds_GCJ \
19916 hardcode_libdir_flag_spec_GCJ \
19917 hardcode_libdir_flag_spec_ld_GCJ \
19918 hardcode_libdir_separator_GCJ \
19919 hardcode_automatic_GCJ \
19921 module_expsym_cmds_GCJ \
19922 lt_cv_prog_compiler_c_o_GCJ \
19923 exclude_expsyms_GCJ \
19924 include_expsyms_GCJ; do
19927 old_archive_cmds_GCJ | \
19928 old_archive_from_new_cmds_GCJ | \
19929 archive_cmds_GCJ | \
19930 archive_expsym_cmds_GCJ | \
19931 module_cmds_GCJ | \
19932 module_expsym_cmds_GCJ | \
19933 old_archive_from_expsyms_cmds_GCJ | \
19934 export_symbols_cmds_GCJ | \
19935 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19936 postinstall_cmds | postuninstall_cmds | \
19937 old_postinstall_cmds | old_postuninstall_cmds | \
19938 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19939 # Double-quote double-evaled strings.
19940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19943 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19949 *'\$0 --fallback-echo"')
19950 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19956 cat <<__EOF__ >> "$cfgfile"
19957 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19961 # Shell to use when invoking shell scripts.
19964 # Whether or not to build shared libraries.
19965 build_libtool_libs=$enable_shared
19967 # Whether or not to build static libraries.
19968 build_old_libs=$enable_static
19970 # Whether or not to add -lc for building shared libraries.
19971 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19973 # Whether or not to disallow shared libs when runtime libs are static
19974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19976 # Whether or not to optimize for fast installation.
19977 fast_install=$enable_fast_install
19980 host_alias=$host_alias
19984 # The build system.
19985 build_alias=$build_alias
19989 # An echo program that does not interpret backslashes.
19994 AR_FLAGS=$lt_AR_FLAGS
19999 # LTCC compiler flags.
20000 LTCFLAGS=$lt_LTCFLAGS
20002 # A language-specific compiler.
20003 CC=$lt_compiler_GCJ
20005 # Is the compiler the GNU C compiler?
20011 # The linker used to build libraries.
20014 # Whether we need hard or soft links.
20017 # A BSD-compatible nm program.
20020 # A symbol stripping program
20023 # Used to examine libraries when file_magic_cmd begins "file"
20024 MAGIC_CMD=$MAGIC_CMD
20026 # Used on cygwin: DLL creation program.
20029 # Used on cygwin: object dumper.
20032 # Used on cygwin: assembler.
20035 # The name of the directory that contains temporary libtool files.
20038 # How to create reloadable object files.
20039 reload_flag=$lt_reload_flag
20040 reload_cmds=$lt_reload_cmds
20042 # How to pass a linker flag through the compiler.
20043 wl=$lt_lt_prog_compiler_wl_GCJ
20045 # Object file suffix (normally "o").
20046 objext="$ac_objext"
20048 # Old archive suffix (normally "a").
20051 # Shared library suffix (normally ".so").
20052 shrext_cmds='$shrext_cmds'
20054 # Executable file suffix (normally "").
20057 # Additional compiler flags for building library objects.
20058 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20061 # What is the maximum length of a command?
20062 max_cmd_len=$lt_cv_sys_max_cmd_len
20064 # Does compiler simultaneously support -c and -o options?
20065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20067 # Must we lock files when doing compilation?
20068 need_locks=$lt_need_locks
20070 # Do we need the lib prefix for modules?
20071 need_lib_prefix=$need_lib_prefix
20073 # Do we need a version for libraries?
20074 need_version=$need_version
20076 # Whether dlopen is supported.
20077 dlopen_support=$enable_dlopen
20079 # Whether dlopen of programs is supported.
20080 dlopen_self=$enable_dlopen_self
20082 # Whether dlopen of statically linked programs is supported.
20083 dlopen_self_static=$enable_dlopen_self_static
20085 # Compiler flag to prevent dynamic linking.
20086 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20088 # Compiler flag to turn off builtin functions.
20089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20091 # Compiler flag to allow reflexive dlopens.
20092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20094 # Compiler flag to generate shared objects directly from archives.
20095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20097 # Compiler flag to generate thread-safe objects.
20098 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20100 # Library versioning type.
20101 version_type=$version_type
20103 # Format of library name prefix.
20104 libname_spec=$lt_libname_spec
20106 # List of archive names. First name is the real one, the rest are links.
20107 # The last name is the one that the linker finds with -lNAME.
20108 library_names_spec=$lt_library_names_spec
20110 # The coded name of the library, if different from the real name.
20111 soname_spec=$lt_soname_spec
20113 # Commands used to build and install an old-style archive.
20115 old_archive_cmds=$lt_old_archive_cmds_GCJ
20116 old_postinstall_cmds=$lt_old_postinstall_cmds
20117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20119 # Create an old-style archive from a shared archive.
20120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20122 # Create a temporary old-style archive to link instead of a shared archive.
20123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20125 # Commands used to build and install a shared archive.
20126 archive_cmds=$lt_archive_cmds_GCJ
20127 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20128 postinstall_cmds=$lt_postinstall_cmds
20129 postuninstall_cmds=$lt_postuninstall_cmds
20131 # Commands used to build a loadable module (assumed same as above if empty)
20132 module_cmds=$lt_module_cmds_GCJ
20133 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20135 # Commands to strip libraries.
20136 old_striplib=$lt_old_striplib
20137 striplib=$lt_striplib
20139 # Dependencies to place before the objects being linked to create a
20141 predep_objects=$lt_predep_objects_GCJ
20143 # Dependencies to place after the objects being linked to create a
20145 postdep_objects=$lt_postdep_objects_GCJ
20147 # Dependencies to place before the objects being linked to create a
20149 predeps=$lt_predeps_GCJ
20151 # Dependencies to place after the objects being linked to create a
20153 postdeps=$lt_postdeps_GCJ
20155 # The library search path used internally by the compiler when linking
20156 # a shared library.
20157 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20159 # Method to check whether dependent libraries are shared objects.
20160 deplibs_check_method=$lt_deplibs_check_method
20162 # Command to use when deplibs_check_method == file_magic.
20163 file_magic_cmd=$lt_file_magic_cmd
20165 # Flag that allows shared libraries with undefined symbols to be built.
20166 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20168 # Flag that forces no undefined symbols.
20169 no_undefined_flag=$lt_no_undefined_flag_GCJ
20171 # Commands used to finish a libtool library installation in a directory.
20172 finish_cmds=$lt_finish_cmds
20174 # Same as above, but a single script fragment to be evaled but not shown.
20175 finish_eval=$lt_finish_eval
20177 # Take the output of nm and produce a listing of raw symbols and C names.
20178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20180 # Transform the output of nm in a proper C declaration
20181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20183 # Transform the output of nm in a C name address pair
20184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20186 # This is the shared library runtime path variable.
20187 runpath_var=$runpath_var
20189 # This is the shared library path variable.
20190 shlibpath_var=$shlibpath_var
20192 # Is shlibpath searched before the hard-coded library search path?
20193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20195 # How to hardcode a shared library path into an executable.
20196 hardcode_action=$hardcode_action_GCJ
20198 # Whether we should hardcode library paths into libraries.
20199 hardcode_into_libs=$hardcode_into_libs
20201 # Flag to hardcode \$libdir into a binary during linking.
20202 # This must work even if \$libdir does not exist.
20203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20205 # If ld is used when linking, flag to hardcode \$libdir into
20206 # a binary during linking. This must work even if \$libdir does
20208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20210 # Whether we need a single -rpath flag with a separated argument.
20211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20214 # resulting binary.
20215 hardcode_direct=$hardcode_direct_GCJ
20217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20218 # resulting binary.
20219 hardcode_minus_L=$hardcode_minus_L_GCJ
20221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20222 # the resulting binary.
20223 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20225 # Set to yes if building a shared library automatically hardcodes DIR into the library
20226 # and all subsequent libraries and executables linked against it.
20227 hardcode_automatic=$hardcode_automatic_GCJ
20229 # Variables whose values should be saved in libtool wrapper scripts and
20230 # restored at relink time.
20231 variables_saved_for_relink="$variables_saved_for_relink"
20233 # Whether libtool must link a program against all its dependency libraries.
20234 link_all_deplibs=$link_all_deplibs_GCJ
20236 # Compile-time system search path for libraries
20237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20239 # Run-time system search path for libraries
20240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20242 # Fix the shell variable \$srcfile for the compiler.
20243 fix_srcfile_path="$fix_srcfile_path_GCJ"
20245 # Set to yes if exported symbols are required.
20246 always_export_symbols=$always_export_symbols_GCJ
20248 # The commands to list exported symbols.
20249 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20251 # The commands to extract the exported symbol list from a shared archive.
20252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20254 # Symbols that should not be listed in the preloaded symbols.
20255 exclude_expsyms=$lt_exclude_expsyms_GCJ
20257 # Symbols that must always be exported.
20258 include_expsyms=$lt_include_expsyms_GCJ
20260 # ### END LIBTOOL TAG CONFIG: $tagname
20266 # If there is no Makefile yet, we rely on a make rule to execute
20267 # `config.status --recheck' to rerun these tests and create the
20268 # libtool script then.
20269 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20270 if test -f "$ltmain_in"; then
20271 test -f Makefile && make "$ltmain"
20277 ac_cpp='$CPP $CPPFLAGS'
20278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20292 # Source file extension for RC test sources.
20295 # Object file extension for compiled RC test sources.
20299 # Code to be used in simple compile tests
20300 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20302 # Code to be used in simple link tests
20303 lt_simple_link_test_code="$lt_simple_compile_test_code"
20305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20307 # If no C compiler was specified, use CC.
20310 # If no C compiler flags were specified, use CFLAGS.
20311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20313 # Allow CC to be a program name with arguments.
20317 # save warnings/boilerplate of simple test code
20318 ac_outfile=conftest.$ac_objext
20319 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20320 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20321 _lt_compiler_boilerplate=`cat conftest.err`
20324 ac_outfile=conftest.$ac_objext
20325 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20326 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20327 _lt_linker_boilerplate=`cat conftest.err`
20331 # Allow CC to be a program name with arguments.
20336 for cc_temp in $compiler""; do
20338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20344 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20346 lt_cv_prog_compiler_c_o_RC=yes
20348 # The else clause should only fire when bootstrapping the
20349 # libtool distribution, otherwise you forgot to ship ltmain.sh
20350 # with your package, and you will get complaints that there are
20351 # no rules to generate ltmain.sh.
20352 if test -f "$ltmain"; then
20353 # See if we are running on zsh, and set the options which allow our commands through
20354 # without removal of \ escapes.
20355 if test -n "${ZSH_VERSION+set}" ; then
20356 setopt NO_GLOB_SUBST
20358 # Now quote all the things that may contain metacharacters while being
20359 # careful not to overquote the AC_SUBSTed values. We take copies of the
20360 # variables and quote the copies for generation of the libtool script.
20361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20365 deplibs_check_method reload_flag reload_cmds need_locks \
20366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20367 lt_cv_sys_global_symbol_to_c_name_address \
20368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20369 old_postinstall_cmds old_postuninstall_cmds \
20373 lt_prog_compiler_wl_RC \
20374 lt_prog_compiler_pic_RC \
20375 lt_prog_compiler_static_RC \
20376 lt_prog_compiler_no_builtin_flag_RC \
20377 export_dynamic_flag_spec_RC \
20378 thread_safe_flag_spec_RC \
20379 whole_archive_flag_spec_RC \
20380 enable_shared_with_static_runtimes_RC \
20381 old_archive_cmds_RC \
20382 old_archive_from_new_cmds_RC \
20383 predep_objects_RC \
20384 postdep_objects_RC \
20387 compiler_lib_search_path_RC \
20389 archive_expsym_cmds_RC \
20390 postinstall_cmds_RC \
20391 postuninstall_cmds_RC \
20392 old_archive_from_expsyms_cmds_RC \
20393 allow_undefined_flag_RC \
20394 no_undefined_flag_RC \
20395 export_symbols_cmds_RC \
20396 hardcode_libdir_flag_spec_RC \
20397 hardcode_libdir_flag_spec_ld_RC \
20398 hardcode_libdir_separator_RC \
20399 hardcode_automatic_RC \
20401 module_expsym_cmds_RC \
20402 lt_cv_prog_compiler_c_o_RC \
20403 exclude_expsyms_RC \
20404 include_expsyms_RC; do
20407 old_archive_cmds_RC | \
20408 old_archive_from_new_cmds_RC | \
20409 archive_cmds_RC | \
20410 archive_expsym_cmds_RC | \
20412 module_expsym_cmds_RC | \
20413 old_archive_from_expsyms_cmds_RC | \
20414 export_symbols_cmds_RC | \
20415 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20416 postinstall_cmds | postuninstall_cmds | \
20417 old_postinstall_cmds | old_postuninstall_cmds | \
20418 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20419 # Double-quote double-evaled strings.
20420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20429 *'\$0 --fallback-echo"')
20430 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20436 cat <<__EOF__ >> "$cfgfile"
20437 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20441 # Shell to use when invoking shell scripts.
20444 # Whether or not to build shared libraries.
20445 build_libtool_libs=$enable_shared
20447 # Whether or not to build static libraries.
20448 build_old_libs=$enable_static
20450 # Whether or not to add -lc for building shared libraries.
20451 build_libtool_need_lc=$archive_cmds_need_lc_RC
20453 # Whether or not to disallow shared libs when runtime libs are static
20454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20456 # Whether or not to optimize for fast installation.
20457 fast_install=$enable_fast_install
20460 host_alias=$host_alias
20464 # The build system.
20465 build_alias=$build_alias
20469 # An echo program that does not interpret backslashes.
20474 AR_FLAGS=$lt_AR_FLAGS
20479 # LTCC compiler flags.
20480 LTCFLAGS=$lt_LTCFLAGS
20482 # A language-specific compiler.
20485 # Is the compiler the GNU C compiler?
20491 # The linker used to build libraries.
20494 # Whether we need hard or soft links.
20497 # A BSD-compatible nm program.
20500 # A symbol stripping program
20503 # Used to examine libraries when file_magic_cmd begins "file"
20504 MAGIC_CMD=$MAGIC_CMD
20506 # Used on cygwin: DLL creation program.
20509 # Used on cygwin: object dumper.
20512 # Used on cygwin: assembler.
20515 # The name of the directory that contains temporary libtool files.
20518 # How to create reloadable object files.
20519 reload_flag=$lt_reload_flag
20520 reload_cmds=$lt_reload_cmds
20522 # How to pass a linker flag through the compiler.
20523 wl=$lt_lt_prog_compiler_wl_RC
20525 # Object file suffix (normally "o").
20526 objext="$ac_objext"
20528 # Old archive suffix (normally "a").
20531 # Shared library suffix (normally ".so").
20532 shrext_cmds='$shrext_cmds'
20534 # Executable file suffix (normally "").
20537 # Additional compiler flags for building library objects.
20538 pic_flag=$lt_lt_prog_compiler_pic_RC
20541 # What is the maximum length of a command?
20542 max_cmd_len=$lt_cv_sys_max_cmd_len
20544 # Does compiler simultaneously support -c and -o options?
20545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20547 # Must we lock files when doing compilation?
20548 need_locks=$lt_need_locks
20550 # Do we need the lib prefix for modules?
20551 need_lib_prefix=$need_lib_prefix
20553 # Do we need a version for libraries?
20554 need_version=$need_version
20556 # Whether dlopen is supported.
20557 dlopen_support=$enable_dlopen
20559 # Whether dlopen of programs is supported.
20560 dlopen_self=$enable_dlopen_self
20562 # Whether dlopen of statically linked programs is supported.
20563 dlopen_self_static=$enable_dlopen_self_static
20565 # Compiler flag to prevent dynamic linking.
20566 link_static_flag=$lt_lt_prog_compiler_static_RC
20568 # Compiler flag to turn off builtin functions.
20569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20571 # Compiler flag to allow reflexive dlopens.
20572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20574 # Compiler flag to generate shared objects directly from archives.
20575 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20577 # Compiler flag to generate thread-safe objects.
20578 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20580 # Library versioning type.
20581 version_type=$version_type
20583 # Format of library name prefix.
20584 libname_spec=$lt_libname_spec
20586 # List of archive names. First name is the real one, the rest are links.
20587 # The last name is the one that the linker finds with -lNAME.
20588 library_names_spec=$lt_library_names_spec
20590 # The coded name of the library, if different from the real name.
20591 soname_spec=$lt_soname_spec
20593 # Commands used to build and install an old-style archive.
20595 old_archive_cmds=$lt_old_archive_cmds_RC
20596 old_postinstall_cmds=$lt_old_postinstall_cmds
20597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20599 # Create an old-style archive from a shared archive.
20600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20602 # Create a temporary old-style archive to link instead of a shared archive.
20603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20605 # Commands used to build and install a shared archive.
20606 archive_cmds=$lt_archive_cmds_RC
20607 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20608 postinstall_cmds=$lt_postinstall_cmds
20609 postuninstall_cmds=$lt_postuninstall_cmds
20611 # Commands used to build a loadable module (assumed same as above if empty)
20612 module_cmds=$lt_module_cmds_RC
20613 module_expsym_cmds=$lt_module_expsym_cmds_RC
20615 # Commands to strip libraries.
20616 old_striplib=$lt_old_striplib
20617 striplib=$lt_striplib
20619 # Dependencies to place before the objects being linked to create a
20621 predep_objects=$lt_predep_objects_RC
20623 # Dependencies to place after the objects being linked to create a
20625 postdep_objects=$lt_postdep_objects_RC
20627 # Dependencies to place before the objects being linked to create a
20629 predeps=$lt_predeps_RC
20631 # Dependencies to place after the objects being linked to create a
20633 postdeps=$lt_postdeps_RC
20635 # The library search path used internally by the compiler when linking
20636 # a shared library.
20637 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20639 # Method to check whether dependent libraries are shared objects.
20640 deplibs_check_method=$lt_deplibs_check_method
20642 # Command to use when deplibs_check_method == file_magic.
20643 file_magic_cmd=$lt_file_magic_cmd
20645 # Flag that allows shared libraries with undefined symbols to be built.
20646 allow_undefined_flag=$lt_allow_undefined_flag_RC
20648 # Flag that forces no undefined symbols.
20649 no_undefined_flag=$lt_no_undefined_flag_RC
20651 # Commands used to finish a libtool library installation in a directory.
20652 finish_cmds=$lt_finish_cmds
20654 # Same as above, but a single script fragment to be evaled but not shown.
20655 finish_eval=$lt_finish_eval
20657 # Take the output of nm and produce a listing of raw symbols and C names.
20658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20660 # Transform the output of nm in a proper C declaration
20661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20663 # Transform the output of nm in a C name address pair
20664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20666 # This is the shared library runtime path variable.
20667 runpath_var=$runpath_var
20669 # This is the shared library path variable.
20670 shlibpath_var=$shlibpath_var
20672 # Is shlibpath searched before the hard-coded library search path?
20673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20675 # How to hardcode a shared library path into an executable.
20676 hardcode_action=$hardcode_action_RC
20678 # Whether we should hardcode library paths into libraries.
20679 hardcode_into_libs=$hardcode_into_libs
20681 # Flag to hardcode \$libdir into a binary during linking.
20682 # This must work even if \$libdir does not exist.
20683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20685 # If ld is used when linking, flag to hardcode \$libdir into
20686 # a binary during linking. This must work even if \$libdir does
20688 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20690 # Whether we need a single -rpath flag with a separated argument.
20691 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20693 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20694 # resulting binary.
20695 hardcode_direct=$hardcode_direct_RC
20697 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20698 # resulting binary.
20699 hardcode_minus_L=$hardcode_minus_L_RC
20701 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20702 # the resulting binary.
20703 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20705 # Set to yes if building a shared library automatically hardcodes DIR into the library
20706 # and all subsequent libraries and executables linked against it.
20707 hardcode_automatic=$hardcode_automatic_RC
20709 # Variables whose values should be saved in libtool wrapper scripts and
20710 # restored at relink time.
20711 variables_saved_for_relink="$variables_saved_for_relink"
20713 # Whether libtool must link a program against all its dependency libraries.
20714 link_all_deplibs=$link_all_deplibs_RC
20716 # Compile-time system search path for libraries
20717 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20719 # Run-time system search path for libraries
20720 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20722 # Fix the shell variable \$srcfile for the compiler.
20723 fix_srcfile_path="$fix_srcfile_path_RC"
20725 # Set to yes if exported symbols are required.
20726 always_export_symbols=$always_export_symbols_RC
20728 # The commands to list exported symbols.
20729 export_symbols_cmds=$lt_export_symbols_cmds_RC
20731 # The commands to extract the exported symbol list from a shared archive.
20732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20734 # Symbols that should not be listed in the preloaded symbols.
20735 exclude_expsyms=$lt_exclude_expsyms_RC
20737 # Symbols that must always be exported.
20738 include_expsyms=$lt_include_expsyms_RC
20740 # ### END LIBTOOL TAG CONFIG: $tagname
20746 # If there is no Makefile yet, we rely on a make rule to execute
20747 # `config.status --recheck' to rerun these tests and create the
20748 # libtool script then.
20749 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20750 if test -f "$ltmain_in"; then
20751 test -f Makefile && make "$ltmain"
20757 ac_cpp='$CPP $CPPFLAGS'
20758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20768 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20769 { (exit 1); exit 1; }; }
20773 # Append the new tag name to the list of available tags.
20774 if test -n "$tagname" ; then
20775 available_tags="$available_tags $tagname"
20781 # Now substitute the updated list of available tags.
20782 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20783 mv "${ofile}T" "$ofile"
20787 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20788 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20789 { (exit 1); exit 1; }; }
20795 # This can be used to rebuild libtool when needed
20796 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20798 # Always use our own libtool.
20799 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20801 # Prevent multiple expansion
20822 if test "x$CC" != xcc; then
20823 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20824 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20826 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20827 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20829 set dummy $CC; ac_cc=`echo $2 |
20830 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20831 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 cat >conftest.$ac_ext <<_ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20849 # Make sure it works both with $CC and with simple cc.
20850 # We do the test twice because some compilers refuse to overwrite an
20851 # existing .o file with -o, though they will create one.
20852 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20854 if { (case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859 (eval "$ac_try") 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
20863 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_try") 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); };
20873 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20874 if test "x$CC" != xcc; then
20875 # Test first that cc exists at all.
20876 if { ac_try='cc -c conftest.$ac_ext >&5'
20877 { (case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_try") 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20888 if { (case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_try") 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_try") 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); };
20910 # cc exists but doesn't like -o.
20911 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20916 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20918 rm -f core conftest*
20921 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20922 { echo "$as_me:$LINENO: result: yes" >&5
20923 echo "${ECHO_T}yes" >&6; }
20925 { echo "$as_me:$LINENO: result: no" >&5
20926 echo "${ECHO_T}no" >&6; }
20928 cat >>confdefs.h <<\_ACEOF
20929 #define NO_MINUS_C_MINUS_O 1
20934 # FIXME: we rely on the cache variable name because
20935 # there is no other way.
20937 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20938 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20939 # Losing compiler, so override with the script.
20940 # FIXME: It is wrong to rewrite CC.
20941 # But if we don't then we get into trouble of one sort or another.
20942 # A longer-term fix would be to have automake use am__CC in this case,
20943 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20944 CC="$am_aux_dir/compile $CC"
20949 if test "x$cross_compiling" = "xno"; then
20950 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20952 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20957 if test -n "$ac_tool_prefix"; then
20958 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20959 set dummy ${ac_tool_prefix}ar; ac_word=$2
20960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20962 if test "${ac_cv_prog_AR+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20965 if test -n "$AR"; then
20966 ac_cv_prog_AR="$AR" # Let the user override the test.
20968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20969 for as_dir in $PATH
20972 test -z "$as_dir" && as_dir=.
20973 for ac_exec_ext in '' $ac_executable_extensions; do
20974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20975 ac_cv_prog_AR="${ac_tool_prefix}ar"
20976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20986 if test -n "$AR"; then
20987 { echo "$as_me:$LINENO: result: $AR" >&5
20988 echo "${ECHO_T}$AR" >&6; }
20990 { echo "$as_me:$LINENO: result: no" >&5
20991 echo "${ECHO_T}no" >&6; }
20996 if test -z "$ac_cv_prog_AR"; then
20998 # Extract the first word of "ar", so it can be a program name with args.
20999 set dummy ar; ac_word=$2
21000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21002 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 if test -n "$ac_ct_AR"; then
21006 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21009 for as_dir in $PATH
21012 test -z "$as_dir" && as_dir=.
21013 for ac_exec_ext in '' $ac_executable_extensions; do
21014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21015 ac_cv_prog_ac_ct_AR="ar"
21016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21025 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21026 if test -n "$ac_ct_AR"; then
21027 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21028 echo "${ECHO_T}$ac_ct_AR" >&6; }
21030 { echo "$as_me:$LINENO: result: no" >&5
21031 echo "${ECHO_T}no" >&6; }
21034 if test "x$ac_ct_AR" = x; then
21037 case $cross_compiling:$ac_tool_warned in
21039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21040 whose name does not start with the host triplet. If you think this
21041 configuration is useful to you, please write to autoconf@gnu.org." >&5
21042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21043 whose name does not start with the host triplet. If you think this
21044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21045 ac_tool_warned=yes ;;
21050 AR="$ac_cv_prog_AR"
21053 if test -n "$ac_tool_prefix"; then
21054 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21055 set dummy ${ac_tool_prefix}ld; ac_word=$2
21056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21058 if test "${ac_cv_prog_LD+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 if test -n "$LD"; then
21062 ac_cv_prog_LD="$LD" # Let the user override the test.
21064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21065 for as_dir in $PATH
21068 test -z "$as_dir" && as_dir=.
21069 for ac_exec_ext in '' $ac_executable_extensions; do
21070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21071 ac_cv_prog_LD="${ac_tool_prefix}ld"
21072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21082 if test -n "$LD"; then
21083 { echo "$as_me:$LINENO: result: $LD" >&5
21084 echo "${ECHO_T}$LD" >&6; }
21086 { echo "$as_me:$LINENO: result: no" >&5
21087 echo "${ECHO_T}no" >&6; }
21092 if test -z "$ac_cv_prog_LD"; then
21094 # Extract the first word of "ld", so it can be a program name with args.
21095 set dummy ld; ac_word=$2
21096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21098 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21099 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 if test -n "$ac_ct_LD"; then
21102 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21105 for as_dir in $PATH
21108 test -z "$as_dir" && as_dir=.
21109 for ac_exec_ext in '' $ac_executable_extensions; do
21110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21111 ac_cv_prog_ac_ct_LD="ld"
21112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21121 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21122 if test -n "$ac_ct_LD"; then
21123 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21124 echo "${ECHO_T}$ac_ct_LD" >&6; }
21126 { echo "$as_me:$LINENO: result: no" >&5
21127 echo "${ECHO_T}no" >&6; }
21130 if test "x$ac_ct_LD" = x; then
21133 case $cross_compiling:$ac_tool_warned in
21135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21136 whose name does not start with the host triplet. If you think this
21137 configuration is useful to you, please write to autoconf@gnu.org." >&5
21138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21139 whose name does not start with the host triplet. If you think this
21140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21141 ac_tool_warned=yes ;;
21146 LD="$ac_cv_prog_LD"
21150 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21152 if test "${ac_cv_header_stdc+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 cat >conftest.$ac_ext <<_ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <stdlib.h>
21162 #include <stdarg.h>
21163 #include <string.h>
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_compile") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest.$ac_objext; then
21191 ac_cv_header_stdc=yes
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21196 ac_cv_header_stdc=no
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21201 if test $ac_cv_header_stdc = yes; then
21202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <string.h>
21212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21213 $EGREP "memchr" >/dev/null 2>&1; then
21216 ac_cv_header_stdc=no
21222 if test $ac_cv_header_stdc = yes; then
21223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 #include <stdlib.h>
21233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21234 $EGREP "free" >/dev/null 2>&1; then
21237 ac_cv_header_stdc=no
21243 if test $ac_cv_header_stdc = yes; then
21244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21245 if test "$cross_compiling" = yes; then
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21255 #include <stdlib.h>
21256 #if ((' ' & 0x0FF) == 0x020)
21257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21260 # define ISLOWER(c) \
21261 (('a' <= (c) && (c) <= 'i') \
21262 || ('j' <= (c) && (c) <= 'r') \
21263 || ('s' <= (c) && (c) <= 'z'))
21264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21272 for (i = 0; i < 256; i++)
21273 if (XOR (islower (i), ISLOWER (i))
21274 || toupper (i) != TOUPPER (i))
21279 rm -f conftest$ac_exeext
21280 if { (ac_try="$ac_link"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_link") 2>&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21290 { (case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_try") 2>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
21301 echo "$as_me: program exited with status $ac_status" >&5
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21305 ( exit $ac_status )
21306 ac_cv_header_stdc=no
21308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21315 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21316 if test $ac_cv_header_stdc = yes; then
21318 cat >>confdefs.h <<\_ACEOF
21319 #define STDC_HEADERS 1
21325 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21326 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21327 if test "${knfsd_cv_glibc2+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21337 #include <features.h>
21338 #if !defined(__GLIBC__)
21343 if { (ac_try="$ac_cpp conftest.$ac_ext"
21344 case "(($ac_try" in
21345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346 *) ac_try_echo=$ac_try;;
21348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21351 grep -v '^ *+' conftest.er1 >conftest.err
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } >/dev/null && {
21356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21357 test ! -s conftest.err
21359 knfsd_cv_glibc2=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21367 rm -f conftest.err conftest.$ac_ext
21370 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21371 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21372 if test $knfsd_cv_glibc2 = yes; then
21373 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21374 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21378 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21379 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21380 if test "${knfsd_cv_bsd_signals+set}" = set; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 if test "$cross_compiling" = yes; then
21386 *linux*) knfsd_cv_bsd_signals=no;;
21387 *bsd*) knfsd_cv_bsd_signals=yes;;
21388 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21389 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21390 { (exit 1); exit 1; }; };;
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21401 #include <signal.h>
21402 #include <unistd.h>
21403 #include <sys/wait.h>
21405 static int counter = 0;
21406 static RETSIGTYPE handler(int num) { counter++; }
21411 if ((s = fork()) < 0) return 1;
21413 if (wait(&s) < 0) return 1;
21414 return WIFSIGNALED(s)? 1 : 0;
21417 signal(SIGHUP, handler);
21418 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21419 return (counter == 2)? 0 : 1;
21423 rm -f conftest$ac_exeext
21424 if { (ac_try="$ac_link"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_link") 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; }; then
21443 knfsd_cv_bsd_signals=yes
21445 echo "$as_me: program exited with status $ac_status" >&5
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ( exit $ac_status )
21450 knfsd_cv_bsd_signals=no
21452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21457 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21458 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21459 test $knfsd_cv_bsd_signals = yes &&
21460 cat >>confdefs.h <<\_ACEOF
21461 #define HAVE_BSD_SIGNALS 1
21466 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21467 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21468 if test "${ac_cv_func_gethostbyname+set}" = set; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21479 #define gethostbyname innocuous_gethostbyname
21481 /* System header to define __stub macros and hopefully few prototypes,
21482 which can conflict with char gethostbyname (); below.
21483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21484 <limits.h> exists even on freestanding compilers. */
21487 # include <limits.h>
21489 # include <assert.h>
21492 #undef gethostbyname
21494 /* Override any GCC internal prototype to avoid an error.
21495 Use char because int might match the return type of a GCC
21496 builtin and then its argument prototype would still apply. */
21500 char gethostbyname ();
21501 /* The GNU C library defines this for functions which it implements
21502 to always fail with ENOSYS. Some functions are actually named
21503 something starting with __ and the normal name is an alias. */
21504 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21511 return gethostbyname ();
21516 rm -f conftest.$ac_objext conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_link") 2>conftest.er1
21525 grep -v '^ *+' conftest.er1 >conftest.err
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } && {
21530 test -z "$ac_c_werror_flag" ||
21531 test ! -s conftest.err
21532 } && test -s conftest$ac_exeext &&
21533 $as_test_x conftest$ac_exeext; then
21534 ac_cv_func_gethostbyname=yes
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 ac_cv_func_gethostbyname=no
21542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21543 conftest$ac_exeext conftest.$ac_ext
21545 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21546 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21547 if test $ac_cv_func_gethostbyname = yes; then
21550 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21551 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21552 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 ac_check_lib_save_LIBS=$LIBS
21557 cat >conftest.$ac_ext <<_ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21570 char gethostbyname ();
21574 return gethostbyname ();
21579 rm -f conftest.$ac_objext conftest$ac_exeext
21580 if { (ac_try="$ac_link"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_link") 2>conftest.er1
21588 grep -v '^ *+' conftest.er1 >conftest.err
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } && {
21593 test -z "$ac_c_werror_flag" ||
21594 test ! -s conftest.err
21595 } && test -s conftest$ac_exeext &&
21596 $as_test_x conftest$ac_exeext; then
21597 ac_cv_lib_nsl_gethostbyname=yes
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ac_cv_lib_nsl_gethostbyname=no
21605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21606 conftest$ac_exeext conftest.$ac_ext
21607 LIBS=$ac_check_lib_save_LIBS
21609 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21610 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21611 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21619 { echo "$as_me:$LINENO: checking for connect" >&5
21620 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21621 if test "${ac_cv_func_connect+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21624 cat >conftest.$ac_ext <<_ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21632 #define connect innocuous_connect
21634 /* System header to define __stub macros and hopefully few prototypes,
21635 which can conflict with char connect (); below.
21636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21637 <limits.h> exists even on freestanding compilers. */
21640 # include <limits.h>
21642 # include <assert.h>
21647 /* Override any GCC internal prototype to avoid an error.
21648 Use char because int might match the return type of a GCC
21649 builtin and then its argument prototype would still apply. */
21654 /* The GNU C library defines this for functions which it implements
21655 to always fail with ENOSYS. Some functions are actually named
21656 something starting with __ and the normal name is an alias. */
21657 #if defined __stub_connect || defined __stub___connect
21669 rm -f conftest.$ac_objext conftest$ac_exeext
21670 if { (ac_try="$ac_link"
21671 case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_link") 2>conftest.er1
21678 grep -v '^ *+' conftest.er1 >conftest.err
21680 cat conftest.err >&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); } && {
21683 test -z "$ac_c_werror_flag" ||
21684 test ! -s conftest.err
21685 } && test -s conftest$ac_exeext &&
21686 $as_test_x conftest$ac_exeext; then
21687 ac_cv_func_connect=yes
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 ac_cv_func_connect=no
21695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21696 conftest$ac_exeext conftest.$ac_ext
21698 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21699 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21700 if test $ac_cv_func_connect = yes; then
21703 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21704 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21705 if test "${ac_cv_lib_socket_connect+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 ac_check_lib_save_LIBS=$LIBS
21709 LIBS="-lsocket $LIBNSL $LIBS"
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21717 /* Override any GCC internal prototype to avoid an error.
21718 Use char because int might match the return type of a GCC
21719 builtin and then its argument prototype would still apply. */
21732 rm -f conftest.$ac_objext conftest$ac_exeext
21733 if { (ac_try="$ac_link"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_link") 2>conftest.er1
21741 grep -v '^ *+' conftest.er1 >conftest.err
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest$ac_exeext &&
21749 $as_test_x conftest$ac_exeext; then
21750 ac_cv_lib_socket_connect=yes
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_lib_socket_connect=no
21758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21759 conftest$ac_exeext conftest.$ac_ext
21760 LIBS=$ac_check_lib_save_LIBS
21762 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21763 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21764 if test $ac_cv_lib_socket_connect = yes; then
21765 LIBSOCKET="-lsocket"
21767 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21768 echo "$as_me: error: Function 'socket' not found." >&2;}
21769 { (exit 1); exit 1; }; }
21775 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21776 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21777 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 ac_check_lib_save_LIBS=$LIBS
21781 LIBS="-lcrypt $LIBS"
21782 cat >conftest.$ac_ext <<_ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21789 /* Override any GCC internal prototype to avoid an error.
21790 Use char because int might match the return type of a GCC
21791 builtin and then its argument prototype would still apply. */
21804 rm -f conftest.$ac_objext conftest$ac_exeext
21805 if { (ac_try="$ac_link"
21806 case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21811 (eval "$ac_link") 2>conftest.er1
21813 grep -v '^ *+' conftest.er1 >conftest.err
21815 cat conftest.err >&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && {
21818 test -z "$ac_c_werror_flag" ||
21819 test ! -s conftest.err
21820 } && test -s conftest$ac_exeext &&
21821 $as_test_x conftest$ac_exeext; then
21822 ac_cv_lib_crypt_crypt=yes
21824 echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21827 ac_cv_lib_crypt_crypt=no
21830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21831 conftest$ac_exeext conftest.$ac_ext
21832 LIBS=$ac_check_lib_save_LIBS
21834 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21835 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21836 if test $ac_cv_lib_crypt_crypt = yes; then
21840 if test "$enable_nfsv4" = yes; then
21841 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21842 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21843 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 ac_check_lib_save_LIBS=$LIBS
21847 LIBS="-levent $LIBS"
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21855 /* Override any GCC internal prototype to avoid an error.
21856 Use char because int might match the return type of a GCC
21857 builtin and then its argument prototype would still apply. */
21861 char event_dispatch ();
21865 return event_dispatch ();
21870 rm -f conftest.$ac_objext conftest$ac_exeext
21871 if { (ac_try="$ac_link"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_link") 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } && {
21884 test -z "$ac_c_werror_flag" ||
21885 test ! -s conftest.err
21886 } && test -s conftest$ac_exeext &&
21887 $as_test_x conftest$ac_exeext; then
21888 ac_cv_lib_event_event_dispatch=yes
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_cv_lib_event_event_dispatch=no
21896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21897 conftest$ac_exeext conftest.$ac_ext
21898 LIBS=$ac_check_lib_save_LIBS
21900 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21901 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21902 if test $ac_cv_lib_event_event_dispatch = yes; then
21905 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21906 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21907 { (exit 1); exit 1; }; }
21910 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21911 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21912 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21915 ac_check_lib_save_LIBS=$LIBS
21916 LIBS="-lnfsidmap $LIBS"
21917 cat >conftest.$ac_ext <<_ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21924 /* Override any GCC internal prototype to avoid an error.
21925 Use char because int might match the return type of a GCC
21926 builtin and then its argument prototype would still apply. */
21930 char nfs4_init_name_mapping ();
21934 return nfs4_init_name_mapping ();
21939 rm -f conftest.$ac_objext conftest$ac_exeext
21940 if { (ac_try="$ac_link"
21941 case "(($ac_try" in
21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943 *) ac_try_echo=$ac_try;;
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946 (eval "$ac_link") 2>conftest.er1
21948 grep -v '^ *+' conftest.er1 >conftest.err
21950 cat conftest.err >&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); } && {
21953 test -z "$ac_c_werror_flag" ||
21954 test ! -s conftest.err
21955 } && test -s conftest$ac_exeext &&
21956 $as_test_x conftest$ac_exeext; then
21957 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21966 conftest$ac_exeext conftest.$ac_ext
21967 LIBS=$ac_check_lib_save_LIBS
21969 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21970 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21971 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21974 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21975 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21976 { (exit 1); exit 1; }; }
21980 for ac_header in event.h
21982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 ac_res=`eval echo '${'$as_ac_Header'}'`
21990 { echo "$as_me:$LINENO: result: $ac_res" >&5
21991 echo "${ECHO_T}$ac_res" >&6; }
21993 # Is the header compilable?
21994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 $ac_includes_default
22003 #include <$ac_header>
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_compile") 2>conftest.er1
22014 grep -v '^ *+' conftest.er1 >conftest.err
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest.$ac_objext; then
22022 ac_header_compiler=yes
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22027 ac_header_compiler=no
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032 echo "${ECHO_T}$ac_header_compiler" >&6; }
22034 # Is the header present?
22035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 #include <$ac_header>
22045 if { (ac_try="$ac_cpp conftest.$ac_ext"
22046 case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22053 grep -v '^ *+' conftest.er1 >conftest.err
22055 cat conftest.err >&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } >/dev/null && {
22058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22059 test ! -s conftest.err
22061 ac_header_preproc=yes
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ac_header_preproc=no
22069 rm -f conftest.err conftest.$ac_ext
22070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22071 echo "${ECHO_T}$ac_header_preproc" >&6; }
22073 # So? What about this header?
22074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22080 ac_header_preproc=yes
22083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22096 ## ------------------------------- ##
22097 ## Report this to nfs@lists.sf.net ##
22098 ## ------------------------------- ##
22100 ) | sed "s/^/$as_me: WARNING: /" >&2
22103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 eval "$as_ac_Header=\$ac_header_preproc"
22110 ac_res=`eval echo '${'$as_ac_Header'}'`
22111 { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22121 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22122 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22123 { (exit 1); exit 1; }; }
22129 for ac_header in nfsidmap.h
22131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 ac_res=`eval echo '${'$as_ac_Header'}'`
22139 { echo "$as_me:$LINENO: result: $ac_res" >&5
22140 echo "${ECHO_T}$ac_res" >&6; }
22142 # Is the header compilable?
22143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22145 cat >conftest.$ac_ext <<_ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 $ac_includes_default
22152 #include <$ac_header>
22154 rm -f conftest.$ac_objext
22155 if { (ac_try="$ac_compile"
22156 case "(($ac_try" in
22157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158 *) ac_try_echo=$ac_try;;
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161 (eval "$ac_compile") 2>conftest.er1
22163 grep -v '^ *+' conftest.er1 >conftest.err
22165 cat conftest.err >&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && {
22168 test -z "$ac_c_werror_flag" ||
22169 test ! -s conftest.err
22170 } && test -s conftest.$ac_objext; then
22171 ac_header_compiler=yes
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 ac_header_compiler=no
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22181 echo "${ECHO_T}$ac_header_compiler" >&6; }
22183 # Is the header present?
22184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22186 cat >conftest.$ac_ext <<_ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22192 #include <$ac_header>
22194 if { (ac_try="$ac_cpp conftest.$ac_ext"
22195 case "(($ac_try" in
22196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197 *) ac_try_echo=$ac_try;;
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22202 grep -v '^ *+' conftest.er1 >conftest.err
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } >/dev/null && {
22207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22210 ac_header_preproc=yes
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 ac_header_preproc=no
22218 rm -f conftest.err conftest.$ac_ext
22219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22220 echo "${ECHO_T}$ac_header_preproc" >&6; }
22222 # So? What about this header?
22223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22229 ac_header_preproc=yes
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22245 ## ------------------------------- ##
22246 ## Report this to nfs@lists.sf.net ##
22247 ## ------------------------------- ##
22249 ) | sed "s/^/$as_me: WARNING: /" >&2
22252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 eval "$as_ac_Header=\$ac_header_preproc"
22259 ac_res=`eval echo '${'$as_ac_Header'}'`
22260 { echo "$as_me:$LINENO: result: $ac_res" >&5
22261 echo "${ECHO_T}$ac_res" >&6; }
22264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22265 cat >>confdefs.h <<_ACEOF
22266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22270 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22271 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22272 { (exit 1); exit 1; }; }
22277 if test "$enable_gss" = yes; then
22280 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22281 if test -n "$ac_tool_prefix"; then
22282 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22283 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22286 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 case $PKG_CONFIG in
22291 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22295 for as_dir in $PATH
22298 test -z "$as_dir" && as_dir=.
22299 for ac_exec_ext in '' $ac_executable_extensions; do
22300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22301 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22312 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22313 if test -n "$PKG_CONFIG"; then
22314 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22315 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22317 { echo "$as_me:$LINENO: result: no" >&5
22318 echo "${ECHO_T}no" >&6; }
22323 if test -z "$ac_cv_path_PKG_CONFIG"; then
22324 ac_pt_PKG_CONFIG=$PKG_CONFIG
22325 # Extract the first word of "pkg-config", so it can be a program name with args.
22326 set dummy pkg-config; ac_word=$2
22327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22329 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 case $ac_pt_PKG_CONFIG in
22334 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22338 for as_dir in $PATH
22341 test -z "$as_dir" && as_dir=.
22342 for ac_exec_ext in '' $ac_executable_extensions; do
22343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22344 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22355 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22356 if test -n "$ac_pt_PKG_CONFIG"; then
22357 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22358 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22360 { echo "$as_me:$LINENO: result: no" >&5
22361 echo "${ECHO_T}no" >&6; }
22364 if test "x$ac_pt_PKG_CONFIG" = x; then
22367 case $cross_compiling:$ac_tool_warned in
22369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22370 whose name does not start with the host triplet. If you think this
22371 configuration is useful to you, please write to autoconf@gnu.org." >&5
22372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22373 whose name does not start with the host triplet. If you think this
22374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22375 ac_tool_warned=yes ;;
22377 PKG_CONFIG=$ac_pt_PKG_CONFIG
22380 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22384 if test -n "$PKG_CONFIG"; then
22385 _pkg_min_version=0.9.0
22386 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22387 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22388 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22389 { echo "$as_me:$LINENO: result: yes" >&5
22390 echo "${ECHO_T}yes" >&6; }
22392 { echo "$as_me:$LINENO: result: no" >&5
22393 echo "${ECHO_T}no" >&6; }
22400 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22401 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22403 if test -n "$PKG_CONFIG"; then
22404 if test -n "$RPCSECGSS_CFLAGS"; then
22405 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22407 if test -n "$PKG_CONFIG" && \
22408 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22409 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }; then
22413 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22421 if test -n "$PKG_CONFIG"; then
22422 if test -n "$RPCSECGSS_LIBS"; then
22423 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22425 if test -n "$PKG_CONFIG" && \
22426 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22427 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; then
22431 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22442 if test $pkg_failed = yes; then
22444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22445 _pkg_short_errors_supported=yes
22447 _pkg_short_errors_supported=no
22449 if test $_pkg_short_errors_supported = yes; then
22450 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22452 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22454 # Put the nasty error message in config.log where it belongs
22455 echo "$RPCSECGSS_PKG_ERRORS" >&5
22457 { echo "$as_me:$LINENO: result: no" >&5
22458 echo "${ECHO_T}no" >&6; }
22459 { { 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
22460 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;}
22461 { (exit 1); exit 1; }; }
22464 elif test $pkg_failed = untried; then
22465 { { 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
22466 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;}
22467 { (exit 1); exit 1; }; }
22471 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22472 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22473 { echo "$as_me:$LINENO: result: yes" >&5
22474 echo "${ECHO_T}yes" >&6; }
22479 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22480 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22482 if test -n "$PKG_CONFIG"; then
22483 if test -n "$GSSAPI_CFLAGS"; then
22484 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22486 if test -n "$PKG_CONFIG" && \
22487 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22488 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; then
22492 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.11" 2>/dev/null`
22500 if test -n "$PKG_CONFIG"; then
22501 if test -n "$GSSAPI_LIBS"; then
22502 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22504 if test -n "$PKG_CONFIG" && \
22505 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22506 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; then
22510 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.11" 2>/dev/null`
22521 if test $pkg_failed = yes; then
22523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22524 _pkg_short_errors_supported=yes
22526 _pkg_short_errors_supported=no
22528 if test $_pkg_short_errors_supported = yes; then
22529 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22531 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22533 # Put the nasty error message in config.log where it belongs
22534 echo "$GSSAPI_PKG_ERRORS" >&5
22536 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.11) were not met:
22540 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22541 installed software in a non-standard prefix.
22543 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22544 and GSSAPI_LIBS to avoid the need to call pkg-config.
22545 See the pkg-config man page for more details.
22547 echo "$as_me: error: Package requirements (libgssapi >= 0.11) were not met:
22551 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22552 installed software in a non-standard prefix.
22554 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22555 and GSSAPI_LIBS to avoid the need to call pkg-config.
22556 See the pkg-config man page for more details.
22558 { (exit 1); exit 1; }; }
22559 elif test $pkg_failed = untried; then
22560 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22561 is in your PATH or set the PKG_CONFIG environment variable to the full
22562 path to pkg-config.
22564 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22565 and GSSAPI_LIBS to avoid the need to call pkg-config.
22566 See the pkg-config man page for more details.
22568 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22569 See \`config.log' for more details." >&5
22570 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22571 is in your PATH or set the PKG_CONFIG environment variable to the full
22572 path to pkg-config.
22574 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22575 and GSSAPI_LIBS to avoid the need to call pkg-config.
22576 See the pkg-config man page for more details.
22578 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22579 See \`config.log' for more details." >&2;}
22580 { (exit 1); exit 1; }; }
22582 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22583 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22584 { echo "$as_me:$LINENO: result: yes" >&5
22585 echo "${ECHO_T}yes" >&6; }
22591 if test "$knfsd_cv_glibc2" = no; then
22592 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22593 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22594 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22597 ac_check_lib_save_LIBS=$LIBS
22599 cat >conftest.$ac_ext <<_ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22606 /* Override any GCC internal prototype to avoid an error.
22607 Use char because int might match the return type of a GCC
22608 builtin and then its argument prototype would still apply. */
22621 rm -f conftest.$ac_objext conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_link") 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest$ac_exeext &&
22638 $as_test_x conftest$ac_exeext; then
22639 ac_cv_lib_bsd_daemon=yes
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22644 ac_cv_lib_bsd_daemon=no
22647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648 conftest$ac_exeext conftest.$ac_ext
22649 LIBS=$ac_check_lib_save_LIBS
22651 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22652 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22653 if test $ac_cv_lib_bsd_daemon = yes; then
22658 if test "$use_blkid" = 1; then
22659 { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
22660 echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; }
22661 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22664 ac_check_lib_save_LIBS=$LIBS
22665 LIBS="-lblkid $LIBS"
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22673 /* Override any GCC internal prototype to avoid an error.
22674 Use char because int might match the return type of a GCC
22675 builtin and then its argument prototype would still apply. */
22679 char blkid_get_cache ();
22683 return blkid_get_cache ();
22688 rm -f conftest.$ac_objext conftest$ac_exeext
22689 if { (ac_try="$ac_link"
22690 case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695 (eval "$ac_link") 2>conftest.er1
22697 grep -v '^ *+' conftest.er1 >conftest.err
22699 cat conftest.err >&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); } && {
22702 test -z "$ac_c_werror_flag" ||
22703 test ! -s conftest.err
22704 } && test -s conftest$ac_exeext &&
22705 $as_test_x conftest$ac_exeext; then
22706 ac_cv_lib_blkid_blkid_get_cache=yes
22708 echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22711 ac_cv_lib_blkid_blkid_get_cache=no
22714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22715 conftest$ac_exeext conftest.$ac_ext
22716 LIBS=$ac_check_lib_save_LIBS
22718 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22719 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22720 if test $ac_cv_lib_blkid_blkid_get_cache = yes; then
22723 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22724 echo "$as_me: error: libblkid needed" >&2;}
22725 { (exit 1); exit 1; }; }
22728 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22729 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22730 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22731 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22734 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22735 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22737 # Is the header compilable?
22738 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22739 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22740 cat >conftest.$ac_ext <<_ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22746 $ac_includes_default
22747 #include <blkid/blkid.h>
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_compile") 2>conftest.er1
22758 grep -v '^ *+' conftest.er1 >conftest.err
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } && {
22763 test -z "$ac_c_werror_flag" ||
22764 test ! -s conftest.err
22765 } && test -s conftest.$ac_objext; then
22766 ac_header_compiler=yes
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22771 ac_header_compiler=no
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22776 echo "${ECHO_T}$ac_header_compiler" >&6; }
22778 # Is the header present?
22779 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22780 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 #include <blkid/blkid.h>
22789 if { (ac_try="$ac_cpp conftest.$ac_ext"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22797 grep -v '^ *+' conftest.er1 >conftest.err
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } >/dev/null && {
22802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22805 ac_header_preproc=yes
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22810 ac_header_preproc=no
22813 rm -f conftest.err conftest.$ac_ext
22814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22815 echo "${ECHO_T}$ac_header_preproc" >&6; }
22817 # So? What about this header?
22818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22820 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22821 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
22823 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
22824 ac_header_preproc=yes
22827 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
22828 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
22829 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
22830 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
22831 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
22832 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
22833 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
22834 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
22835 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
22836 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
22837 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
22838 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
22840 ## ------------------------------- ##
22841 ## Report this to nfs@lists.sf.net ##
22842 ## ------------------------------- ##
22844 ) | sed "s/^/$as_me: WARNING: /" >&2
22847 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22848 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22849 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 ac_cv_header_blkid_blkid_h=$ac_header_preproc
22854 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22855 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22858 if test $ac_cv_header_blkid_blkid_h = yes; then
22861 { { echo "$as_me:$LINENO: error: Cannot file libblkid header file blkid/blkid.h" >&5
22862 echo "$as_me: error: Cannot file libblkid header file blkid/blkid.h" >&2;}
22863 { (exit 1); exit 1; }; }
22873 if test "$enable_gss" = yes; then
22875 for ac_header in nfsidmap.h
22877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22882 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 ac_res=`eval echo '${'$as_ac_Header'}'`
22885 { echo "$as_me:$LINENO: result: $ac_res" >&5
22886 echo "${ECHO_T}$ac_res" >&6; }
22888 # Is the header compilable?
22889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 $ac_includes_default
22898 #include <$ac_header>
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907 (eval "$ac_compile") 2>conftest.er1
22909 grep -v '^ *+' conftest.er1 >conftest.err
22911 cat conftest.err >&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } && {
22914 test -z "$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 } && test -s conftest.$ac_objext; then
22917 ac_header_compiler=yes
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 ac_header_compiler=no
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22927 echo "${ECHO_T}$ac_header_compiler" >&6; }
22929 # Is the header present?
22930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22932 cat >conftest.$ac_ext <<_ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22938 #include <$ac_header>
22940 if { (ac_try="$ac_cpp conftest.$ac_ext"
22941 case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } >/dev/null && {
22953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22954 test ! -s conftest.err
22956 ac_header_preproc=yes
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 ac_header_preproc=no
22964 rm -f conftest.err conftest.$ac_ext
22965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22966 echo "${ECHO_T}$ac_header_preproc" >&6; }
22968 # So? What about this header?
22969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22975 ac_header_preproc=yes
22978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22991 ## ------------------------------- ##
22992 ## Report this to nfs@lists.sf.net ##
22993 ## ------------------------------- ##
22995 ) | sed "s/^/$as_me: WARNING: /" >&2
22998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23003 eval "$as_ac_Header=\$ac_header_preproc"
23005 ac_res=`eval echo '${'$as_ac_Header'}'`
23006 { echo "$as_me:$LINENO: result: $ac_res" >&5
23007 echo "${ECHO_T}$ac_res" >&6; }
23010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23011 cat >>confdefs.h <<_ACEOF
23012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23016 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23017 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23018 { (exit 1); exit 1; }; }
23024 for ac_header in spkm3.h
23026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 ac_res=`eval echo '${'$as_ac_Header'}'`
23034 { echo "$as_me:$LINENO: result: $ac_res" >&5
23035 echo "${ECHO_T}$ac_res" >&6; }
23037 # Is the header compilable?
23038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 $ac_includes_default
23047 #include <$ac_header>
23049 rm -f conftest.$ac_objext
23050 if { (ac_try="$ac_compile"
23051 case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_compile") 2>conftest.er1
23058 grep -v '^ *+' conftest.er1 >conftest.err
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest.$ac_objext; then
23066 ac_header_compiler=yes
23068 echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23071 ac_header_compiler=no
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23076 echo "${ECHO_T}$ac_header_compiler" >&6; }
23078 # Is the header present?
23079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23081 cat >conftest.$ac_ext <<_ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23087 #include <$ac_header>
23089 if { (ac_try="$ac_cpp conftest.$ac_ext"
23090 case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23097 grep -v '^ *+' conftest.er1 >conftest.err
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } >/dev/null && {
23102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23103 test ! -s conftest.err
23105 ac_header_preproc=yes
23107 echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23110 ac_header_preproc=no
23113 rm -f conftest.err conftest.$ac_ext
23114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23115 echo "${ECHO_T}$ac_header_preproc" >&6; }
23117 # So? What about this header?
23118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23124 ac_header_preproc=yes
23127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23140 ## ------------------------------- ##
23141 ## Report this to nfs@lists.sf.net ##
23142 ## ------------------------------- ##
23144 ) | sed "s/^/$as_me: WARNING: /" >&2
23147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23152 eval "$as_ac_Header=\$ac_header_preproc"
23154 ac_res=`eval echo '${'$as_ac_Header'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23165 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23166 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23171 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23172 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23173 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23176 ac_check_lib_save_LIBS=$LIBS
23177 LIBS="-lnfsidmap $LIBS"
23178 cat >conftest.$ac_ext <<_ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23185 /* Override any GCC internal prototype to avoid an error.
23186 Use char because int might match the return type of a GCC
23187 builtin and then its argument prototype would still apply. */
23191 char nfs4_set_debug ();
23195 return nfs4_set_debug ();
23200 rm -f conftest.$ac_objext conftest$ac_exeext
23201 if { (ac_try="$ac_link"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_link") 2>conftest.er1
23209 grep -v '^ *+' conftest.er1 >conftest.err
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest$ac_exeext &&
23217 $as_test_x conftest$ac_exeext; then
23218 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23227 conftest$ac_exeext conftest.$ac_ext
23228 LIBS=$ac_check_lib_save_LIBS
23230 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23231 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23232 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23234 cat >>confdefs.h <<\_ACEOF
23235 #define HAVE_NFS4_SET_DEBUG 1
23242 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23243 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23245 # Check whether --with-krb5 was given.
23246 if test "${with_krb5+set}" = set; then
23247 withval=$with_krb5; case "$withval" in
23252 krb5_with="$withval"
23259 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23260 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23262 if test -f $dir/bin/krb5-config; then
23263 K5CONFIG=$dir/bin/krb5-config
23264 elif test -f "/usr/kerberos/bin/krb5-config"; then
23265 K5CONFIG="/usr/kerberos/bin/krb5-config"
23266 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23267 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23269 if test "$K5CONFIG" != ""; then
23270 KRBCFLAGS=`$K5CONFIG --cflags`
23271 KRBLIBS=`$K5CONFIG --libs gssapi`
23272 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23274 cat >>confdefs.h <<_ACEOF
23275 #define KRB5_VERSION $K5VERS
23278 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23279 \( -f $dir/lib/libgssapi_krb5.a -o \
23280 -f $dir/lib64/libgssapi_krb5.a -o \
23281 -f $dir/lib64/libgssapi_krb5.so -o \
23282 -f $dir/lib/libgssapi_krb5.so \) ; then
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_KRB5 1
23289 if test $K5VERS -le 131; then
23291 cat >>confdefs.h <<\_ACEOF
23292 #define USE_GSS_KRB5_CCACHE_NAME 1
23296 gssapi_lib=gssapi_krb5
23298 elif test \( -f $dir/include/heim_err.h -o\
23299 -f $dir/include/heimdal/heim_err.h \) -a \
23300 -f $dir/lib/libroken.a; then
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_HEIMDAL 1
23312 if test "x$KRBDIR" = "x"; then
23313 if test "x$krb5_with" = "x"; then
23314 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23315 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23316 { (exit 1); exit 1; }; }
23318 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23319 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23320 { (exit 1); exit 1; }; }
23323 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23324 echo "${ECHO_T}$KRBDIR" >&6; }
23326 echo "The current KRBDIR is $KRBDIR"
23327 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23328 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23330 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23333 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23336 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23337 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23338 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23339 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23342 ac_check_lib_save_LIBS=$LIBS
23343 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23344 cat >conftest.$ac_ext <<_ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h. */
23351 /* Override any GCC internal prototype to avoid an error.
23352 Use char because int might match the return type of a GCC
23353 builtin and then its argument prototype would still apply. */
23357 char gss_krb5_export_lucid_sec_context ();
23361 return gss_krb5_export_lucid_sec_context ();
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373 (eval "$ac_link") 2>conftest.er1
23375 grep -v '^ *+' conftest.er1 >conftest.err
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } && {
23380 test -z "$ac_c_werror_flag" ||
23381 test ! -s conftest.err
23382 } && test -s conftest$ac_exeext &&
23383 $as_test_x conftest$ac_exeext; then
23384 eval "$as_ac_Lib=yes"
23386 echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 eval "$as_ac_Lib=no"
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393 conftest$ac_exeext conftest.$ac_ext
23394 LIBS=$ac_check_lib_save_LIBS
23396 ac_res=`eval echo '${'$as_ac_Lib'}'`
23397 { echo "$as_me:$LINENO: result: $ac_res" >&5
23398 echo "${ECHO_T}$ac_res" >&6; }
23399 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23401 cat >>confdefs.h <<\_ACEOF
23402 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23407 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23408 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23409 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23410 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23411 echo $ECHO_N "(cached) $ECHO_C" >&6
23413 ac_check_lib_save_LIBS=$LIBS
23414 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23415 cat >conftest.$ac_ext <<_ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h. */
23422 /* Override any GCC internal prototype to avoid an error.
23423 Use char because int might match the return type of a GCC
23424 builtin and then its argument prototype would still apply. */
23428 char gss_krb5_set_allowable_enctypes ();
23432 return gss_krb5_set_allowable_enctypes ();
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (ac_try="$ac_link"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_link") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } && {
23451 test -z "$ac_c_werror_flag" ||
23452 test ! -s conftest.err
23453 } && test -s conftest$ac_exeext &&
23454 $as_test_x conftest$ac_exeext; then
23455 eval "$as_ac_Lib=yes"
23457 echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23460 eval "$as_ac_Lib=no"
23463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23464 conftest$ac_exeext conftest.$ac_ext
23465 LIBS=$ac_check_lib_save_LIBS
23467 ac_res=`eval echo '${'$as_ac_Lib'}'`
23468 { echo "$as_me:$LINENO: result: $ac_res" >&5
23469 echo "${ECHO_T}$ac_res" >&6; }
23470 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23472 cat >>confdefs.h <<\_ACEOF
23473 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23478 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23479 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23480 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23481 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 ac_check_lib_save_LIBS=$LIBS
23485 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23486 cat >conftest.$ac_ext <<_ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h. */
23493 /* Override any GCC internal prototype to avoid an error.
23494 Use char because int might match the return type of a GCC
23495 builtin and then its argument prototype would still apply. */
23499 char gss_krb5_ccache_name ();
23503 return gss_krb5_ccache_name ();
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (ac_try="$ac_link"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_link") 2>conftest.er1
23517 grep -v '^ *+' conftest.er1 >conftest.err
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && {
23522 test -z "$ac_c_werror_flag" ||
23523 test ! -s conftest.err
23524 } && test -s conftest$ac_exeext &&
23525 $as_test_x conftest$ac_exeext; then
23526 eval "$as_ac_Lib=yes"
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 eval "$as_ac_Lib=no"
23534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23535 conftest$ac_exeext conftest.$ac_ext
23536 LIBS=$ac_check_lib_save_LIBS
23538 ac_res=`eval echo '${'$as_ac_Lib'}'`
23539 { echo "$as_me:$LINENO: result: $ac_res" >&5
23540 echo "${ECHO_T}$ac_res" >&6; }
23541 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23543 cat >>confdefs.h <<\_ACEOF
23544 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23550 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23551 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23552 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23553 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 ac_check_lib_save_LIBS=$LIBS
23557 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23558 cat >conftest.$ac_ext <<_ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h. */
23565 /* Override any GCC internal prototype to avoid an error.
23566 Use char because int might match the return type of a GCC
23567 builtin and then its argument prototype would still apply. */
23571 char krb5_get_error_message ();
23575 return krb5_get_error_message ();
23580 rm -f conftest.$ac_objext conftest$ac_exeext
23581 if { (ac_try="$ac_link"
23582 case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_link") 2>conftest.er1
23589 grep -v '^ *+' conftest.er1 >conftest.err
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest$ac_exeext &&
23597 $as_test_x conftest$ac_exeext; then
23598 eval "$as_ac_Lib=yes"
23600 echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 eval "$as_ac_Lib=no"
23606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23607 conftest$ac_exeext conftest.$ac_ext
23608 LIBS=$ac_check_lib_save_LIBS
23610 ac_res=`eval echo '${'$as_ac_Lib'}'`
23611 { echo "$as_me:$LINENO: result: $ac_res" >&5
23612 echo "${ECHO_T}$ac_res" >&6; }
23613 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23615 cat >>confdefs.h <<\_ACEOF
23616 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23622 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23623 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23624 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23635 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23636 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23637 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23638 echo $ECHO_N "(cached) $ECHO_C" >&6
23640 ac_check_lib_save_LIBS=$LIBS
23641 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23642 cat >conftest.$ac_ext <<_ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h. */
23649 /* Override any GCC internal prototype to avoid an error.
23650 Use char because int might match the return type of a GCC
23651 builtin and then its argument prototype would still apply. */
23655 char authgss_create_default ();
23659 return authgss_create_default ();
23664 rm -f conftest.$ac_objext conftest$ac_exeext
23665 if { (ac_try="$ac_link"
23666 case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_link") 2>conftest.er1
23673 grep -v '^ *+' conftest.er1 >conftest.err
23675 cat conftest.err >&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest$ac_exeext &&
23681 $as_test_x conftest$ac_exeext; then
23682 ac_cv_lib_rpcsecgss_authgss_create_default=yes
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23687 ac_cv_lib_rpcsecgss_authgss_create_default=no
23690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23691 conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23694 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23695 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23696 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23699 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23700 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23701 { (exit 1); exit 1; }; }
23704 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23705 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23706 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23709 ac_check_lib_save_LIBS=$LIBS
23710 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23711 cat >conftest.$ac_ext <<_ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h. */
23718 /* Override any GCC internal prototype to avoid an error.
23719 Use char because int might match the return type of a GCC
23720 builtin and then its argument prototype would still apply. */
23724 char authgss_set_debug_level ();
23728 return authgss_set_debug_level ();
23733 rm -f conftest.$ac_objext conftest$ac_exeext
23734 if { (ac_try="$ac_link"
23735 case "(($ac_try" in
23736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737 *) ac_try_echo=$ac_try;;
23739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23740 (eval "$ac_link") 2>conftest.er1
23742 grep -v '^ *+' conftest.er1 >conftest.err
23744 cat conftest.err >&5
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); } && {
23747 test -z "$ac_c_werror_flag" ||
23748 test ! -s conftest.err
23749 } && test -s conftest$ac_exeext &&
23750 $as_test_x conftest$ac_exeext; then
23751 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23753 echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23756 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23760 conftest$ac_exeext conftest.$ac_ext
23761 LIBS=$ac_check_lib_save_LIBS
23763 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23764 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23765 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23767 cat >>confdefs.h <<\_ACEOF
23768 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23799 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23800 malloc.h memory.h netdb.h netinet/in.h paths.h \
23801 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23802 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23803 syslog.h unistd.h com_err.h et/com_err.h \
23806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23811 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 ac_res=`eval echo '${'$as_ac_Header'}'`
23814 { echo "$as_me:$LINENO: result: $ac_res" >&5
23815 echo "${ECHO_T}$ac_res" >&6; }
23817 # Is the header compilable?
23818 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23820 cat >conftest.$ac_ext <<_ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23826 $ac_includes_default
23827 #include <$ac_header>
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_compile") 2>conftest.er1
23838 grep -v '^ *+' conftest.er1 >conftest.err
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest.$ac_objext; then
23846 ac_header_compiler=yes
23848 echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23851 ac_header_compiler=no
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23856 echo "${ECHO_T}$ac_header_compiler" >&6; }
23858 # Is the header present?
23859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 #include <$ac_header>
23869 if { (ac_try="$ac_cpp conftest.$ac_ext"
23870 case "(($ac_try" in
23871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872 *) ac_try_echo=$ac_try;;
23874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23877 grep -v '^ *+' conftest.er1 >conftest.err
23879 cat conftest.err >&5
23880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); } >/dev/null && {
23882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23883 test ! -s conftest.err
23885 ac_header_preproc=yes
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ac_header_preproc=no
23893 rm -f conftest.err conftest.$ac_ext
23894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23895 echo "${ECHO_T}$ac_header_preproc" >&6; }
23897 # So? What about this header?
23898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23904 ac_header_preproc=yes
23907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23920 ## ------------------------------- ##
23921 ## Report this to nfs@lists.sf.net ##
23922 ## ------------------------------- ##
23924 ) | sed "s/^/$as_me: WARNING: /" >&2
23927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 eval "$as_ac_Header=\$ac_header_preproc"
23934 ac_res=`eval echo '${'$as_ac_Header'}'`
23935 { echo "$as_me:$LINENO: result: $ac_res" >&5
23936 echo "${ECHO_T}$ac_res" >&6; }
23939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23940 cat >>confdefs.h <<_ACEOF
23941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23949 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23950 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23951 if test "${ac_cv_c_const+set}" = set; then
23952 echo $ECHO_N "(cached) $ECHO_C" >&6
23954 cat >conftest.$ac_ext <<_ACEOF
23957 cat confdefs.h >>conftest.$ac_ext
23958 cat >>conftest.$ac_ext <<_ACEOF
23959 /* end confdefs.h. */
23964 /* FIXME: Include the comments suggested by Paul. */
23965 #ifndef __cplusplus
23966 /* Ultrix mips cc rejects this. */
23967 typedef int charset[2];
23969 /* SunOS 4.1.1 cc rejects this. */
23970 char const *const *pcpcc;
23972 /* NEC SVR4.0.2 mips cc rejects this. */
23973 struct point {int x, y;};
23974 static struct point const zero = {0,0};
23975 /* AIX XL C 1.02.0.0 rejects this.
23976 It does not let you subtract one const X* pointer from another in
23977 an arm of an if-expression whose if-part is not a constant
23979 const char *g = "string";
23980 pcpcc = &g + (g ? g-g : 0);
23981 /* HPUX 7.0 cc rejects these. */
23983 ppc = (char**) pcpcc;
23984 pcpcc = (char const *const *) ppc;
23985 { /* SCO 3.2v4 cc rejects this. */
23987 char const *s = 0 ? (char *) 0 : (char const *) 0;
23992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23993 int x[] = {25, 17};
23994 const int *foo = &x[0];
23997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23998 typedef const int *iptr;
24002 { /* AIX XL C 1.02.0.0 rejects this saying
24003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24004 struct s { int j; const int *ap[3]; };
24005 struct s *b; b->j = 5;
24007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24008 const int foo = 10;
24009 if (!foo) return 0;
24011 return !cs[0] && !zero.x;
24018 rm -f conftest.$ac_objext
24019 if { (ac_try="$ac_compile"
24020 case "(($ac_try" in
24021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24022 *) ac_try_echo=$ac_try;;
24024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24025 (eval "$ac_compile") 2>conftest.er1
24027 grep -v '^ *+' conftest.er1 >conftest.err
24029 cat conftest.err >&5
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); } && {
24032 test -z "$ac_c_werror_flag" ||
24033 test ! -s conftest.err
24034 } && test -s conftest.$ac_objext; then
24037 echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24045 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24046 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24047 if test $ac_cv_c_const = no; then
24049 cat >>confdefs.h <<\_ACEOF
24055 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24056 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24057 if test "${ac_cv_type_uid_t+set}" = set; then
24058 echo $ECHO_N "(cached) $ECHO_C" >&6
24060 cat >conftest.$ac_ext <<_ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 #include <sys/types.h>
24069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24070 $EGREP "uid_t" >/dev/null 2>&1; then
24071 ac_cv_type_uid_t=yes
24073 ac_cv_type_uid_t=no
24078 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24079 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24080 if test $ac_cv_type_uid_t = no; then
24082 cat >>confdefs.h <<\_ACEOF
24087 cat >>confdefs.h <<\_ACEOF
24093 { echo "$as_me:$LINENO: checking for inline" >&5
24094 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24095 if test "${ac_cv_c_inline+set}" = set; then
24096 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 for ac_kw in inline __inline__ __inline; do
24100 cat >conftest.$ac_ext <<_ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24106 #ifndef __cplusplus
24108 static $ac_kw foo_t static_foo () {return 0; }
24109 $ac_kw foo_t foo () {return 0; }
24113 rm -f conftest.$ac_objext
24114 if { (ac_try="$ac_compile"
24115 case "(($ac_try" in
24116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117 *) ac_try_echo=$ac_try;;
24119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24120 (eval "$ac_compile") 2>conftest.er1
24122 grep -v '^ *+' conftest.er1 >conftest.err
24124 cat conftest.err >&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } && {
24127 test -z "$ac_c_werror_flag" ||
24128 test ! -s conftest.err
24129 } && test -s conftest.$ac_objext; then
24130 ac_cv_c_inline=$ac_kw
24132 echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24139 test "$ac_cv_c_inline" != no && break
24143 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24144 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24147 case $ac_cv_c_inline in
24150 case $ac_cv_c_inline in
24152 *) ac_val=$ac_cv_c_inline;;
24154 cat >>confdefs.h <<_ACEOF
24155 #ifndef __cplusplus
24156 #define inline $ac_val
24162 { echo "$as_me:$LINENO: checking for off_t" >&5
24163 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24164 if test "${ac_cv_type_off_t+set}" = set; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24167 cat >conftest.$ac_ext <<_ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24173 $ac_includes_default
24174 typedef off_t ac__type_new_;
24178 if ((ac__type_new_ *) 0)
24180 if (sizeof (ac__type_new_))
24186 rm -f conftest.$ac_objext
24187 if { (ac_try="$ac_compile"
24188 case "(($ac_try" in
24189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190 *) ac_try_echo=$ac_try;;
24192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24193 (eval "$ac_compile") 2>conftest.er1
24195 grep -v '^ *+' conftest.er1 >conftest.err
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } && {
24200 test -z "$ac_c_werror_flag" ||
24201 test ! -s conftest.err
24202 } && test -s conftest.$ac_objext; then
24203 ac_cv_type_off_t=yes
24205 echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24208 ac_cv_type_off_t=no
24211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24214 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24215 if test $ac_cv_type_off_t = yes; then
24219 cat >>confdefs.h <<_ACEOF
24220 #define off_t long int
24225 { echo "$as_me:$LINENO: checking for pid_t" >&5
24226 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24227 if test "${ac_cv_type_pid_t+set}" = set; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24230 cat >conftest.$ac_ext <<_ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h. */
24236 $ac_includes_default
24237 typedef pid_t ac__type_new_;
24241 if ((ac__type_new_ *) 0)
24243 if (sizeof (ac__type_new_))
24249 rm -f conftest.$ac_objext
24250 if { (ac_try="$ac_compile"
24251 case "(($ac_try" in
24252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253 *) ac_try_echo=$ac_try;;
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256 (eval "$ac_compile") 2>conftest.er1
24258 grep -v '^ *+' conftest.er1 >conftest.err
24260 cat conftest.err >&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && {
24263 test -z "$ac_c_werror_flag" ||
24264 test ! -s conftest.err
24265 } && test -s conftest.$ac_objext; then
24266 ac_cv_type_pid_t=yes
24268 echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24271 ac_cv_type_pid_t=no
24274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24276 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24277 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24278 if test $ac_cv_type_pid_t = yes; then
24282 cat >>confdefs.h <<_ACEOF
24288 { echo "$as_me:$LINENO: checking for size_t" >&5
24289 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24290 if test "${ac_cv_type_size_t+set}" = set; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24293 cat >conftest.$ac_ext <<_ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24299 $ac_includes_default
24300 typedef size_t ac__type_new_;
24304 if ((ac__type_new_ *) 0)
24306 if (sizeof (ac__type_new_))
24312 rm -f conftest.$ac_objext
24313 if { (ac_try="$ac_compile"
24314 case "(($ac_try" in
24315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_compile") 2>conftest.er1
24321 grep -v '^ *+' conftest.er1 >conftest.err
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } && {
24326 test -z "$ac_c_werror_flag" ||
24327 test ! -s conftest.err
24328 } && test -s conftest.$ac_objext; then
24329 ac_cv_type_size_t=yes
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24334 ac_cv_type_size_t=no
24337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24339 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24340 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24341 if test $ac_cv_type_size_t = yes; then
24345 cat >>confdefs.h <<_ACEOF
24346 #define size_t unsigned int
24351 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24352 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24353 if test "${ac_cv_header_time+set}" = set; then
24354 echo $ECHO_N "(cached) $ECHO_C" >&6
24356 cat >conftest.$ac_ext <<_ACEOF
24359 cat confdefs.h >>conftest.$ac_ext
24360 cat >>conftest.$ac_ext <<_ACEOF
24361 /* end confdefs.h. */
24362 #include <sys/types.h>
24363 #include <sys/time.h>
24369 if ((struct tm *) 0)
24375 rm -f conftest.$ac_objext
24376 if { (ac_try="$ac_compile"
24377 case "(($ac_try" in
24378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379 *) ac_try_echo=$ac_try;;
24381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382 (eval "$ac_compile") 2>conftest.er1
24384 grep -v '^ *+' conftest.er1 >conftest.err
24386 cat conftest.err >&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); } && {
24389 test -z "$ac_c_werror_flag" ||
24390 test ! -s conftest.err
24391 } && test -s conftest.$ac_objext; then
24392 ac_cv_header_time=yes
24394 echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24397 ac_cv_header_time=no
24400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24402 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24403 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24404 if test $ac_cv_header_time = yes; then
24406 cat >>confdefs.h <<\_ACEOF
24407 #define TIME_WITH_SYS_TIME 1
24412 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24413 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24414 if test "${ac_cv_struct_tm+set}" = set; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 cat >conftest.$ac_ext <<_ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h. */
24423 #include <sys/types.h>
24430 int *p = &tm.tm_sec;
24436 rm -f conftest.$ac_objext
24437 if { (ac_try="$ac_compile"
24438 case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_compile") 2>conftest.er1
24445 grep -v '^ *+' conftest.er1 >conftest.err
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && {
24450 test -z "$ac_c_werror_flag" ||
24451 test ! -s conftest.err
24452 } && test -s conftest.$ac_objext; then
24453 ac_cv_struct_tm=time.h
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24458 ac_cv_struct_tm=sys/time.h
24461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24463 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24464 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24465 if test $ac_cv_struct_tm = sys/time.h; then
24467 cat >>confdefs.h <<\_ACEOF
24468 #define TM_IN_SYS_TIME 1
24474 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24475 # for constant arguments. Useless!
24476 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24477 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24478 if test "${ac_cv_working_alloca_h+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 #include <alloca.h>
24491 char *p = (char *) alloca (2 * sizeof (int));
24497 rm -f conftest.$ac_objext conftest$ac_exeext
24498 if { (ac_try="$ac_link"
24499 case "(($ac_try" in
24500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24501 *) ac_try_echo=$ac_try;;
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504 (eval "$ac_link") 2>conftest.er1
24506 grep -v '^ *+' conftest.er1 >conftest.err
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } && {
24511 test -z "$ac_c_werror_flag" ||
24512 test ! -s conftest.err
24513 } && test -s conftest$ac_exeext &&
24514 $as_test_x conftest$ac_exeext; then
24515 ac_cv_working_alloca_h=yes
24517 echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24520 ac_cv_working_alloca_h=no
24523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24524 conftest$ac_exeext conftest.$ac_ext
24526 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24527 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24528 if test $ac_cv_working_alloca_h = yes; then
24530 cat >>confdefs.h <<\_ACEOF
24531 #define HAVE_ALLOCA_H 1
24536 { echo "$as_me:$LINENO: checking for alloca" >&5
24537 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24538 if test "${ac_cv_func_alloca_works+set}" = set; then
24539 echo $ECHO_N "(cached) $ECHO_C" >&6
24541 cat >conftest.$ac_ext <<_ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h. */
24548 # define alloca __builtin_alloca
24551 # include <malloc.h>
24552 # define alloca _alloca
24554 # ifdef HAVE_ALLOCA_H
24555 # include <alloca.h>
24560 # ifndef alloca /* predefined by HP cc +Olibcalls */
24571 char *p = (char *) alloca (1);
24577 rm -f conftest.$ac_objext conftest$ac_exeext
24578 if { (ac_try="$ac_link"
24579 case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_link") 2>conftest.er1
24586 grep -v '^ *+' conftest.er1 >conftest.err
24588 cat conftest.err >&5
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); } && {
24591 test -z "$ac_c_werror_flag" ||
24592 test ! -s conftest.err
24593 } && test -s conftest$ac_exeext &&
24594 $as_test_x conftest$ac_exeext; then
24595 ac_cv_func_alloca_works=yes
24597 echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24600 ac_cv_func_alloca_works=no
24603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24604 conftest$ac_exeext conftest.$ac_ext
24606 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24607 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24609 if test $ac_cv_func_alloca_works = yes; then
24611 cat >>confdefs.h <<\_ACEOF
24612 #define HAVE_ALLOCA 1
24616 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24617 # that cause trouble. Some versions do not even contain alloca or
24618 # contain a buggy version. If you still want to use their alloca,
24619 # use ar to extract alloca.o from them instead of compiling alloca.c.
24621 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24623 cat >>confdefs.h <<\_ACEOF
24628 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24629 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24630 if test "${ac_cv_os_cray+set}" = set; then
24631 echo $ECHO_N "(cached) $ECHO_C" >&6
24633 cat >conftest.$ac_ext <<_ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h. */
24639 #if defined CRAY && ! defined CRAY2
24646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24647 $EGREP "webecray" >/dev/null 2>&1; then
24655 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24656 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24657 if test $ac_cv_os_cray = yes; then
24658 for ac_func in _getb67 GETB67 getb67; do
24659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24663 echo $ECHO_N "(cached) $ECHO_C" >&6
24665 cat >conftest.$ac_ext <<_ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24673 #define $ac_func innocuous_$ac_func
24675 /* System header to define __stub macros and hopefully few prototypes,
24676 which can conflict with char $ac_func (); below.
24677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24678 <limits.h> exists even on freestanding compilers. */
24681 # include <limits.h>
24683 # include <assert.h>
24688 /* Override any GCC internal prototype to avoid an error.
24689 Use char because int might match the return type of a GCC
24690 builtin and then its argument prototype would still apply. */
24695 /* The GNU C library defines this for functions which it implements
24696 to always fail with ENOSYS. Some functions are actually named
24697 something starting with __ and the normal name is an alias. */
24698 #if defined __stub_$ac_func || defined __stub___$ac_func
24705 return $ac_func ();
24710 rm -f conftest.$ac_objext conftest$ac_exeext
24711 if { (ac_try="$ac_link"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_link") 2>conftest.er1
24719 grep -v '^ *+' conftest.er1 >conftest.err
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } && {
24724 test -z "$ac_c_werror_flag" ||
24725 test ! -s conftest.err
24726 } && test -s conftest$ac_exeext &&
24727 $as_test_x conftest$ac_exeext; then
24728 eval "$as_ac_var=yes"
24730 echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24733 eval "$as_ac_var=no"
24736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24737 conftest$ac_exeext conftest.$ac_ext
24739 ac_res=`eval echo '${'$as_ac_var'}'`
24740 { echo "$as_me:$LINENO: result: $ac_res" >&5
24741 echo "${ECHO_T}$ac_res" >&6; }
24742 if test `eval echo '${'$as_ac_var'}'` = yes; then
24744 cat >>confdefs.h <<_ACEOF
24745 #define CRAY_STACKSEG_END $ac_func
24754 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24755 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24756 if test "${ac_cv_c_stack_direction+set}" = set; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 if test "$cross_compiling" = yes; then
24760 ac_cv_c_stack_direction=0
24762 cat >conftest.$ac_ext <<_ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 $ac_includes_default
24770 find_stack_direction ()
24772 static char *addr = 0;
24777 return find_stack_direction ();
24780 return (&dummy > addr) ? 1 : -1;
24786 return find_stack_direction () < 0;
24789 rm -f conftest$ac_exeext
24790 if { (ac_try="$ac_link"
24791 case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796 (eval "$ac_link") 2>&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24800 { (case "(($ac_try" in
24801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805 (eval "$ac_try") 2>&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; }; then
24809 ac_cv_c_stack_direction=1
24811 echo "$as_me: program exited with status $ac_status" >&5
24812 echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24815 ( exit $ac_status )
24816 ac_cv_c_stack_direction=-1
24818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24823 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24824 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24826 cat >>confdefs.h <<_ACEOF
24827 #define STACK_DIRECTION $ac_cv_c_stack_direction
24838 ac_header_dirent=no
24839 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24840 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24841 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24842 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24844 echo $ECHO_N "(cached) $ECHO_C" >&6
24846 cat >conftest.$ac_ext <<_ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h. */
24852 #include <sys/types.h>
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_compile") 2>conftest.er1
24873 grep -v '^ *+' conftest.er1 >conftest.err
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } && {
24878 test -z "$ac_c_werror_flag" ||
24879 test ! -s conftest.err
24880 } && test -s conftest.$ac_objext; then
24881 eval "$as_ac_Header=yes"
24883 echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24886 eval "$as_ac_Header=no"
24889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 ac_res=`eval echo '${'$as_ac_Header'}'`
24892 { echo "$as_me:$LINENO: result: $ac_res" >&5
24893 echo "${ECHO_T}$ac_res" >&6; }
24894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24899 ac_header_dirent=$ac_hdr; break
24903 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24904 if test $ac_header_dirent = dirent.h; then
24905 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24906 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24907 if test "${ac_cv_search_opendir+set}" = set; then
24908 echo $ECHO_N "(cached) $ECHO_C" >&6
24910 ac_func_search_save_LIBS=$LIBS
24911 cat >conftest.$ac_ext <<_ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h. */
24918 /* Override any GCC internal prototype to avoid an error.
24919 Use char because int might match the return type of a GCC
24920 builtin and then its argument prototype would still apply. */
24933 for ac_lib in '' dir; do
24934 if test -z "$ac_lib"; then
24935 ac_res="none required"
24938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24940 rm -f conftest.$ac_objext conftest$ac_exeext
24941 if { (ac_try="$ac_link"
24942 case "(($ac_try" in
24943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944 *) ac_try_echo=$ac_try;;
24946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947 (eval "$ac_link") 2>conftest.er1
24949 grep -v '^ *+' conftest.er1 >conftest.err
24951 cat conftest.err >&5
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); } && {
24954 test -z "$ac_c_werror_flag" ||
24955 test ! -s conftest.err
24956 } && test -s conftest$ac_exeext &&
24957 $as_test_x conftest$ac_exeext; then
24958 ac_cv_search_opendir=$ac_res
24960 echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24968 if test "${ac_cv_search_opendir+set}" = set; then
24972 if test "${ac_cv_search_opendir+set}" = set; then
24975 ac_cv_search_opendir=no
24977 rm conftest.$ac_ext
24978 LIBS=$ac_func_search_save_LIBS
24980 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24981 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24982 ac_res=$ac_cv_search_opendir
24983 if test "$ac_res" != no; then
24984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24989 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24990 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24991 if test "${ac_cv_search_opendir+set}" = set; then
24992 echo $ECHO_N "(cached) $ECHO_C" >&6
24994 ac_func_search_save_LIBS=$LIBS
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25002 /* Override any GCC internal prototype to avoid an error.
25003 Use char because int might match the return type of a GCC
25004 builtin and then its argument prototype would still apply. */
25017 for ac_lib in '' x; do
25018 if test -z "$ac_lib"; then
25019 ac_res="none required"
25022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25024 rm -f conftest.$ac_objext conftest$ac_exeext
25025 if { (ac_try="$ac_link"
25026 case "(($ac_try" in
25027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031 (eval "$ac_link") 2>conftest.er1
25033 grep -v '^ *+' conftest.er1 >conftest.err
25035 cat conftest.err >&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } && {
25038 test -z "$ac_c_werror_flag" ||
25039 test ! -s conftest.err
25040 } && test -s conftest$ac_exeext &&
25041 $as_test_x conftest$ac_exeext; then
25042 ac_cv_search_opendir=$ac_res
25044 echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25052 if test "${ac_cv_search_opendir+set}" = set; then
25056 if test "${ac_cv_search_opendir+set}" = set; then
25059 ac_cv_search_opendir=no
25061 rm conftest.$ac_ext
25062 LIBS=$ac_func_search_save_LIBS
25064 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25065 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25066 ac_res=$ac_cv_search_opendir
25067 if test "$ac_res" != no; then
25068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25074 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25075 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25076 if test "${ac_cv_func_closedir_void+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25079 if test "$cross_compiling" = yes; then
25080 ac_cv_func_closedir_void=yes
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25088 $ac_includes_default
25089 #include <$ac_header_dirent>
25090 #ifndef __cplusplus
25097 return closedir (opendir (".")) != 0;
25102 rm -f conftest$ac_exeext
25103 if { (ac_try="$ac_link"
25104 case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_link") 2>&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25113 { (case "(($ac_try" in
25114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115 *) ac_try_echo=$ac_try;;
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118 (eval "$ac_try") 2>&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; }; then
25122 ac_cv_func_closedir_void=no
25124 echo "$as_me: program exited with status $ac_status" >&5
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25128 ( exit $ac_status )
25129 ac_cv_func_closedir_void=yes
25131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25136 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25137 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25138 if test $ac_cv_func_closedir_void = yes; then
25140 cat >>confdefs.h <<\_ACEOF
25141 #define CLOSEDIR_VOID 1
25146 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25147 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25148 if test "${ac_cv_lib_error_at_line+set}" = set; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25151 cat >conftest.$ac_ext <<_ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25161 error_at_line (0, 0, "", 0, "an error occurred");
25166 rm -f conftest.$ac_objext conftest$ac_exeext
25167 if { (ac_try="$ac_link"
25168 case "(($ac_try" in
25169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25170 *) ac_try_echo=$ac_try;;
25172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25173 (eval "$ac_link") 2>conftest.er1
25175 grep -v '^ *+' conftest.er1 >conftest.err
25177 cat conftest.err >&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); } && {
25180 test -z "$ac_c_werror_flag" ||
25181 test ! -s conftest.err
25182 } && test -s conftest$ac_exeext &&
25183 $as_test_x conftest$ac_exeext; then
25184 ac_cv_lib_error_at_line=yes
25186 echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25189 ac_cv_lib_error_at_line=no
25192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25193 conftest$ac_exeext conftest.$ac_ext
25195 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25196 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25197 if test $ac_cv_lib_error_at_line = no; then
25198 case " $LIBOBJS " in
25199 *" error.$ac_objext "* ) ;;
25200 *) LIBOBJS="$LIBOBJS error.$ac_objext"
25207 for ac_header in vfork.h
25209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25214 echo $ECHO_N "(cached) $ECHO_C" >&6
25216 ac_res=`eval echo '${'$as_ac_Header'}'`
25217 { echo "$as_me:$LINENO: result: $ac_res" >&5
25218 echo "${ECHO_T}$ac_res" >&6; }
25220 # Is the header compilable?
25221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25229 $ac_includes_default
25230 #include <$ac_header>
25232 rm -f conftest.$ac_objext
25233 if { (ac_try="$ac_compile"
25234 case "(($ac_try" in
25235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236 *) ac_try_echo=$ac_try;;
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239 (eval "$ac_compile") 2>conftest.er1
25241 grep -v '^ *+' conftest.er1 >conftest.err
25243 cat conftest.err >&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); } && {
25246 test -z "$ac_c_werror_flag" ||
25247 test ! -s conftest.err
25248 } && test -s conftest.$ac_objext; then
25249 ac_header_compiler=yes
25251 echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25254 ac_header_compiler=no
25257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25259 echo "${ECHO_T}$ac_header_compiler" >&6; }
25261 # Is the header present?
25262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25264 cat >conftest.$ac_ext <<_ACEOF
25267 cat confdefs.h >>conftest.$ac_ext
25268 cat >>conftest.$ac_ext <<_ACEOF
25269 /* end confdefs.h. */
25270 #include <$ac_header>
25272 if { (ac_try="$ac_cpp conftest.$ac_ext"
25273 case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } >/dev/null && {
25285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25288 ac_header_preproc=yes
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_header_preproc=no
25296 rm -f conftest.err conftest.$ac_ext
25297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25298 echo "${ECHO_T}$ac_header_preproc" >&6; }
25300 # So? What about this header?
25301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25307 ac_header_preproc=yes
25310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25323 ## ------------------------------- ##
25324 ## Report this to nfs@lists.sf.net ##
25325 ## ------------------------------- ##
25327 ) | sed "s/^/$as_me: WARNING: /" >&2
25330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25333 echo $ECHO_N "(cached) $ECHO_C" >&6
25335 eval "$as_ac_Header=\$ac_header_preproc"
25337 ac_res=`eval echo '${'$as_ac_Header'}'`
25338 { echo "$as_me:$LINENO: result: $ac_res" >&5
25339 echo "${ECHO_T}$ac_res" >&6; }
25342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25343 cat >>confdefs.h <<_ACEOF
25344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25353 for ac_func in fork vfork
25355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25369 #define $ac_func innocuous_$ac_func
25371 /* System header to define __stub macros and hopefully few prototypes,
25372 which can conflict with char $ac_func (); below.
25373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25374 <limits.h> exists even on freestanding compilers. */
25377 # include <limits.h>
25379 # include <assert.h>
25384 /* Override any GCC internal prototype to avoid an error.
25385 Use char because int might match the return type of a GCC
25386 builtin and then its argument prototype would still apply. */
25391 /* The GNU C library defines this for functions which it implements
25392 to always fail with ENOSYS. Some functions are actually named
25393 something starting with __ and the normal name is an alias. */
25394 #if defined __stub_$ac_func || defined __stub___$ac_func
25401 return $ac_func ();
25406 rm -f conftest.$ac_objext conftest$ac_exeext
25407 if { (ac_try="$ac_link"
25408 case "(($ac_try" in
25409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25410 *) ac_try_echo=$ac_try;;
25412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25413 (eval "$ac_link") 2>conftest.er1
25415 grep -v '^ *+' conftest.er1 >conftest.err
25417 cat conftest.err >&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } && {
25420 test -z "$ac_c_werror_flag" ||
25421 test ! -s conftest.err
25422 } && test -s conftest$ac_exeext &&
25423 $as_test_x conftest$ac_exeext; then
25424 eval "$as_ac_var=yes"
25426 echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25429 eval "$as_ac_var=no"
25432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25433 conftest$ac_exeext conftest.$ac_ext
25435 ac_res=`eval echo '${'$as_ac_var'}'`
25436 { echo "$as_me:$LINENO: result: $ac_res" >&5
25437 echo "${ECHO_T}$ac_res" >&6; }
25438 if test `eval echo '${'$as_ac_var'}'` = yes; then
25439 cat >>confdefs.h <<_ACEOF
25440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25446 if test "x$ac_cv_func_fork" = xyes; then
25447 { echo "$as_me:$LINENO: checking for working fork" >&5
25448 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25449 if test "${ac_cv_func_fork_works+set}" = set; then
25450 echo $ECHO_N "(cached) $ECHO_C" >&6
25452 if test "$cross_compiling" = yes; then
25453 ac_cv_func_fork_works=cross
25455 cat >conftest.$ac_ext <<_ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h. */
25461 $ac_includes_default
25466 /* By Ruediger Kuhlmann. */
25467 return fork () < 0;
25473 rm -f conftest$ac_exeext
25474 if { (ac_try="$ac_link"
25475 case "(($ac_try" in
25476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25477 *) ac_try_echo=$ac_try;;
25479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25480 (eval "$ac_link") 2>&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25484 { (case "(($ac_try" in
25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486 *) ac_try_echo=$ac_try;;
25488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25489 (eval "$ac_try") 2>&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; }; then
25493 ac_cv_func_fork_works=yes
25495 echo "$as_me: program exited with status $ac_status" >&5
25496 echo "$as_me: failed program was:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25499 ( exit $ac_status )
25500 ac_cv_func_fork_works=no
25502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25507 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25508 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25511 ac_cv_func_fork_works=$ac_cv_func_fork
25513 if test "x$ac_cv_func_fork_works" = xcross; then
25515 *-*-amigaos* | *-*-msdosdjgpp*)
25516 # Override, as these systems have only a dummy fork() stub
25517 ac_cv_func_fork_works=no
25520 ac_cv_func_fork_works=yes
25523 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25524 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25526 ac_cv_func_vfork_works=$ac_cv_func_vfork
25527 if test "x$ac_cv_func_vfork" = xyes; then
25528 { echo "$as_me:$LINENO: checking for working vfork" >&5
25529 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25530 if test "${ac_cv_func_vfork_works+set}" = set; then
25531 echo $ECHO_N "(cached) $ECHO_C" >&6
25533 if test "$cross_compiling" = yes; then
25534 ac_cv_func_vfork_works=cross
25536 cat >conftest.$ac_ext <<_ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h. */
25542 /* Thanks to Paul Eggert for this test. */
25543 $ac_includes_default
25544 #include <sys/wait.h>
25545 #ifdef HAVE_VFORK_H
25546 # include <vfork.h>
25548 /* On some sparc systems, changes by the child to local and incoming
25549 argument registers are propagated back to the parent. The compiler
25550 is told about this with #include <vfork.h>, but some compilers
25551 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25552 static variable whose address is put into a register that is
25553 clobbered by the vfork. */
25556 sparc_address_test (int arg)
25558 sparc_address_test (arg) int arg;
25561 static pid_t child;
25579 pid_t parent = getpid ();
25582 sparc_address_test (0);
25587 /* Here is another test for sparc vfork register problems. This
25588 test uses lots of local variables, at least as many local
25589 variables as main has allocated so far including compiler
25590 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25591 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25592 reuse the register of parent for one of the local variables,
25593 since it will think that parent can't possibly be used any more
25594 in this routine. Assigning to the local variable will thus
25595 munge parent in the parent process. */
25597 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25598 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25599 /* Convince the compiler that p..p7 are live; otherwise, it might
25600 use the same hardware register for all 8 local variables. */
25601 if (p != p1 || p != p2 || p != p3 || p != p4
25602 || p != p5 || p != p6 || p != p7)
25605 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25606 from child file descriptors. If the child closes a descriptor
25607 before it execs or exits, this munges the parent's descriptor
25608 as well. Test for this by closing stdout in the child. */
25609 _exit(close(fileno(stdout)) != 0);
25614 while (wait(&status) != child)
25617 /* Was there some problem with vforking? */
25620 /* Did the child fail? (This shouldn't happen.) */
25623 /* Did the vfork/compiler bug occur? */
25624 || parent != getpid()
25626 /* Did the file descriptor bug occur? */
25627 || fstat(fileno(stdout), &st) != 0
25632 rm -f conftest$ac_exeext
25633 if { (ac_try="$ac_link"
25634 case "(($ac_try" in
25635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636 *) ac_try_echo=$ac_try;;
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639 (eval "$ac_link") 2>&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25643 { (case "(($ac_try" in
25644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25645 *) ac_try_echo=$ac_try;;
25647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25648 (eval "$ac_try") 2>&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); }; }; then
25652 ac_cv_func_vfork_works=yes
25654 echo "$as_me: program exited with status $ac_status" >&5
25655 echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25658 ( exit $ac_status )
25659 ac_cv_func_vfork_works=no
25661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25666 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25667 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25670 if test "x$ac_cv_func_fork_works" = xcross; then
25671 ac_cv_func_vfork_works=$ac_cv_func_vfork
25672 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25673 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25676 if test "x$ac_cv_func_vfork_works" = xyes; then
25678 cat >>confdefs.h <<\_ACEOF
25679 #define HAVE_WORKING_VFORK 1
25684 cat >>confdefs.h <<\_ACEOF
25689 if test "x$ac_cv_func_fork_works" = xyes; then
25691 cat >>confdefs.h <<\_ACEOF
25692 #define HAVE_WORKING_FORK 1
25697 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25698 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25699 if test "${ac_cv_type_getgroups+set}" = set; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25702 if test "$cross_compiling" = yes; then
25703 ac_cv_type_getgroups=cross
25705 cat >conftest.$ac_ext <<_ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h. */
25711 /* Thanks to Mike Rendell for this test. */
25712 $ac_includes_default
25715 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25720 gid_t gidset[NGID];
25722 union { gid_t gval; long int lval; } val;
25725 for (i = 0; i < NGID; i++)
25726 gidset[i] = val.gval;
25727 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25729 /* Exit non-zero if getgroups seems to require an array of ints. This
25730 happens when gid_t is short int but getgroups modifies an array
25732 return n > 0 && gidset[n] != val.gval;
25735 rm -f conftest$ac_exeext
25736 if { (ac_try="$ac_link"
25737 case "(($ac_try" in
25738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25739 *) ac_try_echo=$ac_try;;
25741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25742 (eval "$ac_link") 2>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25746 { (case "(($ac_try" in
25747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25748 *) ac_try_echo=$ac_try;;
25750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25751 (eval "$ac_try") 2>&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; }; then
25755 ac_cv_type_getgroups=gid_t
25757 echo "$as_me: program exited with status $ac_status" >&5
25758 echo "$as_me: failed program was:" >&5
25759 sed 's/^/| /' conftest.$ac_ext >&5
25761 ( exit $ac_status )
25762 ac_cv_type_getgroups=int
25764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25768 if test $ac_cv_type_getgroups = cross; then
25769 cat >conftest.$ac_ext <<_ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h. */
25775 #include <unistd.h>
25778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25779 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25780 ac_cv_type_getgroups=gid_t
25782 ac_cv_type_getgroups=int
25788 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25789 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25791 cat >>confdefs.h <<_ACEOF
25792 #define GETGROUPS_T $ac_cv_type_getgroups
25796 { echo "$as_me:$LINENO: checking for getgroups" >&5
25797 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25798 if test "${ac_cv_func_getgroups+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25801 cat >conftest.$ac_ext <<_ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h. */
25807 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25809 #define getgroups innocuous_getgroups
25811 /* System header to define __stub macros and hopefully few prototypes,
25812 which can conflict with char getgroups (); below.
25813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25814 <limits.h> exists even on freestanding compilers. */
25817 # include <limits.h>
25819 # include <assert.h>
25824 /* Override any GCC internal prototype to avoid an error.
25825 Use char because int might match the return type of a GCC
25826 builtin and then its argument prototype would still apply. */
25831 /* The GNU C library defines this for functions which it implements
25832 to always fail with ENOSYS. Some functions are actually named
25833 something starting with __ and the normal name is an alias. */
25834 #if defined __stub_getgroups || defined __stub___getgroups
25841 return getgroups ();
25846 rm -f conftest.$ac_objext conftest$ac_exeext
25847 if { (ac_try="$ac_link"
25848 case "(($ac_try" in
25849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850 *) ac_try_echo=$ac_try;;
25852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25853 (eval "$ac_link") 2>conftest.er1
25855 grep -v '^ *+' conftest.er1 >conftest.err
25857 cat conftest.err >&5
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); } && {
25860 test -z "$ac_c_werror_flag" ||
25861 test ! -s conftest.err
25862 } && test -s conftest$ac_exeext &&
25863 $as_test_x conftest$ac_exeext; then
25864 ac_cv_func_getgroups=yes
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25869 ac_cv_func_getgroups=no
25872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25873 conftest$ac_exeext conftest.$ac_ext
25875 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25876 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25879 # If we don't yet have getgroups, see if it's in -lbsd.
25880 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25882 if test $ac_cv_func_getgroups = no; then
25883 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25884 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25885 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 ac_check_lib_save_LIBS=$LIBS
25890 cat >conftest.$ac_ext <<_ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25897 /* Override any GCC internal prototype to avoid an error.
25898 Use char because int might match the return type of a GCC
25899 builtin and then its argument prototype would still apply. */
25907 return getgroups ();
25912 rm -f conftest.$ac_objext conftest$ac_exeext
25913 if { (ac_try="$ac_link"
25914 case "(($ac_try" in
25915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25916 *) ac_try_echo=$ac_try;;
25918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25919 (eval "$ac_link") 2>conftest.er1
25921 grep -v '^ *+' conftest.er1 >conftest.err
25923 cat conftest.err >&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); } && {
25926 test -z "$ac_c_werror_flag" ||
25927 test ! -s conftest.err
25928 } && test -s conftest$ac_exeext &&
25929 $as_test_x conftest$ac_exeext; then
25930 ac_cv_lib_bsd_getgroups=yes
25932 echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25935 ac_cv_lib_bsd_getgroups=no
25938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25939 conftest$ac_exeext conftest.$ac_ext
25940 LIBS=$ac_check_lib_save_LIBS
25942 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25943 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25944 if test $ac_cv_lib_bsd_getgroups = yes; then
25945 GETGROUPS_LIB=-lbsd
25950 # Run the program to test the functionality of the system-supplied
25951 # getgroups function only if there is such a function.
25952 if test $ac_cv_func_getgroups = yes; then
25953 { echo "$as_me:$LINENO: checking for working getgroups" >&5
25954 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25955 if test "${ac_cv_func_getgroups_works+set}" = set; then
25956 echo $ECHO_N "(cached) $ECHO_C" >&6
25958 if test "$cross_compiling" = yes; then
25959 ac_cv_func_getgroups_works=no
25961 cat >conftest.$ac_ext <<_ACEOF
25964 cat confdefs.h >>conftest.$ac_ext
25965 cat >>conftest.$ac_ext <<_ACEOF
25966 /* end confdefs.h. */
25967 $ac_includes_default
25971 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25972 return getgroups (0, 0) == -1;
25977 rm -f conftest$ac_exeext
25978 if { (ac_try="$ac_link"
25979 case "(($ac_try" in
25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981 *) ac_try_echo=$ac_try;;
25983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984 (eval "$ac_link") 2>&5
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25988 { (case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993 (eval "$ac_try") 2>&5
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; }; then
25997 ac_cv_func_getgroups_works=yes
25999 echo "$as_me: program exited with status $ac_status" >&5
26000 echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26003 ( exit $ac_status )
26004 ac_cv_func_getgroups_works=no
26006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26012 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26013 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26014 if test $ac_cv_func_getgroups_works = yes; then
26016 cat >>confdefs.h <<\_ACEOF
26017 #define HAVE_GETGROUPS 1
26024 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26025 # -lseq on Dynix/PTX, -lgen on Unixware.
26026 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26027 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26028 if test "${ac_cv_search_getmntent+set}" = set; then
26029 echo $ECHO_N "(cached) $ECHO_C" >&6
26031 ac_func_search_save_LIBS=$LIBS
26032 cat >conftest.$ac_ext <<_ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h. */
26039 /* Override any GCC internal prototype to avoid an error.
26040 Use char because int might match the return type of a GCC
26041 builtin and then its argument prototype would still apply. */
26049 return getmntent ();
26054 for ac_lib in '' sun seq gen; do
26055 if test -z "$ac_lib"; then
26056 ac_res="none required"
26059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26061 rm -f conftest.$ac_objext conftest$ac_exeext
26062 if { (ac_try="$ac_link"
26063 case "(($ac_try" in
26064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065 *) ac_try_echo=$ac_try;;
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068 (eval "$ac_link") 2>conftest.er1
26070 grep -v '^ *+' conftest.er1 >conftest.err
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } && {
26075 test -z "$ac_c_werror_flag" ||
26076 test ! -s conftest.err
26077 } && test -s conftest$ac_exeext &&
26078 $as_test_x conftest$ac_exeext; then
26079 ac_cv_search_getmntent=$ac_res
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26089 if test "${ac_cv_search_getmntent+set}" = set; then
26093 if test "${ac_cv_search_getmntent+set}" = set; then
26096 ac_cv_search_getmntent=no
26098 rm conftest.$ac_ext
26099 LIBS=$ac_func_search_save_LIBS
26101 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26102 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26103 ac_res=$ac_cv_search_getmntent
26104 if test "$ac_res" != no; then
26105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26106 ac_cv_func_getmntent=yes
26108 cat >>confdefs.h <<\_ACEOF
26109 #define HAVE_GETMNTENT 1
26113 ac_cv_func_getmntent=no
26117 if test $ac_cv_c_compiler_gnu = yes; then
26118 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26119 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26120 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26121 echo $ECHO_N "(cached) $ECHO_C" >&6
26123 ac_pattern="Autoconf.*'x'"
26124 cat >conftest.$ac_ext <<_ACEOF
26127 cat confdefs.h >>conftest.$ac_ext
26128 cat >>conftest.$ac_ext <<_ACEOF
26129 /* end confdefs.h. */
26133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26134 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26135 ac_cv_prog_gcc_traditional=yes
26137 ac_cv_prog_gcc_traditional=no
26142 if test $ac_cv_prog_gcc_traditional = no; then
26143 cat >conftest.$ac_ext <<_ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h. */
26149 #include <termio.h>
26152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26153 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26154 ac_cv_prog_gcc_traditional=yes
26160 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26161 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26162 if test $ac_cv_prog_gcc_traditional = yes; then
26163 CC="$CC -traditional"
26167 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26168 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26169 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26170 echo $ECHO_N "(cached) $ECHO_C" >&6
26172 rm -f conftest.sym conftest.file
26173 echo >conftest.file
26174 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26175 if test "$cross_compiling" = yes; then
26176 ac_cv_func_lstat_dereferences_slashed_symlink=no
26178 cat >conftest.$ac_ext <<_ACEOF
26181 cat confdefs.h >>conftest.$ac_ext
26182 cat >>conftest.$ac_ext <<_ACEOF
26183 /* end confdefs.h. */
26184 $ac_includes_default
26189 /* Linux will dereference the symlink and fail.
26190 That is better in the sense that it means we will not
26191 have to compile and use the lstat wrapper. */
26192 return lstat ("conftest.sym/", &sbuf) == 0;
26197 rm -f conftest$ac_exeext
26198 if { (ac_try="$ac_link"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_link") 2>&5
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26208 { (case "(($ac_try" in
26209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26210 *) ac_try_echo=$ac_try;;
26212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26213 (eval "$ac_try") 2>&5
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); }; }; then
26217 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26219 echo "$as_me: program exited with status $ac_status" >&5
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 ( exit $ac_status )
26224 ac_cv_func_lstat_dereferences_slashed_symlink=no
26226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26231 # If the `ln -s' command failed, then we probably don't even
26232 # have an lstat function.
26233 ac_cv_func_lstat_dereferences_slashed_symlink=no
26235 rm -f conftest.sym conftest.file
26238 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26239 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26241 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26243 cat >>confdefs.h <<_ACEOF
26244 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26248 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26249 case " $LIBOBJS " in
26250 *" lstat.$ac_objext "* ) ;;
26251 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26257 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26258 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26259 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26260 echo $ECHO_N "(cached) $ECHO_C" >&6
26262 if test "$cross_compiling" = yes; then
26263 ac_cv_func_lstat_empty_string_bug=yes
26265 cat >conftest.$ac_ext <<_ACEOF
26268 cat confdefs.h >>conftest.$ac_ext
26269 cat >>conftest.$ac_ext <<_ACEOF
26270 /* end confdefs.h. */
26271 $ac_includes_default
26276 return lstat ("", &sbuf) == 0;
26281 rm -f conftest$ac_exeext
26282 if { (ac_try="$ac_link"
26283 case "(($ac_try" in
26284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285 *) ac_try_echo=$ac_try;;
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288 (eval "$ac_link") 2>&5
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26292 { (case "(($ac_try" in
26293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294 *) ac_try_echo=$ac_try;;
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297 (eval "$ac_try") 2>&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; }; then
26301 ac_cv_func_lstat_empty_string_bug=no
26303 echo "$as_me: program exited with status $ac_status" >&5
26304 echo "$as_me: failed program was:" >&5
26305 sed 's/^/| /' conftest.$ac_ext >&5
26307 ( exit $ac_status )
26308 ac_cv_func_lstat_empty_string_bug=yes
26310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26315 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26316 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26317 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26318 case " $LIBOBJS " in
26319 *" lstat.$ac_objext "* ) ;;
26320 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26325 cat >>confdefs.h <<_ACEOF
26326 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26331 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26332 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26333 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26334 echo $ECHO_N "(cached) $ECHO_C" >&6
26336 rm -f conftest.sym conftest.file
26337 echo >conftest.file
26338 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26339 if test "$cross_compiling" = yes; then
26340 ac_cv_func_lstat_dereferences_slashed_symlink=no
26342 cat >conftest.$ac_ext <<_ACEOF
26345 cat confdefs.h >>conftest.$ac_ext
26346 cat >>conftest.$ac_ext <<_ACEOF
26347 /* end confdefs.h. */
26348 $ac_includes_default
26353 /* Linux will dereference the symlink and fail.
26354 That is better in the sense that it means we will not
26355 have to compile and use the lstat wrapper. */
26356 return lstat ("conftest.sym/", &sbuf) == 0;
26361 rm -f conftest$ac_exeext
26362 if { (ac_try="$ac_link"
26363 case "(($ac_try" in
26364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26365 *) ac_try_echo=$ac_try;;
26367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26368 (eval "$ac_link") 2>&5
26370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26372 { (case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_try") 2>&5
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); }; }; then
26381 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26383 echo "$as_me: program exited with status $ac_status" >&5
26384 echo "$as_me: failed program was:" >&5
26385 sed 's/^/| /' conftest.$ac_ext >&5
26387 ( exit $ac_status )
26388 ac_cv_func_lstat_dereferences_slashed_symlink=no
26390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26395 # If the `ln -s' command failed, then we probably don't even
26396 # have an lstat function.
26397 ac_cv_func_lstat_dereferences_slashed_symlink=no
26399 rm -f conftest.sym conftest.file
26402 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26403 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26405 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26407 cat >>confdefs.h <<_ACEOF
26408 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26412 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26413 case " $LIBOBJS " in
26414 *" lstat.$ac_objext "* ) ;;
26415 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26421 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26422 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26423 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 cat >conftest.$ac_ext <<_ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h. */
26432 #include <sys/types.h>
26436 return makedev(0, 0);
26441 rm -f conftest.$ac_objext conftest$ac_exeext
26442 if { (ac_try="$ac_link"
26443 case "(($ac_try" in
26444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445 *) ac_try_echo=$ac_try;;
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448 (eval "$ac_link") 2>conftest.er1
26450 grep -v '^ *+' conftest.er1 >conftest.err
26452 cat conftest.err >&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); } && {
26455 test -z "$ac_c_werror_flag" ||
26456 test ! -s conftest.err
26457 } && test -s conftest$ac_exeext &&
26458 $as_test_x conftest$ac_exeext; then
26459 ac_cv_header_sys_types_h_makedev=yes
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ac_cv_header_sys_types_h_makedev=no
26467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26468 conftest$ac_exeext conftest.$ac_ext
26471 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26472 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26474 if test $ac_cv_header_sys_types_h_makedev = no; then
26475 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26476 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26477 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26478 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26479 echo $ECHO_N "(cached) $ECHO_C" >&6
26481 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26482 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26484 # Is the header compilable?
26485 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26486 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26487 cat >conftest.$ac_ext <<_ACEOF
26490 cat confdefs.h >>conftest.$ac_ext
26491 cat >>conftest.$ac_ext <<_ACEOF
26492 /* end confdefs.h. */
26493 $ac_includes_default
26494 #include <sys/mkdev.h>
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26500 *) ac_try_echo=$ac_try;;
26502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26503 (eval "$ac_compile") 2>conftest.er1
26505 grep -v '^ *+' conftest.er1 >conftest.err
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } && {
26510 test -z "$ac_c_werror_flag" ||
26511 test ! -s conftest.err
26512 } && test -s conftest.$ac_objext; then
26513 ac_header_compiler=yes
26515 echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26518 ac_header_compiler=no
26521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26523 echo "${ECHO_T}$ac_header_compiler" >&6; }
26525 # Is the header present?
26526 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26527 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26528 cat >conftest.$ac_ext <<_ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h. */
26534 #include <sys/mkdev.h>
26536 if { (ac_try="$ac_cpp conftest.$ac_ext"
26537 case "(($ac_try" in
26538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26539 *) ac_try_echo=$ac_try;;
26541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26544 grep -v '^ *+' conftest.er1 >conftest.err
26546 cat conftest.err >&5
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); } >/dev/null && {
26549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26550 test ! -s conftest.err
26552 ac_header_preproc=yes
26554 echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26557 ac_header_preproc=no
26560 rm -f conftest.err conftest.$ac_ext
26561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26562 echo "${ECHO_T}$ac_header_preproc" >&6; }
26564 # So? What about this header?
26565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26567 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26568 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26569 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26570 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26571 ac_header_preproc=yes
26574 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26575 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26577 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26579 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26580 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26581 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26582 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26583 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26584 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26585 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26587 ## ------------------------------- ##
26588 ## Report this to nfs@lists.sf.net ##
26589 ## ------------------------------- ##
26591 ) | sed "s/^/$as_me: WARNING: /" >&2
26594 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26595 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26596 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26597 echo $ECHO_N "(cached) $ECHO_C" >&6
26599 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26601 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26602 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26605 if test $ac_cv_header_sys_mkdev_h = yes; then
26607 cat >>confdefs.h <<\_ACEOF
26608 #define MAJOR_IN_MKDEV 1
26615 if test $ac_cv_header_sys_mkdev_h = no; then
26616 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26617 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26618 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26619 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26620 echo $ECHO_N "(cached) $ECHO_C" >&6
26622 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26623 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26625 # Is the header compilable?
26626 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26627 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26634 $ac_includes_default
26635 #include <sys/sysmacros.h>
26637 rm -f conftest.$ac_objext
26638 if { (ac_try="$ac_compile"
26639 case "(($ac_try" in
26640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641 *) ac_try_echo=$ac_try;;
26643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26644 (eval "$ac_compile") 2>conftest.er1
26646 grep -v '^ *+' conftest.er1 >conftest.err
26648 cat conftest.err >&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } && {
26651 test -z "$ac_c_werror_flag" ||
26652 test ! -s conftest.err
26653 } && test -s conftest.$ac_objext; then
26654 ac_header_compiler=yes
26656 echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26659 ac_header_compiler=no
26662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26664 echo "${ECHO_T}$ac_header_compiler" >&6; }
26666 # Is the header present?
26667 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26668 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26669 cat >conftest.$ac_ext <<_ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h. */
26675 #include <sys/sysmacros.h>
26677 if { (ac_try="$ac_cpp conftest.$ac_ext"
26678 case "(($ac_try" in
26679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680 *) ac_try_echo=$ac_try;;
26682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26685 grep -v '^ *+' conftest.er1 >conftest.err
26687 cat conftest.err >&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); } >/dev/null && {
26690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26691 test ! -s conftest.err
26693 ac_header_preproc=yes
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 ac_header_preproc=no
26701 rm -f conftest.err conftest.$ac_ext
26702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26703 echo "${ECHO_T}$ac_header_preproc" >&6; }
26705 # So? What about this header?
26706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26708 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26709 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26710 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26711 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26712 ac_header_preproc=yes
26715 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26716 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26717 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
26718 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
26719 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26720 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
26722 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26724 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26725 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26726 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26728 ## ------------------------------- ##
26729 ## Report this to nfs@lists.sf.net ##
26730 ## ------------------------------- ##
26732 ) | sed "s/^/$as_me: WARNING: /" >&2
26735 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26736 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26737 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26738 echo $ECHO_N "(cached) $ECHO_C" >&6
26740 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26742 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26743 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26746 if test $ac_cv_header_sys_sysmacros_h = yes; then
26748 cat >>confdefs.h <<\_ACEOF
26749 #define MAJOR_IN_SYSMACROS 1
26759 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26760 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26761 if test "${ac_cv_func_memcmp_working+set}" = set; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26764 if test "$cross_compiling" = yes; then
26765 ac_cv_func_memcmp_working=no
26767 cat >conftest.$ac_ext <<_ACEOF
26770 cat confdefs.h >>conftest.$ac_ext
26771 cat >>conftest.$ac_ext <<_ACEOF
26772 /* end confdefs.h. */
26773 $ac_includes_default
26778 /* Some versions of memcmp are not 8-bit clean. */
26779 char c0 = '\100', c1 = '\200', c2 = '\201';
26780 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26783 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26784 or more and with at least one buffer not starting on a 4-byte boundary.
26785 William Lewis provided this test program. */
26790 for (i = 0; i < 4; i++)
26794 strcpy (a, "--------01111111");
26795 strcpy (b, "--------10000000");
26796 if (memcmp (a, b, 16) >= 0)
26806 rm -f conftest$ac_exeext
26807 if { (ac_try="$ac_link"
26808 case "(($ac_try" in
26809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26810 *) ac_try_echo=$ac_try;;
26812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26813 (eval "$ac_link") 2>&5
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26817 { (case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822 (eval "$ac_try") 2>&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26826 ac_cv_func_memcmp_working=yes
26828 echo "$as_me: program exited with status $ac_status" >&5
26829 echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26832 ( exit $ac_status )
26833 ac_cv_func_memcmp_working=no
26835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26840 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26841 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26842 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26843 *" memcmp.$ac_objext "* ) ;;
26844 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26852 for ac_header in sys/select.h sys/socket.h
26854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26861 ac_res=`eval echo '${'$as_ac_Header'}'`
26862 { echo "$as_me:$LINENO: result: $ac_res" >&5
26863 echo "${ECHO_T}$ac_res" >&6; }
26865 # Is the header compilable?
26866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26868 cat >conftest.$ac_ext <<_ACEOF
26871 cat confdefs.h >>conftest.$ac_ext
26872 cat >>conftest.$ac_ext <<_ACEOF
26873 /* end confdefs.h. */
26874 $ac_includes_default
26875 #include <$ac_header>
26877 rm -f conftest.$ac_objext
26878 if { (ac_try="$ac_compile"
26879 case "(($ac_try" in
26880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26881 *) ac_try_echo=$ac_try;;
26883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26884 (eval "$ac_compile") 2>conftest.er1
26886 grep -v '^ *+' conftest.er1 >conftest.err
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } && {
26891 test -z "$ac_c_werror_flag" ||
26892 test ! -s conftest.err
26893 } && test -s conftest.$ac_objext; then
26894 ac_header_compiler=yes
26896 echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26899 ac_header_compiler=no
26902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26904 echo "${ECHO_T}$ac_header_compiler" >&6; }
26906 # Is the header present?
26907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26909 cat >conftest.$ac_ext <<_ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26915 #include <$ac_header>
26917 if { (ac_try="$ac_cpp conftest.$ac_ext"
26918 case "(($ac_try" in
26919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26920 *) ac_try_echo=$ac_try;;
26922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26925 grep -v '^ *+' conftest.er1 >conftest.err
26927 cat conftest.err >&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } >/dev/null && {
26930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26931 test ! -s conftest.err
26933 ac_header_preproc=yes
26935 echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26938 ac_header_preproc=no
26941 rm -f conftest.err conftest.$ac_ext
26942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26943 echo "${ECHO_T}$ac_header_preproc" >&6; }
26945 # So? What about this header?
26946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26952 ac_header_preproc=yes
26955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26968 ## ------------------------------- ##
26969 ## Report this to nfs@lists.sf.net ##
26970 ## ------------------------------- ##
26972 ) | sed "s/^/$as_me: WARNING: /" >&2
26975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26980 eval "$as_ac_Header=\$ac_header_preproc"
26982 ac_res=`eval echo '${'$as_ac_Header'}'`
26983 { echo "$as_me:$LINENO: result: $ac_res" >&5
26984 echo "${ECHO_T}$ac_res" >&6; }
26987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26988 cat >>confdefs.h <<_ACEOF
26989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26996 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26997 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26998 if test "${ac_cv_func_select_args+set}" = set; then
26999 echo $ECHO_N "(cached) $ECHO_C" >&6
27001 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27002 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27003 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27004 cat >conftest.$ac_ext <<_ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h. */
27010 $ac_includes_default
27011 #ifdef HAVE_SYS_SELECT_H
27012 # include <sys/select.h>
27014 #ifdef HAVE_SYS_SOCKET_H
27015 # include <sys/socket.h>
27021 extern int select ($ac_arg1,
27022 $ac_arg234, $ac_arg234, $ac_arg234,
27028 rm -f conftest.$ac_objext
27029 if { (ac_try="$ac_compile"
27030 case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_compile") 2>conftest.er1
27037 grep -v '^ *+' conftest.er1 >conftest.err
27039 cat conftest.err >&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } && {
27042 test -z "$ac_c_werror_flag" ||
27043 test ! -s conftest.err
27044 } && test -s conftest.$ac_objext; then
27045 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27047 echo "$as_me: failed program was:" >&5
27048 sed 's/^/| /' conftest.$ac_ext >&5
27053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057 # Provide a safe default value.
27058 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27061 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27062 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27063 ac_save_IFS=$IFS; IFS=','
27064 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27068 cat >>confdefs.h <<_ACEOF
27069 #define SELECT_TYPE_ARG1 $1
27073 cat >>confdefs.h <<_ACEOF
27074 #define SELECT_TYPE_ARG234 ($2)
27078 cat >>confdefs.h <<_ACEOF
27079 #define SELECT_TYPE_ARG5 ($3)
27084 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27085 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27086 if test "${ac_cv_type_signal+set}" = set; then
27087 echo $ECHO_N "(cached) $ECHO_C" >&6
27089 cat >conftest.$ac_ext <<_ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h. */
27095 #include <sys/types.h>
27096 #include <signal.h>
27101 return *(signal (0, 0)) (0) == 1;
27106 rm -f conftest.$ac_objext
27107 if { (ac_try="$ac_compile"
27108 case "(($ac_try" in
27109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110 *) ac_try_echo=$ac_try;;
27112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113 (eval "$ac_compile") 2>conftest.er1
27115 grep -v '^ *+' conftest.er1 >conftest.err
27117 cat conftest.err >&5
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } && {
27120 test -z "$ac_c_werror_flag" ||
27121 test ! -s conftest.err
27122 } && test -s conftest.$ac_objext; then
27123 ac_cv_type_signal=int
27125 echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27128 ac_cv_type_signal=void
27131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27133 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27134 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27136 cat >>confdefs.h <<_ACEOF
27137 #define RETSIGTYPE $ac_cv_type_signal
27141 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27142 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27143 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27144 echo $ECHO_N "(cached) $ECHO_C" >&6
27146 if test "$cross_compiling" = yes; then
27147 ac_cv_func_stat_empty_string_bug=yes
27149 cat >conftest.$ac_ext <<_ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h. */
27155 $ac_includes_default
27160 return stat ("", &sbuf) == 0;
27165 rm -f conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_link") 2>&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27176 { (case "(($ac_try" in
27177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27178 *) ac_try_echo=$ac_try;;
27180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27181 (eval "$ac_try") 2>&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; }; then
27185 ac_cv_func_stat_empty_string_bug=no
27187 echo "$as_me: program exited with status $ac_status" >&5
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27191 ( exit $ac_status )
27192 ac_cv_func_stat_empty_string_bug=yes
27194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27199 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27200 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27201 if test $ac_cv_func_stat_empty_string_bug = yes; then
27202 case " $LIBOBJS " in
27203 *" stat.$ac_objext "* ) ;;
27204 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27209 cat >>confdefs.h <<_ACEOF
27210 #define HAVE_STAT_EMPTY_STRING_BUG 1
27216 for ac_func in vprintf
27218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27222 echo $ECHO_N "(cached) $ECHO_C" >&6
27224 cat >conftest.$ac_ext <<_ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h. */
27230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27232 #define $ac_func innocuous_$ac_func
27234 /* System header to define __stub macros and hopefully few prototypes,
27235 which can conflict with char $ac_func (); below.
27236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27237 <limits.h> exists even on freestanding compilers. */
27240 # include <limits.h>
27242 # include <assert.h>
27247 /* Override any GCC internal prototype to avoid an error.
27248 Use char because int might match the return type of a GCC
27249 builtin and then its argument prototype would still apply. */
27254 /* The GNU C library defines this for functions which it implements
27255 to always fail with ENOSYS. Some functions are actually named
27256 something starting with __ and the normal name is an alias. */
27257 #if defined __stub_$ac_func || defined __stub___$ac_func
27264 return $ac_func ();
27269 rm -f conftest.$ac_objext conftest$ac_exeext
27270 if { (ac_try="$ac_link"
27271 case "(($ac_try" in
27272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27273 *) ac_try_echo=$ac_try;;
27275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27276 (eval "$ac_link") 2>conftest.er1
27278 grep -v '^ *+' conftest.er1 >conftest.err
27280 cat conftest.err >&5
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); } && {
27283 test -z "$ac_c_werror_flag" ||
27284 test ! -s conftest.err
27285 } && test -s conftest$ac_exeext &&
27286 $as_test_x conftest$ac_exeext; then
27287 eval "$as_ac_var=yes"
27289 echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27292 eval "$as_ac_var=no"
27295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27296 conftest$ac_exeext conftest.$ac_ext
27298 ac_res=`eval echo '${'$as_ac_var'}'`
27299 { echo "$as_me:$LINENO: result: $ac_res" >&5
27300 echo "${ECHO_T}$ac_res" >&6; }
27301 if test `eval echo '${'$as_ac_var'}'` = yes; then
27302 cat >>confdefs.h <<_ACEOF
27303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27306 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27307 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27308 if test "${ac_cv_func__doprnt+set}" = set; then
27309 echo $ECHO_N "(cached) $ECHO_C" >&6
27311 cat >conftest.$ac_ext <<_ACEOF
27314 cat confdefs.h >>conftest.$ac_ext
27315 cat >>conftest.$ac_ext <<_ACEOF
27316 /* end confdefs.h. */
27317 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27319 #define _doprnt innocuous__doprnt
27321 /* System header to define __stub macros and hopefully few prototypes,
27322 which can conflict with char _doprnt (); below.
27323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27324 <limits.h> exists even on freestanding compilers. */
27327 # include <limits.h>
27329 # include <assert.h>
27334 /* Override any GCC internal prototype to avoid an error.
27335 Use char because int might match the return type of a GCC
27336 builtin and then its argument prototype would still apply. */
27341 /* The GNU C library defines this for functions which it implements
27342 to always fail with ENOSYS. Some functions are actually named
27343 something starting with __ and the normal name is an alias. */
27344 #if defined __stub__doprnt || defined __stub____doprnt
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (ac_try="$ac_link"
27358 case "(($ac_try" in
27359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360 *) ac_try_echo=$ac_try;;
27362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27363 (eval "$ac_link") 2>conftest.er1
27365 grep -v '^ *+' conftest.er1 >conftest.err
27367 cat conftest.err >&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); } && {
27370 test -z "$ac_c_werror_flag" ||
27371 test ! -s conftest.err
27372 } && test -s conftest$ac_exeext &&
27373 $as_test_x conftest$ac_exeext; then
27374 ac_cv_func__doprnt=yes
27376 echo "$as_me: failed program was:" >&5
27377 sed 's/^/| /' conftest.$ac_ext >&5
27379 ac_cv_func__doprnt=no
27382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27383 conftest$ac_exeext conftest.$ac_ext
27385 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27386 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27387 if test $ac_cv_func__doprnt = yes; then
27389 cat >>confdefs.h <<\_ACEOF
27390 #define HAVE_DOPRNT 1
27428 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27429 gethostbyaddr gethostbyname gethostname getmntent \
27430 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27431 realpath rmdir select socket strcasecmp strchr strdup \
27432 strerror strrchr strtol strtoul sigprocmask
27434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27438 echo $ECHO_N "(cached) $ECHO_C" >&6
27440 cat >conftest.$ac_ext <<_ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27448 #define $ac_func innocuous_$ac_func
27450 /* System header to define __stub macros and hopefully few prototypes,
27451 which can conflict with char $ac_func (); below.
27452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27453 <limits.h> exists even on freestanding compilers. */
27456 # include <limits.h>
27458 # include <assert.h>
27463 /* Override any GCC internal prototype to avoid an error.
27464 Use char because int might match the return type of a GCC
27465 builtin and then its argument prototype would still apply. */
27470 /* The GNU C library defines this for functions which it implements
27471 to always fail with ENOSYS. Some functions are actually named
27472 something starting with __ and the normal name is an alias. */
27473 #if defined __stub_$ac_func || defined __stub___$ac_func
27480 return $ac_func ();
27485 rm -f conftest.$ac_objext conftest$ac_exeext
27486 if { (ac_try="$ac_link"
27487 case "(($ac_try" in
27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489 *) ac_try_echo=$ac_try;;
27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492 (eval "$ac_link") 2>conftest.er1
27494 grep -v '^ *+' conftest.er1 >conftest.err
27496 cat conftest.err >&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); } && {
27499 test -z "$ac_c_werror_flag" ||
27500 test ! -s conftest.err
27501 } && test -s conftest$ac_exeext &&
27502 $as_test_x conftest$ac_exeext; then
27503 eval "$as_ac_var=yes"
27505 echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27508 eval "$as_ac_var=no"
27511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27512 conftest$ac_exeext conftest.$ac_ext
27514 ac_res=`eval echo '${'$as_ac_var'}'`
27515 { echo "$as_me:$LINENO: result: $ac_res" >&5
27516 echo "${ECHO_T}$ac_res" >&6; }
27517 if test `eval echo '${'$as_ac_var'}'` = yes; then
27518 cat >>confdefs.h <<_ACEOF
27519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27527 { echo "$as_me:$LINENO: checking for short" >&5
27528 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27529 if test "${ac_cv_type_short+set}" = set; then
27530 echo $ECHO_N "(cached) $ECHO_C" >&6
27532 cat >conftest.$ac_ext <<_ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h. */
27538 $ac_includes_default
27539 typedef short ac__type_new_;
27543 if ((ac__type_new_ *) 0)
27545 if (sizeof (ac__type_new_))
27551 rm -f conftest.$ac_objext
27552 if { (ac_try="$ac_compile"
27553 case "(($ac_try" in
27554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27555 *) ac_try_echo=$ac_try;;
27557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27558 (eval "$ac_compile") 2>conftest.er1
27560 grep -v '^ *+' conftest.er1 >conftest.err
27562 cat conftest.err >&5
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); } && {
27565 test -z "$ac_c_werror_flag" ||
27566 test ! -s conftest.err
27567 } && test -s conftest.$ac_objext; then
27568 ac_cv_type_short=yes
27570 echo "$as_me: failed program was:" >&5
27571 sed 's/^/| /' conftest.$ac_ext >&5
27573 ac_cv_type_short=no
27576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27578 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27579 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27581 # The cast to long int works around a bug in the HP C Compiler
27582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27584 # This bug is HP SR number 8606223364.
27585 { echo "$as_me:$LINENO: checking size of short" >&5
27586 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27587 if test "${ac_cv_sizeof_short+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27590 if test "$cross_compiling" = yes; then
27591 # Depending upon the size, compute the lo and hi bounds.
27592 cat >conftest.$ac_ext <<_ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h. */
27598 $ac_includes_default
27599 typedef short ac__type_sizeof_;
27603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27610 rm -f conftest.$ac_objext
27611 if { (ac_try="$ac_compile"
27612 case "(($ac_try" in
27613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614 *) ac_try_echo=$ac_try;;
27616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27617 (eval "$ac_compile") 2>conftest.er1
27619 grep -v '^ *+' conftest.er1 >conftest.err
27621 cat conftest.err >&5
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); } && {
27624 test -z "$ac_c_werror_flag" ||
27625 test ! -s conftest.err
27626 } && test -s conftest.$ac_objext; then
27629 cat >conftest.$ac_ext <<_ACEOF
27632 cat confdefs.h >>conftest.$ac_ext
27633 cat >>conftest.$ac_ext <<_ACEOF
27634 /* end confdefs.h. */
27635 $ac_includes_default
27636 typedef short ac__type_sizeof_;
27640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27647 rm -f conftest.$ac_objext
27648 if { (ac_try="$ac_compile"
27649 case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_compile") 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } && {
27661 test -z "$ac_c_werror_flag" ||
27662 test ! -s conftest.err
27663 } && test -s conftest.$ac_objext; then
27664 ac_hi=$ac_mid; break
27666 echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27669 ac_lo=`expr $ac_mid + 1`
27670 if test $ac_lo -le $ac_mid; then
27674 ac_mid=`expr 2 '*' $ac_mid + 1`
27677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27680 echo "$as_me: failed program was:" >&5
27681 sed 's/^/| /' conftest.$ac_ext >&5
27683 cat >conftest.$ac_ext <<_ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h. */
27689 $ac_includes_default
27690 typedef short ac__type_sizeof_;
27694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27701 rm -f conftest.$ac_objext
27702 if { (ac_try="$ac_compile"
27703 case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708 (eval "$ac_compile") 2>conftest.er1
27710 grep -v '^ *+' conftest.er1 >conftest.err
27712 cat conftest.err >&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); } && {
27715 test -z "$ac_c_werror_flag" ||
27716 test ! -s conftest.err
27717 } && test -s conftest.$ac_objext; then
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27726 $ac_includes_default
27727 typedef short ac__type_sizeof_;
27731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27738 rm -f conftest.$ac_objext
27739 if { (ac_try="$ac_compile"
27740 case "(($ac_try" in
27741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742 *) ac_try_echo=$ac_try;;
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745 (eval "$ac_compile") 2>conftest.er1
27747 grep -v '^ *+' conftest.er1 >conftest.err
27749 cat conftest.err >&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); } && {
27752 test -z "$ac_c_werror_flag" ||
27753 test ! -s conftest.err
27754 } && test -s conftest.$ac_objext; then
27755 ac_lo=$ac_mid; break
27757 echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27760 ac_hi=`expr '(' $ac_mid ')' - 1`
27761 if test $ac_mid -le $ac_hi; then
27765 ac_mid=`expr 2 '*' $ac_mid`
27768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27771 echo "$as_me: failed program was:" >&5
27772 sed 's/^/| /' conftest.$ac_ext >&5
27777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27781 # Binary search between lo and hi bounds.
27782 while test "x$ac_lo" != "x$ac_hi"; do
27783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27784 cat >conftest.$ac_ext <<_ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h. */
27790 $ac_includes_default
27791 typedef short ac__type_sizeof_;
27795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27802 rm -f conftest.$ac_objext
27803 if { (ac_try="$ac_compile"
27804 case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809 (eval "$ac_compile") 2>conftest.er1
27811 grep -v '^ *+' conftest.er1 >conftest.err
27813 cat conftest.err >&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } && {
27816 test -z "$ac_c_werror_flag" ||
27817 test ! -s conftest.err
27818 } && test -s conftest.$ac_objext; then
27821 echo "$as_me: failed program was:" >&5
27822 sed 's/^/| /' conftest.$ac_ext >&5
27824 ac_lo=`expr '(' $ac_mid ')' + 1`
27827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27830 ?*) ac_cv_sizeof_short=$ac_lo;;
27831 '') if test "$ac_cv_type_short" = yes; then
27832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27833 See \`config.log' for more details." >&5
27834 echo "$as_me: error: cannot compute sizeof (short)
27835 See \`config.log' for more details." >&2;}
27836 { (exit 77); exit 77; }; }
27838 ac_cv_sizeof_short=0
27842 cat >conftest.$ac_ext <<_ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h. */
27848 $ac_includes_default
27849 typedef short ac__type_sizeof_;
27850 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27851 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27853 #include <stdlib.h>
27858 FILE *f = fopen ("conftest.val", "w");
27861 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27863 long int i = longval ();
27864 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27866 fprintf (f, "%ld\n", i);
27870 unsigned long int i = ulongval ();
27871 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27873 fprintf (f, "%lu\n", i);
27875 return ferror (f) || fclose (f) != 0;
27881 rm -f conftest$ac_exeext
27882 if { (ac_try="$ac_link"
27883 case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_link") 2>&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27892 { (case "(($ac_try" in
27893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894 *) ac_try_echo=$ac_try;;
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_try") 2>&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); }; }; then
27901 ac_cv_sizeof_short=`cat conftest.val`
27903 echo "$as_me: program exited with status $ac_status" >&5
27904 echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27907 ( exit $ac_status )
27908 if test "$ac_cv_type_short" = yes; then
27909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27910 See \`config.log' for more details." >&5
27911 echo "$as_me: error: cannot compute sizeof (short)
27912 See \`config.log' for more details." >&2;}
27913 { (exit 77); exit 77; }; }
27915 ac_cv_sizeof_short=0
27918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27922 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27923 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27927 cat >>confdefs.h <<_ACEOF
27928 #define SIZEOF_SHORT $ac_cv_sizeof_short
27932 { echo "$as_me:$LINENO: checking for int" >&5
27933 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27934 if test "${ac_cv_type_int+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
27937 cat >conftest.$ac_ext <<_ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h. */
27943 $ac_includes_default
27944 typedef int ac__type_new_;
27948 if ((ac__type_new_ *) 0)
27950 if (sizeof (ac__type_new_))
27956 rm -f conftest.$ac_objext
27957 if { (ac_try="$ac_compile"
27958 case "(($ac_try" in
27959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960 *) ac_try_echo=$ac_try;;
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963 (eval "$ac_compile") 2>conftest.er1
27965 grep -v '^ *+' conftest.er1 >conftest.err
27967 cat conftest.err >&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); } && {
27970 test -z "$ac_c_werror_flag" ||
27971 test ! -s conftest.err
27972 } && test -s conftest.$ac_objext; then
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27984 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27986 # The cast to long int works around a bug in the HP C Compiler
27987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27989 # This bug is HP SR number 8606223364.
27990 { echo "$as_me:$LINENO: checking size of int" >&5
27991 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27992 if test "${ac_cv_sizeof_int+set}" = set; then
27993 echo $ECHO_N "(cached) $ECHO_C" >&6
27995 if test "$cross_compiling" = yes; then
27996 # Depending upon the size, compute the lo and hi bounds.
27997 cat >conftest.$ac_ext <<_ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28003 $ac_includes_default
28004 typedef int ac__type_sizeof_;
28008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28015 rm -f conftest.$ac_objext
28016 if { (ac_try="$ac_compile"
28017 case "(($ac_try" in
28018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28019 *) ac_try_echo=$ac_try;;
28021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28022 (eval "$ac_compile") 2>conftest.er1
28024 grep -v '^ *+' conftest.er1 >conftest.err
28026 cat conftest.err >&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } && {
28029 test -z "$ac_c_werror_flag" ||
28030 test ! -s conftest.err
28031 } && test -s conftest.$ac_objext; then
28034 cat >conftest.$ac_ext <<_ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h. */
28040 $ac_includes_default
28041 typedef int ac__type_sizeof_;
28045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28052 rm -f conftest.$ac_objext
28053 if { (ac_try="$ac_compile"
28054 case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_compile") 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } && {
28066 test -z "$ac_c_werror_flag" ||
28067 test ! -s conftest.err
28068 } && test -s conftest.$ac_objext; then
28069 ac_hi=$ac_mid; break
28071 echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28074 ac_lo=`expr $ac_mid + 1`
28075 if test $ac_lo -le $ac_mid; then
28079 ac_mid=`expr 2 '*' $ac_mid + 1`
28082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28085 echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28088 cat >conftest.$ac_ext <<_ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h. */
28094 $ac_includes_default
28095 typedef int ac__type_sizeof_;
28099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28106 rm -f conftest.$ac_objext
28107 if { (ac_try="$ac_compile"
28108 case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113 (eval "$ac_compile") 2>conftest.er1
28115 grep -v '^ *+' conftest.er1 >conftest.err
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } && {
28120 test -z "$ac_c_werror_flag" ||
28121 test ! -s conftest.err
28122 } && test -s conftest.$ac_objext; then
28125 cat >conftest.$ac_ext <<_ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h. */
28131 $ac_includes_default
28132 typedef int ac__type_sizeof_;
28136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28143 rm -f conftest.$ac_objext
28144 if { (ac_try="$ac_compile"
28145 case "(($ac_try" in
28146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28147 *) ac_try_echo=$ac_try;;
28149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28150 (eval "$ac_compile") 2>conftest.er1
28152 grep -v '^ *+' conftest.er1 >conftest.err
28154 cat conftest.err >&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } && {
28157 test -z "$ac_c_werror_flag" ||
28158 test ! -s conftest.err
28159 } && test -s conftest.$ac_objext; then
28160 ac_lo=$ac_mid; break
28162 echo "$as_me: failed program was:" >&5
28163 sed 's/^/| /' conftest.$ac_ext >&5
28165 ac_hi=`expr '(' $ac_mid ')' - 1`
28166 if test $ac_mid -le $ac_hi; then
28170 ac_mid=`expr 2 '*' $ac_mid`
28173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176 echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.$ac_ext >&5
28182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28186 # Binary search between lo and hi bounds.
28187 while test "x$ac_lo" != "x$ac_hi"; do
28188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28189 cat >conftest.$ac_ext <<_ACEOF
28192 cat confdefs.h >>conftest.$ac_ext
28193 cat >>conftest.$ac_ext <<_ACEOF
28194 /* end confdefs.h. */
28195 $ac_includes_default
28196 typedef int ac__type_sizeof_;
28200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28207 rm -f conftest.$ac_objext
28208 if { (ac_try="$ac_compile"
28209 case "(($ac_try" in
28210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211 *) ac_try_echo=$ac_try;;
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214 (eval "$ac_compile") 2>conftest.er1
28216 grep -v '^ *+' conftest.er1 >conftest.err
28218 cat conftest.err >&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); } && {
28221 test -z "$ac_c_werror_flag" ||
28222 test ! -s conftest.err
28223 } && test -s conftest.$ac_objext; then
28226 echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28229 ac_lo=`expr '(' $ac_mid ')' + 1`
28232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28235 ?*) ac_cv_sizeof_int=$ac_lo;;
28236 '') if test "$ac_cv_type_int" = yes; then
28237 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28238 See \`config.log' for more details." >&5
28239 echo "$as_me: error: cannot compute sizeof (int)
28240 See \`config.log' for more details." >&2;}
28241 { (exit 77); exit 77; }; }
28247 cat >conftest.$ac_ext <<_ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h. */
28253 $ac_includes_default
28254 typedef int ac__type_sizeof_;
28255 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28256 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28258 #include <stdlib.h>
28263 FILE *f = fopen ("conftest.val", "w");
28266 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28268 long int i = longval ();
28269 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28271 fprintf (f, "%ld\n", i);
28275 unsigned long int i = ulongval ();
28276 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28278 fprintf (f, "%lu\n", i);
28280 return ferror (f) || fclose (f) != 0;
28286 rm -f conftest$ac_exeext
28287 if { (ac_try="$ac_link"
28288 case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293 (eval "$ac_link") 2>&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28297 { (case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_try") 2>&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); }; }; then
28306 ac_cv_sizeof_int=`cat conftest.val`
28308 echo "$as_me: program exited with status $ac_status" >&5
28309 echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28312 ( exit $ac_status )
28313 if test "$ac_cv_type_int" = yes; then
28314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28315 See \`config.log' for more details." >&5
28316 echo "$as_me: error: cannot compute sizeof (int)
28317 See \`config.log' for more details." >&2;}
28318 { (exit 77); exit 77; }; }
28323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28327 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28328 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28332 cat >>confdefs.h <<_ACEOF
28333 #define SIZEOF_INT $ac_cv_sizeof_int
28337 { echo "$as_me:$LINENO: checking for long" >&5
28338 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28339 if test "${ac_cv_type_long+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 cat >conftest.$ac_ext <<_ACEOF
28345 cat confdefs.h >>conftest.$ac_ext
28346 cat >>conftest.$ac_ext <<_ACEOF
28347 /* end confdefs.h. */
28348 $ac_includes_default
28349 typedef long ac__type_new_;
28353 if ((ac__type_new_ *) 0)
28355 if (sizeof (ac__type_new_))
28361 rm -f conftest.$ac_objext
28362 if { (ac_try="$ac_compile"
28363 case "(($ac_try" in
28364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28365 *) ac_try_echo=$ac_try;;
28367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28368 (eval "$ac_compile") 2>conftest.er1
28370 grep -v '^ *+' conftest.er1 >conftest.err
28372 cat conftest.err >&5
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } && {
28375 test -z "$ac_c_werror_flag" ||
28376 test ! -s conftest.err
28377 } && test -s conftest.$ac_objext; then
28378 ac_cv_type_long=yes
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28388 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28389 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28391 # The cast to long int works around a bug in the HP C Compiler
28392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28394 # This bug is HP SR number 8606223364.
28395 { echo "$as_me:$LINENO: checking size of long" >&5
28396 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28397 if test "${ac_cv_sizeof_long+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28400 if test "$cross_compiling" = yes; then
28401 # Depending upon the size, compute the lo and hi bounds.
28402 cat >conftest.$ac_ext <<_ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h. */
28408 $ac_includes_default
28409 typedef long ac__type_sizeof_;
28413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28420 rm -f conftest.$ac_objext
28421 if { (ac_try="$ac_compile"
28422 case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427 (eval "$ac_compile") 2>conftest.er1
28429 grep -v '^ *+' conftest.er1 >conftest.err
28431 cat conftest.err >&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } && {
28434 test -z "$ac_c_werror_flag" ||
28435 test ! -s conftest.err
28436 } && test -s conftest.$ac_objext; then
28439 cat >conftest.$ac_ext <<_ACEOF
28442 cat confdefs.h >>conftest.$ac_ext
28443 cat >>conftest.$ac_ext <<_ACEOF
28444 /* end confdefs.h. */
28445 $ac_includes_default
28446 typedef long ac__type_sizeof_;
28450 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28457 rm -f conftest.$ac_objext
28458 if { (ac_try="$ac_compile"
28459 case "(($ac_try" in
28460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28461 *) ac_try_echo=$ac_try;;
28463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28464 (eval "$ac_compile") 2>conftest.er1
28466 grep -v '^ *+' conftest.er1 >conftest.err
28468 cat conftest.err >&5
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); } && {
28471 test -z "$ac_c_werror_flag" ||
28472 test ! -s conftest.err
28473 } && test -s conftest.$ac_objext; then
28474 ac_hi=$ac_mid; break
28476 echo "$as_me: failed program was:" >&5
28477 sed 's/^/| /' conftest.$ac_ext >&5
28479 ac_lo=`expr $ac_mid + 1`
28480 if test $ac_lo -le $ac_mid; then
28484 ac_mid=`expr 2 '*' $ac_mid + 1`
28487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28490 echo "$as_me: failed program was:" >&5
28491 sed 's/^/| /' conftest.$ac_ext >&5
28493 cat >conftest.$ac_ext <<_ACEOF
28496 cat confdefs.h >>conftest.$ac_ext
28497 cat >>conftest.$ac_ext <<_ACEOF
28498 /* end confdefs.h. */
28499 $ac_includes_default
28500 typedef long ac__type_sizeof_;
28504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28511 rm -f conftest.$ac_objext
28512 if { (ac_try="$ac_compile"
28513 case "(($ac_try" in
28514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515 *) ac_try_echo=$ac_try;;
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518 (eval "$ac_compile") 2>conftest.er1
28520 grep -v '^ *+' conftest.er1 >conftest.err
28522 cat conftest.err >&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); } && {
28525 test -z "$ac_c_werror_flag" ||
28526 test ! -s conftest.err
28527 } && test -s conftest.$ac_objext; then
28530 cat >conftest.$ac_ext <<_ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28536 $ac_includes_default
28537 typedef long ac__type_sizeof_;
28541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28548 rm -f conftest.$ac_objext
28549 if { (ac_try="$ac_compile"
28550 case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555 (eval "$ac_compile") 2>conftest.er1
28557 grep -v '^ *+' conftest.er1 >conftest.err
28559 cat conftest.err >&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } && {
28562 test -z "$ac_c_werror_flag" ||
28563 test ! -s conftest.err
28564 } && test -s conftest.$ac_objext; then
28565 ac_lo=$ac_mid; break
28567 echo "$as_me: failed program was:" >&5
28568 sed 's/^/| /' conftest.$ac_ext >&5
28570 ac_hi=`expr '(' $ac_mid ')' - 1`
28571 if test $ac_mid -le $ac_hi; then
28575 ac_mid=`expr 2 '*' $ac_mid`
28578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28581 echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591 # Binary search between lo and hi bounds.
28592 while test "x$ac_lo" != "x$ac_hi"; do
28593 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28594 cat >conftest.$ac_ext <<_ACEOF
28597 cat confdefs.h >>conftest.$ac_ext
28598 cat >>conftest.$ac_ext <<_ACEOF
28599 /* end confdefs.h. */
28600 $ac_includes_default
28601 typedef long ac__type_sizeof_;
28605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28612 rm -f conftest.$ac_objext
28613 if { (ac_try="$ac_compile"
28614 case "(($ac_try" in
28615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616 *) ac_try_echo=$ac_try;;
28618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619 (eval "$ac_compile") 2>conftest.er1
28621 grep -v '^ *+' conftest.er1 >conftest.err
28623 cat conftest.err >&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); } && {
28626 test -z "$ac_c_werror_flag" ||
28627 test ! -s conftest.err
28628 } && test -s conftest.$ac_objext; then
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 ac_lo=`expr '(' $ac_mid ')' + 1`
28637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28640 ?*) ac_cv_sizeof_long=$ac_lo;;
28641 '') if test "$ac_cv_type_long" = yes; then
28642 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28643 See \`config.log' for more details." >&5
28644 echo "$as_me: error: cannot compute sizeof (long)
28645 See \`config.log' for more details." >&2;}
28646 { (exit 77); exit 77; }; }
28648 ac_cv_sizeof_long=0
28652 cat >conftest.$ac_ext <<_ACEOF
28655 cat confdefs.h >>conftest.$ac_ext
28656 cat >>conftest.$ac_ext <<_ACEOF
28657 /* end confdefs.h. */
28658 $ac_includes_default
28659 typedef long ac__type_sizeof_;
28660 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28661 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28663 #include <stdlib.h>
28668 FILE *f = fopen ("conftest.val", "w");
28671 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28673 long int i = longval ();
28674 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28676 fprintf (f, "%ld\n", i);
28680 unsigned long int i = ulongval ();
28681 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28683 fprintf (f, "%lu\n", i);
28685 return ferror (f) || fclose (f) != 0;
28691 rm -f conftest$ac_exeext
28692 if { (ac_try="$ac_link"
28693 case "(($ac_try" in
28694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695 *) ac_try_echo=$ac_try;;
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698 (eval "$ac_link") 2>&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28702 { (case "(($ac_try" in
28703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28704 *) ac_try_echo=$ac_try;;
28706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28707 (eval "$ac_try") 2>&5
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
28711 ac_cv_sizeof_long=`cat conftest.val`
28713 echo "$as_me: program exited with status $ac_status" >&5
28714 echo "$as_me: failed program was:" >&5
28715 sed 's/^/| /' conftest.$ac_ext >&5
28717 ( exit $ac_status )
28718 if test "$ac_cv_type_long" = yes; then
28719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28720 See \`config.log' for more details." >&5
28721 echo "$as_me: error: cannot compute sizeof (long)
28722 See \`config.log' for more details." >&2;}
28723 { (exit 77); exit 77; }; }
28725 ac_cv_sizeof_long=0
28728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28732 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28733 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28737 cat >>confdefs.h <<_ACEOF
28738 #define SIZEOF_LONG $ac_cv_sizeof_long
28742 { echo "$as_me:$LINENO: checking for size_t" >&5
28743 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28744 if test "${ac_cv_type_size_t+set}" = set; then
28745 echo $ECHO_N "(cached) $ECHO_C" >&6
28747 cat >conftest.$ac_ext <<_ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h. */
28753 $ac_includes_default
28754 typedef size_t ac__type_new_;
28758 if ((ac__type_new_ *) 0)
28760 if (sizeof (ac__type_new_))
28766 rm -f conftest.$ac_objext
28767 if { (ac_try="$ac_compile"
28768 case "(($ac_try" in
28769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28770 *) ac_try_echo=$ac_try;;
28772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28773 (eval "$ac_compile") 2>conftest.er1
28775 grep -v '^ *+' conftest.er1 >conftest.err
28777 cat conftest.err >&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); } && {
28780 test -z "$ac_c_werror_flag" ||
28781 test ! -s conftest.err
28782 } && test -s conftest.$ac_objext; then
28783 ac_cv_type_size_t=yes
28785 echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28788 ac_cv_type_size_t=no
28791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28794 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28796 # The cast to long int works around a bug in the HP C Compiler
28797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28799 # This bug is HP SR number 8606223364.
28800 { echo "$as_me:$LINENO: checking size of size_t" >&5
28801 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28802 if test "${ac_cv_sizeof_size_t+set}" = set; then
28803 echo $ECHO_N "(cached) $ECHO_C" >&6
28805 if test "$cross_compiling" = yes; then
28806 # Depending upon the size, compute the lo and hi bounds.
28807 cat >conftest.$ac_ext <<_ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28813 $ac_includes_default
28814 typedef size_t ac__type_sizeof_;
28818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28825 rm -f conftest.$ac_objext
28826 if { (ac_try="$ac_compile"
28827 case "(($ac_try" in
28828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829 *) ac_try_echo=$ac_try;;
28831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832 (eval "$ac_compile") 2>conftest.er1
28834 grep -v '^ *+' conftest.er1 >conftest.err
28836 cat conftest.err >&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } && {
28839 test -z "$ac_c_werror_flag" ||
28840 test ! -s conftest.err
28841 } && test -s conftest.$ac_objext; then
28844 cat >conftest.$ac_ext <<_ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h. */
28850 $ac_includes_default
28851 typedef size_t ac__type_sizeof_;
28855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28862 rm -f conftest.$ac_objext
28863 if { (ac_try="$ac_compile"
28864 case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869 (eval "$ac_compile") 2>conftest.er1
28871 grep -v '^ *+' conftest.er1 >conftest.err
28873 cat conftest.err >&5
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); } && {
28876 test -z "$ac_c_werror_flag" ||
28877 test ! -s conftest.err
28878 } && test -s conftest.$ac_objext; then
28879 ac_hi=$ac_mid; break
28881 echo "$as_me: failed program was:" >&5
28882 sed 's/^/| /' conftest.$ac_ext >&5
28884 ac_lo=`expr $ac_mid + 1`
28885 if test $ac_lo -le $ac_mid; then
28889 ac_mid=`expr 2 '*' $ac_mid + 1`
28892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28895 echo "$as_me: failed program was:" >&5
28896 sed 's/^/| /' conftest.$ac_ext >&5
28898 cat >conftest.$ac_ext <<_ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h. */
28904 $ac_includes_default
28905 typedef size_t ac__type_sizeof_;
28909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28916 rm -f conftest.$ac_objext
28917 if { (ac_try="$ac_compile"
28918 case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923 (eval "$ac_compile") 2>conftest.er1
28925 grep -v '^ *+' conftest.er1 >conftest.err
28927 cat conftest.err >&5
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); } && {
28930 test -z "$ac_c_werror_flag" ||
28931 test ! -s conftest.err
28932 } && test -s conftest.$ac_objext; then
28935 cat >conftest.$ac_ext <<_ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h. */
28941 $ac_includes_default
28942 typedef size_t ac__type_sizeof_;
28946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28953 rm -f conftest.$ac_objext
28954 if { (ac_try="$ac_compile"
28955 case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_compile") 2>conftest.er1
28962 grep -v '^ *+' conftest.er1 >conftest.err
28964 cat conftest.err >&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } && {
28967 test -z "$ac_c_werror_flag" ||
28968 test ! -s conftest.err
28969 } && test -s conftest.$ac_objext; then
28970 ac_lo=$ac_mid; break
28972 echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28975 ac_hi=`expr '(' $ac_mid ')' - 1`
28976 if test $ac_mid -le $ac_hi; then
28980 ac_mid=`expr 2 '*' $ac_mid`
28983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28986 echo "$as_me: failed program was:" >&5
28987 sed 's/^/| /' conftest.$ac_ext >&5
28992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28996 # Binary search between lo and hi bounds.
28997 while test "x$ac_lo" != "x$ac_hi"; do
28998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28999 cat >conftest.$ac_ext <<_ACEOF
29002 cat confdefs.h >>conftest.$ac_ext
29003 cat >>conftest.$ac_ext <<_ACEOF
29004 /* end confdefs.h. */
29005 $ac_includes_default
29006 typedef size_t ac__type_sizeof_;
29010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29017 rm -f conftest.$ac_objext
29018 if { (ac_try="$ac_compile"
29019 case "(($ac_try" in
29020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021 *) ac_try_echo=$ac_try;;
29023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024 (eval "$ac_compile") 2>conftest.er1
29026 grep -v '^ *+' conftest.er1 >conftest.err
29028 cat conftest.err >&5
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); } && {
29031 test -z "$ac_c_werror_flag" ||
29032 test ! -s conftest.err
29033 } && test -s conftest.$ac_objext; then
29036 echo "$as_me: failed program was:" >&5
29037 sed 's/^/| /' conftest.$ac_ext >&5
29039 ac_lo=`expr '(' $ac_mid ')' + 1`
29042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29045 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29046 '') if test "$ac_cv_type_size_t" = yes; then
29047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29048 See \`config.log' for more details." >&5
29049 echo "$as_me: error: cannot compute sizeof (size_t)
29050 See \`config.log' for more details." >&2;}
29051 { (exit 77); exit 77; }; }
29053 ac_cv_sizeof_size_t=0
29057 cat >conftest.$ac_ext <<_ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h. */
29063 $ac_includes_default
29064 typedef size_t ac__type_sizeof_;
29065 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29066 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29068 #include <stdlib.h>
29073 FILE *f = fopen ("conftest.val", "w");
29076 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29078 long int i = longval ();
29079 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29081 fprintf (f, "%ld\n", i);
29085 unsigned long int i = ulongval ();
29086 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29088 fprintf (f, "%lu\n", i);
29090 return ferror (f) || fclose (f) != 0;
29096 rm -f conftest$ac_exeext
29097 if { (ac_try="$ac_link"
29098 case "(($ac_try" in
29099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29100 *) ac_try_echo=$ac_try;;
29102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29103 (eval "$ac_link") 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29107 { (case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_try") 2>&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; }; then
29116 ac_cv_sizeof_size_t=`cat conftest.val`
29118 echo "$as_me: program exited with status $ac_status" >&5
29119 echo "$as_me: failed program was:" >&5
29120 sed 's/^/| /' conftest.$ac_ext >&5
29122 ( exit $ac_status )
29123 if test "$ac_cv_type_size_t" = yes; then
29124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29125 See \`config.log' for more details." >&5
29126 echo "$as_me: error: cannot compute sizeof (size_t)
29127 See \`config.log' for more details." >&2;}
29128 { (exit 77); exit 77; }; }
29130 ac_cv_sizeof_size_t=0
29133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29137 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29138 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29142 cat >>confdefs.h <<_ACEOF
29143 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29147 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29148 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29149 if test "${ac_cv_type_socklen_t+set}" = set; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29152 cat >conftest.$ac_ext <<_ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h. */
29158 $ac_includes_default
29159 typedef socklen_t ac__type_new_;
29163 if ((ac__type_new_ *) 0)
29165 if (sizeof (ac__type_new_))
29171 rm -f conftest.$ac_objext
29172 if { (ac_try="$ac_compile"
29173 case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178 (eval "$ac_compile") 2>conftest.er1
29180 grep -v '^ *+' conftest.er1 >conftest.err
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } && {
29185 test -z "$ac_c_werror_flag" ||
29186 test ! -s conftest.err
29187 } && test -s conftest.$ac_objext; then
29188 ac_cv_type_socklen_t=yes
29190 echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29193 ac_cv_type_socklen_t=no
29196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29198 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29199 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29201 # The cast to long int works around a bug in the HP C Compiler
29202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29204 # This bug is HP SR number 8606223364.
29205 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29206 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29207 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29208 echo $ECHO_N "(cached) $ECHO_C" >&6
29210 if test "$cross_compiling" = yes; then
29211 # Depending upon the size, compute the lo and hi bounds.
29212 cat >conftest.$ac_ext <<_ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h. */
29218 $ac_includes_default
29219 typedef socklen_t ac__type_sizeof_;
29223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29230 rm -f conftest.$ac_objext
29231 if { (ac_try="$ac_compile"
29232 case "(($ac_try" in
29233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234 *) ac_try_echo=$ac_try;;
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237 (eval "$ac_compile") 2>conftest.er1
29239 grep -v '^ *+' conftest.er1 >conftest.err
29241 cat conftest.err >&5
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); } && {
29244 test -z "$ac_c_werror_flag" ||
29245 test ! -s conftest.err
29246 } && test -s conftest.$ac_objext; then
29249 cat >conftest.$ac_ext <<_ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h. */
29255 $ac_includes_default
29256 typedef socklen_t ac__type_sizeof_;
29260 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29267 rm -f conftest.$ac_objext
29268 if { (ac_try="$ac_compile"
29269 case "(($ac_try" in
29270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271 *) ac_try_echo=$ac_try;;
29273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274 (eval "$ac_compile") 2>conftest.er1
29276 grep -v '^ *+' conftest.er1 >conftest.err
29278 cat conftest.err >&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } && {
29281 test -z "$ac_c_werror_flag" ||
29282 test ! -s conftest.err
29283 } && test -s conftest.$ac_objext; then
29284 ac_hi=$ac_mid; break
29286 echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29289 ac_lo=`expr $ac_mid + 1`
29290 if test $ac_lo -le $ac_mid; then
29294 ac_mid=`expr 2 '*' $ac_mid + 1`
29297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29300 echo "$as_me: failed program was:" >&5
29301 sed 's/^/| /' conftest.$ac_ext >&5
29303 cat >conftest.$ac_ext <<_ACEOF
29306 cat confdefs.h >>conftest.$ac_ext
29307 cat >>conftest.$ac_ext <<_ACEOF
29308 /* end confdefs.h. */
29309 $ac_includes_default
29310 typedef socklen_t ac__type_sizeof_;
29314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29321 rm -f conftest.$ac_objext
29322 if { (ac_try="$ac_compile"
29323 case "(($ac_try" in
29324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29325 *) ac_try_echo=$ac_try;;
29327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29328 (eval "$ac_compile") 2>conftest.er1
29330 grep -v '^ *+' conftest.er1 >conftest.err
29332 cat conftest.err >&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); } && {
29335 test -z "$ac_c_werror_flag" ||
29336 test ! -s conftest.err
29337 } && test -s conftest.$ac_objext; then
29340 cat >conftest.$ac_ext <<_ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h. */
29346 $ac_includes_default
29347 typedef socklen_t ac__type_sizeof_;
29351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29358 rm -f conftest.$ac_objext
29359 if { (ac_try="$ac_compile"
29360 case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_compile") 2>conftest.er1
29367 grep -v '^ *+' conftest.er1 >conftest.err
29369 cat conftest.err >&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } && {
29372 test -z "$ac_c_werror_flag" ||
29373 test ! -s conftest.err
29374 } && test -s conftest.$ac_objext; then
29375 ac_lo=$ac_mid; break
29377 echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29380 ac_hi=`expr '(' $ac_mid ')' - 1`
29381 if test $ac_mid -le $ac_hi; then
29385 ac_mid=`expr 2 '*' $ac_mid`
29388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391 echo "$as_me: failed program was:" >&5
29392 sed 's/^/| /' conftest.$ac_ext >&5
29397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29401 # Binary search between lo and hi bounds.
29402 while test "x$ac_lo" != "x$ac_hi"; do
29403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29404 cat >conftest.$ac_ext <<_ACEOF
29407 cat confdefs.h >>conftest.$ac_ext
29408 cat >>conftest.$ac_ext <<_ACEOF
29409 /* end confdefs.h. */
29410 $ac_includes_default
29411 typedef socklen_t ac__type_sizeof_;
29415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29422 rm -f conftest.$ac_objext
29423 if { (ac_try="$ac_compile"
29424 case "(($ac_try" in
29425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426 *) ac_try_echo=$ac_try;;
29428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29429 (eval "$ac_compile") 2>conftest.er1
29431 grep -v '^ *+' conftest.er1 >conftest.err
29433 cat conftest.err >&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } && {
29436 test -z "$ac_c_werror_flag" ||
29437 test ! -s conftest.err
29438 } && test -s conftest.$ac_objext; then
29441 echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29444 ac_lo=`expr '(' $ac_mid ')' + 1`
29447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29450 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29451 '') if test "$ac_cv_type_socklen_t" = yes; then
29452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29453 See \`config.log' for more details." >&5
29454 echo "$as_me: error: cannot compute sizeof (socklen_t)
29455 See \`config.log' for more details." >&2;}
29456 { (exit 77); exit 77; }; }
29458 ac_cv_sizeof_socklen_t=0
29462 cat >conftest.$ac_ext <<_ACEOF
29465 cat confdefs.h >>conftest.$ac_ext
29466 cat >>conftest.$ac_ext <<_ACEOF
29467 /* end confdefs.h. */
29468 $ac_includes_default
29469 typedef socklen_t ac__type_sizeof_;
29470 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29471 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29473 #include <stdlib.h>
29478 FILE *f = fopen ("conftest.val", "w");
29481 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29483 long int i = longval ();
29484 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29486 fprintf (f, "%ld\n", i);
29490 unsigned long int i = ulongval ();
29491 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29493 fprintf (f, "%lu\n", i);
29495 return ferror (f) || fclose (f) != 0;
29501 rm -f conftest$ac_exeext
29502 if { (ac_try="$ac_link"
29503 case "(($ac_try" in
29504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505 *) ac_try_echo=$ac_try;;
29507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508 (eval "$ac_link") 2>&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29512 { (case "(($ac_try" in
29513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29514 *) ac_try_echo=$ac_try;;
29516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29517 (eval "$ac_try") 2>&5
29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); }; }; then
29521 ac_cv_sizeof_socklen_t=`cat conftest.val`
29523 echo "$as_me: program exited with status $ac_status" >&5
29524 echo "$as_me: failed program was:" >&5
29525 sed 's/^/| /' conftest.$ac_ext >&5
29527 ( exit $ac_status )
29528 if test "$ac_cv_type_socklen_t" = yes; then
29529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29530 See \`config.log' for more details." >&5
29531 echo "$as_me: error: cannot compute sizeof (socklen_t)
29532 See \`config.log' for more details." >&2;}
29533 { (exit 77); exit 77; }; }
29535 ac_cv_sizeof_socklen_t=0
29538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29542 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29543 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29547 cat >>confdefs.h <<_ACEOF
29548 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29555 cat >>confdefs.h <<_ACEOF
29556 #define NFS_STATEDIR "$statedir"
29560 if test "x$cross_compiling" = "xno"; then
29561 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29562 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29563 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29564 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29566 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29567 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29568 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29569 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29584 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29589 my_am_cflags="-Wall $ARCHFLAGS -pipe"
29591 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29593 AM_CFLAGS="$my_am_cflags"
29596 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29597 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29600 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/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
29602 cat >confcache <<\_ACEOF
29603 # This file is a shell script that caches the results of configure
29604 # tests run on this system so they can be shared between configure
29605 # scripts and configure runs, see configure's option --config-cache.
29606 # It is not useful on other systems. If it contains results you don't
29607 # want to keep, you may remove or edit it.
29609 # config.status only pays attention to the cache file if you give it
29610 # the --recheck option to rerun configure.
29612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29614 # following values.
29618 # The following way of writing the cache mishandles newlines in values,
29619 # but we know of no workaround that is simple, portable, and efficient.
29620 # So, we kill variables containing newlines.
29621 # Ultrix sh set writes to stderr and can't be redirected directly,
29622 # and sets the high bit in the cache file unless we assign to the vars.
29624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29625 eval ac_val=\$$ac_var
29629 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29630 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29633 _ | IFS | as_nl) ;; #(
29634 *) $as_unset $ac_var ;;
29640 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29641 *${as_nl}ac_space=\ *)
29642 # `set' does not quote correctly, so add quotes (double-quote
29643 # substitution turns \\\\ into \\, and sed turns \\ into \).
29646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29649 # `set' quotes correctly as required by POSIX, so do not add quotes.
29650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29661 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29663 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29664 if test -w "$cache_file"; then
29665 test "x$cache_file" != "x/dev/null" &&
29666 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29667 echo "$as_me: updating cache $cache_file" >&6;}
29668 cat confcache >$cache_file
29670 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29671 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29677 # Let make expand exec_prefix.
29678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29680 DEFS=-DHAVE_CONFIG_H
29684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29685 # 1. Remove the extension, and $U if already installed.
29686 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29687 ac_i=`echo "$ac_i" | sed "$ac_script"`
29688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29689 # will be set to the directory where LIBOBJS objects are built.
29690 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29691 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29693 LIBOBJS=$ac_libobjs
29695 LTLIBOBJS=$ac_ltlibobjs
29698 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29699 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29700 Usually this means the macro was only invoked conditionally." >&5
29701 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29702 Usually this means the macro was only invoked conditionally." >&2;}
29703 { (exit 1); exit 1; }; }
29705 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29706 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29707 Usually this means the macro was only invoked conditionally." >&5
29708 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29709 Usually this means the macro was only invoked conditionally." >&2;}
29710 { (exit 1); exit 1; }; }
29712 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29713 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29714 Usually this means the macro was only invoked conditionally." >&5
29715 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29716 Usually this means the macro was only invoked conditionally." >&2;}
29717 { (exit 1); exit 1; }; }
29719 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
29720 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29721 Usually this means the macro was only invoked conditionally." >&5
29722 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29723 Usually this means the macro was only invoked conditionally." >&2;}
29724 { (exit 1); exit 1; }; }
29726 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
29727 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
29728 Usually this means the macro was only invoked conditionally." >&5
29729 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
29730 Usually this means the macro was only invoked conditionally." >&2;}
29731 { (exit 1); exit 1; }; }
29733 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29734 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29735 Usually this means the macro was only invoked conditionally." >&5
29736 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29737 Usually this means the macro was only invoked conditionally." >&2;}
29738 { (exit 1); exit 1; }; }
29740 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29741 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29742 Usually this means the macro was only invoked conditionally." >&5
29743 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29744 Usually this means the macro was only invoked conditionally." >&2;}
29745 { (exit 1); exit 1; }; }
29747 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29748 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29749 Usually this means the macro was only invoked conditionally." >&5
29750 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29751 Usually this means the macro was only invoked conditionally." >&2;}
29752 { (exit 1); exit 1; }; }
29754 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29755 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29756 Usually this means the macro was only invoked conditionally." >&5
29757 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29758 Usually this means the macro was only invoked conditionally." >&2;}
29759 { (exit 1); exit 1; }; }
29761 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29762 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29763 Usually this means the macro was only invoked conditionally." >&5
29764 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29765 Usually this means the macro was only invoked conditionally." >&2;}
29766 { (exit 1); exit 1; }; }
29769 : ${CONFIG_STATUS=./config.status}
29770 ac_clean_files_save=$ac_clean_files
29771 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29772 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29773 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29774 cat >$CONFIG_STATUS <<_ACEOF
29776 # Generated by $as_me.
29777 # Run this file to recreate the current configuration.
29778 # Compiler output produced by configure, useful for debugging
29779 # configure, is in config.log if it exists.
29782 ac_cs_recheck=false
29784 SHELL=\${CONFIG_SHELL-$SHELL}
29787 cat >>$CONFIG_STATUS <<\_ACEOF
29788 ## --------------------- ##
29789 ## M4sh Initialization. ##
29790 ## --------------------- ##
29792 # Be more Bourne compatible
29793 DUALCASE=1; export DUALCASE # for MKS sh
29794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29797 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29798 # is contrary to our usage. Disable this feature.
29799 alias -g '${1+"$@"}'='"$@"'
29800 setopt NO_GLOB_SUBST
29802 case `(set -o) 2>/dev/null` in
29803 *posix*) set -o posix ;;
29812 # Avoid depending upon Character Ranges.
29813 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29814 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29815 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29816 as_cr_digits='0123456789'
29817 as_cr_alnum=$as_cr_Letters$as_cr_digits
29819 # The user is always right.
29820 if test "${PATH_SEPARATOR+set}" != set; then
29821 echo "#! /bin/sh" >conf$$.sh
29822 echo "exit 0" >>conf$$.sh
29824 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29832 # Support unset when possible.
29833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29841 # We need space, tab and new line, in precisely that order. Quoting is
29842 # there to prevent editors from complaining about space-tab.
29843 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29844 # splitting by setting IFS to empty value.)
29849 # Find who we are. Look in the path if we contain no directory separator.
29851 *[\\/]* ) as_myself=$0 ;;
29852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29853 for as_dir in $PATH
29856 test -z "$as_dir" && as_dir=.
29857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29863 # We did not find ourselves, most probably we were run as `sh COMMAND'
29864 # in which case we are not to be found in the path.
29865 if test "x$as_myself" = x; then
29868 if test ! -f "$as_myself"; then
29869 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29870 { (exit 1); exit 1; }
29873 # Work around bugs in pre-3.0 UWIN ksh.
29874 for as_var in ENV MAIL MAILPATH
29875 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29883 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29884 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29885 LC_TELEPHONE LC_TIME
29887 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29888 eval $as_var=C; export $as_var
29890 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29894 # Required to use basename.
29895 if expr a : '\(a\)' >/dev/null 2>&1 &&
29896 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29902 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29903 as_basename=basename
29909 # Name of the executable.
29910 as_me=`$as_basename -- "$0" ||
29911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29912 X"$0" : 'X\(//\)$' \| \
29913 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29915 sed '/^.*\/\([^/][^/]*\)\/*$/{
29934 as_lineno_1=$LINENO
29935 as_lineno_2=$LINENO
29936 test "x$as_lineno_1" != "x$as_lineno_2" &&
29937 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29939 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29940 # uniformly replaced by the line number. The first 'sed' inserts a
29941 # line-number line after each line using $LINENO; the second 'sed'
29942 # does the real work. The second script uses 'N' to pair each
29943 # line-number line with the line containing $LINENO, and appends
29944 # trailing '-' during substitution so that $LINENO is not a special
29945 # case at line end.
29946 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29947 # scripts with optimization help from Paolo Bonzini. Blame Lee
29948 # E. McMahon (1931-1989) for sed's syntax. :-)
29960 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29963 ' >$as_me.lineno &&
29964 chmod +x "$as_me.lineno" ||
29965 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29966 { (exit 1); exit 1; }; }
29968 # Don't try to exec as it changes $[0], causing all sort of problems
29969 # (the dirname of $[0] is not the place where we might find the
29970 # original and so on. Autoconf is especially sensitive to this).
29971 . "./$as_me.lineno"
29972 # Exit status is that of the last command.
29977 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29983 ECHO_C= ECHO_N= ECHO_T=
29984 case `echo -n x` in
29986 case `echo 'x\c'` in
29987 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29994 if expr a : '\(a\)' >/dev/null 2>&1 &&
29995 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30001 rm -f conf$$ conf$$.exe conf$$.file
30002 if test -d conf$$.dir; then
30003 rm -f conf$$.dir/conf$$.file
30009 if ln -s conf$$.file conf$$ 2>/dev/null; then
30011 # ... but there are two gotchas:
30012 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30013 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30014 # In both cases, we have to default to `cp -p'.
30015 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30017 elif ln conf$$.file conf$$ 2>/dev/null; then
30022 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30023 rmdir conf$$.dir 2>/dev/null
30025 if mkdir -p . 2>/dev/null; then
30028 test -d ./-p && rmdir ./-p
30032 if test -x / >/dev/null 2>&1; then
30033 as_test_x='test -x'
30035 if ls -dL / >/dev/null 2>&1; then
30042 if test -d "$1"; then
30048 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30049 ???[sx]*):;;*)false;;esac;fi
30053 as_executable_p=$as_test_x
30055 # Sed expression to map a string onto a valid CPP name.
30056 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30058 # Sed expression to map a string onto a valid variable name.
30059 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30064 # Save the log message, to keep $[0] and so on meaningful, and to
30065 # report actual input values of CONFIG_FILES etc. instead of their
30066 # values after options handling.
30068 This file was extended by linux nfs-utils $as_me 1.1.0-rc2, which was
30069 generated by GNU Autoconf 2.61. Invocation command line was
30071 CONFIG_FILES = $CONFIG_FILES
30072 CONFIG_HEADERS = $CONFIG_HEADERS
30073 CONFIG_LINKS = $CONFIG_LINKS
30074 CONFIG_COMMANDS = $CONFIG_COMMANDS
30077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30082 cat >>$CONFIG_STATUS <<_ACEOF
30083 # Files that config.status was made for.
30084 config_files="$ac_config_files"
30085 config_headers="$ac_config_headers"
30086 config_commands="$ac_config_commands"
30090 cat >>$CONFIG_STATUS <<\_ACEOF
30092 \`$as_me' instantiates files from templates according to the
30093 current configuration.
30095 Usage: $0 [OPTIONS] [FILE]...
30097 -h, --help print this help, then exit
30098 -V, --version print version number and configuration settings, then exit
30099 -q, --quiet do not print progress messages
30100 -d, --debug don't remove temporary files
30101 --recheck update $as_me by reconfiguring in the same conditions
30102 --file=FILE[:TEMPLATE]
30103 instantiate the configuration file FILE
30104 --header=FILE[:TEMPLATE]
30105 instantiate the configuration header FILE
30107 Configuration files:
30110 Configuration headers:
30113 Configuration commands:
30116 Report bugs to <bug-autoconf@gnu.org>."
30119 cat >>$CONFIG_STATUS <<_ACEOF
30121 linux nfs-utils config.status 1.1.0-rc2
30122 configured by $0, generated by GNU Autoconf 2.61,
30123 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30125 Copyright (C) 2006 Free Software Foundation, Inc.
30126 This config.status script is free software; the Free Software Foundation
30127 gives unlimited permission to copy, distribute and modify it."
30135 cat >>$CONFIG_STATUS <<\_ACEOF
30136 # If no file are specified by the user, then we need to provide default
30137 # value. By we need to know if files were specified by the user.
30143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30144 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30155 # Handling of the options.
30156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30158 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30159 echo "$ac_cs_version"; exit ;;
30160 --debug | --debu | --deb | --de | --d | -d )
30162 --file | --fil | --fi | --f )
30164 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30165 ac_need_defaults=false;;
30166 --header | --heade | --head | --hea )
30168 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30169 ac_need_defaults=false;;
30171 # Conflict between --help and --header
30172 { echo "$as_me: error: ambiguous option: $1
30173 Try \`$0 --help' for more information." >&2
30174 { (exit 1); exit 1; }; };;
30175 --help | --hel | -h )
30176 echo "$ac_cs_usage"; exit ;;
30177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30178 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30181 # This is an error.
30182 -*) { echo "$as_me: error: unrecognized option: $1
30183 Try \`$0 --help' for more information." >&2
30184 { (exit 1); exit 1; }; } ;;
30186 *) ac_config_targets="$ac_config_targets $1"
30187 ac_need_defaults=false ;;
30193 ac_configure_extra_args=
30195 if $ac_cs_silent; then
30197 ac_configure_extra_args="$ac_configure_extra_args --silent"
30201 cat >>$CONFIG_STATUS <<_ACEOF
30202 if \$ac_cs_recheck; then
30203 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30204 CONFIG_SHELL=$SHELL
30205 export CONFIG_SHELL
30206 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30210 cat >>$CONFIG_STATUS <<\_ACEOF
30214 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30215 ## Running $as_me. ##
30221 cat >>$CONFIG_STATUS <<_ACEOF
30225 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30229 cat >>$CONFIG_STATUS <<\_ACEOF
30231 # Handling of arguments.
30232 for ac_config_target in $ac_config_targets
30234 case $ac_config_target in
30235 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30236 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30237 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30238 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30239 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30240 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30241 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30242 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30243 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30244 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30245 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30246 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30247 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30248 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30249 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30250 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30251 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30252 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30253 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30254 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30255 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30256 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30257 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30258 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30259 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30260 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30261 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
30262 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30263 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30267 { (exit 1); exit 1; }; };;
30272 # If the user did not use the arguments to specify the items to instantiate,
30273 # then the envvar interface is used. Set only those that are not.
30274 # We use the long form for the default assignment because of an extremely
30275 # bizarre bug on SunOS 4.1.3.
30276 if $ac_need_defaults; then
30277 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30278 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30279 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30282 # Have a temporary directory for convenience. Make it in the build tree
30283 # simply because there is no reason against having it here, and in addition,
30284 # creating and moving files from /tmp can sometimes cause problems.
30285 # Hook for its removal unless debugging.
30286 # Note that there is a small window in which the directory will not be cleaned:
30287 # after its creation but before its name has been assigned to `$tmp'.
30291 trap 'exit_status=$?
30292 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30294 trap '{ (exit 1); exit 1; }' 1 2 13 15
30296 # Create a (secure) tmp directory for tmp files.
30299 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30300 test -n "$tmp" && test -d "$tmp"
30303 tmp=./conf$$-$RANDOM
30304 (umask 077 && mkdir "$tmp")
30307 echo "$me: cannot create a temporary directory in ." >&2
30308 { (exit 1); exit 1; }
30312 # Set up the sed scripts for CONFIG_FILES section.
30315 # No need to generate the scripts if there are no CONFIG_FILES.
30316 # This happens for instance when ./config.status config.h
30317 if test -n "$CONFIG_FILES"; then
30324 for ac_last_try in false false false false false :; do
30325 cat >conf$$subs.sed <<_ACEOF
30326 SHELL!$SHELL$ac_delim
30327 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30328 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30329 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30330 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30331 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30332 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30333 exec_prefix!$exec_prefix$ac_delim
30334 prefix!$prefix$ac_delim
30335 program_transform_name!$program_transform_name$ac_delim
30336 bindir!$bindir$ac_delim
30337 sbindir!$sbindir$ac_delim
30338 libexecdir!$libexecdir$ac_delim
30339 datarootdir!$datarootdir$ac_delim
30340 datadir!$datadir$ac_delim
30341 sysconfdir!$sysconfdir$ac_delim
30342 sharedstatedir!$sharedstatedir$ac_delim
30343 localstatedir!$localstatedir$ac_delim
30344 includedir!$includedir$ac_delim
30345 oldincludedir!$oldincludedir$ac_delim
30346 docdir!$docdir$ac_delim
30347 infodir!$infodir$ac_delim
30348 htmldir!$htmldir$ac_delim
30349 dvidir!$dvidir$ac_delim
30350 pdfdir!$pdfdir$ac_delim
30351 psdir!$psdir$ac_delim
30352 libdir!$libdir$ac_delim
30353 localedir!$localedir$ac_delim
30354 mandir!$mandir$ac_delim
30355 DEFS!$DEFS$ac_delim
30356 ECHO_C!$ECHO_C$ac_delim
30357 ECHO_N!$ECHO_N$ac_delim
30358 ECHO_T!$ECHO_T$ac_delim
30359 LIBS!$LIBS$ac_delim
30360 build_alias!$build_alias$ac_delim
30361 host_alias!$host_alias$ac_delim
30362 target_alias!$target_alias$ac_delim
30363 build!$build$ac_delim
30364 build_cpu!$build_cpu$ac_delim
30365 build_vendor!$build_vendor$ac_delim
30366 build_os!$build_os$ac_delim
30367 host!$host$ac_delim
30368 host_cpu!$host_cpu$ac_delim
30369 host_vendor!$host_vendor$ac_delim
30370 host_os!$host_os$ac_delim
30371 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30372 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30373 INSTALL_DATA!$INSTALL_DATA$ac_delim
30374 am__isrc!$am__isrc$ac_delim
30375 CYGPATH_W!$CYGPATH_W$ac_delim
30376 PACKAGE!$PACKAGE$ac_delim
30377 VERSION!$VERSION$ac_delim
30378 ACLOCAL!$ACLOCAL$ac_delim
30379 AUTOCONF!$AUTOCONF$ac_delim
30380 AUTOMAKE!$AUTOMAKE$ac_delim
30381 AUTOHEADER!$AUTOHEADER$ac_delim
30382 MAKEINFO!$MAKEINFO$ac_delim
30383 install_sh!$install_sh$ac_delim
30384 STRIP!$STRIP$ac_delim
30385 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30386 mkdir_p!$mkdir_p$ac_delim
30388 SET_MAKE!$SET_MAKE$ac_delim
30389 am__leading_dot!$am__leading_dot$ac_delim
30390 AMTAR!$AMTAR$ac_delim
30391 am__tar!$am__tar$ac_delim
30392 am__untar!$am__untar$ac_delim
30393 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30394 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30395 MAINT!$MAINT$ac_delim
30396 RELEASE!$RELEASE$ac_delim
30397 statedir!$statedir$ac_delim
30398 statduser!$statduser$ac_delim
30399 startstatd!$startstatd$ac_delim
30400 enable_nfsv3!$enable_nfsv3$ac_delim
30401 IDMAPD!$IDMAPD$ac_delim
30402 enable_nfsv4!$enable_nfsv4$ac_delim
30403 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30404 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30405 GSSD!$GSSD$ac_delim
30406 SVCGSSD!$SVCGSSD$ac_delim
30407 enable_gss!$enable_gss$ac_delim
30408 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30409 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30410 kprefix!$kprefix$ac_delim
30411 secure_statd!$secure_statd$ac_delim
30412 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
30413 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
30414 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30415 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30416 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30417 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30418 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30420 CFLAGS!$CFLAGS$ac_delim
30421 LDFLAGS!$LDFLAGS$ac_delim
30422 CPPFLAGS!$CPPFLAGS$ac_delim
30425 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30427 elif $ac_last_try; then
30428 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30429 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30430 { (exit 1); exit 1; }; }
30432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30436 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30437 if test -n "$ac_eof"; then
30438 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30439 ac_eof=`expr $ac_eof + 1`
30442 cat >>$CONFIG_STATUS <<_ACEOF
30443 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30448 s/^/s,@/; s/!/@,|#_!!_#|/
30451 s/'"$ac_delim"'$/,g/; t
30453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30454 ' >>$CONFIG_STATUS <conf$$subs.sed
30455 rm -f conf$$subs.sed
30456 cat >>$CONFIG_STATUS <<_ACEOF
30462 for ac_last_try in false false false false false :; do
30463 cat >conf$$subs.sed <<_ACEOF
30464 ac_ct_CC!$ac_ct_CC$ac_delim
30465 EXEEXT!$EXEEXT$ac_delim
30466 OBJEXT!$OBJEXT$ac_delim
30467 DEPDIR!$DEPDIR$ac_delim
30468 am__include!$am__include$ac_delim
30469 am__quote!$am__quote$ac_delim
30470 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30471 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30472 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30473 CCDEPMODE!$CCDEPMODE$ac_delim
30474 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30475 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30476 LIBWRAP!$LIBWRAP$ac_delim
30477 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30478 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30480 CXXFLAGS!$CXXFLAGS$ac_delim
30481 ac_ct_CXX!$ac_ct_CXX$ac_delim
30482 CXXDEPMODE!$CXXDEPMODE$ac_delim
30483 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30484 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30486 LN_S!$LN_S$ac_delim
30487 GREP!$GREP$ac_delim
30488 EGREP!$EGREP$ac_delim
30489 ECHO!$ECHO$ac_delim
30491 RANLIB!$RANLIB$ac_delim
30492 CXXCPP!$CXXCPP$ac_delim
30494 FFLAGS!$FFLAGS$ac_delim
30495 ac_ct_F77!$ac_ct_F77$ac_delim
30496 LIBTOOL!$LIBTOOL$ac_delim
30497 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30499 LIBNSL!$LIBNSL$ac_delim
30500 PKG_CONFIG!$PKG_CONFIG$ac_delim
30501 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30502 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30503 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30504 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30505 LIBSOCKET!$LIBSOCKET$ac_delim
30506 LIBCRYPT!$LIBCRYPT$ac_delim
30507 LIBBSD!$LIBBSD$ac_delim
30508 LIBBLKID!$LIBBLKID$ac_delim
30509 KRBDIR!$KRBDIR$ac_delim
30510 KRBLIBS!$KRBLIBS$ac_delim
30511 KRBCFLAGS!$KRBCFLAGS$ac_delim
30512 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30513 K5VERS!$K5VERS$ac_delim
30514 ALLOCA!$ALLOCA$ac_delim
30515 LIBOBJS!$LIBOBJS$ac_delim
30516 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30517 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30518 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30519 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30520 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30521 AM_CFLAGS!$AM_CFLAGS$ac_delim
30522 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30523 LTLIBOBJS!$LTLIBOBJS$ac_delim
30526 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
30528 elif $ac_last_try; then
30529 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30530 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30531 { (exit 1); exit 1; }; }
30533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30537 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30538 if test -n "$ac_eof"; then
30539 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30540 ac_eof=`expr $ac_eof + 1`
30543 cat >>$CONFIG_STATUS <<_ACEOF
30544 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30548 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30549 s/^/s,@/; s/!/@,|#_!!_#|/
30552 s/'"$ac_delim"'$/,g/; t
30554 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30555 ' >>$CONFIG_STATUS <conf$$subs.sed
30556 rm -f conf$$subs.sed
30557 cat >>$CONFIG_STATUS <<_ACEOF
30564 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30565 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30566 # trailing colons and then remove the whole line if VPATH becomes empty
30567 # (actually we leave an empty line to preserve line numbers).
30568 if test "x$srcdir" = x.; then
30569 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30570 s/:*\$(srcdir):*/:/
30571 s/:*\${srcdir}:*/:/
30573 s/^\([^=]*=[ ]*\):*/\1/
30579 cat >>$CONFIG_STATUS <<\_ACEOF
30580 fi # test -n "$CONFIG_FILES"
30583 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30586 :[FHLC]) ac_mode=$ac_tag; continue;;
30588 case $ac_mode$ac_tag in
30590 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30591 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30592 { (exit 1); exit 1; }; };;
30593 :[FH]-) ac_tag=-:-;;
30594 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30611 -) ac_f="$tmp/stdin";;
30612 *) # Look for the file first in the build tree, then in the source tree
30613 # (if the path is not absolute). The absolute path cannot be DOS-style,
30614 # because $ac_f cannot contain `:'.
30618 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30620 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30621 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30622 { (exit 1); exit 1; }; };;
30624 ac_file_inputs="$ac_file_inputs $ac_f"
30627 # Let's still pretend it is `configure' which instantiates (i.e., don't
30628 # use $as_me), people would be surprised to read:
30629 # /* config.h. Generated by config.status. */
30630 configure_input="Generated from "`IFS=:
30631 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30632 if test x"$ac_file" != x-; then
30633 configure_input="$ac_file. $configure_input"
30634 { echo "$as_me:$LINENO: creating $ac_file" >&5
30635 echo "$as_me: creating $ac_file" >&6;}
30639 *:-:* | *:-) cat >"$tmp/stdin";;
30644 ac_dir=`$as_dirname -- "$ac_file" ||
30645 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30646 X"$ac_file" : 'X\(//\)[^/]' \| \
30647 X"$ac_file" : 'X\(//\)$' \| \
30648 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30654 /^X\(\/\/\)[^/].*/{
30669 -*) as_dir=./$as_dir;;
30671 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30675 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30676 *) as_qdir=$as_dir;;
30678 as_dirs="'$as_qdir' $as_dirs"
30679 as_dir=`$as_dirname -- "$as_dir" ||
30680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30681 X"$as_dir" : 'X\(//\)[^/]' \| \
30682 X"$as_dir" : 'X\(//\)$' \| \
30683 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30689 /^X\(\/\/\)[^/].*/{
30702 test -d "$as_dir" && break
30704 test -z "$as_dirs" || eval "mkdir $as_dirs"
30705 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30706 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30707 { (exit 1); exit 1; }; }; }
30711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30714 # A ".." for each directory in $ac_dir_suffix.
30715 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30716 case $ac_top_builddir_sub in
30717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30721 ac_abs_top_builddir=$ac_pwd
30722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30723 # for backward compatibility:
30724 ac_top_builddir=$ac_top_build_prefix
30727 .) # We are building in place.
30729 ac_top_srcdir=$ac_top_builddir_sub
30730 ac_abs_top_srcdir=$ac_pwd ;;
30731 [\\/]* | ?:[\\/]* ) # Absolute name.
30732 ac_srcdir=$srcdir$ac_dir_suffix;
30733 ac_top_srcdir=$srcdir
30734 ac_abs_top_srcdir=$srcdir ;;
30735 *) # Relative name.
30736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30737 ac_top_srcdir=$ac_top_build_prefix$srcdir
30738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30753 ac_MKDIR_P=$MKDIR_P
30755 [\\/$]* | ?:[\\/]* ) ;;
30756 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30760 cat >>$CONFIG_STATUS <<\_ACEOF
30761 # If the template does not know about datarootdir, expand it.
30762 # FIXME: This hack should be removed a few years after 2.60.
30763 ac_datarootdir_hack=; ac_datarootdir_seen=
30765 case `sed -n '/datarootdir/ {
30774 ' $ac_file_inputs` in
30775 *datarootdir*) ac_datarootdir_seen=yes;;
30776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30777 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30778 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30780 cat >>$CONFIG_STATUS <<_ACEOF
30781 ac_datarootdir_hack='
30782 s&@datadir@&$datadir&g
30783 s&@docdir@&$docdir&g
30784 s&@infodir@&$infodir&g
30785 s&@localedir@&$localedir&g
30786 s&@mandir@&$mandir&g
30787 s&\\\${datarootdir}&$datarootdir&g' ;;
30791 # Neutralize VPATH when `$srcdir' = `.'.
30792 # Shell code in configure.ac might set extrasub.
30793 # FIXME: do we really want to maintain this feature?
30794 cat >>$CONFIG_STATUS <<_ACEOF
30798 cat >>$CONFIG_STATUS <<\_ACEOF
30800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30801 s&@configure_input@&$configure_input&;t t
30802 s&@top_builddir@&$ac_top_builddir_sub&;t t
30803 s&@srcdir@&$ac_srcdir&;t t
30804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30805 s&@top_srcdir@&$ac_top_srcdir&;t t
30806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30807 s&@builddir@&$ac_builddir&;t t
30808 s&@abs_builddir@&$ac_abs_builddir&;t t
30809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30810 s&@INSTALL@&$ac_INSTALL&;t t
30811 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30812 $ac_datarootdir_hack
30813 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30815 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30816 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30817 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30818 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30819 which seems to be undefined. Please make sure it is defined." >&5
30820 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30821 which seems to be undefined. Please make sure it is defined." >&2;}
30825 -) cat "$tmp/out"; rm -f "$tmp/out";;
30826 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30835 # Transform confdefs.h into a sed script `conftest.defines', that
30836 # substitutes the proper values into config.h.in to produce config.h.
30837 rm -f conftest.defines conftest.tail
30838 # First, append a space to every undef/define line, to ease matching.
30839 echo 's/$/ /' >conftest.defines
30840 # Then, protect against being on the right side of a sed subst, or in
30841 # an unquoted here document, in config.status. If some macros were
30842 # called several times there might be several #defines for the same
30843 # symbol, which is useless. But do not sort them, since the last
30844 # AC_DEFINE must be honored.
30845 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30846 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30847 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30848 # PARAMS is the parameter list in the macro definition--in most cases, it's
30849 # just an empty string.
30850 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30851 ac_dB='\\)[ (].*,\\1define\\2'
30859 s/^[ ]*#[ ]*define[ ][ ]*//
30864 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30865 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30866 ' >>conftest.defines
30868 # Remove the space that was appended to ease matching.
30869 # Then replace #undef with comments. This is necessary, for
30870 # example, in the case of _POSIX_SOURCE, which is predefined and required
30871 # on some systems where configure will not decide to define it.
30872 # (The regexp can be short, since the line contains either #define or #undef.)
30874 s,^[ #]*u.*,/* & */,' >>conftest.defines
30876 # Break up conftest.defines:
30877 ac_max_sed_lines=50
30879 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30880 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30881 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30883 ac_in='$ac_file_inputs'
30884 ac_out='"$tmp/out1"'
30885 ac_nxt='"$tmp/out2"'
30889 # Write a here document:
30890 cat >>$CONFIG_STATUS <<_ACEOF
30891 # First, check the format of the line:
30892 cat >"\$tmp/defines.sed" <<\\CEOF
30893 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30894 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30898 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30900 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30901 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30902 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30903 grep . conftest.tail >/dev/null || break
30904 rm -f conftest.defines
30905 mv conftest.tail conftest.defines
30907 rm -f conftest.defines conftest.tail
30909 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30910 cat >>$CONFIG_STATUS <<\_ACEOF
30911 if test x"$ac_file" != x-; then
30912 echo "/* $configure_input */" >"$tmp/config.h"
30913 cat "$ac_result" >>"$tmp/config.h"
30914 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30915 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30916 echo "$as_me: $ac_file is unchanged" >&6;}
30919 mv "$tmp/config.h" $ac_file
30922 echo "/* $configure_input */"
30926 # Compute $ac_file's index in $config_headers.
30928 for _am_header in $config_headers :; do
30929 case $_am_header in
30930 $ac_file | $ac_file:* )
30933 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30936 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30937 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30938 X$ac_file : 'X\(//\)[^/]' \| \
30939 X$ac_file : 'X\(//\)$' \| \
30940 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30946 /^X\(\/\/\)[^/].*/{
30958 s/.*/./; q'`/stamp-h$_am_stamp_count
30961 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30962 echo "$as_me: executing $ac_file commands" >&6;}
30967 case $ac_file$ac_mode in
30968 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30969 # Strip MF so we end up with the name of the file.
30970 mf=`echo "$mf" | sed -e 's/:.*$//'`
30971 # Check whether this is an Automake generated Makefile or not.
30972 # We used to match only the files named `Makefile.in', but
30973 # some people rename them; so instead we look at the file content.
30974 # Grep'ing the first line is not enough: some people post-process
30975 # each Makefile.in and add a new line on top of each file to say so.
30976 # Grep'ing the whole file is not good either: AIX grep has a line
30977 # limit of 2048, but all sed's we know have understand at least 4000.
30978 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30979 dirpart=`$as_dirname -- "$mf" ||
30980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30981 X"$mf" : 'X\(//\)[^/]' \| \
30982 X"$mf" : 'X\(//\)$' \| \
30983 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30989 /^X\(\/\/\)[^/].*/{
31005 # Extract the definition of DEPDIR, am__include, and am__quote
31006 # from the Makefile without running `make'.
31007 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31008 test -z "$DEPDIR" && continue
31009 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31010 test -z "am__include" && continue
31011 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31012 # When using ansi2knr, U may be empty or an underscore; expand it
31013 U=`sed -n 's/^U = //p' < "$mf"`
31014 # Find all dependency output files, they are included files with
31015 # $(DEPDIR) in their names. We invoke sed twice because it is the
31016 # simplest approach to changing $(DEPDIR) to its actual value in the
31018 for file in `sed -n "
31019 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31020 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31021 # Make sure the directory exists.
31022 test -f "$dirpart/$file" && continue
31023 fdir=`$as_dirname -- "$file" ||
31024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31025 X"$file" : 'X\(//\)[^/]' \| \
31026 X"$file" : 'X\(//\)$' \| \
31027 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31033 /^X\(\/\/\)[^/].*/{
31046 { as_dir=$dirpart/$fdir
31048 -*) as_dir=./$as_dir;;
31050 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31054 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31055 *) as_qdir=$as_dir;;
31057 as_dirs="'$as_qdir' $as_dirs"
31058 as_dir=`$as_dirname -- "$as_dir" ||
31059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31060 X"$as_dir" : 'X\(//\)[^/]' \| \
31061 X"$as_dir" : 'X\(//\)$' \| \
31062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31068 /^X\(\/\/\)[^/].*/{
31081 test -d "$as_dir" && break
31083 test -z "$as_dirs" || eval "mkdir $as_dirs"
31084 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31085 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31086 { (exit 1); exit 1; }; }; }
31087 # echo "creating $dirpart/$file"
31088 echo '# dummy' > "$dirpart/$file"
31097 { (exit 0); exit 0; }
31099 chmod +x $CONFIG_STATUS
31100 ac_clean_files=$ac_clean_files_save
31103 # configure is writing to config.log, and then calls config.status.
31104 # config.status does its own redirection, appending to config.log.
31105 # Unfortunately, on DOS this fails, as config.log is still kept open
31106 # by configure, so config.status won't be able to write to it; its
31107 # output is simply discarded. So we exec the FD to /dev/null,
31108 # effectively closing config.log, so it can be properly (re)opened and
31109 # appended to by config.status. When coming back to configure, we
31110 # need to make the FD available again.
31111 if test "$no_create" != yes; then
31113 ac_config_status_args=
31114 test "$silent" = yes &&
31115 ac_config_status_args="$ac_config_status_args --quiet"
31117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31120 # would make configure fail if this is the last instruction.
31121 $ac_cs_success || { (exit 1); exit 1; }