2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.0-rc1.
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-rc1'
732 PACKAGE_STRING='linux nfs-utils 1.1.0-rc1'
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-rc1 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-rc1:";;
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-rc1
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-rc1, 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.9\"") >&5
22488 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 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.9" 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.9\"") >&5
22506 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 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.9" 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.9"`
22531 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
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.9) 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.9) 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 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23551 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23552 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23563 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23564 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23565 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 ac_check_lib_save_LIBS=$LIBS
23569 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23570 cat >conftest.$ac_ext <<_ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23577 /* Override any GCC internal prototype to avoid an error.
23578 Use char because int might match the return type of a GCC
23579 builtin and then its argument prototype would still apply. */
23583 char authgss_create_default ();
23587 return authgss_create_default ();
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (ac_try="$ac_link"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599 (eval "$ac_link") 2>conftest.er1
23601 grep -v '^ *+' conftest.er1 >conftest.err
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } && {
23606 test -z "$ac_c_werror_flag" ||
23607 test ! -s conftest.err
23608 } && test -s conftest$ac_exeext &&
23609 $as_test_x conftest$ac_exeext; then
23610 ac_cv_lib_rpcsecgss_authgss_create_default=yes
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_cv_lib_rpcsecgss_authgss_create_default=no
23618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23619 conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23622 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23623 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23624 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23627 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23628 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23629 { (exit 1); exit 1; }; }
23632 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23633 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23634 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 ac_check_lib_save_LIBS=$LIBS
23638 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23639 cat >conftest.$ac_ext <<_ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h. */
23646 /* Override any GCC internal prototype to avoid an error.
23647 Use char because int might match the return type of a GCC
23648 builtin and then its argument prototype would still apply. */
23652 char authgss_set_debug_level ();
23656 return authgss_set_debug_level ();
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (ac_try="$ac_link"
23663 case "(($ac_try" in
23664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665 *) ac_try_echo=$ac_try;;
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668 (eval "$ac_link") 2>conftest.er1
23670 grep -v '^ *+' conftest.er1 >conftest.err
23672 cat conftest.err >&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); } && {
23675 test -z "$ac_c_werror_flag" ||
23676 test ! -s conftest.err
23677 } && test -s conftest$ac_exeext &&
23678 $as_test_x conftest$ac_exeext; then
23679 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23681 echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23684 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23688 conftest$ac_exeext conftest.$ac_ext
23689 LIBS=$ac_check_lib_save_LIBS
23691 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23692 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23693 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23695 cat >>confdefs.h <<\_ACEOF
23696 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23727 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23728 malloc.h memory.h netdb.h netinet/in.h paths.h \
23729 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23730 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23731 syslog.h unistd.h com_err.h et/com_err.h \
23734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23741 ac_res=`eval echo '${'$as_ac_Header'}'`
23742 { echo "$as_me:$LINENO: result: $ac_res" >&5
23743 echo "${ECHO_T}$ac_res" >&6; }
23745 # Is the header compilable?
23746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23748 cat >conftest.$ac_ext <<_ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23754 $ac_includes_default
23755 #include <$ac_header>
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764 (eval "$ac_compile") 2>conftest.er1
23766 grep -v '^ *+' conftest.er1 >conftest.err
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } && {
23771 test -z "$ac_c_werror_flag" ||
23772 test ! -s conftest.err
23773 } && test -s conftest.$ac_objext; then
23774 ac_header_compiler=yes
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ac_header_compiler=no
23782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23784 echo "${ECHO_T}$ac_header_compiler" >&6; }
23786 # Is the header present?
23787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23789 cat >conftest.$ac_ext <<_ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23795 #include <$ac_header>
23797 if { (ac_try="$ac_cpp conftest.$ac_ext"
23798 case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23805 grep -v '^ *+' conftest.er1 >conftest.err
23807 cat conftest.err >&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } >/dev/null && {
23810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23811 test ! -s conftest.err
23813 ac_header_preproc=yes
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23818 ac_header_preproc=no
23821 rm -f conftest.err conftest.$ac_ext
23822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23823 echo "${ECHO_T}$ac_header_preproc" >&6; }
23825 # So? What about this header?
23826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23832 ac_header_preproc=yes
23835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23848 ## ------------------------------- ##
23849 ## Report this to nfs@lists.sf.net ##
23850 ## ------------------------------- ##
23852 ) | sed "s/^/$as_me: WARNING: /" >&2
23855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23858 echo $ECHO_N "(cached) $ECHO_C" >&6
23860 eval "$as_ac_Header=\$ac_header_preproc"
23862 ac_res=`eval echo '${'$as_ac_Header'}'`
23863 { echo "$as_me:$LINENO: result: $ac_res" >&5
23864 echo "${ECHO_T}$ac_res" >&6; }
23867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23868 cat >>confdefs.h <<_ACEOF
23869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23877 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23878 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23879 if test "${ac_cv_c_const+set}" = set; then
23880 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23892 /* FIXME: Include the comments suggested by Paul. */
23893 #ifndef __cplusplus
23894 /* Ultrix mips cc rejects this. */
23895 typedef int charset[2];
23897 /* SunOS 4.1.1 cc rejects this. */
23898 char const *const *pcpcc;
23900 /* NEC SVR4.0.2 mips cc rejects this. */
23901 struct point {int x, y;};
23902 static struct point const zero = {0,0};
23903 /* AIX XL C 1.02.0.0 rejects this.
23904 It does not let you subtract one const X* pointer from another in
23905 an arm of an if-expression whose if-part is not a constant
23907 const char *g = "string";
23908 pcpcc = &g + (g ? g-g : 0);
23909 /* HPUX 7.0 cc rejects these. */
23911 ppc = (char**) pcpcc;
23912 pcpcc = (char const *const *) ppc;
23913 { /* SCO 3.2v4 cc rejects this. */
23915 char const *s = 0 ? (char *) 0 : (char const *) 0;
23920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23921 int x[] = {25, 17};
23922 const int *foo = &x[0];
23925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23926 typedef const int *iptr;
23930 { /* AIX XL C 1.02.0.0 rejects this saying
23931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23932 struct s { int j; const int *ap[3]; };
23933 struct s *b; b->j = 5;
23935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23936 const int foo = 10;
23937 if (!foo) return 0;
23939 return !cs[0] && !zero.x;
23946 rm -f conftest.$ac_objext
23947 if { (ac_try="$ac_compile"
23948 case "(($ac_try" in
23949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23950 *) ac_try_echo=$ac_try;;
23952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23953 (eval "$ac_compile") 2>conftest.er1
23955 grep -v '^ *+' conftest.er1 >conftest.err
23957 cat conftest.err >&5
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); } && {
23960 test -z "$ac_c_werror_flag" ||
23961 test ! -s conftest.err
23962 } && test -s conftest.$ac_objext; then
23965 echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23973 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23974 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23975 if test $ac_cv_c_const = no; then
23977 cat >>confdefs.h <<\_ACEOF
23983 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23984 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23985 if test "${ac_cv_type_uid_t+set}" = set; then
23986 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 cat >conftest.$ac_ext <<_ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h. */
23994 #include <sys/types.h>
23997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23998 $EGREP "uid_t" >/dev/null 2>&1; then
23999 ac_cv_type_uid_t=yes
24001 ac_cv_type_uid_t=no
24006 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24007 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24008 if test $ac_cv_type_uid_t = no; then
24010 cat >>confdefs.h <<\_ACEOF
24015 cat >>confdefs.h <<\_ACEOF
24021 { echo "$as_me:$LINENO: checking for inline" >&5
24022 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24023 if test "${ac_cv_c_inline+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24027 for ac_kw in inline __inline__ __inline; do
24028 cat >conftest.$ac_ext <<_ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 #ifndef __cplusplus
24036 static $ac_kw foo_t static_foo () {return 0; }
24037 $ac_kw foo_t foo () {return 0; }
24041 rm -f conftest.$ac_objext
24042 if { (ac_try="$ac_compile"
24043 case "(($ac_try" in
24044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045 *) ac_try_echo=$ac_try;;
24047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24048 (eval "$ac_compile") 2>conftest.er1
24050 grep -v '^ *+' conftest.er1 >conftest.err
24052 cat conftest.err >&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); } && {
24055 test -z "$ac_c_werror_flag" ||
24056 test ! -s conftest.err
24057 } && test -s conftest.$ac_objext; then
24058 ac_cv_c_inline=$ac_kw
24060 echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24067 test "$ac_cv_c_inline" != no && break
24071 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24072 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24075 case $ac_cv_c_inline in
24078 case $ac_cv_c_inline in
24080 *) ac_val=$ac_cv_c_inline;;
24082 cat >>confdefs.h <<_ACEOF
24083 #ifndef __cplusplus
24084 #define inline $ac_val
24090 { echo "$as_me:$LINENO: checking for off_t" >&5
24091 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24092 if test "${ac_cv_type_off_t+set}" = set; then
24093 echo $ECHO_N "(cached) $ECHO_C" >&6
24095 cat >conftest.$ac_ext <<_ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h. */
24101 $ac_includes_default
24102 typedef off_t ac__type_new_;
24106 if ((ac__type_new_ *) 0)
24108 if (sizeof (ac__type_new_))
24114 rm -f conftest.$ac_objext
24115 if { (ac_try="$ac_compile"
24116 case "(($ac_try" in
24117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118 *) ac_try_echo=$ac_try;;
24120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121 (eval "$ac_compile") 2>conftest.er1
24123 grep -v '^ *+' conftest.er1 >conftest.err
24125 cat conftest.err >&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && {
24128 test -z "$ac_c_werror_flag" ||
24129 test ! -s conftest.err
24130 } && test -s conftest.$ac_objext; then
24131 ac_cv_type_off_t=yes
24133 echo "$as_me: failed program was:" >&5
24134 sed 's/^/| /' conftest.$ac_ext >&5
24136 ac_cv_type_off_t=no
24139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24142 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24143 if test $ac_cv_type_off_t = yes; then
24147 cat >>confdefs.h <<_ACEOF
24148 #define off_t long int
24153 { echo "$as_me:$LINENO: checking for pid_t" >&5
24154 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24155 if test "${ac_cv_type_pid_t+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 cat >conftest.$ac_ext <<_ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24164 $ac_includes_default
24165 typedef pid_t ac__type_new_;
24169 if ((ac__type_new_ *) 0)
24171 if (sizeof (ac__type_new_))
24177 rm -f conftest.$ac_objext
24178 if { (ac_try="$ac_compile"
24179 case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24184 (eval "$ac_compile") 2>conftest.er1
24186 grep -v '^ *+' conftest.er1 >conftest.err
24188 cat conftest.err >&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } && {
24191 test -z "$ac_c_werror_flag" ||
24192 test ! -s conftest.err
24193 } && test -s conftest.$ac_objext; then
24194 ac_cv_type_pid_t=yes
24196 echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24199 ac_cv_type_pid_t=no
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24205 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24206 if test $ac_cv_type_pid_t = yes; then
24210 cat >>confdefs.h <<_ACEOF
24216 { echo "$as_me:$LINENO: checking for size_t" >&5
24217 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24218 if test "${ac_cv_type_size_t+set}" = set; then
24219 echo $ECHO_N "(cached) $ECHO_C" >&6
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24228 typedef size_t ac__type_new_;
24232 if ((ac__type_new_ *) 0)
24234 if (sizeof (ac__type_new_))
24240 rm -f conftest.$ac_objext
24241 if { (ac_try="$ac_compile"
24242 case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_compile") 2>conftest.er1
24249 grep -v '^ *+' conftest.er1 >conftest.err
24251 cat conftest.err >&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } && {
24254 test -z "$ac_c_werror_flag" ||
24255 test ! -s conftest.err
24256 } && test -s conftest.$ac_objext; then
24257 ac_cv_type_size_t=yes
24259 echo "$as_me: failed program was:" >&5
24260 sed 's/^/| /' conftest.$ac_ext >&5
24262 ac_cv_type_size_t=no
24265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24268 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24269 if test $ac_cv_type_size_t = yes; then
24273 cat >>confdefs.h <<_ACEOF
24274 #define size_t unsigned int
24279 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24280 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24281 if test "${ac_cv_header_time+set}" = set; then
24282 echo $ECHO_N "(cached) $ECHO_C" >&6
24284 cat >conftest.$ac_ext <<_ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24290 #include <sys/types.h>
24291 #include <sys/time.h>
24297 if ((struct tm *) 0)
24303 rm -f conftest.$ac_objext
24304 if { (ac_try="$ac_compile"
24305 case "(($ac_try" in
24306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307 *) ac_try_echo=$ac_try;;
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310 (eval "$ac_compile") 2>conftest.er1
24312 grep -v '^ *+' conftest.er1 >conftest.err
24314 cat conftest.err >&5
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); } && {
24317 test -z "$ac_c_werror_flag" ||
24318 test ! -s conftest.err
24319 } && test -s conftest.$ac_objext; then
24320 ac_cv_header_time=yes
24322 echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.$ac_ext >&5
24325 ac_cv_header_time=no
24328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24330 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24331 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24332 if test $ac_cv_header_time = yes; then
24334 cat >>confdefs.h <<\_ACEOF
24335 #define TIME_WITH_SYS_TIME 1
24340 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24341 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24342 if test "${ac_cv_struct_tm+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 cat >conftest.$ac_ext <<_ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h. */
24351 #include <sys/types.h>
24358 int *p = &tm.tm_sec;
24364 rm -f conftest.$ac_objext
24365 if { (ac_try="$ac_compile"
24366 case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_compile") 2>conftest.er1
24373 grep -v '^ *+' conftest.er1 >conftest.err
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && {
24378 test -z "$ac_c_werror_flag" ||
24379 test ! -s conftest.err
24380 } && test -s conftest.$ac_objext; then
24381 ac_cv_struct_tm=time.h
24383 echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24386 ac_cv_struct_tm=sys/time.h
24389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24392 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24393 if test $ac_cv_struct_tm = sys/time.h; then
24395 cat >>confdefs.h <<\_ACEOF
24396 #define TM_IN_SYS_TIME 1
24402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24403 # for constant arguments. Useless!
24404 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24405 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24406 if test "${ac_cv_working_alloca_h+set}" = set; then
24407 echo $ECHO_N "(cached) $ECHO_C" >&6
24409 cat >conftest.$ac_ext <<_ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h. */
24415 #include <alloca.h>
24419 char *p = (char *) alloca (2 * sizeof (int));
24425 rm -f conftest.$ac_objext conftest$ac_exeext
24426 if { (ac_try="$ac_link"
24427 case "(($ac_try" in
24428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429 *) ac_try_echo=$ac_try;;
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432 (eval "$ac_link") 2>conftest.er1
24434 grep -v '^ *+' conftest.er1 >conftest.err
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } && {
24439 test -z "$ac_c_werror_flag" ||
24440 test ! -s conftest.err
24441 } && test -s conftest$ac_exeext &&
24442 $as_test_x conftest$ac_exeext; then
24443 ac_cv_working_alloca_h=yes
24445 echo "$as_me: failed program was:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24448 ac_cv_working_alloca_h=no
24451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24452 conftest$ac_exeext conftest.$ac_ext
24454 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24455 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24456 if test $ac_cv_working_alloca_h = yes; then
24458 cat >>confdefs.h <<\_ACEOF
24459 #define HAVE_ALLOCA_H 1
24464 { echo "$as_me:$LINENO: checking for alloca" >&5
24465 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24466 if test "${ac_cv_func_alloca_works+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24469 cat >conftest.$ac_ext <<_ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h. */
24476 # define alloca __builtin_alloca
24479 # include <malloc.h>
24480 # define alloca _alloca
24482 # ifdef HAVE_ALLOCA_H
24483 # include <alloca.h>
24488 # ifndef alloca /* predefined by HP cc +Olibcalls */
24499 char *p = (char *) alloca (1);
24505 rm -f conftest.$ac_objext conftest$ac_exeext
24506 if { (ac_try="$ac_link"
24507 case "(($ac_try" in
24508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509 *) ac_try_echo=$ac_try;;
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512 (eval "$ac_link") 2>conftest.er1
24514 grep -v '^ *+' conftest.er1 >conftest.err
24516 cat conftest.err >&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } && {
24519 test -z "$ac_c_werror_flag" ||
24520 test ! -s conftest.err
24521 } && test -s conftest$ac_exeext &&
24522 $as_test_x conftest$ac_exeext; then
24523 ac_cv_func_alloca_works=yes
24525 echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24528 ac_cv_func_alloca_works=no
24531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24532 conftest$ac_exeext conftest.$ac_ext
24534 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24535 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24537 if test $ac_cv_func_alloca_works = yes; then
24539 cat >>confdefs.h <<\_ACEOF
24540 #define HAVE_ALLOCA 1
24544 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24545 # that cause trouble. Some versions do not even contain alloca or
24546 # contain a buggy version. If you still want to use their alloca,
24547 # use ar to extract alloca.o from them instead of compiling alloca.c.
24549 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24551 cat >>confdefs.h <<\_ACEOF
24556 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24557 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24558 if test "${ac_cv_os_cray+set}" = set; then
24559 echo $ECHO_N "(cached) $ECHO_C" >&6
24561 cat >conftest.$ac_ext <<_ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567 #if defined CRAY && ! defined CRAY2
24574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24575 $EGREP "webecray" >/dev/null 2>&1; then
24583 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24584 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24585 if test $ac_cv_os_cray = yes; then
24586 for ac_func in _getb67 GETB67 getb67; do
24587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24591 echo $ECHO_N "(cached) $ECHO_C" >&6
24593 cat >conftest.$ac_ext <<_ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h. */
24599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24601 #define $ac_func innocuous_$ac_func
24603 /* System header to define __stub macros and hopefully few prototypes,
24604 which can conflict with char $ac_func (); below.
24605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24606 <limits.h> exists even on freestanding compilers. */
24609 # include <limits.h>
24611 # include <assert.h>
24616 /* Override any GCC internal prototype to avoid an error.
24617 Use char because int might match the return type of a GCC
24618 builtin and then its argument prototype would still apply. */
24623 /* The GNU C library defines this for functions which it implements
24624 to always fail with ENOSYS. Some functions are actually named
24625 something starting with __ and the normal name is an alias. */
24626 #if defined __stub_$ac_func || defined __stub___$ac_func
24633 return $ac_func ();
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_link") 2>conftest.er1
24647 grep -v '^ *+' conftest.er1 >conftest.err
24649 cat conftest.err >&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } && {
24652 test -z "$ac_c_werror_flag" ||
24653 test ! -s conftest.err
24654 } && test -s conftest$ac_exeext &&
24655 $as_test_x conftest$ac_exeext; then
24656 eval "$as_ac_var=yes"
24658 echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24661 eval "$as_ac_var=no"
24664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24665 conftest$ac_exeext conftest.$ac_ext
24667 ac_res=`eval echo '${'$as_ac_var'}'`
24668 { echo "$as_me:$LINENO: result: $ac_res" >&5
24669 echo "${ECHO_T}$ac_res" >&6; }
24670 if test `eval echo '${'$as_ac_var'}'` = yes; then
24672 cat >>confdefs.h <<_ACEOF
24673 #define CRAY_STACKSEG_END $ac_func
24682 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24683 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24684 if test "${ac_cv_c_stack_direction+set}" = set; then
24685 echo $ECHO_N "(cached) $ECHO_C" >&6
24687 if test "$cross_compiling" = yes; then
24688 ac_cv_c_stack_direction=0
24690 cat >conftest.$ac_ext <<_ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24696 $ac_includes_default
24698 find_stack_direction ()
24700 static char *addr = 0;
24705 return find_stack_direction ();
24708 return (&dummy > addr) ? 1 : -1;
24714 return find_stack_direction () < 0;
24717 rm -f conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_link") 2>&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24728 { (case "(($ac_try" in
24729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730 *) ac_try_echo=$ac_try;;
24732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24733 (eval "$ac_try") 2>&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; }; then
24737 ac_cv_c_stack_direction=1
24739 echo "$as_me: program exited with status $ac_status" >&5
24740 echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.$ac_ext >&5
24743 ( exit $ac_status )
24744 ac_cv_c_stack_direction=-1
24746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24751 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24752 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24754 cat >>confdefs.h <<_ACEOF
24755 #define STACK_DIRECTION $ac_cv_c_stack_direction
24766 ac_header_dirent=no
24767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24768 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24769 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24770 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24772 echo $ECHO_N "(cached) $ECHO_C" >&6
24774 cat >conftest.$ac_ext <<_ACEOF
24777 cat confdefs.h >>conftest.$ac_ext
24778 cat >>conftest.$ac_ext <<_ACEOF
24779 /* end confdefs.h. */
24780 #include <sys/types.h>
24792 rm -f conftest.$ac_objext
24793 if { (ac_try="$ac_compile"
24794 case "(($ac_try" in
24795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24796 *) ac_try_echo=$ac_try;;
24798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24799 (eval "$ac_compile") 2>conftest.er1
24801 grep -v '^ *+' conftest.er1 >conftest.err
24803 cat conftest.err >&5
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } && {
24806 test -z "$ac_c_werror_flag" ||
24807 test ! -s conftest.err
24808 } && test -s conftest.$ac_objext; then
24809 eval "$as_ac_Header=yes"
24811 echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24814 eval "$as_ac_Header=no"
24817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 ac_res=`eval echo '${'$as_ac_Header'}'`
24820 { echo "$as_me:$LINENO: result: $ac_res" >&5
24821 echo "${ECHO_T}$ac_res" >&6; }
24822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24823 cat >>confdefs.h <<_ACEOF
24824 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24827 ac_header_dirent=$ac_hdr; break
24831 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24832 if test $ac_header_dirent = dirent.h; then
24833 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24834 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24835 if test "${ac_cv_search_opendir+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 ac_func_search_save_LIBS=$LIBS
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24846 /* Override any GCC internal prototype to avoid an error.
24847 Use char because int might match the return type of a GCC
24848 builtin and then its argument prototype would still apply. */
24861 for ac_lib in '' dir; do
24862 if test -z "$ac_lib"; then
24863 ac_res="none required"
24866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24868 rm -f conftest.$ac_objext conftest$ac_exeext
24869 if { (ac_try="$ac_link"
24870 case "(($ac_try" in
24871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872 *) ac_try_echo=$ac_try;;
24874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875 (eval "$ac_link") 2>conftest.er1
24877 grep -v '^ *+' conftest.er1 >conftest.err
24879 cat conftest.err >&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } && {
24882 test -z "$ac_c_werror_flag" ||
24883 test ! -s conftest.err
24884 } && test -s conftest$ac_exeext &&
24885 $as_test_x conftest$ac_exeext; then
24886 ac_cv_search_opendir=$ac_res
24888 echo "$as_me: failed program was:" >&5
24889 sed 's/^/| /' conftest.$ac_ext >&5
24894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24896 if test "${ac_cv_search_opendir+set}" = set; then
24900 if test "${ac_cv_search_opendir+set}" = set; then
24903 ac_cv_search_opendir=no
24905 rm conftest.$ac_ext
24906 LIBS=$ac_func_search_save_LIBS
24908 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24909 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24910 ac_res=$ac_cv_search_opendir
24911 if test "$ac_res" != no; then
24912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24917 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24918 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24919 if test "${ac_cv_search_opendir+set}" = set; then
24920 echo $ECHO_N "(cached) $ECHO_C" >&6
24922 ac_func_search_save_LIBS=$LIBS
24923 cat >conftest.$ac_ext <<_ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h. */
24930 /* Override any GCC internal prototype to avoid an error.
24931 Use char because int might match the return type of a GCC
24932 builtin and then its argument prototype would still apply. */
24945 for ac_lib in '' x; do
24946 if test -z "$ac_lib"; then
24947 ac_res="none required"
24950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24952 rm -f conftest.$ac_objext conftest$ac_exeext
24953 if { (ac_try="$ac_link"
24954 case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959 (eval "$ac_link") 2>conftest.er1
24961 grep -v '^ *+' conftest.er1 >conftest.err
24963 cat conftest.err >&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } && {
24966 test -z "$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24968 } && test -s conftest$ac_exeext &&
24969 $as_test_x conftest$ac_exeext; then
24970 ac_cv_search_opendir=$ac_res
24972 echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24980 if test "${ac_cv_search_opendir+set}" = set; then
24984 if test "${ac_cv_search_opendir+set}" = set; then
24987 ac_cv_search_opendir=no
24989 rm conftest.$ac_ext
24990 LIBS=$ac_func_search_save_LIBS
24992 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24993 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24994 ac_res=$ac_cv_search_opendir
24995 if test "$ac_res" != no; then
24996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25002 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25003 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25004 if test "${ac_cv_func_closedir_void+set}" = set; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 if test "$cross_compiling" = yes; then
25008 ac_cv_func_closedir_void=yes
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 $ac_includes_default
25017 #include <$ac_header_dirent>
25018 #ifndef __cplusplus
25025 return closedir (opendir (".")) != 0;
25030 rm -f conftest$ac_exeext
25031 if { (ac_try="$ac_link"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_link") 2>&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25041 { (case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_try") 2>&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; }; then
25050 ac_cv_func_closedir_void=no
25052 echo "$as_me: program exited with status $ac_status" >&5
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ( exit $ac_status )
25057 ac_cv_func_closedir_void=yes
25059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25064 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25065 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25066 if test $ac_cv_func_closedir_void = yes; then
25068 cat >>confdefs.h <<\_ACEOF
25069 #define CLOSEDIR_VOID 1
25074 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25075 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25076 if test "${ac_cv_lib_error_at_line+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25079 cat >conftest.$ac_ext <<_ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h. */
25089 error_at_line (0, 0, "", 0, "an error occurred");
25094 rm -f conftest.$ac_objext conftest$ac_exeext
25095 if { (ac_try="$ac_link"
25096 case "(($ac_try" in
25097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098 *) ac_try_echo=$ac_try;;
25100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25101 (eval "$ac_link") 2>conftest.er1
25103 grep -v '^ *+' conftest.er1 >conftest.err
25105 cat conftest.err >&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); } && {
25108 test -z "$ac_c_werror_flag" ||
25109 test ! -s conftest.err
25110 } && test -s conftest$ac_exeext &&
25111 $as_test_x conftest$ac_exeext; then
25112 ac_cv_lib_error_at_line=yes
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25117 ac_cv_lib_error_at_line=no
25120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25121 conftest$ac_exeext conftest.$ac_ext
25123 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25124 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25125 if test $ac_cv_lib_error_at_line = no; then
25126 case " $LIBOBJS " in
25127 *" error.$ac_objext "* ) ;;
25128 *) LIBOBJS="$LIBOBJS error.$ac_objext"
25135 for ac_header in vfork.h
25137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 ac_res=`eval echo '${'$as_ac_Header'}'`
25145 { echo "$as_me:$LINENO: result: $ac_res" >&5
25146 echo "${ECHO_T}$ac_res" >&6; }
25148 # Is the header compilable?
25149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25150 echo $ECHO_N "checking $ac_header usability... $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. */
25157 $ac_includes_default
25158 #include <$ac_header>
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167 (eval "$ac_compile") 2>conftest.er1
25169 grep -v '^ *+' conftest.er1 >conftest.err
25171 cat conftest.err >&5
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); } && {
25174 test -z "$ac_c_werror_flag" ||
25175 test ! -s conftest.err
25176 } && test -s conftest.$ac_objext; then
25177 ac_header_compiler=yes
25179 echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25182 ac_header_compiler=no
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25187 echo "${ECHO_T}$ac_header_compiler" >&6; }
25189 # Is the header present?
25190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25198 #include <$ac_header>
25200 if { (ac_try="$ac_cpp conftest.$ac_ext"
25201 case "(($ac_try" in
25202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203 *) ac_try_echo=$ac_try;;
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25208 grep -v '^ *+' conftest.er1 >conftest.err
25210 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } >/dev/null && {
25213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25214 test ! -s conftest.err
25216 ac_header_preproc=yes
25218 echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25221 ac_header_preproc=no
25224 rm -f conftest.err conftest.$ac_ext
25225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25226 echo "${ECHO_T}$ac_header_preproc" >&6; }
25228 # So? What about this header?
25229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25235 ac_header_preproc=yes
25238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25251 ## ------------------------------- ##
25252 ## Report this to nfs@lists.sf.net ##
25253 ## ------------------------------- ##
25255 ) | sed "s/^/$as_me: WARNING: /" >&2
25258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25261 echo $ECHO_N "(cached) $ECHO_C" >&6
25263 eval "$as_ac_Header=\$ac_header_preproc"
25265 ac_res=`eval echo '${'$as_ac_Header'}'`
25266 { echo "$as_me:$LINENO: result: $ac_res" >&5
25267 echo "${ECHO_T}$ac_res" >&6; }
25270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25271 cat >>confdefs.h <<_ACEOF
25272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25281 for ac_func in fork vfork
25283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25289 cat >conftest.$ac_ext <<_ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h. */
25295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25297 #define $ac_func innocuous_$ac_func
25299 /* System header to define __stub macros and hopefully few prototypes,
25300 which can conflict with char $ac_func (); below.
25301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25302 <limits.h> exists even on freestanding compilers. */
25305 # include <limits.h>
25307 # include <assert.h>
25312 /* Override any GCC internal prototype to avoid an error.
25313 Use char because int might match the return type of a GCC
25314 builtin and then its argument prototype would still apply. */
25319 /* The GNU C library defines this for functions which it implements
25320 to always fail with ENOSYS. Some functions are actually named
25321 something starting with __ and the normal name is an alias. */
25322 #if defined __stub_$ac_func || defined __stub___$ac_func
25329 return $ac_func ();
25334 rm -f conftest.$ac_objext conftest$ac_exeext
25335 if { (ac_try="$ac_link"
25336 case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341 (eval "$ac_link") 2>conftest.er1
25343 grep -v '^ *+' conftest.er1 >conftest.err
25345 cat conftest.err >&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); } && {
25348 test -z "$ac_c_werror_flag" ||
25349 test ! -s conftest.err
25350 } && test -s conftest$ac_exeext &&
25351 $as_test_x conftest$ac_exeext; then
25352 eval "$as_ac_var=yes"
25354 echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25357 eval "$as_ac_var=no"
25360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25361 conftest$ac_exeext conftest.$ac_ext
25363 ac_res=`eval echo '${'$as_ac_var'}'`
25364 { echo "$as_me:$LINENO: result: $ac_res" >&5
25365 echo "${ECHO_T}$ac_res" >&6; }
25366 if test `eval echo '${'$as_ac_var'}'` = yes; then
25367 cat >>confdefs.h <<_ACEOF
25368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25374 if test "x$ac_cv_func_fork" = xyes; then
25375 { echo "$as_me:$LINENO: checking for working fork" >&5
25376 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25377 if test "${ac_cv_func_fork_works+set}" = set; then
25378 echo $ECHO_N "(cached) $ECHO_C" >&6
25380 if test "$cross_compiling" = yes; then
25381 ac_cv_func_fork_works=cross
25383 cat >conftest.$ac_ext <<_ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h. */
25389 $ac_includes_default
25394 /* By Ruediger Kuhlmann. */
25395 return fork () < 0;
25401 rm -f conftest$ac_exeext
25402 if { (ac_try="$ac_link"
25403 case "(($ac_try" in
25404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25405 *) ac_try_echo=$ac_try;;
25407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25408 (eval "$ac_link") 2>&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25412 { (case "(($ac_try" in
25413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414 *) ac_try_echo=$ac_try;;
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417 (eval "$ac_try") 2>&5
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); }; }; then
25421 ac_cv_func_fork_works=yes
25423 echo "$as_me: program exited with status $ac_status" >&5
25424 echo "$as_me: failed program was:" >&5
25425 sed 's/^/| /' conftest.$ac_ext >&5
25427 ( exit $ac_status )
25428 ac_cv_func_fork_works=no
25430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25435 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25436 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25439 ac_cv_func_fork_works=$ac_cv_func_fork
25441 if test "x$ac_cv_func_fork_works" = xcross; then
25443 *-*-amigaos* | *-*-msdosdjgpp*)
25444 # Override, as these systems have only a dummy fork() stub
25445 ac_cv_func_fork_works=no
25448 ac_cv_func_fork_works=yes
25451 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25452 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25454 ac_cv_func_vfork_works=$ac_cv_func_vfork
25455 if test "x$ac_cv_func_vfork" = xyes; then
25456 { echo "$as_me:$LINENO: checking for working vfork" >&5
25457 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25458 if test "${ac_cv_func_vfork_works+set}" = set; then
25459 echo $ECHO_N "(cached) $ECHO_C" >&6
25461 if test "$cross_compiling" = yes; then
25462 ac_cv_func_vfork_works=cross
25464 cat >conftest.$ac_ext <<_ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h. */
25470 /* Thanks to Paul Eggert for this test. */
25471 $ac_includes_default
25472 #include <sys/wait.h>
25473 #ifdef HAVE_VFORK_H
25474 # include <vfork.h>
25476 /* On some sparc systems, changes by the child to local and incoming
25477 argument registers are propagated back to the parent. The compiler
25478 is told about this with #include <vfork.h>, but some compilers
25479 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25480 static variable whose address is put into a register that is
25481 clobbered by the vfork. */
25484 sparc_address_test (int arg)
25486 sparc_address_test (arg) int arg;
25489 static pid_t child;
25507 pid_t parent = getpid ();
25510 sparc_address_test (0);
25515 /* Here is another test for sparc vfork register problems. This
25516 test uses lots of local variables, at least as many local
25517 variables as main has allocated so far including compiler
25518 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25519 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25520 reuse the register of parent for one of the local variables,
25521 since it will think that parent can't possibly be used any more
25522 in this routine. Assigning to the local variable will thus
25523 munge parent in the parent process. */
25525 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25526 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25527 /* Convince the compiler that p..p7 are live; otherwise, it might
25528 use the same hardware register for all 8 local variables. */
25529 if (p != p1 || p != p2 || p != p3 || p != p4
25530 || p != p5 || p != p6 || p != p7)
25533 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25534 from child file descriptors. If the child closes a descriptor
25535 before it execs or exits, this munges the parent's descriptor
25536 as well. Test for this by closing stdout in the child. */
25537 _exit(close(fileno(stdout)) != 0);
25542 while (wait(&status) != child)
25545 /* Was there some problem with vforking? */
25548 /* Did the child fail? (This shouldn't happen.) */
25551 /* Did the vfork/compiler bug occur? */
25552 || parent != getpid()
25554 /* Did the file descriptor bug occur? */
25555 || fstat(fileno(stdout), &st) != 0
25560 rm -f conftest$ac_exeext
25561 if { (ac_try="$ac_link"
25562 case "(($ac_try" in
25563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564 *) ac_try_echo=$ac_try;;
25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567 (eval "$ac_link") 2>&5
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25571 { (case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25576 (eval "$ac_try") 2>&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; }; then
25580 ac_cv_func_vfork_works=yes
25582 echo "$as_me: program exited with status $ac_status" >&5
25583 echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.$ac_ext >&5
25586 ( exit $ac_status )
25587 ac_cv_func_vfork_works=no
25589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25594 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25595 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25598 if test "x$ac_cv_func_fork_works" = xcross; then
25599 ac_cv_func_vfork_works=$ac_cv_func_vfork
25600 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25601 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25604 if test "x$ac_cv_func_vfork_works" = xyes; then
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_WORKING_VFORK 1
25612 cat >>confdefs.h <<\_ACEOF
25617 if test "x$ac_cv_func_fork_works" = xyes; then
25619 cat >>confdefs.h <<\_ACEOF
25620 #define HAVE_WORKING_FORK 1
25625 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25626 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25627 if test "${ac_cv_type_getgroups+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 if test "$cross_compiling" = yes; then
25631 ac_cv_type_getgroups=cross
25633 cat >conftest.$ac_ext <<_ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h. */
25639 /* Thanks to Mike Rendell for this test. */
25640 $ac_includes_default
25643 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25648 gid_t gidset[NGID];
25650 union { gid_t gval; long int lval; } val;
25653 for (i = 0; i < NGID; i++)
25654 gidset[i] = val.gval;
25655 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25657 /* Exit non-zero if getgroups seems to require an array of ints. This
25658 happens when gid_t is short int but getgroups modifies an array
25660 return n > 0 && gidset[n] != val.gval;
25663 rm -f conftest$ac_exeext
25664 if { (ac_try="$ac_link"
25665 case "(($ac_try" in
25666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667 *) ac_try_echo=$ac_try;;
25669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25670 (eval "$ac_link") 2>&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25674 { (case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679 (eval "$ac_try") 2>&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 ac_cv_type_getgroups=gid_t
25685 echo "$as_me: program exited with status $ac_status" >&5
25686 echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25689 ( exit $ac_status )
25690 ac_cv_type_getgroups=int
25692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25696 if test $ac_cv_type_getgroups = cross; then
25697 cat >conftest.$ac_ext <<_ACEOF
25700 cat confdefs.h >>conftest.$ac_ext
25701 cat >>conftest.$ac_ext <<_ACEOF
25702 /* end confdefs.h. */
25703 #include <unistd.h>
25706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25707 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25708 ac_cv_type_getgroups=gid_t
25710 ac_cv_type_getgroups=int
25716 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25717 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25719 cat >>confdefs.h <<_ACEOF
25720 #define GETGROUPS_T $ac_cv_type_getgroups
25724 { echo "$as_me:$LINENO: checking for getgroups" >&5
25725 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25726 if test "${ac_cv_func_getgroups+set}" = set; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25735 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25737 #define getgroups innocuous_getgroups
25739 /* System header to define __stub macros and hopefully few prototypes,
25740 which can conflict with char getgroups (); below.
25741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25742 <limits.h> exists even on freestanding compilers. */
25745 # include <limits.h>
25747 # include <assert.h>
25752 /* Override any GCC internal prototype to avoid an error.
25753 Use char because int might match the return type of a GCC
25754 builtin and then its argument prototype would still apply. */
25759 /* The GNU C library defines this for functions which it implements
25760 to always fail with ENOSYS. Some functions are actually named
25761 something starting with __ and the normal name is an alias. */
25762 #if defined __stub_getgroups || defined __stub___getgroups
25769 return getgroups ();
25774 rm -f conftest.$ac_objext conftest$ac_exeext
25775 if { (ac_try="$ac_link"
25776 case "(($ac_try" in
25777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778 *) ac_try_echo=$ac_try;;
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781 (eval "$ac_link") 2>conftest.er1
25783 grep -v '^ *+' conftest.er1 >conftest.err
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } && {
25788 test -z "$ac_c_werror_flag" ||
25789 test ! -s conftest.err
25790 } && test -s conftest$ac_exeext &&
25791 $as_test_x conftest$ac_exeext; then
25792 ac_cv_func_getgroups=yes
25794 echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25797 ac_cv_func_getgroups=no
25800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25801 conftest$ac_exeext conftest.$ac_ext
25803 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25804 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25807 # If we don't yet have getgroups, see if it's in -lbsd.
25808 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25810 if test $ac_cv_func_getgroups = no; then
25811 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25812 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25813 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25814 echo $ECHO_N "(cached) $ECHO_C" >&6
25816 ac_check_lib_save_LIBS=$LIBS
25818 cat >conftest.$ac_ext <<_ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h. */
25825 /* Override any GCC internal prototype to avoid an error.
25826 Use char because int might match the return type of a GCC
25827 builtin and then its argument prototype would still apply. */
25835 return getgroups ();
25840 rm -f conftest.$ac_objext conftest$ac_exeext
25841 if { (ac_try="$ac_link"
25842 case "(($ac_try" in
25843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844 *) ac_try_echo=$ac_try;;
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847 (eval "$ac_link") 2>conftest.er1
25849 grep -v '^ *+' conftest.er1 >conftest.err
25851 cat conftest.err >&5
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } && {
25854 test -z "$ac_c_werror_flag" ||
25855 test ! -s conftest.err
25856 } && test -s conftest$ac_exeext &&
25857 $as_test_x conftest$ac_exeext; then
25858 ac_cv_lib_bsd_getgroups=yes
25860 echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25863 ac_cv_lib_bsd_getgroups=no
25866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25867 conftest$ac_exeext conftest.$ac_ext
25868 LIBS=$ac_check_lib_save_LIBS
25870 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25871 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25872 if test $ac_cv_lib_bsd_getgroups = yes; then
25873 GETGROUPS_LIB=-lbsd
25878 # Run the program to test the functionality of the system-supplied
25879 # getgroups function only if there is such a function.
25880 if test $ac_cv_func_getgroups = yes; then
25881 { echo "$as_me:$LINENO: checking for working getgroups" >&5
25882 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25883 if test "${ac_cv_func_getgroups_works+set}" = set; then
25884 echo $ECHO_N "(cached) $ECHO_C" >&6
25886 if test "$cross_compiling" = yes; then
25887 ac_cv_func_getgroups_works=no
25889 cat >conftest.$ac_ext <<_ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 $ac_includes_default
25899 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25900 return getgroups (0, 0) == -1;
25905 rm -f conftest$ac_exeext
25906 if { (ac_try="$ac_link"
25907 case "(($ac_try" in
25908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909 *) ac_try_echo=$ac_try;;
25911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25912 (eval "$ac_link") 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25916 { (case "(($ac_try" in
25917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25918 *) ac_try_echo=$ac_try;;
25920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25921 (eval "$ac_try") 2>&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); }; }; then
25925 ac_cv_func_getgroups_works=yes
25927 echo "$as_me: program exited with status $ac_status" >&5
25928 echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25931 ( exit $ac_status )
25932 ac_cv_func_getgroups_works=no
25934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25940 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25941 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25942 if test $ac_cv_func_getgroups_works = yes; then
25944 cat >>confdefs.h <<\_ACEOF
25945 #define HAVE_GETGROUPS 1
25952 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25953 # -lseq on Dynix/PTX, -lgen on Unixware.
25954 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25955 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25956 if test "${ac_cv_search_getmntent+set}" = set; then
25957 echo $ECHO_N "(cached) $ECHO_C" >&6
25959 ac_func_search_save_LIBS=$LIBS
25960 cat >conftest.$ac_ext <<_ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25967 /* Override any GCC internal prototype to avoid an error.
25968 Use char because int might match the return type of a GCC
25969 builtin and then its argument prototype would still apply. */
25977 return getmntent ();
25982 for ac_lib in '' sun seq gen; do
25983 if test -z "$ac_lib"; then
25984 ac_res="none required"
25987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25989 rm -f conftest.$ac_objext conftest$ac_exeext
25990 if { (ac_try="$ac_link"
25991 case "(($ac_try" in
25992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993 *) ac_try_echo=$ac_try;;
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996 (eval "$ac_link") 2>conftest.er1
25998 grep -v '^ *+' conftest.er1 >conftest.err
26000 cat conftest.err >&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); } && {
26003 test -z "$ac_c_werror_flag" ||
26004 test ! -s conftest.err
26005 } && test -s conftest$ac_exeext &&
26006 $as_test_x conftest$ac_exeext; then
26007 ac_cv_search_getmntent=$ac_res
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26017 if test "${ac_cv_search_getmntent+set}" = set; then
26021 if test "${ac_cv_search_getmntent+set}" = set; then
26024 ac_cv_search_getmntent=no
26026 rm conftest.$ac_ext
26027 LIBS=$ac_func_search_save_LIBS
26029 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26030 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26031 ac_res=$ac_cv_search_getmntent
26032 if test "$ac_res" != no; then
26033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26034 ac_cv_func_getmntent=yes
26036 cat >>confdefs.h <<\_ACEOF
26037 #define HAVE_GETMNTENT 1
26041 ac_cv_func_getmntent=no
26045 if test $ac_cv_c_compiler_gnu = yes; then
26046 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26047 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26048 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26049 echo $ECHO_N "(cached) $ECHO_C" >&6
26051 ac_pattern="Autoconf.*'x'"
26052 cat >conftest.$ac_ext <<_ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26062 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26063 ac_cv_prog_gcc_traditional=yes
26065 ac_cv_prog_gcc_traditional=no
26070 if test $ac_cv_prog_gcc_traditional = no; then
26071 cat >conftest.$ac_ext <<_ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26077 #include <termio.h>
26080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26081 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26082 ac_cv_prog_gcc_traditional=yes
26088 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26089 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26090 if test $ac_cv_prog_gcc_traditional = yes; then
26091 CC="$CC -traditional"
26095 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26096 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26097 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26098 echo $ECHO_N "(cached) $ECHO_C" >&6
26100 rm -f conftest.sym conftest.file
26101 echo >conftest.file
26102 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26103 if test "$cross_compiling" = yes; then
26104 ac_cv_func_lstat_dereferences_slashed_symlink=no
26106 cat >conftest.$ac_ext <<_ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h. */
26112 $ac_includes_default
26117 /* Linux will dereference the symlink and fail.
26118 That is better in the sense that it means we will not
26119 have to compile and use the lstat wrapper. */
26120 return lstat ("conftest.sym/", &sbuf) == 0;
26125 rm -f conftest$ac_exeext
26126 if { (ac_try="$ac_link"
26127 case "(($ac_try" in
26128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129 *) ac_try_echo=$ac_try;;
26131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26132 (eval "$ac_link") 2>&5
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26136 { (case "(($ac_try" in
26137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138 *) ac_try_echo=$ac_try;;
26140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26141 (eval "$ac_try") 2>&5
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; }; then
26145 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26147 echo "$as_me: program exited with status $ac_status" >&5
26148 echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26151 ( exit $ac_status )
26152 ac_cv_func_lstat_dereferences_slashed_symlink=no
26154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26159 # If the `ln -s' command failed, then we probably don't even
26160 # have an lstat function.
26161 ac_cv_func_lstat_dereferences_slashed_symlink=no
26163 rm -f conftest.sym conftest.file
26166 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26167 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26169 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26171 cat >>confdefs.h <<_ACEOF
26172 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26176 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26177 case " $LIBOBJS " in
26178 *" lstat.$ac_objext "* ) ;;
26179 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26185 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26186 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26187 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26190 if test "$cross_compiling" = yes; then
26191 ac_cv_func_lstat_empty_string_bug=yes
26193 cat >conftest.$ac_ext <<_ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h. */
26199 $ac_includes_default
26204 return lstat ("", &sbuf) == 0;
26209 rm -f conftest$ac_exeext
26210 if { (ac_try="$ac_link"
26211 case "(($ac_try" in
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213 *) ac_try_echo=$ac_try;;
26215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26216 (eval "$ac_link") 2>&5
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26220 { (case "(($ac_try" in
26221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26222 *) ac_try_echo=$ac_try;;
26224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26225 (eval "$ac_try") 2>&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); }; }; then
26229 ac_cv_func_lstat_empty_string_bug=no
26231 echo "$as_me: program exited with status $ac_status" >&5
26232 echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26235 ( exit $ac_status )
26236 ac_cv_func_lstat_empty_string_bug=yes
26238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26243 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26244 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26245 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26246 case " $LIBOBJS " in
26247 *" lstat.$ac_objext "* ) ;;
26248 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26253 cat >>confdefs.h <<_ACEOF
26254 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26259 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26260 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26261 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26262 echo $ECHO_N "(cached) $ECHO_C" >&6
26264 rm -f conftest.sym conftest.file
26265 echo >conftest.file
26266 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26267 if test "$cross_compiling" = yes; then
26268 ac_cv_func_lstat_dereferences_slashed_symlink=no
26270 cat >conftest.$ac_ext <<_ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h. */
26276 $ac_includes_default
26281 /* Linux will dereference the symlink and fail.
26282 That is better in the sense that it means we will not
26283 have to compile and use the lstat wrapper. */
26284 return lstat ("conftest.sym/", &sbuf) == 0;
26289 rm -f conftest$ac_exeext
26290 if { (ac_try="$ac_link"
26291 case "(($ac_try" in
26292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26293 *) ac_try_echo=$ac_try;;
26295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26296 (eval "$ac_link") 2>&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26300 { (case "(($ac_try" in
26301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302 *) ac_try_echo=$ac_try;;
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_try") 2>&5
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); }; }; then
26309 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26311 echo "$as_me: program exited with status $ac_status" >&5
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26315 ( exit $ac_status )
26316 ac_cv_func_lstat_dereferences_slashed_symlink=no
26318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26323 # If the `ln -s' command failed, then we probably don't even
26324 # have an lstat function.
26325 ac_cv_func_lstat_dereferences_slashed_symlink=no
26327 rm -f conftest.sym conftest.file
26330 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26331 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26333 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26335 cat >>confdefs.h <<_ACEOF
26336 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26340 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26341 case " $LIBOBJS " in
26342 *" lstat.$ac_objext "* ) ;;
26343 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26349 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26350 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26351 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26352 echo $ECHO_N "(cached) $ECHO_C" >&6
26354 cat >conftest.$ac_ext <<_ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h. */
26360 #include <sys/types.h>
26364 return makedev(0, 0);
26369 rm -f conftest.$ac_objext conftest$ac_exeext
26370 if { (ac_try="$ac_link"
26371 case "(($ac_try" in
26372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373 *) ac_try_echo=$ac_try;;
26375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376 (eval "$ac_link") 2>conftest.er1
26378 grep -v '^ *+' conftest.er1 >conftest.err
26380 cat conftest.err >&5
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); } && {
26383 test -z "$ac_c_werror_flag" ||
26384 test ! -s conftest.err
26385 } && test -s conftest$ac_exeext &&
26386 $as_test_x conftest$ac_exeext; then
26387 ac_cv_header_sys_types_h_makedev=yes
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26392 ac_cv_header_sys_types_h_makedev=no
26395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26396 conftest$ac_exeext conftest.$ac_ext
26399 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26400 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26402 if test $ac_cv_header_sys_types_h_makedev = no; then
26403 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26404 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26405 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26406 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26407 echo $ECHO_N "(cached) $ECHO_C" >&6
26409 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26410 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26412 # Is the header compilable?
26413 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26414 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26415 cat >conftest.$ac_ext <<_ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h. */
26421 $ac_includes_default
26422 #include <sys/mkdev.h>
26424 rm -f conftest.$ac_objext
26425 if { (ac_try="$ac_compile"
26426 case "(($ac_try" in
26427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428 *) ac_try_echo=$ac_try;;
26430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431 (eval "$ac_compile") 2>conftest.er1
26433 grep -v '^ *+' conftest.er1 >conftest.err
26435 cat conftest.err >&5
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } && {
26438 test -z "$ac_c_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest.$ac_objext; then
26441 ac_header_compiler=yes
26443 echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26446 ac_header_compiler=no
26449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26451 echo "${ECHO_T}$ac_header_compiler" >&6; }
26453 # Is the header present?
26454 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26455 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26456 cat >conftest.$ac_ext <<_ACEOF
26459 cat confdefs.h >>conftest.$ac_ext
26460 cat >>conftest.$ac_ext <<_ACEOF
26461 /* end confdefs.h. */
26462 #include <sys/mkdev.h>
26464 if { (ac_try="$ac_cpp conftest.$ac_ext"
26465 case "(($ac_try" in
26466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26467 *) ac_try_echo=$ac_try;;
26469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26472 grep -v '^ *+' conftest.er1 >conftest.err
26474 cat conftest.err >&5
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } >/dev/null && {
26477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26478 test ! -s conftest.err
26480 ac_header_preproc=yes
26482 echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26485 ac_header_preproc=no
26488 rm -f conftest.err conftest.$ac_ext
26489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26490 echo "${ECHO_T}$ac_header_preproc" >&6; }
26492 # So? What about this header?
26493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26495 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26496 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26497 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26498 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26499 ac_header_preproc=yes
26502 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26503 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26504 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26505 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26506 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26507 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26508 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26509 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26510 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26511 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26512 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26513 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26515 ## ------------------------------- ##
26516 ## Report this to nfs@lists.sf.net ##
26517 ## ------------------------------- ##
26519 ) | sed "s/^/$as_me: WARNING: /" >&2
26522 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26523 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26524 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26525 echo $ECHO_N "(cached) $ECHO_C" >&6
26527 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26529 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26530 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26533 if test $ac_cv_header_sys_mkdev_h = yes; then
26535 cat >>confdefs.h <<\_ACEOF
26536 #define MAJOR_IN_MKDEV 1
26543 if test $ac_cv_header_sys_mkdev_h = no; then
26544 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26545 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26546 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26547 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26550 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26551 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26553 # Is the header compilable?
26554 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26555 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26556 cat >conftest.$ac_ext <<_ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26562 $ac_includes_default
26563 #include <sys/sysmacros.h>
26565 rm -f conftest.$ac_objext
26566 if { (ac_try="$ac_compile"
26567 case "(($ac_try" in
26568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569 *) ac_try_echo=$ac_try;;
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572 (eval "$ac_compile") 2>conftest.er1
26574 grep -v '^ *+' conftest.er1 >conftest.err
26576 cat conftest.err >&5
26577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); } && {
26579 test -z "$ac_c_werror_flag" ||
26580 test ! -s conftest.err
26581 } && test -s conftest.$ac_objext; then
26582 ac_header_compiler=yes
26584 echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26587 ac_header_compiler=no
26590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26592 echo "${ECHO_T}$ac_header_compiler" >&6; }
26594 # Is the header present?
26595 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26596 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26597 cat >conftest.$ac_ext <<_ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h. */
26603 #include <sys/sysmacros.h>
26605 if { (ac_try="$ac_cpp conftest.$ac_ext"
26606 case "(($ac_try" in
26607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26608 *) ac_try_echo=$ac_try;;
26610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26613 grep -v '^ *+' conftest.er1 >conftest.err
26615 cat conftest.err >&5
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); } >/dev/null && {
26618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26619 test ! -s conftest.err
26621 ac_header_preproc=yes
26623 echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26626 ac_header_preproc=no
26629 rm -f conftest.err conftest.$ac_ext
26630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26631 echo "${ECHO_T}$ac_header_preproc" >&6; }
26633 # So? What about this header?
26634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26636 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26637 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26638 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26639 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26640 ac_header_preproc=yes
26643 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26644 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
26646 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
26647 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26648 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26649 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
26650 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
26651 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26652 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26653 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26654 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26656 ## ------------------------------- ##
26657 ## Report this to nfs@lists.sf.net ##
26658 ## ------------------------------- ##
26660 ) | sed "s/^/$as_me: WARNING: /" >&2
26663 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26664 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26665 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26666 echo $ECHO_N "(cached) $ECHO_C" >&6
26668 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26670 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26671 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26674 if test $ac_cv_header_sys_sysmacros_h = yes; then
26676 cat >>confdefs.h <<\_ACEOF
26677 #define MAJOR_IN_SYSMACROS 1
26687 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26688 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26689 if test "${ac_cv_func_memcmp_working+set}" = set; then
26690 echo $ECHO_N "(cached) $ECHO_C" >&6
26692 if test "$cross_compiling" = yes; then
26693 ac_cv_func_memcmp_working=no
26695 cat >conftest.$ac_ext <<_ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h. */
26701 $ac_includes_default
26706 /* Some versions of memcmp are not 8-bit clean. */
26707 char c0 = '\100', c1 = '\200', c2 = '\201';
26708 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26711 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26712 or more and with at least one buffer not starting on a 4-byte boundary.
26713 William Lewis provided this test program. */
26718 for (i = 0; i < 4; i++)
26722 strcpy (a, "--------01111111");
26723 strcpy (b, "--------10000000");
26724 if (memcmp (a, b, 16) >= 0)
26734 rm -f conftest$ac_exeext
26735 if { (ac_try="$ac_link"
26736 case "(($ac_try" in
26737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26738 *) ac_try_echo=$ac_try;;
26740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26741 (eval "$ac_link") 2>&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26745 { (case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_try") 2>&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754 ac_cv_func_memcmp_working=yes
26756 echo "$as_me: program exited with status $ac_status" >&5
26757 echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26760 ( exit $ac_status )
26761 ac_cv_func_memcmp_working=no
26763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26768 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26769 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26770 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26771 *" memcmp.$ac_objext "* ) ;;
26772 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26780 for ac_header in sys/select.h sys/socket.h
26782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26787 echo $ECHO_N "(cached) $ECHO_C" >&6
26789 ac_res=`eval echo '${'$as_ac_Header'}'`
26790 { echo "$as_me:$LINENO: result: $ac_res" >&5
26791 echo "${ECHO_T}$ac_res" >&6; }
26793 # Is the header compilable?
26794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26802 $ac_includes_default
26803 #include <$ac_header>
26805 rm -f conftest.$ac_objext
26806 if { (ac_try="$ac_compile"
26807 case "(($ac_try" in
26808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809 *) ac_try_echo=$ac_try;;
26811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812 (eval "$ac_compile") 2>conftest.er1
26814 grep -v '^ *+' conftest.er1 >conftest.err
26816 cat conftest.err >&5
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); } && {
26819 test -z "$ac_c_werror_flag" ||
26820 test ! -s conftest.err
26821 } && test -s conftest.$ac_objext; then
26822 ac_header_compiler=yes
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 ac_header_compiler=no
26830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26832 echo "${ECHO_T}$ac_header_compiler" >&6; }
26834 # Is the header present?
26835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26837 cat >conftest.$ac_ext <<_ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h. */
26843 #include <$ac_header>
26845 if { (ac_try="$ac_cpp conftest.$ac_ext"
26846 case "(($ac_try" in
26847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848 *) ac_try_echo=$ac_try;;
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26853 grep -v '^ *+' conftest.er1 >conftest.err
26855 cat conftest.err >&5
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); } >/dev/null && {
26858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26859 test ! -s conftest.err
26861 ac_header_preproc=yes
26863 echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26866 ac_header_preproc=no
26869 rm -f conftest.err conftest.$ac_ext
26870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26871 echo "${ECHO_T}$ac_header_preproc" >&6; }
26873 # So? What about this header?
26874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26880 ac_header_preproc=yes
26883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26896 ## ------------------------------- ##
26897 ## Report this to nfs@lists.sf.net ##
26898 ## ------------------------------- ##
26900 ) | sed "s/^/$as_me: WARNING: /" >&2
26903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 eval "$as_ac_Header=\$ac_header_preproc"
26910 ac_res=`eval echo '${'$as_ac_Header'}'`
26911 { echo "$as_me:$LINENO: result: $ac_res" >&5
26912 echo "${ECHO_T}$ac_res" >&6; }
26915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26916 cat >>confdefs.h <<_ACEOF
26917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26924 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26925 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26926 if test "${ac_cv_func_select_args+set}" = set; then
26927 echo $ECHO_N "(cached) $ECHO_C" >&6
26929 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26930 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26931 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26932 cat >conftest.$ac_ext <<_ACEOF
26935 cat confdefs.h >>conftest.$ac_ext
26936 cat >>conftest.$ac_ext <<_ACEOF
26937 /* end confdefs.h. */
26938 $ac_includes_default
26939 #ifdef HAVE_SYS_SELECT_H
26940 # include <sys/select.h>
26942 #ifdef HAVE_SYS_SOCKET_H
26943 # include <sys/socket.h>
26949 extern int select ($ac_arg1,
26950 $ac_arg234, $ac_arg234, $ac_arg234,
26956 rm -f conftest.$ac_objext
26957 if { (ac_try="$ac_compile"
26958 case "(($ac_try" in
26959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960 *) ac_try_echo=$ac_try;;
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963 (eval "$ac_compile") 2>conftest.er1
26965 grep -v '^ *+' conftest.er1 >conftest.err
26967 cat conftest.err >&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); } && {
26970 test -z "$ac_c_werror_flag" ||
26971 test ! -s conftest.err
26972 } && test -s conftest.$ac_objext; then
26973 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26975 echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26985 # Provide a safe default value.
26986 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26989 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26990 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26991 ac_save_IFS=$IFS; IFS=','
26992 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26996 cat >>confdefs.h <<_ACEOF
26997 #define SELECT_TYPE_ARG1 $1
27001 cat >>confdefs.h <<_ACEOF
27002 #define SELECT_TYPE_ARG234 ($2)
27006 cat >>confdefs.h <<_ACEOF
27007 #define SELECT_TYPE_ARG5 ($3)
27012 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27013 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27014 if test "${ac_cv_type_signal+set}" = set; then
27015 echo $ECHO_N "(cached) $ECHO_C" >&6
27017 cat >conftest.$ac_ext <<_ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27023 #include <sys/types.h>
27024 #include <signal.h>
27029 return *(signal (0, 0)) (0) == 1;
27034 rm -f conftest.$ac_objext
27035 if { (ac_try="$ac_compile"
27036 case "(($ac_try" in
27037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_compile") 2>conftest.er1
27043 grep -v '^ *+' conftest.er1 >conftest.err
27045 cat conftest.err >&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } && {
27048 test -z "$ac_c_werror_flag" ||
27049 test ! -s conftest.err
27050 } && test -s conftest.$ac_objext; then
27051 ac_cv_type_signal=int
27053 echo "$as_me: failed program was:" >&5
27054 sed 's/^/| /' conftest.$ac_ext >&5
27056 ac_cv_type_signal=void
27059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27061 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27062 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27064 cat >>confdefs.h <<_ACEOF
27065 #define RETSIGTYPE $ac_cv_type_signal
27069 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27070 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27071 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27074 if test "$cross_compiling" = yes; then
27075 ac_cv_func_stat_empty_string_bug=yes
27077 cat >conftest.$ac_ext <<_ACEOF
27080 cat confdefs.h >>conftest.$ac_ext
27081 cat >>conftest.$ac_ext <<_ACEOF
27082 /* end confdefs.h. */
27083 $ac_includes_default
27088 return stat ("", &sbuf) == 0;
27093 rm -f conftest$ac_exeext
27094 if { (ac_try="$ac_link"
27095 case "(($ac_try" in
27096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097 *) ac_try_echo=$ac_try;;
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_link") 2>&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27104 { (case "(($ac_try" in
27105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106 *) ac_try_echo=$ac_try;;
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109 (eval "$ac_try") 2>&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); }; }; then
27113 ac_cv_func_stat_empty_string_bug=no
27115 echo "$as_me: program exited with status $ac_status" >&5
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27119 ( exit $ac_status )
27120 ac_cv_func_stat_empty_string_bug=yes
27122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27127 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27128 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27129 if test $ac_cv_func_stat_empty_string_bug = yes; then
27130 case " $LIBOBJS " in
27131 *" stat.$ac_objext "* ) ;;
27132 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27137 cat >>confdefs.h <<_ACEOF
27138 #define HAVE_STAT_EMPTY_STRING_BUG 1
27144 for ac_func in vprintf
27146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27152 cat >conftest.$ac_ext <<_ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h. */
27158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27160 #define $ac_func innocuous_$ac_func
27162 /* System header to define __stub macros and hopefully few prototypes,
27163 which can conflict with char $ac_func (); below.
27164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27165 <limits.h> exists even on freestanding compilers. */
27168 # include <limits.h>
27170 # include <assert.h>
27175 /* Override any GCC internal prototype to avoid an error.
27176 Use char because int might match the return type of a GCC
27177 builtin and then its argument prototype would still apply. */
27182 /* The GNU C library defines this for functions which it implements
27183 to always fail with ENOSYS. Some functions are actually named
27184 something starting with __ and the normal name is an alias. */
27185 #if defined __stub_$ac_func || defined __stub___$ac_func
27192 return $ac_func ();
27197 rm -f conftest.$ac_objext conftest$ac_exeext
27198 if { (ac_try="$ac_link"
27199 case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204 (eval "$ac_link") 2>conftest.er1
27206 grep -v '^ *+' conftest.er1 >conftest.err
27208 cat conftest.err >&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); } && {
27211 test -z "$ac_c_werror_flag" ||
27212 test ! -s conftest.err
27213 } && test -s conftest$ac_exeext &&
27214 $as_test_x conftest$ac_exeext; then
27215 eval "$as_ac_var=yes"
27217 echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27220 eval "$as_ac_var=no"
27223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27224 conftest$ac_exeext conftest.$ac_ext
27226 ac_res=`eval echo '${'$as_ac_var'}'`
27227 { echo "$as_me:$LINENO: result: $ac_res" >&5
27228 echo "${ECHO_T}$ac_res" >&6; }
27229 if test `eval echo '${'$as_ac_var'}'` = yes; then
27230 cat >>confdefs.h <<_ACEOF
27231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27234 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27235 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27236 if test "${ac_cv_func__doprnt+set}" = set; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27239 cat >conftest.$ac_ext <<_ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h. */
27245 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27247 #define _doprnt innocuous__doprnt
27249 /* System header to define __stub macros and hopefully few prototypes,
27250 which can conflict with char _doprnt (); below.
27251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27252 <limits.h> exists even on freestanding compilers. */
27255 # include <limits.h>
27257 # include <assert.h>
27262 /* Override any GCC internal prototype to avoid an error.
27263 Use char because int might match the return type of a GCC
27264 builtin and then its argument prototype would still apply. */
27269 /* The GNU C library defines this for functions which it implements
27270 to always fail with ENOSYS. Some functions are actually named
27271 something starting with __ and the normal name is an alias. */
27272 #if defined __stub__doprnt || defined __stub____doprnt
27284 rm -f conftest.$ac_objext conftest$ac_exeext
27285 if { (ac_try="$ac_link"
27286 case "(($ac_try" in
27287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27288 *) ac_try_echo=$ac_try;;
27290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27291 (eval "$ac_link") 2>conftest.er1
27293 grep -v '^ *+' conftest.er1 >conftest.err
27295 cat conftest.err >&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); } && {
27298 test -z "$ac_c_werror_flag" ||
27299 test ! -s conftest.err
27300 } && test -s conftest$ac_exeext &&
27301 $as_test_x conftest$ac_exeext; then
27302 ac_cv_func__doprnt=yes
27304 echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27307 ac_cv_func__doprnt=no
27310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27311 conftest$ac_exeext conftest.$ac_ext
27313 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27314 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27315 if test $ac_cv_func__doprnt = yes; then
27317 cat >>confdefs.h <<\_ACEOF
27318 #define HAVE_DOPRNT 1
27356 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27357 gethostbyaddr gethostbyname gethostname getmntent \
27358 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27359 realpath rmdir select socket strcasecmp strchr strdup \
27360 strerror strrchr strtol strtoul sigprocmask
27362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27366 echo $ECHO_N "(cached) $ECHO_C" >&6
27368 cat >conftest.$ac_ext <<_ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h. */
27374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27376 #define $ac_func innocuous_$ac_func
27378 /* System header to define __stub macros and hopefully few prototypes,
27379 which can conflict with char $ac_func (); below.
27380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27381 <limits.h> exists even on freestanding compilers. */
27384 # include <limits.h>
27386 # include <assert.h>
27391 /* Override any GCC internal prototype to avoid an error.
27392 Use char because int might match the return type of a GCC
27393 builtin and then its argument prototype would still apply. */
27398 /* The GNU C library defines this for functions which it implements
27399 to always fail with ENOSYS. Some functions are actually named
27400 something starting with __ and the normal name is an alias. */
27401 #if defined __stub_$ac_func || defined __stub___$ac_func
27408 return $ac_func ();
27413 rm -f conftest.$ac_objext conftest$ac_exeext
27414 if { (ac_try="$ac_link"
27415 case "(($ac_try" in
27416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417 *) ac_try_echo=$ac_try;;
27419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420 (eval "$ac_link") 2>conftest.er1
27422 grep -v '^ *+' conftest.er1 >conftest.err
27424 cat conftest.err >&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); } && {
27427 test -z "$ac_c_werror_flag" ||
27428 test ! -s conftest.err
27429 } && test -s conftest$ac_exeext &&
27430 $as_test_x conftest$ac_exeext; then
27431 eval "$as_ac_var=yes"
27433 echo "$as_me: failed program was:" >&5
27434 sed 's/^/| /' conftest.$ac_ext >&5
27436 eval "$as_ac_var=no"
27439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27440 conftest$ac_exeext conftest.$ac_ext
27442 ac_res=`eval echo '${'$as_ac_var'}'`
27443 { echo "$as_me:$LINENO: result: $ac_res" >&5
27444 echo "${ECHO_T}$ac_res" >&6; }
27445 if test `eval echo '${'$as_ac_var'}'` = yes; then
27446 cat >>confdefs.h <<_ACEOF
27447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27455 { echo "$as_me:$LINENO: checking for short" >&5
27456 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27457 if test "${ac_cv_type_short+set}" = set; then
27458 echo $ECHO_N "(cached) $ECHO_C" >&6
27460 cat >conftest.$ac_ext <<_ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h. */
27466 $ac_includes_default
27467 typedef short ac__type_new_;
27471 if ((ac__type_new_ *) 0)
27473 if (sizeof (ac__type_new_))
27479 rm -f conftest.$ac_objext
27480 if { (ac_try="$ac_compile"
27481 case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_compile") 2>conftest.er1
27488 grep -v '^ *+' conftest.er1 >conftest.err
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } && {
27493 test -z "$ac_c_werror_flag" ||
27494 test ! -s conftest.err
27495 } && test -s conftest.$ac_objext; then
27496 ac_cv_type_short=yes
27498 echo "$as_me: failed program was:" >&5
27499 sed 's/^/| /' conftest.$ac_ext >&5
27501 ac_cv_type_short=no
27504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27506 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27507 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27509 # The cast to long int works around a bug in the HP C Compiler
27510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27512 # This bug is HP SR number 8606223364.
27513 { echo "$as_me:$LINENO: checking size of short" >&5
27514 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27515 if test "${ac_cv_sizeof_short+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27518 if test "$cross_compiling" = yes; then
27519 # Depending upon the size, compute the lo and hi bounds.
27520 cat >conftest.$ac_ext <<_ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h. */
27526 $ac_includes_default
27527 typedef short ac__type_sizeof_;
27531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27538 rm -f conftest.$ac_objext
27539 if { (ac_try="$ac_compile"
27540 case "(($ac_try" in
27541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542 *) ac_try_echo=$ac_try;;
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545 (eval "$ac_compile") 2>conftest.er1
27547 grep -v '^ *+' conftest.er1 >conftest.err
27549 cat conftest.err >&5
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } && {
27552 test -z "$ac_c_werror_flag" ||
27553 test ! -s conftest.err
27554 } && test -s conftest.$ac_objext; then
27557 cat >conftest.$ac_ext <<_ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h. */
27563 $ac_includes_default
27564 typedef short ac__type_sizeof_;
27568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27575 rm -f conftest.$ac_objext
27576 if { (ac_try="$ac_compile"
27577 case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_compile") 2>conftest.er1
27584 grep -v '^ *+' conftest.er1 >conftest.err
27586 cat conftest.err >&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); } && {
27589 test -z "$ac_c_werror_flag" ||
27590 test ! -s conftest.err
27591 } && test -s conftest.$ac_objext; then
27592 ac_hi=$ac_mid; break
27594 echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27597 ac_lo=`expr $ac_mid + 1`
27598 if test $ac_lo -le $ac_mid; then
27602 ac_mid=`expr 2 '*' $ac_mid + 1`
27605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27608 echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27611 cat >conftest.$ac_ext <<_ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27617 $ac_includes_default
27618 typedef short ac__type_sizeof_;
27622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27629 rm -f conftest.$ac_objext
27630 if { (ac_try="$ac_compile"
27631 case "(($ac_try" in
27632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27633 *) ac_try_echo=$ac_try;;
27635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27636 (eval "$ac_compile") 2>conftest.er1
27638 grep -v '^ *+' conftest.er1 >conftest.err
27640 cat conftest.err >&5
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); } && {
27643 test -z "$ac_c_werror_flag" ||
27644 test ! -s conftest.err
27645 } && test -s conftest.$ac_objext; then
27648 cat >conftest.$ac_ext <<_ACEOF
27651 cat confdefs.h >>conftest.$ac_ext
27652 cat >>conftest.$ac_ext <<_ACEOF
27653 /* end confdefs.h. */
27654 $ac_includes_default
27655 typedef short ac__type_sizeof_;
27659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27666 rm -f conftest.$ac_objext
27667 if { (ac_try="$ac_compile"
27668 case "(($ac_try" in
27669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670 *) ac_try_echo=$ac_try;;
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673 (eval "$ac_compile") 2>conftest.er1
27675 grep -v '^ *+' conftest.er1 >conftest.err
27677 cat conftest.err >&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); } && {
27680 test -z "$ac_c_werror_flag" ||
27681 test ! -s conftest.err
27682 } && test -s conftest.$ac_objext; then
27683 ac_lo=$ac_mid; break
27685 echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27688 ac_hi=`expr '(' $ac_mid ')' - 1`
27689 if test $ac_mid -le $ac_hi; then
27693 ac_mid=`expr 2 '*' $ac_mid`
27696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27699 echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27709 # Binary search between lo and hi bounds.
27710 while test "x$ac_lo" != "x$ac_hi"; do
27711 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27712 cat >conftest.$ac_ext <<_ACEOF
27715 cat confdefs.h >>conftest.$ac_ext
27716 cat >>conftest.$ac_ext <<_ACEOF
27717 /* end confdefs.h. */
27718 $ac_includes_default
27719 typedef short ac__type_sizeof_;
27723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27730 rm -f conftest.$ac_objext
27731 if { (ac_try="$ac_compile"
27732 case "(($ac_try" in
27733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734 *) ac_try_echo=$ac_try;;
27736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737 (eval "$ac_compile") 2>conftest.er1
27739 grep -v '^ *+' conftest.er1 >conftest.err
27741 cat conftest.err >&5
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } && {
27744 test -z "$ac_c_werror_flag" ||
27745 test ! -s conftest.err
27746 } && test -s conftest.$ac_objext; then
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 ac_lo=`expr '(' $ac_mid ')' + 1`
27755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758 ?*) ac_cv_sizeof_short=$ac_lo;;
27759 '') if test "$ac_cv_type_short" = yes; then
27760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27761 See \`config.log' for more details." >&5
27762 echo "$as_me: error: cannot compute sizeof (short)
27763 See \`config.log' for more details." >&2;}
27764 { (exit 77); exit 77; }; }
27766 ac_cv_sizeof_short=0
27770 cat >conftest.$ac_ext <<_ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h. */
27776 $ac_includes_default
27777 typedef short ac__type_sizeof_;
27778 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27779 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27781 #include <stdlib.h>
27786 FILE *f = fopen ("conftest.val", "w");
27789 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27791 long int i = longval ();
27792 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27794 fprintf (f, "%ld\n", i);
27798 unsigned long int i = ulongval ();
27799 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27801 fprintf (f, "%lu\n", i);
27803 return ferror (f) || fclose (f) != 0;
27809 rm -f conftest$ac_exeext
27810 if { (ac_try="$ac_link"
27811 case "(($ac_try" in
27812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27813 *) ac_try_echo=$ac_try;;
27815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27816 (eval "$ac_link") 2>&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27820 { (case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825 (eval "$ac_try") 2>&5
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); }; }; then
27829 ac_cv_sizeof_short=`cat conftest.val`
27831 echo "$as_me: program exited with status $ac_status" >&5
27832 echo "$as_me: failed program was:" >&5
27833 sed 's/^/| /' conftest.$ac_ext >&5
27835 ( exit $ac_status )
27836 if test "$ac_cv_type_short" = yes; then
27837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27838 See \`config.log' for more details." >&5
27839 echo "$as_me: error: cannot compute sizeof (short)
27840 See \`config.log' for more details." >&2;}
27841 { (exit 77); exit 77; }; }
27843 ac_cv_sizeof_short=0
27846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27850 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27851 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27855 cat >>confdefs.h <<_ACEOF
27856 #define SIZEOF_SHORT $ac_cv_sizeof_short
27860 { echo "$as_me:$LINENO: checking for int" >&5
27861 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27862 if test "${ac_cv_type_int+set}" = set; then
27863 echo $ECHO_N "(cached) $ECHO_C" >&6
27865 cat >conftest.$ac_ext <<_ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h. */
27871 $ac_includes_default
27872 typedef int ac__type_new_;
27876 if ((ac__type_new_ *) 0)
27878 if (sizeof (ac__type_new_))
27884 rm -f conftest.$ac_objext
27885 if { (ac_try="$ac_compile"
27886 case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_compile") 2>conftest.er1
27893 grep -v '^ *+' conftest.er1 >conftest.err
27895 cat conftest.err >&5
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); } && {
27898 test -z "$ac_c_werror_flag" ||
27899 test ! -s conftest.err
27900 } && test -s conftest.$ac_objext; then
27903 echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27911 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27912 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27914 # The cast to long int works around a bug in the HP C Compiler
27915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27917 # This bug is HP SR number 8606223364.
27918 { echo "$as_me:$LINENO: checking size of int" >&5
27919 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27920 if test "${ac_cv_sizeof_int+set}" = set; then
27921 echo $ECHO_N "(cached) $ECHO_C" >&6
27923 if test "$cross_compiling" = yes; then
27924 # Depending upon the size, compute the lo and hi bounds.
27925 cat >conftest.$ac_ext <<_ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h. */
27931 $ac_includes_default
27932 typedef int ac__type_sizeof_;
27936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27943 rm -f conftest.$ac_objext
27944 if { (ac_try="$ac_compile"
27945 case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_compile") 2>conftest.er1
27952 grep -v '^ *+' conftest.er1 >conftest.err
27954 cat conftest.err >&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } && {
27957 test -z "$ac_c_werror_flag" ||
27958 test ! -s conftest.err
27959 } && test -s conftest.$ac_objext; then
27962 cat >conftest.$ac_ext <<_ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h. */
27968 $ac_includes_default
27969 typedef int ac__type_sizeof_;
27973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27980 rm -f conftest.$ac_objext
27981 if { (ac_try="$ac_compile"
27982 case "(($ac_try" in
27983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984 *) ac_try_echo=$ac_try;;
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987 (eval "$ac_compile") 2>conftest.er1
27989 grep -v '^ *+' conftest.er1 >conftest.err
27991 cat conftest.err >&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); } && {
27994 test -z "$ac_c_werror_flag" ||
27995 test ! -s conftest.err
27996 } && test -s conftest.$ac_objext; then
27997 ac_hi=$ac_mid; break
27999 echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28002 ac_lo=`expr $ac_mid + 1`
28003 if test $ac_lo -le $ac_mid; then
28007 ac_mid=`expr 2 '*' $ac_mid + 1`
28010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28013 echo "$as_me: failed program was:" >&5
28014 sed 's/^/| /' conftest.$ac_ext >&5
28016 cat >conftest.$ac_ext <<_ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h. */
28022 $ac_includes_default
28023 typedef int ac__type_sizeof_;
28027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28034 rm -f conftest.$ac_objext
28035 if { (ac_try="$ac_compile"
28036 case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_compile") 2>conftest.er1
28043 grep -v '^ *+' conftest.er1 >conftest.err
28045 cat conftest.err >&5
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); } && {
28048 test -z "$ac_c_werror_flag" ||
28049 test ! -s conftest.err
28050 } && test -s conftest.$ac_objext; then
28053 cat >conftest.$ac_ext <<_ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h. */
28059 $ac_includes_default
28060 typedef int ac__type_sizeof_;
28064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28071 rm -f conftest.$ac_objext
28072 if { (ac_try="$ac_compile"
28073 case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_compile") 2>conftest.er1
28080 grep -v '^ *+' conftest.er1 >conftest.err
28082 cat conftest.err >&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); } && {
28085 test -z "$ac_c_werror_flag" ||
28086 test ! -s conftest.err
28087 } && test -s conftest.$ac_objext; then
28088 ac_lo=$ac_mid; break
28090 echo "$as_me: failed program was:" >&5
28091 sed 's/^/| /' conftest.$ac_ext >&5
28093 ac_hi=`expr '(' $ac_mid ')' - 1`
28094 if test $ac_mid -le $ac_hi; then
28098 ac_mid=`expr 2 '*' $ac_mid`
28101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 echo "$as_me: failed program was:" >&5
28105 sed 's/^/| /' conftest.$ac_ext >&5
28110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28114 # Binary search between lo and hi bounds.
28115 while test "x$ac_lo" != "x$ac_hi"; do
28116 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28117 cat >conftest.$ac_ext <<_ACEOF
28120 cat confdefs.h >>conftest.$ac_ext
28121 cat >>conftest.$ac_ext <<_ACEOF
28122 /* end confdefs.h. */
28123 $ac_includes_default
28124 typedef int ac__type_sizeof_;
28128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28135 rm -f conftest.$ac_objext
28136 if { (ac_try="$ac_compile"
28137 case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_compile") 2>conftest.er1
28144 grep -v '^ *+' conftest.er1 >conftest.err
28146 cat conftest.err >&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } && {
28149 test -z "$ac_c_werror_flag" ||
28150 test ! -s conftest.err
28151 } && test -s conftest.$ac_objext; then
28154 echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28157 ac_lo=`expr '(' $ac_mid ')' + 1`
28160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 ?*) ac_cv_sizeof_int=$ac_lo;;
28164 '') if test "$ac_cv_type_int" = yes; then
28165 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28166 See \`config.log' for more details." >&5
28167 echo "$as_me: error: cannot compute sizeof (int)
28168 See \`config.log' for more details." >&2;}
28169 { (exit 77); exit 77; }; }
28175 cat >conftest.$ac_ext <<_ACEOF
28178 cat confdefs.h >>conftest.$ac_ext
28179 cat >>conftest.$ac_ext <<_ACEOF
28180 /* end confdefs.h. */
28181 $ac_includes_default
28182 typedef int ac__type_sizeof_;
28183 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28184 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28186 #include <stdlib.h>
28191 FILE *f = fopen ("conftest.val", "w");
28194 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28196 long int i = longval ();
28197 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28199 fprintf (f, "%ld\n", i);
28203 unsigned long int i = ulongval ();
28204 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28206 fprintf (f, "%lu\n", i);
28208 return ferror (f) || fclose (f) != 0;
28214 rm -f conftest$ac_exeext
28215 if { (ac_try="$ac_link"
28216 case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_link") 2>&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28225 { (case "(($ac_try" in
28226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227 *) ac_try_echo=$ac_try;;
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230 (eval "$ac_try") 2>&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28234 ac_cv_sizeof_int=`cat conftest.val`
28236 echo "$as_me: program exited with status $ac_status" >&5
28237 echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28240 ( exit $ac_status )
28241 if test "$ac_cv_type_int" = yes; then
28242 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28243 See \`config.log' for more details." >&5
28244 echo "$as_me: error: cannot compute sizeof (int)
28245 See \`config.log' for more details." >&2;}
28246 { (exit 77); exit 77; }; }
28251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28255 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28256 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28260 cat >>confdefs.h <<_ACEOF
28261 #define SIZEOF_INT $ac_cv_sizeof_int
28265 { echo "$as_me:$LINENO: checking for long" >&5
28266 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28267 if test "${ac_cv_type_long+set}" = set; then
28268 echo $ECHO_N "(cached) $ECHO_C" >&6
28270 cat >conftest.$ac_ext <<_ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h. */
28276 $ac_includes_default
28277 typedef long ac__type_new_;
28281 if ((ac__type_new_ *) 0)
28283 if (sizeof (ac__type_new_))
28289 rm -f conftest.$ac_objext
28290 if { (ac_try="$ac_compile"
28291 case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_compile") 2>conftest.er1
28298 grep -v '^ *+' conftest.er1 >conftest.err
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } && {
28303 test -z "$ac_c_werror_flag" ||
28304 test ! -s conftest.err
28305 } && test -s conftest.$ac_objext; then
28306 ac_cv_type_long=yes
28308 echo "$as_me: failed program was:" >&5
28309 sed 's/^/| /' conftest.$ac_ext >&5
28314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28316 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28317 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28319 # The cast to long int works around a bug in the HP C Compiler
28320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28322 # This bug is HP SR number 8606223364.
28323 { echo "$as_me:$LINENO: checking size of long" >&5
28324 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28325 if test "${ac_cv_sizeof_long+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28328 if test "$cross_compiling" = yes; then
28329 # Depending upon the size, compute the lo and hi bounds.
28330 cat >conftest.$ac_ext <<_ACEOF
28333 cat confdefs.h >>conftest.$ac_ext
28334 cat >>conftest.$ac_ext <<_ACEOF
28335 /* end confdefs.h. */
28336 $ac_includes_default
28337 typedef long ac__type_sizeof_;
28341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28348 rm -f conftest.$ac_objext
28349 if { (ac_try="$ac_compile"
28350 case "(($ac_try" in
28351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28352 *) ac_try_echo=$ac_try;;
28354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28355 (eval "$ac_compile") 2>conftest.er1
28357 grep -v '^ *+' conftest.er1 >conftest.err
28359 cat conftest.err >&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); } && {
28362 test -z "$ac_c_werror_flag" ||
28363 test ! -s conftest.err
28364 } && test -s conftest.$ac_objext; then
28367 cat >conftest.$ac_ext <<_ACEOF
28370 cat confdefs.h >>conftest.$ac_ext
28371 cat >>conftest.$ac_ext <<_ACEOF
28372 /* end confdefs.h. */
28373 $ac_includes_default
28374 typedef long ac__type_sizeof_;
28378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28385 rm -f conftest.$ac_objext
28386 if { (ac_try="$ac_compile"
28387 case "(($ac_try" in
28388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389 *) ac_try_echo=$ac_try;;
28391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392 (eval "$ac_compile") 2>conftest.er1
28394 grep -v '^ *+' conftest.er1 >conftest.err
28396 cat conftest.err >&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); } && {
28399 test -z "$ac_c_werror_flag" ||
28400 test ! -s conftest.err
28401 } && test -s conftest.$ac_objext; then
28402 ac_hi=$ac_mid; break
28404 echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28407 ac_lo=`expr $ac_mid + 1`
28408 if test $ac_lo -le $ac_mid; then
28412 ac_mid=`expr 2 '*' $ac_mid + 1`
28415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28418 echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28421 cat >conftest.$ac_ext <<_ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h. */
28427 $ac_includes_default
28428 typedef long ac__type_sizeof_;
28432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28439 rm -f conftest.$ac_objext
28440 if { (ac_try="$ac_compile"
28441 case "(($ac_try" in
28442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443 *) ac_try_echo=$ac_try;;
28445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28446 (eval "$ac_compile") 2>conftest.er1
28448 grep -v '^ *+' conftest.er1 >conftest.err
28450 cat conftest.err >&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); } && {
28453 test -z "$ac_c_werror_flag" ||
28454 test ! -s conftest.err
28455 } && test -s conftest.$ac_objext; then
28458 cat >conftest.$ac_ext <<_ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h. */
28464 $ac_includes_default
28465 typedef long ac__type_sizeof_;
28469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28476 rm -f conftest.$ac_objext
28477 if { (ac_try="$ac_compile"
28478 case "(($ac_try" in
28479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28480 *) ac_try_echo=$ac_try;;
28482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28483 (eval "$ac_compile") 2>conftest.er1
28485 grep -v '^ *+' conftest.er1 >conftest.err
28487 cat conftest.err >&5
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); } && {
28490 test -z "$ac_c_werror_flag" ||
28491 test ! -s conftest.err
28492 } && test -s conftest.$ac_objext; then
28493 ac_lo=$ac_mid; break
28495 echo "$as_me: failed program was:" >&5
28496 sed 's/^/| /' conftest.$ac_ext >&5
28498 ac_hi=`expr '(' $ac_mid ')' - 1`
28499 if test $ac_mid -le $ac_hi; then
28503 ac_mid=`expr 2 '*' $ac_mid`
28506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28509 echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28519 # Binary search between lo and hi bounds.
28520 while test "x$ac_lo" != "x$ac_hi"; do
28521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28522 cat >conftest.$ac_ext <<_ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h. */
28528 $ac_includes_default
28529 typedef long ac__type_sizeof_;
28533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28540 rm -f conftest.$ac_objext
28541 if { (ac_try="$ac_compile"
28542 case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_compile") 2>conftest.er1
28549 grep -v '^ *+' conftest.er1 >conftest.err
28551 cat conftest.err >&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); } && {
28554 test -z "$ac_c_werror_flag" ||
28555 test ! -s conftest.err
28556 } && test -s conftest.$ac_objext; then
28559 echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28562 ac_lo=`expr '(' $ac_mid ')' + 1`
28565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568 ?*) ac_cv_sizeof_long=$ac_lo;;
28569 '') if test "$ac_cv_type_long" = yes; then
28570 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28571 See \`config.log' for more details." >&5
28572 echo "$as_me: error: cannot compute sizeof (long)
28573 See \`config.log' for more details." >&2;}
28574 { (exit 77); exit 77; }; }
28576 ac_cv_sizeof_long=0
28580 cat >conftest.$ac_ext <<_ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h. */
28586 $ac_includes_default
28587 typedef long ac__type_sizeof_;
28588 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28589 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28591 #include <stdlib.h>
28596 FILE *f = fopen ("conftest.val", "w");
28599 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28601 long int i = longval ();
28602 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28604 fprintf (f, "%ld\n", i);
28608 unsigned long int i = ulongval ();
28609 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28611 fprintf (f, "%lu\n", i);
28613 return ferror (f) || fclose (f) != 0;
28619 rm -f conftest$ac_exeext
28620 if { (ac_try="$ac_link"
28621 case "(($ac_try" in
28622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623 *) ac_try_echo=$ac_try;;
28625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626 (eval "$ac_link") 2>&5
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28630 { (case "(($ac_try" in
28631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632 *) ac_try_echo=$ac_try;;
28634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28635 (eval "$ac_try") 2>&5
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; }; then
28639 ac_cv_sizeof_long=`cat conftest.val`
28641 echo "$as_me: program exited with status $ac_status" >&5
28642 echo "$as_me: failed program was:" >&5
28643 sed 's/^/| /' conftest.$ac_ext >&5
28645 ( exit $ac_status )
28646 if test "$ac_cv_type_long" = yes; then
28647 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28648 See \`config.log' for more details." >&5
28649 echo "$as_me: error: cannot compute sizeof (long)
28650 See \`config.log' for more details." >&2;}
28651 { (exit 77); exit 77; }; }
28653 ac_cv_sizeof_long=0
28656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28661 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28665 cat >>confdefs.h <<_ACEOF
28666 #define SIZEOF_LONG $ac_cv_sizeof_long
28670 { echo "$as_me:$LINENO: checking for size_t" >&5
28671 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28672 if test "${ac_cv_type_size_t+set}" = set; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28675 cat >conftest.$ac_ext <<_ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h. */
28681 $ac_includes_default
28682 typedef size_t ac__type_new_;
28686 if ((ac__type_new_ *) 0)
28688 if (sizeof (ac__type_new_))
28694 rm -f conftest.$ac_objext
28695 if { (ac_try="$ac_compile"
28696 case "(($ac_try" in
28697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698 *) ac_try_echo=$ac_try;;
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_compile") 2>conftest.er1
28703 grep -v '^ *+' conftest.er1 >conftest.err
28705 cat conftest.err >&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } && {
28708 test -z "$ac_c_werror_flag" ||
28709 test ! -s conftest.err
28710 } && test -s conftest.$ac_objext; then
28711 ac_cv_type_size_t=yes
28713 echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28716 ac_cv_type_size_t=no
28719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28721 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28722 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28724 # The cast to long int works around a bug in the HP C Compiler
28725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28727 # This bug is HP SR number 8606223364.
28728 { echo "$as_me:$LINENO: checking size of size_t" >&5
28729 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28730 if test "${ac_cv_sizeof_size_t+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28733 if test "$cross_compiling" = yes; then
28734 # Depending upon the size, compute the lo and hi bounds.
28735 cat >conftest.$ac_ext <<_ACEOF
28738 cat confdefs.h >>conftest.$ac_ext
28739 cat >>conftest.$ac_ext <<_ACEOF
28740 /* end confdefs.h. */
28741 $ac_includes_default
28742 typedef size_t ac__type_sizeof_;
28746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28753 rm -f conftest.$ac_objext
28754 if { (ac_try="$ac_compile"
28755 case "(($ac_try" in
28756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 *) ac_try_echo=$ac_try;;
28759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760 (eval "$ac_compile") 2>conftest.er1
28762 grep -v '^ *+' conftest.er1 >conftest.err
28764 cat conftest.err >&5
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); } && {
28767 test -z "$ac_c_werror_flag" ||
28768 test ! -s conftest.err
28769 } && test -s conftest.$ac_objext; then
28772 cat >conftest.$ac_ext <<_ACEOF
28775 cat confdefs.h >>conftest.$ac_ext
28776 cat >>conftest.$ac_ext <<_ACEOF
28777 /* end confdefs.h. */
28778 $ac_includes_default
28779 typedef size_t ac__type_sizeof_;
28783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28790 rm -f conftest.$ac_objext
28791 if { (ac_try="$ac_compile"
28792 case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_compile") 2>conftest.er1
28799 grep -v '^ *+' conftest.er1 >conftest.err
28801 cat conftest.err >&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); } && {
28804 test -z "$ac_c_werror_flag" ||
28805 test ! -s conftest.err
28806 } && test -s conftest.$ac_objext; then
28807 ac_hi=$ac_mid; break
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28812 ac_lo=`expr $ac_mid + 1`
28813 if test $ac_lo -le $ac_mid; then
28817 ac_mid=`expr 2 '*' $ac_mid + 1`
28820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28823 echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28826 cat >conftest.$ac_ext <<_ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h. */
28832 $ac_includes_default
28833 typedef size_t ac__type_sizeof_;
28837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28844 rm -f conftest.$ac_objext
28845 if { (ac_try="$ac_compile"
28846 case "(($ac_try" in
28847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848 *) ac_try_echo=$ac_try;;
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851 (eval "$ac_compile") 2>conftest.er1
28853 grep -v '^ *+' conftest.er1 >conftest.err
28855 cat conftest.err >&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } && {
28858 test -z "$ac_c_werror_flag" ||
28859 test ! -s conftest.err
28860 } && test -s conftest.$ac_objext; then
28863 cat >conftest.$ac_ext <<_ACEOF
28866 cat confdefs.h >>conftest.$ac_ext
28867 cat >>conftest.$ac_ext <<_ACEOF
28868 /* end confdefs.h. */
28869 $ac_includes_default
28870 typedef size_t ac__type_sizeof_;
28874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28881 rm -f conftest.$ac_objext
28882 if { (ac_try="$ac_compile"
28883 case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_compile") 2>conftest.er1
28890 grep -v '^ *+' conftest.er1 >conftest.err
28892 cat conftest.err >&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } && {
28895 test -z "$ac_c_werror_flag" ||
28896 test ! -s conftest.err
28897 } && test -s conftest.$ac_objext; then
28898 ac_lo=$ac_mid; break
28900 echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28903 ac_hi=`expr '(' $ac_mid ')' - 1`
28904 if test $ac_mid -le $ac_hi; then
28908 ac_mid=`expr 2 '*' $ac_mid`
28911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28914 echo "$as_me: failed program was:" >&5
28915 sed 's/^/| /' conftest.$ac_ext >&5
28920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28924 # Binary search between lo and hi bounds.
28925 while test "x$ac_lo" != "x$ac_hi"; do
28926 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28927 cat >conftest.$ac_ext <<_ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h. */
28933 $ac_includes_default
28934 typedef size_t ac__type_sizeof_;
28938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28945 rm -f conftest.$ac_objext
28946 if { (ac_try="$ac_compile"
28947 case "(($ac_try" in
28948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949 *) ac_try_echo=$ac_try;;
28951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28952 (eval "$ac_compile") 2>conftest.er1
28954 grep -v '^ *+' conftest.er1 >conftest.err
28956 cat conftest.err >&5
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); } && {
28959 test -z "$ac_c_werror_flag" ||
28960 test ! -s conftest.err
28961 } && test -s conftest.$ac_objext; then
28964 echo "$as_me: failed program was:" >&5
28965 sed 's/^/| /' conftest.$ac_ext >&5
28967 ac_lo=`expr '(' $ac_mid ')' + 1`
28970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28974 '') if test "$ac_cv_type_size_t" = yes; then
28975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28976 See \`config.log' for more details." >&5
28977 echo "$as_me: error: cannot compute sizeof (size_t)
28978 See \`config.log' for more details." >&2;}
28979 { (exit 77); exit 77; }; }
28981 ac_cv_sizeof_size_t=0
28985 cat >conftest.$ac_ext <<_ACEOF
28988 cat confdefs.h >>conftest.$ac_ext
28989 cat >>conftest.$ac_ext <<_ACEOF
28990 /* end confdefs.h. */
28991 $ac_includes_default
28992 typedef size_t ac__type_sizeof_;
28993 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28994 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28996 #include <stdlib.h>
29001 FILE *f = fopen ("conftest.val", "w");
29004 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29006 long int i = longval ();
29007 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29009 fprintf (f, "%ld\n", i);
29013 unsigned long int i = ulongval ();
29014 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29016 fprintf (f, "%lu\n", i);
29018 return ferror (f) || fclose (f) != 0;
29024 rm -f conftest$ac_exeext
29025 if { (ac_try="$ac_link"
29026 case "(($ac_try" in
29027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028 *) ac_try_echo=$ac_try;;
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031 (eval "$ac_link") 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29035 { (case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_try") 2>&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); }; }; then
29044 ac_cv_sizeof_size_t=`cat conftest.val`
29046 echo "$as_me: program exited with status $ac_status" >&5
29047 echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29050 ( exit $ac_status )
29051 if test "$ac_cv_type_size_t" = yes; then
29052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29053 See \`config.log' for more details." >&5
29054 echo "$as_me: error: cannot compute sizeof (size_t)
29055 See \`config.log' for more details." >&2;}
29056 { (exit 77); exit 77; }; }
29058 ac_cv_sizeof_size_t=0
29061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29065 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29066 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29070 cat >>confdefs.h <<_ACEOF
29071 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29075 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29076 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29077 if test "${ac_cv_type_socklen_t+set}" = set; then
29078 echo $ECHO_N "(cached) $ECHO_C" >&6
29080 cat >conftest.$ac_ext <<_ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h. */
29086 $ac_includes_default
29087 typedef socklen_t ac__type_new_;
29091 if ((ac__type_new_ *) 0)
29093 if (sizeof (ac__type_new_))
29099 rm -f conftest.$ac_objext
29100 if { (ac_try="$ac_compile"
29101 case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_compile") 2>conftest.er1
29108 grep -v '^ *+' conftest.er1 >conftest.err
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } && {
29113 test -z "$ac_c_werror_flag" ||
29114 test ! -s conftest.err
29115 } && test -s conftest.$ac_objext; then
29116 ac_cv_type_socklen_t=yes
29118 echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29121 ac_cv_type_socklen_t=no
29124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29126 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29127 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29129 # The cast to long int works around a bug in the HP C Compiler
29130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29132 # This bug is HP SR number 8606223364.
29133 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29134 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29135 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29136 echo $ECHO_N "(cached) $ECHO_C" >&6
29138 if test "$cross_compiling" = yes; then
29139 # Depending upon the size, compute the lo and hi bounds.
29140 cat >conftest.$ac_ext <<_ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h. */
29146 $ac_includes_default
29147 typedef socklen_t ac__type_sizeof_;
29151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29158 rm -f conftest.$ac_objext
29159 if { (ac_try="$ac_compile"
29160 case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_compile") 2>conftest.er1
29167 grep -v '^ *+' conftest.er1 >conftest.err
29169 cat conftest.err >&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } && {
29172 test -z "$ac_c_werror_flag" ||
29173 test ! -s conftest.err
29174 } && test -s conftest.$ac_objext; then
29177 cat >conftest.$ac_ext <<_ACEOF
29180 cat confdefs.h >>conftest.$ac_ext
29181 cat >>conftest.$ac_ext <<_ACEOF
29182 /* end confdefs.h. */
29183 $ac_includes_default
29184 typedef socklen_t ac__type_sizeof_;
29188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29195 rm -f conftest.$ac_objext
29196 if { (ac_try="$ac_compile"
29197 case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202 (eval "$ac_compile") 2>conftest.er1
29204 grep -v '^ *+' conftest.er1 >conftest.err
29206 cat conftest.err >&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); } && {
29209 test -z "$ac_c_werror_flag" ||
29210 test ! -s conftest.err
29211 } && test -s conftest.$ac_objext; then
29212 ac_hi=$ac_mid; break
29214 echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29217 ac_lo=`expr $ac_mid + 1`
29218 if test $ac_lo -le $ac_mid; then
29222 ac_mid=`expr 2 '*' $ac_mid + 1`
29225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29228 echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29231 cat >conftest.$ac_ext <<_ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h. */
29237 $ac_includes_default
29238 typedef socklen_t ac__type_sizeof_;
29242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29249 rm -f conftest.$ac_objext
29250 if { (ac_try="$ac_compile"
29251 case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_compile") 2>conftest.er1
29258 grep -v '^ *+' conftest.er1 >conftest.err
29260 cat conftest.err >&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); } && {
29263 test -z "$ac_c_werror_flag" ||
29264 test ! -s conftest.err
29265 } && test -s conftest.$ac_objext; then
29268 cat >conftest.$ac_ext <<_ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h. */
29274 $ac_includes_default
29275 typedef socklen_t ac__type_sizeof_;
29279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29286 rm -f conftest.$ac_objext
29287 if { (ac_try="$ac_compile"
29288 case "(($ac_try" in
29289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293 (eval "$ac_compile") 2>conftest.er1
29295 grep -v '^ *+' conftest.er1 >conftest.err
29297 cat conftest.err >&5
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); } && {
29300 test -z "$ac_c_werror_flag" ||
29301 test ! -s conftest.err
29302 } && test -s conftest.$ac_objext; then
29303 ac_lo=$ac_mid; break
29305 echo "$as_me: failed program was:" >&5
29306 sed 's/^/| /' conftest.$ac_ext >&5
29308 ac_hi=`expr '(' $ac_mid ')' - 1`
29309 if test $ac_mid -le $ac_hi; then
29313 ac_mid=`expr 2 '*' $ac_mid`
29316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29319 echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29329 # Binary search between lo and hi bounds.
29330 while test "x$ac_lo" != "x$ac_hi"; do
29331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29332 cat >conftest.$ac_ext <<_ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h. */
29338 $ac_includes_default
29339 typedef socklen_t ac__type_sizeof_;
29343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29350 rm -f conftest.$ac_objext
29351 if { (ac_try="$ac_compile"
29352 case "(($ac_try" in
29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357 (eval "$ac_compile") 2>conftest.er1
29359 grep -v '^ *+' conftest.er1 >conftest.err
29361 cat conftest.err >&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } && {
29364 test -z "$ac_c_werror_flag" ||
29365 test ! -s conftest.err
29366 } && test -s conftest.$ac_objext; then
29369 echo "$as_me: failed program was:" >&5
29370 sed 's/^/| /' conftest.$ac_ext >&5
29372 ac_lo=`expr '(' $ac_mid ')' + 1`
29375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29379 '') if test "$ac_cv_type_socklen_t" = yes; then
29380 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29381 See \`config.log' for more details." >&5
29382 echo "$as_me: error: cannot compute sizeof (socklen_t)
29383 See \`config.log' for more details." >&2;}
29384 { (exit 77); exit 77; }; }
29386 ac_cv_sizeof_socklen_t=0
29390 cat >conftest.$ac_ext <<_ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h. */
29396 $ac_includes_default
29397 typedef socklen_t ac__type_sizeof_;
29398 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29399 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29401 #include <stdlib.h>
29406 FILE *f = fopen ("conftest.val", "w");
29409 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29411 long int i = longval ();
29412 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29414 fprintf (f, "%ld\n", i);
29418 unsigned long int i = ulongval ();
29419 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29421 fprintf (f, "%lu\n", i);
29423 return ferror (f) || fclose (f) != 0;
29429 rm -f conftest$ac_exeext
29430 if { (ac_try="$ac_link"
29431 case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_link") 2>&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29440 { (case "(($ac_try" in
29441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442 *) ac_try_echo=$ac_try;;
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445 (eval "$ac_try") 2>&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
29449 ac_cv_sizeof_socklen_t=`cat conftest.val`
29451 echo "$as_me: program exited with status $ac_status" >&5
29452 echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29455 ( exit $ac_status )
29456 if test "$ac_cv_type_socklen_t" = yes; then
29457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29458 See \`config.log' for more details." >&5
29459 echo "$as_me: error: cannot compute sizeof (socklen_t)
29460 See \`config.log' for more details." >&2;}
29461 { (exit 77); exit 77; }; }
29463 ac_cv_sizeof_socklen_t=0
29466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29471 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29475 cat >>confdefs.h <<_ACEOF
29476 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29483 cat >>confdefs.h <<_ACEOF
29484 #define NFS_STATEDIR "$statedir"
29488 if test "x$cross_compiling" = "xno"; then
29489 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29490 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29491 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29492 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29494 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29495 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29496 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29497 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29512 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29517 my_am_cflags="-Wall $ARCHFLAGS -pipe"
29519 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29521 AM_CFLAGS="$my_am_cflags"
29524 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29525 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29528 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"
29530 cat >confcache <<\_ACEOF
29531 # This file is a shell script that caches the results of configure
29532 # tests run on this system so they can be shared between configure
29533 # scripts and configure runs, see configure's option --config-cache.
29534 # It is not useful on other systems. If it contains results you don't
29535 # want to keep, you may remove or edit it.
29537 # config.status only pays attention to the cache file if you give it
29538 # the --recheck option to rerun configure.
29540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29542 # following values.
29546 # The following way of writing the cache mishandles newlines in values,
29547 # but we know of no workaround that is simple, portable, and efficient.
29548 # So, we kill variables containing newlines.
29549 # Ultrix sh set writes to stderr and can't be redirected directly,
29550 # and sets the high bit in the cache file unless we assign to the vars.
29552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29553 eval ac_val=\$$ac_var
29557 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29558 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29561 _ | IFS | as_nl) ;; #(
29562 *) $as_unset $ac_var ;;
29568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29569 *${as_nl}ac_space=\ *)
29570 # `set' does not quote correctly, so add quotes (double-quote
29571 # substitution turns \\\\ into \\, and sed turns \\ into \).
29574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29577 # `set' quotes correctly as required by POSIX, so do not add quotes.
29578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29592 if test -w "$cache_file"; then
29593 test "x$cache_file" != "x/dev/null" &&
29594 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29595 echo "$as_me: updating cache $cache_file" >&6;}
29596 cat confcache >$cache_file
29598 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29599 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29605 # Let make expand exec_prefix.
29606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29608 DEFS=-DHAVE_CONFIG_H
29612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29613 # 1. Remove the extension, and $U if already installed.
29614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29615 ac_i=`echo "$ac_i" | sed "$ac_script"`
29616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29617 # will be set to the directory where LIBOBJS objects are built.
29618 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29619 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29621 LIBOBJS=$ac_libobjs
29623 LTLIBOBJS=$ac_ltlibobjs
29626 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29627 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29628 Usually this means the macro was only invoked conditionally." >&5
29629 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29630 Usually this means the macro was only invoked conditionally." >&2;}
29631 { (exit 1); exit 1; }; }
29633 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29634 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29635 Usually this means the macro was only invoked conditionally." >&5
29636 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29637 Usually this means the macro was only invoked conditionally." >&2;}
29638 { (exit 1); exit 1; }; }
29640 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29641 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29642 Usually this means the macro was only invoked conditionally." >&5
29643 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29644 Usually this means the macro was only invoked conditionally." >&2;}
29645 { (exit 1); exit 1; }; }
29647 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
29648 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29649 Usually this means the macro was only invoked conditionally." >&5
29650 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29651 Usually this means the macro was only invoked conditionally." >&2;}
29652 { (exit 1); exit 1; }; }
29654 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
29655 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
29656 Usually this means the macro was only invoked conditionally." >&5
29657 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
29658 Usually this means the macro was only invoked conditionally." >&2;}
29659 { (exit 1); exit 1; }; }
29661 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29662 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29663 Usually this means the macro was only invoked conditionally." >&5
29664 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29665 Usually this means the macro was only invoked conditionally." >&2;}
29666 { (exit 1); exit 1; }; }
29668 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29669 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29670 Usually this means the macro was only invoked conditionally." >&5
29671 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29672 Usually this means the macro was only invoked conditionally." >&2;}
29673 { (exit 1); exit 1; }; }
29675 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29676 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29677 Usually this means the macro was only invoked conditionally." >&5
29678 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29679 Usually this means the macro was only invoked conditionally." >&2;}
29680 { (exit 1); exit 1; }; }
29682 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29683 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29684 Usually this means the macro was only invoked conditionally." >&5
29685 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29686 Usually this means the macro was only invoked conditionally." >&2;}
29687 { (exit 1); exit 1; }; }
29689 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29690 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29691 Usually this means the macro was only invoked conditionally." >&5
29692 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29693 Usually this means the macro was only invoked conditionally." >&2;}
29694 { (exit 1); exit 1; }; }
29697 : ${CONFIG_STATUS=./config.status}
29698 ac_clean_files_save=$ac_clean_files
29699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29702 cat >$CONFIG_STATUS <<_ACEOF
29704 # Generated by $as_me.
29705 # Run this file to recreate the current configuration.
29706 # Compiler output produced by configure, useful for debugging
29707 # configure, is in config.log if it exists.
29710 ac_cs_recheck=false
29712 SHELL=\${CONFIG_SHELL-$SHELL}
29715 cat >>$CONFIG_STATUS <<\_ACEOF
29716 ## --------------------- ##
29717 ## M4sh Initialization. ##
29718 ## --------------------- ##
29720 # Be more Bourne compatible
29721 DUALCASE=1; export DUALCASE # for MKS sh
29722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29725 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29726 # is contrary to our usage. Disable this feature.
29727 alias -g '${1+"$@"}'='"$@"'
29728 setopt NO_GLOB_SUBST
29730 case `(set -o) 2>/dev/null` in
29731 *posix*) set -o posix ;;
29740 # Avoid depending upon Character Ranges.
29741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29744 as_cr_digits='0123456789'
29745 as_cr_alnum=$as_cr_Letters$as_cr_digits
29747 # The user is always right.
29748 if test "${PATH_SEPARATOR+set}" != set; then
29749 echo "#! /bin/sh" >conf$$.sh
29750 echo "exit 0" >>conf$$.sh
29752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29760 # Support unset when possible.
29761 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29769 # We need space, tab and new line, in precisely that order. Quoting is
29770 # there to prevent editors from complaining about space-tab.
29771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29772 # splitting by setting IFS to empty value.)
29777 # Find who we are. Look in the path if we contain no directory separator.
29779 *[\\/]* ) as_myself=$0 ;;
29780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29781 for as_dir in $PATH
29784 test -z "$as_dir" && as_dir=.
29785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29791 # We did not find ourselves, most probably we were run as `sh COMMAND'
29792 # in which case we are not to be found in the path.
29793 if test "x$as_myself" = x; then
29796 if test ! -f "$as_myself"; then
29797 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29798 { (exit 1); exit 1; }
29801 # Work around bugs in pre-3.0 UWIN ksh.
29802 for as_var in ENV MAIL MAILPATH
29803 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29811 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29812 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29813 LC_TELEPHONE LC_TIME
29815 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29816 eval $as_var=C; export $as_var
29818 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29822 # Required to use basename.
29823 if expr a : '\(a\)' >/dev/null 2>&1 &&
29824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29831 as_basename=basename
29837 # Name of the executable.
29838 as_me=`$as_basename -- "$0" ||
29839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29840 X"$0" : 'X\(//\)$' \| \
29841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29843 sed '/^.*\/\([^/][^/]*\)\/*$/{
29862 as_lineno_1=$LINENO
29863 as_lineno_2=$LINENO
29864 test "x$as_lineno_1" != "x$as_lineno_2" &&
29865 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29867 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29868 # uniformly replaced by the line number. The first 'sed' inserts a
29869 # line-number line after each line using $LINENO; the second 'sed'
29870 # does the real work. The second script uses 'N' to pair each
29871 # line-number line with the line containing $LINENO, and appends
29872 # trailing '-' during substitution so that $LINENO is not a special
29873 # case at line end.
29874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29875 # scripts with optimization help from Paolo Bonzini. Blame Lee
29876 # E. McMahon (1931-1989) for sed's syntax. :-)
29888 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29891 ' >$as_me.lineno &&
29892 chmod +x "$as_me.lineno" ||
29893 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29894 { (exit 1); exit 1; }; }
29896 # Don't try to exec as it changes $[0], causing all sort of problems
29897 # (the dirname of $[0] is not the place where we might find the
29898 # original and so on. Autoconf is especially sensitive to this).
29899 . "./$as_me.lineno"
29900 # Exit status is that of the last command.
29905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29911 ECHO_C= ECHO_N= ECHO_T=
29912 case `echo -n x` in
29914 case `echo 'x\c'` in
29915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29922 if expr a : '\(a\)' >/dev/null 2>&1 &&
29923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29929 rm -f conf$$ conf$$.exe conf$$.file
29930 if test -d conf$$.dir; then
29931 rm -f conf$$.dir/conf$$.file
29937 if ln -s conf$$.file conf$$ 2>/dev/null; then
29939 # ... but there are two gotchas:
29940 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29941 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29942 # In both cases, we have to default to `cp -p'.
29943 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29945 elif ln conf$$.file conf$$ 2>/dev/null; then
29950 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29951 rmdir conf$$.dir 2>/dev/null
29953 if mkdir -p . 2>/dev/null; then
29956 test -d ./-p && rmdir ./-p
29960 if test -x / >/dev/null 2>&1; then
29961 as_test_x='test -x'
29963 if ls -dL / >/dev/null 2>&1; then
29970 if test -d "$1"; then
29976 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29977 ???[sx]*):;;*)false;;esac;fi
29981 as_executable_p=$as_test_x
29983 # Sed expression to map a string onto a valid CPP name.
29984 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29986 # Sed expression to map a string onto a valid variable name.
29987 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29992 # Save the log message, to keep $[0] and so on meaningful, and to
29993 # report actual input values of CONFIG_FILES etc. instead of their
29994 # values after options handling.
29996 This file was extended by linux nfs-utils $as_me 1.1.0-rc1, which was
29997 generated by GNU Autoconf 2.61. Invocation command line was
29999 CONFIG_FILES = $CONFIG_FILES
30000 CONFIG_HEADERS = $CONFIG_HEADERS
30001 CONFIG_LINKS = $CONFIG_LINKS
30002 CONFIG_COMMANDS = $CONFIG_COMMANDS
30005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30010 cat >>$CONFIG_STATUS <<_ACEOF
30011 # Files that config.status was made for.
30012 config_files="$ac_config_files"
30013 config_headers="$ac_config_headers"
30014 config_commands="$ac_config_commands"
30018 cat >>$CONFIG_STATUS <<\_ACEOF
30020 \`$as_me' instantiates files from templates according to the
30021 current configuration.
30023 Usage: $0 [OPTIONS] [FILE]...
30025 -h, --help print this help, then exit
30026 -V, --version print version number and configuration settings, then exit
30027 -q, --quiet do not print progress messages
30028 -d, --debug don't remove temporary files
30029 --recheck update $as_me by reconfiguring in the same conditions
30030 --file=FILE[:TEMPLATE]
30031 instantiate the configuration file FILE
30032 --header=FILE[:TEMPLATE]
30033 instantiate the configuration header FILE
30035 Configuration files:
30038 Configuration headers:
30041 Configuration commands:
30044 Report bugs to <bug-autoconf@gnu.org>."
30047 cat >>$CONFIG_STATUS <<_ACEOF
30049 linux nfs-utils config.status 1.1.0-rc1
30050 configured by $0, generated by GNU Autoconf 2.61,
30051 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30053 Copyright (C) 2006 Free Software Foundation, Inc.
30054 This config.status script is free software; the Free Software Foundation
30055 gives unlimited permission to copy, distribute and modify it."
30063 cat >>$CONFIG_STATUS <<\_ACEOF
30064 # If no file are specified by the user, then we need to provide default
30065 # value. By we need to know if files were specified by the user.
30071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30083 # Handling of the options.
30084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30087 echo "$ac_cs_version"; exit ;;
30088 --debug | --debu | --deb | --de | --d | -d )
30090 --file | --fil | --fi | --f )
30092 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30093 ac_need_defaults=false;;
30094 --header | --heade | --head | --hea )
30096 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30097 ac_need_defaults=false;;
30099 # Conflict between --help and --header
30100 { echo "$as_me: error: ambiguous option: $1
30101 Try \`$0 --help' for more information." >&2
30102 { (exit 1); exit 1; }; };;
30103 --help | --hel | -h )
30104 echo "$ac_cs_usage"; exit ;;
30105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30109 # This is an error.
30110 -*) { echo "$as_me: error: unrecognized option: $1
30111 Try \`$0 --help' for more information." >&2
30112 { (exit 1); exit 1; }; } ;;
30114 *) ac_config_targets="$ac_config_targets $1"
30115 ac_need_defaults=false ;;
30121 ac_configure_extra_args=
30123 if $ac_cs_silent; then
30125 ac_configure_extra_args="$ac_configure_extra_args --silent"
30129 cat >>$CONFIG_STATUS <<_ACEOF
30130 if \$ac_cs_recheck; then
30131 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30132 CONFIG_SHELL=$SHELL
30133 export CONFIG_SHELL
30134 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30138 cat >>$CONFIG_STATUS <<\_ACEOF
30142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30143 ## Running $as_me. ##
30149 cat >>$CONFIG_STATUS <<_ACEOF
30153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30159 # Handling of arguments.
30160 for ac_config_target in $ac_config_targets
30162 case $ac_config_target in
30163 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30164 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30165 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30166 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30167 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30168 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30169 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30170 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30171 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30172 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30173 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30174 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30175 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30176 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30177 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30178 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30179 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30180 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30181 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30182 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30183 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30184 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30185 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30186 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30187 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30188 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30189 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
30190 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30191 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30193 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30194 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30195 { (exit 1); exit 1; }; };;
30200 # If the user did not use the arguments to specify the items to instantiate,
30201 # then the envvar interface is used. Set only those that are not.
30202 # We use the long form for the default assignment because of an extremely
30203 # bizarre bug on SunOS 4.1.3.
30204 if $ac_need_defaults; then
30205 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30206 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30207 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30210 # Have a temporary directory for convenience. Make it in the build tree
30211 # simply because there is no reason against having it here, and in addition,
30212 # creating and moving files from /tmp can sometimes cause problems.
30213 # Hook for its removal unless debugging.
30214 # Note that there is a small window in which the directory will not be cleaned:
30215 # after its creation but before its name has been assigned to `$tmp'.
30219 trap 'exit_status=$?
30220 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30222 trap '{ (exit 1); exit 1; }' 1 2 13 15
30224 # Create a (secure) tmp directory for tmp files.
30227 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30228 test -n "$tmp" && test -d "$tmp"
30231 tmp=./conf$$-$RANDOM
30232 (umask 077 && mkdir "$tmp")
30235 echo "$me: cannot create a temporary directory in ." >&2
30236 { (exit 1); exit 1; }
30240 # Set up the sed scripts for CONFIG_FILES section.
30243 # No need to generate the scripts if there are no CONFIG_FILES.
30244 # This happens for instance when ./config.status config.h
30245 if test -n "$CONFIG_FILES"; then
30252 for ac_last_try in false false false false false :; do
30253 cat >conf$$subs.sed <<_ACEOF
30254 SHELL!$SHELL$ac_delim
30255 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30256 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30257 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30258 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30259 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30260 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30261 exec_prefix!$exec_prefix$ac_delim
30262 prefix!$prefix$ac_delim
30263 program_transform_name!$program_transform_name$ac_delim
30264 bindir!$bindir$ac_delim
30265 sbindir!$sbindir$ac_delim
30266 libexecdir!$libexecdir$ac_delim
30267 datarootdir!$datarootdir$ac_delim
30268 datadir!$datadir$ac_delim
30269 sysconfdir!$sysconfdir$ac_delim
30270 sharedstatedir!$sharedstatedir$ac_delim
30271 localstatedir!$localstatedir$ac_delim
30272 includedir!$includedir$ac_delim
30273 oldincludedir!$oldincludedir$ac_delim
30274 docdir!$docdir$ac_delim
30275 infodir!$infodir$ac_delim
30276 htmldir!$htmldir$ac_delim
30277 dvidir!$dvidir$ac_delim
30278 pdfdir!$pdfdir$ac_delim
30279 psdir!$psdir$ac_delim
30280 libdir!$libdir$ac_delim
30281 localedir!$localedir$ac_delim
30282 mandir!$mandir$ac_delim
30283 DEFS!$DEFS$ac_delim
30284 ECHO_C!$ECHO_C$ac_delim
30285 ECHO_N!$ECHO_N$ac_delim
30286 ECHO_T!$ECHO_T$ac_delim
30287 LIBS!$LIBS$ac_delim
30288 build_alias!$build_alias$ac_delim
30289 host_alias!$host_alias$ac_delim
30290 target_alias!$target_alias$ac_delim
30291 build!$build$ac_delim
30292 build_cpu!$build_cpu$ac_delim
30293 build_vendor!$build_vendor$ac_delim
30294 build_os!$build_os$ac_delim
30295 host!$host$ac_delim
30296 host_cpu!$host_cpu$ac_delim
30297 host_vendor!$host_vendor$ac_delim
30298 host_os!$host_os$ac_delim
30299 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30300 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30301 INSTALL_DATA!$INSTALL_DATA$ac_delim
30302 am__isrc!$am__isrc$ac_delim
30303 CYGPATH_W!$CYGPATH_W$ac_delim
30304 PACKAGE!$PACKAGE$ac_delim
30305 VERSION!$VERSION$ac_delim
30306 ACLOCAL!$ACLOCAL$ac_delim
30307 AUTOCONF!$AUTOCONF$ac_delim
30308 AUTOMAKE!$AUTOMAKE$ac_delim
30309 AUTOHEADER!$AUTOHEADER$ac_delim
30310 MAKEINFO!$MAKEINFO$ac_delim
30311 install_sh!$install_sh$ac_delim
30312 STRIP!$STRIP$ac_delim
30313 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30314 mkdir_p!$mkdir_p$ac_delim
30316 SET_MAKE!$SET_MAKE$ac_delim
30317 am__leading_dot!$am__leading_dot$ac_delim
30318 AMTAR!$AMTAR$ac_delim
30319 am__tar!$am__tar$ac_delim
30320 am__untar!$am__untar$ac_delim
30321 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30322 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30323 MAINT!$MAINT$ac_delim
30324 RELEASE!$RELEASE$ac_delim
30325 statedir!$statedir$ac_delim
30326 statduser!$statduser$ac_delim
30327 startstatd!$startstatd$ac_delim
30328 enable_nfsv3!$enable_nfsv3$ac_delim
30329 IDMAPD!$IDMAPD$ac_delim
30330 enable_nfsv4!$enable_nfsv4$ac_delim
30331 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30332 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30333 GSSD!$GSSD$ac_delim
30334 SVCGSSD!$SVCGSSD$ac_delim
30335 enable_gss!$enable_gss$ac_delim
30336 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30337 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30338 kprefix!$kprefix$ac_delim
30339 secure_statd!$secure_statd$ac_delim
30340 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
30341 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
30342 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30343 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30344 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30345 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30346 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30348 CFLAGS!$CFLAGS$ac_delim
30349 LDFLAGS!$LDFLAGS$ac_delim
30350 CPPFLAGS!$CPPFLAGS$ac_delim
30353 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30355 elif $ac_last_try; then
30356 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30357 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30358 { (exit 1); exit 1; }; }
30360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30364 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30365 if test -n "$ac_eof"; then
30366 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30367 ac_eof=`expr $ac_eof + 1`
30370 cat >>$CONFIG_STATUS <<_ACEOF
30371 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30375 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30376 s/^/s,@/; s/!/@,|#_!!_#|/
30379 s/'"$ac_delim"'$/,g/; t
30381 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30382 ' >>$CONFIG_STATUS <conf$$subs.sed
30383 rm -f conf$$subs.sed
30384 cat >>$CONFIG_STATUS <<_ACEOF
30390 for ac_last_try in false false false false false :; do
30391 cat >conf$$subs.sed <<_ACEOF
30392 ac_ct_CC!$ac_ct_CC$ac_delim
30393 EXEEXT!$EXEEXT$ac_delim
30394 OBJEXT!$OBJEXT$ac_delim
30395 DEPDIR!$DEPDIR$ac_delim
30396 am__include!$am__include$ac_delim
30397 am__quote!$am__quote$ac_delim
30398 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30399 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30400 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30401 CCDEPMODE!$CCDEPMODE$ac_delim
30402 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30403 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30404 LIBWRAP!$LIBWRAP$ac_delim
30405 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30406 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30408 CXXFLAGS!$CXXFLAGS$ac_delim
30409 ac_ct_CXX!$ac_ct_CXX$ac_delim
30410 CXXDEPMODE!$CXXDEPMODE$ac_delim
30411 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30412 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30414 LN_S!$LN_S$ac_delim
30415 GREP!$GREP$ac_delim
30416 EGREP!$EGREP$ac_delim
30417 ECHO!$ECHO$ac_delim
30419 RANLIB!$RANLIB$ac_delim
30420 CXXCPP!$CXXCPP$ac_delim
30422 FFLAGS!$FFLAGS$ac_delim
30423 ac_ct_F77!$ac_ct_F77$ac_delim
30424 LIBTOOL!$LIBTOOL$ac_delim
30425 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30427 LIBNSL!$LIBNSL$ac_delim
30428 PKG_CONFIG!$PKG_CONFIG$ac_delim
30429 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30430 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30431 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30432 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30433 LIBSOCKET!$LIBSOCKET$ac_delim
30434 LIBCRYPT!$LIBCRYPT$ac_delim
30435 LIBBSD!$LIBBSD$ac_delim
30436 LIBBLKID!$LIBBLKID$ac_delim
30437 KRBDIR!$KRBDIR$ac_delim
30438 KRBLIBS!$KRBLIBS$ac_delim
30439 KRBCFLAGS!$KRBCFLAGS$ac_delim
30440 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30441 K5VERS!$K5VERS$ac_delim
30442 ALLOCA!$ALLOCA$ac_delim
30443 LIBOBJS!$LIBOBJS$ac_delim
30444 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30445 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30446 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30447 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30448 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30449 AM_CFLAGS!$AM_CFLAGS$ac_delim
30450 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30451 LTLIBOBJS!$LTLIBOBJS$ac_delim
30454 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
30456 elif $ac_last_try; then
30457 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30458 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30459 { (exit 1); exit 1; }; }
30461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30465 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30466 if test -n "$ac_eof"; then
30467 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30468 ac_eof=`expr $ac_eof + 1`
30471 cat >>$CONFIG_STATUS <<_ACEOF
30472 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30476 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30477 s/^/s,@/; s/!/@,|#_!!_#|/
30480 s/'"$ac_delim"'$/,g/; t
30482 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30483 ' >>$CONFIG_STATUS <conf$$subs.sed
30484 rm -f conf$$subs.sed
30485 cat >>$CONFIG_STATUS <<_ACEOF
30492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30494 # trailing colons and then remove the whole line if VPATH becomes empty
30495 # (actually we leave an empty line to preserve line numbers).
30496 if test "x$srcdir" = x.; then
30497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30498 s/:*\$(srcdir):*/:/
30499 s/:*\${srcdir}:*/:/
30501 s/^\([^=]*=[ ]*\):*/\1/
30507 cat >>$CONFIG_STATUS <<\_ACEOF
30508 fi # test -n "$CONFIG_FILES"
30511 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30514 :[FHLC]) ac_mode=$ac_tag; continue;;
30516 case $ac_mode$ac_tag in
30518 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30519 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30520 { (exit 1); exit 1; }; };;
30521 :[FH]-) ac_tag=-:-;;
30522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30539 -) ac_f="$tmp/stdin";;
30540 *) # Look for the file first in the build tree, then in the source tree
30541 # (if the path is not absolute). The absolute path cannot be DOS-style,
30542 # because $ac_f cannot contain `:'.
30546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30548 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30549 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30550 { (exit 1); exit 1; }; };;
30552 ac_file_inputs="$ac_file_inputs $ac_f"
30555 # Let's still pretend it is `configure' which instantiates (i.e., don't
30556 # use $as_me), people would be surprised to read:
30557 # /* config.h. Generated by config.status. */
30558 configure_input="Generated from "`IFS=:
30559 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30560 if test x"$ac_file" != x-; then
30561 configure_input="$ac_file. $configure_input"
30562 { echo "$as_me:$LINENO: creating $ac_file" >&5
30563 echo "$as_me: creating $ac_file" >&6;}
30567 *:-:* | *:-) cat >"$tmp/stdin";;
30572 ac_dir=`$as_dirname -- "$ac_file" ||
30573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30574 X"$ac_file" : 'X\(//\)[^/]' \| \
30575 X"$ac_file" : 'X\(//\)$' \| \
30576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30582 /^X\(\/\/\)[^/].*/{
30597 -*) as_dir=./$as_dir;;
30599 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30603 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30604 *) as_qdir=$as_dir;;
30606 as_dirs="'$as_qdir' $as_dirs"
30607 as_dir=`$as_dirname -- "$as_dir" ||
30608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30609 X"$as_dir" : 'X\(//\)[^/]' \| \
30610 X"$as_dir" : 'X\(//\)$' \| \
30611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30617 /^X\(\/\/\)[^/].*/{
30630 test -d "$as_dir" && break
30632 test -z "$as_dirs" || eval "mkdir $as_dirs"
30633 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30634 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30635 { (exit 1); exit 1; }; }; }
30639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30641 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30642 # A ".." for each directory in $ac_dir_suffix.
30643 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30644 case $ac_top_builddir_sub in
30645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30649 ac_abs_top_builddir=$ac_pwd
30650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30651 # for backward compatibility:
30652 ac_top_builddir=$ac_top_build_prefix
30655 .) # We are building in place.
30657 ac_top_srcdir=$ac_top_builddir_sub
30658 ac_abs_top_srcdir=$ac_pwd ;;
30659 [\\/]* | ?:[\\/]* ) # Absolute name.
30660 ac_srcdir=$srcdir$ac_dir_suffix;
30661 ac_top_srcdir=$srcdir
30662 ac_abs_top_srcdir=$srcdir ;;
30663 *) # Relative name.
30664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30665 ac_top_srcdir=$ac_top_build_prefix$srcdir
30666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30678 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30679 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30681 ac_MKDIR_P=$MKDIR_P
30683 [\\/$]* | ?:[\\/]* ) ;;
30684 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30688 cat >>$CONFIG_STATUS <<\_ACEOF
30689 # If the template does not know about datarootdir, expand it.
30690 # FIXME: This hack should be removed a few years after 2.60.
30691 ac_datarootdir_hack=; ac_datarootdir_seen=
30693 case `sed -n '/datarootdir/ {
30702 ' $ac_file_inputs` in
30703 *datarootdir*) ac_datarootdir_seen=yes;;
30704 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30705 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30706 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30708 cat >>$CONFIG_STATUS <<_ACEOF
30709 ac_datarootdir_hack='
30710 s&@datadir@&$datadir&g
30711 s&@docdir@&$docdir&g
30712 s&@infodir@&$infodir&g
30713 s&@localedir@&$localedir&g
30714 s&@mandir@&$mandir&g
30715 s&\\\${datarootdir}&$datarootdir&g' ;;
30719 # Neutralize VPATH when `$srcdir' = `.'.
30720 # Shell code in configure.ac might set extrasub.
30721 # FIXME: do we really want to maintain this feature?
30722 cat >>$CONFIG_STATUS <<_ACEOF
30726 cat >>$CONFIG_STATUS <<\_ACEOF
30728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30729 s&@configure_input@&$configure_input&;t t
30730 s&@top_builddir@&$ac_top_builddir_sub&;t t
30731 s&@srcdir@&$ac_srcdir&;t t
30732 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30733 s&@top_srcdir@&$ac_top_srcdir&;t t
30734 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30735 s&@builddir@&$ac_builddir&;t t
30736 s&@abs_builddir@&$ac_abs_builddir&;t t
30737 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30738 s&@INSTALL@&$ac_INSTALL&;t t
30739 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30740 $ac_datarootdir_hack
30741 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30744 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30746 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30747 which seems to be undefined. Please make sure it is defined." >&5
30748 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30749 which seems to be undefined. Please make sure it is defined." >&2;}
30753 -) cat "$tmp/out"; rm -f "$tmp/out";;
30754 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30763 # Transform confdefs.h into a sed script `conftest.defines', that
30764 # substitutes the proper values into config.h.in to produce config.h.
30765 rm -f conftest.defines conftest.tail
30766 # First, append a space to every undef/define line, to ease matching.
30767 echo 's/$/ /' >conftest.defines
30768 # Then, protect against being on the right side of a sed subst, or in
30769 # an unquoted here document, in config.status. If some macros were
30770 # called several times there might be several #defines for the same
30771 # symbol, which is useless. But do not sort them, since the last
30772 # AC_DEFINE must be honored.
30773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30774 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30775 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30776 # PARAMS is the parameter list in the macro definition--in most cases, it's
30777 # just an empty string.
30778 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30779 ac_dB='\\)[ (].*,\\1define\\2'
30787 s/^[ ]*#[ ]*define[ ][ ]*//
30792 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30793 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30794 ' >>conftest.defines
30796 # Remove the space that was appended to ease matching.
30797 # Then replace #undef with comments. This is necessary, for
30798 # example, in the case of _POSIX_SOURCE, which is predefined and required
30799 # on some systems where configure will not decide to define it.
30800 # (The regexp can be short, since the line contains either #define or #undef.)
30802 s,^[ #]*u.*,/* & */,' >>conftest.defines
30804 # Break up conftest.defines:
30805 ac_max_sed_lines=50
30807 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30808 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30809 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30811 ac_in='$ac_file_inputs'
30812 ac_out='"$tmp/out1"'
30813 ac_nxt='"$tmp/out2"'
30817 # Write a here document:
30818 cat >>$CONFIG_STATUS <<_ACEOF
30819 # First, check the format of the line:
30820 cat >"\$tmp/defines.sed" <<\\CEOF
30821 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30822 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30826 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30828 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30829 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30830 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30831 grep . conftest.tail >/dev/null || break
30832 rm -f conftest.defines
30833 mv conftest.tail conftest.defines
30835 rm -f conftest.defines conftest.tail
30837 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30838 cat >>$CONFIG_STATUS <<\_ACEOF
30839 if test x"$ac_file" != x-; then
30840 echo "/* $configure_input */" >"$tmp/config.h"
30841 cat "$ac_result" >>"$tmp/config.h"
30842 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30843 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30844 echo "$as_me: $ac_file is unchanged" >&6;}
30847 mv "$tmp/config.h" $ac_file
30850 echo "/* $configure_input */"
30854 # Compute $ac_file's index in $config_headers.
30856 for _am_header in $config_headers :; do
30857 case $_am_header in
30858 $ac_file | $ac_file:* )
30861 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30864 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30865 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30866 X$ac_file : 'X\(//\)[^/]' \| \
30867 X$ac_file : 'X\(//\)$' \| \
30868 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30874 /^X\(\/\/\)[^/].*/{
30886 s/.*/./; q'`/stamp-h$_am_stamp_count
30889 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30890 echo "$as_me: executing $ac_file commands" >&6;}
30895 case $ac_file$ac_mode in
30896 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30897 # Strip MF so we end up with the name of the file.
30898 mf=`echo "$mf" | sed -e 's/:.*$//'`
30899 # Check whether this is an Automake generated Makefile or not.
30900 # We used to match only the files named `Makefile.in', but
30901 # some people rename them; so instead we look at the file content.
30902 # Grep'ing the first line is not enough: some people post-process
30903 # each Makefile.in and add a new line on top of each file to say so.
30904 # Grep'ing the whole file is not good either: AIX grep has a line
30905 # limit of 2048, but all sed's we know have understand at least 4000.
30906 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30907 dirpart=`$as_dirname -- "$mf" ||
30908 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30909 X"$mf" : 'X\(//\)[^/]' \| \
30910 X"$mf" : 'X\(//\)$' \| \
30911 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30917 /^X\(\/\/\)[^/].*/{
30933 # Extract the definition of DEPDIR, am__include, and am__quote
30934 # from the Makefile without running `make'.
30935 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30936 test -z "$DEPDIR" && continue
30937 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30938 test -z "am__include" && continue
30939 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30940 # When using ansi2knr, U may be empty or an underscore; expand it
30941 U=`sed -n 's/^U = //p' < "$mf"`
30942 # Find all dependency output files, they are included files with
30943 # $(DEPDIR) in their names. We invoke sed twice because it is the
30944 # simplest approach to changing $(DEPDIR) to its actual value in the
30946 for file in `sed -n "
30947 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30949 # Make sure the directory exists.
30950 test -f "$dirpart/$file" && continue
30951 fdir=`$as_dirname -- "$file" ||
30952 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30953 X"$file" : 'X\(//\)[^/]' \| \
30954 X"$file" : 'X\(//\)$' \| \
30955 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30961 /^X\(\/\/\)[^/].*/{
30974 { as_dir=$dirpart/$fdir
30976 -*) as_dir=./$as_dir;;
30978 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30982 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30983 *) as_qdir=$as_dir;;
30985 as_dirs="'$as_qdir' $as_dirs"
30986 as_dir=`$as_dirname -- "$as_dir" ||
30987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30988 X"$as_dir" : 'X\(//\)[^/]' \| \
30989 X"$as_dir" : 'X\(//\)$' \| \
30990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30996 /^X\(\/\/\)[^/].*/{
31009 test -d "$as_dir" && break
31011 test -z "$as_dirs" || eval "mkdir $as_dirs"
31012 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31013 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31014 { (exit 1); exit 1; }; }; }
31015 # echo "creating $dirpart/$file"
31016 echo '# dummy' > "$dirpart/$file"
31025 { (exit 0); exit 0; }
31027 chmod +x $CONFIG_STATUS
31028 ac_clean_files=$ac_clean_files_save
31031 # configure is writing to config.log, and then calls config.status.
31032 # config.status does its own redirection, appending to config.log.
31033 # Unfortunately, on DOS this fails, as config.log is still kept open
31034 # by configure, so config.status won't be able to write to it; its
31035 # output is simply discarded. So we exec the FD to /dev/null,
31036 # effectively closing config.log, so it can be properly (re)opened and
31037 # appended to by config.status. When coming back to configure, we
31038 # need to make the FD available again.
31039 if test "$no_create" != yes; then
31041 ac_config_status_args=
31042 test "$silent" = yes &&
31043 ac_config_status_args="$ac_config_status_args --quiet"
31045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31048 # would make configure fail if this is the last instruction.
31049 $ac_cs_success || { (exit 1); exit 1; }