2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for linux nfs-utils 1.0.10.
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.0.10'
732 PACKAGE_STRING='linux nfs-utils 1.0.10'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
833 INSTALL_STRIP_PROGRAM
842 MAINTAINER_MODE_FALSE
928 ac_precious_vars='build_alias
950 # Initialize some variables set by options.
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057 eval enable_$ac_feature=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076 eval enable_$ac_feature=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1240 -site=* | --site=* | --sit=*)
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1267 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273 eval with_$ac_package=\$ac_optarg ;;
1275 -without-* | --without-*)
1276 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282 eval with_$ac_package=no ;;
1285 # Obsolete; use --with-x.
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1302 -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1333 # Be sure to have absolute directory names.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val=\$$ac_var
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369 test "$silent" = yes && exec 6>/dev/null
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 { echo "$as_me: error: Working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 { echo "$as_me: error: pwd does not report name of working directory" >&2
1379 { (exit 1); exit 1; }; }
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$0" : 'X\(//\)[^/]' \| \
1389 X"$0" : 'X\(//\)$' \| \
1390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419 { (exit 1); exit 1; }; }
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424 { (exit 1); exit 1; }; }
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var in $ac_precious_vars; do
1437 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_${ac_var}_value=\$${ac_var}
1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 if test -n "$ac_init_help"; then
1519 case $ac_init_help in
1520 short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --enable-maintainer-mode enable make rules and dependencies not useful
1528 (and sometimes confusing) to the casual installer
1529 --enable-nfsv3 enable support for NFSv3 @<:@default=yes@:>@
1530 --enable-nfsv4 enable support for NFSv4 @<:@default=yes@:>@
1531 --enable-gss enable support for rpcsec_gss @<:@default=yes@:>@
1532 --enable-kprefix install progs as rpc.knfsd etc
1533 --enable-secure-statd Only lockd can use statd (security)
1534 --enable-rquotad enable rquotad @<:@default=yes@:>@
1535 --enable-mount Create mount.nfs and don't use the util-linux
1536 mount(8) functionality. @<:@default=no@:>@
1537 --disable-dependency-tracking speeds up one-time build
1538 --enable-dependency-tracking do not reject slow dependency extractors
1539 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1540 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1541 --enable-fast-install@<:@=PKGS@:>@
1542 optimize for fast installation @<:@default=yes@:>@
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-release=XXX set release to XXX [1]
1549 --with-statedir=/foo use state dir /foo /var/lib/nfs
1550 --with-statduser=rpcuser
1551 statd to run under @<:@rpcuser or nobody@:>@
1552 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1553 (optionally in PATH)
1554 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1555 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1557 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1558 --with-krb5=DIR use Kerberos v5 installation in DIR
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1571 CXXCPP C++ preprocessor
1572 F77 Fortran 77 compiler command
1573 FFLAGS Fortran 77 compiler flags
1574 PKG_CONFIG path to pkg-config utility
1576 C compiler flags for RPCSECGSS, overriding pkg-config
1578 linker flags for RPCSECGSS, overriding pkg-config
1580 C compiler flags for GSSAPI, overriding pkg-config
1581 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1586 Report bugs to <nfs@lists.sf.net>.
1591 if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" || continue
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1614 .) # We are building in place.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1638 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1647 linux nfs-utils configure 1.0.10
1648 generated by GNU Autoconf 2.61
1650 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1651 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1652 This configure script is free software; the Free Software Foundation
1653 gives unlimited permission to copy, distribute and modify it.
1657 cat >config.log <<_ACEOF
1658 This file contains any messages produced by compilers while
1659 running configure, to aid debugging if configure makes a mistake.
1661 It was created by linux nfs-utils $as_me 1.0.10, which was
1662 generated by GNU Autoconf 2.61. Invocation command line was
1670 @%:@@%:@ --------- @%:@@%:@
1671 @%:@@%:@ Platform. @%:@@%:@
1672 @%:@@%:@ --------- @%:@@%:@
1674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir=.
1698 echo "PATH: $as_dir"
1707 @%:@@%:@ ----------- @%:@@%:@
1708 @%:@@%:@ Core tests. @%:@@%:@
1709 @%:@@%:@ ----------- @%:@@%:@
1714 # Keep a trace of the command line.
1715 # Strip out --no-create and --no-recursion so they do not pile up.
1716 # Strip out --silent because we don't want to record it for future runs.
1717 # Also quote any args containing shell meta-characters.
1718 # Make two passes to allow for proper duplicate-argument suppression.
1722 ac_must_keep_next=false
1728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1730 | -silent | --silent | --silen | --sile | --sil)
1733 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1736 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1738 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1739 if test $ac_must_keep_next = true; then
1740 ac_must_keep_next=false # Got value, back to normal.
1743 *=* | --config-cache | -C | -disable-* | --disable-* \
1744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1746 | -with-* | --with-* | -without-* | --without-* | --x)
1747 case "$ac_configure_args0 " in
1748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1751 -* ) ac_must_keep_next=true ;;
1754 ac_configure_args="$ac_configure_args '$ac_arg'"
1759 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1760 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1762 # When interrupted or exit'd, cleanup temporary files, and complete
1763 # config.log. We remove comments because anyway the quotes in there
1764 # would cause problems or look ugly.
1765 # WARNING: Use '\'' to represent an apostrophe within the trap.
1766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1767 trap 'exit_status=$?
1768 # Save into config.log some information that might help in debugging.
1773 @%:@@%:@ ---------------- @%:@@%:@
1774 @%:@@%:@ Cache variables. @%:@@%:@
1775 @%:@@%:@ ---------------- @%:@@%:@
1778 # The following way of writing the cache mishandles newlines in values,
1780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781 eval ac_val=\$$ac_var
1785 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1786 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1789 _ | IFS | as_nl) ;; #(
1790 *) $as_unset $ac_var ;;
1795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796 *${as_nl}ac_space=\ *)
1798 "s/'\''/'\''\\\\'\'''\''/g;
1799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810 @%:@@%:@ ----------------- @%:@@%:@
1811 @%:@@%:@ Output variables. @%:@@%:@
1812 @%:@@%:@ ----------------- @%:@@%:@
1815 for ac_var in $ac_subst_vars
1817 eval ac_val=\$$ac_var
1819 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 echo "$ac_var='\''$ac_val'\''"
1825 if test -n "$ac_subst_files"; then
1827 @%:@@%:@ ------------------- @%:@@%:@
1828 @%:@@%:@ File substitutions. @%:@@%:@
1829 @%:@@%:@ ------------------- @%:@@%:@
1832 for ac_var in $ac_subst_files
1834 eval ac_val=\$$ac_var
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 echo "$ac_var='\''$ac_val'\''"
1843 if test -s confdefs.h; then
1845 @%:@@%:@ ----------- @%:@@%:@
1846 @%:@@%:@ confdefs.h. @%:@@%:@
1847 @%:@@%:@ ----------- @%:@@%:@
1853 test "$ac_signal" != 0 &&
1854 echo "$as_me: caught signal $ac_signal"
1855 echo "$as_me: exit $exit_status"
1857 rm -f core *.core core.conftest.* &&
1858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1861 for ac_signal in 1 2 13 15; do
1862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1867 rm -f -r conftest* confdefs.h
1869 # Predefined preprocessor variables.
1871 cat >>confdefs.h <<_ACEOF
1872 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1876 cat >>confdefs.h <<_ACEOF
1877 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1881 cat >>confdefs.h <<_ACEOF
1882 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1886 cat >>confdefs.h <<_ACEOF
1887 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1891 cat >>confdefs.h <<_ACEOF
1892 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer explicitly selected file to automatically selected ones.
1898 if test -n "$CONFIG_SITE"; then
1899 set x "$CONFIG_SITE"
1900 elif test "x$prefix" != xNONE; then
1901 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1903 set x "$ac_default_prefix/share/config.site" \
1904 "$ac_default_prefix/etc/config.site"
1909 if test -r "$ac_site_file"; then
1910 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911 echo "$as_me: loading site script $ac_site_file" >&6;}
1912 sed 's/^/| /' "$ac_site_file" >&5
1917 if test -r "$cache_file"; then
1918 # Some versions of bash will fail to source /dev/null (special
1919 # files actually), so we avoid doing that.
1920 if test -f "$cache_file"; then
1921 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922 echo "$as_me: loading cache $cache_file" >&6;}
1924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925 *) . "./$cache_file";;
1929 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930 echo "$as_me: creating cache $cache_file" >&6;}
1934 # Check that the precious variables saved in the cache have kept the same
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939 eval ac_new_set=\$ac_env_${ac_var}_set
1940 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941 eval ac_new_val=\$ac_env_${ac_var}_value
1942 case $ac_old_set,$ac_new_set in
1944 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1948 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
1954 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1957 echo "$as_me: former value: $ac_old_val" >&2;}
1958 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1959 echo "$as_me: current value: $ac_new_val" >&2;}
1960 ac_cache_corrupted=:
1963 # Pass precious variables to config.status.
1964 if test "$ac_new_set" = set; then
1966 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 *) ac_arg=$ac_var=$ac_new_val ;;
1969 case " $ac_configure_args " in
1970 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1971 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1975 if $ac_cache_corrupted; then
1976 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980 { (exit 1); exit 1; }; }
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2016 if test -f "$ac_dir/install-sh"; then
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 elif test -f "$ac_dir/install.sh"; then
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 elif test -f "$ac_dir/shtool"; then
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 if test -z "$ac_aux_dir"; then
2031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049 { (exit 1); exit 1; }; }
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062 { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075 { (exit 1); exit 1; }; };;
2078 ac_save_IFS=$IFS; IFS='-'
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test "x$host_alias" = x; then
2097 ac_cv_host=$ac_cv_build
2099 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102 { (exit 1); exit 1; }; }
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112 { (exit 1); exit 1; }; };;
2115 ac_save_IFS=$IFS; IFS='-'
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2130 am__api_version='1.10'
2132 # Find a good install program. We prefer a C program (faster),
2133 # so one script is as good as another. But avoid the broken or
2134 # incompatible versions:
2135 # SysV /etc/install, /usr/sbin/install
2136 # SunOS /usr/etc/install
2137 # IRIX /sbin/install
2139 # AmigaOS /C/install, which installs bootblocks on floppy discs
2140 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2143 # OS/2's system install, which has a completely different semantic
2144 # ./install, which can be erroneously created by make from ./install.sh.
2145 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2146 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2147 if test -z "$INSTALL"; then
2148 if test "${ac_cv_path_install+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 # Account for people who put trailing slashes in PATH elements.
2158 ./ | .// | /cC/* | \
2159 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2163 # OSF1 and SCO ODT 3.0 have their own names for install.
2164 # Don't use installbsd from OSF since it installs stuff as root
2166 for ac_prog in ginstall scoinst install; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2169 if test $ac_prog = install &&
2170 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171 # AIX install. It has an incompatible calling convention.
2173 elif test $ac_prog = install &&
2174 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175 # program-specific install script used by HP pwplus--don't use.
2178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2191 if test "${ac_cv_path_install+set}" = set; then
2192 INSTALL=$ac_cv_path_install
2194 # As a last resort, use the slow shell script. Don't cache a
2195 # value for INSTALL within a source directory, because that will
2196 # break other packages using the cache if that directory is
2197 # removed, or if the value is a relative name.
2198 INSTALL=$ac_install_sh
2201 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2202 echo "${ECHO_T}$INSTALL" >&6; }
2204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2205 # It thinks the first close brace ends the variable substitution.
2206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2212 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2213 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2216 echo timestamp > conftest.file
2217 # Do `set' in a subshell so we don't clobber the current shell's
2218 # arguments. Must try -L first in case configure is actually a
2219 # symlink; some systems play weird games with the mod time of symlinks
2220 # (eg FreeBSD returns the mod time of the symlink's containing
2223 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2224 if test "$*" = "X"; then
2226 set X `ls -t $srcdir/configure conftest.file`
2229 if test "$*" != "X $srcdir/configure conftest.file" \
2230 && test "$*" != "X conftest.file $srcdir/configure"; then
2232 # If neither matched, then we have a broken ls. This can happen
2233 # if, for instance, CONFIG_SHELL is bash and it inherits a
2234 # broken ls alias from the environment. This has actually
2235 # happened. Such a system could not be considered "sane".
2236 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2237 alias in your environment" >&5
2238 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2239 alias in your environment" >&2;}
2240 { (exit 1); exit 1; }; }
2243 test "$2" = conftest.file
2249 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2250 Check your system clock" >&5
2251 echo "$as_me: error: newly created file is older than distributed files!
2252 Check your system clock" >&2;}
2253 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257 test "$program_prefix" != NONE &&
2258 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2259 # Use a double $ so make ignores it.
2260 test "$program_suffix" != NONE &&
2261 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2262 # Double any \ or $. echo might interpret backslashes.
2263 # By default was `s,x,x', remove it if useless.
2264 cat <<\_ACEOF >conftest.sed
2265 s/[\\$]/&&/g;s/;s,x,x,$//
2267 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2270 # expand $ac_aux_dir to an absolute path
2271 am_aux_dir=`cd $ac_aux_dir && pwd`
2273 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2274 # Use eval to expand $SHELL
2275 if eval "$MISSING --run true"; then
2276 am_missing_run="$MISSING --run "
2279 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2280 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2283 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2284 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2285 if test -z "$MKDIR_P"; then
2286 if test "${ac_cv_path_mkdir+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2293 test -z "$as_dir" && as_dir=.
2294 for ac_prog in mkdir gmkdir; do
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2297 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2298 'mkdir (GNU coreutils) '* | \
2299 'mkdir (coreutils) '* | \
2300 'mkdir (fileutils) '4.1*)
2301 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2311 if test "${ac_cv_path_mkdir+set}" = set; then
2312 MKDIR_P="$ac_cv_path_mkdir -p"
2314 # As a last resort, use the slow shell script. Don't cache a
2315 # value for MKDIR_P within a source directory, because that will
2316 # break other packages using the cache if that directory is
2317 # removed, or if the value is a relative name.
2318 test -d ./--version && rmdir ./--version
2319 MKDIR_P="$ac_install_sh -d"
2322 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2323 echo "${ECHO_T}$MKDIR_P" >&6; }
2327 [\\/$]* | ?:[\\/]*) ;;
2328 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2331 for ac_prog in gawk mawk nawk awk
2333 # Extract the first word of "$ac_prog", so it can be a program name with args.
2334 set dummy $ac_prog; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_AWK+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$AWK"; then
2341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_AWK="$ac_prog"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 if test -n "$AWK"; then
2362 { echo "$as_me:$LINENO: result: $AWK" >&5
2363 echo "${ECHO_T}$AWK" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2370 test -n "$AWK" && break
2373 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2374 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2375 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2376 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 cat >conftest.make <<\_ACEOF
2382 @echo '@@@%%%=$(MAKE)=@@@%%%'
2384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2387 eval ac_cv_prog_make_${ac_make}_set=yes;;
2389 eval ac_cv_prog_make_${ac_make}_set=no;;
2393 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2400 SET_MAKE="MAKE=${MAKE-make}"
2403 rm -rf .tst 2>/dev/null
2404 mkdir .tst 2>/dev/null
2405 if test -d .tst; then
2410 rmdir .tst 2>/dev/null
2412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414 # is not polluted with repeated "-I."
2415 am__isrc=' -I$(srcdir)'
2416 # test to see if srcdir already configured
2417 if test -f $srcdir/config.status; then
2418 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2419 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2420 { (exit 1); exit 1; }; }
2424 # test whether we have cygpath
2425 if test -z "$CYGPATH_W"; then
2426 if (cygpath --version) >/dev/null 2>/dev/null; then
2427 CYGPATH_W='cygpath -w'
2434 # Define the identity of the package.
2439 cat >>confdefs.h <<_ACEOF
2440 @%:@define PACKAGE "$PACKAGE"
2444 cat >>confdefs.h <<_ACEOF
2445 @%:@define VERSION "$VERSION"
2448 # Some tools Automake needs.
2450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2464 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2466 # Installed binaries are usually stripped using `strip' when the user
2467 # run `make install-strip'. However `strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the `STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_STRIP+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { echo "$as_me:$LINENO: result: $STRIP" >&5
2502 echo "${ECHO_T}$STRIP" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2510 if test -z "$ac_cv_prog_STRIP"; then
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2548 if test "x$ac_ct_STRIP" = x; then
2551 case $cross_compiling:$ac_tool_warned in
2553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet. If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&5
2556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet. If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2559 ac_tool_warned=yes ;;
2564 STRIP="$ac_cv_prog_STRIP"
2568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570 # We need awk for the "check" target. The system "awk" is bad on
2572 # Always define AMTAR for backward compatibility.
2574 AMTAR=${AMTAR-"${am_missing_run}tar"}
2576 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2584 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2585 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2586 # Check whether --enable-maintainer-mode was given.
2587 if test "${enable_maintainer_mode+set}" = set; then
2588 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2590 USE_MAINTAINER_MODE=no
2593 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2594 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2595 if test $USE_MAINTAINER_MODE = yes; then
2596 MAINTAINER_MODE_TRUE=
2597 MAINTAINER_MODE_FALSE='#'
2599 MAINTAINER_MODE_TRUE='#'
2600 MAINTAINER_MODE_FALSE=
2603 MAINT=$MAINTAINER_MODE_TRUE
2608 # Check whether --with-release was given.
2609 if test "${with_release+set}" = set; then
2610 withval=$with_release; RELEASE=$withval
2617 # Check whether --with-statedir was given.
2618 if test "${with_statedir+set}" = set; then
2619 withval=$with_statedir; statedir=$withval
2621 statedir=/var/lib/nfs
2626 # Check whether --with-statduser was given.
2627 if test "${with_statduser+set}" = set; then
2628 withval=$with_statduser; statduser=$withval
2630 if test "x$cross_compiling" = "xno"; then
2631 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2642 # Check whether --enable-nfsv3 was given.
2643 if test "${enable_nfsv3+set}" = set; then
2644 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2649 if test "$enable_nfsv3" = yes; then
2651 cat >>confdefs.h <<\_ACEOF
2652 @%:@define NFS3_SUPPORTED 1
2659 # Check whether --enable-nfsv4 was given.
2660 if test "${enable_nfsv4+set}" = set; then
2661 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2666 if test "$enable_nfsv4" = yes; then
2668 cat >>confdefs.h <<\_ACEOF
2669 @%:@define NFS4_SUPPORTED 1
2679 if test "$enable_nfsv4" = "yes"; then
2681 CONFIG_NFSV4_FALSE='#'
2683 CONFIG_NFSV4_TRUE='#'
2687 # Check whether --enable-gss was given.
2688 if test "${enable_gss+set}" = set; then
2689 enableval=$enable_gss; enable_gss=$enableval
2694 if test "$enable_gss" = yes; then
2696 cat >>confdefs.h <<\_ACEOF
2697 @%:@define GSS_SUPPORTED 1
2710 if test "$enable_gss" = "yes"; then
2712 CONFIG_GSS_FALSE='#'
2718 # Check whether --enable-kprefix was given.
2719 if test "${enable_kprefix+set}" = set; then
2720 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2726 # Check whether --enable-secure-statd was given.
2727 if test "${enable_secure_statd+set}" = set; then
2728 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2733 if test "$secure_statd" = yes; then
2735 cat >>confdefs.h <<\_ACEOF
2736 @%:@define RESTRICTED_STATD 1
2741 # Check whether --enable-rquotad was given.
2742 if test "${enable_rquotad+set}" = set; then
2743 enableval=$enable_rquotad; enable_rquotad=$enableval
2748 if test "$enable_rquotad" = yes; then
2753 if test "$enable_rquotad" = "yes"; then
2754 CONFIG_RQUOTAD_TRUE=
2755 CONFIG_RQUOTAD_FALSE='#'
2757 CONFIG_RQUOTAD_TRUE='#'
2758 CONFIG_RQUOTAD_FALSE=
2762 # Check whether --enable-mount was given.
2763 if test "${enable_mount+set}" = set; then
2764 enableval=$enable_mount; enable_mount=$enableval
2769 if test "$enable_mount" = "yes"; then
2771 CONFIG_MOUNT_FALSE='#'
2773 CONFIG_MOUNT_TRUE='#'
2778 # Check whether user wants TCP wrappers support
2779 DEPDIR="${am__leading_dot}deps"
2781 ac_config_commands="$ac_config_commands depfiles"
2784 am_make=${MAKE-make}
2785 cat > confinc << 'END'
2790 # If we don't find an include directive, just comment out the code.
2791 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2792 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2796 # First try GNU make style include.
2797 echo "include confinc" > confmf
2798 # We grep out `Entering directory' and `Leaving directory'
2799 # messages which can occur if `w' ends up in MAKEFLAGS.
2800 # In particular we don't look at `^make:' because GNU make might
2801 # be invoked under some other name (usually "gmake"), in which
2802 # case it prints its new name instead of `make'.
2803 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2808 # Now try BSD make style include.
2809 if test "$am__include" = "#"; then
2810 echo '.include "confinc"' > confmf
2811 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2812 am__include=.include
2819 { echo "$as_me:$LINENO: result: $_am_result" >&5
2820 echo "${ECHO_T}$_am_result" >&6; }
2821 rm -f confinc confmf
2823 # Check whether --enable-dependency-tracking was given.
2824 if test "${enable_dependency_tracking+set}" = set; then
2825 enableval=$enable_dependency_tracking;
2828 if test "x$enable_dependency_tracking" != xno; then
2829 am_depcomp="$ac_aux_dir/depcomp"
2832 if test "x$enable_dependency_tracking" != xno; then
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 if test -n "$ac_tool_prefix"; then
2847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 if test -n "$CC"; then
2876 { echo "$as_me:$LINENO: result: $CC" >&5
2877 echo "${ECHO_T}$CC" >&6; }
2879 { echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6; }
2885 if test -z "$ac_cv_prog_CC"; then
2887 # Extract the first word of "gcc", so it can be a program name with args.
2888 set dummy gcc; ac_word=$2
2889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_prog_ac_ct_CC="gcc"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2917 echo "${ECHO_T}$ac_ct_CC" >&6; }
2919 { echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6; }
2923 if test "x$ac_ct_CC" = x; then
2926 case $cross_compiling:$ac_tool_warned in
2928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet. If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&5
2931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2932 whose name does not start with the host triplet. If you think this
2933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2934 ac_tool_warned=yes ;;
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}cc; ac_word=$2
2946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_CC="${ac_tool_prefix}cc"
2962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CC"; then
2973 { echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6; }
2976 { echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6; }
2983 if test -z "$CC"; then
2984 # Extract the first word of "cc", so it can be a program name with args.
2985 set dummy cc; ac_word=$2
2986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003 ac_prog_rejected=yes
3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 if test $ac_prog_rejected = yes; then
3015 # We found a bogon in the path, so make sure we never use it.
3016 set dummy $ac_cv_prog_CC
3018 if test $@%:@ != 0; then
3019 # We chose a different compiler from the bogus one.
3020 # However, it has the same basename, so the bogon will be chosen
3021 # first if we set CC to just the basename; use the full file name.
3023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3029 if test -n "$CC"; then
3030 { echo "$as_me:$LINENO: result: $CC" >&5
3031 echo "${ECHO_T}$CC" >&6; }
3033 { echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6; }
3039 if test -z "$CC"; then
3040 if test -n "$ac_tool_prefix"; then
3041 for ac_prog in cl.exe
3043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044 set dummy $ac_tool_prefix$ac_prog; 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.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 if test -n "$CC"; then
3072 { echo "$as_me:$LINENO: result: $CC" >&5
3073 echo "${ECHO_T}$CC" >&6; }
3075 { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3080 test -n "$CC" && break
3083 if test -z "$CC"; then
3085 for ac_prog in cl.exe
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 if test -n "$ac_ct_CC"; then
3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_ac_ct_CC="$ac_prog"
3105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3117 echo "${ECHO_T}$ac_ct_CC" >&6; }
3119 { echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6; }
3124 test -n "$ac_ct_CC" && break
3127 if test "x$ac_ct_CC" = x; then
3130 case $cross_compiling:$ac_tool_warned in
3132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3133 whose name does not start with the host triplet. If you think this
3134 configuration is useful to you, please write to autoconf@gnu.org." >&5
3135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3136 whose name does not start with the host triplet. If you think this
3137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3138 ac_tool_warned=yes ;;
3147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details." >&2;}
3151 { (exit 1); exit 1; }; }
3153 # Provide some information about the compiler.
3154 echo "$as_me:$LINENO: checking for C compiler version" >&5
3155 ac_compiler=`set X $ac_compile; echo $2`
3156 { (ac_try="$ac_compiler --version >&5"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compiler --version >&5") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3166 { (ac_try="$ac_compiler -v >&5"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compiler -v >&5") 2>&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 { (ac_try="$ac_compiler -V >&5"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compiler -V >&5") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3207 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3208 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3209 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211 # List of possible output files, starting from the most likely.
3212 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3213 # only as a last resort. b.out is created by i960 compilers.
3214 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3216 # The IRIX 6 linker writes into existing files which may not be
3217 # executable, retaining their permissions. Remove them first so a
3218 # subsequent execution test works.
3220 for ac_file in $ac_files
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3224 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3229 if { (ac_try="$ac_link_default"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_link_default") 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; then
3239 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3240 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3241 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3242 # so that the user can short-circuit this test for compilers unknown to
3244 for ac_file in $ac_files ''
3246 test -f "$ac_file" || continue
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3251 # We found the default executable, but exeext='' is most
3255 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259 # We set ac_cv_exeext here because the later test for it is not
3260 # safe: cross compilers may not add the suffix if given an `-o'
3261 # argument, so we may need to know it at that point already.
3262 # Even if this section looks crufty: it has the advantage of
3269 test "$ac_cv_exeext" = no && ac_cv_exeext=
3275 { echo "$as_me:$LINENO: result: $ac_file" >&5
3276 echo "${ECHO_T}$ac_file" >&6; }
3277 if test -z "$ac_file"; then
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: C compiler cannot create executables
3284 See \`config.log' for more details." >&2;}
3285 { (exit 77); exit 77; }; }
3288 ac_exeext=$ac_cv_exeext
3290 # Check that the compiler produces executables we can run. If not, either
3291 # the compiler is broken, or we cross compile.
3292 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3293 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3294 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3295 # If not cross compiling, check that we can run a simple program.
3296 if test "$cross_compiling" != yes; then
3297 if { ac_try='./$ac_file'
3298 { (case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_try") 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; }; then
3309 if test "$cross_compiling" = maybe; then
3312 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot run C compiled programs.
3316 If you meant to cross compile, use \`--host'.
3317 See \`config.log' for more details." >&2;}
3318 { (exit 1); exit 1; }; }
3322 { echo "$as_me:$LINENO: result: yes" >&5
3323 echo "${ECHO_T}yes" >&6; }
3325 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3326 ac_clean_files=$ac_clean_files_save
3327 # Check that the compiler produces executables we can run. If not, either
3328 # the compiler is broken, or we cross compile.
3329 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3330 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3331 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3332 echo "${ECHO_T}$cross_compiling" >&6; }
3334 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3335 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3336 if { (ac_try="$ac_link"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_link") 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; then
3346 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3350 for ac_file in conftest.exe conftest conftest.*; do
3351 test -f "$ac_file" || continue
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3367 rm -f conftest$ac_cv_exeext
3368 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3369 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3371 rm -f conftest.$ac_ext
3372 EXEEXT=$ac_cv_exeext
3374 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3375 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3376 if test "${ac_cv_objext+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3394 rm -f conftest.o conftest.obj
3395 if { (ac_try="$ac_compile"
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_compile") 2>&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; then
3405 for ac_file in conftest.o conftest.obj conftest.*; do
3406 test -f "$ac_file" || continue;
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3409 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details." >&5
3419 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3420 See \`config.log' for more details." >&2;}
3421 { (exit 1); exit 1; }; }
3424 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3426 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3427 echo "${ECHO_T}$ac_cv_objext" >&6; }
3428 OBJEXT=$ac_cv_objext
3430 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3431 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3432 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3453 rm -f conftest.$ac_objext
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>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } && {
3467 test -z "$ac_c_werror_flag" ||
3468 test ! -s conftest.err
3469 } && test -s conftest.$ac_objext; then
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3483 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3484 GCC=`test $ac_compiler_gnu = yes && echo yes`
3485 ac_test_CFLAGS=${CFLAGS+set}
3486 ac_save_CFLAGS=$CFLAGS
3487 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_cc_g+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 ac_save_c_werror_flag=$ac_c_werror_flag
3493 ac_c_werror_flag=yes
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3558 grep -v '^ *+' conftest.er1 >conftest.err
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compile") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } && {
3602 test -z "$ac_c_werror_flag" ||
3603 test ! -s conftest.err
3604 } && test -s conftest.$ac_objext; then
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_c_werror_flag=$ac_save_c_werror_flag
3622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3623 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3624 if test "$ac_test_CFLAGS" = set; then
3625 CFLAGS=$ac_save_CFLAGS
3626 elif test $ac_cv_prog_cc_g = yes; then
3627 if test "$GCC" = yes; then
3633 if test "$GCC" = yes; then
3639 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3640 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3641 if test "${ac_cv_prog_cc_c89+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 ac_cv_prog_cc_c89=no
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3670 s = g (p, va_arg (v,int));
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3676 function prototypes and stuff, but not '\xHH' hex character constants.
3677 These don't provoke an error unfortunately, instead are silently treated
3678 as 'x'. The following induces an error, until -std is added to get
3679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3680 array size at least. It's necessary to write '\x00'==0 to get something
3681 that's true only with -std. */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685 inside strings and character constants. */
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3706 CC="$ac_save_CC $ac_arg"
3707 rm -f conftest.$ac_objext
3708 if { (ac_try="$ac_compile"
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_compile") 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } && {
3721 test -z "$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3723 } && test -s conftest.$ac_objext; then
3724 ac_cv_prog_cc_c89=$ac_arg
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3732 rm -f core conftest.err conftest.$ac_objext
3733 test "x$ac_cv_prog_cc_c89" != "xno" && break
3735 rm -f conftest.$ac_ext
3740 case "x$ac_cv_prog_cc_c89" in
3742 { echo "$as_me:$LINENO: result: none needed" >&5
3743 echo "${ECHO_T}none needed" >&6; } ;;
3745 { echo "$as_me:$LINENO: result: unsupported" >&5
3746 echo "${ECHO_T}unsupported" >&6; } ;;
3748 CC="$CC $ac_cv_prog_cc_c89"
3749 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3750 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 depcc="$CC" am_compiler_list=
3762 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3763 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3764 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3768 # We make a subdir and do the tests there. Otherwise we can end up
3769 # making bogus files that we don't know about and never remove. For
3770 # instance it was reported that on HP-UX the gcc test will end up
3771 # making a dummy file named `D' -- because `-MD' means `put the output
3774 # Copy depcomp to subdir because otherwise we won't find it if we're
3775 # using a relative directory.
3776 cp "$am_depcomp" conftest.dir
3778 # We will build objects and dependencies in a subdirectory because
3779 # it helps to detect inapplicable dependency modes. For instance
3780 # both Tru64's cc and ICC support -MD to output dependencies as a
3781 # side effect of compilation, but ICC will put the dependencies in
3782 # the current directory while Tru64 will put them in the object
3786 am_cv_CC_dependencies_compiler_type=none
3787 if test "$am_compiler_list" = ""; then
3788 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3790 for depmode in $am_compiler_list; do
3791 # Setup a source with many dependencies, because some compilers
3792 # like to wrap large dependency lists on column 80 (with \), and
3793 # we should not choose a depcomp mode which is confused by this.
3795 # We need to recreate these files for each test, as the compiler may
3796 # overwrite some of them when testing with obscure command lines.
3797 # This happens at least with the AIX C compiler.
3799 for i in 1 2 3 4 5 6; do
3800 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802 # Solaris 8's {/usr,}/bin/sh.
3803 touch sub/conftst$i.h
3805 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3809 # after this tag, mechanisms are not by side-effect, so they'll
3810 # only be used when explicitly requested
3811 if test "x$enable_dependency_tracking" = xyes; then
3819 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820 # mode. It turns out that the SunPro C++ compiler does not properly
3821 # handle `-M -o', and we need to detect this.
3822 if depmode=$depmode \
3823 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3826 >/dev/null 2>conftest.err &&
3827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831 # icc doesn't choke on unknown options, it will just issue warnings
3832 # or remarks (even with -Werror). So we grep stderr for any message
3833 # that says an option was ignored or not supported.
3834 # When given -MP, icc 7.0 and 7.1 complain thusly:
3835 # icc: Command line warning: ignoring option '-M'; no argument required
3836 # The diagnosis changed in icc 8.0:
3837 # icc: Command line remark: option '-MP' not supported
3838 if (grep 'ignoring option' conftest.err ||
3839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840 am_cv_CC_dependencies_compiler_type=$depmode
3849 am_cv_CC_dependencies_compiler_type=none
3853 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3858 test "x$enable_dependency_tracking" != xno \
3859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3861 am__fastdepCC_FALSE='#'
3863 am__fastdepCC_TRUE='#'
3864 am__fastdepCC_FALSE=
3872 # Check whether --with-tcp-wrappers was given.
3873 if test "${with_tcp_wrappers+set}" = set; then
3874 withval=$with_tcp_wrappers; with_tcpw=$withval
3879 if test "x$with_tcpw" != "xno" ; then
3881 saved_LDFLAGS="$LDFLAGS"
3882 saved_CPPFLAGS="$CPPFLAGS"
3883 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3884 if test -d "${with_tcpw}/lib"; then
3885 if test -n "${need_dash_r}"; then
3886 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3888 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3891 if test -n "${need_dash_r}"; then
3892 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3894 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3897 if test -d "${with_tcpw}/include"; then
3898 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3900 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3904 LIBS="$LIBWRAP $LIBS"
3905 { echo "$as_me:$LINENO: checking for libwrap" >&5
3906 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3915 int deny_severity = 0, allow_severity = 0;
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_link") 2>conftest.er1
3934 grep -v '^ *+' conftest.er1 >conftest.err
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest$ac_exeext &&
3942 $as_test_x conftest$ac_exeext; then
3944 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3948 cat >>confdefs.h <<\_ACEOF
3949 @%:@define LIBWRAP 1
3953 cat >>confdefs.h <<\_ACEOF
3954 @%:@define HAVE_LIBWRAP 1
3958 cat >>confdefs.h <<\_ACEOF
3959 @%:@define HAVE_TCP_WRAPPER 1
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3969 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3970 echo "$as_me: error: *** libwrap missing" >&2;}
3971 { (exit 1); exit 1; }; }
3976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3977 conftest$ac_exeext conftest.$ac_ext
3986 ac_config_headers="$ac_config_headers support/include/config.h"
3989 # Checks for programs.
3991 ac_cpp='$CXXCPP $CPPFLAGS'
3992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3995 if test -z "$CXX"; then
3996 if test -n "$CCC"; then
3999 if test -n "$ac_tool_prefix"; then
4000 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4006 if test "${ac_cv_prog_CXX+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$CXX"; then
4010 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$CXX"; then
4031 { echo "$as_me:$LINENO: result: $CXX" >&5
4032 echo "${ECHO_T}$CXX" >&6; }
4034 { echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6; }
4039 test -n "$CXX" && break
4042 if test -z "$CXX"; then
4044 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4046 # Extract the first word of "$ac_prog", so it can be a program name with args.
4047 set dummy $ac_prog; ac_word=$2
4048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4050 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 if test -n "$ac_ct_CXX"; then
4054 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_ac_ct_CXX="$ac_prog"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4074 if test -n "$ac_ct_CXX"; then
4075 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4076 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4078 { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4083 test -n "$ac_ct_CXX" && break
4086 if test "x$ac_ct_CXX" = x; then
4089 case $cross_compiling:$ac_tool_warned in
4091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4092 whose name does not start with the host triplet. If you think this
4093 configuration is useful to you, please write to autoconf@gnu.org." >&5
4094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4095 whose name does not start with the host triplet. If you think this
4096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4097 ac_tool_warned=yes ;;
4105 # Provide some information about the compiler.
4106 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4107 ac_compiler=`set X $ac_compile; echo $2`
4108 { (ac_try="$ac_compiler --version >&5"
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_compiler --version >&5") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }
4118 { (ac_try="$ac_compiler -v >&5"
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compiler -v >&5") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }
4128 { (ac_try="$ac_compiler -V >&5"
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_compiler -V >&5") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }
4139 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4140 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4141 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4162 rm -f conftest.$ac_objext
4163 if { (ac_try="$ac_compile"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_compile") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && {
4176 test -z "$ac_cxx_werror_flag" ||
4177 test ! -s conftest.err
4178 } && test -s conftest.$ac_objext; then
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4191 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4192 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4193 GXX=`test $ac_compiler_gnu = yes && echo yes`
4194 ac_test_CXXFLAGS=${CXXFLAGS+set}
4195 ac_save_CXXFLAGS=$CXXFLAGS
4196 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4197 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4198 if test "${ac_cv_prog_cxx_g+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4202 ac_cxx_werror_flag=yes
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_cxx_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_cv_prog_cxx_g=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_cxx_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest.$ac_objext; then
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_cxx_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 ac_cv_prog_cxx_g=yes
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4332 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4333 if test "$ac_test_CXXFLAGS" = set; then
4334 CXXFLAGS=$ac_save_CXXFLAGS
4335 elif test $ac_cv_prog_cxx_g = yes; then
4336 if test "$GXX" = yes; then
4342 if test "$GXX" = yes; then
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354 depcc="$CXX" am_compiler_list=
4356 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4357 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4358 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4362 # We make a subdir and do the tests there. Otherwise we can end up
4363 # making bogus files that we don't know about and never remove. For
4364 # instance it was reported that on HP-UX the gcc test will end up
4365 # making a dummy file named `D' -- because `-MD' means `put the output
4368 # Copy depcomp to subdir because otherwise we won't find it if we're
4369 # using a relative directory.
4370 cp "$am_depcomp" conftest.dir
4372 # We will build objects and dependencies in a subdirectory because
4373 # it helps to detect inapplicable dependency modes. For instance
4374 # both Tru64's cc and ICC support -MD to output dependencies as a
4375 # side effect of compilation, but ICC will put the dependencies in
4376 # the current directory while Tru64 will put them in the object
4380 am_cv_CXX_dependencies_compiler_type=none
4381 if test "$am_compiler_list" = ""; then
4382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4384 for depmode in $am_compiler_list; do
4385 # Setup a source with many dependencies, because some compilers
4386 # like to wrap large dependency lists on column 80 (with \), and
4387 # we should not choose a depcomp mode which is confused by this.
4389 # We need to recreate these files for each test, as the compiler may
4390 # overwrite some of them when testing with obscure command lines.
4391 # This happens at least with the AIX C compiler.
4393 for i in 1 2 3 4 5 6; do
4394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4396 # Solaris 8's {/usr,}/bin/sh.
4397 touch sub/conftst$i.h
4399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4403 # after this tag, mechanisms are not by side-effect, so they'll
4404 # only be used when explicitly requested
4405 if test "x$enable_dependency_tracking" = xyes; then
4413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4414 # mode. It turns out that the SunPro C++ compiler does not properly
4415 # handle `-M -o', and we need to detect this.
4416 if depmode=$depmode \
4417 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4419 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4420 >/dev/null 2>conftest.err &&
4421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4423 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4425 # icc doesn't choke on unknown options, it will just issue warnings
4426 # or remarks (even with -Werror). So we grep stderr for any message
4427 # that says an option was ignored or not supported.
4428 # When given -MP, icc 7.0 and 7.1 complain thusly:
4429 # icc: Command line warning: ignoring option '-M'; no argument required
4430 # The diagnosis changed in icc 8.0:
4431 # icc: Command line remark: option '-MP' not supported
4432 if (grep 'ignoring option' conftest.err ||
4433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4434 am_cv_CXX_dependencies_compiler_type=$depmode
4443 am_cv_CXX_dependencies_compiler_type=none
4447 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4448 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4449 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4452 test "x$enable_dependency_tracking" != xno \
4453 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4454 am__fastdepCXX_TRUE=
4455 am__fastdepCXX_FALSE='#'
4457 am__fastdepCXX_TRUE='#'
4458 am__fastdepCXX_FALSE=
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 if test -n "$ac_tool_prefix"; then
4468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$CC"; then
4476 ac_cv_prog_CC="$CC" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test -n "$CC"; then
4497 { echo "$as_me:$LINENO: result: $CC" >&5
4498 echo "${ECHO_T}$CC" >&6; }
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4506 if test -z "$ac_cv_prog_CC"; then
4508 # Extract the first word of "gcc", so it can be a program name with args.
4509 set dummy gcc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$ac_ct_CC"; then
4516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_ac_ct_CC="gcc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4536 if test -n "$ac_ct_CC"; then
4537 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4538 echo "${ECHO_T}$ac_ct_CC" >&6; }
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4544 if test "x$ac_ct_CC" = x; then
4547 case $cross_compiling:$ac_tool_warned in
4549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4550 whose name does not start with the host triplet. If you think this
4551 configuration is useful to you, please write to autoconf@gnu.org." >&5
4552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4553 whose name does not start with the host triplet. If you think this
4554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4555 ac_tool_warned=yes ;;
4563 if test -z "$CC"; then
4564 if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4566 set dummy ${ac_tool_prefix}cc; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_CC+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$CC"; then
4573 ac_cv_prog_CC="$CC" # Let the user override the test.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_CC="${ac_tool_prefix}cc"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 if test -n "$CC"; then
4594 { echo "$as_me:$LINENO: result: $CC" >&5
4595 echo "${ECHO_T}$CC" >&6; }
4597 { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4604 if test -z "$CC"; then
4605 # Extract the first word of "cc", so it can be a program name with args.
4606 set dummy cc; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_CC+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4624 ac_prog_rejected=yes
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 if test $ac_prog_rejected = yes; then
4636 # We found a bogon in the path, so make sure we never use it.
4637 set dummy $ac_cv_prog_CC
4639 if test $@%:@ != 0; then
4640 # We chose a different compiler from the bogus one.
4641 # However, it has the same basename, so the bogon will be chosen
4642 # first if we set CC to just the basename; use the full file name.
4644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4650 if test -n "$CC"; then
4651 { echo "$as_me:$LINENO: result: $CC" >&5
4652 echo "${ECHO_T}$CC" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4660 if test -z "$CC"; then
4661 if test -n "$ac_tool_prefix"; then
4662 for ac_prog in cl.exe
4664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_CC+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test -n "$CC"; then
4672 ac_cv_prog_CC="$CC" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 if test -n "$CC"; then
4693 { echo "$as_me:$LINENO: result: $CC" >&5
4694 echo "${ECHO_T}$CC" >&6; }
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4701 test -n "$CC" && break
4704 if test -z "$CC"; then
4706 for ac_prog in cl.exe
4708 # Extract the first word of "$ac_prog", so it can be a program name with args.
4709 set dummy $ac_prog; ac_word=$2
4710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 if test -n "$ac_ct_CC"; then
4716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_ac_ct_CC="$ac_prog"
4726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736 if test -n "$ac_ct_CC"; then
4737 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4738 echo "${ECHO_T}$ac_ct_CC" >&6; }
4740 { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4745 test -n "$ac_ct_CC" && break
4748 if test "x$ac_ct_CC" = x; then
4751 case $cross_compiling:$ac_tool_warned in
4753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4754 whose name does not start with the host triplet. If you think this
4755 configuration is useful to you, please write to autoconf@gnu.org." >&5
4756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4757 whose name does not start with the host triplet. If you think this
4758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4759 ac_tool_warned=yes ;;
4768 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4769 See \`config.log' for more details." >&5
4770 echo "$as_me: error: no acceptable C compiler found in \$PATH
4771 See \`config.log' for more details." >&2;}
4772 { (exit 1); exit 1; }; }
4774 # Provide some information about the compiler.
4775 echo "$as_me:$LINENO: checking for C compiler version" >&5
4776 ac_compiler=`set X $ac_compile; echo $2`
4777 { (ac_try="$ac_compiler --version >&5"
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_compiler --version >&5") 2>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }
4787 { (ac_try="$ac_compiler -v >&5"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_compiler -v >&5") 2>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }
4797 { (ac_try="$ac_compiler -V >&5"
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_compiler -V >&5") 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }
4808 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4809 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4810 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4831 rm -f conftest.$ac_objext
4832 if { (ac_try="$ac_compile"
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_compile") 2>conftest.er1
4840 grep -v '^ *+' conftest.er1 >conftest.err
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest.$ac_objext; then
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4860 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4862 GCC=`test $ac_compiler_gnu = yes && echo yes`
4863 ac_test_CFLAGS=${CFLAGS+set}
4864 ac_save_CFLAGS=$CFLAGS
4865 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_cc_g+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_save_c_werror_flag=$ac_c_werror_flag
4871 ac_c_werror_flag=yes
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4889 rm -f conftest.$ac_objext
4890 if { (ac_try="$ac_compile"
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896 (eval "$ac_compile") 2>conftest.er1
4898 grep -v '^ *+' conftest.er1 >conftest.err
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && {
4903 test -z "$ac_c_werror_flag" ||
4904 test ! -s conftest.err
4905 } && test -s conftest.$ac_objext; then
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_compile") 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest.$ac_objext; then
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 ac_c_werror_flag=$ac_save_c_werror_flag
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 ac_c_werror_flag=$ac_save_c_werror_flag
5000 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5001 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5002 if test "$ac_test_CFLAGS" = set; then
5003 CFLAGS=$ac_save_CFLAGS
5004 elif test $ac_cv_prog_cc_g = yes; then
5005 if test "$GCC" = yes; then
5011 if test "$GCC" = yes; then
5017 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5018 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_cc_c89+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 ac_cv_prog_cc_c89=no
5024 cat >conftest.$ac_ext <<_ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5032 #include <sys/types.h>
5033 #include <sys/stat.h>
5034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5035 struct buf { int x; };
5036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5037 static char *e (p, i)
5043 static char *f (char * (*g) (char **, int), char **p, ...)
5048 s = g (p, va_arg (v,int));
5053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5054 function prototypes and stuff, but not '\xHH' hex character constants.
5055 These don't provoke an error unfortunately, instead are silently treated
5056 as 'x'. The following induces an error, until -std is added to get
5057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5058 array size at least. It's necessary to write '\x00'==0 to get something
5059 that's true only with -std. */
5060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5063 inside strings and character constants. */
5065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5067 int test (int i, double x);
5068 struct s1 {int (*f) (int a);};
5069 struct s2 {int (*f) (double a);};
5070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5084 CC="$ac_save_CC $ac_arg"
5085 rm -f conftest.$ac_objext
5086 if { (ac_try="$ac_compile"
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_compile") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest.$ac_objext; then
5102 ac_cv_prog_cc_c89=$ac_arg
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5110 rm -f core conftest.err conftest.$ac_objext
5111 test "x$ac_cv_prog_cc_c89" != "xno" && break
5113 rm -f conftest.$ac_ext
5118 case "x$ac_cv_prog_cc_c89" in
5120 { echo "$as_me:$LINENO: result: none needed" >&5
5121 echo "${ECHO_T}none needed" >&6; } ;;
5123 { echo "$as_me:$LINENO: result: unsupported" >&5
5124 echo "${ECHO_T}unsupported" >&6; } ;;
5126 CC="$CC $ac_cv_prog_cc_c89"
5127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5128 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 depcc="$CC" am_compiler_list=
5140 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5141 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146 # We make a subdir and do the tests there. Otherwise we can end up
5147 # making bogus files that we don't know about and never remove. For
5148 # instance it was reported that on HP-UX the gcc test will end up
5149 # making a dummy file named `D' -- because `-MD' means `put the output
5152 # Copy depcomp to subdir because otherwise we won't find it if we're
5153 # using a relative directory.
5154 cp "$am_depcomp" conftest.dir
5156 # We will build objects and dependencies in a subdirectory because
5157 # it helps to detect inapplicable dependency modes. For instance
5158 # both Tru64's cc and ICC support -MD to output dependencies as a
5159 # side effect of compilation, but ICC will put the dependencies in
5160 # the current directory while Tru64 will put them in the object
5164 am_cv_CC_dependencies_compiler_type=none
5165 if test "$am_compiler_list" = ""; then
5166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5168 for depmode in $am_compiler_list; do
5169 # Setup a source with many dependencies, because some compilers
5170 # like to wrap large dependency lists on column 80 (with \), and
5171 # we should not choose a depcomp mode which is confused by this.
5173 # We need to recreate these files for each test, as the compiler may
5174 # overwrite some of them when testing with obscure command lines.
5175 # This happens at least with the AIX C compiler.
5177 for i in 1 2 3 4 5 6; do
5178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5180 # Solaris 8's {/usr,}/bin/sh.
5181 touch sub/conftst$i.h
5183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5187 # after this tag, mechanisms are not by side-effect, so they'll
5188 # only be used when explicitly requested
5189 if test "x$enable_dependency_tracking" = xyes; then
5197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5198 # mode. It turns out that the SunPro C++ compiler does not properly
5199 # handle `-M -o', and we need to detect this.
5200 if depmode=$depmode \
5201 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5202 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5203 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5204 >/dev/null 2>conftest.err &&
5205 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5207 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5209 # icc doesn't choke on unknown options, it will just issue warnings
5210 # or remarks (even with -Werror). So we grep stderr for any message
5211 # that says an option was ignored or not supported.
5212 # When given -MP, icc 7.0 and 7.1 complain thusly:
5213 # icc: Command line warning: ignoring option '-M'; no argument required
5214 # The diagnosis changed in icc 8.0:
5215 # icc: Command line remark: option '-MP' not supported
5216 if (grep 'ignoring option' conftest.err ||
5217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5218 am_cv_CC_dependencies_compiler_type=$depmode
5227 am_cv_CC_dependencies_compiler_type=none
5231 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5236 test "x$enable_dependency_tracking" != xno \
5237 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5239 am__fastdepCC_FALSE='#'
5241 am__fastdepCC_TRUE='#'
5242 am__fastdepCC_FALSE=
5247 ac_cpp='$CPP $CPPFLAGS'
5248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5253 # On Suns, sometimes $CPP names a directory.
5254 if test -n "$CPP" && test -d "$CPP"; then
5257 if test -z "$CPP"; then
5258 if test "${ac_cv_prog_CPP+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 # Double quotes because CPP needs to be expanded
5262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5265 for ac_c_preproc_warn_flag in '' yes
5267 # Use a header file that comes with gcc, so configuring glibc
5268 # with a fresh cross-compiler works.
5269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270 # <limits.h> exists even on freestanding compilers.
5271 # On the NeXT, cc -E runs the code through the compiler's parser,
5272 # not just through cpp. "Syntax error" is here to catch this case.
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5280 @%:@ include <limits.h>
5282 @%:@ include <assert.h>
5286 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null && {
5299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5300 test ! -s conftest.err
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5307 # Broken: fails on valid input.
5311 rm -f conftest.err conftest.$ac_ext
5313 # OK, works on sane cases. Now check whether nonexistent headers
5314 # can be detected and how.
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 @%:@include <ac_nonexistent.h>
5323 if { (ac_try="$ac_cpp conftest.$ac_ext"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } >/dev/null && {
5336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5339 # Broken: success on invalid input.
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 # Passes both tests.
5350 rm -f conftest.err conftest.$ac_ext
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok; then
5367 { echo "$as_me:$LINENO: result: $CPP" >&5
5368 echo "${ECHO_T}$CPP" >&6; }
5370 for ac_c_preproc_warn_flag in '' yes
5372 # Use a header file that comes with gcc, so configuring glibc
5373 # with a fresh cross-compiler works.
5374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5375 # <limits.h> exists even on freestanding compilers.
5376 # On the NeXT, cc -E runs the code through the compiler's parser,
5377 # not just through cpp. "Syntax error" is here to catch this case.
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5385 @%:@ include <limits.h>
5387 @%:@ include <assert.h>
5391 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } >/dev/null && {
5404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 # Broken: fails on valid input.
5416 rm -f conftest.err conftest.$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 @%:@include <ac_nonexistent.h>
5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } >/dev/null && {
5441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5444 # Broken: success on invalid input.
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 # Passes both tests.
5455 rm -f conftest.err conftest.$ac_ext
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then
5463 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476 # Find a good install program. We prefer a C program (faster),
5477 # so one script is as good as another. But avoid the broken or
5478 # incompatible versions:
5479 # SysV /etc/install, /usr/sbin/install
5480 # SunOS /usr/etc/install
5481 # IRIX /sbin/install
5483 # AmigaOS /C/install, which installs bootblocks on floppy discs
5484 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5485 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5486 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5487 # OS/2's system install, which has a completely different semantic
5488 # ./install, which can be erroneously created by make from ./install.sh.
5489 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5490 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5491 if test -z "$INSTALL"; then
5492 if test "${ac_cv_path_install+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir=.
5500 # Account for people who put trailing slashes in PATH elements.
5502 ./ | .// | /cC/* | \
5503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5504 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5507 # OSF1 and SCO ODT 3.0 have their own names for install.
5508 # Don't use installbsd from OSF since it installs stuff as root
5510 for ac_prog in ginstall scoinst install; do
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5513 if test $ac_prog = install &&
5514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5515 # AIX install. It has an incompatible calling convention.
5517 elif test $ac_prog = install &&
5518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5519 # program-specific install script used by HP pwplus--don't use.
5522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5535 if test "${ac_cv_path_install+set}" = set; then
5536 INSTALL=$ac_cv_path_install
5538 # As a last resort, use the slow shell script. Don't cache a
5539 # value for INSTALL within a source directory, because that will
5540 # break other packages using the cache if that directory is
5541 # removed, or if the value is a relative name.
5542 INSTALL=$ac_install_sh
5545 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5546 echo "${ECHO_T}$INSTALL" >&6; }
5548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5549 # It thinks the first close brace ends the variable substitution.
5550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5554 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5556 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5557 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5559 if test "$LN_S" = "ln -s"; then
5560 { echo "$as_me:$LINENO: result: yes" >&5
5561 echo "${ECHO_T}yes" >&6; }
5563 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5564 echo "${ECHO_T}no, using $LN_S" >&6; }
5567 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5569 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cat >conftest.make <<\_ACEOF
5576 @echo '@@@%%%=$(MAKE)=@@@%%%'
5578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5581 eval ac_cv_prog_make_${ac_make}_set=yes;;
5583 eval ac_cv_prog_make_${ac_make}_set=no;;
5587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5588 { echo "$as_me:$LINENO: result: yes" >&5
5589 echo "${ECHO_T}yes" >&6; }
5592 { echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6; }
5594 SET_MAKE="MAKE=${MAKE-make}"
5597 # Check whether --enable-shared was given.
5598 if test "${enable_shared+set}" = set; then
5599 enableval=$enable_shared; p=${PACKAGE-default}
5601 yes) enable_shared=yes ;;
5602 no) enable_shared=no ;;
5605 # Look at the argument we got. We use all the common list separators.
5606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5607 for pkg in $enableval; do
5609 if test "X$pkg" = "X$p"; then
5621 # Check whether --enable-static was given.
5622 if test "${enable_static+set}" = set; then
5623 enableval=$enable_static; p=${PACKAGE-default}
5625 yes) enable_static=yes ;;
5626 no) enable_static=no ;;
5629 # Look at the argument we got. We use all the common list separators.
5630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5631 for pkg in $enableval; do
5633 if test "X$pkg" = "X$p"; then
5645 # Check whether --enable-fast-install was given.
5646 if test "${enable_fast_install+set}" = set; then
5647 enableval=$enable_fast_install; p=${PACKAGE-default}
5649 yes) enable_fast_install=yes ;;
5650 no) enable_fast_install=no ;;
5652 enable_fast_install=no
5653 # Look at the argument we got. We use all the common list separators.
5654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5655 for pkg in $enableval; do
5657 if test "X$pkg" = "X$p"; then
5658 enable_fast_install=yes
5665 enable_fast_install=yes
5669 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5670 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5671 if test "${lt_cv_path_SED+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 # Loop through the user's path and test for sed and gsed.
5675 # Then use that list of sed's as ones to test for truncation.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for lt_ac_prog in sed gsed; do
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5684 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5691 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5692 # along with /bin/sed that truncates output.
5693 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5694 test ! -f $lt_ac_sed && continue
5695 cat /dev/null > conftest.in
5697 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5698 # Check for GNU sed and select it if it is found.
5699 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5700 lt_cv_path_SED=$lt_ac_sed
5704 cat conftest.in conftest.in >conftest.tmp
5705 mv conftest.tmp conftest.in
5706 cp conftest.in conftest.nl
5708 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5709 cmp -s conftest.out conftest.nl || break
5710 # 10000 chars as input seems more than enough
5711 test $lt_ac_count -gt 10 && break
5712 lt_ac_count=`expr $lt_ac_count + 1`
5713 if test $lt_ac_count -gt $lt_ac_max; then
5714 lt_ac_max=$lt_ac_count
5715 lt_cv_path_SED=$lt_ac_sed
5723 { echo "$as_me:$LINENO: result: $SED" >&5
5724 echo "${ECHO_T}$SED" >&6; }
5726 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5727 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5728 if test "${ac_cv_path_GREP+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 # Extract the first word of "grep ggrep" to use in msg output
5732 if test -z "$GREP"; then
5733 set dummy grep ggrep; ac_prog_name=$2
5734 if test "${ac_cv_path_GREP+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_path_GREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5743 test -z "$as_dir" && as_dir=.
5744 for ac_prog in grep ggrep; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5747 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5748 # Check for GNU ac_path_GREP and select it if it is found.
5749 # Check for GNU $ac_path_GREP
5750 case `"$ac_path_GREP" --version 2>&1` in
5752 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5755 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 echo 'GREP' >> "conftest.nl"
5762 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764 ac_count=`expr $ac_count + 1`
5765 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_GREP="$ac_path_GREP"
5768 ac_path_GREP_max=$ac_count
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5777 $ac_path_GREP_found && break 3
5787 GREP="$ac_cv_path_GREP"
5788 if test -z "$GREP"; then
5789 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5790 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5791 { (exit 1); exit 1; }; }
5795 ac_cv_path_GREP=$GREP
5800 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5801 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5802 GREP="$ac_cv_path_GREP"
5805 { echo "$as_me:$LINENO: checking for egrep" >&5
5806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5807 if test "${ac_cv_path_EGREP+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5811 then ac_cv_path_EGREP="$GREP -E"
5813 # Extract the first word of "egrep" to use in msg output
5814 if test -z "$EGREP"; then
5815 set dummy egrep; ac_prog_name=$2
5816 if test "${ac_cv_path_EGREP+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 ac_path_EGREP_found=false
5820 # Loop through the user's path and test for each of PROGNAME-LIST
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5825 test -z "$as_dir" && as_dir=.
5826 for ac_prog in egrep; do
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5829 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5830 # Check for GNU ac_path_EGREP and select it if it is found.
5831 # Check for GNU $ac_path_EGREP
5832 case `"$ac_path_EGREP" --version 2>&1` in
5834 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5837 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5840 cat "conftest.in" "conftest.in" >"conftest.tmp"
5841 mv "conftest.tmp" "conftest.in"
5842 cp "conftest.in" "conftest.nl"
5843 echo 'EGREP' >> "conftest.nl"
5844 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5846 ac_count=`expr $ac_count + 1`
5847 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5848 # Best one so far, save it but keep looking for a better one
5849 ac_cv_path_EGREP="$ac_path_EGREP"
5850 ac_path_EGREP_max=$ac_count
5852 # 10*(2^10) chars as input seems more than enough
5853 test $ac_count -gt 10 && break
5855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5859 $ac_path_EGREP_found && break 3
5869 EGREP="$ac_cv_path_EGREP"
5870 if test -z "$EGREP"; then
5871 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5873 { (exit 1); exit 1; }; }
5877 ac_cv_path_EGREP=$EGREP
5883 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5884 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5885 EGREP="$ac_cv_path_EGREP"
5889 # Check whether --with-gnu-ld was given.
5890 if test "${with_gnu_ld+set}" = set; then
5891 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5897 if test "$GCC" = yes; then
5898 # Check if gcc -print-prog-name=ld gives a path.
5899 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5900 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5903 # gcc leaves a trailing carriage return which upsets mingw
5904 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5906 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5909 # Accept absolute paths.
5911 re_direlt='/[^/][^/]*/\.\./'
5912 # Canonicalize the pathname of ld
5913 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5914 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5915 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5917 test -z "$LD" && LD="$ac_prog"
5920 # If it fails, then pretend we aren't using GCC.
5924 # If it is relative, then search for the first ld in PATH.
5928 elif test "$with_gnu_ld" = yes; then
5929 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5930 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5932 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5933 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5935 if test "${lt_cv_path_LD+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test -z "$LD"; then
5939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940 for ac_dir in $PATH; do
5942 test -z "$ac_dir" && ac_dir=.
5943 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5944 lt_cv_path_LD="$ac_dir/$ac_prog"
5945 # Check to see if the program is GNU ld. I'd rather use --version,
5946 # but apparently some variants of GNU ld only accept -v.
5947 # Break only if it was the GNU/non-GNU ld that we prefer.
5948 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5949 *GNU* | *'with BFD'*)
5950 test "$with_gnu_ld" != no && break
5953 test "$with_gnu_ld" != yes && break
5960 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5965 if test -n "$LD"; then
5966 { echo "$as_me:$LINENO: result: $LD" >&5
5967 echo "${ECHO_T}$LD" >&6; }
5969 { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5972 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5973 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5974 { (exit 1); exit 1; }; }
5975 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5976 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5977 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5981 case `$LD -v 2>&1 </dev/null` in
5982 *GNU* | *'with BFD'*)
5983 lt_cv_prog_gnu_ld=yes
5986 lt_cv_prog_gnu_ld=no
5990 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5991 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5992 with_gnu_ld=$lt_cv_prog_gnu_ld
5995 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5996 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5997 if test "${lt_cv_ld_reload_flag+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 lt_cv_ld_reload_flag='-r'
6002 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6003 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6004 reload_flag=$lt_cv_ld_reload_flag
6005 case $reload_flag in
6007 *) reload_flag=" $reload_flag" ;;
6009 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6012 if test "$GCC" = yes; then
6013 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6020 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6021 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6022 if test "${lt_cv_path_NM+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 if test -n "$NM"; then
6026 # Let the user override the test.
6029 lt_nm_to_check="${ac_tool_prefix}nm"
6030 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6031 lt_nm_to_check="$lt_nm_to_check nm"
6033 for lt_tmp_nm in $lt_nm_to_check; do
6034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6037 test -z "$ac_dir" && ac_dir=.
6038 tmp_nm="$ac_dir/$lt_tmp_nm"
6039 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6040 # Check to see if the nm accepts a BSD-compat flag.
6041 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6042 # nm: unknown option "B" ignored
6043 # Tru64's nm complains that /dev/null is an invalid object file
6044 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6045 */dev/null* | *'Invalid file or object type'*)
6046 lt_cv_path_NM="$tmp_nm -B"
6050 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6052 lt_cv_path_NM="$tmp_nm -p"
6056 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6057 continue # so that we can try to find one that supports BSD flags
6066 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6069 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6070 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6073 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6074 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6075 if test "${lt_cv_deplibs_check_method+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 lt_cv_file_magic_cmd='$MAGIC_CMD'
6079 lt_cv_file_magic_test_file=
6080 lt_cv_deplibs_check_method='unknown'
6081 # Need to set the preceding variable on all platforms that support
6082 # interlibrary dependencies.
6083 # 'none' -- dependencies not supported.
6084 # `unknown' -- same as none, but documents that we really don't know.
6085 # 'pass_all' -- all dependencies passed with no checks.
6086 # 'test_compile' -- check by making test program.
6087 # 'file_magic [[regex]]' -- check by looking for files in library path
6088 # which responds to the $file_magic_cmd with a given extended regex.
6089 # If you have `file' or equivalent on your system and you're not sure
6090 # whether `pass_all' will *always* work, you probably want this one.
6094 lt_cv_deplibs_check_method=pass_all
6098 lt_cv_deplibs_check_method=pass_all
6102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6103 lt_cv_file_magic_cmd='/usr/bin/file -L'
6104 lt_cv_file_magic_test_file=/shlib/libc.so
6108 # func_win32_libid is a shell function defined in ltmain.sh
6109 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6110 lt_cv_file_magic_cmd='func_win32_libid'
6114 # Base MSYS/MinGW do not provide the 'file' command needed by
6115 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6117 lt_cv_file_magic_cmd='$OBJDUMP -f'
6120 darwin* | rhapsody*)
6121 lt_cv_deplibs_check_method=pass_all
6124 freebsd* | dragonfly*)
6125 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6128 # Not sure whether the presence of OpenBSD here was a mistake.
6129 # Let's accept both of them until this is cleared up.
6130 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6131 lt_cv_file_magic_cmd=/usr/bin/file
6132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6136 lt_cv_deplibs_check_method=pass_all
6141 lt_cv_deplibs_check_method=pass_all
6144 hpux10.20* | hpux11*)
6145 lt_cv_file_magic_cmd=/usr/bin/file
6148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6152 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]'
6153 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6157 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6163 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6167 irix5* | irix6* | nonstopux*)
6169 *-32|*"-32 ") libmagic=32-bit;;
6170 *-n32|*"-n32 ") libmagic=N32;;
6171 *-64|*"-64 ") libmagic=64-bit;;
6172 *) libmagic=never-match;;
6174 lt_cv_deplibs_check_method=pass_all
6177 # This must be Linux ELF.
6178 linux* | k*bsd*-gnu)
6179 lt_cv_deplibs_check_method=pass_all
6182 netbsd* | netbsdelf*-gnu)
6183 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6192 lt_cv_file_magic_cmd=/usr/bin/file
6193 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6197 lt_cv_deplibs_check_method=unknown
6201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6208 osf3* | osf4* | osf5*)
6209 lt_cv_deplibs_check_method=pass_all
6213 lt_cv_deplibs_check_method=pass_all
6217 case $host_vendor in
6219 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]'
6220 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6223 lt_cv_deplibs_check_method=pass_all
6226 lt_cv_file_magic_cmd='/bin/file'
6227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6230 lt_cv_file_magic_cmd='/bin/file'
6231 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6232 lt_cv_file_magic_test_file=/lib/libc.so
6235 lt_cv_deplibs_check_method=pass_all
6238 lt_cv_deplibs_check_method=pass_all
6243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6244 lt_cv_deplibs_check_method=pass_all
6249 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6250 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6251 file_magic_cmd=$lt_cv_file_magic_cmd
6252 deplibs_check_method=$lt_cv_deplibs_check_method
6253 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6258 # If no C compiler was specified, use CC.
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264 # Allow CC to be a program name with arguments.
6267 # Check whether --enable-libtool-lock was given.
6268 if test "${enable_libtool_lock+set}" = set; then
6269 enableval=$enable_libtool_lock;
6272 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6274 # Some flags need to be propagated to the compiler or linker for good
6278 # Find out which ABI we are using.
6279 echo 'int i;' > conftest.$ac_ext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; then
6285 case `/usr/bin/file conftest.$ac_objext` in
6297 # Find out which ABI we are using.
6298 echo '#line __oline__ "configure"' > conftest.$ac_ext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; then
6304 if test "$lt_cv_prog_gnu_ld" = yes; then
6305 case `/usr/bin/file conftest.$ac_objext` in
6307 LD="${LD-ld} -melf32bsmip"
6310 LD="${LD-ld} -melf32bmipn32"
6313 LD="${LD-ld} -melf64bmip"
6317 case `/usr/bin/file conftest.$ac_objext` in
6333 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6334 # Find out which ABI we are using.
6335 echo 'int i;' > conftest.$ac_ext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; then
6341 case `/usr/bin/file conftest.o` in
6345 LD="${LD-ld} -m elf_i386"
6347 ppc64-*linux*|powerpc64-*linux*)
6348 LD="${LD-ld} -m elf32ppclinux"
6351 LD="${LD-ld} -m elf_s390"
6354 LD="${LD-ld} -m elf32_sparc"
6361 LD="${LD-ld} -m elf_x86_64"
6363 ppc*-*linux*|powerpc*-*linux*)
6364 LD="${LD-ld} -m elf64ppc"
6367 LD="${LD-ld} -m elf64_s390"
6370 LD="${LD-ld} -m elf64_sparc"
6380 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6381 SAVE_CFLAGS="$CFLAGS"
6382 CFLAGS="$CFLAGS -belf"
6383 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6384 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6385 if test "${lt_cv_cc_needs_belf+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_link") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest$ac_exeext &&
6426 $as_test_x conftest$ac_exeext; then
6427 lt_cv_cc_needs_belf=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 lt_cv_cc_needs_belf=no
6435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6436 conftest$ac_exeext conftest.$ac_ext
6438 ac_cpp='$CPP $CPPFLAGS'
6439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6445 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6446 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6448 CFLAGS="$SAVE_CFLAGS"
6452 # Find out which ABI we are using.
6453 echo 'int i;' > conftest.$ac_ext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; then
6459 case `/usr/bin/file conftest.o` in
6461 case $lt_cv_prog_gnu_ld in
6462 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6463 *) LD="${LD-ld} -64" ;;
6474 need_locks="$enable_libtool_lock"
6478 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6480 if test "${ac_cv_header_stdc+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6502 rm -f conftest.$ac_objext
6503 if { (ac_try="$ac_compile"
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_compile") 2>conftest.er1
6511 grep -v '^ *+' conftest.er1 >conftest.err
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } && {
6516 test -z "$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 } && test -s conftest.$ac_objext; then
6519 ac_cv_header_stdc=yes
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_cv_header_stdc=no
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 if test $ac_cv_header_stdc = yes; then
6530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6541 $EGREP "memchr" >/dev/null 2>&1; then
6544 ac_cv_header_stdc=no
6550 if test $ac_cv_header_stdc = yes; then
6551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6552 cat >conftest.$ac_ext <<_ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562 $EGREP "free" >/dev/null 2>&1; then
6565 ac_cv_header_stdc=no
6571 if test $ac_cv_header_stdc = yes; then
6572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6573 if test "$cross_compiling" = yes; then
6576 cat >conftest.$ac_ext <<_ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6584 #if ((' ' & 0x0FF) == 0x020)
6585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6588 # define ISLOWER(c) \
6589 (('a' <= (c) && (c) <= 'i') \
6590 || ('j' <= (c) && (c) <= 'r') \
6591 || ('s' <= (c) && (c) <= 'z'))
6592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6600 for (i = 0; i < 256; i++)
6601 if (XOR (islower (i), ISLOWER (i))
6602 || toupper (i) != TOUPPER (i))
6607 rm -f conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_link") 2>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6618 { (case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623 (eval "$ac_try") 2>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6629 echo "$as_me: program exited with status $ac_status" >&5
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_cv_header_stdc=no
6636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6642 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6643 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6644 if test $ac_cv_header_stdc = yes; then
6646 cat >>confdefs.h <<\_ACEOF
6647 @%:@define STDC_HEADERS 1
6652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6662 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6663 inttypes.h stdint.h unistd.h
6665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 $ac_includes_default
6679 @%:@include <$ac_header>
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6690 grep -v '^ *+' conftest.er1 >conftest.err
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && {
6695 test -z "$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 } && test -s conftest.$ac_objext; then
6698 eval "$as_ac_Header=yes"
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6703 eval "$as_ac_Header=no"
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 ac_res=`eval echo '${'$as_ac_Header'}'`
6709 { echo "$as_me:$LINENO: result: $ac_res" >&5
6710 echo "${ECHO_T}$ac_res" >&6; }
6711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6712 cat >>confdefs.h <<_ACEOF
6713 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6722 for ac_header in dlfcn.h
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 ac_res=`eval echo '${'$as_ac_Header'}'`
6732 { echo "$as_me:$LINENO: result: $ac_res" >&5
6733 echo "${ECHO_T}$ac_res" >&6; }
6735 # Is the header compilable?
6736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6738 cat >conftest.$ac_ext <<_ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 @%:@include <$ac_header>
6747 rm -f conftest.$ac_objext
6748 if { (ac_try="$ac_compile"
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754 (eval "$ac_compile") 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && {
6761 test -z "$ac_c_werror_flag" ||
6762 test ! -s conftest.err
6763 } && test -s conftest.$ac_objext; then
6764 ac_header_compiler=yes
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 ac_header_compiler=no
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6774 echo "${ECHO_T}$ac_header_compiler" >&6; }
6776 # Is the header present?
6777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 @%:@include <$ac_header>
6787 if { (ac_try="$ac_cpp conftest.$ac_ext"
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6795 grep -v '^ *+' conftest.er1 >conftest.err
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } >/dev/null && {
6800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6803 ac_header_preproc=yes
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_header_preproc=no
6811 rm -f conftest.err conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6813 echo "${ECHO_T}$ac_header_preproc" >&6; }
6815 # So? What about this header?
6816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6822 ac_header_preproc=yes
6825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6838 @%:@@%:@ ------------------------------- @%:@@%:@
6839 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
6840 @%:@@%:@ ------------------------------- @%:@@%:@
6842 ) | sed "s/^/$as_me: WARNING: /" >&2
6845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 eval "$as_ac_Header=\$ac_header_preproc"
6852 ac_res=`eval echo '${'$as_ac_Header'}'`
6853 { echo "$as_me:$LINENO: result: $ac_res" >&5
6854 echo "${ECHO_T}$ac_res" >&6; }
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6869 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6870 (test "X$CXX" != "Xg++"))) ; then
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6876 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6877 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6878 if test -z "$CXXCPP"; then
6879 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 # Double quotes because CXXCPP needs to be expanded
6883 for CXXCPP in "$CXX -E" "/lib/cpp"
6886 for ac_cxx_preproc_warn_flag in '' yes
6888 # Use a header file that comes with gcc, so configuring glibc
6889 # with a fresh cross-compiler works.
6890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891 # <limits.h> exists even on freestanding compilers.
6892 # On the NeXT, cc -E runs the code through the compiler's parser,
6893 # not just through cpp. "Syntax error" is here to catch this case.
6894 cat >conftest.$ac_ext <<_ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6901 @%:@ include <limits.h>
6903 @%:@ include <assert.h>
6907 if { (ac_try="$ac_cpp conftest.$ac_ext"
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } >/dev/null && {
6920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6921 test ! -s conftest.err
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 # Broken: fails on valid input.
6932 rm -f conftest.err conftest.$ac_ext
6934 # OK, works on sane cases. Now check whether nonexistent headers
6935 # can be detected and how.
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 @%:@include <ac_nonexistent.h>
6944 if { (ac_try="$ac_cpp conftest.$ac_ext"
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } >/dev/null && {
6957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6958 test ! -s conftest.err
6960 # Broken: success on invalid input.
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 # Passes both tests.
6971 rm -f conftest.err conftest.$ac_ext
6974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6975 rm -f conftest.err conftest.$ac_ext
6976 if $ac_preproc_ok; then
6981 ac_cv_prog_CXXCPP=$CXXCPP
6984 CXXCPP=$ac_cv_prog_CXXCPP
6986 ac_cv_prog_CXXCPP=$CXXCPP
6988 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6989 echo "${ECHO_T}$CXXCPP" >&6; }
6991 for ac_cxx_preproc_warn_flag in '' yes
6993 # Use a header file that comes with gcc, so configuring glibc
6994 # with a fresh cross-compiler works.
6995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996 # <limits.h> exists even on freestanding compilers.
6997 # On the NeXT, cc -E runs the code through the compiler's parser,
6998 # not just through cpp. "Syntax error" is here to catch this case.
6999 cat >conftest.$ac_ext <<_ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7006 @%:@ include <limits.h>
7008 @%:@ include <assert.h>
7012 if { (ac_try="$ac_cpp conftest.$ac_ext"
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } >/dev/null && {
7025 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7026 test ! -s conftest.err
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 # Broken: fails on valid input.
7037 rm -f conftest.err conftest.$ac_ext
7039 # OK, works on sane cases. Now check whether nonexistent headers
7040 # can be detected and how.
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 @%:@include <ac_nonexistent.h>
7049 if { (ac_try="$ac_cpp conftest.$ac_ext"
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } >/dev/null && {
7062 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7063 test ! -s conftest.err
7065 # Broken: success on invalid input.
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 # Passes both tests.
7076 rm -f conftest.err conftest.$ac_ext
7079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7080 rm -f conftest.err conftest.$ac_ext
7081 if $ac_preproc_ok; then
7084 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7087 See \`config.log' for more details." >&2;}
7088 { (exit 1); exit 1; }; }
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7104 if test -n "$ac_tool_prefix"; then
7105 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
7107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_prog_F77+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -n "$F77"; then
7115 ac_cv_prog_F77="$F77" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 if test -n "$F77"; then
7136 { echo "$as_me:$LINENO: result: $F77" >&5
7137 echo "${ECHO_T}$F77" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7144 test -n "$F77" && break
7147 if test -z "$F77"; then
7149 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
7151 # Extract the first word of "$ac_prog", so it can be a program name with args.
7152 set dummy $ac_prog; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 if test -n "$ac_ct_F77"; then
7159 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_prog_ac_ct_F77="$ac_prog"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7179 if test -n "$ac_ct_F77"; then
7180 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7181 echo "${ECHO_T}$ac_ct_F77" >&6; }
7183 { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7188 test -n "$ac_ct_F77" && break
7191 if test "x$ac_ct_F77" = x; then
7194 case $cross_compiling:$ac_tool_warned in
7196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet. If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&5
7199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet. If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202 ac_tool_warned=yes ;;
7209 # Provide some information about the compiler.
7210 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7211 ac_compiler=`set X $ac_compile; echo $2`
7212 { (ac_try="$ac_compiler --version >&5"
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_compiler --version >&5") 2>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }
7222 { (ac_try="$ac_compiler -v >&5"
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228 (eval "$ac_compiler -v >&5") 2>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }
7232 { (ac_try="$ac_compiler -V >&5"
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_compiler -V >&5") 2>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }
7244 # If we don't use `.F' as extension, the preprocessor is not run on the
7245 # input file. (Note that this only needs to work for GNU compilers.)
7248 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7249 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7250 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7270 grep -v '^ *+' conftest.er1 >conftest.err
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_f77_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7290 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7291 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7293 ac_test_FFLAGS=${FFLAGS+set}
7294 ac_save_FFLAGS=$FFLAGS
7296 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7297 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7298 if test "${ac_cv_prog_f77_g+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314 (eval "$ac_compile") 2>conftest.er1
7316 grep -v '^ *+' conftest.er1 >conftest.err
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } && {
7321 test -z "$ac_f77_werror_flag" ||
7322 test ! -s conftest.err
7323 } && test -s conftest.$ac_objext; then
7324 ac_cv_prog_f77_g=yes
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7336 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7337 if test "$ac_test_FFLAGS" = set; then
7338 FFLAGS=$ac_save_FFLAGS
7339 elif test $ac_cv_prog_f77_g = yes; then
7340 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7346 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7353 G77=`test $ac_compiler_gnu = yes && echo yes`
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7362 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7364 # find the maximum length of command line arguments
7365 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7366 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7367 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 # On DJGPP, this test can blow up pretty badly due to problems in libc
7376 # (any single argument exceeding 2000 bytes causes a buffer overrun
7377 # during glob expansion). Even if it were fixed, the result of this
7378 # check would be larger than it should be.
7379 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7383 # Under GNU Hurd, this test is not required because there is
7384 # no limit to the length of command line arguments.
7385 # Libtool will interpret -1 as no limit whatsoever
7386 lt_cv_sys_max_cmd_len=-1;
7390 # On Win9x/ME, this test blows up -- it succeeds, but takes
7391 # about 5 minutes as the teststring grows exponentially.
7392 # Worse, since 9x/ME are not pre-emptively multitasking,
7393 # you end up with a "frozen" computer, even though with patience
7394 # the test eventually succeeds (with a max line length of 256k).
7395 # Instead, let's just punt: use the minimum linelength reported by
7396 # all of the supported platforms: 8192 (on NT/2K/XP).
7397 lt_cv_sys_max_cmd_len=8192;
7401 # On AmigaOS with pdksh, this test takes hours, literally.
7402 # So we just punt and use a minimum line length of 8192.
7403 lt_cv_sys_max_cmd_len=8192;
7406 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7407 # This has been around since 386BSD, at least. Likely further.
7408 if test -x /sbin/sysctl; then
7409 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7410 elif test -x /usr/sbin/sysctl; then
7411 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7413 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7415 # And add a safety zone
7416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7421 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7422 lt_cv_sys_max_cmd_len=196608
7426 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7427 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7428 # nice to cause kernel panics so lets avoid the loop below.
7429 # First set a reasonable default.
7430 lt_cv_sys_max_cmd_len=16384
7432 if test -x /sbin/sysconfig; then
7433 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7434 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7439 lt_cv_sys_max_cmd_len=102400
7441 sysv5* | sco5v6* | sysv4.2uw2*)
7442 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7443 if test -n "$kargmax"; then
7444 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7446 lt_cv_sys_max_cmd_len=32768
7450 # If test is not a shell built-in, we'll probably end up computing a
7451 # maximum length that is only half of the actual maximum length, but
7453 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7454 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7455 = "XX$teststring") >/dev/null 2>&1 &&
7456 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7457 lt_cv_sys_max_cmd_len=$new_result &&
7458 test $i != 17 # 1/2 MB should be enough
7461 teststring=$teststring$teststring
7464 # Add a significant safety factor because C++ compilers can tack on massive
7465 # amounts of additional arguments before passing them to the linker.
7466 # It appears as though 1/2 is a usable value.
7467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7473 if test -n $lt_cv_sys_max_cmd_len ; then
7474 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7475 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7477 { echo "$as_me:$LINENO: result: none" >&5
7478 echo "${ECHO_T}none" >&6; }
7484 # Check for command to grab the raw symbol name followed by C symbol from nm.
7485 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7486 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7487 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 # These are sane defaults that work on at least a few old systems.
7492 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7494 # Character class describing NM global symbol codes.
7495 symcode='[BCDEGRST]'
7497 # Regexp to match symbols that can be accessed directly from C.
7498 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7500 # Transform an extracted symbol line into a proper C declaration
7501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7503 # Transform an extracted symbol line into symbol name and symbol address
7504 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'"
7506 # Define system-specific variables.
7511 cygwin* | mingw* | pw32*)
7512 symcode='[ABCDGISTW]'
7514 hpux*) # Its linker distinguishes data from code symbols
7515 if test "$host_cpu" = ia64; then
7516 symcode='[ABCDEGRST]'
7518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519 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'"
7521 linux* | k*bsd*-gnu)
7522 if test "$host_cpu" = ia64; then
7523 symcode='[ABCDGIRSTW]'
7524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7525 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'"
7529 symcode='[BCDEGRST]'
7532 symcode='[BCDEGQRST]'
7543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7551 # Handle CRLF in mingw tool chain
7555 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7559 # If we're using GNU nm, then use its standard symbol codes.
7560 case `$NM -V 2>&1` in
7561 *GNU* | *'with BFD'*)
7562 symcode='[ABCDGIRSTW]' ;;
7565 # Try without a prefix undercore, then with it.
7566 for ac_symprfx in "" "_"; do
7568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7569 symxfrm="\\1 $ac_symprfx\\2 \\2"
7571 # Write the raw and C identifiers.
7572 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7574 # Check to see that the pipe works correctly.
7578 cat > conftest.$ac_ext <<EOF
7583 void nm_test_func(){}
7587 int main(){nm_test_var='a';nm_test_func();return(0);}
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; then
7595 # Now try to grab the symbols.
7597 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7598 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && test -s "$nlist"; then
7602 # Try sorting and uniquifying the output.
7603 if sort "$nlist" | uniq > "$nlist"T; then
7604 mv -f "$nlist"T "$nlist"
7609 # Make sure that we snagged all the symbols we need.
7610 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7611 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7612 cat <<EOF > conftest.$ac_ext
7618 # Now generate the symbol file.
7619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7621 cat <<EOF >> conftest.$ac_ext
7622 #if defined (__STDC__) && __STDC__
7623 # define lt_ptr_t void *
7625 # define lt_ptr_t char *
7629 /* The mapping between symbol names and symbols. */
7634 lt_preloaded_symbols[] =
7637 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7638 cat <<\EOF >> conftest.$ac_ext
7646 # Now try linking the two files.
7647 mv conftest.$ac_objext conftstm.$ac_objext
7648 lt_save_LIBS="$LIBS"
7649 lt_save_CFLAGS="$CFLAGS"
7650 LIBS="conftstm.$ac_objext"
7651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7653 (eval $ac_link) 2>&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7659 LIBS="$lt_save_LIBS"
7660 CFLAGS="$lt_save_CFLAGS"
7662 echo "cannot find nm_test_func in $nlist" >&5
7665 echo "cannot find nm_test_var in $nlist" >&5
7668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7671 echo "$progname: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7674 rm -f conftest* conftst*
7676 # Do not use the global_symbol_pipe unless it works.
7677 if test "$pipe_works" = yes; then
7680 lt_cv_sys_global_symbol_pipe=
7686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7687 lt_cv_sys_global_symbol_to_cdecl=
7689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7690 { echo "$as_me:$LINENO: result: failed" >&5
7691 echo "${ECHO_T}failed" >&6; }
7693 { echo "$as_me:$LINENO: result: ok" >&5
7694 echo "${ECHO_T}ok" >&6; }
7697 { echo "$as_me:$LINENO: checking for objdir" >&5
7698 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7699 if test "${lt_cv_objdir+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 rm -f .libs 2>/dev/null
7703 mkdir .libs 2>/dev/null
7704 if test -d .libs; then
7707 # MS-DOS does not allow filenames that begin with a dot.
7710 rmdir .libs 2>/dev/null
7712 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7713 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7714 objdir=$lt_cv_objdir
7722 # AIX sometimes has problems with the GCC collect2 program. For some
7723 # reason, if we set the COLLECT_NAMES environment variable, the problems
7724 # vanish in a puff of smoke.
7725 if test "X${COLLECT_NAMES+set}" != Xset; then
7727 export COLLECT_NAMES
7732 # Sed substitution that helps us do robust quoting. It backslashifies
7733 # metacharacters that are still active within double-quoted strings.
7734 Xsed='sed -e 1s/^X//'
7735 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7737 # Same as above, but do not quote variable references.
7738 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7740 # Sed substitution to delay expansion of an escaped shell variable in a
7741 # double_quote_subst'ed string.
7742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7744 # Sed substitution to avoid accidental globbing in evaled expressions
7745 no_glob_subst='s/\*/\\\*/g'
7751 default_ofile=libtool
7752 can_build_shared=yes
7754 # All known linkers require a `.a' archive for static linking (except MSVC,
7755 # which needs '.lib').
7757 ltmain="$ac_aux_dir/ltmain.sh"
7758 ofile="$default_ofile"
7759 with_gnu_ld="$lt_cv_prog_gnu_ld"
7761 if test -n "$ac_tool_prefix"; then
7762 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}ar; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_prog_AR+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 if test -n "$AR"; then
7770 ac_cv_prog_AR="$AR" # Let the user override the test.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_prog_AR="${ac_tool_prefix}ar"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 if test -n "$AR"; then
7791 { echo "$as_me:$LINENO: result: $AR" >&5
7792 echo "${ECHO_T}$AR" >&6; }
7794 { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7800 if test -z "$ac_cv_prog_AR"; then
7802 # Extract the first word of "ar", so it can be a program name with args.
7803 set dummy ar; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 if test -n "$ac_ct_AR"; then
7810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_ac_ct_AR="ar"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7830 if test -n "$ac_ct_AR"; then
7831 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7832 echo "${ECHO_T}$ac_ct_AR" >&6; }
7834 { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7838 if test "x$ac_ct_AR" = x; then
7841 case $cross_compiling:$ac_tool_warned in
7843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7844 whose name does not start with the host triplet. If you think this
7845 configuration is useful to you, please write to autoconf@gnu.org." >&5
7846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7847 whose name does not start with the host triplet. If you think this
7848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7849 ac_tool_warned=yes ;;
7857 if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862 if test "${ac_cv_prog_RANLIB+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 if test -n "$RANLIB"; then
7866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 RANLIB=$ac_cv_prog_RANLIB
7886 if test -n "$RANLIB"; then
7887 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7888 echo "${ECHO_T}$RANLIB" >&6; }
7890 { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7896 if test -z "$ac_cv_prog_RANLIB"; then
7897 ac_ct_RANLIB=$RANLIB
7898 # Extract the first word of "ranlib", so it can be a program name with args.
7899 set dummy ranlib; ac_word=$2
7900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 if test -n "$ac_ct_RANLIB"; then
7906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_ac_ct_RANLIB="ranlib"
7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7926 if test -n "$ac_ct_RANLIB"; then
7927 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7928 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7930 { echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6; }
7934 if test "x$ac_ct_RANLIB" = x; then
7937 case $cross_compiling:$ac_tool_warned in
7939 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7940 whose name does not start with the host triplet. If you think this
7941 configuration is useful to you, please write to autoconf@gnu.org." >&5
7942 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7943 whose name does not start with the host triplet. If you think this
7944 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7945 ac_tool_warned=yes ;;
7947 RANLIB=$ac_ct_RANLIB
7950 RANLIB="$ac_cv_prog_RANLIB"
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}strip; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_prog_STRIP+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 if test -n "$STRIP"; then
7962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 STRIP=$ac_cv_prog_STRIP
7982 if test -n "$STRIP"; then
7983 { echo "$as_me:$LINENO: result: $STRIP" >&5
7984 echo "${ECHO_T}$STRIP" >&6; }
7986 { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7992 if test -z "$ac_cv_prog_STRIP"; then
7994 # Extract the first word of "strip", so it can be a program name with args.
7995 set dummy strip; ac_word=$2
7996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 if test -n "$ac_ct_STRIP"; then
8002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_ac_ct_STRIP="strip"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8022 if test -n "$ac_ct_STRIP"; then
8023 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8024 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8026 { echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6; }
8030 if test "x$ac_ct_STRIP" = x; then
8033 case $cross_compiling:$ac_tool_warned in
8035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8036 whose name does not start with the host triplet. If you think this
8037 configuration is useful to you, please write to autoconf@gnu.org." >&5
8038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8039 whose name does not start with the host triplet. If you think this
8040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8041 ac_tool_warned=yes ;;
8046 STRIP="$ac_cv_prog_STRIP"
8051 old_CFLAGS="$CFLAGS"
8053 # Set sane defaults for various variables
8054 test -z "$AR" && AR=ar
8055 test -z "$AR_FLAGS" && AR_FLAGS=cru
8056 test -z "$AS" && AS=as
8057 test -z "$CC" && CC=cc
8058 test -z "$LTCC" && LTCC=$CC
8059 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8060 test -z "$DLLTOOL" && DLLTOOL=dlltool
8061 test -z "$LD" && LD=ld
8062 test -z "$LN_S" && LN_S="ln -s"
8063 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8064 test -z "$NM" && NM=nm
8065 test -z "$SED" && SED=sed
8066 test -z "$OBJDUMP" && OBJDUMP=objdump
8067 test -z "$RANLIB" && RANLIB=:
8068 test -z "$STRIP" && STRIP=:
8069 test -z "$ac_objext" && ac_objext=o
8071 # Determine commands to create old-style static archives.
8072 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8073 old_postinstall_cmds='chmod 644 $oldlib'
8074 old_postuninstall_cmds=
8076 if test -n "$RANLIB"; then
8079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8085 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8088 for cc_temp in $compiler""; do
8090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8099 # Only perform the check for file, if the check method requires it
8100 case $deplibs_check_method in
8102 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8103 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8104 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8113 lt_save_MAGIC_CMD="$MAGIC_CMD"
8114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8116 for ac_dir in $ac_dummy; do
8118 test -z "$ac_dir" && ac_dir=.
8119 if test -f $ac_dir/${ac_tool_prefix}file; then
8120 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8121 if test -n "$file_magic_test_file"; then
8122 case $deplibs_check_method in
8124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8127 $EGREP "$file_magic_regex" > /dev/null; then
8132 *** Warning: the command libtool uses to detect shared libraries,
8133 *** $file_magic_cmd, produces output that libtool cannot recognize.
8134 *** The result is that libtool may fail to recognize shared libraries
8135 *** as such. This will affect the creation of libtool libraries that
8136 *** depend on shared libraries, but programs linked with such libtool
8137 *** libraries will work regardless of this problem. Nevertheless, you
8138 *** may want to report the problem to your system manager and/or to
8139 *** bug-libtool@gnu.org
8149 MAGIC_CMD="$lt_save_MAGIC_CMD"
8154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8155 if test -n "$MAGIC_CMD"; then
8156 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8157 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8159 { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8163 if test -z "$lt_cv_path_MAGIC_CMD"; then
8164 if test -n "$ac_tool_prefix"; then
8165 { echo "$as_me:$LINENO: checking for file" >&5
8166 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 lt_save_MAGIC_CMD="$MAGIC_CMD"
8176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178 for ac_dir in $ac_dummy; do
8180 test -z "$ac_dir" && ac_dir=.
8181 if test -f $ac_dir/file; then
8182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8183 if test -n "$file_magic_test_file"; then
8184 case $deplibs_check_method in
8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189 $EGREP "$file_magic_regex" > /dev/null; then
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such. This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem. Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8211 MAGIC_CMD="$lt_save_MAGIC_CMD"
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8219 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8221 { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8237 # Check whether --enable-libtool-lock was given.
8238 if test "${enable_libtool_lock+set}" = set; then
8239 enableval=$enable_libtool_lock;
8242 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8245 # Check whether --with-pic was given.
8246 if test "${with_pic+set}" = set; then
8247 withval=$with_pic; pic_mode="$withval"
8252 test -z "$pic_mode" && pic_mode=default
8254 # Use C for the default configuration in the libtool script
8258 ac_cpp='$CPP $CPPFLAGS'
8259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264 # Source file extension for C test sources.
8267 # Object file extension for compiled C test sources.
8271 # Code to be used in simple compile tests
8272 lt_simple_compile_test_code="int some_variable = 0;\n"
8274 # Code to be used in simple link tests
8275 lt_simple_link_test_code='int main(){return(0);}\n'
8278 # If no C compiler was specified, use CC.
8281 # If no C compiler flags were specified, use CFLAGS.
8282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8284 # Allow CC to be a program name with arguments.
8288 # save warnings/boilerplate of simple test code
8289 ac_outfile=conftest.$ac_objext
8290 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8291 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8292 _lt_compiler_boilerplate=`cat conftest.err`
8295 ac_outfile=conftest.$ac_objext
8296 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8297 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8298 _lt_linker_boilerplate=`cat conftest.err`
8303 ## There is no encapsulation within the following macros, do not change
8304 ## the running order or otherwise move them around unless you know exactly
8305 ## what you are doing...
8307 lt_prog_compiler_no_builtin_flag=
8309 if test "$GCC" = yes; then
8310 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8313 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8314 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8315 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 lt_cv_prog_compiler_rtti_exceptions=no
8319 ac_outfile=conftest.$ac_objext
8320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8321 lt_compiler_flag="-fno-rtti -fno-exceptions"
8322 # Insert the option either (1) after the last *FLAGS variable, or
8323 # (2) before a word containing "conftest.", or (3) at the end.
8324 # Note that $ac_compile itself does not contain backslashes and begins
8325 # with a dollar sign (not a hyphen), so the echo should work correctly.
8326 # The option is referenced via a variable to avoid confusing sed.
8327 lt_compile=`echo "$ac_compile" | $SED \
8328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8330 -e 's:$: $lt_compiler_flag:'`
8331 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8332 (eval "$lt_compile" 2>conftest.err)
8334 cat conftest.err >&5
8335 echo "$as_me:__oline__: \$? = $ac_status" >&5
8336 if (exit $ac_status) && test -s "$ac_outfile"; then
8337 # The compiler can only warn and ignore the option if not recognized
8338 # So say no if there are warnings other than the usual output.
8339 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8342 lt_cv_prog_compiler_rtti_exceptions=yes
8348 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8349 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8351 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8352 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8359 lt_prog_compiler_wl=
8360 lt_prog_compiler_pic=
8361 lt_prog_compiler_static=
8363 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8364 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8366 if test "$GCC" = yes; then
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_static='-static'
8372 # All AIX code is PIC.
8373 if test "$host_cpu" = ia64; then
8374 # AIX 5 now supports IA64 processor
8375 lt_prog_compiler_static='-Bstatic'
8380 # FIXME: we need at least 68020 code to build shared libraries, but
8381 # adding the `-m68020' flag to GCC prevents building anything better,
8383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8386 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8387 # PIC is the default for these OSes.
8390 mingw* | pw32* | os2*)
8391 # This hack is so that the source file can tell whether it is being
8392 # built for inclusion in a dll (and should export symbols for example).
8393 lt_prog_compiler_pic='-DDLL_EXPORT'
8396 darwin* | rhapsody*)
8397 # PIC is the default on this platform
8398 # Common symbols not allowed in MH_DYLIB files
8399 lt_prog_compiler_pic='-fno-common'
8403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8404 # Instead, we relocate shared libraries at runtime.
8408 # Just because we use GCC doesn't mean we suddenly get shared libraries
8409 # on systems that don't support them.
8410 lt_prog_compiler_can_build_shared=no
8415 if test -d /usr/nec; then
8416 lt_prog_compiler_pic=-Kconform_pic
8421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8428 lt_prog_compiler_pic='-fPIC'
8434 lt_prog_compiler_pic='-fPIC'
8438 # PORTME Check for flag to pass linker flags through the system compiler.
8441 lt_prog_compiler_wl='-Wl,'
8442 if test "$host_cpu" = ia64; then
8443 # AIX 5 now supports IA64 processor
8444 lt_prog_compiler_static='-Bstatic'
8446 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8450 # PIC is the default on this platform
8451 # Common symbols not allowed in MH_DYLIB files
8452 case $cc_basename in
8454 lt_prog_compiler_pic='-qnocommon'
8455 lt_prog_compiler_wl='-Wl,'
8460 mingw* | pw32* | os2*)
8461 # This hack is so that the source file can tell whether it is being
8462 # built for inclusion in a dll (and should export symbols for example).
8463 lt_prog_compiler_pic='-DDLL_EXPORT'
8466 hpux9* | hpux10* | hpux11*)
8467 lt_prog_compiler_wl='-Wl,'
8468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8475 lt_prog_compiler_pic='+Z'
8478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8479 lt_prog_compiler_static='${wl}-a ${wl}archive'
8482 irix5* | irix6* | nonstopux*)
8483 lt_prog_compiler_wl='-Wl,'
8484 # PIC (with -KPIC) is the default.
8485 lt_prog_compiler_static='-non_shared'
8489 lt_prog_compiler_pic='-KPIC'
8490 lt_prog_compiler_static='-Bstatic'
8493 linux* | k*bsd*-gnu)
8494 case $cc_basename in
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_pic='-KPIC'
8498 lt_prog_compiler_static='-static'
8500 pgcc* | pgf77* | pgf90* | pgf95*)
8501 # Portland Group compilers (*not* the Pentium gcc compiler,
8502 # which looks to be a dead project)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-fpic'
8505 lt_prog_compiler_static='-Bstatic'
8508 lt_prog_compiler_wl='-Wl,'
8509 # All Alpha code is PIC.
8510 lt_prog_compiler_static='-non_shared'
8515 osf3* | osf4* | osf5*)
8516 lt_prog_compiler_wl='-Wl,'
8517 # All OSF/1 code is PIC.
8518 lt_prog_compiler_static='-non_shared'
8522 lt_prog_compiler_pic='-KPIC'
8523 lt_prog_compiler_static='-Bstatic'
8524 case $cc_basename in
8526 lt_prog_compiler_wl='-Qoption ld ';;
8528 lt_prog_compiler_wl='-Wl,';;
8533 lt_prog_compiler_wl='-Qoption ld '
8534 lt_prog_compiler_pic='-PIC'
8535 lt_prog_compiler_static='-Bstatic'
8538 sysv4 | sysv4.2uw2* | sysv4.3*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-KPIC'
8541 lt_prog_compiler_static='-Bstatic'
8545 if test -d /usr/nec ;then
8546 lt_prog_compiler_pic='-Kconform_pic'
8547 lt_prog_compiler_static='-Bstatic'
8551 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-KPIC'
8554 lt_prog_compiler_static='-Bstatic'
8558 lt_prog_compiler_wl='-Wl,'
8559 lt_prog_compiler_can_build_shared=no
8563 lt_prog_compiler_pic='-pic'
8564 lt_prog_compiler_static='-Bstatic'
8568 lt_prog_compiler_can_build_shared=no
8573 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8574 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8577 # Check to make sure the PIC flag actually works.
8579 if test -n "$lt_prog_compiler_pic"; then
8581 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8582 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8583 if test "${lt_prog_compiler_pic_works+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 lt_prog_compiler_pic_works=no
8587 ac_outfile=conftest.$ac_objext
8588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8589 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8590 # Insert the option either (1) after the last *FLAGS variable, or
8591 # (2) before a word containing "conftest.", or (3) at the end.
8592 # Note that $ac_compile itself does not contain backslashes and begins
8593 # with a dollar sign (not a hyphen), so the echo should work correctly.
8594 # The option is referenced via a variable to avoid confusing sed.
8595 lt_compile=`echo "$ac_compile" | $SED \
8596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598 -e 's:$: $lt_compiler_flag:'`
8599 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8600 (eval "$lt_compile" 2>conftest.err)
8602 cat conftest.err >&5
8603 echo "$as_me:__oline__: \$? = $ac_status" >&5
8604 if (exit $ac_status) && test -s "$ac_outfile"; then
8605 # The compiler can only warn and ignore the option if not recognized
8606 # So say no if there are warnings other than the usual output.
8607 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8610 lt_prog_compiler_pic_works=yes
8616 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8617 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8619 if test x"$lt_prog_compiler_pic_works" = xyes; then
8620 case $lt_prog_compiler_pic in
8622 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8625 lt_prog_compiler_pic=
8626 lt_prog_compiler_can_build_shared=no
8631 # For platforms which do not support PIC, -DPIC is meaningless:
8633 lt_prog_compiler_pic=
8636 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8641 # Check to make sure the static flag actually works.
8643 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8644 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8645 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8646 if test "${lt_prog_compiler_static_works+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 lt_prog_compiler_static_works=no
8650 save_LDFLAGS="$LDFLAGS"
8651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8652 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8654 # The linker can only warn and ignore the option if not recognized
8655 # So say no if there are warnings
8656 if test -s conftest.err; then
8657 # Append any errors to the config.log.
8658 cat conftest.err 1>&5
8659 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8661 if diff conftest.exp conftest.er2 >/dev/null; then
8662 lt_prog_compiler_static_works=yes
8665 lt_prog_compiler_static_works=yes
8669 LDFLAGS="$save_LDFLAGS"
8672 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8673 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8675 if test x"$lt_prog_compiler_static_works" = xyes; then
8678 lt_prog_compiler_static=
8682 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8683 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8684 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 lt_cv_prog_compiler_c_o=no
8688 $rm -r conftest 2>/dev/null
8692 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8694 lt_compiler_flag="-o out/conftest2.$ac_objext"
8695 # Insert the option either (1) after the last *FLAGS variable, or
8696 # (2) before a word containing "conftest.", or (3) at the end.
8697 # Note that $ac_compile itself does not contain backslashes and begins
8698 # with a dollar sign (not a hyphen), so the echo should work correctly.
8699 lt_compile=`echo "$ac_compile" | $SED \
8700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8702 -e 's:$: $lt_compiler_flag:'`
8703 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8704 (eval "$lt_compile" 2>out/conftest.err)
8706 cat out/conftest.err >&5
8707 echo "$as_me:__oline__: \$? = $ac_status" >&5
8708 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8710 # The compiler can only warn and ignore the option if not recognized
8711 # So say no if there are warnings
8712 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8713 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8714 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8715 lt_cv_prog_compiler_c_o=yes
8720 # SGI C++ compiler will create directory out/ii_files/ for
8721 # template instantiation
8722 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8723 $rm out/* && rmdir out
8729 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8730 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8733 hard_links="nottested"
8734 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8735 # do not overwrite the value of need_locks provided by the user
8736 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8737 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8742 ln conftest.a conftest.b 2>&5 || hard_links=no
8743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8744 { echo "$as_me:$LINENO: result: $hard_links" >&5
8745 echo "${ECHO_T}$hard_links" >&6; }
8746 if test "$hard_links" = no; then
8747 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8748 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8755 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8756 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8759 allow_undefined_flag=
8760 enable_shared_with_static_runtimes=no
8762 archive_expsym_cmds=
8763 old_archive_From_new_cmds=
8764 old_archive_from_expsyms_cmds=
8765 export_dynamic_flag_spec=
8766 whole_archive_flag_spec=
8767 thread_safe_flag_spec=
8768 hardcode_libdir_flag_spec=
8769 hardcode_libdir_flag_spec_ld=
8770 hardcode_libdir_separator=
8773 hardcode_shlibpath_var=unsupported
8774 link_all_deplibs=unknown
8775 hardcode_automatic=no
8778 always_export_symbols=no
8779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8780 # include_expsyms should be a list of space-separated symbols to be *always*
8781 # included in the symbol list
8783 # exclude_expsyms can be an extended regexp of symbols to exclude
8784 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8785 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8786 # as well as any symbol that contains `d'.
8787 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8788 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8789 # platforms (ab)use it in PIC code, but their linkers get confused if
8790 # the symbol is explicitly referenced. Since portable code cannot
8791 # rely on this symbol name, it's probably fine to never include it in
8792 # preloaded symbol tables.
8793 extract_expsyms_cmds=
8794 # Just being paranoid about ensuring that cc_basename is set.
8795 for cc_temp in $compiler""; do
8797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8803 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8806 cygwin* | mingw* | pw32*)
8807 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8808 # When not using gcc, we currently assume that we are using
8809 # Microsoft Visual C++.
8810 if test "$GCC" != yes; then
8815 # we just hope/assume this is gcc and not c89 (= MSVC++)
8824 if test "$with_gnu_ld" = yes; then
8825 # If archive_cmds runs LD, not CC, wlarc should be empty
8828 # Set some defaults for GNU ld with shared library support. These
8829 # are reset later if shared libraries are not supported. Putting them
8830 # here allows them to be overridden if necessary.
8831 runpath_var=LD_RUN_PATH
8832 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8833 export_dynamic_flag_spec='${wl}--export-dynamic'
8834 # ancient GNU ld didn't support --whole-archive et. al.
8835 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8836 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8838 whole_archive_flag_spec=
8840 supports_anon_versioning=no
8841 case `$LD -v 2>/dev/null` in
8842 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8843 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8844 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8845 *\ 2.11.*) ;; # other 2.11 versions
8846 *) supports_anon_versioning=yes ;;
8849 # See if GNU ld supports shared libraries.
8851 aix3* | aix4* | aix5*)
8852 # On AIX/PPC, the GNU linker is very broken
8853 if test "$host_cpu" != ia64; then
8857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8858 *** to be unable to reliably create shared libraries on AIX.
8859 *** Therefore, libtool is disabling shared libraries support. If you
8860 *** really care for shared libraries, you may want to modify your PATH
8861 *** so that a non-GNU linker is found, and then restart.
8868 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)'
8869 hardcode_libdir_flag_spec='-L$libdir'
8870 hardcode_minus_L=yes
8872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8873 # that the semantics of dynamic libraries on AmigaOS, at least up
8874 # to version 4, is to share data among multiple programs linked
8875 # with the same dynamic library. Since this doesn't match the
8876 # behavior of shared libraries on other platforms, we can't use
8882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8883 allow_undefined_flag=unsupported
8884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8885 # support --undefined. This deserves some investigation. FIXME
8886 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 cygwin* | mingw* | pw32*)
8893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8894 # as there is no search path for DLLs.
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 allow_undefined_flag=unsupported
8897 always_export_symbols=no
8898 enable_shared_with_static_runtimes=yes
8899 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8901 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8903 # If the export-symbols file already is a .def file (1st line
8904 # is EXPORTS), use it as is; otherwise, prepend...
8905 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8906 cp $export_symbols $output_objdir/$soname.def;
8908 echo EXPORTS > $output_objdir/$soname.def;
8909 cat $export_symbols >> $output_objdir/$soname.def;
8911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8919 hardcode_shlibpath_var=no
8920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8921 export_dynamic_flag_spec='${wl}-E'
8922 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8923 # Instead, shared libraries are loaded at an image base (0x10000000 by
8924 # default) and relocated if they conflict, which is a slow very memory
8925 # consuming and fragmenting process. To avoid this, we pick a random,
8926 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8927 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8928 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8929 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'
8932 linux* | k*bsd*-gnu)
8933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8935 case $cc_basename,$host_cpu in
8936 pgcc*) # Portland Group C compiler
8937 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'
8938 tmp_addflag=' $pic_flag'
8940 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8941 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'
8942 tmp_addflag=' $pic_flag -Mnomain' ;;
8943 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8944 tmp_addflag=' -i_dynamic' ;;
8945 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8946 tmp_addflag=' -i_dynamic -nofor_main' ;;
8947 ifc* | ifort*) # Intel Fortran compiler
8948 tmp_addflag=' -nofor_main' ;;
8950 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 if test $supports_anon_versioning = yes; then
8953 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8955 $echo "local: *; };" >> $output_objdir/$libname.ver~
8956 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8964 netbsd* | netbsdelf*-gnu)
8965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8975 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8980 *** create shared libraries on Solaris systems. Therefore, libtool
8981 *** is disabling shared libraries support. We urge you to upgrade GNU
8982 *** binutils to release 2.9.1 or newer. Another option is to modify
8983 *** your PATH or compiler configuration so that the native linker is
8984 *** used, and then restart.
8987 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8996 case `$LD -v 2>&1` in
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9002 *** reliably create shared libraries on SCO systems. Therefore, libtool
9003 *** is disabling shared libraries support. We urge you to upgrade GNU
9004 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9005 *** your PATH or compiler configuration so that the native linker is
9006 *** used, and then restart.
9011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9012 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9014 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9023 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 hardcode_shlibpath_var=no
9030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 if test "$ld_shlibs" = no; then
9041 hardcode_libdir_flag_spec=
9042 export_dynamic_flag_spec=
9043 whole_archive_flag_spec=
9046 # PORTME fill in a description of your system's linker (not GNU ld)
9049 allow_undefined_flag=unsupported
9050 always_export_symbols=yes
9051 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'
9052 # Note: this linker hardcodes the directories in LIBPATH if there
9053 # are no directories specified by -L.
9054 hardcode_minus_L=yes
9055 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9056 # Neither direct hardcoding nor static linking is supported with a
9058 hardcode_direct=unsupported
9063 if test "$host_cpu" = ia64; then
9064 # On IA64, the linker does run time linking by default, so we don't
9065 # have to do anything special.
9066 aix_use_runtimelinking=no
9067 exp_sym_flag='-Bexport'
9070 # If we're using GNU nm, then we don't want the "-C" option.
9071 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9072 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9073 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'
9075 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'
9077 aix_use_runtimelinking=no
9079 # Test if we are trying to use run time linking or normal
9080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9081 # need to do runtime linking.
9082 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9083 for ld_flag in $LDFLAGS; do
9084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9085 aix_use_runtimelinking=yes
9092 exp_sym_flag='-bexport'
9093 no_entry_flag='-bnoentry'
9096 # When large executables or shared objects are built, AIX ld can
9097 # have problems creating the table of contents. If linking a library
9098 # or program results in "error TOC overflow" add -mminimal-toc to
9099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9104 hardcode_libdir_separator=':'
9105 link_all_deplibs=yes
9107 if test "$GCC" = yes; then
9108 case $host_os in aix4.[012]|aix4.[012].*)
9109 # We only want to do this on AIX 4.2 and lower, the check
9110 # below for broken collect2 doesn't work under 4.3+
9111 collect2name=`${CC} -print-prog-name=collect2`
9112 if test -f "$collect2name" && \
9113 strings "$collect2name" | grep resolve_lib_name >/dev/null
9115 # We have reworked collect2
9118 # We have old collect2
9119 hardcode_direct=unsupported
9120 # It fails to find uninstalled libraries when the uninstalled
9121 # path is not listed in the libpath. Setting hardcode_minus_L
9122 # to unsupported forces relinking
9123 hardcode_minus_L=yes
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 hardcode_libdir_separator=
9129 shared_flag='-shared'
9130 if test "$aix_use_runtimelinking" = yes; then
9131 shared_flag="$shared_flag "'${wl}-G'
9135 if test "$host_cpu" = ia64; then
9136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9137 # chokes on -Wl,-G. The following line is correct:
9140 if test "$aix_use_runtimelinking" = yes; then
9141 shared_flag='${wl}-G'
9143 shared_flag='${wl}-bM:SRE'
9148 # It seems that -bexpall does not export symbols beginning with
9149 # underscore (_), so it is better to generate a list of symbols to export.
9150 always_export_symbols=yes
9151 if test "$aix_use_runtimelinking" = yes; then
9152 # Warning - without using the other runtime loading flags (-brtl),
9153 # -berok will link without error, but may produce a broken library.
9154 allow_undefined_flag='-berok'
9155 # Determine the default libpath from the value encoded in an empty executable.
9156 cat >conftest.$ac_ext <<_ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_link") 2>conftest.er1
9180 grep -v '^ *+' conftest.er1 >conftest.err
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest$ac_exeext &&
9188 $as_test_x conftest$ac_exeext; then
9190 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9192 # Check for a 64-bit object if we didn't find anything.
9193 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; }
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9203 conftest$ac_exeext conftest.$ac_ext
9204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9207 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"
9209 if test "$host_cpu" = ia64; then
9210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9211 allow_undefined_flag="-z nodefs"
9212 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"
9214 # Determine the default libpath from the value encoded in an empty executable.
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9230 rm -f conftest.$ac_objext conftest$ac_exeext
9231 if { (ac_try="$ac_link"
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_link") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest$ac_exeext &&
9247 $as_test_x conftest$ac_exeext; then
9249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9251 # Check for a 64-bit object if we didn't find anything.
9252 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; }
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9262 conftest$ac_exeext conftest.$ac_ext
9263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9265 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9266 # Warning - without using the other run time loading flags,
9267 # -berok will link without error, but may produce a broken library.
9268 no_undefined_flag=' ${wl}-bernotok'
9269 allow_undefined_flag=' ${wl}-berok'
9270 # Exported symbols can be pulled into shared objects from archives
9271 whole_archive_flag_spec='$convenience'
9272 archive_cmds_need_lc=yes
9273 # This is similar to how AIX traditionally builds its shared libraries.
9274 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'
9280 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)'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 # see comment about different semantics on the GNU ld section
9288 export_dynamic_flag_spec=-rdynamic
9291 cygwin* | mingw* | pw32*)
9292 # When not using gcc, we currently assume that we are using
9293 # Microsoft Visual C++.
9294 # hardcode_libdir_flag_spec is actually meaningless, as there is
9295 # no search path for DLLs.
9296 hardcode_libdir_flag_spec=' '
9297 allow_undefined_flag=unsupported
9298 # Tell ltmain to make .lib files, not .a files.
9300 # Tell ltmain to make .dll files, not .so files.
9302 # FIXME: Setting linknames here is a bad hack.
9303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9304 # The linker will automatically build a .lib file if we build a DLL.
9305 old_archive_From_new_cmds='true'
9306 # FIXME: Should let the user specify the lib program.
9307 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9308 fix_srcfile_path='`cygpath -w "$srcfile"`'
9309 enable_shared_with_static_runtimes=yes
9312 darwin* | rhapsody*)
9314 rhapsody* | darwin1.[012])
9315 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9318 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9319 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9321 case ${MACOSX_DEPLOYMENT_TARGET} in
9323 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9326 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9332 archive_cmds_need_lc=no
9334 hardcode_automatic=yes
9335 hardcode_shlibpath_var=unsupported
9336 whole_archive_flag_spec=''
9337 link_all_deplibs=yes
9338 if test "$GCC" = yes ; then
9339 output_verbose_link_cmd='echo'
9340 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9341 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9343 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}'
9344 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}'
9346 case $cc_basename in
9348 output_verbose_link_cmd='echo'
9349 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9350 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9351 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9352 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}'
9353 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}'
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_shlibpath_var=no
9372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9373 # support. Future versions do this automatically, but an explicit c++rt0.o
9374 # does not break anything, and helps significantly (at the cost of a little
9377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9378 hardcode_libdir_flag_spec='-R$libdir'
9380 hardcode_shlibpath_var=no
9383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_minus_L=yes
9388 hardcode_shlibpath_var=no
9391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9392 freebsd* | dragonfly*)
9393 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9394 hardcode_libdir_flag_spec='-R$libdir'
9396 hardcode_shlibpath_var=no
9400 if test "$GCC" = yes; then
9401 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'
9403 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'
9405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406 hardcode_libdir_separator=:
9409 # hardcode_minus_L: Not really in the search PATH,
9410 # but as the default location of the library.
9411 hardcode_minus_L=yes
9412 export_dynamic_flag_spec='${wl}-E'
9416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9417 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9421 if test "$with_gnu_ld" = no; then
9422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9423 hardcode_libdir_separator=:
9426 export_dynamic_flag_spec='${wl}-E'
9428 # hardcode_minus_L: Not really in the search PATH,
9429 # but as the default location of the library.
9430 hardcode_minus_L=yes
9435 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9438 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460 if test "$with_gnu_ld" = no; then
9461 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9462 hardcode_libdir_separator=:
9466 hardcode_libdir_flag_spec_ld='+b $libdir'
9468 hardcode_shlibpath_var=no
9472 export_dynamic_flag_spec='${wl}-E'
9474 # hardcode_minus_L: Not really in the search PATH,
9475 # but as the default location of the library.
9476 hardcode_minus_L=yes
9482 irix5* | irix6* | nonstopux*)
9483 if test "$GCC" = yes; then
9484 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'
9486 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'
9487 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490 hardcode_libdir_separator=:
9491 link_all_deplibs=yes
9494 netbsd* | netbsdelf*-gnu)
9495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9498 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9500 hardcode_libdir_flag_spec='-R$libdir'
9502 hardcode_shlibpath_var=no
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9509 hardcode_libdir_separator=:
9510 hardcode_shlibpath_var=no
9515 hardcode_shlibpath_var=no
9516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9518 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9519 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9520 export_dynamic_flag_spec='${wl}-E'
9523 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9525 hardcode_libdir_flag_spec='-R$libdir'
9528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9529 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9536 hardcode_libdir_flag_spec='-L$libdir'
9537 hardcode_minus_L=yes
9538 allow_undefined_flag=unsupported
9539 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'
9540 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9544 if test "$GCC" = yes; then
9545 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9546 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'
9548 allow_undefined_flag=' -expect_unresolved \*'
9549 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'
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator=:
9555 osf4* | osf5*) # as osf3* with the addition of -msym flag
9556 if test "$GCC" = yes; then
9557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558 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'
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9561 allow_undefined_flag=' -expect_unresolved \*'
9562 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'
9563 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9564 $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'
9566 # Both c and cxx compiler support -rpath directly
9567 hardcode_libdir_flag_spec='-rpath $libdir'
9569 hardcode_libdir_separator=:
9573 no_undefined_flag=' -z text'
9574 if test "$GCC" = yes; then
9576 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9578 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9581 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9585 hardcode_libdir_flag_spec='-R$libdir'
9586 hardcode_shlibpath_var=no
9588 solaris2.[0-5] | solaris2.[0-5].*) ;;
9590 # The compiler driver will combine linker options so we
9591 # cannot just pass the convience library names through
9592 # without $wl, iff we do not link with $LD.
9593 # Luckily, gcc supports the same syntax we need for Sun Studio.
9594 # Supported since Solaris 2.6 (maybe 2.5.1?)
9597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9599 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' ;;
9602 link_all_deplibs=yes
9606 if test "x$host_vendor" = xsequent; then
9607 # Use $CC to link under sequent, because it throws in some extra .o
9608 # files that make .init and .fini sections work.
9609 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9613 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_minus_L=yes
9616 hardcode_shlibpath_var=no
9620 case $host_vendor in
9622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 hardcode_direct=yes # is this really true???
9626 ## LD is ld it makes a PLAMLIB
9627 ## CC just makes a GrossModule.
9628 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9629 reload_cmds='$CC -r -o $output$reload_objs'
9633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9637 runpath_var='LD_RUN_PATH'
9638 hardcode_shlibpath_var=no
9642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643 hardcode_shlibpath_var=no
9644 export_dynamic_flag_spec='-Bexport'
9648 if test -d /usr/nec; then
9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_shlibpath_var=no
9651 runpath_var=LD_RUN_PATH
9652 hardcode_runpath_var=yes
9657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9658 no_undefined_flag='${wl}-z,text'
9659 archive_cmds_need_lc=no
9660 hardcode_shlibpath_var=no
9661 runpath_var='LD_RUN_PATH'
9663 if test "$GCC" = yes; then
9664 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 sysv5* | sco3.2v5* | sco5v6*)
9673 # Note: We can NOT use -z defs as we might desire, because we do not
9674 # link with -lc, and that would cause any symbols used from libc to
9675 # always be unresolved, which means just about no library would
9676 # ever link correctly. If we're not using GNU ld we use -z text
9677 # though, which does catch some bad symbols but isn't as heavy-handed
9679 no_undefined_flag='${wl}-z,text'
9680 allow_undefined_flag='${wl}-z,nodefs'
9681 archive_cmds_need_lc=no
9682 hardcode_shlibpath_var=no
9683 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9684 hardcode_libdir_separator=':'
9685 link_all_deplibs=yes
9686 export_dynamic_flag_spec='${wl}-Bexport'
9687 runpath_var='LD_RUN_PATH'
9689 if test "$GCC" = yes; then
9690 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_shlibpath_var=no
9710 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9711 echo "${ECHO_T}$ld_shlibs" >&6; }
9712 test "$ld_shlibs" = no && can_build_shared=no
9715 # Do we need to explicitly link libc?
9717 case "x$archive_cmds_need_lc" in
9719 # Assume -lc should be added
9720 archive_cmds_need_lc=yes
9722 if test "$enable_shared" = yes && test "$GCC" = yes; then
9723 case $archive_cmds in
9725 # FIXME: we may have to deal with multi-command sequences.
9728 # Test whether the compiler implicitly links with -lc since on some
9729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9730 # to ld, don't add -lc before -lgcc.
9731 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9732 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9734 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737 (eval $ac_compile) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } 2>conftest.err; then
9743 libobjs=conftest.$ac_objext
9745 wl=$lt_prog_compiler_wl
9746 pic_flag=$lt_prog_compiler_pic
9752 lt_save_allow_undefined_flag=$allow_undefined_flag
9753 allow_undefined_flag=
9754 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9755 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }
9760 archive_cmds_need_lc=no
9762 archive_cmds_need_lc=yes
9764 allow_undefined_flag=$lt_save_allow_undefined_flag
9766 cat conftest.err 1>&5
9769 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9770 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9777 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9778 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9780 libname_spec='lib$name'
9788 shlibpath_overrides_runpath=unknown
9790 dynamic_linker="$host_os ld.so"
9791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9792 if test "$GCC" = yes; then
9793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9794 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9795 # if the path contains ";" then we assume it to be the separator
9796 # otherwise default to the standard path separator (i.e. ":") - it is
9797 # assumed that no part of a normal pathname contains ";" but that should
9798 # okay in the real world where ";" in dirpaths is itself problematic.
9799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9804 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9806 need_lib_prefix=unknown
9807 hardcode_into_libs=no
9809 # when you set need_version to no, make sure it does not cause -set_version
9810 # flags to be left without arguments
9811 need_version=unknown
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9817 shlibpath_var=LIBPATH
9819 # AIX 3 has no versioning support, so we append a major version to the name.
9820 soname_spec='${libname}${release}${shared_ext}$major'
9827 hardcode_into_libs=yes
9828 if test "$host_cpu" = ia64; then
9829 # AIX 5 supports IA64
9830 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9831 shlibpath_var=LD_LIBRARY_PATH
9833 # With GCC up to 2.95.x, collect2 would create an import file
9834 # for dependence libraries. The import file would start with
9835 # the line `#! .'. This would cause the generated library to
9836 # depend on `.', always an invalid library. This was fixed in
9837 # development snapshots of GCC prior to 3.0.
9839 aix4 | aix4.[01] | aix4.[01].*)
9840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9842 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9849 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9850 # soname into executable. Probably we can add versioning support to
9851 # collect2, so additional links can be useful in future.
9852 if test "$aix_use_runtimelinking" = yes; then
9853 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9854 # instead of lib<name>.a to let people know that these are not
9855 # typical AIX shared libraries.
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 # We preserve .a as extension for shared libraries through AIX4.2
9859 # and later when we are not doing run time linking.
9860 library_names_spec='${libname}${release}.a $libname.a'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9863 shlibpath_var=LIBPATH
9868 library_names_spec='$libname.ixlibrary $libname.a'
9869 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9870 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'
9874 library_names_spec='${libname}${shared_ext}'
9875 dynamic_linker="$host_os ld.so"
9876 shlibpath_var=LIBRARY_PATH
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 soname_spec='${libname}${release}${shared_ext}$major'
9884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9888 # the default ld.so.conf also contains /usr/contrib/lib and
9889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9890 # libtool to hard-code these into programs
9893 cygwin* | mingw* | pw32*)
9894 version_type=windows
9899 case $GCC,$host_os in
9900 yes,cygwin* | yes,mingw* | yes,pw32*)
9901 library_names_spec='$libname.dll.a'
9902 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9903 postinstall_cmds='base_file=`basename \${file}`~
9904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9905 dldir=$destdir/`dirname \$dlpath`~
9906 test -d \$dldir || mkdir -p \$dldir~
9907 $install_prog $dir/$dlname \$dldir/$dlname~
9908 chmod a+x \$dldir/$dlname'
9909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9910 dlpath=$dir/\$dldll~
9912 shlibpath_overrides_runpath=yes
9916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9921 # MinGW DLLs use traditional 'lib' prefix
9922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9923 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9924 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9925 # It is most probably a Windows format PATH printed by
9926 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9927 # path with ; separators, and with drive letters. We can handle the
9928 # drive letters (cygwin fileutils understands them), so leave them,
9929 # especially as we might pass files found there to a mingw objdump,
9930 # which wouldn't understand a cygwinified path. Ahh.
9931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9937 # pw32 DLLs use 'pw' prefix rather than 'lib'
9938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9947 dynamic_linker='Win32 ld.exe'
9948 # FIXME: first we should search . and the directory the executable is in
9952 darwin* | rhapsody*)
9953 dynamic_linker="$host_os dyld"
9957 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9958 soname_spec='${libname}${release}${major}$shared_ext'
9959 shlibpath_overrides_runpath=yes
9960 shlibpath_var=DYLD_LIBRARY_PATH
9961 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9962 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9963 if test "$GCC" = yes; then
9964 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"`
9966 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
9984 freebsd* | dragonfly*)
9985 # DragonFly does not have aout. When/if they implement a new
9986 # versioning mechanism, adjust this.
9987 if test -x /usr/bin/objformat; then
9988 objformat=`/usr/bin/objformat`
9991 freebsd[123]*) objformat=aout ;;
9995 version_type=freebsd-$objformat
9996 case $version_type in
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10007 shlibpath_var=LD_LIBRARY_PATH
10010 shlibpath_overrides_runpath=yes
10012 freebsd3.[01]* | freebsdelf3.[01]*)
10013 shlibpath_overrides_runpath=yes
10014 hardcode_into_libs=yes
10016 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10017 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10018 shlibpath_overrides_runpath=no
10019 hardcode_into_libs=yes
10021 freebsd*) # from 4.6 on
10022 shlibpath_overrides_runpath=yes
10023 hardcode_into_libs=yes
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10033 soname_spec='${libname}${release}${shared_ext}$major'
10034 shlibpath_var=LD_LIBRARY_PATH
10035 hardcode_into_libs=yes
10038 hpux9* | hpux10* | hpux11*)
10039 # Give a soname corresponding to the major version so that dld.sl refuses to
10040 # link against other versions.
10047 hardcode_into_libs=yes
10048 dynamic_linker="$host_os dld.so"
10049 shlibpath_var=LD_LIBRARY_PATH
10050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 if test "X$HPUX_IA64_MODE" = X32; then
10054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10062 hardcode_into_libs=yes
10063 dynamic_linker="$host_os dld.sl"
10064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10073 dynamic_linker="$host_os dld.sl"
10074 shlibpath_var=SHLIB_PATH
10075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10080 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10081 postinstall_cmds='chmod 555 $lib'
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10091 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=no
10093 hardcode_into_libs=yes
10096 irix5* | irix6* | nonstopux*)
10098 nonstopux*) version_type=nonstopux ;;
10100 if test "$lt_cv_prog_gnu_ld" = yes; then
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10111 irix5* | nonstopux*)
10112 libsuff= shlibsuff=
10115 case $LD in # libtool.m4 will add one of these switches to LD
10116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10117 libsuff= shlibsuff= libmagic=32-bit;;
10118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10119 libsuff=32 shlibsuff=N32 libmagic=N32;;
10120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10122 *) libsuff= shlibsuff= libmagic=never-match;;
10126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10127 shlibpath_overrides_runpath=no
10128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10130 hardcode_into_libs=yes
10133 # No shared lib support for Linux oldld, aout, or coff.
10134 linux*oldld* | linux*aout* | linux*coff*)
10138 # This must be Linux ELF.
10139 linux* | k*bsd*-gnu)
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 shlibpath_overrides_runpath=no
10148 # This implies no fast_install, which is unacceptable.
10149 # Some rework will be needed to allow for fast_install
10150 # before this can be enabled.
10151 hardcode_into_libs=yes
10153 # Append ld.so.conf contents to the search path
10154 if test -f /etc/ld.so.conf; then
10155 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' ' '`
10156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10159 # We used to test for /lib/ld.so.1 and disable shared libraries on
10160 # powerpc, because MkLinux only supported shared libraries with the
10161 # GNU dynamic linker. Since this was broken with cross compilers,
10162 # most powerpc-linux boxes support dynamic linking these days and
10163 # people can always --disable-shared, the test was removed, and we
10164 # assume the GNU/Linux dynamic linker is in use.
10165 dynamic_linker='GNU/Linux ld.so'
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=no
10176 hardcode_into_libs=yes
10177 dynamic_linker='NetBSD ld.elf_so'
10184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10187 dynamic_linker='NetBSD (a.out) ld.so'
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 dynamic_linker='NetBSD ld.elf_so'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=yes
10195 hardcode_into_libs=yes
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 shlibpath_overrides_runpath=yes
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10217 sys_lib_dlsearch_path_spec="/usr/lib"
10219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10221 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10222 *) need_version=no ;;
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10229 openbsd2.[89] | openbsd2.[89].*)
10230 shlibpath_overrides_runpath=no
10233 shlibpath_overrides_runpath=yes
10237 shlibpath_overrides_runpath=yes
10242 libname_spec='$name'
10245 library_names_spec='$libname${shared_ext} $libname.a'
10246 dynamic_linker='OS/2 ld.exe'
10247 shlibpath_var=LIBPATH
10250 osf3* | osf4* | osf5*)
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 shlibpath_overrides_runpath=yes
10269 hardcode_into_libs=yes
10270 # ldd complains unless libraries are executable
10271 postinstall_cmds='chmod +x $lib'
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10280 if test "$with_gnu_ld" = yes; then
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 case $host_vendor in
10293 shlibpath_overrides_runpath=no
10295 export_dynamic_flag_spec='${wl}-Blargedynsym'
10296 runpath_var=LD_RUN_PATH
10304 shlibpath_overrides_runpath=no
10305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10311 if test -d /usr/nec ;then
10313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10314 soname_spec='$libname${shared_ext}.$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10320 version_type=freebsd-elf
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 hardcode_into_libs=yes
10327 if test "$with_gnu_ld" = yes; then
10328 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10329 shlibpath_overrides_runpath=no
10331 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10332 shlibpath_overrides_runpath=yes
10335 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10339 sys_lib_dlsearch_path_spec='/usr/lib'
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 shlibpath_var=LD_LIBRARY_PATH
10353 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10354 echo "${ECHO_T}$dynamic_linker" >&6; }
10355 test "$dynamic_linker" = no && can_build_shared=no
10357 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10358 if test "$GCC" = yes; then
10359 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10362 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10363 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10365 if test -n "$hardcode_libdir_flag_spec" || \
10366 test -n "$runpath_var" || \
10367 test "X$hardcode_automatic" = "Xyes" ; then
10369 # We can hardcode non-existant directories.
10370 if test "$hardcode_direct" != no &&
10371 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10372 # have to relink, otherwise we might link with an installed library
10373 # when we should be linking with a yet-to-be-installed one
10374 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10375 test "$hardcode_minus_L" != no; then
10376 # Linking always hardcodes the temporary library directory.
10377 hardcode_action=relink
10379 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10380 hardcode_action=immediate
10383 # We cannot hardcode anything, or else we can only hardcode existing
10385 hardcode_action=unsupported
10387 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10388 echo "${ECHO_T}$hardcode_action" >&6; }
10390 if test "$hardcode_action" = relink; then
10391 # Fast installation is not supported
10392 enable_fast_install=no
10393 elif test "$shlibpath_overrides_runpath" = yes ||
10394 test "$enable_shared" = no; then
10395 # Fast installation is not necessary
10396 enable_fast_install=needless
10401 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10402 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10403 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10404 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10405 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10406 { echo "$as_me:$LINENO: result: yes" >&5
10407 echo "${ECHO_T}yes" >&6; }
10409 # FIXME - insert some real tests, host_os isn't really good enough
10412 if test -n "$STRIP" ; then
10413 striplib="$STRIP -x"
10414 { echo "$as_me:$LINENO: result: yes" >&5
10415 echo "${ECHO_T}yes" >&6; }
10417 { echo "$as_me:$LINENO: result: no" >&5
10418 echo "${ECHO_T}no" >&6; }
10422 { echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6; }
10428 if test "x$enable_dlopen" != xyes; then
10429 enable_dlopen=unknown
10430 enable_dlopen_self=unknown
10431 enable_dlopen_self_static=unknown
10438 lt_cv_dlopen="load_add_on"
10440 lt_cv_dlopen_self=yes
10444 lt_cv_dlopen="LoadLibrary"
10449 lt_cv_dlopen="dlopen"
10454 # if libdl is installed we need to link against it
10455 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 ac_check_lib_save_LIBS=$LIBS
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10469 /* Override any GCC internal prototype to avoid an error.
10470 Use char because int might match the return type of a GCC
10471 builtin and then its argument prototype would still apply. */
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_link") 2>conftest.er1
10493 grep -v '^ *+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest$ac_exeext &&
10501 $as_test_x conftest$ac_exeext; then
10502 ac_cv_lib_dl_dlopen=yes
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 ac_cv_lib_dl_dlopen=no
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10515 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10516 if test $ac_cv_lib_dl_dlopen = yes; then
10517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10520 lt_cv_dlopen="dyld"
10522 lt_cv_dlopen_self=yes
10529 { echo "$as_me:$LINENO: checking for shl_load" >&5
10530 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10531 if test "${ac_cv_func_shl_load+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 cat >conftest.$ac_ext <<_ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10540 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10542 #define shl_load innocuous_shl_load
10544 /* System header to define __stub macros and hopefully few prototypes,
10545 which can conflict with char shl_load (); below.
10546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10547 <limits.h> exists even on freestanding compilers. */
10550 # include <limits.h>
10552 # include <assert.h>
10557 /* Override any GCC internal prototype to avoid an error.
10558 Use char because int might match the return type of a GCC
10559 builtin and then its argument prototype would still apply. */
10564 /* The GNU C library defines this for functions which it implements
10565 to always fail with ENOSYS. Some functions are actually named
10566 something starting with __ and the normal name is an alias. */
10567 #if defined __stub_shl_load || defined __stub___shl_load
10574 return shl_load ();
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (ac_try="$ac_link"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_link") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest$ac_exeext &&
10596 $as_test_x conftest$ac_exeext; then
10597 ac_cv_func_shl_load=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_cv_func_shl_load=no
10605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10606 conftest$ac_exeext conftest.$ac_ext
10608 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10609 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10610 if test $ac_cv_func_shl_load = yes; then
10611 lt_cv_dlopen="shl_load"
10613 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10614 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10615 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 ac_check_lib_save_LIBS=$LIBS
10620 cat >conftest.$ac_ext <<_ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10627 /* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
10637 return shl_load ();
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (ac_try="$ac_link"
10644 case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_link") 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && {
10656 test -z "$ac_c_werror_flag" ||
10657 test ! -s conftest.err
10658 } && test -s conftest$ac_exeext &&
10659 $as_test_x conftest$ac_exeext; then
10660 ac_cv_lib_dld_shl_load=yes
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 ac_cv_lib_dld_shl_load=no
10668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10669 conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10672 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10673 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10674 if test $ac_cv_lib_dld_shl_load = yes; then
10675 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10677 { echo "$as_me:$LINENO: checking for dlopen" >&5
10678 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10679 if test "${ac_cv_func_dlopen+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10690 #define dlopen innocuous_dlopen
10692 /* System header to define __stub macros and hopefully few prototypes,
10693 which can conflict with char dlopen (); below.
10694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695 <limits.h> exists even on freestanding compilers. */
10698 # include <limits.h>
10700 # include <assert.h>
10705 /* Override any GCC internal prototype to avoid an error.
10706 Use char because int might match the return type of a GCC
10707 builtin and then its argument prototype would still apply. */
10712 /* The GNU C library defines this for functions which it implements
10713 to always fail with ENOSYS. Some functions are actually named
10714 something starting with __ and the normal name is an alias. */
10715 #if defined __stub_dlopen || defined __stub___dlopen
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (ac_try="$ac_link"
10729 case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_link") 2>conftest.er1
10736 grep -v '^ *+' conftest.er1 >conftest.err
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest$ac_exeext &&
10744 $as_test_x conftest$ac_exeext; then
10745 ac_cv_func_dlopen=yes
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_cv_func_dlopen=no
10753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10754 conftest$ac_exeext conftest.$ac_ext
10756 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10758 if test $ac_cv_func_dlopen = yes; then
10759 lt_cv_dlopen="dlopen"
10761 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 ac_check_lib_save_LIBS=$LIBS
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest$ac_exeext &&
10807 $as_test_x conftest$ac_exeext; then
10808 ac_cv_lib_dl_dlopen=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_lib_dl_dlopen=no
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10820 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10822 if test $ac_cv_lib_dl_dlopen = yes; then
10823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10825 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10826 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10827 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-lsvld $LIBS"
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest$ac_exeext &&
10871 $as_test_x conftest$ac_exeext; then
10872 ac_cv_lib_svld_dlopen=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ac_cv_lib_svld_dlopen=no
10880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_lib_save_LIBS
10884 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10886 if test $ac_cv_lib_svld_dlopen = yes; then
10887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10889 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10890 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10891 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_check_lib_save_LIBS=$LIBS
10896 cat >conftest.$ac_ext <<_ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10913 return dld_link ();
10918 rm -f conftest.$ac_objext conftest$ac_exeext
10919 if { (ac_try="$ac_link"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_link") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest$ac_exeext &&
10935 $as_test_x conftest$ac_exeext; then
10936 ac_cv_lib_dld_dld_link=yes
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10941 ac_cv_lib_dld_dld_link=no
10944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10949 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10950 if test $ac_cv_lib_dld_dld_link = yes; then
10951 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10972 if test "x$lt_cv_dlopen" != xno; then
10978 case $lt_cv_dlopen in
10980 save_CPPFLAGS="$CPPFLAGS"
10981 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10983 save_LDFLAGS="$LDFLAGS"
10984 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10987 LIBS="$lt_cv_dlopen_libs $LIBS"
10989 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10990 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10991 if test "${lt_cv_dlopen_self+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 if test "$cross_compiling" = yes; then :
10995 lt_cv_dlopen_self=cross
10997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10998 lt_status=$lt_dlunknown
10999 cat > conftest.$ac_ext <<EOF
11000 #line __oline__ "configure"
11001 #include "confdefs.h"
11010 # define LT_DLGLOBAL RTLD_GLOBAL
11013 # define LT_DLGLOBAL DL_GLOBAL
11015 # define LT_DLGLOBAL 0
11019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11020 find out it does not work in some platform. */
11021 #ifndef LT_DLLAZY_OR_NOW
11023 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11026 # define LT_DLLAZY_OR_NOW DL_LAZY
11029 # define LT_DLLAZY_OR_NOW RTLD_NOW
11032 # define LT_DLLAZY_OR_NOW DL_NOW
11034 # define LT_DLLAZY_OR_NOW 0
11042 extern "C" void exit (int);
11045 void fnord() { int i=42;}
11048 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11049 int status = $lt_dlunknown;
11053 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11054 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11055 /* dlclose (self); */
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11068 (./conftest; exit; ) >&5 2>/dev/null
11070 case x$lt_status in
11071 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11072 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11073 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11076 # compilation failed
11077 lt_cv_dlopen_self=no
11084 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11085 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11087 if test "x$lt_cv_dlopen_self" = xyes; then
11088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11089 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11090 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11091 if test "${lt_cv_dlopen_self_static+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 if test "$cross_compiling" = yes; then :
11095 lt_cv_dlopen_self_static=cross
11097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11098 lt_status=$lt_dlunknown
11099 cat > conftest.$ac_ext <<EOF
11100 #line __oline__ "configure"
11101 #include "confdefs.h"
11110 # define LT_DLGLOBAL RTLD_GLOBAL
11113 # define LT_DLGLOBAL DL_GLOBAL
11115 # define LT_DLGLOBAL 0
11119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11120 find out it does not work in some platform. */
11121 #ifndef LT_DLLAZY_OR_NOW
11123 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11126 # define LT_DLLAZY_OR_NOW DL_LAZY
11129 # define LT_DLLAZY_OR_NOW RTLD_NOW
11132 # define LT_DLLAZY_OR_NOW DL_NOW
11134 # define LT_DLLAZY_OR_NOW 0
11142 extern "C" void exit (int);
11145 void fnord() { int i=42;}
11148 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11149 int status = $lt_dlunknown;
11153 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11154 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11155 /* dlclose (self); */
11163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11164 (eval $ac_link) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11168 (./conftest; exit; ) >&5 2>/dev/null
11170 case x$lt_status in
11171 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11172 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11173 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11176 # compilation failed
11177 lt_cv_dlopen_self_static=no
11184 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11188 CPPFLAGS="$save_CPPFLAGS"
11189 LDFLAGS="$save_LDFLAGS"
11194 case $lt_cv_dlopen_self in
11195 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11196 *) enable_dlopen_self=unknown ;;
11199 case $lt_cv_dlopen_self_static in
11200 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11201 *) enable_dlopen_self_static=unknown ;;
11206 # Report which library types will actually be built
11207 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11209 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11210 echo "${ECHO_T}$can_build_shared" >&6; }
11212 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11214 test "$can_build_shared" = "no" && enable_shared=no
11216 # On AIX, shared libraries and static libraries use the same namespace, and
11217 # are all built from PIC.
11220 test "$enable_shared" = yes && enable_static=no
11221 if test -n "$RANLIB"; then
11222 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11223 postinstall_cmds='$RANLIB $lib'
11228 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11229 test "$enable_shared" = yes && enable_static=no
11233 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11234 echo "${ECHO_T}$enable_shared" >&6; }
11236 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11237 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11238 # Make sure either enable_shared or enable_static is yes.
11239 test "$enable_shared" = yes || enable_static=yes
11240 { echo "$as_me:$LINENO: result: $enable_static" >&5
11241 echo "${ECHO_T}$enable_static" >&6; }
11243 # The else clause should only fire when bootstrapping the
11244 # libtool distribution, otherwise you forgot to ship ltmain.sh
11245 # with your package, and you will get complaints that there are
11246 # no rules to generate ltmain.sh.
11247 if test -f "$ltmain"; then
11248 # See if we are running on zsh, and set the options which allow our commands through
11249 # without removal of \ escapes.
11250 if test -n "${ZSH_VERSION+set}" ; then
11251 setopt NO_GLOB_SUBST
11253 # Now quote all the things that may contain metacharacters while being
11254 # careful not to overquote the AC_SUBSTed values. We take copies of the
11255 # variables and quote the copies for generation of the libtool script.
11256 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11258 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11259 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11260 deplibs_check_method reload_flag reload_cmds need_locks \
11261 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11262 lt_cv_sys_global_symbol_to_c_name_address \
11263 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11264 old_postinstall_cmds old_postuninstall_cmds \
11268 lt_prog_compiler_wl \
11269 lt_prog_compiler_pic \
11270 lt_prog_compiler_static \
11271 lt_prog_compiler_no_builtin_flag \
11272 export_dynamic_flag_spec \
11273 thread_safe_flag_spec \
11274 whole_archive_flag_spec \
11275 enable_shared_with_static_runtimes \
11277 old_archive_from_new_cmds \
11282 compiler_lib_search_path \
11284 archive_expsym_cmds \
11286 postuninstall_cmds \
11287 old_archive_from_expsyms_cmds \
11288 allow_undefined_flag \
11289 no_undefined_flag \
11290 export_symbols_cmds \
11291 hardcode_libdir_flag_spec \
11292 hardcode_libdir_flag_spec_ld \
11293 hardcode_libdir_separator \
11294 hardcode_automatic \
11296 module_expsym_cmds \
11297 lt_cv_prog_compiler_c_o \
11299 include_expsyms; do
11302 old_archive_cmds | \
11303 old_archive_from_new_cmds | \
11305 archive_expsym_cmds | \
11307 module_expsym_cmds | \
11308 old_archive_from_expsyms_cmds | \
11309 export_symbols_cmds | \
11310 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11311 postinstall_cmds | postuninstall_cmds | \
11312 old_postinstall_cmds | old_postuninstall_cmds | \
11313 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11314 # Double-quote double-evaled strings.
11315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11324 *'\$0 --fallback-echo"')
11325 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11329 cfgfile="${ofile}T"
11330 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11332 { echo "$as_me:$LINENO: creating $ofile" >&5
11333 echo "$as_me: creating $ofile" >&6;}
11335 cat <<__EOF__ >> "$cfgfile"
11338 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11339 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11340 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11342 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11343 # Free Software Foundation, Inc.
11345 # This file is part of GNU Libtool:
11346 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11348 # This program is free software; you can redistribute it and/or modify
11349 # it under the terms of the GNU General Public License as published by
11350 # the Free Software Foundation; either version 2 of the License, or
11351 # (at your option) any later version.
11353 # This program is distributed in the hope that it will be useful, but
11354 # WITHOUT ANY WARRANTY; without even the implied warranty of
11355 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11356 # General Public License for more details.
11358 # You should have received a copy of the GNU General Public License
11359 # along with this program; if not, write to the Free Software
11360 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11362 # As a special exception to the GNU General Public License, if you
11363 # distribute this file as part of a program that contains a
11364 # configuration script generated by Autoconf, you may include it under
11365 # the same distribution terms that you use for the rest of that program.
11367 # A sed program that does not truncate output.
11370 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11371 Xsed="$SED -e 1s/^X//"
11373 # The HP-UX ksh and POSIX shell print the target directory to stdout
11374 # if CDPATH is set.
11375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11377 # The names of the tagged configurations supported by this script.
11380 # ### BEGIN LIBTOOL CONFIG
11382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11384 # Shell to use when invoking shell scripts.
11387 # Whether or not to build shared libraries.
11388 build_libtool_libs=$enable_shared
11390 # Whether or not to build static libraries.
11391 build_old_libs=$enable_static
11393 # Whether or not to add -lc for building shared libraries.
11394 build_libtool_need_lc=$archive_cmds_need_lc
11396 # Whether or not to disallow shared libs when runtime libs are static
11397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11399 # Whether or not to optimize for fast installation.
11400 fast_install=$enable_fast_install
11403 host_alias=$host_alias
11407 # The build system.
11408 build_alias=$build_alias
11412 # An echo program that does not interpret backslashes.
11417 AR_FLAGS=$lt_AR_FLAGS
11422 # LTCC compiler flags.
11423 LTCFLAGS=$lt_LTCFLAGS
11425 # A language-specific compiler.
11428 # Is the compiler the GNU C compiler?
11434 # The linker used to build libraries.
11437 # Whether we need hard or soft links.
11440 # A BSD-compatible nm program.
11443 # A symbol stripping program
11446 # Used to examine libraries when file_magic_cmd begins "file"
11447 MAGIC_CMD=$MAGIC_CMD
11449 # Used on cygwin: DLL creation program.
11452 # Used on cygwin: object dumper.
11455 # Used on cygwin: assembler.
11458 # The name of the directory that contains temporary libtool files.
11461 # How to create reloadable object files.
11462 reload_flag=$lt_reload_flag
11463 reload_cmds=$lt_reload_cmds
11465 # How to pass a linker flag through the compiler.
11466 wl=$lt_lt_prog_compiler_wl
11468 # Object file suffix (normally "o").
11469 objext="$ac_objext"
11471 # Old archive suffix (normally "a").
11474 # Shared library suffix (normally ".so").
11475 shrext_cmds='$shrext_cmds'
11477 # Executable file suffix (normally "").
11480 # Additional compiler flags for building library objects.
11481 pic_flag=$lt_lt_prog_compiler_pic
11484 # What is the maximum length of a command?
11485 max_cmd_len=$lt_cv_sys_max_cmd_len
11487 # Does compiler simultaneously support -c and -o options?
11488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11490 # Must we lock files when doing compilation?
11491 need_locks=$lt_need_locks
11493 # Do we need the lib prefix for modules?
11494 need_lib_prefix=$need_lib_prefix
11496 # Do we need a version for libraries?
11497 need_version=$need_version
11499 # Whether dlopen is supported.
11500 dlopen_support=$enable_dlopen
11502 # Whether dlopen of programs is supported.
11503 dlopen_self=$enable_dlopen_self
11505 # Whether dlopen of statically linked programs is supported.
11506 dlopen_self_static=$enable_dlopen_self_static
11508 # Compiler flag to prevent dynamic linking.
11509 link_static_flag=$lt_lt_prog_compiler_static
11511 # Compiler flag to turn off builtin functions.
11512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11514 # Compiler flag to allow reflexive dlopens.
11515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11517 # Compiler flag to generate shared objects directly from archives.
11518 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11520 # Compiler flag to generate thread-safe objects.
11521 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11523 # Library versioning type.
11524 version_type=$version_type
11526 # Format of library name prefix.
11527 libname_spec=$lt_libname_spec
11529 # List of archive names. First name is the real one, the rest are links.
11530 # The last name is the one that the linker finds with -lNAME.
11531 library_names_spec=$lt_library_names_spec
11533 # The coded name of the library, if different from the real name.
11534 soname_spec=$lt_soname_spec
11536 # Commands used to build and install an old-style archive.
11538 old_archive_cmds=$lt_old_archive_cmds
11539 old_postinstall_cmds=$lt_old_postinstall_cmds
11540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11542 # Create an old-style archive from a shared archive.
11543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11545 # Create a temporary old-style archive to link instead of a shared archive.
11546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11548 # Commands used to build and install a shared archive.
11549 archive_cmds=$lt_archive_cmds
11550 archive_expsym_cmds=$lt_archive_expsym_cmds
11551 postinstall_cmds=$lt_postinstall_cmds
11552 postuninstall_cmds=$lt_postuninstall_cmds
11554 # Commands used to build a loadable module (assumed same as above if empty)
11555 module_cmds=$lt_module_cmds
11556 module_expsym_cmds=$lt_module_expsym_cmds
11558 # Commands to strip libraries.
11559 old_striplib=$lt_old_striplib
11560 striplib=$lt_striplib
11562 # Dependencies to place before the objects being linked to create a
11564 predep_objects=$lt_predep_objects
11566 # Dependencies to place after the objects being linked to create a
11568 postdep_objects=$lt_postdep_objects
11570 # Dependencies to place before the objects being linked to create a
11572 predeps=$lt_predeps
11574 # Dependencies to place after the objects being linked to create a
11576 postdeps=$lt_postdeps
11578 # The library search path used internally by the compiler when linking
11579 # a shared library.
11580 compiler_lib_search_path=$lt_compiler_lib_search_path
11582 # Method to check whether dependent libraries are shared objects.
11583 deplibs_check_method=$lt_deplibs_check_method
11585 # Command to use when deplibs_check_method == file_magic.
11586 file_magic_cmd=$lt_file_magic_cmd
11588 # Flag that allows shared libraries with undefined symbols to be built.
11589 allow_undefined_flag=$lt_allow_undefined_flag
11591 # Flag that forces no undefined symbols.
11592 no_undefined_flag=$lt_no_undefined_flag
11594 # Commands used to finish a libtool library installation in a directory.
11595 finish_cmds=$lt_finish_cmds
11597 # Same as above, but a single script fragment to be evaled but not shown.
11598 finish_eval=$lt_finish_eval
11600 # Take the output of nm and produce a listing of raw symbols and C names.
11601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11603 # Transform the output of nm in a proper C declaration
11604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11606 # Transform the output of nm in a C name address pair
11607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11609 # This is the shared library runtime path variable.
11610 runpath_var=$runpath_var
11612 # This is the shared library path variable.
11613 shlibpath_var=$shlibpath_var
11615 # Is shlibpath searched before the hard-coded library search path?
11616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11618 # How to hardcode a shared library path into an executable.
11619 hardcode_action=$hardcode_action
11621 # Whether we should hardcode library paths into libraries.
11622 hardcode_into_libs=$hardcode_into_libs
11624 # Flag to hardcode \$libdir into a binary during linking.
11625 # This must work even if \$libdir does not exist.
11626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11628 # If ld is used when linking, flag to hardcode \$libdir into
11629 # a binary during linking. This must work even if \$libdir does
11631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11633 # Whether we need a single -rpath flag with a separated argument.
11634 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11637 # resulting binary.
11638 hardcode_direct=$hardcode_direct
11640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11641 # resulting binary.
11642 hardcode_minus_L=$hardcode_minus_L
11644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11645 # the resulting binary.
11646 hardcode_shlibpath_var=$hardcode_shlibpath_var
11648 # Set to yes if building a shared library automatically hardcodes DIR into the library
11649 # and all subsequent libraries and executables linked against it.
11650 hardcode_automatic=$hardcode_automatic
11652 # Variables whose values should be saved in libtool wrapper scripts and
11653 # restored at relink time.
11654 variables_saved_for_relink="$variables_saved_for_relink"
11656 # Whether libtool must link a program against all its dependency libraries.
11657 link_all_deplibs=$link_all_deplibs
11659 # Compile-time system search path for libraries
11660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11662 # Run-time system search path for libraries
11663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11665 # Fix the shell variable \$srcfile for the compiler.
11666 fix_srcfile_path="$fix_srcfile_path"
11668 # Set to yes if exported symbols are required.
11669 always_export_symbols=$always_export_symbols
11671 # The commands to list exported symbols.
11672 export_symbols_cmds=$lt_export_symbols_cmds
11674 # The commands to extract the exported symbol list from a shared archive.
11675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11677 # Symbols that should not be listed in the preloaded symbols.
11678 exclude_expsyms=$lt_exclude_expsyms
11680 # Symbols that must always be exported.
11681 include_expsyms=$lt_include_expsyms
11683 # ### END LIBTOOL CONFIG
11690 cat <<\EOF >> "$cfgfile"
11692 # AIX sometimes has problems with the GCC collect2 program. For some
11693 # reason, if we set the COLLECT_NAMES environment variable, the problems
11694 # vanish in a puff of smoke.
11695 if test "X${COLLECT_NAMES+set}" != Xset; then
11697 export COLLECT_NAMES
11703 # We use sed instead of cat because bash on DJGPP gets confused if
11704 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11705 # text mode, it properly converts lines to CR/LF. This bash problem
11706 # is reportedly fixed, but why not run on old versions too?
11707 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11709 mv -f "$cfgfile" "$ofile" || \
11710 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11714 # If there is no Makefile yet, we rely on a make rule to execute
11715 # `config.status --recheck' to rerun these tests and create the
11716 # libtool script then.
11717 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11718 if test -f "$ltmain_in"; then
11719 test -f Makefile && make "$ltmain"
11725 ac_cpp='$CPP $CPPFLAGS'
11726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11733 # Check whether --with-tags was given.
11734 if test "${with_tags+set}" = set; then
11735 withval=$with_tags; tagnames="$withval"
11739 if test -f "$ltmain" && test -n "$tagnames"; then
11740 if test ! -f "${ofile}"; then
11741 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11742 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11745 if test -z "$LTCC"; then
11746 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11747 if test -z "$LTCC"; then
11748 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11749 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11752 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11755 if test -z "$LTCFLAGS"; then
11756 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11759 # Extract list of available tagged configurations in $ofile.
11760 # Note that this assumes the entire list is on one line.
11761 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11764 for tagname in $tagnames; do
11766 # Check whether tagname contains only valid characters
11767 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11769 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11770 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11771 { (exit 1); exit 1; }; }
11775 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11777 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11778 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11779 { (exit 1); exit 1; }; }
11782 # Update the list of available tags.
11783 if test -n "$tagname"; then
11784 echo appending configuration tag \"$tagname\" to $ofile
11788 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11789 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11790 (test "X$CXX" != "Xg++"))) ; then
11792 ac_cpp='$CXXCPP $CPPFLAGS'
11793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11800 archive_cmds_need_lc_CXX=no
11801 allow_undefined_flag_CXX=
11802 always_export_symbols_CXX=no
11803 archive_expsym_cmds_CXX=
11804 export_dynamic_flag_spec_CXX=
11805 hardcode_direct_CXX=no
11806 hardcode_libdir_flag_spec_CXX=
11807 hardcode_libdir_flag_spec_ld_CXX=
11808 hardcode_libdir_separator_CXX=
11809 hardcode_minus_L_CXX=no
11810 hardcode_shlibpath_var_CXX=unsupported
11811 hardcode_automatic_CXX=no
11813 module_expsym_cmds_CXX=
11814 link_all_deplibs_CXX=unknown
11815 old_archive_cmds_CXX=$old_archive_cmds
11816 no_undefined_flag_CXX=
11817 whole_archive_flag_spec_CXX=
11818 enable_shared_with_static_runtimes_CXX=no
11820 # Dependencies to place before and after the object being linked:
11821 predep_objects_CXX=
11822 postdep_objects_CXX=
11825 compiler_lib_search_path_CXX=
11827 # Source file extension for C++ test sources.
11830 # Object file extension for compiled C++ test sources.
11834 # Code to be used in simple compile tests
11835 lt_simple_compile_test_code="int some_variable = 0;\n"
11837 # Code to be used in simple link tests
11838 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11840 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11842 # If no C compiler was specified, use CC.
11845 # If no C compiler flags were specified, use CFLAGS.
11846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11848 # Allow CC to be a program name with arguments.
11852 # save warnings/boilerplate of simple test code
11853 ac_outfile=conftest.$ac_objext
11854 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11855 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11856 _lt_compiler_boilerplate=`cat conftest.err`
11859 ac_outfile=conftest.$ac_objext
11860 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11861 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11862 _lt_linker_boilerplate=`cat conftest.err`
11866 # Allow CC to be a program name with arguments.
11871 lt_save_with_gnu_ld=$with_gnu_ld
11872 lt_save_path_LD=$lt_cv_path_LD
11873 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11874 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11876 $as_unset lt_cv_prog_gnu_ld
11878 if test -n "${lt_cv_path_LDCXX+set}"; then
11879 lt_cv_path_LD=$lt_cv_path_LDCXX
11881 $as_unset lt_cv_path_LD
11883 test -z "${LDCXX+set}" || LD=$LDCXX
11887 for cc_temp in $compiler""; do
11889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11898 # We don't want -fno-exception wen compiling C++ code, so set the
11899 # no_builtin_flag separately
11900 if test "$GXX" = yes; then
11901 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11903 lt_prog_compiler_no_builtin_flag_CXX=
11906 if test "$GXX" = yes; then
11907 # Set up default GNU C++ configuration
11910 # Check whether --with-gnu-ld was given.
11911 if test "${with_gnu_ld+set}" = set; then
11912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11918 if test "$GCC" = yes; then
11919 # Check if gcc -print-prog-name=ld gives a path.
11920 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11921 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11924 # gcc leaves a trailing carriage return which upsets mingw
11925 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11927 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11930 # Accept absolute paths.
11932 re_direlt='/[^/][^/]*/\.\./'
11933 # Canonicalize the pathname of ld
11934 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11935 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11936 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11938 test -z "$LD" && LD="$ac_prog"
11941 # If it fails, then pretend we aren't using GCC.
11945 # If it is relative, then search for the first ld in PATH.
11946 with_gnu_ld=unknown
11949 elif test "$with_gnu_ld" = yes; then
11950 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11951 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11953 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11954 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11956 if test "${lt_cv_path_LD+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 if test -z "$LD"; then
11960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11961 for ac_dir in $PATH; do
11963 test -z "$ac_dir" && ac_dir=.
11964 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11965 lt_cv_path_LD="$ac_dir/$ac_prog"
11966 # Check to see if the program is GNU ld. I'd rather use --version,
11967 # but apparently some variants of GNU ld only accept -v.
11968 # Break only if it was the GNU/non-GNU ld that we prefer.
11969 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11970 *GNU* | *'with BFD'*)
11971 test "$with_gnu_ld" != no && break
11974 test "$with_gnu_ld" != yes && break
11981 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11985 LD="$lt_cv_path_LD"
11986 if test -n "$LD"; then
11987 { echo "$as_me:$LINENO: result: $LD" >&5
11988 echo "${ECHO_T}$LD" >&6; }
11990 { echo "$as_me:$LINENO: result: no" >&5
11991 echo "${ECHO_T}no" >&6; }
11993 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11994 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11995 { (exit 1); exit 1; }; }
11996 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11997 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11998 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12002 case `$LD -v 2>&1 </dev/null` in
12003 *GNU* | *'with BFD'*)
12004 lt_cv_prog_gnu_ld=yes
12007 lt_cv_prog_gnu_ld=no
12011 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12012 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12013 with_gnu_ld=$lt_cv_prog_gnu_ld
12017 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12018 # archiving commands below assume that GNU ld is being used.
12019 if test "$with_gnu_ld" = yes; then
12020 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12021 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'
12023 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12024 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12026 # If archive_cmds runs LD, not CC, wlarc should be empty
12027 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12028 # investigate it a little bit more. (MM)
12031 # ancient GNU ld didn't support --whole-archive et. al.
12032 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12033 grep 'no-whole-archive' > /dev/null; then
12034 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12036 whole_archive_flag_spec_CXX=
12042 # A generic and very simple default shared library creation
12043 # command for GNU C++ for the case where it uses the native
12044 # linker, instead of GNU ld. If possible, this setting should
12045 # overridden to take advantage of the native linker features on
12046 # the platform it is being used on.
12047 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12050 # Commands to make compiler produce verbose output that lists
12051 # what "hidden" libraries, object files and flags are used when
12052 # linking a shared library.
12053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12061 # PORTME: fill in a description of your system's C++ link characteristics
12062 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12063 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12067 # FIXME: insert proper C++ library support
12071 if test "$host_cpu" = ia64; then
12072 # On IA64, the linker does run time linking by default, so we don't
12073 # have to do anything special.
12074 aix_use_runtimelinking=no
12075 exp_sym_flag='-Bexport'
12078 aix_use_runtimelinking=no
12080 # Test if we are trying to use run time linking or normal
12081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12082 # need to do runtime linking.
12083 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12084 for ld_flag in $LDFLAGS; do
12087 aix_use_runtimelinking=yes
12095 exp_sym_flag='-bexport'
12096 no_entry_flag='-bnoentry'
12099 # When large executables or shared objects are built, AIX ld can
12100 # have problems creating the table of contents. If linking a library
12101 # or program results in "error TOC overflow" add -mminimal-toc to
12102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12105 archive_cmds_CXX=''
12106 hardcode_direct_CXX=yes
12107 hardcode_libdir_separator_CXX=':'
12108 link_all_deplibs_CXX=yes
12110 if test "$GXX" = yes; then
12111 case $host_os in aix4.[012]|aix4.[012].*)
12112 # We only want to do this on AIX 4.2 and lower, the check
12113 # below for broken collect2 doesn't work under 4.3+
12114 collect2name=`${CC} -print-prog-name=collect2`
12115 if test -f "$collect2name" && \
12116 strings "$collect2name" | grep resolve_lib_name >/dev/null
12118 # We have reworked collect2
12119 hardcode_direct_CXX=yes
12121 # We have old collect2
12122 hardcode_direct_CXX=unsupported
12123 # It fails to find uninstalled libraries when the uninstalled
12124 # path is not listed in the libpath. Setting hardcode_minus_L
12125 # to unsupported forces relinking
12126 hardcode_minus_L_CXX=yes
12127 hardcode_libdir_flag_spec_CXX='-L$libdir'
12128 hardcode_libdir_separator_CXX=
12132 shared_flag='-shared'
12133 if test "$aix_use_runtimelinking" = yes; then
12134 shared_flag="$shared_flag "'${wl}-G'
12138 if test "$host_cpu" = ia64; then
12139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12140 # chokes on -Wl,-G. The following line is correct:
12143 if test "$aix_use_runtimelinking" = yes; then
12144 shared_flag='${wl}-G'
12146 shared_flag='${wl}-bM:SRE'
12151 # It seems that -bexpall does not export symbols beginning with
12152 # underscore (_), so it is better to generate a list of symbols to export.
12153 always_export_symbols_CXX=yes
12154 if test "$aix_use_runtimelinking" = yes; then
12155 # Warning - without using the other runtime loading flags (-brtl),
12156 # -berok will link without error, but may produce a broken library.
12157 allow_undefined_flag_CXX='-berok'
12158 # Determine the default libpath from the value encoded in an empty executable.
12159 cat >conftest.$ac_ext <<_ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (ac_try="$ac_link"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_link") 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_cxx_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest$ac_exeext &&
12191 $as_test_x conftest$ac_exeext; then
12193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12195 # Check for a 64-bit object if we didn't find anything.
12196 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; }
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206 conftest$ac_exeext conftest.$ac_ext
12207 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12209 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12211 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"
12213 if test "$host_cpu" = ia64; then
12214 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12215 allow_undefined_flag_CXX="-z nodefs"
12216 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"
12218 # Determine the default libpath from the value encoded in an empty executable.
12219 cat >conftest.$ac_ext <<_ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_link") 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && {
12248 test -z "$ac_cxx_werror_flag" ||
12249 test ! -s conftest.err
12250 } && test -s conftest$ac_exeext &&
12251 $as_test_x conftest$ac_exeext; then
12253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12255 # Check for a 64-bit object if we didn't find anything.
12256 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; }
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12266 conftest$ac_exeext conftest.$ac_ext
12267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12269 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12270 # Warning - without using the other run time loading flags,
12271 # -berok will link without error, but may produce a broken library.
12272 no_undefined_flag_CXX=' ${wl}-bernotok'
12273 allow_undefined_flag_CXX=' ${wl}-berok'
12274 # Exported symbols can be pulled into shared objects from archives
12275 whole_archive_flag_spec_CXX='$convenience'
12276 archive_cmds_need_lc_CXX=yes
12277 # This is similar to how AIX traditionally builds its shared libraries.
12278 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'
12284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12285 allow_undefined_flag_CXX=unsupported
12286 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12287 # support --undefined. This deserves some investigation. FIXME
12288 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12295 case $cc_basename in
12297 # FIXME: insert proper C++ library support
12303 cygwin* | mingw* | pw32*)
12304 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12305 # as there is no search path for DLLs.
12306 hardcode_libdir_flag_spec_CXX='-L$libdir'
12307 allow_undefined_flag_CXX=unsupported
12308 always_export_symbols_CXX=no
12309 enable_shared_with_static_runtimes_CXX=yes
12311 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12312 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'
12313 # If the export-symbols file already is a .def file (1st line
12314 # is EXPORTS), use it as is; otherwise, prepend...
12315 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12316 cp $export_symbols $output_objdir/$soname.def;
12318 echo EXPORTS > $output_objdir/$soname.def;
12319 cat $export_symbols >> $output_objdir/$soname.def;
12321 $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'
12326 darwin* | rhapsody*)
12328 rhapsody* | darwin1.[012])
12329 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12333 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12335 case ${MACOSX_DEPLOYMENT_TARGET} in
12337 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12340 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12346 archive_cmds_need_lc_CXX=no
12347 hardcode_direct_CXX=no
12348 hardcode_automatic_CXX=yes
12349 hardcode_shlibpath_var_CXX=unsupported
12350 whole_archive_flag_spec_CXX=''
12351 link_all_deplibs_CXX=yes
12353 if test "$GXX" = yes ; then
12354 lt_int_apple_cc_single_mod=no
12355 output_verbose_link_cmd='echo'
12356 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12357 lt_int_apple_cc_single_mod=yes
12359 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12360 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12362 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'
12364 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12366 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12367 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}'
12369 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}'
12371 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}'
12373 case $cc_basename in
12375 output_verbose_link_cmd='echo'
12376 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'
12377 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12379 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}'
12380 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}'
12390 case $cc_basename in
12392 # FIXME: insert proper C++ library support
12396 # Green Hills C++ Compiler
12397 # FIXME: insert proper C++ library support
12401 # FIXME: insert proper C++ library support
12407 # C++ shared libraries reported to be fairly broken before switch to ELF
12411 archive_cmds_need_lc_CXX=no
12413 freebsd* | dragonfly*)
12414 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12421 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12422 hardcode_libdir_separator_CXX=:
12423 export_dynamic_flag_spec_CXX='${wl}-E'
12424 hardcode_direct_CXX=yes
12425 hardcode_minus_L_CXX=yes # Not in the search PATH,
12426 # but as the default
12427 # location of the library.
12429 case $cc_basename in
12431 # FIXME: insert proper C++ library support
12435 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'
12436 # Commands to make compiler produce verbose output that lists
12437 # what "hidden" libraries, object files and flags are used when
12438 # linking a shared library.
12440 # There doesn't appear to be a way to prevent this compiler from
12441 # explicitly linking system object files so we need to strip them
12442 # from the output so that they don't get included in the library
12444 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'
12447 if test "$GXX" = yes; then
12448 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'
12450 # FIXME: insert proper C++ library support
12457 if test $with_gnu_ld = no; then
12458 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12459 hardcode_libdir_separator_CXX=:
12463 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12466 export_dynamic_flag_spec_CXX='${wl}-E'
12472 hardcode_direct_CXX=no
12473 hardcode_shlibpath_var_CXX=no
12476 hardcode_direct_CXX=yes
12477 hardcode_minus_L_CXX=yes # Not in the search PATH,
12478 # but as the default
12479 # location of the library.
12483 case $cc_basename in
12485 # FIXME: insert proper C++ library support
12491 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12494 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12497 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12500 # Commands to make compiler produce verbose output that lists
12501 # what "hidden" libraries, object files and flags are used when
12502 # linking a shared library.
12504 # There doesn't appear to be a way to prevent this compiler from
12505 # explicitly linking system object files so we need to strip them
12506 # from the output so that they don't get included in the library
12508 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'
12511 if test "$GXX" = yes; then
12512 if test $with_gnu_ld = no; then
12515 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12518 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12521 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'
12526 # FIXME: insert proper C++ library support
12533 hardcode_direct_CXX=no
12534 hardcode_shlibpath_var_CXX=no
12535 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12536 export_dynamic_flag_spec_CXX='${wl}-E'
12537 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12538 # Instead, shared libraries are loaded at an image base (0x10000000 by
12539 # default) and relocated if they conflict, which is a slow very memory
12540 # consuming and fragmenting process. To avoid this, we pick a random,
12541 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12542 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12543 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'
12544 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'
12547 case $cc_basename in
12550 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'
12552 # Archives containing C++ object files must be created using
12553 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12554 # necessary to make sure instantiated templates are included
12556 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12559 if test "$GXX" = yes; then
12560 if test "$with_gnu_ld" = no; then
12561 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'
12563 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'
12566 link_all_deplibs_CXX=yes
12569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12570 hardcode_libdir_separator_CXX=:
12572 linux* | k*bsd*-gnu)
12573 case $cc_basename in
12575 # Kuck and Associates, Inc. (KAI) C++ Compiler
12577 # KCC will only create a shared library if the output file
12578 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12579 # to its proper name (with version) after linking.
12580 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'
12581 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'
12582 # Commands to make compiler produce verbose output that lists
12583 # what "hidden" libraries, object files and flags are used when
12584 # linking a shared library.
12586 # There doesn't appear to be a way to prevent this compiler from
12587 # explicitly linking system object files so we need to strip them
12588 # from the output so that they don't get included in the library
12590 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'
12592 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12595 # Archives containing C++ object files must be created using
12596 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12597 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12602 # version 8.0 and above of icpc choke on multiply defined symbols
12603 # if we add $predep_objects and $postdep_objects, however 7.1 and
12604 # earlier do not add the objects themselves.
12605 case `$CC -V 2>&1` in
12607 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12608 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'
12610 *) # Version 8.0 or newer
12613 ia64*) tmp_idyn=' -i_dynamic';;
12615 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12616 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'
12619 archive_cmds_need_lc_CXX=no
12620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12622 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12625 # Portland Group C++ compiler
12626 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12627 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'
12629 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12631 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'
12635 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12636 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'
12638 runpath_var=LD_RUN_PATH
12639 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12640 hardcode_libdir_separator_CXX=:
12642 # Commands to make compiler produce verbose output that lists
12643 # what "hidden" libraries, object files and flags are used when
12644 # linking a shared library.
12646 # There doesn't appear to be a way to prevent this compiler from
12647 # explicitly linking system object files so we need to strip them
12648 # from the output so that they don't get included in the library
12650 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'
12655 # FIXME: insert proper C++ library support
12659 # FIXME: insert proper C++ library support
12663 case $cc_basename in
12665 # FIXME: insert proper C++ library support
12669 # FIXME: insert proper C++ library support
12674 netbsd* | netbsdelf*-gnu)
12675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12676 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12678 hardcode_libdir_flag_spec_CXX='-R$libdir'
12679 hardcode_direct_CXX=yes
12680 hardcode_shlibpath_var_CXX=no
12682 # Workaround some broken pre-1.5 toolchains
12683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12686 # C++ shared libraries are fairly broken
12690 hardcode_direct_CXX=yes
12691 hardcode_shlibpath_var_CXX=no
12692 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12695 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12696 export_dynamic_flag_spec_CXX='${wl}-E'
12697 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12699 output_verbose_link_cmd='echo'
12702 case $cc_basename in
12704 # Kuck and Associates, Inc. (KAI) C++ Compiler
12706 # KCC will only create a shared library if the output file
12707 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12708 # to its proper name (with version) after linking.
12709 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'
12711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12712 hardcode_libdir_separator_CXX=:
12714 # Archives containing C++ object files must be created using
12715 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12716 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12720 # Rational C++ 2.4.1
12721 # FIXME: insert proper C++ library support
12725 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12726 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'
12728 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12729 hardcode_libdir_separator_CXX=:
12731 # Commands to make compiler produce verbose output that lists
12732 # what "hidden" libraries, object files and flags are used when
12733 # linking a shared library.
12735 # There doesn't appear to be a way to prevent this compiler from
12736 # explicitly linking system object files so we need to strip them
12737 # from the output so that they don't get included in the library
12739 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'
12742 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12743 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12744 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'
12746 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12747 hardcode_libdir_separator_CXX=:
12749 # Commands to make compiler produce verbose output that lists
12750 # what "hidden" libraries, object files and flags are used when
12751 # linking a shared library.
12752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12755 # FIXME: insert proper C++ library support
12762 case $cc_basename in
12764 # Kuck and Associates, Inc. (KAI) C++ Compiler
12766 # KCC will only create a shared library if the output file
12767 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12768 # to its proper name (with version) after linking.
12769 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'
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12772 hardcode_libdir_separator_CXX=:
12774 # Archives containing C++ object files must be created using
12775 # the KAI C++ compiler.
12776 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12779 # Rational C++ 2.4.1
12780 # FIXME: insert proper C++ library support
12784 allow_undefined_flag_CXX=' -expect_unresolved \*'
12785 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'
12786 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12787 echo "-hidden">> $lib.exp~
12788 $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~
12791 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12792 hardcode_libdir_separator_CXX=:
12794 # Commands to make compiler produce verbose output that lists
12795 # what "hidden" libraries, object files and flags are used when
12796 # linking a shared library.
12798 # There doesn't appear to be a way to prevent this compiler from
12799 # explicitly linking system object files so we need to strip them
12800 # from the output so that they don't get included in the library
12802 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'
12805 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12807 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'
12809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12810 hardcode_libdir_separator_CXX=:
12812 # Commands to make compiler produce verbose output that lists
12813 # what "hidden" libraries, object files and flags are used when
12814 # linking a shared library.
12815 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12818 # FIXME: insert proper C++ library support
12825 # FIXME: insert proper C++ library support
12829 case $cc_basename in
12832 # FIXME: insert proper C++ library support
12837 # FIXME: insert proper C++ library support
12841 # FIXME: insert proper C++ library support
12847 case $cc_basename in
12849 # Sun C++ 4.2, 5.x and Centerline C++
12850 archive_cmds_need_lc_CXX=yes
12851 no_undefined_flag_CXX=' -zdefs'
12852 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12854 $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'
12856 hardcode_libdir_flag_spec_CXX='-R$libdir'
12857 hardcode_shlibpath_var_CXX=no
12859 solaris2.[0-5] | solaris2.[0-5].*) ;;
12861 # The C++ compiler is used as linker so we must use $wl
12862 # flag to pass the commands to the underlying system
12863 # linker. We must also pass each convience library through
12864 # to the system linker between allextract/defaultextract.
12865 # The C++ compiler will combine linker options so we
12866 # cannot just pass the convience library names through
12868 # Supported since Solaris 2.6 (maybe 2.5.1?)
12869 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'
12872 link_all_deplibs_CXX=yes
12874 output_verbose_link_cmd='echo'
12876 # Archives containing C++ object files must be created using
12877 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12878 # necessary to make sure instantiated templates are included
12880 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12883 # Green Hills C++ Compiler
12884 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12886 # The C++ compiler must be used to create the archive.
12887 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12890 # GNU C++ compiler with Solaris linker
12891 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12892 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12893 if $CC --version | grep -v '^2\.7' > /dev/null; then
12894 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12895 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12896 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12898 # Commands to make compiler produce verbose output that lists
12899 # what "hidden" libraries, object files and flags are used when
12900 # linking a shared library.
12901 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12903 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12905 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12906 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12907 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12909 # Commands to make compiler produce verbose output that lists
12910 # what "hidden" libraries, object files and flags are used when
12911 # linking a shared library.
12912 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12915 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12920 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12921 no_undefined_flag_CXX='${wl}-z,text'
12922 archive_cmds_need_lc_CXX=no
12923 hardcode_shlibpath_var_CXX=no
12924 runpath_var='LD_RUN_PATH'
12926 case $cc_basename in
12928 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12929 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12932 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12933 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12937 sysv5* | sco3.2v5* | sco5v6*)
12938 # Note: We can NOT use -z defs as we might desire, because we do not
12939 # link with -lc, and that would cause any symbols used from libc to
12940 # always be unresolved, which means just about no library would
12941 # ever link correctly. If we're not using GNU ld we use -z text
12942 # though, which does catch some bad symbols but isn't as heavy-handed
12944 # For security reasons, it is highly recommended that you always
12945 # use absolute paths for naming shared libraries, and exclude the
12946 # DT_RUNPATH tag from executables and libraries. But doing so
12947 # requires that you compile everything twice, which is a pain.
12948 # So that behaviour is only enabled if SCOABSPATH is set to a
12949 # non-empty value in the environment. Most likely only useful for
12950 # creating official distributions of packages.
12951 # This is a hack until libtool officially supports absolute path
12952 # names for shared libraries.
12953 no_undefined_flag_CXX='${wl}-z,text'
12954 allow_undefined_flag_CXX='${wl}-z,nodefs'
12955 archive_cmds_need_lc_CXX=no
12956 hardcode_shlibpath_var_CXX=no
12957 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12958 hardcode_libdir_separator_CXX=':'
12959 link_all_deplibs_CXX=yes
12960 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12961 runpath_var='LD_RUN_PATH'
12963 case $cc_basename in
12965 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12966 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12969 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12970 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12975 case $cc_basename in
12977 # NonStop-UX NCC 3.20
12978 # FIXME: insert proper C++ library support
12982 # FIXME: insert proper C++ library support
12988 # FIXME: insert proper C++ library support
12992 # FIXME: insert proper C++ library support
12996 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12997 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12998 test "$ld_shlibs_CXX" = no && can_build_shared=no
13004 ## There is no encapsulation within the following macros, do not change
13005 ## the running order or otherwise move them around unless you know exactly
13006 ## what you are doing...
13008 cat > conftest.$ac_ext <<EOF
13012 Foo (void) { a = 0; }
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019 (eval $ac_compile) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; then
13023 # Parse the compiler output and extract the necessary
13024 # objects, libraries and library flags.
13026 # Sentinel used to keep track of whether or not we are before
13027 # the conftest object file.
13028 pre_test_object_deps_done=no
13030 # The `*' in the case matches for architectures that use `case' in
13031 # $output_verbose_cmd can trigger glob expansion during the loop
13032 # eval without this substitution.
13033 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13035 for p in `eval $output_verbose_link_cmd`; do
13039 # Some compilers place space between "-{L,R}" and the path.
13040 # Remove the space.
13041 if test $p = "-L" \
13042 || test $p = "-R"; then
13049 if test "$pre_test_object_deps_done" = no; then
13052 # Internal compiler library paths should come after those
13053 # provided the user. The postdeps already come after the
13054 # user supplied libs so there is no need to process them.
13055 if test -z "$compiler_lib_search_path_CXX"; then
13056 compiler_lib_search_path_CXX="${prev}${p}"
13058 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13061 # The "-l" case would never come before the object being
13062 # linked, so don't bother handling this case.
13065 if test -z "$postdeps_CXX"; then
13066 postdeps_CXX="${prev}${p}"
13068 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13074 # This assumes that the test object file only shows up
13075 # once in the compiler output.
13076 if test "$p" = "conftest.$objext"; then
13077 pre_test_object_deps_done=yes
13081 if test "$pre_test_object_deps_done" = no; then
13082 if test -z "$predep_objects_CXX"; then
13083 predep_objects_CXX="$p"
13085 predep_objects_CXX="$predep_objects_CXX $p"
13088 if test -z "$postdep_objects_CXX"; then
13089 postdep_objects_CXX="$p"
13091 postdep_objects_CXX="$postdep_objects_CXX $p"
13096 *) ;; # Ignore the rest.
13104 echo "libtool.m4: error: problem compiling CXX test program"
13107 $rm -f confest.$objext
13109 # PORTME: override above test on systems where it is broken
13112 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13113 # hack all around it, let's just trust "g++" to DTRT.
13114 predep_objects_CXX=
13115 postdep_objects_CXX=
13120 case $cc_basename in
13122 # Adding this requires a known-good setup of shared libraries for
13123 # Sun compiler versions before 5.6, else PIC objects from an old
13124 # archive will be linked into the output, leading to subtle bugs.
13125 postdeps_CXX='-lCstd -lCrun'
13132 case " $postdeps_CXX " in
13133 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13136 lt_prog_compiler_wl_CXX=
13137 lt_prog_compiler_pic_CXX=
13138 lt_prog_compiler_static_CXX=
13140 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13143 # C++ specific cases for pic, static, wl, etc.
13144 if test "$GXX" = yes; then
13145 lt_prog_compiler_wl_CXX='-Wl,'
13146 lt_prog_compiler_static_CXX='-static'
13150 # All AIX code is PIC.
13151 if test "$host_cpu" = ia64; then
13152 # AIX 5 now supports IA64 processor
13153 lt_prog_compiler_static_CXX='-Bstatic'
13157 # FIXME: we need at least 68020 code to build shared libraries, but
13158 # adding the `-m68020' flag to GCC prevents building anything better,
13160 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13163 # PIC is the default for these OSes.
13165 mingw* | os2* | pw32*)
13166 # This hack is so that the source file can tell whether it is being
13167 # built for inclusion in a dll (and should export symbols for example).
13168 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13170 darwin* | rhapsody*)
13171 # PIC is the default on this platform
13172 # Common symbols not allowed in MH_DYLIB files
13173 lt_prog_compiler_pic_CXX='-fno-common'
13176 # DJGPP does not support shared libraries at all
13177 lt_prog_compiler_pic_CXX=
13180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13181 # Instead, we relocate shared libraries at runtime.
13184 if test -d /usr/nec; then
13185 lt_prog_compiler_pic_CXX=-Kconform_pic
13189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13190 # not for PA HP-UX.
13195 lt_prog_compiler_pic_CXX='-fPIC'
13200 lt_prog_compiler_pic_CXX='-fPIC'
13206 # All AIX code is PIC.
13207 if test "$host_cpu" = ia64; then
13208 # AIX 5 now supports IA64 processor
13209 lt_prog_compiler_static_CXX='-Bstatic'
13211 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13215 case $cc_basename in
13217 # Green Hills C++ Compiler
13218 # _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"
13223 # PIC is the default on this platform
13224 # Common symbols not allowed in MH_DYLIB files
13225 case $cc_basename in
13227 lt_prog_compiler_pic_CXX='-qnocommon'
13228 lt_prog_compiler_wl_CXX='-Wl,'
13233 case $cc_basename in
13235 lt_prog_compiler_pic_CXX='-KPIC'
13238 # Green Hills C++ Compiler
13239 lt_prog_compiler_pic_CXX='-pic'
13245 freebsd* | dragonfly*)
13246 # FreeBSD uses GNU C++
13248 hpux9* | hpux10* | hpux11*)
13249 case $cc_basename in
13251 lt_prog_compiler_wl_CXX='-Wl,'
13252 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13253 if test "$host_cpu" != ia64; then
13254 lt_prog_compiler_pic_CXX='+Z'
13258 lt_prog_compiler_wl_CXX='-Wl,'
13259 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13265 lt_prog_compiler_pic_CXX='+Z'
13274 # This is c89, which is MS Visual C++ (no shared libs)
13275 # Anyone wants to do a port?
13277 irix5* | irix6* | nonstopux*)
13278 case $cc_basename in
13280 lt_prog_compiler_wl_CXX='-Wl,'
13281 lt_prog_compiler_static_CXX='-non_shared'
13282 # CC pic flag -KPIC is the default.
13288 linux* | k*bsd*-gnu)
13289 case $cc_basename in
13292 lt_prog_compiler_wl_CXX='--backend -Wl,'
13293 lt_prog_compiler_pic_CXX='-fPIC'
13297 lt_prog_compiler_wl_CXX='-Wl,'
13298 lt_prog_compiler_pic_CXX='-KPIC'
13299 lt_prog_compiler_static_CXX='-static'
13302 # Portland Group C++ compiler.
13303 lt_prog_compiler_wl_CXX='-Wl,'
13304 lt_prog_compiler_pic_CXX='-fpic'
13305 lt_prog_compiler_static_CXX='-Bstatic'
13309 # Make sure the PIC flag is empty. It appears that all Alpha
13310 # Linux and Compaq Tru64 Unix objects are PIC.
13311 lt_prog_compiler_pic_CXX=
13312 lt_prog_compiler_static_CXX='-non_shared'
13323 case $cc_basename in
13325 lt_prog_compiler_pic_CXX='-W c,exportall'
13331 netbsd* | netbsdelf*-gnu)
13333 osf3* | osf4* | osf5*)
13334 case $cc_basename in
13336 lt_prog_compiler_wl_CXX='--backend -Wl,'
13339 # Rational C++ 2.4.1
13340 lt_prog_compiler_pic_CXX='-pic'
13343 # Digital/Compaq C++
13344 lt_prog_compiler_wl_CXX='-Wl,'
13345 # Make sure the PIC flag is empty. It appears that all Alpha
13346 # Linux and Compaq Tru64 Unix objects are PIC.
13347 lt_prog_compiler_pic_CXX=
13348 lt_prog_compiler_static_CXX='-non_shared'
13357 case $cc_basename in
13359 # Sun C++ 4.2, 5.x and Centerline C++
13360 lt_prog_compiler_pic_CXX='-KPIC'
13361 lt_prog_compiler_static_CXX='-Bstatic'
13362 lt_prog_compiler_wl_CXX='-Qoption ld '
13365 # Green Hills C++ Compiler
13366 lt_prog_compiler_pic_CXX='-PIC'
13373 case $cc_basename in
13376 lt_prog_compiler_pic_CXX='-pic'
13377 lt_prog_compiler_static_CXX='-Bstatic'
13381 lt_prog_compiler_pic_CXX='-pic'
13388 case $cc_basename in
13390 # NonStop-UX NCC 3.20
13391 lt_prog_compiler_pic_CXX='-KPIC'
13397 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13398 case $cc_basename in
13400 lt_prog_compiler_wl_CXX='-Wl,'
13401 lt_prog_compiler_pic_CXX='-KPIC'
13402 lt_prog_compiler_static_CXX='-Bstatic'
13409 lt_prog_compiler_can_build_shared_CXX=no
13414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13415 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13418 # Check to make sure the PIC flag actually works.
13420 if test -n "$lt_prog_compiler_pic_CXX"; then
13422 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13423 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13424 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 lt_prog_compiler_pic_works_CXX=no
13428 ac_outfile=conftest.$ac_objext
13429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13430 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13431 # Insert the option either (1) after the last *FLAGS variable, or
13432 # (2) before a word containing "conftest.", or (3) at the end.
13433 # Note that $ac_compile itself does not contain backslashes and begins
13434 # with a dollar sign (not a hyphen), so the echo should work correctly.
13435 # The option is referenced via a variable to avoid confusing sed.
13436 lt_compile=`echo "$ac_compile" | $SED \
13437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13439 -e 's:$: $lt_compiler_flag:'`
13440 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13441 (eval "$lt_compile" 2>conftest.err)
13443 cat conftest.err >&5
13444 echo "$as_me:__oline__: \$? = $ac_status" >&5
13445 if (exit $ac_status) && test -s "$ac_outfile"; then
13446 # The compiler can only warn and ignore the option if not recognized
13447 # So say no if there are warnings other than the usual output.
13448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13451 lt_prog_compiler_pic_works_CXX=yes
13457 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13458 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13460 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13461 case $lt_prog_compiler_pic_CXX in
13463 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13466 lt_prog_compiler_pic_CXX=
13467 lt_prog_compiler_can_build_shared_CXX=no
13472 # For platforms which do not support PIC, -DPIC is meaningless:
13474 lt_prog_compiler_pic_CXX=
13477 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13482 # Check to make sure the static flag actually works.
13484 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13485 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13486 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13487 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 lt_prog_compiler_static_works_CXX=no
13491 save_LDFLAGS="$LDFLAGS"
13492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13493 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13495 # The linker can only warn and ignore the option if not recognized
13496 # So say no if there are warnings
13497 if test -s conftest.err; then
13498 # Append any errors to the config.log.
13499 cat conftest.err 1>&5
13500 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13502 if diff conftest.exp conftest.er2 >/dev/null; then
13503 lt_prog_compiler_static_works_CXX=yes
13506 lt_prog_compiler_static_works_CXX=yes
13510 LDFLAGS="$save_LDFLAGS"
13513 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13514 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13516 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13519 lt_prog_compiler_static_CXX=
13523 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13524 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13525 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 lt_cv_prog_compiler_c_o_CXX=no
13529 $rm -r conftest 2>/dev/null
13533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13535 lt_compiler_flag="-o out/conftest2.$ac_objext"
13536 # Insert the option either (1) after the last *FLAGS variable, or
13537 # (2) before a word containing "conftest.", or (3) at the end.
13538 # Note that $ac_compile itself does not contain backslashes and begins
13539 # with a dollar sign (not a hyphen), so the echo should work correctly.
13540 lt_compile=`echo "$ac_compile" | $SED \
13541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13543 -e 's:$: $lt_compiler_flag:'`
13544 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13545 (eval "$lt_compile" 2>out/conftest.err)
13547 cat out/conftest.err >&5
13548 echo "$as_me:__oline__: \$? = $ac_status" >&5
13549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13551 # The compiler can only warn and ignore the option if not recognized
13552 # So say no if there are warnings
13553 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13556 lt_cv_prog_compiler_c_o_CXX=yes
13561 # SGI C++ compiler will create directory out/ii_files/ for
13562 # template instantiation
13563 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13564 $rm out/* && rmdir out
13570 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13571 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13574 hard_links="nottested"
13575 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13576 # do not overwrite the value of need_locks provided by the user
13577 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13578 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13583 ln conftest.a conftest.b 2>&5 || hard_links=no
13584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13585 { echo "$as_me:$LINENO: result: $hard_links" >&5
13586 echo "${ECHO_T}$hard_links" >&6; }
13587 if test "$hard_links" = no; then
13588 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13589 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13596 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13597 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13599 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13602 # If we're using GNU nm, then we don't want the "-C" option.
13603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13605 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'
13607 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'
13611 export_symbols_cmds_CXX="$ltdll_cmds"
13614 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'
13616 linux* | k*bsd*-gnu)
13617 link_all_deplibs_CXX=no
13620 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13624 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13625 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13626 test "$ld_shlibs_CXX" = no && can_build_shared=no
13629 # Do we need to explicitly link libc?
13631 case "x$archive_cmds_need_lc_CXX" in
13633 # Assume -lc should be added
13634 archive_cmds_need_lc_CXX=yes
13636 if test "$enable_shared" = yes && test "$GCC" = yes; then
13637 case $archive_cmds_CXX in
13639 # FIXME: we may have to deal with multi-command sequences.
13642 # Test whether the compiler implicitly links with -lc since on some
13643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13644 # to ld, don't add -lc before -lgcc.
13645 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13651 (eval $ac_compile) 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } 2>conftest.err; then
13657 libobjs=conftest.$ac_objext
13659 wl=$lt_prog_compiler_wl_CXX
13660 pic_flag=$lt_prog_compiler_pic_CXX
13666 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13667 allow_undefined_flag_CXX=
13668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13669 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }
13674 archive_cmds_need_lc_CXX=no
13676 archive_cmds_need_lc_CXX=yes
13678 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13680 cat conftest.err 1>&5
13683 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13684 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13691 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13693 library_names_spec=
13694 libname_spec='lib$name'
13698 postuninstall_cmds=
13702 shlibpath_overrides_runpath=unknown
13704 dynamic_linker="$host_os ld.so"
13705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13706 if test "$GCC" = yes; then
13707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13709 # if the path contains ";" then we assume it to be the separator
13710 # otherwise default to the standard path separator (i.e. ":") - it is
13711 # assumed that no part of a normal pathname contains ";" but that should
13712 # okay in the real world where ";" in dirpaths is itself problematic.
13713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13720 need_lib_prefix=unknown
13721 hardcode_into_libs=no
13723 # when you set need_version to no, make sure it does not cause -set_version
13724 # flags to be left without arguments
13725 need_version=unknown
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13731 shlibpath_var=LIBPATH
13733 # AIX 3 has no versioning support, so we append a major version to the name.
13734 soname_spec='${libname}${release}${shared_ext}$major'
13741 hardcode_into_libs=yes
13742 if test "$host_cpu" = ia64; then
13743 # AIX 5 supports IA64
13744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13745 shlibpath_var=LD_LIBRARY_PATH
13747 # With GCC up to 2.95.x, collect2 would create an import file
13748 # for dependence libraries. The import file would start with
13749 # the line `#! .'. This would cause the generated library to
13750 # depend on `.', always an invalid library. This was fixed in
13751 # development snapshots of GCC prior to 3.0.
13753 aix4 | aix4.[01] | aix4.[01].*)
13754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13759 can_build_shared=no
13763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13764 # soname into executable. Probably we can add versioning support to
13765 # collect2, so additional links can be useful in future.
13766 if test "$aix_use_runtimelinking" = yes; then
13767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13768 # instead of lib<name>.a to let people know that these are not
13769 # typical AIX shared libraries.
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772 # We preserve .a as extension for shared libraries through AIX4.2
13773 # and later when we are not doing run time linking.
13774 library_names_spec='${libname}${release}.a $libname.a'
13775 soname_spec='${libname}${release}${shared_ext}$major'
13777 shlibpath_var=LIBPATH
13782 library_names_spec='$libname.ixlibrary $libname.a'
13783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13784 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'
13788 library_names_spec='${libname}${shared_ext}'
13789 dynamic_linker="$host_os ld.so"
13790 shlibpath_var=LIBRARY_PATH
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13802 # the default ld.so.conf also contains /usr/contrib/lib and
13803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13804 # libtool to hard-code these into programs
13807 cygwin* | mingw* | pw32*)
13808 version_type=windows
13813 case $GCC,$host_os in
13814 yes,cygwin* | yes,mingw* | yes,pw32*)
13815 library_names_spec='$libname.dll.a'
13816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13817 postinstall_cmds='base_file=`basename \${file}`~
13818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13819 dldir=$destdir/`dirname \$dlpath`~
13820 test -d \$dldir || mkdir -p \$dldir~
13821 $install_prog $dir/$dlname \$dldir/$dlname~
13822 chmod a+x \$dldir/$dlname'
13823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13824 dlpath=$dir/\$dldll~
13826 shlibpath_overrides_runpath=yes
13830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13835 # MinGW DLLs use traditional 'lib' prefix
13836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13839 # It is most probably a Windows format PATH printed by
13840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13841 # path with ; separators, and with drive letters. We can handle the
13842 # drive letters (cygwin fileutils understands them), so leave them,
13843 # especially as we might pass files found there to a mingw objdump,
13844 # which wouldn't understand a cygwinified path. Ahh.
13845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13851 # pw32 DLLs use 'pw' prefix rather than 'lib'
13852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13861 dynamic_linker='Win32 ld.exe'
13862 # FIXME: first we should search . and the directory the executable is in
13866 darwin* | rhapsody*)
13867 dynamic_linker="$host_os dyld"
13868 version_type=darwin
13871 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13872 soname_spec='${libname}${release}${major}$shared_ext'
13873 shlibpath_overrides_runpath=yes
13874 shlibpath_var=DYLD_LIBRARY_PATH
13875 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13876 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13877 if test "$GCC" = yes; then
13878 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"`
13880 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13890 soname_spec='${libname}${release}${shared_ext}$major'
13891 shlibpath_var=LD_LIBRARY_PATH
13898 freebsd* | dragonfly*)
13899 # DragonFly does not have aout. When/if they implement a new
13900 # versioning mechanism, adjust this.
13901 if test -x /usr/bin/objformat; then
13902 objformat=`/usr/bin/objformat`
13905 freebsd[123]*) objformat=aout ;;
13906 *) objformat=elf ;;
13909 version_type=freebsd-$objformat
13910 case $version_type in
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13921 shlibpath_var=LD_LIBRARY_PATH
13924 shlibpath_overrides_runpath=yes
13926 freebsd3.[01]* | freebsdelf3.[01]*)
13927 shlibpath_overrides_runpath=yes
13928 hardcode_into_libs=yes
13930 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13931 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13932 shlibpath_overrides_runpath=no
13933 hardcode_into_libs=yes
13935 freebsd*) # from 4.6 on
13936 shlibpath_overrides_runpath=yes
13937 hardcode_into_libs=yes
13946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13947 soname_spec='${libname}${release}${shared_ext}$major'
13948 shlibpath_var=LD_LIBRARY_PATH
13949 hardcode_into_libs=yes
13952 hpux9* | hpux10* | hpux11*)
13953 # Give a soname corresponding to the major version so that dld.sl refuses to
13954 # link against other versions.
13961 hardcode_into_libs=yes
13962 dynamic_linker="$host_os dld.so"
13963 shlibpath_var=LD_LIBRARY_PATH
13964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 if test "X$HPUX_IA64_MODE" = X32; then
13968 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13970 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13976 hardcode_into_libs=yes
13977 dynamic_linker="$host_os dld.sl"
13978 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13987 dynamic_linker="$host_os dld.sl"
13988 shlibpath_var=SHLIB_PATH
13989 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13991 soname_spec='${libname}${release}${shared_ext}$major'
13994 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13995 postinstall_cmds='chmod 555 $lib'
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14003 soname_spec='${libname}${release}${shared_ext}$major'
14004 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=no
14007 hardcode_into_libs=yes
14010 irix5* | irix6* | nonstopux*)
14012 nonstopux*) version_type=nonstopux ;;
14014 if test "$lt_cv_prog_gnu_ld" = yes; then
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14025 irix5* | nonstopux*)
14026 libsuff= shlibsuff=
14029 case $LD in # libtool.m4 will add one of these switches to LD
14030 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14031 libsuff= shlibsuff= libmagic=32-bit;;
14032 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14033 libsuff=32 shlibsuff=N32 libmagic=N32;;
14034 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14035 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14036 *) libsuff= shlibsuff= libmagic=never-match;;
14040 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14041 shlibpath_overrides_runpath=no
14042 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14043 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14044 hardcode_into_libs=yes
14047 # No shared lib support for Linux oldld, aout, or coff.
14048 linux*oldld* | linux*aout* | linux*coff*)
14052 # This must be Linux ELF.
14053 linux* | k*bsd*-gnu)
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 shlibpath_overrides_runpath=no
14062 # This implies no fast_install, which is unacceptable.
14063 # Some rework will be needed to allow for fast_install
14064 # before this can be enabled.
14065 hardcode_into_libs=yes
14067 # Append ld.so.conf contents to the search path
14068 if test -f /etc/ld.so.conf; then
14069 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' ' '`
14070 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14073 # We used to test for /lib/ld.so.1 and disable shared libraries on
14074 # powerpc, because MkLinux only supported shared libraries with the
14075 # GNU dynamic linker. Since this was broken with cross compilers,
14076 # most powerpc-linux boxes support dynamic linking these days and
14077 # people can always --disable-shared, the test was removed, and we
14078 # assume the GNU/Linux dynamic linker is in use.
14079 dynamic_linker='GNU/Linux ld.so'
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14087 soname_spec='${libname}${release}${shared_ext}$major'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 shlibpath_overrides_runpath=no
14090 hardcode_into_libs=yes
14091 dynamic_linker='NetBSD ld.elf_so'
14098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14101 dynamic_linker='NetBSD (a.out) ld.so'
14103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14104 soname_spec='${libname}${release}${shared_ext}$major'
14105 dynamic_linker='NetBSD ld.elf_so'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 shlibpath_overrides_runpath=yes
14109 hardcode_into_libs=yes
14114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 shlibpath_overrides_runpath=yes
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 shlibpath_overrides_runpath=yes
14131 sys_lib_dlsearch_path_spec="/usr/lib"
14133 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14135 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14136 *) need_version=no ;;
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14143 openbsd2.[89] | openbsd2.[89].*)
14144 shlibpath_overrides_runpath=no
14147 shlibpath_overrides_runpath=yes
14151 shlibpath_overrides_runpath=yes
14156 libname_spec='$name'
14159 library_names_spec='$libname${shared_ext} $libname.a'
14160 dynamic_linker='OS/2 ld.exe'
14161 shlibpath_var=LIBPATH
14164 osf3* | osf4* | osf5*)
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14172 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180 soname_spec='${libname}${release}${shared_ext}$major'
14181 shlibpath_var=LD_LIBRARY_PATH
14182 shlibpath_overrides_runpath=yes
14183 hardcode_into_libs=yes
14184 # ldd complains unless libraries are executable
14185 postinstall_cmds='chmod +x $lib'
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14191 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 shlibpath_overrides_runpath=yes
14194 if test "$with_gnu_ld" = yes; then
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 case $host_vendor in
14207 shlibpath_overrides_runpath=no
14209 export_dynamic_flag_spec='${wl}-Blargedynsym'
14210 runpath_var=LD_RUN_PATH
14218 shlibpath_overrides_runpath=no
14219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14225 if test -d /usr/nec ;then
14227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14228 soname_spec='$libname${shared_ext}.$major'
14229 shlibpath_var=LD_LIBRARY_PATH
14233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14234 version_type=freebsd-elf
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 shlibpath_var=LD_LIBRARY_PATH
14240 hardcode_into_libs=yes
14241 if test "$with_gnu_ld" = yes; then
14242 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14243 shlibpath_overrides_runpath=no
14245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14246 shlibpath_overrides_runpath=yes
14249 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14253 sys_lib_dlsearch_path_spec='/usr/lib'
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 shlibpath_var=LD_LIBRARY_PATH
14267 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14268 echo "${ECHO_T}$dynamic_linker" >&6; }
14269 test "$dynamic_linker" = no && can_build_shared=no
14271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14272 if test "$GCC" = yes; then
14273 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14276 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14277 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14278 hardcode_action_CXX=
14279 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14280 test -n "$runpath_var_CXX" || \
14281 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14283 # We can hardcode non-existant directories.
14284 if test "$hardcode_direct_CXX" != no &&
14285 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14286 # have to relink, otherwise we might link with an installed library
14287 # when we should be linking with a yet-to-be-installed one
14288 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14289 test "$hardcode_minus_L_CXX" != no; then
14290 # Linking always hardcodes the temporary library directory.
14291 hardcode_action_CXX=relink
14293 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14294 hardcode_action_CXX=immediate
14297 # We cannot hardcode anything, or else we can only hardcode existing
14299 hardcode_action_CXX=unsupported
14301 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14302 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14304 if test "$hardcode_action_CXX" = relink; then
14305 # Fast installation is not supported
14306 enable_fast_install=no
14307 elif test "$shlibpath_overrides_runpath" = yes ||
14308 test "$enable_shared" = no; then
14309 # Fast installation is not necessary
14310 enable_fast_install=needless
14314 # The else clause should only fire when bootstrapping the
14315 # libtool distribution, otherwise you forgot to ship ltmain.sh
14316 # with your package, and you will get complaints that there are
14317 # no rules to generate ltmain.sh.
14318 if test -f "$ltmain"; then
14319 # See if we are running on zsh, and set the options which allow our commands through
14320 # without removal of \ escapes.
14321 if test -n "${ZSH_VERSION+set}" ; then
14322 setopt NO_GLOB_SUBST
14324 # Now quote all the things that may contain metacharacters while being
14325 # careful not to overquote the AC_SUBSTed values. We take copies of the
14326 # variables and quote the copies for generation of the libtool script.
14327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14331 deplibs_check_method reload_flag reload_cmds need_locks \
14332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14333 lt_cv_sys_global_symbol_to_c_name_address \
14334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14335 old_postinstall_cmds old_postuninstall_cmds \
14339 lt_prog_compiler_wl_CXX \
14340 lt_prog_compiler_pic_CXX \
14341 lt_prog_compiler_static_CXX \
14342 lt_prog_compiler_no_builtin_flag_CXX \
14343 export_dynamic_flag_spec_CXX \
14344 thread_safe_flag_spec_CXX \
14345 whole_archive_flag_spec_CXX \
14346 enable_shared_with_static_runtimes_CXX \
14347 old_archive_cmds_CXX \
14348 old_archive_from_new_cmds_CXX \
14349 predep_objects_CXX \
14350 postdep_objects_CXX \
14353 compiler_lib_search_path_CXX \
14355 archive_expsym_cmds_CXX \
14356 postinstall_cmds_CXX \
14357 postuninstall_cmds_CXX \
14358 old_archive_from_expsyms_cmds_CXX \
14359 allow_undefined_flag_CXX \
14360 no_undefined_flag_CXX \
14361 export_symbols_cmds_CXX \
14362 hardcode_libdir_flag_spec_CXX \
14363 hardcode_libdir_flag_spec_ld_CXX \
14364 hardcode_libdir_separator_CXX \
14365 hardcode_automatic_CXX \
14367 module_expsym_cmds_CXX \
14368 lt_cv_prog_compiler_c_o_CXX \
14369 exclude_expsyms_CXX \
14370 include_expsyms_CXX; do
14373 old_archive_cmds_CXX | \
14374 old_archive_from_new_cmds_CXX | \
14375 archive_cmds_CXX | \
14376 archive_expsym_cmds_CXX | \
14377 module_cmds_CXX | \
14378 module_expsym_cmds_CXX | \
14379 old_archive_from_expsyms_cmds_CXX | \
14380 export_symbols_cmds_CXX | \
14381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14382 postinstall_cmds | postuninstall_cmds | \
14383 old_postinstall_cmds | old_postuninstall_cmds | \
14384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14385 # Double-quote double-evaled strings.
14386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14395 *'\$0 --fallback-echo"')
14396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14402 cat <<__EOF__ >> "$cfgfile"
14403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14407 # Shell to use when invoking shell scripts.
14410 # Whether or not to build shared libraries.
14411 build_libtool_libs=$enable_shared
14413 # Whether or not to build static libraries.
14414 build_old_libs=$enable_static
14416 # Whether or not to add -lc for building shared libraries.
14417 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14419 # Whether or not to disallow shared libs when runtime libs are static
14420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14422 # Whether or not to optimize for fast installation.
14423 fast_install=$enable_fast_install
14426 host_alias=$host_alias
14430 # The build system.
14431 build_alias=$build_alias
14435 # An echo program that does not interpret backslashes.
14440 AR_FLAGS=$lt_AR_FLAGS
14445 # LTCC compiler flags.
14446 LTCFLAGS=$lt_LTCFLAGS
14448 # A language-specific compiler.
14449 CC=$lt_compiler_CXX
14451 # Is the compiler the GNU C compiler?
14457 # The linker used to build libraries.
14460 # Whether we need hard or soft links.
14463 # A BSD-compatible nm program.
14466 # A symbol stripping program
14469 # Used to examine libraries when file_magic_cmd begins "file"
14470 MAGIC_CMD=$MAGIC_CMD
14472 # Used on cygwin: DLL creation program.
14475 # Used on cygwin: object dumper.
14478 # Used on cygwin: assembler.
14481 # The name of the directory that contains temporary libtool files.
14484 # How to create reloadable object files.
14485 reload_flag=$lt_reload_flag
14486 reload_cmds=$lt_reload_cmds
14488 # How to pass a linker flag through the compiler.
14489 wl=$lt_lt_prog_compiler_wl_CXX
14491 # Object file suffix (normally "o").
14492 objext="$ac_objext"
14494 # Old archive suffix (normally "a").
14497 # Shared library suffix (normally ".so").
14498 shrext_cmds='$shrext_cmds'
14500 # Executable file suffix (normally "").
14503 # Additional compiler flags for building library objects.
14504 pic_flag=$lt_lt_prog_compiler_pic_CXX
14507 # What is the maximum length of a command?
14508 max_cmd_len=$lt_cv_sys_max_cmd_len
14510 # Does compiler simultaneously support -c and -o options?
14511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14513 # Must we lock files when doing compilation?
14514 need_locks=$lt_need_locks
14516 # Do we need the lib prefix for modules?
14517 need_lib_prefix=$need_lib_prefix
14519 # Do we need a version for libraries?
14520 need_version=$need_version
14522 # Whether dlopen is supported.
14523 dlopen_support=$enable_dlopen
14525 # Whether dlopen of programs is supported.
14526 dlopen_self=$enable_dlopen_self
14528 # Whether dlopen of statically linked programs is supported.
14529 dlopen_self_static=$enable_dlopen_self_static
14531 # Compiler flag to prevent dynamic linking.
14532 link_static_flag=$lt_lt_prog_compiler_static_CXX
14534 # Compiler flag to turn off builtin functions.
14535 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14537 # Compiler flag to allow reflexive dlopens.
14538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14540 # Compiler flag to generate shared objects directly from archives.
14541 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14543 # Compiler flag to generate thread-safe objects.
14544 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14546 # Library versioning type.
14547 version_type=$version_type
14549 # Format of library name prefix.
14550 libname_spec=$lt_libname_spec
14552 # List of archive names. First name is the real one, the rest are links.
14553 # The last name is the one that the linker finds with -lNAME.
14554 library_names_spec=$lt_library_names_spec
14556 # The coded name of the library, if different from the real name.
14557 soname_spec=$lt_soname_spec
14559 # Commands used to build and install an old-style archive.
14561 old_archive_cmds=$lt_old_archive_cmds_CXX
14562 old_postinstall_cmds=$lt_old_postinstall_cmds
14563 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14565 # Create an old-style archive from a shared archive.
14566 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14568 # Create a temporary old-style archive to link instead of a shared archive.
14569 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14571 # Commands used to build and install a shared archive.
14572 archive_cmds=$lt_archive_cmds_CXX
14573 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14574 postinstall_cmds=$lt_postinstall_cmds
14575 postuninstall_cmds=$lt_postuninstall_cmds
14577 # Commands used to build a loadable module (assumed same as above if empty)
14578 module_cmds=$lt_module_cmds_CXX
14579 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14581 # Commands to strip libraries.
14582 old_striplib=$lt_old_striplib
14583 striplib=$lt_striplib
14585 # Dependencies to place before the objects being linked to create a
14587 predep_objects=$lt_predep_objects_CXX
14589 # Dependencies to place after the objects being linked to create a
14591 postdep_objects=$lt_postdep_objects_CXX
14593 # Dependencies to place before the objects being linked to create a
14595 predeps=$lt_predeps_CXX
14597 # Dependencies to place after the objects being linked to create a
14599 postdeps=$lt_postdeps_CXX
14601 # The library search path used internally by the compiler when linking
14602 # a shared library.
14603 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14605 # Method to check whether dependent libraries are shared objects.
14606 deplibs_check_method=$lt_deplibs_check_method
14608 # Command to use when deplibs_check_method == file_magic.
14609 file_magic_cmd=$lt_file_magic_cmd
14611 # Flag that allows shared libraries with undefined symbols to be built.
14612 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14614 # Flag that forces no undefined symbols.
14615 no_undefined_flag=$lt_no_undefined_flag_CXX
14617 # Commands used to finish a libtool library installation in a directory.
14618 finish_cmds=$lt_finish_cmds
14620 # Same as above, but a single script fragment to be evaled but not shown.
14621 finish_eval=$lt_finish_eval
14623 # Take the output of nm and produce a listing of raw symbols and C names.
14624 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14626 # Transform the output of nm in a proper C declaration
14627 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14629 # Transform the output of nm in a C name address pair
14630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14632 # This is the shared library runtime path variable.
14633 runpath_var=$runpath_var
14635 # This is the shared library path variable.
14636 shlibpath_var=$shlibpath_var
14638 # Is shlibpath searched before the hard-coded library search path?
14639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14641 # How to hardcode a shared library path into an executable.
14642 hardcode_action=$hardcode_action_CXX
14644 # Whether we should hardcode library paths into libraries.
14645 hardcode_into_libs=$hardcode_into_libs
14647 # Flag to hardcode \$libdir into a binary during linking.
14648 # This must work even if \$libdir does not exist.
14649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14651 # If ld is used when linking, flag to hardcode \$libdir into
14652 # a binary during linking. This must work even if \$libdir does
14654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14656 # Whether we need a single -rpath flag with a separated argument.
14657 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14659 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14660 # resulting binary.
14661 hardcode_direct=$hardcode_direct_CXX
14663 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14664 # resulting binary.
14665 hardcode_minus_L=$hardcode_minus_L_CXX
14667 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14668 # the resulting binary.
14669 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14671 # Set to yes if building a shared library automatically hardcodes DIR into the library
14672 # and all subsequent libraries and executables linked against it.
14673 hardcode_automatic=$hardcode_automatic_CXX
14675 # Variables whose values should be saved in libtool wrapper scripts and
14676 # restored at relink time.
14677 variables_saved_for_relink="$variables_saved_for_relink"
14679 # Whether libtool must link a program against all its dependency libraries.
14680 link_all_deplibs=$link_all_deplibs_CXX
14682 # Compile-time system search path for libraries
14683 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14685 # Run-time system search path for libraries
14686 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14688 # Fix the shell variable \$srcfile for the compiler.
14689 fix_srcfile_path="$fix_srcfile_path_CXX"
14691 # Set to yes if exported symbols are required.
14692 always_export_symbols=$always_export_symbols_CXX
14694 # The commands to list exported symbols.
14695 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14697 # The commands to extract the exported symbol list from a shared archive.
14698 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14700 # Symbols that should not be listed in the preloaded symbols.
14701 exclude_expsyms=$lt_exclude_expsyms_CXX
14703 # Symbols that must always be exported.
14704 include_expsyms=$lt_include_expsyms_CXX
14706 # ### END LIBTOOL TAG CONFIG: $tagname
14712 # If there is no Makefile yet, we rely on a make rule to execute
14713 # `config.status --recheck' to rerun these tests and create the
14714 # libtool script then.
14715 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14716 if test -f "$ltmain_in"; then
14717 test -f Makefile && make "$ltmain"
14723 ac_cpp='$CPP $CPPFLAGS'
14724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14732 with_gnu_ldcxx=$with_gnu_ld
14733 with_gnu_ld=$lt_save_with_gnu_ld
14734 lt_cv_path_LDCXX=$lt_cv_path_LD
14735 lt_cv_path_LD=$lt_save_path_LD
14736 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14737 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14745 if test -n "$F77" && test "X$F77" != "Xno"; then
14748 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14749 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14750 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14753 archive_cmds_need_lc_F77=no
14754 allow_undefined_flag_F77=
14755 always_export_symbols_F77=no
14756 archive_expsym_cmds_F77=
14757 export_dynamic_flag_spec_F77=
14758 hardcode_direct_F77=no
14759 hardcode_libdir_flag_spec_F77=
14760 hardcode_libdir_flag_spec_ld_F77=
14761 hardcode_libdir_separator_F77=
14762 hardcode_minus_L_F77=no
14763 hardcode_automatic_F77=no
14765 module_expsym_cmds_F77=
14766 link_all_deplibs_F77=unknown
14767 old_archive_cmds_F77=$old_archive_cmds
14768 no_undefined_flag_F77=
14769 whole_archive_flag_spec_F77=
14770 enable_shared_with_static_runtimes_F77=no
14772 # Source file extension for f77 test sources.
14775 # Object file extension for compiled f77 test sources.
14779 # Code to be used in simple compile tests
14780 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14782 # Code to be used in simple link tests
14783 lt_simple_link_test_code=" program t\n end\n"
14785 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14787 # If no C compiler was specified, use CC.
14790 # If no C compiler flags were specified, use CFLAGS.
14791 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14793 # Allow CC to be a program name with arguments.
14797 # save warnings/boilerplate of simple test code
14798 ac_outfile=conftest.$ac_objext
14799 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14800 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14801 _lt_compiler_boilerplate=`cat conftest.err`
14804 ac_outfile=conftest.$ac_objext
14805 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14806 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14807 _lt_linker_boilerplate=`cat conftest.err`
14811 # Allow CC to be a program name with arguments.
14816 for cc_temp in $compiler""; do
14818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14824 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14827 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14828 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14829 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14830 echo "${ECHO_T}$can_build_shared" >&6; }
14832 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14833 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14834 test "$can_build_shared" = "no" && enable_shared=no
14836 # On AIX, shared libraries and static libraries use the same namespace, and
14837 # are all built from PIC.
14840 test "$enable_shared" = yes && enable_static=no
14841 if test -n "$RANLIB"; then
14842 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14843 postinstall_cmds='$RANLIB $lib'
14847 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14848 test "$enable_shared" = yes && enable_static=no
14852 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14853 echo "${ECHO_T}$enable_shared" >&6; }
14855 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14856 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14857 # Make sure either enable_shared or enable_static is yes.
14858 test "$enable_shared" = yes || enable_static=yes
14859 { echo "$as_me:$LINENO: result: $enable_static" >&5
14860 echo "${ECHO_T}$enable_static" >&6; }
14865 lt_prog_compiler_wl_F77=
14866 lt_prog_compiler_pic_F77=
14867 lt_prog_compiler_static_F77=
14869 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14870 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14872 if test "$GCC" = yes; then
14873 lt_prog_compiler_wl_F77='-Wl,'
14874 lt_prog_compiler_static_F77='-static'
14878 # All AIX code is PIC.
14879 if test "$host_cpu" = ia64; then
14880 # AIX 5 now supports IA64 processor
14881 lt_prog_compiler_static_F77='-Bstatic'
14886 # FIXME: we need at least 68020 code to build shared libraries, but
14887 # adding the `-m68020' flag to GCC prevents building anything better,
14889 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14892 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14893 # PIC is the default for these OSes.
14896 mingw* | pw32* | os2*)
14897 # This hack is so that the source file can tell whether it is being
14898 # built for inclusion in a dll (and should export symbols for example).
14899 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14902 darwin* | rhapsody*)
14903 # PIC is the default on this platform
14904 # Common symbols not allowed in MH_DYLIB files
14905 lt_prog_compiler_pic_F77='-fno-common'
14909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14910 # Instead, we relocate shared libraries at runtime.
14914 # Just because we use GCC doesn't mean we suddenly get shared libraries
14915 # on systems that don't support them.
14916 lt_prog_compiler_can_build_shared_F77=no
14921 if test -d /usr/nec; then
14922 lt_prog_compiler_pic_F77=-Kconform_pic
14927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14928 # not for PA HP-UX.
14934 lt_prog_compiler_pic_F77='-fPIC'
14940 lt_prog_compiler_pic_F77='-fPIC'
14944 # PORTME Check for flag to pass linker flags through the system compiler.
14947 lt_prog_compiler_wl_F77='-Wl,'
14948 if test "$host_cpu" = ia64; then
14949 # AIX 5 now supports IA64 processor
14950 lt_prog_compiler_static_F77='-Bstatic'
14952 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14956 # PIC is the default on this platform
14957 # Common symbols not allowed in MH_DYLIB files
14958 case $cc_basename in
14960 lt_prog_compiler_pic_F77='-qnocommon'
14961 lt_prog_compiler_wl_F77='-Wl,'
14966 mingw* | pw32* | os2*)
14967 # This hack is so that the source file can tell whether it is being
14968 # built for inclusion in a dll (and should export symbols for example).
14969 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14972 hpux9* | hpux10* | hpux11*)
14973 lt_prog_compiler_wl_F77='-Wl,'
14974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14975 # not for PA HP-UX.
14981 lt_prog_compiler_pic_F77='+Z'
14984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14985 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14988 irix5* | irix6* | nonstopux*)
14989 lt_prog_compiler_wl_F77='-Wl,'
14990 # PIC (with -KPIC) is the default.
14991 lt_prog_compiler_static_F77='-non_shared'
14995 lt_prog_compiler_pic_F77='-KPIC'
14996 lt_prog_compiler_static_F77='-Bstatic'
14999 linux* | k*bsd*-gnu)
15000 case $cc_basename in
15002 lt_prog_compiler_wl_F77='-Wl,'
15003 lt_prog_compiler_pic_F77='-KPIC'
15004 lt_prog_compiler_static_F77='-static'
15006 pgcc* | pgf77* | pgf90* | pgf95*)
15007 # Portland Group compilers (*not* the Pentium gcc compiler,
15008 # which looks to be a dead project)
15009 lt_prog_compiler_wl_F77='-Wl,'
15010 lt_prog_compiler_pic_F77='-fpic'
15011 lt_prog_compiler_static_F77='-Bstatic'
15014 lt_prog_compiler_wl_F77='-Wl,'
15015 # All Alpha code is PIC.
15016 lt_prog_compiler_static_F77='-non_shared'
15021 osf3* | osf4* | osf5*)
15022 lt_prog_compiler_wl_F77='-Wl,'
15023 # All OSF/1 code is PIC.
15024 lt_prog_compiler_static_F77='-non_shared'
15028 lt_prog_compiler_pic_F77='-KPIC'
15029 lt_prog_compiler_static_F77='-Bstatic'
15030 case $cc_basename in
15031 f77* | f90* | f95*)
15032 lt_prog_compiler_wl_F77='-Qoption ld ';;
15034 lt_prog_compiler_wl_F77='-Wl,';;
15039 lt_prog_compiler_wl_F77='-Qoption ld '
15040 lt_prog_compiler_pic_F77='-PIC'
15041 lt_prog_compiler_static_F77='-Bstatic'
15044 sysv4 | sysv4.2uw2* | sysv4.3*)
15045 lt_prog_compiler_wl_F77='-Wl,'
15046 lt_prog_compiler_pic_F77='-KPIC'
15047 lt_prog_compiler_static_F77='-Bstatic'
15051 if test -d /usr/nec ;then
15052 lt_prog_compiler_pic_F77='-Kconform_pic'
15053 lt_prog_compiler_static_F77='-Bstatic'
15057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15058 lt_prog_compiler_wl_F77='-Wl,'
15059 lt_prog_compiler_pic_F77='-KPIC'
15060 lt_prog_compiler_static_F77='-Bstatic'
15064 lt_prog_compiler_wl_F77='-Wl,'
15065 lt_prog_compiler_can_build_shared_F77=no
15069 lt_prog_compiler_pic_F77='-pic'
15070 lt_prog_compiler_static_F77='-Bstatic'
15074 lt_prog_compiler_can_build_shared_F77=no
15079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15083 # Check to make sure the PIC flag actually works.
15085 if test -n "$lt_prog_compiler_pic_F77"; then
15087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15089 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 lt_prog_compiler_pic_works_F77=no
15093 ac_outfile=conftest.$ac_objext
15094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15095 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15096 # Insert the option either (1) after the last *FLAGS variable, or
15097 # (2) before a word containing "conftest.", or (3) at the end.
15098 # Note that $ac_compile itself does not contain backslashes and begins
15099 # with a dollar sign (not a hyphen), so the echo should work correctly.
15100 # The option is referenced via a variable to avoid confusing sed.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>conftest.err)
15108 cat conftest.err >&5
15109 echo "$as_me:__oline__: \$? = $ac_status" >&5
15110 if (exit $ac_status) && test -s "$ac_outfile"; then
15111 # The compiler can only warn and ignore the option if not recognized
15112 # So say no if there are warnings other than the usual output.
15113 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15116 lt_prog_compiler_pic_works_F77=yes
15122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15123 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15125 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15126 case $lt_prog_compiler_pic_F77 in
15128 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15131 lt_prog_compiler_pic_F77=
15132 lt_prog_compiler_can_build_shared_F77=no
15137 # For platforms which do not support PIC, -DPIC is meaningless:
15139 lt_prog_compiler_pic_F77=
15142 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15147 # Check to make sure the static flag actually works.
15149 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15152 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 lt_prog_compiler_static_works_F77=no
15156 save_LDFLAGS="$LDFLAGS"
15157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15158 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15160 # The linker can only warn and ignore the option if not recognized
15161 # So say no if there are warnings
15162 if test -s conftest.err; then
15163 # Append any errors to the config.log.
15164 cat conftest.err 1>&5
15165 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15167 if diff conftest.exp conftest.er2 >/dev/null; then
15168 lt_prog_compiler_static_works_F77=yes
15171 lt_prog_compiler_static_works_F77=yes
15175 LDFLAGS="$save_LDFLAGS"
15178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15179 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15181 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15184 lt_prog_compiler_static_F77=
15188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15190 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 lt_cv_prog_compiler_c_o_F77=no
15194 $rm -r conftest 2>/dev/null
15198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15200 lt_compiler_flag="-o out/conftest2.$ac_objext"
15201 # Insert the option either (1) after the last *FLAGS variable, or
15202 # (2) before a word containing "conftest.", or (3) at the end.
15203 # Note that $ac_compile itself does not contain backslashes and begins
15204 # with a dollar sign (not a hyphen), so the echo should work correctly.
15205 lt_compile=`echo "$ac_compile" | $SED \
15206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15208 -e 's:$: $lt_compiler_flag:'`
15209 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15210 (eval "$lt_compile" 2>out/conftest.err)
15212 cat out/conftest.err >&5
15213 echo "$as_me:__oline__: \$? = $ac_status" >&5
15214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15216 # The compiler can only warn and ignore the option if not recognized
15217 # So say no if there are warnings
15218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15221 lt_cv_prog_compiler_c_o_F77=yes
15226 # SGI C++ compiler will create directory out/ii_files/ for
15227 # template instantiation
15228 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15229 $rm out/* && rmdir out
15235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15239 hard_links="nottested"
15240 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15241 # do not overwrite the value of need_locks provided by the user
15242 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15248 ln conftest.a conftest.b 2>&5 || hard_links=no
15249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15250 { echo "$as_me:$LINENO: result: $hard_links" >&5
15251 echo "${ECHO_T}$hard_links" >&6; }
15252 if test "$hard_links" = no; then
15253 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15265 allow_undefined_flag_F77=
15266 enable_shared_with_static_runtimes_F77=no
15268 archive_expsym_cmds_F77=
15269 old_archive_From_new_cmds_F77=
15270 old_archive_from_expsyms_cmds_F77=
15271 export_dynamic_flag_spec_F77=
15272 whole_archive_flag_spec_F77=
15273 thread_safe_flag_spec_F77=
15274 hardcode_libdir_flag_spec_F77=
15275 hardcode_libdir_flag_spec_ld_F77=
15276 hardcode_libdir_separator_F77=
15277 hardcode_direct_F77=no
15278 hardcode_minus_L_F77=no
15279 hardcode_shlibpath_var_F77=unsupported
15280 link_all_deplibs_F77=unknown
15281 hardcode_automatic_F77=no
15283 module_expsym_cmds_F77=
15284 always_export_symbols_F77=no
15285 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15286 # include_expsyms should be a list of space-separated symbols to be *always*
15287 # included in the symbol list
15288 include_expsyms_F77=
15289 # exclude_expsyms can be an extended regexp of symbols to exclude
15290 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15291 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15292 # as well as any symbol that contains `d'.
15293 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15294 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15295 # platforms (ab)use it in PIC code, but their linkers get confused if
15296 # the symbol is explicitly referenced. Since portable code cannot
15297 # rely on this symbol name, it's probably fine to never include it in
15298 # preloaded symbol tables.
15299 extract_expsyms_cmds=
15300 # Just being paranoid about ensuring that cc_basename is set.
15301 for cc_temp in $compiler""; do
15303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15312 cygwin* | mingw* | pw32*)
15313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15314 # When not using gcc, we currently assume that we are using
15315 # Microsoft Visual C++.
15316 if test "$GCC" != yes; then
15321 # we just hope/assume this is gcc and not c89 (= MSVC++)
15330 if test "$with_gnu_ld" = yes; then
15331 # If archive_cmds runs LD, not CC, wlarc should be empty
15334 # Set some defaults for GNU ld with shared library support. These
15335 # are reset later if shared libraries are not supported. Putting them
15336 # here allows them to be overridden if necessary.
15337 runpath_var=LD_RUN_PATH
15338 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15339 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15340 # ancient GNU ld didn't support --whole-archive et. al.
15341 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15342 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15344 whole_archive_flag_spec_F77=
15346 supports_anon_versioning=no
15347 case `$LD -v 2>/dev/null` in
15348 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15349 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15350 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15351 *\ 2.11.*) ;; # other 2.11 versions
15352 *) supports_anon_versioning=yes ;;
15355 # See if GNU ld supports shared libraries.
15357 aix3* | aix4* | aix5*)
15358 # On AIX/PPC, the GNU linker is very broken
15359 if test "$host_cpu" != ia64; then
15363 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15364 *** to be unable to reliably create shared libraries on AIX.
15365 *** Therefore, libtool is disabling shared libraries support. If you
15366 *** really care for shared libraries, you may want to modify your PATH
15367 *** so that a non-GNU linker is found, and then restart.
15374 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)'
15375 hardcode_libdir_flag_spec_F77='-L$libdir'
15376 hardcode_minus_L_F77=yes
15378 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15379 # that the semantics of dynamic libraries on AmigaOS, at least up
15380 # to version 4, is to share data among multiple programs linked
15381 # with the same dynamic library. Since this doesn't match the
15382 # behavior of shared libraries on other platforms, we can't use
15388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15389 allow_undefined_flag_F77=unsupported
15390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15391 # support --undefined. This deserves some investigation. FIXME
15392 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15398 cygwin* | mingw* | pw32*)
15399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15400 # as there is no search path for DLLs.
15401 hardcode_libdir_flag_spec_F77='-L$libdir'
15402 allow_undefined_flag_F77=unsupported
15403 always_export_symbols_F77=no
15404 enable_shared_with_static_runtimes_F77=yes
15405 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15407 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15408 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15409 # If the export-symbols file already is a .def file (1st line
15410 # is EXPORTS), use it as is; otherwise, prepend...
15411 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15412 cp $export_symbols $output_objdir/$soname.def;
15414 echo EXPORTS > $output_objdir/$soname.def;
15415 cat $export_symbols >> $output_objdir/$soname.def;
15417 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15424 hardcode_direct_F77=no
15425 hardcode_shlibpath_var_F77=no
15426 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15427 export_dynamic_flag_spec_F77='${wl}-E'
15428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15429 # Instead, shared libraries are loaded at an image base (0x10000000 by
15430 # default) and relocated if they conflict, which is a slow very memory
15431 # consuming and fragmenting process. To avoid this, we pick a random,
15432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15434 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'
15435 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'
15438 linux* | k*bsd*-gnu)
15439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15441 case $cc_basename,$host_cpu in
15442 pgcc*) # Portland Group C compiler
15443 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'
15444 tmp_addflag=' $pic_flag'
15446 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15447 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'
15448 tmp_addflag=' $pic_flag -Mnomain' ;;
15449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15450 tmp_addflag=' -i_dynamic' ;;
15451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15452 tmp_addflag=' -i_dynamic -nofor_main' ;;
15453 ifc* | ifort*) # Intel Fortran compiler
15454 tmp_addflag=' -nofor_main' ;;
15456 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15458 if test $supports_anon_versioning = yes; then
15459 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15461 $echo "local: *; };" >> $output_objdir/$libname.ver~
15462 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15464 link_all_deplibs_F77=no
15470 netbsd* | netbsdelf*-gnu)
15471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15472 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15475 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15476 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15481 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15485 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15486 *** create shared libraries on Solaris systems. Therefore, libtool
15487 *** is disabling shared libraries support. We urge you to upgrade GNU
15488 *** binutils to release 2.9.1 or newer. Another option is to modify
15489 *** your PATH or compiler configuration so that the native linker is
15490 *** used, and then restart.
15493 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15502 case `$LD -v 2>&1` in
15503 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15507 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15508 *** reliably create shared libraries on SCO systems. Therefore, libtool
15509 *** is disabling shared libraries support. We urge you to upgrade GNU
15510 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15511 *** your PATH or compiler configuration so that the native linker is
15512 *** used, and then restart.
15517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15518 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15519 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15520 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15529 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15531 hardcode_direct_F77=yes
15532 hardcode_shlibpath_var_F77=no
15536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15545 if test "$ld_shlibs_F77" = no; then
15547 hardcode_libdir_flag_spec_F77=
15548 export_dynamic_flag_spec_F77=
15549 whole_archive_flag_spec_F77=
15552 # PORTME fill in a description of your system's linker (not GNU ld)
15555 allow_undefined_flag_F77=unsupported
15556 always_export_symbols_F77=yes
15557 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'
15558 # Note: this linker hardcodes the directories in LIBPATH if there
15559 # are no directories specified by -L.
15560 hardcode_minus_L_F77=yes
15561 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15562 # Neither direct hardcoding nor static linking is supported with a
15564 hardcode_direct_F77=unsupported
15569 if test "$host_cpu" = ia64; then
15570 # On IA64, the linker does run time linking by default, so we don't
15571 # have to do anything special.
15572 aix_use_runtimelinking=no
15573 exp_sym_flag='-Bexport'
15576 # If we're using GNU nm, then we don't want the "-C" option.
15577 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15578 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15579 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'
15581 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'
15583 aix_use_runtimelinking=no
15585 # Test if we are trying to use run time linking or normal
15586 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15587 # need to do runtime linking.
15588 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15589 for ld_flag in $LDFLAGS; do
15590 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15591 aix_use_runtimelinking=yes
15598 exp_sym_flag='-bexport'
15599 no_entry_flag='-bnoentry'
15602 # When large executables or shared objects are built, AIX ld can
15603 # have problems creating the table of contents. If linking a library
15604 # or program results in "error TOC overflow" add -mminimal-toc to
15605 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15606 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15608 archive_cmds_F77=''
15609 hardcode_direct_F77=yes
15610 hardcode_libdir_separator_F77=':'
15611 link_all_deplibs_F77=yes
15613 if test "$GCC" = yes; then
15614 case $host_os in aix4.[012]|aix4.[012].*)
15615 # We only want to do this on AIX 4.2 and lower, the check
15616 # below for broken collect2 doesn't work under 4.3+
15617 collect2name=`${CC} -print-prog-name=collect2`
15618 if test -f "$collect2name" && \
15619 strings "$collect2name" | grep resolve_lib_name >/dev/null
15621 # We have reworked collect2
15622 hardcode_direct_F77=yes
15624 # We have old collect2
15625 hardcode_direct_F77=unsupported
15626 # It fails to find uninstalled libraries when the uninstalled
15627 # path is not listed in the libpath. Setting hardcode_minus_L
15628 # to unsupported forces relinking
15629 hardcode_minus_L_F77=yes
15630 hardcode_libdir_flag_spec_F77='-L$libdir'
15631 hardcode_libdir_separator_F77=
15635 shared_flag='-shared'
15636 if test "$aix_use_runtimelinking" = yes; then
15637 shared_flag="$shared_flag "'${wl}-G'
15641 if test "$host_cpu" = ia64; then
15642 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15643 # chokes on -Wl,-G. The following line is correct:
15646 if test "$aix_use_runtimelinking" = yes; then
15647 shared_flag='${wl}-G'
15649 shared_flag='${wl}-bM:SRE'
15654 # It seems that -bexpall does not export symbols beginning with
15655 # underscore (_), so it is better to generate a list of symbols to export.
15656 always_export_symbols_F77=yes
15657 if test "$aix_use_runtimelinking" = yes; then
15658 # Warning - without using the other runtime loading flags (-brtl),
15659 # -berok will link without error, but may produce a broken library.
15660 allow_undefined_flag_F77='-berok'
15661 # Determine the default libpath from the value encoded in an empty executable.
15662 cat >conftest.$ac_ext <<_ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (ac_try="$ac_link"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_link") 2>conftest.er1
15676 grep -v '^ *+' conftest.er1 >conftest.err
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_f77_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest$ac_exeext &&
15684 $as_test_x conftest$ac_exeext; then
15686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15688 # Check for a 64-bit object if we didn't find anything.
15689 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; }
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15699 conftest$ac_exeext conftest.$ac_ext
15700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15702 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15703 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"
15705 if test "$host_cpu" = ia64; then
15706 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15707 allow_undefined_flag_F77="-z nodefs"
15708 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"
15710 # Determine the default libpath from the value encoded in an empty executable.
15711 cat >conftest.$ac_ext <<_ACEOF
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (ac_try="$ac_link"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_link") 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } && {
15730 test -z "$ac_f77_werror_flag" ||
15731 test ! -s conftest.err
15732 } && test -s conftest$ac_exeext &&
15733 $as_test_x conftest$ac_exeext; then
15735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15737 # Check for a 64-bit object if we didn't find anything.
15738 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; }
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15748 conftest$ac_exeext conftest.$ac_ext
15749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15751 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15752 # Warning - without using the other run time loading flags,
15753 # -berok will link without error, but may produce a broken library.
15754 no_undefined_flag_F77=' ${wl}-bernotok'
15755 allow_undefined_flag_F77=' ${wl}-berok'
15756 # Exported symbols can be pulled into shared objects from archives
15757 whole_archive_flag_spec_F77='$convenience'
15758 archive_cmds_need_lc_F77=yes
15759 # This is similar to how AIX traditionally builds its shared libraries.
15760 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'
15766 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)'
15767 hardcode_libdir_flag_spec_F77='-L$libdir'
15768 hardcode_minus_L_F77=yes
15769 # see comment about different semantics on the GNU ld section
15774 export_dynamic_flag_spec_F77=-rdynamic
15777 cygwin* | mingw* | pw32*)
15778 # When not using gcc, we currently assume that we are using
15779 # Microsoft Visual C++.
15780 # hardcode_libdir_flag_spec is actually meaningless, as there is
15781 # no search path for DLLs.
15782 hardcode_libdir_flag_spec_F77=' '
15783 allow_undefined_flag_F77=unsupported
15784 # Tell ltmain to make .lib files, not .a files.
15786 # Tell ltmain to make .dll files, not .so files.
15788 # FIXME: Setting linknames here is a bad hack.
15789 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15790 # The linker will automatically build a .lib file if we build a DLL.
15791 old_archive_From_new_cmds_F77='true'
15792 # FIXME: Should let the user specify the lib program.
15793 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15794 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15795 enable_shared_with_static_runtimes_F77=yes
15798 darwin* | rhapsody*)
15800 rhapsody* | darwin1.[012])
15801 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15804 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15805 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15807 case ${MACOSX_DEPLOYMENT_TARGET} in
15809 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15812 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15818 archive_cmds_need_lc_F77=no
15819 hardcode_direct_F77=no
15820 hardcode_automatic_F77=yes
15821 hardcode_shlibpath_var_F77=unsupported
15822 whole_archive_flag_spec_F77=''
15823 link_all_deplibs_F77=yes
15824 if test "$GCC" = yes ; then
15825 output_verbose_link_cmd='echo'
15826 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15827 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15829 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}'
15830 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}'
15832 case $cc_basename in
15834 output_verbose_link_cmd='echo'
15835 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15836 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15838 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}'
15839 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}'
15849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850 hardcode_libdir_flag_spec_F77='-L$libdir'
15851 hardcode_shlibpath_var_F77=no
15858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15859 # support. Future versions do this automatically, but an explicit c++rt0.o
15860 # does not break anything, and helps significantly (at the cost of a little
15863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15864 hardcode_libdir_flag_spec_F77='-R$libdir'
15865 hardcode_direct_F77=yes
15866 hardcode_shlibpath_var_F77=no
15869 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15871 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15872 hardcode_direct_F77=yes
15873 hardcode_minus_L_F77=yes
15874 hardcode_shlibpath_var_F77=no
15877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15878 freebsd* | dragonfly*)
15879 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15880 hardcode_libdir_flag_spec_F77='-R$libdir'
15881 hardcode_direct_F77=yes
15882 hardcode_shlibpath_var_F77=no
15886 if test "$GCC" = yes; then
15887 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'
15889 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'
15891 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15892 hardcode_libdir_separator_F77=:
15893 hardcode_direct_F77=yes
15895 # hardcode_minus_L: Not really in the search PATH,
15896 # but as the default location of the library.
15897 hardcode_minus_L_F77=yes
15898 export_dynamic_flag_spec_F77='${wl}-E'
15902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15903 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15905 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15907 if test "$with_gnu_ld" = no; then
15908 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15909 hardcode_libdir_separator_F77=:
15911 hardcode_direct_F77=yes
15912 export_dynamic_flag_spec_F77='${wl}-E'
15914 # hardcode_minus_L: Not really in the search PATH,
15915 # but as the default location of the library.
15916 hardcode_minus_L_F77=yes
15921 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15924 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15927 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15930 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15936 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15939 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15942 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15946 if test "$with_gnu_ld" = no; then
15947 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15948 hardcode_libdir_separator_F77=:
15952 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15953 hardcode_direct_F77=no
15954 hardcode_shlibpath_var_F77=no
15957 hardcode_direct_F77=yes
15958 export_dynamic_flag_spec_F77='${wl}-E'
15960 # hardcode_minus_L: Not really in the search PATH,
15961 # but as the default location of the library.
15962 hardcode_minus_L_F77=yes
15968 irix5* | irix6* | nonstopux*)
15969 if test "$GCC" = yes; then
15970 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'
15972 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'
15973 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15975 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15976 hardcode_libdir_separator_F77=:
15977 link_all_deplibs_F77=yes
15980 netbsd* | netbsdelf*-gnu)
15981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15982 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15984 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15986 hardcode_libdir_flag_spec_F77='-R$libdir'
15987 hardcode_direct_F77=yes
15988 hardcode_shlibpath_var_F77=no
15992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993 hardcode_direct_F77=yes
15994 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15995 hardcode_libdir_separator_F77=:
15996 hardcode_shlibpath_var_F77=no
16000 hardcode_direct_F77=yes
16001 hardcode_shlibpath_var_F77=no
16002 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16003 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16004 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16005 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16006 export_dynamic_flag_spec_F77='${wl}-E'
16009 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16010 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16011 hardcode_libdir_flag_spec_F77='-R$libdir'
16014 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16015 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16022 hardcode_libdir_flag_spec_F77='-L$libdir'
16023 hardcode_minus_L_F77=yes
16024 allow_undefined_flag_F77=unsupported
16025 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'
16026 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16030 if test "$GCC" = yes; then
16031 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16032 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'
16034 allow_undefined_flag_F77=' -expect_unresolved \*'
16035 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'
16037 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16038 hardcode_libdir_separator_F77=:
16041 osf4* | osf5*) # as osf3* with the addition of -msym flag
16042 if test "$GCC" = yes; then
16043 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16044 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'
16045 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16047 allow_undefined_flag_F77=' -expect_unresolved \*'
16048 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'
16049 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~
16050 $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'
16052 # Both c and cxx compiler support -rpath directly
16053 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16055 hardcode_libdir_separator_F77=:
16059 no_undefined_flag_F77=' -z text'
16060 if test "$GCC" = yes; then
16062 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16063 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16064 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16067 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16071 hardcode_libdir_flag_spec_F77='-R$libdir'
16072 hardcode_shlibpath_var_F77=no
16074 solaris2.[0-5] | solaris2.[0-5].*) ;;
16076 # The compiler driver will combine linker options so we
16077 # cannot just pass the convience library names through
16078 # without $wl, iff we do not link with $LD.
16079 # Luckily, gcc supports the same syntax we need for Sun Studio.
16080 # Supported since Solaris 2.6 (maybe 2.5.1?)
16083 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16085 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' ;;
16088 link_all_deplibs_F77=yes
16092 if test "x$host_vendor" = xsequent; then
16093 # Use $CC to link under sequent, because it throws in some extra .o
16094 # files that make .init and .fini sections work.
16095 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16097 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16099 hardcode_libdir_flag_spec_F77='-L$libdir'
16100 hardcode_direct_F77=yes
16101 hardcode_minus_L_F77=yes
16102 hardcode_shlibpath_var_F77=no
16106 case $host_vendor in
16108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16109 hardcode_direct_F77=yes # is this really true???
16112 ## LD is ld it makes a PLAMLIB
16113 ## CC just makes a GrossModule.
16114 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16115 reload_cmds_F77='$CC -r -o $output$reload_objs'
16116 hardcode_direct_F77=no
16119 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16123 runpath_var='LD_RUN_PATH'
16124 hardcode_shlibpath_var_F77=no
16128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129 hardcode_shlibpath_var_F77=no
16130 export_dynamic_flag_spec_F77='-Bexport'
16134 if test -d /usr/nec; then
16135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_shlibpath_var_F77=no
16137 runpath_var=LD_RUN_PATH
16138 hardcode_runpath_var=yes
16143 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16144 no_undefined_flag_F77='${wl}-z,text'
16145 archive_cmds_need_lc_F77=no
16146 hardcode_shlibpath_var_F77=no
16147 runpath_var='LD_RUN_PATH'
16149 if test "$GCC" = yes; then
16150 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16151 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16153 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16154 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 sysv5* | sco3.2v5* | sco5v6*)
16159 # Note: We can NOT use -z defs as we might desire, because we do not
16160 # link with -lc, and that would cause any symbols used from libc to
16161 # always be unresolved, which means just about no library would
16162 # ever link correctly. If we're not using GNU ld we use -z text
16163 # though, which does catch some bad symbols but isn't as heavy-handed
16165 no_undefined_flag_F77='${wl}-z,text'
16166 allow_undefined_flag_F77='${wl}-z,nodefs'
16167 archive_cmds_need_lc_F77=no
16168 hardcode_shlibpath_var_F77=no
16169 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16170 hardcode_libdir_separator_F77=':'
16171 link_all_deplibs_F77=yes
16172 export_dynamic_flag_spec_F77='${wl}-Bexport'
16173 runpath_var='LD_RUN_PATH'
16175 if test "$GCC" = yes; then
16176 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16179 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16180 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16185 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_libdir_flag_spec_F77='-L$libdir'
16187 hardcode_shlibpath_var_F77=no
16196 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16197 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16198 test "$ld_shlibs_F77" = no && can_build_shared=no
16201 # Do we need to explicitly link libc?
16203 case "x$archive_cmds_need_lc_F77" in
16205 # Assume -lc should be added
16206 archive_cmds_need_lc_F77=yes
16208 if test "$enable_shared" = yes && test "$GCC" = yes; then
16209 case $archive_cmds_F77 in
16211 # FIXME: we may have to deal with multi-command sequences.
16214 # Test whether the compiler implicitly links with -lc since on some
16215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16216 # to ld, don't add -lc before -lgcc.
16217 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16218 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223 (eval $ac_compile) 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } 2>conftest.err; then
16229 libobjs=conftest.$ac_objext
16231 wl=$lt_prog_compiler_wl_F77
16232 pic_flag=$lt_prog_compiler_pic_F77
16238 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16239 allow_undefined_flag_F77=
16240 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16241 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }
16246 archive_cmds_need_lc_F77=no
16248 archive_cmds_need_lc_F77=yes
16250 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16252 cat conftest.err 1>&5
16255 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16256 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16263 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16264 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16265 library_names_spec=
16266 libname_spec='lib$name'
16270 postuninstall_cmds=
16274 shlibpath_overrides_runpath=unknown
16276 dynamic_linker="$host_os ld.so"
16277 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16278 if test "$GCC" = yes; then
16279 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16280 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16281 # if the path contains ";" then we assume it to be the separator
16282 # otherwise default to the standard path separator (i.e. ":") - it is
16283 # assumed that no part of a normal pathname contains ";" but that should
16284 # okay in the real world where ";" in dirpaths is itself problematic.
16285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16292 need_lib_prefix=unknown
16293 hardcode_into_libs=no
16295 # when you set need_version to no, make sure it does not cause -set_version
16296 # flags to be left without arguments
16297 need_version=unknown
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16303 shlibpath_var=LIBPATH
16305 # AIX 3 has no versioning support, so we append a major version to the name.
16306 soname_spec='${libname}${release}${shared_ext}$major'
16313 hardcode_into_libs=yes
16314 if test "$host_cpu" = ia64; then
16315 # AIX 5 supports IA64
16316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16317 shlibpath_var=LD_LIBRARY_PATH
16319 # With GCC up to 2.95.x, collect2 would create an import file
16320 # for dependence libraries. The import file would start with
16321 # the line `#! .'. This would cause the generated library to
16322 # depend on `.', always an invalid library. This was fixed in
16323 # development snapshots of GCC prior to 3.0.
16325 aix4 | aix4.[01] | aix4.[01].*)
16326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16328 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16331 can_build_shared=no
16335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16336 # soname into executable. Probably we can add versioning support to
16337 # collect2, so additional links can be useful in future.
16338 if test "$aix_use_runtimelinking" = yes; then
16339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16340 # instead of lib<name>.a to let people know that these are not
16341 # typical AIX shared libraries.
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344 # We preserve .a as extension for shared libraries through AIX4.2
16345 # and later when we are not doing run time linking.
16346 library_names_spec='${libname}${release}.a $libname.a'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16349 shlibpath_var=LIBPATH
16354 library_names_spec='$libname.ixlibrary $libname.a'
16355 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16356 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'
16360 library_names_spec='${libname}${shared_ext}'
16361 dynamic_linker="$host_os ld.so"
16362 shlibpath_var=LIBRARY_PATH
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16371 shlibpath_var=LD_LIBRARY_PATH
16372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16374 # the default ld.so.conf also contains /usr/contrib/lib and
16375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16376 # libtool to hard-code these into programs
16379 cygwin* | mingw* | pw32*)
16380 version_type=windows
16385 case $GCC,$host_os in
16386 yes,cygwin* | yes,mingw* | yes,pw32*)
16387 library_names_spec='$libname.dll.a'
16388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16389 postinstall_cmds='base_file=`basename \${file}`~
16390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16391 dldir=$destdir/`dirname \$dlpath`~
16392 test -d \$dldir || mkdir -p \$dldir~
16393 $install_prog $dir/$dlname \$dldir/$dlname~
16394 chmod a+x \$dldir/$dlname'
16395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16396 dlpath=$dir/\$dldll~
16398 shlibpath_overrides_runpath=yes
16402 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16403 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16404 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16407 # MinGW DLLs use traditional 'lib' prefix
16408 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16409 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16410 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16411 # It is most probably a Windows format PATH printed by
16412 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16413 # path with ; separators, and with drive letters. We can handle the
16414 # drive letters (cygwin fileutils understands them), so leave them,
16415 # especially as we might pass files found there to a mingw objdump,
16416 # which wouldn't understand a cygwinified path. Ahh.
16417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16423 # pw32 DLLs use 'pw' prefix rather than 'lib'
16424 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16430 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16433 dynamic_linker='Win32 ld.exe'
16434 # FIXME: first we should search . and the directory the executable is in
16438 darwin* | rhapsody*)
16439 dynamic_linker="$host_os dyld"
16440 version_type=darwin
16443 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16444 soname_spec='${libname}${release}${major}$shared_ext'
16445 shlibpath_overrides_runpath=yes
16446 shlibpath_var=DYLD_LIBRARY_PATH
16447 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16448 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16449 if test "$GCC" = yes; then
16450 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"`
16452 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 shlibpath_var=LD_LIBRARY_PATH
16470 freebsd* | dragonfly*)
16471 # DragonFly does not have aout. When/if they implement a new
16472 # versioning mechanism, adjust this.
16473 if test -x /usr/bin/objformat; then
16474 objformat=`/usr/bin/objformat`
16477 freebsd[123]*) objformat=aout ;;
16478 *) objformat=elf ;;
16481 version_type=freebsd-$objformat
16482 case $version_type in
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16493 shlibpath_var=LD_LIBRARY_PATH
16496 shlibpath_overrides_runpath=yes
16498 freebsd3.[01]* | freebsdelf3.[01]*)
16499 shlibpath_overrides_runpath=yes
16500 hardcode_into_libs=yes
16502 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16503 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16504 shlibpath_overrides_runpath=no
16505 hardcode_into_libs=yes
16507 freebsd*) # from 4.6 on
16508 shlibpath_overrides_runpath=yes
16509 hardcode_into_libs=yes
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 hardcode_into_libs=yes
16524 hpux9* | hpux10* | hpux11*)
16525 # Give a soname corresponding to the major version so that dld.sl refuses to
16526 # link against other versions.
16533 hardcode_into_libs=yes
16534 dynamic_linker="$host_os dld.so"
16535 shlibpath_var=LD_LIBRARY_PATH
16536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538 soname_spec='${libname}${release}${shared_ext}$major'
16539 if test "X$HPUX_IA64_MODE" = X32; then
16540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16548 hardcode_into_libs=yes
16549 dynamic_linker="$host_os dld.sl"
16550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16559 dynamic_linker="$host_os dld.sl"
16560 shlibpath_var=SHLIB_PATH
16561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16566 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16567 postinstall_cmds='chmod 555 $lib'
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16577 shlibpath_var=LD_LIBRARY_PATH
16578 shlibpath_overrides_runpath=no
16579 hardcode_into_libs=yes
16582 irix5* | irix6* | nonstopux*)
16584 nonstopux*) version_type=nonstopux ;;
16586 if test "$lt_cv_prog_gnu_ld" = yes; then
16594 soname_spec='${libname}${release}${shared_ext}$major'
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16597 irix5* | nonstopux*)
16598 libsuff= shlibsuff=
16601 case $LD in # libtool.m4 will add one of these switches to LD
16602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16603 libsuff= shlibsuff= libmagic=32-bit;;
16604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16605 libsuff=32 shlibsuff=N32 libmagic=N32;;
16606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16608 *) libsuff= shlibsuff= libmagic=never-match;;
16612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16613 shlibpath_overrides_runpath=no
16614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16616 hardcode_into_libs=yes
16619 # No shared lib support for Linux oldld, aout, or coff.
16620 linux*oldld* | linux*aout* | linux*coff*)
16624 # This must be Linux ELF.
16625 linux* | k*bsd*-gnu)
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=no
16634 # This implies no fast_install, which is unacceptable.
16635 # Some rework will be needed to allow for fast_install
16636 # before this can be enabled.
16637 hardcode_into_libs=yes
16639 # Append ld.so.conf contents to the search path
16640 if test -f /etc/ld.so.conf; then
16641 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' ' '`
16642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16645 # We used to test for /lib/ld.so.1 and disable shared libraries on
16646 # powerpc, because MkLinux only supported shared libraries with the
16647 # GNU dynamic linker. Since this was broken with cross compilers,
16648 # most powerpc-linux boxes support dynamic linking these days and
16649 # people can always --disable-shared, the test was removed, and we
16650 # assume the GNU/Linux dynamic linker is in use.
16651 dynamic_linker='GNU/Linux ld.so'
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 shlibpath_overrides_runpath=no
16662 hardcode_into_libs=yes
16663 dynamic_linker='NetBSD ld.elf_so'
16670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16673 dynamic_linker='NetBSD (a.out) ld.so'
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 dynamic_linker='NetBSD ld.elf_so'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=yes
16681 hardcode_into_libs=yes
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=yes
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=yes
16703 sys_lib_dlsearch_path_spec="/usr/lib"
16705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16707 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16708 *) need_version=no ;;
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16712 shlibpath_var=LD_LIBRARY_PATH
16713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16715 openbsd2.[89] | openbsd2.[89].*)
16716 shlibpath_overrides_runpath=no
16719 shlibpath_overrides_runpath=yes
16723 shlibpath_overrides_runpath=yes
16728 libname_spec='$name'
16731 library_names_spec='$libname${shared_ext} $libname.a'
16732 dynamic_linker='OS/2 ld.exe'
16733 shlibpath_var=LIBPATH
16736 osf3* | osf4* | osf5*)
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752 soname_spec='${libname}${release}${shared_ext}$major'
16753 shlibpath_var=LD_LIBRARY_PATH
16754 shlibpath_overrides_runpath=yes
16755 hardcode_into_libs=yes
16756 # ldd complains unless libraries are executable
16757 postinstall_cmds='chmod +x $lib'
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16766 if test "$with_gnu_ld" = yes; then
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 case $host_vendor in
16779 shlibpath_overrides_runpath=no
16781 export_dynamic_flag_spec='${wl}-Blargedynsym'
16782 runpath_var=LD_RUN_PATH
16790 shlibpath_overrides_runpath=no
16791 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16797 if test -d /usr/nec ;then
16799 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16800 soname_spec='$libname${shared_ext}.$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16806 version_type=freebsd-elf
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16810 soname_spec='${libname}${release}${shared_ext}$major'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 hardcode_into_libs=yes
16813 if test "$with_gnu_ld" = yes; then
16814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16815 shlibpath_overrides_runpath=no
16817 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16818 shlibpath_overrides_runpath=yes
16821 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16825 sys_lib_dlsearch_path_spec='/usr/lib'
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16839 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16840 echo "${ECHO_T}$dynamic_linker" >&6; }
16841 test "$dynamic_linker" = no && can_build_shared=no
16843 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16844 if test "$GCC" = yes; then
16845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16848 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16850 hardcode_action_F77=
16851 if test -n "$hardcode_libdir_flag_spec_F77" || \
16852 test -n "$runpath_var_F77" || \
16853 test "X$hardcode_automatic_F77" = "Xyes" ; then
16855 # We can hardcode non-existant directories.
16856 if test "$hardcode_direct_F77" != no &&
16857 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16858 # have to relink, otherwise we might link with an installed library
16859 # when we should be linking with a yet-to-be-installed one
16860 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16861 test "$hardcode_minus_L_F77" != no; then
16862 # Linking always hardcodes the temporary library directory.
16863 hardcode_action_F77=relink
16865 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16866 hardcode_action_F77=immediate
16869 # We cannot hardcode anything, or else we can only hardcode existing
16871 hardcode_action_F77=unsupported
16873 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16874 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16876 if test "$hardcode_action_F77" = relink; then
16877 # Fast installation is not supported
16878 enable_fast_install=no
16879 elif test "$shlibpath_overrides_runpath" = yes ||
16880 test "$enable_shared" = no; then
16881 # Fast installation is not necessary
16882 enable_fast_install=needless
16886 # The else clause should only fire when bootstrapping the
16887 # libtool distribution, otherwise you forgot to ship ltmain.sh
16888 # with your package, and you will get complaints that there are
16889 # no rules to generate ltmain.sh.
16890 if test -f "$ltmain"; then
16891 # See if we are running on zsh, and set the options which allow our commands through
16892 # without removal of \ escapes.
16893 if test -n "${ZSH_VERSION+set}" ; then
16894 setopt NO_GLOB_SUBST
16896 # Now quote all the things that may contain metacharacters while being
16897 # careful not to overquote the AC_SUBSTed values. We take copies of the
16898 # variables and quote the copies for generation of the libtool script.
16899 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16901 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16902 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16903 deplibs_check_method reload_flag reload_cmds need_locks \
16904 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16905 lt_cv_sys_global_symbol_to_c_name_address \
16906 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16907 old_postinstall_cmds old_postuninstall_cmds \
16911 lt_prog_compiler_wl_F77 \
16912 lt_prog_compiler_pic_F77 \
16913 lt_prog_compiler_static_F77 \
16914 lt_prog_compiler_no_builtin_flag_F77 \
16915 export_dynamic_flag_spec_F77 \
16916 thread_safe_flag_spec_F77 \
16917 whole_archive_flag_spec_F77 \
16918 enable_shared_with_static_runtimes_F77 \
16919 old_archive_cmds_F77 \
16920 old_archive_from_new_cmds_F77 \
16921 predep_objects_F77 \
16922 postdep_objects_F77 \
16925 compiler_lib_search_path_F77 \
16927 archive_expsym_cmds_F77 \
16928 postinstall_cmds_F77 \
16929 postuninstall_cmds_F77 \
16930 old_archive_from_expsyms_cmds_F77 \
16931 allow_undefined_flag_F77 \
16932 no_undefined_flag_F77 \
16933 export_symbols_cmds_F77 \
16934 hardcode_libdir_flag_spec_F77 \
16935 hardcode_libdir_flag_spec_ld_F77 \
16936 hardcode_libdir_separator_F77 \
16937 hardcode_automatic_F77 \
16939 module_expsym_cmds_F77 \
16940 lt_cv_prog_compiler_c_o_F77 \
16941 exclude_expsyms_F77 \
16942 include_expsyms_F77; do
16945 old_archive_cmds_F77 | \
16946 old_archive_from_new_cmds_F77 | \
16947 archive_cmds_F77 | \
16948 archive_expsym_cmds_F77 | \
16949 module_cmds_F77 | \
16950 module_expsym_cmds_F77 | \
16951 old_archive_from_expsyms_cmds_F77 | \
16952 export_symbols_cmds_F77 | \
16953 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16954 postinstall_cmds | postuninstall_cmds | \
16955 old_postinstall_cmds | old_postuninstall_cmds | \
16956 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16957 # Double-quote double-evaled strings.
16958 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16967 *'\$0 --fallback-echo"')
16968 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16974 cat <<__EOF__ >> "$cfgfile"
16975 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16979 # Shell to use when invoking shell scripts.
16982 # Whether or not to build shared libraries.
16983 build_libtool_libs=$enable_shared
16985 # Whether or not to build static libraries.
16986 build_old_libs=$enable_static
16988 # Whether or not to add -lc for building shared libraries.
16989 build_libtool_need_lc=$archive_cmds_need_lc_F77
16991 # Whether or not to disallow shared libs when runtime libs are static
16992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16994 # Whether or not to optimize for fast installation.
16995 fast_install=$enable_fast_install
16998 host_alias=$host_alias
17002 # The build system.
17003 build_alias=$build_alias
17007 # An echo program that does not interpret backslashes.
17012 AR_FLAGS=$lt_AR_FLAGS
17017 # LTCC compiler flags.
17018 LTCFLAGS=$lt_LTCFLAGS
17020 # A language-specific compiler.
17021 CC=$lt_compiler_F77
17023 # Is the compiler the GNU C compiler?
17029 # The linker used to build libraries.
17032 # Whether we need hard or soft links.
17035 # A BSD-compatible nm program.
17038 # A symbol stripping program
17041 # Used to examine libraries when file_magic_cmd begins "file"
17042 MAGIC_CMD=$MAGIC_CMD
17044 # Used on cygwin: DLL creation program.
17047 # Used on cygwin: object dumper.
17050 # Used on cygwin: assembler.
17053 # The name of the directory that contains temporary libtool files.
17056 # How to create reloadable object files.
17057 reload_flag=$lt_reload_flag
17058 reload_cmds=$lt_reload_cmds
17060 # How to pass a linker flag through the compiler.
17061 wl=$lt_lt_prog_compiler_wl_F77
17063 # Object file suffix (normally "o").
17064 objext="$ac_objext"
17066 # Old archive suffix (normally "a").
17069 # Shared library suffix (normally ".so").
17070 shrext_cmds='$shrext_cmds'
17072 # Executable file suffix (normally "").
17075 # Additional compiler flags for building library objects.
17076 pic_flag=$lt_lt_prog_compiler_pic_F77
17079 # What is the maximum length of a command?
17080 max_cmd_len=$lt_cv_sys_max_cmd_len
17082 # Does compiler simultaneously support -c and -o options?
17083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17085 # Must we lock files when doing compilation?
17086 need_locks=$lt_need_locks
17088 # Do we need the lib prefix for modules?
17089 need_lib_prefix=$need_lib_prefix
17091 # Do we need a version for libraries?
17092 need_version=$need_version
17094 # Whether dlopen is supported.
17095 dlopen_support=$enable_dlopen
17097 # Whether dlopen of programs is supported.
17098 dlopen_self=$enable_dlopen_self
17100 # Whether dlopen of statically linked programs is supported.
17101 dlopen_self_static=$enable_dlopen_self_static
17103 # Compiler flag to prevent dynamic linking.
17104 link_static_flag=$lt_lt_prog_compiler_static_F77
17106 # Compiler flag to turn off builtin functions.
17107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17109 # Compiler flag to allow reflexive dlopens.
17110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17112 # Compiler flag to generate shared objects directly from archives.
17113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17115 # Compiler flag to generate thread-safe objects.
17116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17118 # Library versioning type.
17119 version_type=$version_type
17121 # Format of library name prefix.
17122 libname_spec=$lt_libname_spec
17124 # List of archive names. First name is the real one, the rest are links.
17125 # The last name is the one that the linker finds with -lNAME.
17126 library_names_spec=$lt_library_names_spec
17128 # The coded name of the library, if different from the real name.
17129 soname_spec=$lt_soname_spec
17131 # Commands used to build and install an old-style archive.
17133 old_archive_cmds=$lt_old_archive_cmds_F77
17134 old_postinstall_cmds=$lt_old_postinstall_cmds
17135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17137 # Create an old-style archive from a shared archive.
17138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17140 # Create a temporary old-style archive to link instead of a shared archive.
17141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17143 # Commands used to build and install a shared archive.
17144 archive_cmds=$lt_archive_cmds_F77
17145 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17146 postinstall_cmds=$lt_postinstall_cmds
17147 postuninstall_cmds=$lt_postuninstall_cmds
17149 # Commands used to build a loadable module (assumed same as above if empty)
17150 module_cmds=$lt_module_cmds_F77
17151 module_expsym_cmds=$lt_module_expsym_cmds_F77
17153 # Commands to strip libraries.
17154 old_striplib=$lt_old_striplib
17155 striplib=$lt_striplib
17157 # Dependencies to place before the objects being linked to create a
17159 predep_objects=$lt_predep_objects_F77
17161 # Dependencies to place after the objects being linked to create a
17163 postdep_objects=$lt_postdep_objects_F77
17165 # Dependencies to place before the objects being linked to create a
17167 predeps=$lt_predeps_F77
17169 # Dependencies to place after the objects being linked to create a
17171 postdeps=$lt_postdeps_F77
17173 # The library search path used internally by the compiler when linking
17174 # a shared library.
17175 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17177 # Method to check whether dependent libraries are shared objects.
17178 deplibs_check_method=$lt_deplibs_check_method
17180 # Command to use when deplibs_check_method == file_magic.
17181 file_magic_cmd=$lt_file_magic_cmd
17183 # Flag that allows shared libraries with undefined symbols to be built.
17184 allow_undefined_flag=$lt_allow_undefined_flag_F77
17186 # Flag that forces no undefined symbols.
17187 no_undefined_flag=$lt_no_undefined_flag_F77
17189 # Commands used to finish a libtool library installation in a directory.
17190 finish_cmds=$lt_finish_cmds
17192 # Same as above, but a single script fragment to be evaled but not shown.
17193 finish_eval=$lt_finish_eval
17195 # Take the output of nm and produce a listing of raw symbols and C names.
17196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17198 # Transform the output of nm in a proper C declaration
17199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17201 # Transform the output of nm in a C name address pair
17202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17204 # This is the shared library runtime path variable.
17205 runpath_var=$runpath_var
17207 # This is the shared library path variable.
17208 shlibpath_var=$shlibpath_var
17210 # Is shlibpath searched before the hard-coded library search path?
17211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17213 # How to hardcode a shared library path into an executable.
17214 hardcode_action=$hardcode_action_F77
17216 # Whether we should hardcode library paths into libraries.
17217 hardcode_into_libs=$hardcode_into_libs
17219 # Flag to hardcode \$libdir into a binary during linking.
17220 # This must work even if \$libdir does not exist.
17221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17223 # If ld is used when linking, flag to hardcode \$libdir into
17224 # a binary during linking. This must work even if \$libdir does
17226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17228 # Whether we need a single -rpath flag with a separated argument.
17229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17232 # resulting binary.
17233 hardcode_direct=$hardcode_direct_F77
17235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17236 # resulting binary.
17237 hardcode_minus_L=$hardcode_minus_L_F77
17239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17240 # the resulting binary.
17241 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17243 # Set to yes if building a shared library automatically hardcodes DIR into the library
17244 # and all subsequent libraries and executables linked against it.
17245 hardcode_automatic=$hardcode_automatic_F77
17247 # Variables whose values should be saved in libtool wrapper scripts and
17248 # restored at relink time.
17249 variables_saved_for_relink="$variables_saved_for_relink"
17251 # Whether libtool must link a program against all its dependency libraries.
17252 link_all_deplibs=$link_all_deplibs_F77
17254 # Compile-time system search path for libraries
17255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17257 # Run-time system search path for libraries
17258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17260 # Fix the shell variable \$srcfile for the compiler.
17261 fix_srcfile_path="$fix_srcfile_path_F77"
17263 # Set to yes if exported symbols are required.
17264 always_export_symbols=$always_export_symbols_F77
17266 # The commands to list exported symbols.
17267 export_symbols_cmds=$lt_export_symbols_cmds_F77
17269 # The commands to extract the exported symbol list from a shared archive.
17270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17272 # Symbols that should not be listed in the preloaded symbols.
17273 exclude_expsyms=$lt_exclude_expsyms_F77
17275 # Symbols that must always be exported.
17276 include_expsyms=$lt_include_expsyms_F77
17278 # ### END LIBTOOL TAG CONFIG: $tagname
17284 # If there is no Makefile yet, we rely on a make rule to execute
17285 # `config.status --recheck' to rerun these tests and create the
17286 # libtool script then.
17287 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17288 if test -f "$ltmain_in"; then
17289 test -f Makefile && make "$ltmain"
17295 ac_cpp='$CPP $CPPFLAGS'
17296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17308 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17311 # Source file extension for Java test sources.
17314 # Object file extension for compiled Java test sources.
17318 # Code to be used in simple compile tests
17319 lt_simple_compile_test_code="class foo {}\n"
17321 # Code to be used in simple link tests
17322 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17324 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17326 # If no C compiler was specified, use CC.
17329 # If no C compiler flags were specified, use CFLAGS.
17330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17332 # Allow CC to be a program name with arguments.
17336 # save warnings/boilerplate of simple test code
17337 ac_outfile=conftest.$ac_objext
17338 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17339 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17340 _lt_compiler_boilerplate=`cat conftest.err`
17343 ac_outfile=conftest.$ac_objext
17344 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17345 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17346 _lt_linker_boilerplate=`cat conftest.err`
17350 # Allow CC to be a program name with arguments.
17355 for cc_temp in $compiler""; do
17357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17363 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17366 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17367 archive_cmds_need_lc_GCJ=no
17369 old_archive_cmds_GCJ=$old_archive_cmds
17372 ## There is no encapsulation within the following macros, do not change
17373 ## the running order or otherwise move them around unless you know exactly
17374 ## what you are doing...
17376 lt_prog_compiler_no_builtin_flag_GCJ=
17378 if test "$GCC" = yes; then
17379 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17382 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17383 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17384 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17387 lt_cv_prog_compiler_rtti_exceptions=no
17388 ac_outfile=conftest.$ac_objext
17389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17390 lt_compiler_flag="-fno-rtti -fno-exceptions"
17391 # Insert the option either (1) after the last *FLAGS variable, or
17392 # (2) before a word containing "conftest.", or (3) at the end.
17393 # Note that $ac_compile itself does not contain backslashes and begins
17394 # with a dollar sign (not a hyphen), so the echo should work correctly.
17395 # The option is referenced via a variable to avoid confusing sed.
17396 lt_compile=`echo "$ac_compile" | $SED \
17397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17399 -e 's:$: $lt_compiler_flag:'`
17400 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17401 (eval "$lt_compile" 2>conftest.err)
17403 cat conftest.err >&5
17404 echo "$as_me:__oline__: \$? = $ac_status" >&5
17405 if (exit $ac_status) && test -s "$ac_outfile"; then
17406 # The compiler can only warn and ignore the option if not recognized
17407 # So say no if there are warnings other than the usual output.
17408 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17411 lt_cv_prog_compiler_rtti_exceptions=yes
17417 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17418 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17420 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17421 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17428 lt_prog_compiler_wl_GCJ=
17429 lt_prog_compiler_pic_GCJ=
17430 lt_prog_compiler_static_GCJ=
17432 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17433 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17435 if test "$GCC" = yes; then
17436 lt_prog_compiler_wl_GCJ='-Wl,'
17437 lt_prog_compiler_static_GCJ='-static'
17441 # All AIX code is PIC.
17442 if test "$host_cpu" = ia64; then
17443 # AIX 5 now supports IA64 processor
17444 lt_prog_compiler_static_GCJ='-Bstatic'
17449 # FIXME: we need at least 68020 code to build shared libraries, but
17450 # adding the `-m68020' flag to GCC prevents building anything better,
17452 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17455 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17456 # PIC is the default for these OSes.
17459 mingw* | pw32* | os2*)
17460 # This hack is so that the source file can tell whether it is being
17461 # built for inclusion in a dll (and should export symbols for example).
17462 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17465 darwin* | rhapsody*)
17466 # PIC is the default on this platform
17467 # Common symbols not allowed in MH_DYLIB files
17468 lt_prog_compiler_pic_GCJ='-fno-common'
17472 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17473 # Instead, we relocate shared libraries at runtime.
17477 # Just because we use GCC doesn't mean we suddenly get shared libraries
17478 # on systems that don't support them.
17479 lt_prog_compiler_can_build_shared_GCJ=no
17484 if test -d /usr/nec; then
17485 lt_prog_compiler_pic_GCJ=-Kconform_pic
17490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17491 # not for PA HP-UX.
17497 lt_prog_compiler_pic_GCJ='-fPIC'
17503 lt_prog_compiler_pic_GCJ='-fPIC'
17507 # PORTME Check for flag to pass linker flags through the system compiler.
17510 lt_prog_compiler_wl_GCJ='-Wl,'
17511 if test "$host_cpu" = ia64; then
17512 # AIX 5 now supports IA64 processor
17513 lt_prog_compiler_static_GCJ='-Bstatic'
17515 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17519 # PIC is the default on this platform
17520 # Common symbols not allowed in MH_DYLIB files
17521 case $cc_basename in
17523 lt_prog_compiler_pic_GCJ='-qnocommon'
17524 lt_prog_compiler_wl_GCJ='-Wl,'
17529 mingw* | pw32* | os2*)
17530 # This hack is so that the source file can tell whether it is being
17531 # built for inclusion in a dll (and should export symbols for example).
17532 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17535 hpux9* | hpux10* | hpux11*)
17536 lt_prog_compiler_wl_GCJ='-Wl,'
17537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17538 # not for PA HP-UX.
17544 lt_prog_compiler_pic_GCJ='+Z'
17547 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17548 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17551 irix5* | irix6* | nonstopux*)
17552 lt_prog_compiler_wl_GCJ='-Wl,'
17553 # PIC (with -KPIC) is the default.
17554 lt_prog_compiler_static_GCJ='-non_shared'
17558 lt_prog_compiler_pic_GCJ='-KPIC'
17559 lt_prog_compiler_static_GCJ='-Bstatic'
17562 linux* | k*bsd*-gnu)
17563 case $cc_basename in
17565 lt_prog_compiler_wl_GCJ='-Wl,'
17566 lt_prog_compiler_pic_GCJ='-KPIC'
17567 lt_prog_compiler_static_GCJ='-static'
17569 pgcc* | pgf77* | pgf90* | pgf95*)
17570 # Portland Group compilers (*not* the Pentium gcc compiler,
17571 # which looks to be a dead project)
17572 lt_prog_compiler_wl_GCJ='-Wl,'
17573 lt_prog_compiler_pic_GCJ='-fpic'
17574 lt_prog_compiler_static_GCJ='-Bstatic'
17577 lt_prog_compiler_wl_GCJ='-Wl,'
17578 # All Alpha code is PIC.
17579 lt_prog_compiler_static_GCJ='-non_shared'
17584 osf3* | osf4* | osf5*)
17585 lt_prog_compiler_wl_GCJ='-Wl,'
17586 # All OSF/1 code is PIC.
17587 lt_prog_compiler_static_GCJ='-non_shared'
17591 lt_prog_compiler_pic_GCJ='-KPIC'
17592 lt_prog_compiler_static_GCJ='-Bstatic'
17593 case $cc_basename in
17594 f77* | f90* | f95*)
17595 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17597 lt_prog_compiler_wl_GCJ='-Wl,';;
17602 lt_prog_compiler_wl_GCJ='-Qoption ld '
17603 lt_prog_compiler_pic_GCJ='-PIC'
17604 lt_prog_compiler_static_GCJ='-Bstatic'
17607 sysv4 | sysv4.2uw2* | sysv4.3*)
17608 lt_prog_compiler_wl_GCJ='-Wl,'
17609 lt_prog_compiler_pic_GCJ='-KPIC'
17610 lt_prog_compiler_static_GCJ='-Bstatic'
17614 if test -d /usr/nec ;then
17615 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17616 lt_prog_compiler_static_GCJ='-Bstatic'
17620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17621 lt_prog_compiler_wl_GCJ='-Wl,'
17622 lt_prog_compiler_pic_GCJ='-KPIC'
17623 lt_prog_compiler_static_GCJ='-Bstatic'
17627 lt_prog_compiler_wl_GCJ='-Wl,'
17628 lt_prog_compiler_can_build_shared_GCJ=no
17632 lt_prog_compiler_pic_GCJ='-pic'
17633 lt_prog_compiler_static_GCJ='-Bstatic'
17637 lt_prog_compiler_can_build_shared_GCJ=no
17642 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17643 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17646 # Check to make sure the PIC flag actually works.
17648 if test -n "$lt_prog_compiler_pic_GCJ"; then
17650 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17652 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 lt_prog_compiler_pic_works_GCJ=no
17656 ac_outfile=conftest.$ac_objext
17657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17658 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17659 # Insert the option either (1) after the last *FLAGS variable, or
17660 # (2) before a word containing "conftest.", or (3) at the end.
17661 # Note that $ac_compile itself does not contain backslashes and begins
17662 # with a dollar sign (not a hyphen), so the echo should work correctly.
17663 # The option is referenced via a variable to avoid confusing sed.
17664 lt_compile=`echo "$ac_compile" | $SED \
17665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17667 -e 's:$: $lt_compiler_flag:'`
17668 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17669 (eval "$lt_compile" 2>conftest.err)
17671 cat conftest.err >&5
17672 echo "$as_me:__oline__: \$? = $ac_status" >&5
17673 if (exit $ac_status) && test -s "$ac_outfile"; then
17674 # The compiler can only warn and ignore the option if not recognized
17675 # So say no if there are warnings other than the usual output.
17676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17679 lt_prog_compiler_pic_works_GCJ=yes
17685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17686 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17688 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17689 case $lt_prog_compiler_pic_GCJ in
17691 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17694 lt_prog_compiler_pic_GCJ=
17695 lt_prog_compiler_can_build_shared_GCJ=no
17700 # For platforms which do not support PIC, -DPIC is meaningless:
17702 lt_prog_compiler_pic_GCJ=
17705 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17710 # Check to make sure the static flag actually works.
17712 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17713 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17714 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17715 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 lt_prog_compiler_static_works_GCJ=no
17719 save_LDFLAGS="$LDFLAGS"
17720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17721 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17723 # The linker can only warn and ignore the option if not recognized
17724 # So say no if there are warnings
17725 if test -s conftest.err; then
17726 # Append any errors to the config.log.
17727 cat conftest.err 1>&5
17728 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17730 if diff conftest.exp conftest.er2 >/dev/null; then
17731 lt_prog_compiler_static_works_GCJ=yes
17734 lt_prog_compiler_static_works_GCJ=yes
17738 LDFLAGS="$save_LDFLAGS"
17741 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17742 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17744 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17747 lt_prog_compiler_static_GCJ=
17751 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17752 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17753 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 lt_cv_prog_compiler_c_o_GCJ=no
17757 $rm -r conftest 2>/dev/null
17761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17763 lt_compiler_flag="-o out/conftest2.$ac_objext"
17764 # Insert the option either (1) after the last *FLAGS variable, or
17765 # (2) before a word containing "conftest.", or (3) at the end.
17766 # Note that $ac_compile itself does not contain backslashes and begins
17767 # with a dollar sign (not a hyphen), so the echo should work correctly.
17768 lt_compile=`echo "$ac_compile" | $SED \
17769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17771 -e 's:$: $lt_compiler_flag:'`
17772 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17773 (eval "$lt_compile" 2>out/conftest.err)
17775 cat out/conftest.err >&5
17776 echo "$as_me:__oline__: \$? = $ac_status" >&5
17777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17779 # The compiler can only warn and ignore the option if not recognized
17780 # So say no if there are warnings
17781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17784 lt_cv_prog_compiler_c_o_GCJ=yes
17789 # SGI C++ compiler will create directory out/ii_files/ for
17790 # template instantiation
17791 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17792 $rm out/* && rmdir out
17798 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17799 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17802 hard_links="nottested"
17803 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17804 # do not overwrite the value of need_locks provided by the user
17805 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17806 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17811 ln conftest.a conftest.b 2>&5 || hard_links=no
17812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17813 { echo "$as_me:$LINENO: result: $hard_links" >&5
17814 echo "${ECHO_T}$hard_links" >&6; }
17815 if test "$hard_links" = no; then
17816 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17817 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17824 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17825 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17828 allow_undefined_flag_GCJ=
17829 enable_shared_with_static_runtimes_GCJ=no
17831 archive_expsym_cmds_GCJ=
17832 old_archive_From_new_cmds_GCJ=
17833 old_archive_from_expsyms_cmds_GCJ=
17834 export_dynamic_flag_spec_GCJ=
17835 whole_archive_flag_spec_GCJ=
17836 thread_safe_flag_spec_GCJ=
17837 hardcode_libdir_flag_spec_GCJ=
17838 hardcode_libdir_flag_spec_ld_GCJ=
17839 hardcode_libdir_separator_GCJ=
17840 hardcode_direct_GCJ=no
17841 hardcode_minus_L_GCJ=no
17842 hardcode_shlibpath_var_GCJ=unsupported
17843 link_all_deplibs_GCJ=unknown
17844 hardcode_automatic_GCJ=no
17846 module_expsym_cmds_GCJ=
17847 always_export_symbols_GCJ=no
17848 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17849 # include_expsyms should be a list of space-separated symbols to be *always*
17850 # included in the symbol list
17851 include_expsyms_GCJ=
17852 # exclude_expsyms can be an extended regexp of symbols to exclude
17853 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17855 # as well as any symbol that contains `d'.
17856 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17858 # platforms (ab)use it in PIC code, but their linkers get confused if
17859 # the symbol is explicitly referenced. Since portable code cannot
17860 # rely on this symbol name, it's probably fine to never include it in
17861 # preloaded symbol tables.
17862 extract_expsyms_cmds=
17863 # Just being paranoid about ensuring that cc_basename is set.
17864 for cc_temp in $compiler""; do
17866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17872 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17875 cygwin* | mingw* | pw32*)
17876 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17877 # When not using gcc, we currently assume that we are using
17878 # Microsoft Visual C++.
17879 if test "$GCC" != yes; then
17884 # we just hope/assume this is gcc and not c89 (= MSVC++)
17893 if test "$with_gnu_ld" = yes; then
17894 # If archive_cmds runs LD, not CC, wlarc should be empty
17897 # Set some defaults for GNU ld with shared library support. These
17898 # are reset later if shared libraries are not supported. Putting them
17899 # here allows them to be overridden if necessary.
17900 runpath_var=LD_RUN_PATH
17901 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17902 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17903 # ancient GNU ld didn't support --whole-archive et. al.
17904 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17905 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17907 whole_archive_flag_spec_GCJ=
17909 supports_anon_versioning=no
17910 case `$LD -v 2>/dev/null` in
17911 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17912 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17913 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17914 *\ 2.11.*) ;; # other 2.11 versions
17915 *) supports_anon_versioning=yes ;;
17918 # See if GNU ld supports shared libraries.
17920 aix3* | aix4* | aix5*)
17921 # On AIX/PPC, the GNU linker is very broken
17922 if test "$host_cpu" != ia64; then
17926 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17927 *** to be unable to reliably create shared libraries on AIX.
17928 *** Therefore, libtool is disabling shared libraries support. If you
17929 *** really care for shared libraries, you may want to modify your PATH
17930 *** so that a non-GNU linker is found, and then restart.
17937 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)'
17938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17939 hardcode_minus_L_GCJ=yes
17941 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17942 # that the semantics of dynamic libraries on AmigaOS, at least up
17943 # to version 4, is to share data among multiple programs linked
17944 # with the same dynamic library. Since this doesn't match the
17945 # behavior of shared libraries on other platforms, we can't use
17951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17952 allow_undefined_flag_GCJ=unsupported
17953 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17954 # support --undefined. This deserves some investigation. FIXME
17955 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17961 cygwin* | mingw* | pw32*)
17962 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17963 # as there is no search path for DLLs.
17964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17965 allow_undefined_flag_GCJ=unsupported
17966 always_export_symbols_GCJ=no
17967 enable_shared_with_static_runtimes_GCJ=yes
17968 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17970 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17971 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17972 # If the export-symbols file already is a .def file (1st line
17973 # is EXPORTS), use it as is; otherwise, prepend...
17974 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17975 cp $export_symbols $output_objdir/$soname.def;
17977 echo EXPORTS > $output_objdir/$soname.def;
17978 cat $export_symbols >> $output_objdir/$soname.def;
17980 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17987 hardcode_direct_GCJ=no
17988 hardcode_shlibpath_var_GCJ=no
17989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17990 export_dynamic_flag_spec_GCJ='${wl}-E'
17991 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17992 # Instead, shared libraries are loaded at an image base (0x10000000 by
17993 # default) and relocated if they conflict, which is a slow very memory
17994 # consuming and fragmenting process. To avoid this, we pick a random,
17995 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17996 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17997 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'
17998 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'
18001 linux* | k*bsd*-gnu)
18002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18004 case $cc_basename,$host_cpu in
18005 pgcc*) # Portland Group C compiler
18006 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'
18007 tmp_addflag=' $pic_flag'
18009 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18010 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'
18011 tmp_addflag=' $pic_flag -Mnomain' ;;
18012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18013 tmp_addflag=' -i_dynamic' ;;
18014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18015 tmp_addflag=' -i_dynamic -nofor_main' ;;
18016 ifc* | ifort*) # Intel Fortran compiler
18017 tmp_addflag=' -nofor_main' ;;
18019 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18021 if test $supports_anon_versioning = yes; then
18022 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18024 $echo "local: *; };" >> $output_objdir/$libname.ver~
18025 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18027 link_all_deplibs_GCJ=no
18033 netbsd* | netbsdelf*-gnu)
18034 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18035 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18038 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18039 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18044 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18049 *** create shared libraries on Solaris systems. Therefore, libtool
18050 *** is disabling shared libraries support. We urge you to upgrade GNU
18051 *** binutils to release 2.9.1 or newer. Another option is to modify
18052 *** your PATH or compiler configuration so that the native linker is
18053 *** used, and then restart.
18056 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18065 case `$LD -v 2>&1` in
18066 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18071 *** reliably create shared libraries on SCO systems. Therefore, libtool
18072 *** is disabling shared libraries support. We urge you to upgrade GNU
18073 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18074 *** your PATH or compiler configuration so that the native linker is
18075 *** used, and then restart.
18080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18081 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18082 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18083 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18092 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18094 hardcode_direct_GCJ=yes
18095 hardcode_shlibpath_var_GCJ=no
18099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18100 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18101 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18108 if test "$ld_shlibs_GCJ" = no; then
18110 hardcode_libdir_flag_spec_GCJ=
18111 export_dynamic_flag_spec_GCJ=
18112 whole_archive_flag_spec_GCJ=
18115 # PORTME fill in a description of your system's linker (not GNU ld)
18118 allow_undefined_flag_GCJ=unsupported
18119 always_export_symbols_GCJ=yes
18120 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'
18121 # Note: this linker hardcodes the directories in LIBPATH if there
18122 # are no directories specified by -L.
18123 hardcode_minus_L_GCJ=yes
18124 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18125 # Neither direct hardcoding nor static linking is supported with a
18127 hardcode_direct_GCJ=unsupported
18132 if test "$host_cpu" = ia64; then
18133 # On IA64, the linker does run time linking by default, so we don't
18134 # have to do anything special.
18135 aix_use_runtimelinking=no
18136 exp_sym_flag='-Bexport'
18139 # If we're using GNU nm, then we don't want the "-C" option.
18140 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18141 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18142 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'
18144 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'
18146 aix_use_runtimelinking=no
18148 # Test if we are trying to use run time linking or normal
18149 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18150 # need to do runtime linking.
18151 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18152 for ld_flag in $LDFLAGS; do
18153 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18154 aix_use_runtimelinking=yes
18161 exp_sym_flag='-bexport'
18162 no_entry_flag='-bnoentry'
18165 # When large executables or shared objects are built, AIX ld can
18166 # have problems creating the table of contents. If linking a library
18167 # or program results in "error TOC overflow" add -mminimal-toc to
18168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18171 archive_cmds_GCJ=''
18172 hardcode_direct_GCJ=yes
18173 hardcode_libdir_separator_GCJ=':'
18174 link_all_deplibs_GCJ=yes
18176 if test "$GCC" = yes; then
18177 case $host_os in aix4.[012]|aix4.[012].*)
18178 # We only want to do this on AIX 4.2 and lower, the check
18179 # below for broken collect2 doesn't work under 4.3+
18180 collect2name=`${CC} -print-prog-name=collect2`
18181 if test -f "$collect2name" && \
18182 strings "$collect2name" | grep resolve_lib_name >/dev/null
18184 # We have reworked collect2
18185 hardcode_direct_GCJ=yes
18187 # We have old collect2
18188 hardcode_direct_GCJ=unsupported
18189 # It fails to find uninstalled libraries when the uninstalled
18190 # path is not listed in the libpath. Setting hardcode_minus_L
18191 # to unsupported forces relinking
18192 hardcode_minus_L_GCJ=yes
18193 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18194 hardcode_libdir_separator_GCJ=
18198 shared_flag='-shared'
18199 if test "$aix_use_runtimelinking" = yes; then
18200 shared_flag="$shared_flag "'${wl}-G'
18204 if test "$host_cpu" = ia64; then
18205 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18206 # chokes on -Wl,-G. The following line is correct:
18209 if test "$aix_use_runtimelinking" = yes; then
18210 shared_flag='${wl}-G'
18212 shared_flag='${wl}-bM:SRE'
18217 # It seems that -bexpall does not export symbols beginning with
18218 # underscore (_), so it is better to generate a list of symbols to export.
18219 always_export_symbols_GCJ=yes
18220 if test "$aix_use_runtimelinking" = yes; then
18221 # Warning - without using the other runtime loading flags (-brtl),
18222 # -berok will link without error, but may produce a broken library.
18223 allow_undefined_flag_GCJ='-berok'
18224 # Determine the default libpath from the value encoded in an empty executable.
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext &&
18257 $as_test_x conftest$ac_exeext; then
18259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18261 # Check for a 64-bit object if we didn't find anything.
18262 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; }
18265 echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18272 conftest$ac_exeext conftest.$ac_ext
18273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18275 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18276 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"
18278 if test "$host_cpu" = ia64; then
18279 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18280 allow_undefined_flag_GCJ="-z nodefs"
18281 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"
18283 # Determine the default libpath from the value encoded in an empty executable.
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (ac_try="$ac_link"
18301 case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_link") 2>conftest.er1
18308 grep -v '^ *+' conftest.er1 >conftest.err
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } && {
18313 test -z "$ac_c_werror_flag" ||
18314 test ! -s conftest.err
18315 } && test -s conftest$ac_exeext &&
18316 $as_test_x conftest$ac_exeext; then
18318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18320 # Check for a 64-bit object if we didn't find anything.
18321 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; }
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18331 conftest$ac_exeext conftest.$ac_ext
18332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18334 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18335 # Warning - without using the other run time loading flags,
18336 # -berok will link without error, but may produce a broken library.
18337 no_undefined_flag_GCJ=' ${wl}-bernotok'
18338 allow_undefined_flag_GCJ=' ${wl}-berok'
18339 # Exported symbols can be pulled into shared objects from archives
18340 whole_archive_flag_spec_GCJ='$convenience'
18341 archive_cmds_need_lc_GCJ=yes
18342 # This is similar to how AIX traditionally builds its shared libraries.
18343 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'
18349 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)'
18350 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18351 hardcode_minus_L_GCJ=yes
18352 # see comment about different semantics on the GNU ld section
18357 export_dynamic_flag_spec_GCJ=-rdynamic
18360 cygwin* | mingw* | pw32*)
18361 # When not using gcc, we currently assume that we are using
18362 # Microsoft Visual C++.
18363 # hardcode_libdir_flag_spec is actually meaningless, as there is
18364 # no search path for DLLs.
18365 hardcode_libdir_flag_spec_GCJ=' '
18366 allow_undefined_flag_GCJ=unsupported
18367 # Tell ltmain to make .lib files, not .a files.
18369 # Tell ltmain to make .dll files, not .so files.
18371 # FIXME: Setting linknames here is a bad hack.
18372 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18373 # The linker will automatically build a .lib file if we build a DLL.
18374 old_archive_From_new_cmds_GCJ='true'
18375 # FIXME: Should let the user specify the lib program.
18376 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18377 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18378 enable_shared_with_static_runtimes_GCJ=yes
18381 darwin* | rhapsody*)
18383 rhapsody* | darwin1.[012])
18384 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18387 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18388 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18390 case ${MACOSX_DEPLOYMENT_TARGET} in
18392 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18395 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18401 archive_cmds_need_lc_GCJ=no
18402 hardcode_direct_GCJ=no
18403 hardcode_automatic_GCJ=yes
18404 hardcode_shlibpath_var_GCJ=unsupported
18405 whole_archive_flag_spec_GCJ=''
18406 link_all_deplibs_GCJ=yes
18407 if test "$GCC" = yes ; then
18408 output_verbose_link_cmd='echo'
18409 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18410 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18411 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18412 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}'
18413 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}'
18415 case $cc_basename in
18417 output_verbose_link_cmd='echo'
18418 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18419 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18421 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}'
18422 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}'
18432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18433 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18434 hardcode_shlibpath_var_GCJ=no
18441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18442 # support. Future versions do this automatically, but an explicit c++rt0.o
18443 # does not break anything, and helps significantly (at the cost of a little
18446 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18447 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18448 hardcode_direct_GCJ=yes
18449 hardcode_shlibpath_var_GCJ=no
18452 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18454 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18455 hardcode_direct_GCJ=yes
18456 hardcode_minus_L_GCJ=yes
18457 hardcode_shlibpath_var_GCJ=no
18460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18461 freebsd* | dragonfly*)
18462 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18464 hardcode_direct_GCJ=yes
18465 hardcode_shlibpath_var_GCJ=no
18469 if test "$GCC" = yes; then
18470 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'
18472 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'
18474 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18475 hardcode_libdir_separator_GCJ=:
18476 hardcode_direct_GCJ=yes
18478 # hardcode_minus_L: Not really in the search PATH,
18479 # but as the default location of the library.
18480 hardcode_minus_L_GCJ=yes
18481 export_dynamic_flag_spec_GCJ='${wl}-E'
18485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18486 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18488 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18490 if test "$with_gnu_ld" = no; then
18491 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18492 hardcode_libdir_separator_GCJ=:
18494 hardcode_direct_GCJ=yes
18495 export_dynamic_flag_spec_GCJ='${wl}-E'
18497 # hardcode_minus_L: Not really in the search PATH,
18498 # but as the default location of the library.
18499 hardcode_minus_L_GCJ=yes
18504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18507 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18513 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18519 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18522 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18525 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18529 if test "$with_gnu_ld" = no; then
18530 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18531 hardcode_libdir_separator_GCJ=:
18535 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18536 hardcode_direct_GCJ=no
18537 hardcode_shlibpath_var_GCJ=no
18540 hardcode_direct_GCJ=yes
18541 export_dynamic_flag_spec_GCJ='${wl}-E'
18543 # hardcode_minus_L: Not really in the search PATH,
18544 # but as the default location of the library.
18545 hardcode_minus_L_GCJ=yes
18551 irix5* | irix6* | nonstopux*)
18552 if test "$GCC" = yes; then
18553 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'
18555 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'
18556 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18558 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18559 hardcode_libdir_separator_GCJ=:
18560 link_all_deplibs_GCJ=yes
18563 netbsd* | netbsdelf*-gnu)
18564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18565 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18567 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18570 hardcode_direct_GCJ=yes
18571 hardcode_shlibpath_var_GCJ=no
18575 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18576 hardcode_direct_GCJ=yes
18577 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18578 hardcode_libdir_separator_GCJ=:
18579 hardcode_shlibpath_var_GCJ=no
18583 hardcode_direct_GCJ=yes
18584 hardcode_shlibpath_var_GCJ=no
18585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18586 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18587 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18588 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18589 export_dynamic_flag_spec_GCJ='${wl}-E'
18592 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18593 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18594 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18597 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18598 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18606 hardcode_minus_L_GCJ=yes
18607 allow_undefined_flag_GCJ=unsupported
18608 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'
18609 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18613 if test "$GCC" = yes; then
18614 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18615 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'
18617 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18618 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'
18620 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18621 hardcode_libdir_separator_GCJ=:
18624 osf4* | osf5*) # as osf3* with the addition of -msym flag
18625 if test "$GCC" = yes; then
18626 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18627 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'
18628 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18630 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18631 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'
18632 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~
18633 $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'
18635 # Both c and cxx compiler support -rpath directly
18636 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18638 hardcode_libdir_separator_GCJ=:
18642 no_undefined_flag_GCJ=' -z text'
18643 if test "$GCC" = yes; then
18645 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18646 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18647 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18650 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18651 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18652 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18654 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18655 hardcode_shlibpath_var_GCJ=no
18657 solaris2.[0-5] | solaris2.[0-5].*) ;;
18659 # The compiler driver will combine linker options so we
18660 # cannot just pass the convience library names through
18661 # without $wl, iff we do not link with $LD.
18662 # Luckily, gcc supports the same syntax we need for Sun Studio.
18663 # Supported since Solaris 2.6 (maybe 2.5.1?)
18666 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18668 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' ;;
18671 link_all_deplibs_GCJ=yes
18675 if test "x$host_vendor" = xsequent; then
18676 # Use $CC to link under sequent, because it throws in some extra .o
18677 # files that make .init and .fini sections work.
18678 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18680 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18683 hardcode_direct_GCJ=yes
18684 hardcode_minus_L_GCJ=yes
18685 hardcode_shlibpath_var_GCJ=no
18689 case $host_vendor in
18691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18692 hardcode_direct_GCJ=yes # is this really true???
18695 ## LD is ld it makes a PLAMLIB
18696 ## CC just makes a GrossModule.
18697 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18698 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18699 hardcode_direct_GCJ=no
18702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18703 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18706 runpath_var='LD_RUN_PATH'
18707 hardcode_shlibpath_var_GCJ=no
18711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18712 hardcode_shlibpath_var_GCJ=no
18713 export_dynamic_flag_spec_GCJ='-Bexport'
18717 if test -d /usr/nec; then
18718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18719 hardcode_shlibpath_var_GCJ=no
18720 runpath_var=LD_RUN_PATH
18721 hardcode_runpath_var=yes
18726 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18727 no_undefined_flag_GCJ='${wl}-z,text'
18728 archive_cmds_need_lc_GCJ=no
18729 hardcode_shlibpath_var_GCJ=no
18730 runpath_var='LD_RUN_PATH'
18732 if test "$GCC" = yes; then
18733 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18734 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18736 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18737 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18741 sysv5* | sco3.2v5* | sco5v6*)
18742 # Note: We can NOT use -z defs as we might desire, because we do not
18743 # link with -lc, and that would cause any symbols used from libc to
18744 # always be unresolved, which means just about no library would
18745 # ever link correctly. If we're not using GNU ld we use -z text
18746 # though, which does catch some bad symbols but isn't as heavy-handed
18748 no_undefined_flag_GCJ='${wl}-z,text'
18749 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18750 archive_cmds_need_lc_GCJ=no
18751 hardcode_shlibpath_var_GCJ=no
18752 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18753 hardcode_libdir_separator_GCJ=':'
18754 link_all_deplibs_GCJ=yes
18755 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18756 runpath_var='LD_RUN_PATH'
18758 if test "$GCC" = yes; then
18759 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18760 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18763 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18768 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18770 hardcode_shlibpath_var_GCJ=no
18779 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18780 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18781 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18784 # Do we need to explicitly link libc?
18786 case "x$archive_cmds_need_lc_GCJ" in
18788 # Assume -lc should be added
18789 archive_cmds_need_lc_GCJ=yes
18791 if test "$enable_shared" = yes && test "$GCC" = yes; then
18792 case $archive_cmds_GCJ in
18794 # FIXME: we may have to deal with multi-command sequences.
18797 # Test whether the compiler implicitly links with -lc since on some
18798 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18799 # to ld, don't add -lc before -lgcc.
18800 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18801 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18806 (eval $ac_compile) 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } 2>conftest.err; then
18812 libobjs=conftest.$ac_objext
18814 wl=$lt_prog_compiler_wl_GCJ
18815 pic_flag=$lt_prog_compiler_pic_GCJ
18821 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18822 allow_undefined_flag_GCJ=
18823 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18824 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }
18829 archive_cmds_need_lc_GCJ=no
18831 archive_cmds_need_lc_GCJ=yes
18833 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18835 cat conftest.err 1>&5
18838 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18839 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18846 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18847 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18848 library_names_spec=
18849 libname_spec='lib$name'
18853 postuninstall_cmds=
18857 shlibpath_overrides_runpath=unknown
18859 dynamic_linker="$host_os ld.so"
18860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18861 if test "$GCC" = yes; then
18862 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18863 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18864 # if the path contains ";" then we assume it to be the separator
18865 # otherwise default to the standard path separator (i.e. ":") - it is
18866 # assumed that no part of a normal pathname contains ";" but that should
18867 # okay in the real world where ";" in dirpaths is itself problematic.
18868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18873 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18875 need_lib_prefix=unknown
18876 hardcode_into_libs=no
18878 # when you set need_version to no, make sure it does not cause -set_version
18879 # flags to be left without arguments
18880 need_version=unknown
18885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18886 shlibpath_var=LIBPATH
18888 # AIX 3 has no versioning support, so we append a major version to the name.
18889 soname_spec='${libname}${release}${shared_ext}$major'
18896 hardcode_into_libs=yes
18897 if test "$host_cpu" = ia64; then
18898 # AIX 5 supports IA64
18899 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18900 shlibpath_var=LD_LIBRARY_PATH
18902 # With GCC up to 2.95.x, collect2 would create an import file
18903 # for dependence libraries. The import file would start with
18904 # the line `#! .'. This would cause the generated library to
18905 # depend on `.', always an invalid library. This was fixed in
18906 # development snapshots of GCC prior to 3.0.
18908 aix4 | aix4.[01] | aix4.[01].*)
18909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18911 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18914 can_build_shared=no
18918 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18919 # soname into executable. Probably we can add versioning support to
18920 # collect2, so additional links can be useful in future.
18921 if test "$aix_use_runtimelinking" = yes; then
18922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18923 # instead of lib<name>.a to let people know that these are not
18924 # typical AIX shared libraries.
18925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18927 # We preserve .a as extension for shared libraries through AIX4.2
18928 # and later when we are not doing run time linking.
18929 library_names_spec='${libname}${release}.a $libname.a'
18930 soname_spec='${libname}${release}${shared_ext}$major'
18932 shlibpath_var=LIBPATH
18937 library_names_spec='$libname.ixlibrary $libname.a'
18938 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18939 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'
18943 library_names_spec='${libname}${shared_ext}'
18944 dynamic_linker="$host_os ld.so"
18945 shlibpath_var=LIBRARY_PATH
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18952 soname_spec='${libname}${release}${shared_ext}$major'
18953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18954 shlibpath_var=LD_LIBRARY_PATH
18955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18957 # the default ld.so.conf also contains /usr/contrib/lib and
18958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18959 # libtool to hard-code these into programs
18962 cygwin* | mingw* | pw32*)
18963 version_type=windows
18968 case $GCC,$host_os in
18969 yes,cygwin* | yes,mingw* | yes,pw32*)
18970 library_names_spec='$libname.dll.a'
18971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18972 postinstall_cmds='base_file=`basename \${file}`~
18973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18974 dldir=$destdir/`dirname \$dlpath`~
18975 test -d \$dldir || mkdir -p \$dldir~
18976 $install_prog $dir/$dlname \$dldir/$dlname~
18977 chmod a+x \$dldir/$dlname'
18978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18979 dlpath=$dir/\$dldll~
18981 shlibpath_overrides_runpath=yes
18985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18990 # MinGW DLLs use traditional 'lib' prefix
18991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18993 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18994 # It is most probably a Windows format PATH printed by
18995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18996 # path with ; separators, and with drive letters. We can handle the
18997 # drive letters (cygwin fileutils understands them), so leave them,
18998 # especially as we might pass files found there to a mingw objdump,
18999 # which wouldn't understand a cygwinified path. Ahh.
19000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19006 # pw32 DLLs use 'pw' prefix rather than 'lib'
19007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19016 dynamic_linker='Win32 ld.exe'
19017 # FIXME: first we should search . and the directory the executable is in
19021 darwin* | rhapsody*)
19022 dynamic_linker="$host_os dyld"
19023 version_type=darwin
19026 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19027 soname_spec='${libname}${release}${major}$shared_ext'
19028 shlibpath_overrides_runpath=yes
19029 shlibpath_var=DYLD_LIBRARY_PATH
19030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19031 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19032 if test "$GCC" = yes; then
19033 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"`
19035 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19045 soname_spec='${libname}${release}${shared_ext}$major'
19046 shlibpath_var=LD_LIBRARY_PATH
19053 freebsd* | dragonfly*)
19054 # DragonFly does not have aout. When/if they implement a new
19055 # versioning mechanism, adjust this.
19056 if test -x /usr/bin/objformat; then
19057 objformat=`/usr/bin/objformat`
19060 freebsd[123]*) objformat=aout ;;
19061 *) objformat=elf ;;
19064 version_type=freebsd-$objformat
19065 case $version_type in
19067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19076 shlibpath_var=LD_LIBRARY_PATH
19079 shlibpath_overrides_runpath=yes
19081 freebsd3.[01]* | freebsdelf3.[01]*)
19082 shlibpath_overrides_runpath=yes
19083 hardcode_into_libs=yes
19085 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19086 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19087 shlibpath_overrides_runpath=no
19088 hardcode_into_libs=yes
19090 freebsd*) # from 4.6 on
19091 shlibpath_overrides_runpath=yes
19092 hardcode_into_libs=yes
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19102 soname_spec='${libname}${release}${shared_ext}$major'
19103 shlibpath_var=LD_LIBRARY_PATH
19104 hardcode_into_libs=yes
19107 hpux9* | hpux10* | hpux11*)
19108 # Give a soname corresponding to the major version so that dld.sl refuses to
19109 # link against other versions.
19116 hardcode_into_libs=yes
19117 dynamic_linker="$host_os dld.so"
19118 shlibpath_var=LD_LIBRARY_PATH
19119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121 soname_spec='${libname}${release}${shared_ext}$major'
19122 if test "X$HPUX_IA64_MODE" = X32; then
19123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19131 hardcode_into_libs=yes
19132 dynamic_linker="$host_os dld.sl"
19133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19136 soname_spec='${libname}${release}${shared_ext}$major'
19137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19142 dynamic_linker="$host_os dld.sl"
19143 shlibpath_var=SHLIB_PATH
19144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19146 soname_spec='${libname}${release}${shared_ext}$major'
19149 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19150 postinstall_cmds='chmod 555 $lib'
19157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19158 soname_spec='${libname}${release}${shared_ext}$major'
19159 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19160 shlibpath_var=LD_LIBRARY_PATH
19161 shlibpath_overrides_runpath=no
19162 hardcode_into_libs=yes
19165 irix5* | irix6* | nonstopux*)
19167 nonstopux*) version_type=nonstopux ;;
19169 if test "$lt_cv_prog_gnu_ld" = yes; then
19177 soname_spec='${libname}${release}${shared_ext}$major'
19178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19180 irix5* | nonstopux*)
19181 libsuff= shlibsuff=
19184 case $LD in # libtool.m4 will add one of these switches to LD
19185 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19186 libsuff= shlibsuff= libmagic=32-bit;;
19187 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19188 libsuff=32 shlibsuff=N32 libmagic=N32;;
19189 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19190 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19191 *) libsuff= shlibsuff= libmagic=never-match;;
19195 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19196 shlibpath_overrides_runpath=no
19197 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19198 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19199 hardcode_into_libs=yes
19202 # No shared lib support for Linux oldld, aout, or coff.
19203 linux*oldld* | linux*aout* | linux*coff*)
19207 # This must be Linux ELF.
19208 linux* | k*bsd*-gnu)
19212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19213 soname_spec='${libname}${release}${shared_ext}$major'
19214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19215 shlibpath_var=LD_LIBRARY_PATH
19216 shlibpath_overrides_runpath=no
19217 # This implies no fast_install, which is unacceptable.
19218 # Some rework will be needed to allow for fast_install
19219 # before this can be enabled.
19220 hardcode_into_libs=yes
19222 # Append ld.so.conf contents to the search path
19223 if test -f /etc/ld.so.conf; then
19224 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' ' '`
19225 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19228 # We used to test for /lib/ld.so.1 and disable shared libraries on
19229 # powerpc, because MkLinux only supported shared libraries with the
19230 # GNU dynamic linker. Since this was broken with cross compilers,
19231 # most powerpc-linux boxes support dynamic linking these days and
19232 # people can always --disable-shared, the test was removed, and we
19233 # assume the GNU/Linux dynamic linker is in use.
19234 dynamic_linker='GNU/Linux ld.so'
19241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19242 soname_spec='${libname}${release}${shared_ext}$major'
19243 shlibpath_var=LD_LIBRARY_PATH
19244 shlibpath_overrides_runpath=no
19245 hardcode_into_libs=yes
19246 dynamic_linker='NetBSD ld.elf_so'
19253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19256 dynamic_linker='NetBSD (a.out) ld.so'
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19259 soname_spec='${libname}${release}${shared_ext}$major'
19260 dynamic_linker='NetBSD ld.elf_so'
19262 shlibpath_var=LD_LIBRARY_PATH
19263 shlibpath_overrides_runpath=yes
19264 hardcode_into_libs=yes
19269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19270 shlibpath_var=LD_LIBRARY_PATH
19271 shlibpath_overrides_runpath=yes
19278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19279 soname_spec='${libname}${release}${shared_ext}$major'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 shlibpath_overrides_runpath=yes
19286 sys_lib_dlsearch_path_spec="/usr/lib"
19288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19291 *) need_version=no ;;
19293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19295 shlibpath_var=LD_LIBRARY_PATH
19296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19298 openbsd2.[89] | openbsd2.[89].*)
19299 shlibpath_overrides_runpath=no
19302 shlibpath_overrides_runpath=yes
19306 shlibpath_overrides_runpath=yes
19311 libname_spec='$name'
19314 library_names_spec='$libname${shared_ext} $libname.a'
19315 dynamic_linker='OS/2 ld.exe'
19316 shlibpath_var=LIBPATH
19319 osf3* | osf4* | osf5*)
19323 soname_spec='${libname}${release}${shared_ext}$major'
19324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19325 shlibpath_var=LD_LIBRARY_PATH
19326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19335 soname_spec='${libname}${release}${shared_ext}$major'
19336 shlibpath_var=LD_LIBRARY_PATH
19337 shlibpath_overrides_runpath=yes
19338 hardcode_into_libs=yes
19339 # ldd complains unless libraries are executable
19340 postinstall_cmds='chmod +x $lib'
19345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19347 shlibpath_var=LD_LIBRARY_PATH
19348 shlibpath_overrides_runpath=yes
19349 if test "$with_gnu_ld" = yes; then
19357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19358 soname_spec='${libname}${release}${shared_ext}$major'
19359 shlibpath_var=LD_LIBRARY_PATH
19360 case $host_vendor in
19362 shlibpath_overrides_runpath=no
19364 export_dynamic_flag_spec='${wl}-Blargedynsym'
19365 runpath_var=LD_RUN_PATH
19373 shlibpath_overrides_runpath=no
19374 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19380 if test -d /usr/nec ;then
19382 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19383 soname_spec='$libname${shared_ext}.$major'
19384 shlibpath_var=LD_LIBRARY_PATH
19388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19389 version_type=freebsd-elf
19392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19393 soname_spec='${libname}${release}${shared_ext}$major'
19394 shlibpath_var=LD_LIBRARY_PATH
19395 hardcode_into_libs=yes
19396 if test "$with_gnu_ld" = yes; then
19397 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19398 shlibpath_overrides_runpath=no
19400 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19401 shlibpath_overrides_runpath=yes
19404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19408 sys_lib_dlsearch_path_spec='/usr/lib'
19413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19414 soname_spec='${libname}${release}${shared_ext}$major'
19415 shlibpath_var=LD_LIBRARY_PATH
19422 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19423 echo "${ECHO_T}$dynamic_linker" >&6; }
19424 test "$dynamic_linker" = no && can_build_shared=no
19426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19427 if test "$GCC" = yes; then
19428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19431 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19432 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19433 hardcode_action_GCJ=
19434 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19435 test -n "$runpath_var_GCJ" || \
19436 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19438 # We can hardcode non-existant directories.
19439 if test "$hardcode_direct_GCJ" != no &&
19440 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19441 # have to relink, otherwise we might link with an installed library
19442 # when we should be linking with a yet-to-be-installed one
19443 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19444 test "$hardcode_minus_L_GCJ" != no; then
19445 # Linking always hardcodes the temporary library directory.
19446 hardcode_action_GCJ=relink
19448 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19449 hardcode_action_GCJ=immediate
19452 # We cannot hardcode anything, or else we can only hardcode existing
19454 hardcode_action_GCJ=unsupported
19456 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19457 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19459 if test "$hardcode_action_GCJ" = relink; then
19460 # Fast installation is not supported
19461 enable_fast_install=no
19462 elif test "$shlibpath_overrides_runpath" = yes ||
19463 test "$enable_shared" = no; then
19464 # Fast installation is not necessary
19465 enable_fast_install=needless
19469 # The else clause should only fire when bootstrapping the
19470 # libtool distribution, otherwise you forgot to ship ltmain.sh
19471 # with your package, and you will get complaints that there are
19472 # no rules to generate ltmain.sh.
19473 if test -f "$ltmain"; then
19474 # See if we are running on zsh, and set the options which allow our commands through
19475 # without removal of \ escapes.
19476 if test -n "${ZSH_VERSION+set}" ; then
19477 setopt NO_GLOB_SUBST
19479 # Now quote all the things that may contain metacharacters while being
19480 # careful not to overquote the AC_SUBSTed values. We take copies of the
19481 # variables and quote the copies for generation of the libtool script.
19482 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19484 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19485 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19486 deplibs_check_method reload_flag reload_cmds need_locks \
19487 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19488 lt_cv_sys_global_symbol_to_c_name_address \
19489 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19490 old_postinstall_cmds old_postuninstall_cmds \
19494 lt_prog_compiler_wl_GCJ \
19495 lt_prog_compiler_pic_GCJ \
19496 lt_prog_compiler_static_GCJ \
19497 lt_prog_compiler_no_builtin_flag_GCJ \
19498 export_dynamic_flag_spec_GCJ \
19499 thread_safe_flag_spec_GCJ \
19500 whole_archive_flag_spec_GCJ \
19501 enable_shared_with_static_runtimes_GCJ \
19502 old_archive_cmds_GCJ \
19503 old_archive_from_new_cmds_GCJ \
19504 predep_objects_GCJ \
19505 postdep_objects_GCJ \
19508 compiler_lib_search_path_GCJ \
19510 archive_expsym_cmds_GCJ \
19511 postinstall_cmds_GCJ \
19512 postuninstall_cmds_GCJ \
19513 old_archive_from_expsyms_cmds_GCJ \
19514 allow_undefined_flag_GCJ \
19515 no_undefined_flag_GCJ \
19516 export_symbols_cmds_GCJ \
19517 hardcode_libdir_flag_spec_GCJ \
19518 hardcode_libdir_flag_spec_ld_GCJ \
19519 hardcode_libdir_separator_GCJ \
19520 hardcode_automatic_GCJ \
19522 module_expsym_cmds_GCJ \
19523 lt_cv_prog_compiler_c_o_GCJ \
19524 exclude_expsyms_GCJ \
19525 include_expsyms_GCJ; do
19528 old_archive_cmds_GCJ | \
19529 old_archive_from_new_cmds_GCJ | \
19530 archive_cmds_GCJ | \
19531 archive_expsym_cmds_GCJ | \
19532 module_cmds_GCJ | \
19533 module_expsym_cmds_GCJ | \
19534 old_archive_from_expsyms_cmds_GCJ | \
19535 export_symbols_cmds_GCJ | \
19536 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19537 postinstall_cmds | postuninstall_cmds | \
19538 old_postinstall_cmds | old_postuninstall_cmds | \
19539 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19540 # Double-quote double-evaled strings.
19541 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19550 *'\$0 --fallback-echo"')
19551 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19557 cat <<__EOF__ >> "$cfgfile"
19558 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19560 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19562 # Shell to use when invoking shell scripts.
19565 # Whether or not to build shared libraries.
19566 build_libtool_libs=$enable_shared
19568 # Whether or not to build static libraries.
19569 build_old_libs=$enable_static
19571 # Whether or not to add -lc for building shared libraries.
19572 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19574 # Whether or not to disallow shared libs when runtime libs are static
19575 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19577 # Whether or not to optimize for fast installation.
19578 fast_install=$enable_fast_install
19581 host_alias=$host_alias
19585 # The build system.
19586 build_alias=$build_alias
19590 # An echo program that does not interpret backslashes.
19595 AR_FLAGS=$lt_AR_FLAGS
19600 # LTCC compiler flags.
19601 LTCFLAGS=$lt_LTCFLAGS
19603 # A language-specific compiler.
19604 CC=$lt_compiler_GCJ
19606 # Is the compiler the GNU C compiler?
19612 # The linker used to build libraries.
19615 # Whether we need hard or soft links.
19618 # A BSD-compatible nm program.
19621 # A symbol stripping program
19624 # Used to examine libraries when file_magic_cmd begins "file"
19625 MAGIC_CMD=$MAGIC_CMD
19627 # Used on cygwin: DLL creation program.
19630 # Used on cygwin: object dumper.
19633 # Used on cygwin: assembler.
19636 # The name of the directory that contains temporary libtool files.
19639 # How to create reloadable object files.
19640 reload_flag=$lt_reload_flag
19641 reload_cmds=$lt_reload_cmds
19643 # How to pass a linker flag through the compiler.
19644 wl=$lt_lt_prog_compiler_wl_GCJ
19646 # Object file suffix (normally "o").
19647 objext="$ac_objext"
19649 # Old archive suffix (normally "a").
19652 # Shared library suffix (normally ".so").
19653 shrext_cmds='$shrext_cmds'
19655 # Executable file suffix (normally "").
19658 # Additional compiler flags for building library objects.
19659 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19662 # What is the maximum length of a command?
19663 max_cmd_len=$lt_cv_sys_max_cmd_len
19665 # Does compiler simultaneously support -c and -o options?
19666 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19668 # Must we lock files when doing compilation?
19669 need_locks=$lt_need_locks
19671 # Do we need the lib prefix for modules?
19672 need_lib_prefix=$need_lib_prefix
19674 # Do we need a version for libraries?
19675 need_version=$need_version
19677 # Whether dlopen is supported.
19678 dlopen_support=$enable_dlopen
19680 # Whether dlopen of programs is supported.
19681 dlopen_self=$enable_dlopen_self
19683 # Whether dlopen of statically linked programs is supported.
19684 dlopen_self_static=$enable_dlopen_self_static
19686 # Compiler flag to prevent dynamic linking.
19687 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19689 # Compiler flag to turn off builtin functions.
19690 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19692 # Compiler flag to allow reflexive dlopens.
19693 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19695 # Compiler flag to generate shared objects directly from archives.
19696 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19698 # Compiler flag to generate thread-safe objects.
19699 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19701 # Library versioning type.
19702 version_type=$version_type
19704 # Format of library name prefix.
19705 libname_spec=$lt_libname_spec
19707 # List of archive names. First name is the real one, the rest are links.
19708 # The last name is the one that the linker finds with -lNAME.
19709 library_names_spec=$lt_library_names_spec
19711 # The coded name of the library, if different from the real name.
19712 soname_spec=$lt_soname_spec
19714 # Commands used to build and install an old-style archive.
19716 old_archive_cmds=$lt_old_archive_cmds_GCJ
19717 old_postinstall_cmds=$lt_old_postinstall_cmds
19718 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19720 # Create an old-style archive from a shared archive.
19721 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19723 # Create a temporary old-style archive to link instead of a shared archive.
19724 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19726 # Commands used to build and install a shared archive.
19727 archive_cmds=$lt_archive_cmds_GCJ
19728 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19729 postinstall_cmds=$lt_postinstall_cmds
19730 postuninstall_cmds=$lt_postuninstall_cmds
19732 # Commands used to build a loadable module (assumed same as above if empty)
19733 module_cmds=$lt_module_cmds_GCJ
19734 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19736 # Commands to strip libraries.
19737 old_striplib=$lt_old_striplib
19738 striplib=$lt_striplib
19740 # Dependencies to place before the objects being linked to create a
19742 predep_objects=$lt_predep_objects_GCJ
19744 # Dependencies to place after the objects being linked to create a
19746 postdep_objects=$lt_postdep_objects_GCJ
19748 # Dependencies to place before the objects being linked to create a
19750 predeps=$lt_predeps_GCJ
19752 # Dependencies to place after the objects being linked to create a
19754 postdeps=$lt_postdeps_GCJ
19756 # The library search path used internally by the compiler when linking
19757 # a shared library.
19758 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19760 # Method to check whether dependent libraries are shared objects.
19761 deplibs_check_method=$lt_deplibs_check_method
19763 # Command to use when deplibs_check_method == file_magic.
19764 file_magic_cmd=$lt_file_magic_cmd
19766 # Flag that allows shared libraries with undefined symbols to be built.
19767 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19769 # Flag that forces no undefined symbols.
19770 no_undefined_flag=$lt_no_undefined_flag_GCJ
19772 # Commands used to finish a libtool library installation in a directory.
19773 finish_cmds=$lt_finish_cmds
19775 # Same as above, but a single script fragment to be evaled but not shown.
19776 finish_eval=$lt_finish_eval
19778 # Take the output of nm and produce a listing of raw symbols and C names.
19779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19781 # Transform the output of nm in a proper C declaration
19782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19784 # Transform the output of nm in a C name address pair
19785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19787 # This is the shared library runtime path variable.
19788 runpath_var=$runpath_var
19790 # This is the shared library path variable.
19791 shlibpath_var=$shlibpath_var
19793 # Is shlibpath searched before the hard-coded library search path?
19794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19796 # How to hardcode a shared library path into an executable.
19797 hardcode_action=$hardcode_action_GCJ
19799 # Whether we should hardcode library paths into libraries.
19800 hardcode_into_libs=$hardcode_into_libs
19802 # Flag to hardcode \$libdir into a binary during linking.
19803 # This must work even if \$libdir does not exist.
19804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19806 # If ld is used when linking, flag to hardcode \$libdir into
19807 # a binary during linking. This must work even if \$libdir does
19809 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19811 # Whether we need a single -rpath flag with a separated argument.
19812 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19814 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19815 # resulting binary.
19816 hardcode_direct=$hardcode_direct_GCJ
19818 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19819 # resulting binary.
19820 hardcode_minus_L=$hardcode_minus_L_GCJ
19822 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19823 # the resulting binary.
19824 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19826 # Set to yes if building a shared library automatically hardcodes DIR into the library
19827 # and all subsequent libraries and executables linked against it.
19828 hardcode_automatic=$hardcode_automatic_GCJ
19830 # Variables whose values should be saved in libtool wrapper scripts and
19831 # restored at relink time.
19832 variables_saved_for_relink="$variables_saved_for_relink"
19834 # Whether libtool must link a program against all its dependency libraries.
19835 link_all_deplibs=$link_all_deplibs_GCJ
19837 # Compile-time system search path for libraries
19838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19840 # Run-time system search path for libraries
19841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19843 # Fix the shell variable \$srcfile for the compiler.
19844 fix_srcfile_path="$fix_srcfile_path_GCJ"
19846 # Set to yes if exported symbols are required.
19847 always_export_symbols=$always_export_symbols_GCJ
19849 # The commands to list exported symbols.
19850 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19852 # The commands to extract the exported symbol list from a shared archive.
19853 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19855 # Symbols that should not be listed in the preloaded symbols.
19856 exclude_expsyms=$lt_exclude_expsyms_GCJ
19858 # Symbols that must always be exported.
19859 include_expsyms=$lt_include_expsyms_GCJ
19861 # ### END LIBTOOL TAG CONFIG: $tagname
19867 # If there is no Makefile yet, we rely on a make rule to execute
19868 # `config.status --recheck' to rerun these tests and create the
19869 # libtool script then.
19870 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19871 if test -f "$ltmain_in"; then
19872 test -f Makefile && make "$ltmain"
19878 ac_cpp='$CPP $CPPFLAGS'
19879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893 # Source file extension for RC test sources.
19896 # Object file extension for compiled RC test sources.
19900 # Code to be used in simple compile tests
19901 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19903 # Code to be used in simple link tests
19904 lt_simple_link_test_code="$lt_simple_compile_test_code"
19906 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19908 # If no C compiler was specified, use CC.
19911 # If no C compiler flags were specified, use CFLAGS.
19912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19914 # Allow CC to be a program name with arguments.
19918 # save warnings/boilerplate of simple test code
19919 ac_outfile=conftest.$ac_objext
19920 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19921 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19922 _lt_compiler_boilerplate=`cat conftest.err`
19925 ac_outfile=conftest.$ac_objext
19926 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19927 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19928 _lt_linker_boilerplate=`cat conftest.err`
19932 # Allow CC to be a program name with arguments.
19937 for cc_temp in $compiler""; do
19939 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19940 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19945 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19947 lt_cv_prog_compiler_c_o_RC=yes
19949 # The else clause should only fire when bootstrapping the
19950 # libtool distribution, otherwise you forgot to ship ltmain.sh
19951 # with your package, and you will get complaints that there are
19952 # no rules to generate ltmain.sh.
19953 if test -f "$ltmain"; then
19954 # See if we are running on zsh, and set the options which allow our commands through
19955 # without removal of \ escapes.
19956 if test -n "${ZSH_VERSION+set}" ; then
19957 setopt NO_GLOB_SUBST
19959 # Now quote all the things that may contain metacharacters while being
19960 # careful not to overquote the AC_SUBSTed values. We take copies of the
19961 # variables and quote the copies for generation of the libtool script.
19962 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19964 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19965 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19966 deplibs_check_method reload_flag reload_cmds need_locks \
19967 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19968 lt_cv_sys_global_symbol_to_c_name_address \
19969 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19970 old_postinstall_cmds old_postuninstall_cmds \
19974 lt_prog_compiler_wl_RC \
19975 lt_prog_compiler_pic_RC \
19976 lt_prog_compiler_static_RC \
19977 lt_prog_compiler_no_builtin_flag_RC \
19978 export_dynamic_flag_spec_RC \
19979 thread_safe_flag_spec_RC \
19980 whole_archive_flag_spec_RC \
19981 enable_shared_with_static_runtimes_RC \
19982 old_archive_cmds_RC \
19983 old_archive_from_new_cmds_RC \
19984 predep_objects_RC \
19985 postdep_objects_RC \
19988 compiler_lib_search_path_RC \
19990 archive_expsym_cmds_RC \
19991 postinstall_cmds_RC \
19992 postuninstall_cmds_RC \
19993 old_archive_from_expsyms_cmds_RC \
19994 allow_undefined_flag_RC \
19995 no_undefined_flag_RC \
19996 export_symbols_cmds_RC \
19997 hardcode_libdir_flag_spec_RC \
19998 hardcode_libdir_flag_spec_ld_RC \
19999 hardcode_libdir_separator_RC \
20000 hardcode_automatic_RC \
20002 module_expsym_cmds_RC \
20003 lt_cv_prog_compiler_c_o_RC \
20004 exclude_expsyms_RC \
20005 include_expsyms_RC; do
20008 old_archive_cmds_RC | \
20009 old_archive_from_new_cmds_RC | \
20010 archive_cmds_RC | \
20011 archive_expsym_cmds_RC | \
20013 module_expsym_cmds_RC | \
20014 old_archive_from_expsyms_cmds_RC | \
20015 export_symbols_cmds_RC | \
20016 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20017 postinstall_cmds | postuninstall_cmds | \
20018 old_postinstall_cmds | old_postuninstall_cmds | \
20019 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20020 # Double-quote double-evaled strings.
20021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20030 *'\$0 --fallback-echo"')
20031 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20037 cat <<__EOF__ >> "$cfgfile"
20038 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20042 # Shell to use when invoking shell scripts.
20045 # Whether or not to build shared libraries.
20046 build_libtool_libs=$enable_shared
20048 # Whether or not to build static libraries.
20049 build_old_libs=$enable_static
20051 # Whether or not to add -lc for building shared libraries.
20052 build_libtool_need_lc=$archive_cmds_need_lc_RC
20054 # Whether or not to disallow shared libs when runtime libs are static
20055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20057 # Whether or not to optimize for fast installation.
20058 fast_install=$enable_fast_install
20061 host_alias=$host_alias
20065 # The build system.
20066 build_alias=$build_alias
20070 # An echo program that does not interpret backslashes.
20075 AR_FLAGS=$lt_AR_FLAGS
20080 # LTCC compiler flags.
20081 LTCFLAGS=$lt_LTCFLAGS
20083 # A language-specific compiler.
20086 # Is the compiler the GNU C compiler?
20092 # The linker used to build libraries.
20095 # Whether we need hard or soft links.
20098 # A BSD-compatible nm program.
20101 # A symbol stripping program
20104 # Used to examine libraries when file_magic_cmd begins "file"
20105 MAGIC_CMD=$MAGIC_CMD
20107 # Used on cygwin: DLL creation program.
20110 # Used on cygwin: object dumper.
20113 # Used on cygwin: assembler.
20116 # The name of the directory that contains temporary libtool files.
20119 # How to create reloadable object files.
20120 reload_flag=$lt_reload_flag
20121 reload_cmds=$lt_reload_cmds
20123 # How to pass a linker flag through the compiler.
20124 wl=$lt_lt_prog_compiler_wl_RC
20126 # Object file suffix (normally "o").
20127 objext="$ac_objext"
20129 # Old archive suffix (normally "a").
20132 # Shared library suffix (normally ".so").
20133 shrext_cmds='$shrext_cmds'
20135 # Executable file suffix (normally "").
20138 # Additional compiler flags for building library objects.
20139 pic_flag=$lt_lt_prog_compiler_pic_RC
20142 # What is the maximum length of a command?
20143 max_cmd_len=$lt_cv_sys_max_cmd_len
20145 # Does compiler simultaneously support -c and -o options?
20146 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20148 # Must we lock files when doing compilation?
20149 need_locks=$lt_need_locks
20151 # Do we need the lib prefix for modules?
20152 need_lib_prefix=$need_lib_prefix
20154 # Do we need a version for libraries?
20155 need_version=$need_version
20157 # Whether dlopen is supported.
20158 dlopen_support=$enable_dlopen
20160 # Whether dlopen of programs is supported.
20161 dlopen_self=$enable_dlopen_self
20163 # Whether dlopen of statically linked programs is supported.
20164 dlopen_self_static=$enable_dlopen_self_static
20166 # Compiler flag to prevent dynamic linking.
20167 link_static_flag=$lt_lt_prog_compiler_static_RC
20169 # Compiler flag to turn off builtin functions.
20170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20172 # Compiler flag to allow reflexive dlopens.
20173 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20175 # Compiler flag to generate shared objects directly from archives.
20176 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20178 # Compiler flag to generate thread-safe objects.
20179 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20181 # Library versioning type.
20182 version_type=$version_type
20184 # Format of library name prefix.
20185 libname_spec=$lt_libname_spec
20187 # List of archive names. First name is the real one, the rest are links.
20188 # The last name is the one that the linker finds with -lNAME.
20189 library_names_spec=$lt_library_names_spec
20191 # The coded name of the library, if different from the real name.
20192 soname_spec=$lt_soname_spec
20194 # Commands used to build and install an old-style archive.
20196 old_archive_cmds=$lt_old_archive_cmds_RC
20197 old_postinstall_cmds=$lt_old_postinstall_cmds
20198 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20200 # Create an old-style archive from a shared archive.
20201 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20203 # Create a temporary old-style archive to link instead of a shared archive.
20204 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20206 # Commands used to build and install a shared archive.
20207 archive_cmds=$lt_archive_cmds_RC
20208 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20209 postinstall_cmds=$lt_postinstall_cmds
20210 postuninstall_cmds=$lt_postuninstall_cmds
20212 # Commands used to build a loadable module (assumed same as above if empty)
20213 module_cmds=$lt_module_cmds_RC
20214 module_expsym_cmds=$lt_module_expsym_cmds_RC
20216 # Commands to strip libraries.
20217 old_striplib=$lt_old_striplib
20218 striplib=$lt_striplib
20220 # Dependencies to place before the objects being linked to create a
20222 predep_objects=$lt_predep_objects_RC
20224 # Dependencies to place after the objects being linked to create a
20226 postdep_objects=$lt_postdep_objects_RC
20228 # Dependencies to place before the objects being linked to create a
20230 predeps=$lt_predeps_RC
20232 # Dependencies to place after the objects being linked to create a
20234 postdeps=$lt_postdeps_RC
20236 # The library search path used internally by the compiler when linking
20237 # a shared library.
20238 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20240 # Method to check whether dependent libraries are shared objects.
20241 deplibs_check_method=$lt_deplibs_check_method
20243 # Command to use when deplibs_check_method == file_magic.
20244 file_magic_cmd=$lt_file_magic_cmd
20246 # Flag that allows shared libraries with undefined symbols to be built.
20247 allow_undefined_flag=$lt_allow_undefined_flag_RC
20249 # Flag that forces no undefined symbols.
20250 no_undefined_flag=$lt_no_undefined_flag_RC
20252 # Commands used to finish a libtool library installation in a directory.
20253 finish_cmds=$lt_finish_cmds
20255 # Same as above, but a single script fragment to be evaled but not shown.
20256 finish_eval=$lt_finish_eval
20258 # Take the output of nm and produce a listing of raw symbols and C names.
20259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20261 # Transform the output of nm in a proper C declaration
20262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20264 # Transform the output of nm in a C name address pair
20265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20267 # This is the shared library runtime path variable.
20268 runpath_var=$runpath_var
20270 # This is the shared library path variable.
20271 shlibpath_var=$shlibpath_var
20273 # Is shlibpath searched before the hard-coded library search path?
20274 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20276 # How to hardcode a shared library path into an executable.
20277 hardcode_action=$hardcode_action_RC
20279 # Whether we should hardcode library paths into libraries.
20280 hardcode_into_libs=$hardcode_into_libs
20282 # Flag to hardcode \$libdir into a binary during linking.
20283 # This must work even if \$libdir does not exist.
20284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20286 # If ld is used when linking, flag to hardcode \$libdir into
20287 # a binary during linking. This must work even if \$libdir does
20289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20291 # Whether we need a single -rpath flag with a separated argument.
20292 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20294 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20295 # resulting binary.
20296 hardcode_direct=$hardcode_direct_RC
20298 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20299 # resulting binary.
20300 hardcode_minus_L=$hardcode_minus_L_RC
20302 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20303 # the resulting binary.
20304 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20306 # Set to yes if building a shared library automatically hardcodes DIR into the library
20307 # and all subsequent libraries and executables linked against it.
20308 hardcode_automatic=$hardcode_automatic_RC
20310 # Variables whose values should be saved in libtool wrapper scripts and
20311 # restored at relink time.
20312 variables_saved_for_relink="$variables_saved_for_relink"
20314 # Whether libtool must link a program against all its dependency libraries.
20315 link_all_deplibs=$link_all_deplibs_RC
20317 # Compile-time system search path for libraries
20318 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20320 # Run-time system search path for libraries
20321 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20323 # Fix the shell variable \$srcfile for the compiler.
20324 fix_srcfile_path="$fix_srcfile_path_RC"
20326 # Set to yes if exported symbols are required.
20327 always_export_symbols=$always_export_symbols_RC
20329 # The commands to list exported symbols.
20330 export_symbols_cmds=$lt_export_symbols_cmds_RC
20332 # The commands to extract the exported symbol list from a shared archive.
20333 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20335 # Symbols that should not be listed in the preloaded symbols.
20336 exclude_expsyms=$lt_exclude_expsyms_RC
20338 # Symbols that must always be exported.
20339 include_expsyms=$lt_include_expsyms_RC
20341 # ### END LIBTOOL TAG CONFIG: $tagname
20347 # If there is no Makefile yet, we rely on a make rule to execute
20348 # `config.status --recheck' to rerun these tests and create the
20349 # libtool script then.
20350 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20351 if test -f "$ltmain_in"; then
20352 test -f Makefile && make "$ltmain"
20358 ac_cpp='$CPP $CPPFLAGS'
20359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20368 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20369 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20370 { (exit 1); exit 1; }; }
20374 # Append the new tag name to the list of available tags.
20375 if test -n "$tagname" ; then
20376 available_tags="$available_tags $tagname"
20382 # Now substitute the updated list of available tags.
20383 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20384 mv "${ofile}T" "$ofile"
20388 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20389 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20390 { (exit 1); exit 1; }; }
20396 # This can be used to rebuild libtool when needed
20397 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20399 # Always use our own libtool.
20400 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20402 # Prevent multiple expansion
20424 if test "x$cross_compiling" = "xno"; then
20425 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20427 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20432 if test -n "$ac_tool_prefix"; then
20433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20434 set dummy ${ac_tool_prefix}ar; ac_word=$2
20435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20437 if test "${ac_cv_prog_AR+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 if test -n "$AR"; then
20441 ac_cv_prog_AR="$AR" # Let the user override the test.
20443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20444 for as_dir in $PATH
20447 test -z "$as_dir" && as_dir=.
20448 for ac_exec_ext in '' $ac_executable_extensions; do
20449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20450 ac_cv_prog_AR="${ac_tool_prefix}ar"
20451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20461 if test -n "$AR"; then
20462 { echo "$as_me:$LINENO: result: $AR" >&5
20463 echo "${ECHO_T}$AR" >&6; }
20465 { echo "$as_me:$LINENO: result: no" >&5
20466 echo "${ECHO_T}no" >&6; }
20471 if test -z "$ac_cv_prog_AR"; then
20473 # Extract the first word of "ar", so it can be a program name with args.
20474 set dummy ar; ac_word=$2
20475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20477 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 if test -n "$ac_ct_AR"; then
20481 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20484 for as_dir in $PATH
20487 test -z "$as_dir" && as_dir=.
20488 for ac_exec_ext in '' $ac_executable_extensions; do
20489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20490 ac_cv_prog_ac_ct_AR="ar"
20491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20500 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20501 if test -n "$ac_ct_AR"; then
20502 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20503 echo "${ECHO_T}$ac_ct_AR" >&6; }
20505 { echo "$as_me:$LINENO: result: no" >&5
20506 echo "${ECHO_T}no" >&6; }
20509 if test "x$ac_ct_AR" = x; then
20512 case $cross_compiling:$ac_tool_warned in
20514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20515 whose name does not start with the host triplet. If you think this
20516 configuration is useful to you, please write to autoconf@gnu.org." >&5
20517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20518 whose name does not start with the host triplet. If you think this
20519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20520 ac_tool_warned=yes ;;
20525 AR="$ac_cv_prog_AR"
20528 if test -n "$ac_tool_prefix"; then
20529 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20530 set dummy ${ac_tool_prefix}ld; ac_word=$2
20531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20533 if test "${ac_cv_prog_LD+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 if test -n "$LD"; then
20537 ac_cv_prog_LD="$LD" # Let the user override the test.
20539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20540 for as_dir in $PATH
20543 test -z "$as_dir" && as_dir=.
20544 for ac_exec_ext in '' $ac_executable_extensions; do
20545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20546 ac_cv_prog_LD="${ac_tool_prefix}ld"
20547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20557 if test -n "$LD"; then
20558 { echo "$as_me:$LINENO: result: $LD" >&5
20559 echo "${ECHO_T}$LD" >&6; }
20561 { echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6; }
20567 if test -z "$ac_cv_prog_LD"; then
20569 # Extract the first word of "ld", so it can be a program name with args.
20570 set dummy ld; ac_word=$2
20571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20573 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 if test -n "$ac_ct_LD"; then
20577 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20580 for as_dir in $PATH
20583 test -z "$as_dir" && as_dir=.
20584 for ac_exec_ext in '' $ac_executable_extensions; do
20585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20586 ac_cv_prog_ac_ct_LD="ld"
20587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20596 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20597 if test -n "$ac_ct_LD"; then
20598 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20599 echo "${ECHO_T}$ac_ct_LD" >&6; }
20601 { echo "$as_me:$LINENO: result: no" >&5
20602 echo "${ECHO_T}no" >&6; }
20605 if test "x$ac_ct_LD" = x; then
20608 case $cross_compiling:$ac_tool_warned in
20610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20611 whose name does not start with the host triplet. If you think this
20612 configuration is useful to you, please write to autoconf@gnu.org." >&5
20613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20614 whose name does not start with the host triplet. If you think this
20615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20616 ac_tool_warned=yes ;;
20621 LD="$ac_cv_prog_LD"
20625 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20626 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20627 if test "${ac_cv_header_stdc+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 #include <stdlib.h>
20637 #include <stdarg.h>
20638 #include <string.h>
20649 rm -f conftest.$ac_objext
20650 if { (ac_try="$ac_compile"
20651 case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_compile") 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest.$ac_objext; then
20666 ac_cv_header_stdc=yes
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_header_stdc=no
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676 if test $ac_cv_header_stdc = yes; then
20677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 #include <string.h>
20687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20688 $EGREP "memchr" >/dev/null 2>&1; then
20691 ac_cv_header_stdc=no
20697 if test $ac_cv_header_stdc = yes; then
20698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 #include <stdlib.h>
20708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20709 $EGREP "free" >/dev/null 2>&1; then
20712 ac_cv_header_stdc=no
20718 if test $ac_cv_header_stdc = yes; then
20719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20720 if test "$cross_compiling" = yes; then
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20730 #include <stdlib.h>
20731 #if ((' ' & 0x0FF) == 0x020)
20732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20735 # define ISLOWER(c) \
20736 (('a' <= (c) && (c) <= 'i') \
20737 || ('j' <= (c) && (c) <= 'r') \
20738 || ('s' <= (c) && (c) <= 'z'))
20739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20747 for (i = 0; i < 256; i++)
20748 if (XOR (islower (i), ISLOWER (i))
20749 || toupper (i) != TOUPPER (i))
20754 rm -f conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_link") 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20765 { (case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_try") 2>&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20776 echo "$as_me: program exited with status $ac_status" >&5
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ( exit $ac_status )
20781 ac_cv_header_stdc=no
20783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20789 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20790 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20791 if test $ac_cv_header_stdc = yes; then
20793 cat >>confdefs.h <<\_ACEOF
20794 @%:@define STDC_HEADERS 1
20800 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20801 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20802 if test "${knfsd_cv_glibc2+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20812 #include <features.h>
20813 #if !defined(__GLIBC__)
20818 if { (ac_try="$ac_cpp conftest.$ac_ext"
20819 case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20826 grep -v '^ *+' conftest.er1 >conftest.err
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } >/dev/null && {
20831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20832 test ! -s conftest.err
20834 knfsd_cv_glibc2=yes
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20842 rm -f conftest.err conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20846 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20847 if test $knfsd_cv_glibc2 = yes; then
20848 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20849 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20853 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20854 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20855 if test "${knfsd_cv_bsd_signals+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 if test "$cross_compiling" = yes; then
20861 *linux*) knfsd_cv_bsd_signals=no;;
20862 *bsd*) knfsd_cv_bsd_signals=yes;;
20863 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
20864 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
20865 { (exit 1); exit 1; }; };;
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20876 #include <signal.h>
20877 #include <unistd.h>
20878 #include <sys/wait.h>
20880 static int counter = 0;
20881 static RETSIGTYPE handler(int num) { counter++; }
20886 if ((s = fork()) < 0) return 1;
20888 if (wait(&s) < 0) return 1;
20889 return WIFSIGNALED(s)? 1 : 0;
20892 signal(SIGHUP, handler);
20893 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20894 return (counter == 2)? 0 : 1;
20898 rm -f conftest$ac_exeext
20899 if { (ac_try="$ac_link"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_link") 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20909 { (case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_try") 2>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 knfsd_cv_bsd_signals=yes
20920 echo "$as_me: program exited with status $ac_status" >&5
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ( exit $ac_status )
20925 knfsd_cv_bsd_signals=no
20927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20932 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20933 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20934 test $knfsd_cv_bsd_signals = yes &&
20935 cat >>confdefs.h <<\_ACEOF
20936 @%:@define HAVE_BSD_SIGNALS 1
20941 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20942 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20943 if test "${ac_cv_func_gethostbyname+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20952 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20954 #define gethostbyname innocuous_gethostbyname
20956 /* System header to define __stub macros and hopefully few prototypes,
20957 which can conflict with char gethostbyname (); below.
20958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20959 <limits.h> exists even on freestanding compilers. */
20962 # include <limits.h>
20964 # include <assert.h>
20967 #undef gethostbyname
20969 /* Override any GCC internal prototype to avoid an error.
20970 Use char because int might match the return type of a GCC
20971 builtin and then its argument prototype would still apply. */
20975 char gethostbyname ();
20976 /* The GNU C library defines this for functions which it implements
20977 to always fail with ENOSYS. Some functions are actually named
20978 something starting with __ and the normal name is an alias. */
20979 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20986 return gethostbyname ();
20991 rm -f conftest.$ac_objext conftest$ac_exeext
20992 if { (ac_try="$ac_link"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_link") 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } && {
21005 test -z "$ac_c_werror_flag" ||
21006 test ! -s conftest.err
21007 } && test -s conftest$ac_exeext &&
21008 $as_test_x conftest$ac_exeext; then
21009 ac_cv_func_gethostbyname=yes
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_cv_func_gethostbyname=no
21017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21018 conftest$ac_exeext conftest.$ac_ext
21020 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21021 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21022 if test $ac_cv_func_gethostbyname = yes; then
21025 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21026 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21027 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 ac_check_lib_save_LIBS=$LIBS
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21039 /* Override any GCC internal prototype to avoid an error.
21040 Use char because int might match the return type of a GCC
21041 builtin and then its argument prototype would still apply. */
21045 char gethostbyname ();
21049 return gethostbyname ();
21054 rm -f conftest.$ac_objext conftest$ac_exeext
21055 if { (ac_try="$ac_link"
21056 case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_link") 2>conftest.er1
21063 grep -v '^ *+' conftest.er1 >conftest.err
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } && {
21068 test -z "$ac_c_werror_flag" ||
21069 test ! -s conftest.err
21070 } && test -s conftest$ac_exeext &&
21071 $as_test_x conftest$ac_exeext; then
21072 ac_cv_lib_nsl_gethostbyname=yes
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21077 ac_cv_lib_nsl_gethostbyname=no
21080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21081 conftest$ac_exeext conftest.$ac_ext
21082 LIBS=$ac_check_lib_save_LIBS
21084 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21085 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21086 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21094 { echo "$as_me:$LINENO: checking for connect" >&5
21095 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21096 if test "${ac_cv_func_connect+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21107 #define connect innocuous_connect
21109 /* System header to define __stub macros and hopefully few prototypes,
21110 which can conflict with char connect (); below.
21111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21112 <limits.h> exists even on freestanding compilers. */
21115 # include <limits.h>
21117 # include <assert.h>
21122 /* Override any GCC internal prototype to avoid an error.
21123 Use char because int might match the return type of a GCC
21124 builtin and then its argument prototype would still apply. */
21129 /* The GNU C library defines this for functions which it implements
21130 to always fail with ENOSYS. Some functions are actually named
21131 something starting with __ and the normal name is an alias. */
21132 #if defined __stub_connect || defined __stub___connect
21144 rm -f conftest.$ac_objext conftest$ac_exeext
21145 if { (ac_try="$ac_link"
21146 case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_link") 2>conftest.er1
21153 grep -v '^ *+' conftest.er1 >conftest.err
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } && {
21158 test -z "$ac_c_werror_flag" ||
21159 test ! -s conftest.err
21160 } && test -s conftest$ac_exeext &&
21161 $as_test_x conftest$ac_exeext; then
21162 ac_cv_func_connect=yes
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ac_cv_func_connect=no
21170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21171 conftest$ac_exeext conftest.$ac_ext
21173 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21174 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21175 if test $ac_cv_func_connect = yes; then
21178 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21179 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21180 if test "${ac_cv_lib_socket_connect+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 ac_check_lib_save_LIBS=$LIBS
21184 LIBS="-lsocket $LIBNSL $LIBS"
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21192 /* Override any GCC internal prototype to avoid an error.
21193 Use char because int might match the return type of a GCC
21194 builtin and then its argument prototype would still apply. */
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (ac_try="$ac_link"
21209 case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_link") 2>conftest.er1
21216 grep -v '^ *+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && {
21221 test -z "$ac_c_werror_flag" ||
21222 test ! -s conftest.err
21223 } && test -s conftest$ac_exeext &&
21224 $as_test_x conftest$ac_exeext; then
21225 ac_cv_lib_socket_connect=yes
21227 echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21230 ac_cv_lib_socket_connect=no
21233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21234 conftest$ac_exeext conftest.$ac_ext
21235 LIBS=$ac_check_lib_save_LIBS
21237 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21238 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21239 if test $ac_cv_lib_socket_connect = yes; then
21240 LIBSOCKET="-lsocket"
21242 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21243 echo "$as_me: error: Function 'socket' not found." >&2;}
21244 { (exit 1); exit 1; }; }
21250 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21251 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21252 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 ac_check_lib_save_LIBS=$LIBS
21256 LIBS="-lcrypt $LIBS"
21257 cat >conftest.$ac_ext <<_ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21264 /* Override any GCC internal prototype to avoid an error.
21265 Use char because int might match the return type of a GCC
21266 builtin and then its argument prototype would still apply. */
21279 rm -f conftest.$ac_objext 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>conftest.er1
21288 grep -v '^ *+' conftest.er1 >conftest.err
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && {
21293 test -z "$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 } && test -s conftest$ac_exeext &&
21296 $as_test_x conftest$ac_exeext; then
21297 ac_cv_lib_crypt_crypt=yes
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21302 ac_cv_lib_crypt_crypt=no
21305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21306 conftest$ac_exeext conftest.$ac_ext
21307 LIBS=$ac_check_lib_save_LIBS
21309 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21310 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21311 if test $ac_cv_lib_crypt_crypt = yes; then
21315 if test "$enable_nfsv4" = yes; then
21316 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21317 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21318 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21321 ac_check_lib_save_LIBS=$LIBS
21322 LIBS="-levent $LIBS"
21323 cat >conftest.$ac_ext <<_ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21330 /* Override any GCC internal prototype to avoid an error.
21331 Use char because int might match the return type of a GCC
21332 builtin and then its argument prototype would still apply. */
21336 char event_dispatch ();
21340 return event_dispatch ();
21345 rm -f conftest.$ac_objext conftest$ac_exeext
21346 if { (ac_try="$ac_link"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_link") 2>conftest.er1
21354 grep -v '^ *+' conftest.er1 >conftest.err
21356 cat conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && {
21359 test -z "$ac_c_werror_flag" ||
21360 test ! -s conftest.err
21361 } && test -s conftest$ac_exeext &&
21362 $as_test_x conftest$ac_exeext; then
21363 ac_cv_lib_event_event_dispatch=yes
21365 echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21368 ac_cv_lib_event_event_dispatch=no
21371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21372 conftest$ac_exeext conftest.$ac_ext
21373 LIBS=$ac_check_lib_save_LIBS
21375 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21376 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21377 if test $ac_cv_lib_event_event_dispatch = yes; then
21380 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21381 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21382 { (exit 1); exit 1; }; }
21385 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21386 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21387 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21390 ac_check_lib_save_LIBS=$LIBS
21391 LIBS="-lnfsidmap $LIBS"
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21399 /* Override any GCC internal prototype to avoid an error.
21400 Use char because int might match the return type of a GCC
21401 builtin and then its argument prototype would still apply. */
21405 char nfs4_init_name_mapping ();
21409 return nfs4_init_name_mapping ();
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (ac_try="$ac_link"
21416 case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_link") 2>conftest.er1
21423 grep -v '^ *+' conftest.er1 >conftest.err
21425 cat conftest.err >&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } && {
21428 test -z "$ac_c_werror_flag" ||
21429 test ! -s conftest.err
21430 } && test -s conftest$ac_exeext &&
21431 $as_test_x conftest$ac_exeext; then
21432 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21441 conftest$ac_exeext conftest.$ac_ext
21442 LIBS=$ac_check_lib_save_LIBS
21444 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21445 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21446 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21449 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21450 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21451 { (exit 1); exit 1; }; }
21455 for ac_header in event.h
21457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465 { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21468 # Is the header compilable?
21469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21470 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
21478 @%:@include <$ac_header>
21480 rm -f conftest.$ac_objext
21481 if { (ac_try="$ac_compile"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_compile") 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest.$ac_objext; then
21497 ac_header_compiler=yes
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_header_compiler=no
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21507 echo "${ECHO_T}$ac_header_compiler" >&6; }
21509 # Is the header present?
21510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 @%:@include <$ac_header>
21520 if { (ac_try="$ac_cpp conftest.$ac_ext"
21521 case "(($ac_try" in
21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } >/dev/null && {
21533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21534 test ! -s conftest.err
21536 ac_header_preproc=yes
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21541 ac_header_preproc=no
21544 rm -f conftest.err conftest.$ac_ext
21545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21546 echo "${ECHO_T}$ac_header_preproc" >&6; }
21548 # So? What about this header?
21549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21555 ac_header_preproc=yes
21558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21571 @%:@@%:@ ------------------------------- @%:@@%:@
21572 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21573 @%:@@%:@ ------------------------------- @%:@@%:@
21575 ) | sed "s/^/$as_me: WARNING: /" >&2
21578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21583 eval "$as_ac_Header=\$ac_header_preproc"
21585 ac_res=`eval echo '${'$as_ac_Header'}'`
21586 { echo "$as_me:$LINENO: result: $ac_res" >&5
21587 echo "${ECHO_T}$ac_res" >&6; }
21590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21591 cat >>confdefs.h <<_ACEOF
21592 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21596 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21597 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21598 { (exit 1); exit 1; }; }
21604 for ac_header in nfsidmap.h
21606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21613 ac_res=`eval echo '${'$as_ac_Header'}'`
21614 { echo "$as_me:$LINENO: result: $ac_res" >&5
21615 echo "${ECHO_T}$ac_res" >&6; }
21617 # Is the header compilable?
21618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 $ac_includes_default
21627 @%:@include <$ac_header>
21629 rm -f conftest.$ac_objext
21630 if { (ac_try="$ac_compile"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_compile") 2>conftest.er1
21638 grep -v '^ *+' conftest.er1 >conftest.err
21640 cat conftest.err >&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
21646 ac_header_compiler=yes
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_header_compiler=no
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21656 echo "${ECHO_T}$ac_header_compiler" >&6; }
21658 # Is the header present?
21659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 @%:@include <$ac_header>
21669 if { (ac_try="$ac_cpp conftest.$ac_ext"
21670 case "(($ac_try" in
21671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672 *) ac_try_echo=$ac_try;;
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21677 grep -v '^ *+' conftest.er1 >conftest.err
21679 cat conftest.err >&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } >/dev/null && {
21682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21683 test ! -s conftest.err
21685 ac_header_preproc=yes
21687 echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21690 ac_header_preproc=no
21693 rm -f conftest.err conftest.$ac_ext
21694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21695 echo "${ECHO_T}$ac_header_preproc" >&6; }
21697 # So? What about this header?
21698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21704 ac_header_preproc=yes
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21720 @%:@@%:@ ------------------------------- @%:@@%:@
21721 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21722 @%:@@%:@ ------------------------------- @%:@@%:@
21724 ) | sed "s/^/$as_me: WARNING: /" >&2
21727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21732 eval "$as_ac_Header=\$ac_header_preproc"
21734 ac_res=`eval echo '${'$as_ac_Header'}'`
21735 { echo "$as_me:$LINENO: result: $ac_res" >&5
21736 echo "${ECHO_T}$ac_res" >&6; }
21739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21740 cat >>confdefs.h <<_ACEOF
21741 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21745 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21746 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21747 { (exit 1); exit 1; }; }
21752 if test "$enable_gss" = yes; then
21755 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21756 if test -n "$ac_tool_prefix"; then
21757 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21758 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21761 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 case $PKG_CONFIG in
21766 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21770 for as_dir in $PATH
21773 test -z "$as_dir" && as_dir=.
21774 for ac_exec_ext in '' $ac_executable_extensions; do
21775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21776 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21787 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21788 if test -n "$PKG_CONFIG"; then
21789 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21790 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21792 { echo "$as_me:$LINENO: result: no" >&5
21793 echo "${ECHO_T}no" >&6; }
21798 if test -z "$ac_cv_path_PKG_CONFIG"; then
21799 ac_pt_PKG_CONFIG=$PKG_CONFIG
21800 # Extract the first word of "pkg-config", so it can be a program name with args.
21801 set dummy pkg-config; ac_word=$2
21802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21804 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 case $ac_pt_PKG_CONFIG in
21809 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813 for as_dir in $PATH
21816 test -z "$as_dir" && as_dir=.
21817 for ac_exec_ext in '' $ac_executable_extensions; do
21818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21819 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21830 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21831 if test -n "$ac_pt_PKG_CONFIG"; then
21832 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21833 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21835 { echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6; }
21839 if test "x$ac_pt_PKG_CONFIG" = x; then
21842 case $cross_compiling:$ac_tool_warned in
21844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21845 whose name does not start with the host triplet. If you think this
21846 configuration is useful to you, please write to autoconf@gnu.org." >&5
21847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21848 whose name does not start with the host triplet. If you think this
21849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21850 ac_tool_warned=yes ;;
21852 PKG_CONFIG=$ac_pt_PKG_CONFIG
21855 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21859 if test -n "$PKG_CONFIG"; then
21860 _pkg_min_version=0.9.0
21861 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21862 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21863 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21864 { echo "$as_me:$LINENO: result: yes" >&5
21865 echo "${ECHO_T}yes" >&6; }
21867 { echo "$as_me:$LINENO: result: no" >&5
21868 echo "${ECHO_T}no" >&6; }
21875 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21876 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21878 if test -n "$PKG_CONFIG"; then
21879 if test -n "$RPCSECGSS_CFLAGS"; then
21880 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21882 if test -n "$PKG_CONFIG" && \
21883 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21884 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; then
21888 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21896 if test -n "$PKG_CONFIG"; then
21897 if test -n "$RPCSECGSS_LIBS"; then
21898 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21900 if test -n "$PKG_CONFIG" && \
21901 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21902 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; then
21906 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21917 if test $pkg_failed = yes; then
21919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21920 _pkg_short_errors_supported=yes
21922 _pkg_short_errors_supported=no
21924 if test $_pkg_short_errors_supported = yes; then
21925 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21927 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21929 # Put the nasty error message in config.log where it belongs
21930 echo "$RPCSECGSS_PKG_ERRORS" >&5
21932 { echo "$as_me:$LINENO: result: no" >&5
21933 echo "${ECHO_T}no" >&6; }
21934 { { 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
21935 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;}
21936 { (exit 1); exit 1; }; }
21939 elif test $pkg_failed = untried; then
21940 { { 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
21941 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;}
21942 { (exit 1); exit 1; }; }
21946 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21947 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21948 { echo "$as_me:$LINENO: result: yes" >&5
21949 echo "${ECHO_T}yes" >&6; }
21954 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21955 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21957 if test -n "$PKG_CONFIG"; then
21958 if test -n "$GSSAPI_CFLAGS"; then
21959 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21961 if test -n "$PKG_CONFIG" && \
21962 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21963 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; then
21967 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21975 if test -n "$PKG_CONFIG"; then
21976 if test -n "$GSSAPI_LIBS"; then
21977 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21979 if test -n "$PKG_CONFIG" && \
21980 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21981 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; then
21985 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21996 if test $pkg_failed = yes; then
21998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21999 _pkg_short_errors_supported=yes
22001 _pkg_short_errors_supported=no
22003 if test $_pkg_short_errors_supported = yes; then
22004 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22006 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22008 # Put the nasty error message in config.log where it belongs
22009 echo "$GSSAPI_PKG_ERRORS" >&5
22011 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22015 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22016 installed software in a non-standard prefix.
22018 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22019 and GSSAPI_LIBS to avoid the need to call pkg-config.
22020 See the pkg-config man page for more details.
22022 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22026 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22027 installed software in a non-standard prefix.
22029 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22030 and GSSAPI_LIBS to avoid the need to call pkg-config.
22031 See the pkg-config man page for more details.
22033 { (exit 1); exit 1; }; }
22034 elif test $pkg_failed = untried; then
22035 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22036 is in your PATH or set the PKG_CONFIG environment variable to the full
22037 path to pkg-config.
22039 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22040 and GSSAPI_LIBS to avoid the need to call pkg-config.
22041 See the pkg-config man page for more details.
22043 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22044 See \`config.log' for more details." >&5
22045 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22046 is in your PATH or set the PKG_CONFIG environment variable to the full
22047 path to pkg-config.
22049 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22050 and GSSAPI_LIBS to avoid the need to call pkg-config.
22051 See the pkg-config man page for more details.
22053 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22054 See \`config.log' for more details." >&2;}
22055 { (exit 1); exit 1; }; }
22057 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22058 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22059 { echo "$as_me:$LINENO: result: yes" >&5
22060 echo "${ECHO_T}yes" >&6; }
22066 if test "$knfsd_cv_glibc2" = no; then
22067 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22068 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22069 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22070 echo $ECHO_N "(cached) $ECHO_C" >&6
22072 ac_check_lib_save_LIBS=$LIBS
22074 cat >conftest.$ac_ext <<_ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22081 /* Override any GCC internal prototype to avoid an error.
22082 Use char because int might match the return type of a GCC
22083 builtin and then its argument prototype would still apply. */
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_link") 2>conftest.er1
22105 grep -v '^ *+' conftest.er1 >conftest.err
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && {
22110 test -z "$ac_c_werror_flag" ||
22111 test ! -s conftest.err
22112 } && test -s conftest$ac_exeext &&
22113 $as_test_x conftest$ac_exeext; then
22114 ac_cv_lib_bsd_daemon=yes
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ac_cv_lib_bsd_daemon=no
22122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22123 conftest$ac_exeext conftest.$ac_ext
22124 LIBS=$ac_check_lib_save_LIBS
22126 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22127 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22128 if test $ac_cv_lib_bsd_daemon = yes; then
22133 { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
22134 echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; }
22135 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 ac_check_lib_save_LIBS=$LIBS
22139 LIBS="-lblkid $LIBS"
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22147 /* Override any GCC internal prototype to avoid an error.
22148 Use char because int might match the return type of a GCC
22149 builtin and then its argument prototype would still apply. */
22153 char blkid_get_cache ();
22157 return blkid_get_cache ();
22162 rm -f conftest.$ac_objext conftest$ac_exeext
22163 if { (ac_try="$ac_link"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_link") 2>conftest.er1
22171 grep -v '^ *+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest$ac_exeext &&
22179 $as_test_x conftest$ac_exeext; then
22180 ac_cv_lib_blkid_blkid_get_cache=yes
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 ac_cv_lib_blkid_blkid_get_cache=no
22188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22189 conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22192 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22193 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22194 if test $ac_cv_lib_blkid_blkid_get_cache = yes; then
22197 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22198 echo "$as_me: error: libblkid needed" >&2;}
22199 { (exit 1); exit 1; }; }
22202 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22203 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22204 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22205 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22208 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22209 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22211 # Is the header compilable?
22212 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22213 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22214 cat >conftest.$ac_ext <<_ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h. */
22220 $ac_includes_default
22221 @%:@include <blkid/blkid.h>
22223 rm -f conftest.$ac_objext
22224 if { (ac_try="$ac_compile"
22225 case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_compile") 2>conftest.er1
22232 grep -v '^ *+' conftest.er1 >conftest.err
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest.$ac_objext; then
22240 ac_header_compiler=yes
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ac_header_compiler=no
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22250 echo "${ECHO_T}$ac_header_compiler" >&6; }
22252 # Is the header present?
22253 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22254 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22255 cat >conftest.$ac_ext <<_ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22261 @%:@include <blkid/blkid.h>
22263 if { (ac_try="$ac_cpp conftest.$ac_ext"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } >/dev/null && {
22276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22279 ac_header_preproc=yes
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 ac_header_preproc=no
22287 rm -f conftest.err conftest.$ac_ext
22288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22289 echo "${ECHO_T}$ac_header_preproc" >&6; }
22291 # So? What about this header?
22292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22294 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22295 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22296 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
22297 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
22298 ac_header_preproc=yes
22301 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
22302 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
22304 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
22306 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
22308 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
22309 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
22310 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
22311 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
22312 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
22314 @%:@@%:@ ------------------------------- @%:@@%:@
22315 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22316 @%:@@%:@ ------------------------------- @%:@@%:@
22318 ) | sed "s/^/$as_me: WARNING: /" >&2
22321 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22322 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22323 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22326 ac_cv_header_blkid_blkid_h=$ac_header_preproc
22328 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22329 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22332 if test $ac_cv_header_blkid_blkid_h = yes; then
22335 { { echo "$as_me:$LINENO: error: Cannot file libblkid header file blkid/blkid.h" >&5
22336 echo "$as_me: error: Cannot file libblkid header file blkid/blkid.h" >&2;}
22337 { (exit 1); exit 1; }; }
22346 if test "$enable_gss" = yes; then
22348 for ac_header in nfsidmap.h
22350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 ac_res=`eval echo '${'$as_ac_Header'}'`
22358 { echo "$as_me:$LINENO: result: $ac_res" >&5
22359 echo "${ECHO_T}$ac_res" >&6; }
22361 # Is the header compilable?
22362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22364 cat >conftest.$ac_ext <<_ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h. */
22370 $ac_includes_default
22371 @%:@include <$ac_header>
22373 rm -f conftest.$ac_objext
22374 if { (ac_try="$ac_compile"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380 (eval "$ac_compile") 2>conftest.er1
22382 grep -v '^ *+' conftest.er1 >conftest.err
22384 cat conftest.err >&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } && {
22387 test -z "$ac_c_werror_flag" ||
22388 test ! -s conftest.err
22389 } && test -s conftest.$ac_objext; then
22390 ac_header_compiler=yes
22392 echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22395 ac_header_compiler=no
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22400 echo "${ECHO_T}$ac_header_compiler" >&6; }
22402 # Is the header present?
22403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 @%:@include <$ac_header>
22413 if { (ac_try="$ac_cpp conftest.$ac_ext"
22414 case "(($ac_try" in
22415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416 *) ac_try_echo=$ac_try;;
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } >/dev/null && {
22426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22429 ac_header_preproc=yes
22431 echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22434 ac_header_preproc=no
22437 rm -f conftest.err conftest.$ac_ext
22438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22439 echo "${ECHO_T}$ac_header_preproc" >&6; }
22441 # So? What about this header?
22442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22448 ac_header_preproc=yes
22451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22464 @%:@@%:@ ------------------------------- @%:@@%:@
22465 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22466 @%:@@%:@ ------------------------------- @%:@@%:@
22468 ) | sed "s/^/$as_me: WARNING: /" >&2
22471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 eval "$as_ac_Header=\$ac_header_preproc"
22478 ac_res=`eval echo '${'$as_ac_Header'}'`
22479 { echo "$as_me:$LINENO: result: $ac_res" >&5
22480 echo "${ECHO_T}$ac_res" >&6; }
22483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22484 cat >>confdefs.h <<_ACEOF
22485 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22489 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22490 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22491 { (exit 1); exit 1; }; }
22497 for ac_header in spkm3.h
22499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22506 ac_res=`eval echo '${'$as_ac_Header'}'`
22507 { echo "$as_me:$LINENO: result: $ac_res" >&5
22508 echo "${ECHO_T}$ac_res" >&6; }
22510 # Is the header compilable?
22511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 $ac_includes_default
22520 @%:@include <$ac_header>
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22531 grep -v '^ *+' conftest.er1 >conftest.err
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest.$ac_objext; then
22539 ac_header_compiler=yes
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_header_compiler=no
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22549 echo "${ECHO_T}$ac_header_compiler" >&6; }
22551 # Is the header present?
22552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22554 cat >conftest.$ac_ext <<_ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22560 @%:@include <$ac_header>
22562 if { (ac_try="$ac_cpp conftest.$ac_ext"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } >/dev/null && {
22575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22578 ac_header_preproc=yes
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 ac_header_preproc=no
22586 rm -f conftest.err conftest.$ac_ext
22587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22588 echo "${ECHO_T}$ac_header_preproc" >&6; }
22590 # So? What about this header?
22591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22597 ac_header_preproc=yes
22600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22613 @%:@@%:@ ------------------------------- @%:@@%:@
22614 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22615 @%:@@%:@ ------------------------------- @%:@@%:@
22617 ) | sed "s/^/$as_me: WARNING: /" >&2
22620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 eval "$as_ac_Header=\$ac_header_preproc"
22627 ac_res=`eval echo '${'$as_ac_Header'}'`
22628 { echo "$as_me:$LINENO: result: $ac_res" >&5
22629 echo "${ECHO_T}$ac_res" >&6; }
22632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22633 cat >>confdefs.h <<_ACEOF
22634 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22638 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22639 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22644 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22645 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22646 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22649 ac_check_lib_save_LIBS=$LIBS
22650 LIBS="-lnfsidmap $LIBS"
22651 cat >conftest.$ac_ext <<_ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22658 /* Override any GCC internal prototype to avoid an error.
22659 Use char because int might match the return type of a GCC
22660 builtin and then its argument prototype would still apply. */
22664 char nfs4_set_debug ();
22668 return nfs4_set_debug ();
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (ac_try="$ac_link"
22675 case "(($ac_try" in
22676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680 (eval "$ac_link") 2>conftest.er1
22682 grep -v '^ *+' conftest.er1 >conftest.err
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } && {
22687 test -z "$ac_c_werror_flag" ||
22688 test ! -s conftest.err
22689 } && test -s conftest$ac_exeext &&
22690 $as_test_x conftest$ac_exeext; then
22691 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22693 echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22696 ac_cv_lib_nfsidmap_nfs4_set_debug=no
22699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22700 conftest$ac_exeext conftest.$ac_ext
22701 LIBS=$ac_check_lib_save_LIBS
22703 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22704 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22705 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22707 cat >>confdefs.h <<\_ACEOF
22708 @%:@define HAVE_NFS4_SET_DEBUG 1
22715 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22716 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22718 # Check whether --with-krb5 was given.
22719 if test "${with_krb5+set}" = set; then
22720 withval=$with_krb5; case "$withval" in
22725 krb5_with="$withval"
22732 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22733 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22735 if test -f $dir/bin/krb5-config; then
22736 K5CONFIG=$dir/bin/krb5-config
22737 elif test -f "/usr/kerberos/bin/krb5-config"; then
22738 K5CONFIG="/usr/kerberos/bin/krb5-config"
22739 elif test -f "/usr/lib/mit/bin/krb5-config"; then
22740 K5CONFIG="/usr/lib/mit/bin/krb5-config"
22742 if test "$K5CONFIG" != ""; then
22743 KRBCFLAGS=`$K5CONFIG --cflags`
22744 KRBLIBS=`$K5CONFIG --libs gssapi`
22745 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
22747 cat >>confdefs.h <<_ACEOF
22748 @%:@define KRB5_VERSION $K5VERS
22751 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22752 \( -f $dir/lib/libgssapi_krb5.a -o \
22753 -f $dir/lib/libgssapi_krb5.so \) ; then
22755 cat >>confdefs.h <<\_ACEOF
22756 @%:@define HAVE_KRB5 1
22760 if test $K5VERS -le 131; then
22762 cat >>confdefs.h <<\_ACEOF
22763 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
22767 gssapi_lib=gssapi_krb5
22769 elif test \( -f $dir/include/heim_err.h -o\
22770 -f $dir/include/heimdal/heim_err.h \) -a \
22771 -f $dir/lib/libroken.a; then
22773 cat >>confdefs.h <<\_ACEOF
22774 @%:@define HAVE_HEIMDAL 1
22783 if test "x$KRBDIR" = "x"; then
22784 if test "x$krb5_with" = "x"; then
22785 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22786 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22787 { (exit 1); exit 1; }; }
22789 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22790 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22791 { (exit 1); exit 1; }; }
22794 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22795 echo "${ECHO_T}$KRBDIR" >&6; }
22797 echo "The current KRBDIR is $KRBDIR"
22798 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22799 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22801 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22804 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22807 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22808 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22809 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22810 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22811 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 ac_check_lib_save_LIBS=$LIBS
22814 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22815 cat >conftest.$ac_ext <<_ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22822 /* Override any GCC internal prototype to avoid an error.
22823 Use char because int might match the return type of a GCC
22824 builtin and then its argument prototype would still apply. */
22828 char gss_krb5_export_lucid_sec_context ();
22832 return gss_krb5_export_lucid_sec_context ();
22837 rm -f conftest.$ac_objext conftest$ac_exeext
22838 if { (ac_try="$ac_link"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_link") 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest$ac_exeext &&
22854 $as_test_x conftest$ac_exeext; then
22855 eval "$as_ac_Lib=yes"
22857 echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22860 eval "$as_ac_Lib=no"
22863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22864 conftest$ac_exeext conftest.$ac_ext
22865 LIBS=$ac_check_lib_save_LIBS
22867 ac_res=`eval echo '${'$as_ac_Lib'}'`
22868 { echo "$as_me:$LINENO: result: $ac_res" >&5
22869 echo "${ECHO_T}$ac_res" >&6; }
22870 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22872 cat >>confdefs.h <<\_ACEOF
22873 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
22878 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22879 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22880 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22881 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22882 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 ac_check_lib_save_LIBS=$LIBS
22885 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22886 cat >conftest.$ac_ext <<_ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h. */
22893 /* Override any GCC internal prototype to avoid an error.
22894 Use char because int might match the return type of a GCC
22895 builtin and then its argument prototype would still apply. */
22899 char gss_krb5_set_allowable_enctypes ();
22903 return gss_krb5_set_allowable_enctypes ();
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (ac_try="$ac_link"
22910 case "(($ac_try" in
22911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912 *) ac_try_echo=$ac_try;;
22914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915 (eval "$ac_link") 2>conftest.er1
22917 grep -v '^ *+' conftest.er1 >conftest.err
22919 cat conftest.err >&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } && {
22922 test -z "$ac_c_werror_flag" ||
22923 test ! -s conftest.err
22924 } && test -s conftest$ac_exeext &&
22925 $as_test_x conftest$ac_exeext; then
22926 eval "$as_ac_Lib=yes"
22928 echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22931 eval "$as_ac_Lib=no"
22934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22935 conftest$ac_exeext conftest.$ac_ext
22936 LIBS=$ac_check_lib_save_LIBS
22938 ac_res=`eval echo '${'$as_ac_Lib'}'`
22939 { echo "$as_me:$LINENO: result: $ac_res" >&5
22940 echo "${ECHO_T}$ac_res" >&6; }
22941 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22943 cat >>confdefs.h <<\_ACEOF
22944 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
22949 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22950 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22951 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22952 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22953 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 ac_check_lib_save_LIBS=$LIBS
22956 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22964 /* Override any GCC internal prototype to avoid an error.
22965 Use char because int might match the return type of a GCC
22966 builtin and then its argument prototype would still apply. */
22970 char gss_krb5_ccache_name ();
22974 return gss_krb5_ccache_name ();
22979 rm -f conftest.$ac_objext conftest$ac_exeext
22980 if { (ac_try="$ac_link"
22981 case "(($ac_try" in
22982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22983 *) ac_try_echo=$ac_try;;
22985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22986 (eval "$ac_link") 2>conftest.er1
22988 grep -v '^ *+' conftest.er1 >conftest.err
22990 cat conftest.err >&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); } && {
22993 test -z "$ac_c_werror_flag" ||
22994 test ! -s conftest.err
22995 } && test -s conftest$ac_exeext &&
22996 $as_test_x conftest$ac_exeext; then
22997 eval "$as_ac_Lib=yes"
22999 echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 eval "$as_ac_Lib=no"
23005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23006 conftest$ac_exeext conftest.$ac_ext
23007 LIBS=$ac_check_lib_save_LIBS
23009 ac_res=`eval echo '${'$as_ac_Lib'}'`
23010 { echo "$as_me:$LINENO: result: $ac_res" >&5
23011 echo "${ECHO_T}$ac_res" >&6; }
23012 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23014 cat >>confdefs.h <<\_ACEOF
23015 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23021 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23022 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23023 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23034 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23035 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23036 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 ac_check_lib_save_LIBS=$LIBS
23040 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23048 /* Override any GCC internal prototype to avoid an error.
23049 Use char because int might match the return type of a GCC
23050 builtin and then its argument prototype would still apply. */
23054 char authgss_create_default ();
23058 return authgss_create_default ();
23063 rm -f conftest.$ac_objext conftest$ac_exeext
23064 if { (ac_try="$ac_link"
23065 case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070 (eval "$ac_link") 2>conftest.er1
23072 grep -v '^ *+' conftest.er1 >conftest.err
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest$ac_exeext &&
23080 $as_test_x conftest$ac_exeext; then
23081 ac_cv_lib_rpcsecgss_authgss_create_default=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_cv_lib_rpcsecgss_authgss_create_default=no
23089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23090 conftest$ac_exeext conftest.$ac_ext
23091 LIBS=$ac_check_lib_save_LIBS
23093 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23094 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23095 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23098 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23099 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23100 { (exit 1); exit 1; }; }
23103 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23104 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23105 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23106 echo $ECHO_N "(cached) $ECHO_C" >&6
23108 ac_check_lib_save_LIBS=$LIBS
23109 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23117 /* Override any GCC internal prototype to avoid an error.
23118 Use char because int might match the return type of a GCC
23119 builtin and then its argument prototype would still apply. */
23123 char authgss_set_debug_level ();
23127 return authgss_set_debug_level ();
23132 rm -f conftest.$ac_objext conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_link") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest$ac_exeext &&
23149 $as_test_x conftest$ac_exeext; then
23150 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23152 echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23155 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23159 conftest$ac_exeext conftest.$ac_ext
23160 LIBS=$ac_check_lib_save_LIBS
23162 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23163 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23164 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23166 cat >>confdefs.h <<\_ACEOF
23167 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23198 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23199 malloc.h memory.h netdb.h netinet/in.h paths.h \
23200 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23201 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23202 syslog.h unistd.h com_err.h et/com_err.h \
23205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23210 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 ac_res=`eval echo '${'$as_ac_Header'}'`
23213 { echo "$as_me:$LINENO: result: $ac_res" >&5
23214 echo "${ECHO_T}$ac_res" >&6; }
23216 # Is the header compilable?
23217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23219 cat >conftest.$ac_ext <<_ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h. */
23225 $ac_includes_default
23226 @%:@include <$ac_header>
23228 rm -f conftest.$ac_objext
23229 if { (ac_try="$ac_compile"
23230 case "(($ac_try" in
23231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232 *) ac_try_echo=$ac_try;;
23234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235 (eval "$ac_compile") 2>conftest.er1
23237 grep -v '^ *+' conftest.er1 >conftest.err
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } && {
23242 test -z "$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 } && test -s conftest.$ac_objext; then
23245 ac_header_compiler=yes
23247 echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23250 ac_header_compiler=no
23253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23255 echo "${ECHO_T}$ac_header_compiler" >&6; }
23257 # Is the header present?
23258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23260 cat >conftest.$ac_ext <<_ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23266 @%:@include <$ac_header>
23268 if { (ac_try="$ac_cpp conftest.$ac_ext"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23276 grep -v '^ *+' conftest.er1 >conftest.err
23278 cat conftest.err >&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } >/dev/null && {
23281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23284 ac_header_preproc=yes
23286 echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23289 ac_header_preproc=no
23292 rm -f conftest.err conftest.$ac_ext
23293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23294 echo "${ECHO_T}$ac_header_preproc" >&6; }
23296 # So? What about this header?
23297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23303 ac_header_preproc=yes
23306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23319 @%:@@%:@ ------------------------------- @%:@@%:@
23320 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23321 @%:@@%:@ ------------------------------- @%:@@%:@
23323 ) | sed "s/^/$as_me: WARNING: /" >&2
23326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23329 echo $ECHO_N "(cached) $ECHO_C" >&6
23331 eval "$as_ac_Header=\$ac_header_preproc"
23333 ac_res=`eval echo '${'$as_ac_Header'}'`
23334 { echo "$as_me:$LINENO: result: $ac_res" >&5
23335 echo "${ECHO_T}$ac_res" >&6; }
23338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23339 cat >>confdefs.h <<_ACEOF
23340 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23348 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23349 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23350 if test "${ac_cv_c_const+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 cat >conftest.$ac_ext <<_ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23363 /* FIXME: Include the comments suggested by Paul. */
23364 #ifndef __cplusplus
23365 /* Ultrix mips cc rejects this. */
23366 typedef int charset[2];
23368 /* SunOS 4.1.1 cc rejects this. */
23369 char const *const *pcpcc;
23371 /* NEC SVR4.0.2 mips cc rejects this. */
23372 struct point {int x, y;};
23373 static struct point const zero = {0,0};
23374 /* AIX XL C 1.02.0.0 rejects this.
23375 It does not let you subtract one const X* pointer from another in
23376 an arm of an if-expression whose if-part is not a constant
23378 const char *g = "string";
23379 pcpcc = &g + (g ? g-g : 0);
23380 /* HPUX 7.0 cc rejects these. */
23382 ppc = (char**) pcpcc;
23383 pcpcc = (char const *const *) ppc;
23384 { /* SCO 3.2v4 cc rejects this. */
23386 char const *s = 0 ? (char *) 0 : (char const *) 0;
23391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23392 int x[] = {25, 17};
23393 const int *foo = &x[0];
23396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23397 typedef const int *iptr;
23401 { /* AIX XL C 1.02.0.0 rejects this saying
23402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23403 struct s { int j; const int *ap[3]; };
23404 struct s *b; b->j = 5;
23406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23407 const int foo = 10;
23408 if (!foo) return 0;
23410 return !cs[0] && !zero.x;
23417 rm -f conftest.$ac_objext
23418 if { (ac_try="$ac_compile"
23419 case "(($ac_try" in
23420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421 *) ac_try_echo=$ac_try;;
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424 (eval "$ac_compile") 2>conftest.er1
23426 grep -v '^ *+' conftest.er1 >conftest.err
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } && {
23431 test -z "$ac_c_werror_flag" ||
23432 test ! -s conftest.err
23433 } && test -s conftest.$ac_objext; then
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23444 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23445 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23446 if test $ac_cv_c_const = no; then
23448 cat >>confdefs.h <<\_ACEOF
23454 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23455 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23456 if test "${ac_cv_type_uid_t+set}" = set; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 cat >conftest.$ac_ext <<_ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 #include <sys/types.h>
23468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23469 $EGREP "uid_t" >/dev/null 2>&1; then
23470 ac_cv_type_uid_t=yes
23472 ac_cv_type_uid_t=no
23477 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23478 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23479 if test $ac_cv_type_uid_t = no; then
23481 cat >>confdefs.h <<\_ACEOF
23482 @%:@define uid_t int
23486 cat >>confdefs.h <<\_ACEOF
23487 @%:@define gid_t int
23492 { echo "$as_me:$LINENO: checking for inline" >&5
23493 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23494 if test "${ac_cv_c_inline+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 for ac_kw in inline __inline__ __inline; do
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 #ifndef __cplusplus
23507 static $ac_kw foo_t static_foo () {return 0; }
23508 $ac_kw foo_t foo () {return 0; }
23512 rm -f conftest.$ac_objext
23513 if { (ac_try="$ac_compile"
23514 case "(($ac_try" in
23515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516 *) ac_try_echo=$ac_try;;
23518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519 (eval "$ac_compile") 2>conftest.er1
23521 grep -v '^ *+' conftest.er1 >conftest.err
23523 cat conftest.err >&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } && {
23526 test -z "$ac_c_werror_flag" ||
23527 test ! -s conftest.err
23528 } && test -s conftest.$ac_objext; then
23529 ac_cv_c_inline=$ac_kw
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23538 test "$ac_cv_c_inline" != no && break
23542 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23543 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23546 case $ac_cv_c_inline in
23549 case $ac_cv_c_inline in
23551 *) ac_val=$ac_cv_c_inline;;
23553 cat >>confdefs.h <<_ACEOF
23554 #ifndef __cplusplus
23555 #define inline $ac_val
23561 { echo "$as_me:$LINENO: checking for off_t" >&5
23562 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23563 if test "${ac_cv_type_off_t+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 $ac_includes_default
23573 typedef off_t ac__type_new_;
23577 if ((ac__type_new_ *) 0)
23579 if (sizeof (ac__type_new_))
23585 rm -f conftest.$ac_objext
23586 if { (ac_try="$ac_compile"
23587 case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_compile") 2>conftest.er1
23594 grep -v '^ *+' conftest.er1 >conftest.err
23596 cat conftest.err >&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } && {
23599 test -z "$ac_c_werror_flag" ||
23600 test ! -s conftest.err
23601 } && test -s conftest.$ac_objext; then
23602 ac_cv_type_off_t=yes
23604 echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 ac_cv_type_off_t=no
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23613 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23614 if test $ac_cv_type_off_t = yes; then
23618 cat >>confdefs.h <<_ACEOF
23619 @%:@define off_t long int
23624 { echo "$as_me:$LINENO: checking for pid_t" >&5
23625 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23626 if test "${ac_cv_type_pid_t+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23635 $ac_includes_default
23636 typedef pid_t ac__type_new_;
23640 if ((ac__type_new_ *) 0)
23642 if (sizeof (ac__type_new_))
23648 rm -f conftest.$ac_objext
23649 if { (ac_try="$ac_compile"
23650 case "(($ac_try" in
23651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652 *) ac_try_echo=$ac_try;;
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655 (eval "$ac_compile") 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest.$ac_objext; then
23665 ac_cv_type_pid_t=yes
23667 echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23670 ac_cv_type_pid_t=no
23673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23676 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23677 if test $ac_cv_type_pid_t = yes; then
23681 cat >>confdefs.h <<_ACEOF
23682 @%:@define pid_t int
23687 { echo "$as_me:$LINENO: checking for size_t" >&5
23688 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23689 if test "${ac_cv_type_size_t+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 $ac_includes_default
23699 typedef size_t ac__type_new_;
23703 if ((ac__type_new_ *) 0)
23705 if (sizeof (ac__type_new_))
23711 rm -f conftest.$ac_objext
23712 if { (ac_try="$ac_compile"
23713 case "(($ac_try" in
23714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715 *) ac_try_echo=$ac_try;;
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718 (eval "$ac_compile") 2>conftest.er1
23720 grep -v '^ *+' conftest.er1 >conftest.err
23722 cat conftest.err >&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && {
23725 test -z "$ac_c_werror_flag" ||
23726 test ! -s conftest.err
23727 } && test -s conftest.$ac_objext; then
23728 ac_cv_type_size_t=yes
23730 echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23733 ac_cv_type_size_t=no
23736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23738 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23739 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23740 if test $ac_cv_type_size_t = yes; then
23744 cat >>confdefs.h <<_ACEOF
23745 @%:@define size_t unsigned int
23750 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23751 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23752 if test "${ac_cv_header_time+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23755 cat >conftest.$ac_ext <<_ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 #include <sys/types.h>
23762 #include <sys/time.h>
23768 if ((struct tm *) 0)
23774 rm -f conftest.$ac_objext
23775 if { (ac_try="$ac_compile"
23776 case "(($ac_try" in
23777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778 *) ac_try_echo=$ac_try;;
23780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23781 (eval "$ac_compile") 2>conftest.er1
23783 grep -v '^ *+' conftest.er1 >conftest.err
23785 cat conftest.err >&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); } && {
23788 test -z "$ac_c_werror_flag" ||
23789 test ! -s conftest.err
23790 } && test -s conftest.$ac_objext; then
23791 ac_cv_header_time=yes
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ac_cv_header_time=no
23799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23801 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23802 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23803 if test $ac_cv_header_time = yes; then
23805 cat >>confdefs.h <<\_ACEOF
23806 @%:@define TIME_WITH_SYS_TIME 1
23811 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23812 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23813 if test "${ac_cv_struct_tm+set}" = set; then
23814 echo $ECHO_N "(cached) $ECHO_C" >&6
23816 cat >conftest.$ac_ext <<_ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23822 #include <sys/types.h>
23829 int *p = &tm.tm_sec;
23835 rm -f conftest.$ac_objext
23836 if { (ac_try="$ac_compile"
23837 case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_compile") 2>conftest.er1
23844 grep -v '^ *+' conftest.er1 >conftest.err
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest.$ac_objext; then
23852 ac_cv_struct_tm=time.h
23854 echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23857 ac_cv_struct_tm=sys/time.h
23860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23863 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23864 if test $ac_cv_struct_tm = sys/time.h; then
23866 cat >>confdefs.h <<\_ACEOF
23867 @%:@define TM_IN_SYS_TIME 1
23873 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23874 # for constant arguments. Useless!
23875 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23876 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23877 if test "${ac_cv_working_alloca_h+set}" = set; then
23878 echo $ECHO_N "(cached) $ECHO_C" >&6
23880 cat >conftest.$ac_ext <<_ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23886 @%:@include <alloca.h>
23890 char *p = (char *) alloca (2 * sizeof (int));
23896 rm -f conftest.$ac_objext conftest$ac_exeext
23897 if { (ac_try="$ac_link"
23898 case "(($ac_try" in
23899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900 *) ac_try_echo=$ac_try;;
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903 (eval "$ac_link") 2>conftest.er1
23905 grep -v '^ *+' conftest.er1 >conftest.err
23907 cat conftest.err >&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest$ac_exeext &&
23913 $as_test_x conftest$ac_exeext; then
23914 ac_cv_working_alloca_h=yes
23916 echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 ac_cv_working_alloca_h=no
23922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23923 conftest$ac_exeext conftest.$ac_ext
23925 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23926 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23927 if test $ac_cv_working_alloca_h = yes; then
23929 cat >>confdefs.h <<\_ACEOF
23930 @%:@define HAVE_ALLOCA_H 1
23935 { echo "$as_me:$LINENO: checking for alloca" >&5
23936 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23937 if test "${ac_cv_func_alloca_works+set}" = set; then
23938 echo $ECHO_N "(cached) $ECHO_C" >&6
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23947 # define alloca __builtin_alloca
23950 # include <malloc.h>
23951 # define alloca _alloca
23953 # ifdef HAVE_ALLOCA_H
23954 # include <alloca.h>
23959 # ifndef alloca /* predefined by HP cc +Olibcalls */
23970 char *p = (char *) alloca (1);
23976 rm -f conftest.$ac_objext conftest$ac_exeext
23977 if { (ac_try="$ac_link"
23978 case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_link") 2>conftest.er1
23985 grep -v '^ *+' conftest.er1 >conftest.err
23987 cat conftest.err >&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } && {
23990 test -z "$ac_c_werror_flag" ||
23991 test ! -s conftest.err
23992 } && test -s conftest$ac_exeext &&
23993 $as_test_x conftest$ac_exeext; then
23994 ac_cv_func_alloca_works=yes
23996 echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23999 ac_cv_func_alloca_works=no
24002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24003 conftest$ac_exeext conftest.$ac_ext
24005 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24006 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24008 if test $ac_cv_func_alloca_works = yes; then
24010 cat >>confdefs.h <<\_ACEOF
24011 @%:@define HAVE_ALLOCA 1
24015 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24016 # that cause trouble. Some versions do not even contain alloca or
24017 # contain a buggy version. If you still want to use their alloca,
24018 # use ar to extract alloca.o from them instead of compiling alloca.c.
24020 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24022 cat >>confdefs.h <<\_ACEOF
24023 @%:@define C_ALLOCA 1
24027 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24028 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24029 if test "${ac_cv_os_cray+set}" = set; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24032 cat >conftest.$ac_ext <<_ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h. */
24038 #if defined CRAY && ! defined CRAY2
24045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24046 $EGREP "webecray" >/dev/null 2>&1; then
24054 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24055 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24056 if test $ac_cv_os_cray = yes; then
24057 for ac_func in _getb67 GETB67 getb67; do
24058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 cat >conftest.$ac_ext <<_ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h. */
24070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24072 #define $ac_func innocuous_$ac_func
24074 /* System header to define __stub macros and hopefully few prototypes,
24075 which can conflict with char $ac_func (); below.
24076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24077 <limits.h> exists even on freestanding compilers. */
24080 # include <limits.h>
24082 # include <assert.h>
24087 /* Override any GCC internal prototype to avoid an error.
24088 Use char because int might match the return type of a GCC
24089 builtin and then its argument prototype would still apply. */
24094 /* The GNU C library defines this for functions which it implements
24095 to always fail with ENOSYS. Some functions are actually named
24096 something starting with __ and the normal name is an alias. */
24097 #if defined __stub_$ac_func || defined __stub___$ac_func
24104 return $ac_func ();
24109 rm -f conftest.$ac_objext conftest$ac_exeext
24110 if { (ac_try="$ac_link"
24111 case "(($ac_try" in
24112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24113 *) ac_try_echo=$ac_try;;
24115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24116 (eval "$ac_link") 2>conftest.er1
24118 grep -v '^ *+' conftest.er1 >conftest.err
24120 cat conftest.err >&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); } && {
24123 test -z "$ac_c_werror_flag" ||
24124 test ! -s conftest.err
24125 } && test -s conftest$ac_exeext &&
24126 $as_test_x conftest$ac_exeext; then
24127 eval "$as_ac_var=yes"
24129 echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24132 eval "$as_ac_var=no"
24135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24136 conftest$ac_exeext conftest.$ac_ext
24138 ac_res=`eval echo '${'$as_ac_var'}'`
24139 { echo "$as_me:$LINENO: result: $ac_res" >&5
24140 echo "${ECHO_T}$ac_res" >&6; }
24141 if test `eval echo '${'$as_ac_var'}'` = yes; then
24143 cat >>confdefs.h <<_ACEOF
24144 @%:@define CRAY_STACKSEG_END $ac_func
24153 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24154 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24155 if test "${ac_cv_c_stack_direction+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 if test "$cross_compiling" = yes; then
24159 ac_cv_c_stack_direction=0
24161 cat >conftest.$ac_ext <<_ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h. */
24167 $ac_includes_default
24169 find_stack_direction ()
24171 static char *addr = 0;
24176 return find_stack_direction ();
24179 return (&dummy > addr) ? 1 : -1;
24185 return find_stack_direction () < 0;
24188 rm -f conftest$ac_exeext
24189 if { (ac_try="$ac_link"
24190 case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195 (eval "$ac_link") 2>&5
24197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24199 { (case "(($ac_try" in
24200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201 *) ac_try_echo=$ac_try;;
24203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24204 (eval "$ac_try") 2>&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); }; }; then
24208 ac_cv_c_stack_direction=1
24210 echo "$as_me: program exited with status $ac_status" >&5
24211 echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24214 ( exit $ac_status )
24215 ac_cv_c_stack_direction=-1
24217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24222 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24223 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24225 cat >>confdefs.h <<_ACEOF
24226 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
24237 ac_header_dirent=no
24238 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24239 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24240 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24241 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24245 cat >conftest.$ac_ext <<_ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24251 #include <sys/types.h>
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267 *) ac_try_echo=$ac_try;;
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270 (eval "$ac_compile") 2>conftest.er1
24272 grep -v '^ *+' conftest.er1 >conftest.err
24274 cat conftest.err >&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } && {
24277 test -z "$ac_c_werror_flag" ||
24278 test ! -s conftest.err
24279 } && test -s conftest.$ac_objext; then
24280 eval "$as_ac_Header=yes"
24282 echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.$ac_ext >&5
24285 eval "$as_ac_Header=no"
24288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290 ac_res=`eval echo '${'$as_ac_Header'}'`
24291 { echo "$as_me:$LINENO: result: $ac_res" >&5
24292 echo "${ECHO_T}$ac_res" >&6; }
24293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24294 cat >>confdefs.h <<_ACEOF
24295 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24298 ac_header_dirent=$ac_hdr; break
24302 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24303 if test $ac_header_dirent = dirent.h; then
24304 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24305 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24306 if test "${ac_cv_search_opendir+set}" = set; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
24309 ac_func_search_save_LIBS=$LIBS
24310 cat >conftest.$ac_ext <<_ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h. */
24317 /* Override any GCC internal prototype to avoid an error.
24318 Use char because int might match the return type of a GCC
24319 builtin and then its argument prototype would still apply. */
24332 for ac_lib in '' dir; do
24333 if test -z "$ac_lib"; then
24334 ac_res="none required"
24337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24339 rm -f conftest.$ac_objext conftest$ac_exeext
24340 if { (ac_try="$ac_link"
24341 case "(($ac_try" in
24342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343 *) ac_try_echo=$ac_try;;
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346 (eval "$ac_link") 2>conftest.er1
24348 grep -v '^ *+' conftest.er1 >conftest.err
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } && {
24353 test -z "$ac_c_werror_flag" ||
24354 test ! -s conftest.err
24355 } && test -s conftest$ac_exeext &&
24356 $as_test_x conftest$ac_exeext; then
24357 ac_cv_search_opendir=$ac_res
24359 echo "$as_me: failed program was:" >&5
24360 sed 's/^/| /' conftest.$ac_ext >&5
24365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367 if test "${ac_cv_search_opendir+set}" = set; then
24371 if test "${ac_cv_search_opendir+set}" = set; then
24374 ac_cv_search_opendir=no
24376 rm conftest.$ac_ext
24377 LIBS=$ac_func_search_save_LIBS
24379 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24380 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24381 ac_res=$ac_cv_search_opendir
24382 if test "$ac_res" != no; then
24383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24388 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24389 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24390 if test "${ac_cv_search_opendir+set}" = set; then
24391 echo $ECHO_N "(cached) $ECHO_C" >&6
24393 ac_func_search_save_LIBS=$LIBS
24394 cat >conftest.$ac_ext <<_ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h. */
24401 /* Override any GCC internal prototype to avoid an error.
24402 Use char because int might match the return type of a GCC
24403 builtin and then its argument prototype would still apply. */
24416 for ac_lib in '' x; do
24417 if test -z "$ac_lib"; then
24418 ac_res="none required"
24421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24423 rm -f conftest.$ac_objext conftest$ac_exeext
24424 if { (ac_try="$ac_link"
24425 case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430 (eval "$ac_link") 2>conftest.er1
24432 grep -v '^ *+' conftest.er1 >conftest.err
24434 cat conftest.err >&5
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); } && {
24437 test -z "$ac_c_werror_flag" ||
24438 test ! -s conftest.err
24439 } && test -s conftest$ac_exeext &&
24440 $as_test_x conftest$ac_exeext; then
24441 ac_cv_search_opendir=$ac_res
24443 echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24451 if test "${ac_cv_search_opendir+set}" = set; then
24455 if test "${ac_cv_search_opendir+set}" = set; then
24458 ac_cv_search_opendir=no
24460 rm conftest.$ac_ext
24461 LIBS=$ac_func_search_save_LIBS
24463 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24464 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24465 ac_res=$ac_cv_search_opendir
24466 if test "$ac_res" != no; then
24467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24473 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24474 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24475 if test "${ac_cv_func_closedir_void+set}" = set; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24478 if test "$cross_compiling" = yes; then
24479 ac_cv_func_closedir_void=yes
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 $ac_includes_default
24488 #include <$ac_header_dirent>
24489 #ifndef __cplusplus
24496 return closedir (opendir (".")) != 0;
24501 rm -f conftest$ac_exeext
24502 if { (ac_try="$ac_link"
24503 case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508 (eval "$ac_link") 2>&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24512 { (case "(($ac_try" in
24513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514 *) ac_try_echo=$ac_try;;
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517 (eval "$ac_try") 2>&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); }; }; then
24521 ac_cv_func_closedir_void=no
24523 echo "$as_me: program exited with status $ac_status" >&5
24524 echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24527 ( exit $ac_status )
24528 ac_cv_func_closedir_void=yes
24530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24535 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24536 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24537 if test $ac_cv_func_closedir_void = yes; then
24539 cat >>confdefs.h <<\_ACEOF
24540 @%:@define CLOSEDIR_VOID 1
24545 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24546 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24547 if test "${ac_cv_lib_error_at_line+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 cat >conftest.$ac_ext <<_ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24560 error_at_line (0, 0, "", 0, "an error occurred");
24565 rm -f conftest.$ac_objext conftest$ac_exeext
24566 if { (ac_try="$ac_link"
24567 case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_link") 2>conftest.er1
24574 grep -v '^ *+' conftest.er1 >conftest.err
24576 cat conftest.err >&5
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } && {
24579 test -z "$ac_c_werror_flag" ||
24580 test ! -s conftest.err
24581 } && test -s conftest$ac_exeext &&
24582 $as_test_x conftest$ac_exeext; then
24583 ac_cv_lib_error_at_line=yes
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24588 ac_cv_lib_error_at_line=no
24591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24592 conftest$ac_exeext conftest.$ac_ext
24594 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24595 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24596 if test $ac_cv_lib_error_at_line = no; then
24597 case " $LIB@&t@OBJS " in
24598 *" error.$ac_objext "* ) ;;
24599 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
24606 for ac_header in vfork.h
24608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 ac_res=`eval echo '${'$as_ac_Header'}'`
24616 { echo "$as_me:$LINENO: result: $ac_res" >&5
24617 echo "${ECHO_T}$ac_res" >&6; }
24619 # Is the header compilable?
24620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24622 cat >conftest.$ac_ext <<_ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 $ac_includes_default
24629 @%:@include <$ac_header>
24631 rm -f conftest.$ac_objext
24632 if { (ac_try="$ac_compile"
24633 case "(($ac_try" in
24634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635 *) ac_try_echo=$ac_try;;
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638 (eval "$ac_compile") 2>conftest.er1
24640 grep -v '^ *+' conftest.er1 >conftest.err
24642 cat conftest.err >&5
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } && {
24645 test -z "$ac_c_werror_flag" ||
24646 test ! -s conftest.err
24647 } && test -s conftest.$ac_objext; then
24648 ac_header_compiler=yes
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 ac_header_compiler=no
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24658 echo "${ECHO_T}$ac_header_compiler" >&6; }
24660 # Is the header present?
24661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 @%:@include <$ac_header>
24671 if { (ac_try="$ac_cpp conftest.$ac_ext"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24679 grep -v '^ *+' conftest.er1 >conftest.err
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } >/dev/null && {
24684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24685 test ! -s conftest.err
24687 ac_header_preproc=yes
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 ac_header_preproc=no
24695 rm -f conftest.err conftest.$ac_ext
24696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24697 echo "${ECHO_T}$ac_header_preproc" >&6; }
24699 # So? What about this header?
24700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24706 ac_header_preproc=yes
24709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24722 @%:@@%:@ ------------------------------- @%:@@%:@
24723 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24724 @%:@@%:@ ------------------------------- @%:@@%:@
24726 ) | sed "s/^/$as_me: WARNING: /" >&2
24729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24732 echo $ECHO_N "(cached) $ECHO_C" >&6
24734 eval "$as_ac_Header=\$ac_header_preproc"
24736 ac_res=`eval echo '${'$as_ac_Header'}'`
24737 { echo "$as_me:$LINENO: result: $ac_res" >&5
24738 echo "${ECHO_T}$ac_res" >&6; }
24741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24742 cat >>confdefs.h <<_ACEOF
24743 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24752 for ac_func in fork vfork
24754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24758 echo $ECHO_N "(cached) $ECHO_C" >&6
24760 cat >conftest.$ac_ext <<_ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h. */
24766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24768 #define $ac_func innocuous_$ac_func
24770 /* System header to define __stub macros and hopefully few prototypes,
24771 which can conflict with char $ac_func (); below.
24772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24773 <limits.h> exists even on freestanding compilers. */
24776 # include <limits.h>
24778 # include <assert.h>
24783 /* Override any GCC internal prototype to avoid an error.
24784 Use char because int might match the return type of a GCC
24785 builtin and then its argument prototype would still apply. */
24790 /* The GNU C library defines this for functions which it implements
24791 to always fail with ENOSYS. Some functions are actually named
24792 something starting with __ and the normal name is an alias. */
24793 #if defined __stub_$ac_func || defined __stub___$ac_func
24800 return $ac_func ();
24805 rm -f conftest.$ac_objext conftest$ac_exeext
24806 if { (ac_try="$ac_link"
24807 case "(($ac_try" in
24808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809 *) ac_try_echo=$ac_try;;
24811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24812 (eval "$ac_link") 2>conftest.er1
24814 grep -v '^ *+' conftest.er1 >conftest.err
24816 cat conftest.err >&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } && {
24819 test -z "$ac_c_werror_flag" ||
24820 test ! -s conftest.err
24821 } && test -s conftest$ac_exeext &&
24822 $as_test_x conftest$ac_exeext; then
24823 eval "$as_ac_var=yes"
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 eval "$as_ac_var=no"
24831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24832 conftest$ac_exeext conftest.$ac_ext
24834 ac_res=`eval echo '${'$as_ac_var'}'`
24835 { echo "$as_me:$LINENO: result: $ac_res" >&5
24836 echo "${ECHO_T}$ac_res" >&6; }
24837 if test `eval echo '${'$as_ac_var'}'` = yes; then
24838 cat >>confdefs.h <<_ACEOF
24839 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24845 if test "x$ac_cv_func_fork" = xyes; then
24846 { echo "$as_me:$LINENO: checking for working fork" >&5
24847 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24848 if test "${ac_cv_func_fork_works+set}" = set; then
24849 echo $ECHO_N "(cached) $ECHO_C" >&6
24851 if test "$cross_compiling" = yes; then
24852 ac_cv_func_fork_works=cross
24854 cat >conftest.$ac_ext <<_ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24860 $ac_includes_default
24865 /* By Ruediger Kuhlmann. */
24866 return fork () < 0;
24872 rm -f conftest$ac_exeext
24873 if { (ac_try="$ac_link"
24874 case "(($ac_try" in
24875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876 *) ac_try_echo=$ac_try;;
24878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879 (eval "$ac_link") 2>&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24883 { (case "(($ac_try" in
24884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885 *) ac_try_echo=$ac_try;;
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888 (eval "$ac_try") 2>&5
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); }; }; then
24892 ac_cv_func_fork_works=yes
24894 echo "$as_me: program exited with status $ac_status" >&5
24895 echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24898 ( exit $ac_status )
24899 ac_cv_func_fork_works=no
24901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24906 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24907 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24910 ac_cv_func_fork_works=$ac_cv_func_fork
24912 if test "x$ac_cv_func_fork_works" = xcross; then
24914 *-*-amigaos* | *-*-msdosdjgpp*)
24915 # Override, as these systems have only a dummy fork() stub
24916 ac_cv_func_fork_works=no
24919 ac_cv_func_fork_works=yes
24922 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24923 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24925 ac_cv_func_vfork_works=$ac_cv_func_vfork
24926 if test "x$ac_cv_func_vfork" = xyes; then
24927 { echo "$as_me:$LINENO: checking for working vfork" >&5
24928 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24929 if test "${ac_cv_func_vfork_works+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24932 if test "$cross_compiling" = yes; then
24933 ac_cv_func_vfork_works=cross
24935 cat >conftest.$ac_ext <<_ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h. */
24941 /* Thanks to Paul Eggert for this test. */
24942 $ac_includes_default
24943 #include <sys/wait.h>
24944 #ifdef HAVE_VFORK_H
24945 # include <vfork.h>
24947 /* On some sparc systems, changes by the child to local and incoming
24948 argument registers are propagated back to the parent. The compiler
24949 is told about this with #include <vfork.h>, but some compilers
24950 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24951 static variable whose address is put into a register that is
24952 clobbered by the vfork. */
24955 sparc_address_test (int arg)
24957 sparc_address_test (arg) int arg;
24960 static pid_t child;
24978 pid_t parent = getpid ();
24981 sparc_address_test (0);
24986 /* Here is another test for sparc vfork register problems. This
24987 test uses lots of local variables, at least as many local
24988 variables as main has allocated so far including compiler
24989 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24990 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24991 reuse the register of parent for one of the local variables,
24992 since it will think that parent can't possibly be used any more
24993 in this routine. Assigning to the local variable will thus
24994 munge parent in the parent process. */
24996 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24997 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24998 /* Convince the compiler that p..p7 are live; otherwise, it might
24999 use the same hardware register for all 8 local variables. */
25000 if (p != p1 || p != p2 || p != p3 || p != p4
25001 || p != p5 || p != p6 || p != p7)
25004 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25005 from child file descriptors. If the child closes a descriptor
25006 before it execs or exits, this munges the parent's descriptor
25007 as well. Test for this by closing stdout in the child. */
25008 _exit(close(fileno(stdout)) != 0);
25013 while (wait(&status) != child)
25016 /* Was there some problem with vforking? */
25019 /* Did the child fail? (This shouldn't happen.) */
25022 /* Did the vfork/compiler bug occur? */
25023 || parent != getpid()
25025 /* Did the file descriptor bug occur? */
25026 || fstat(fileno(stdout), &st) != 0
25031 rm -f conftest$ac_exeext
25032 if { (ac_try="$ac_link"
25033 case "(($ac_try" in
25034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035 *) ac_try_echo=$ac_try;;
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038 (eval "$ac_link") 2>&5
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25042 { (case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047 (eval "$ac_try") 2>&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); }; }; then
25051 ac_cv_func_vfork_works=yes
25053 echo "$as_me: program exited with status $ac_status" >&5
25054 echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25057 ( exit $ac_status )
25058 ac_cv_func_vfork_works=no
25060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25065 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25066 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25069 if test "x$ac_cv_func_fork_works" = xcross; then
25070 ac_cv_func_vfork_works=$ac_cv_func_vfork
25071 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25072 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25075 if test "x$ac_cv_func_vfork_works" = xyes; then
25077 cat >>confdefs.h <<\_ACEOF
25078 @%:@define HAVE_WORKING_VFORK 1
25083 cat >>confdefs.h <<\_ACEOF
25084 @%:@define vfork fork
25088 if test "x$ac_cv_func_fork_works" = xyes; then
25090 cat >>confdefs.h <<\_ACEOF
25091 @%:@define HAVE_WORKING_FORK 1
25096 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25097 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25098 if test "${ac_cv_type_getgroups+set}" = set; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 if test "$cross_compiling" = yes; then
25102 ac_cv_type_getgroups=cross
25104 cat >conftest.$ac_ext <<_ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25110 /* Thanks to Mike Rendell for this test. */
25111 $ac_includes_default
25114 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25119 gid_t gidset[NGID];
25121 union { gid_t gval; long int lval; } val;
25124 for (i = 0; i < NGID; i++)
25125 gidset[i] = val.gval;
25126 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25128 /* Exit non-zero if getgroups seems to require an array of ints. This
25129 happens when gid_t is short int but getgroups modifies an array
25131 return n > 0 && gidset[n] != val.gval;
25134 rm -f conftest$ac_exeext
25135 if { (ac_try="$ac_link"
25136 case "(($ac_try" in
25137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138 *) ac_try_echo=$ac_try;;
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141 (eval "$ac_link") 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25145 { (case "(($ac_try" in
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147 *) ac_try_echo=$ac_try;;
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150 (eval "$ac_try") 2>&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); }; }; then
25154 ac_cv_type_getgroups=gid_t
25156 echo "$as_me: program exited with status $ac_status" >&5
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25160 ( exit $ac_status )
25161 ac_cv_type_getgroups=int
25163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25167 if test $ac_cv_type_getgroups = cross; then
25168 cat >conftest.$ac_ext <<_ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 #include <unistd.h>
25177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25178 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25179 ac_cv_type_getgroups=gid_t
25181 ac_cv_type_getgroups=int
25187 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25188 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25190 cat >>confdefs.h <<_ACEOF
25191 @%:@define GETGROUPS_T $ac_cv_type_getgroups
25195 { echo "$as_me:$LINENO: checking for getgroups" >&5
25196 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25197 if test "${ac_cv_func_getgroups+set}" = set; then
25198 echo $ECHO_N "(cached) $ECHO_C" >&6
25200 cat >conftest.$ac_ext <<_ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h. */
25206 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25208 #define getgroups innocuous_getgroups
25210 /* System header to define __stub macros and hopefully few prototypes,
25211 which can conflict with char getgroups (); below.
25212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25213 <limits.h> exists even on freestanding compilers. */
25216 # include <limits.h>
25218 # include <assert.h>
25223 /* Override any GCC internal prototype to avoid an error.
25224 Use char because int might match the return type of a GCC
25225 builtin and then its argument prototype would still apply. */
25230 /* The GNU C library defines this for functions which it implements
25231 to always fail with ENOSYS. Some functions are actually named
25232 something starting with __ and the normal name is an alias. */
25233 #if defined __stub_getgroups || defined __stub___getgroups
25240 return getgroups ();
25245 rm -f conftest.$ac_objext conftest$ac_exeext
25246 if { (ac_try="$ac_link"
25247 case "(($ac_try" in
25248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249 *) ac_try_echo=$ac_try;;
25251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25252 (eval "$ac_link") 2>conftest.er1
25254 grep -v '^ *+' conftest.er1 >conftest.err
25256 cat conftest.err >&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); } && {
25259 test -z "$ac_c_werror_flag" ||
25260 test ! -s conftest.err
25261 } && test -s conftest$ac_exeext &&
25262 $as_test_x conftest$ac_exeext; then
25263 ac_cv_func_getgroups=yes
25265 echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25268 ac_cv_func_getgroups=no
25271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25272 conftest$ac_exeext conftest.$ac_ext
25274 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25275 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25278 # If we don't yet have getgroups, see if it's in -lbsd.
25279 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25281 if test $ac_cv_func_getgroups = no; then
25282 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25283 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25284 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 ac_check_lib_save_LIBS=$LIBS
25289 cat >conftest.$ac_ext <<_ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h. */
25296 /* Override any GCC internal prototype to avoid an error.
25297 Use char because int might match the return type of a GCC
25298 builtin and then its argument prototype would still apply. */
25306 return getgroups ();
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (ac_try="$ac_link"
25313 case "(($ac_try" in
25314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315 *) ac_try_echo=$ac_try;;
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318 (eval "$ac_link") 2>conftest.er1
25320 grep -v '^ *+' conftest.er1 >conftest.err
25322 cat conftest.err >&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } && {
25325 test -z "$ac_c_werror_flag" ||
25326 test ! -s conftest.err
25327 } && test -s conftest$ac_exeext &&
25328 $as_test_x conftest$ac_exeext; then
25329 ac_cv_lib_bsd_getgroups=yes
25331 echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25334 ac_cv_lib_bsd_getgroups=no
25337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25338 conftest$ac_exeext conftest.$ac_ext
25339 LIBS=$ac_check_lib_save_LIBS
25341 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25342 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25343 if test $ac_cv_lib_bsd_getgroups = yes; then
25344 GETGROUPS_LIB=-lbsd
25349 # Run the program to test the functionality of the system-supplied
25350 # getgroups function only if there is such a function.
25351 if test $ac_cv_func_getgroups = yes; then
25352 { echo "$as_me:$LINENO: checking for working getgroups" >&5
25353 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25354 if test "${ac_cv_func_getgroups_works+set}" = set; then
25355 echo $ECHO_N "(cached) $ECHO_C" >&6
25357 if test "$cross_compiling" = yes; then
25358 ac_cv_func_getgroups_works=no
25360 cat >conftest.$ac_ext <<_ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h. */
25366 $ac_includes_default
25370 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25371 return getgroups (0, 0) == -1;
25376 rm -f conftest$ac_exeext
25377 if { (ac_try="$ac_link"
25378 case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25383 (eval "$ac_link") 2>&5
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25387 { (case "(($ac_try" in
25388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389 *) ac_try_echo=$ac_try;;
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392 (eval "$ac_try") 2>&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25396 ac_cv_func_getgroups_works=yes
25398 echo "$as_me: program exited with status $ac_status" >&5
25399 echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25402 ( exit $ac_status )
25403 ac_cv_func_getgroups_works=no
25405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25411 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25412 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25413 if test $ac_cv_func_getgroups_works = yes; then
25415 cat >>confdefs.h <<\_ACEOF
25416 @%:@define HAVE_GETGROUPS 1
25423 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25424 # -lseq on Dynix/PTX, -lgen on Unixware.
25425 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25426 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25427 if test "${ac_cv_search_getmntent+set}" = set; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25430 ac_func_search_save_LIBS=$LIBS
25431 cat >conftest.$ac_ext <<_ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25438 /* Override any GCC internal prototype to avoid an error.
25439 Use char because int might match the return type of a GCC
25440 builtin and then its argument prototype would still apply. */
25448 return getmntent ();
25453 for ac_lib in '' sun seq gen; do
25454 if test -z "$ac_lib"; then
25455 ac_res="none required"
25458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25460 rm -f conftest.$ac_objext conftest$ac_exeext
25461 if { (ac_try="$ac_link"
25462 case "(($ac_try" in
25463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25464 *) ac_try_echo=$ac_try;;
25466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25467 (eval "$ac_link") 2>conftest.er1
25469 grep -v '^ *+' conftest.er1 >conftest.err
25471 cat conftest.err >&5
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); } && {
25474 test -z "$ac_c_werror_flag" ||
25475 test ! -s conftest.err
25476 } && test -s conftest$ac_exeext &&
25477 $as_test_x conftest$ac_exeext; then
25478 ac_cv_search_getmntent=$ac_res
25480 echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25488 if test "${ac_cv_search_getmntent+set}" = set; then
25492 if test "${ac_cv_search_getmntent+set}" = set; then
25495 ac_cv_search_getmntent=no
25497 rm conftest.$ac_ext
25498 LIBS=$ac_func_search_save_LIBS
25500 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25501 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25502 ac_res=$ac_cv_search_getmntent
25503 if test "$ac_res" != no; then
25504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25505 ac_cv_func_getmntent=yes
25507 cat >>confdefs.h <<\_ACEOF
25508 @%:@define HAVE_GETMNTENT 1
25512 ac_cv_func_getmntent=no
25516 if test $ac_cv_c_compiler_gnu = yes; then
25517 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25518 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25519 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25522 ac_pattern="Autoconf.*'x'"
25523 cat >conftest.$ac_ext <<_ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h. */
25532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25533 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25534 ac_cv_prog_gcc_traditional=yes
25536 ac_cv_prog_gcc_traditional=no
25541 if test $ac_cv_prog_gcc_traditional = no; then
25542 cat >conftest.$ac_ext <<_ACEOF
25545 cat confdefs.h >>conftest.$ac_ext
25546 cat >>conftest.$ac_ext <<_ACEOF
25547 /* end confdefs.h. */
25548 #include <termio.h>
25551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25552 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25553 ac_cv_prog_gcc_traditional=yes
25559 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25560 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25561 if test $ac_cv_prog_gcc_traditional = yes; then
25562 CC="$CC -traditional"
25566 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25567 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25568 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25569 echo $ECHO_N "(cached) $ECHO_C" >&6
25571 rm -f conftest.sym conftest.file
25572 echo >conftest.file
25573 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25574 if test "$cross_compiling" = yes; then
25575 ac_cv_func_lstat_dereferences_slashed_symlink=no
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 $ac_includes_default
25588 /* Linux will dereference the symlink and fail.
25589 That is better in the sense that it means we will not
25590 have to compile and use the lstat wrapper. */
25591 return lstat ("conftest.sym/", &sbuf) == 0;
25596 rm -f conftest$ac_exeext
25597 if { (ac_try="$ac_link"
25598 case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603 (eval "$ac_link") 2>&5
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25607 { (case "(($ac_try" in
25608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25609 *) ac_try_echo=$ac_try;;
25611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25612 (eval "$ac_try") 2>&5
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; }; then
25616 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25618 echo "$as_me: program exited with status $ac_status" >&5
25619 echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25622 ( exit $ac_status )
25623 ac_cv_func_lstat_dereferences_slashed_symlink=no
25625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25630 # If the `ln -s' command failed, then we probably don't even
25631 # have an lstat function.
25632 ac_cv_func_lstat_dereferences_slashed_symlink=no
25634 rm -f conftest.sym conftest.file
25637 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25638 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25640 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25642 cat >>confdefs.h <<_ACEOF
25643 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25647 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25648 case " $LIB@&t@OBJS " in
25649 *" lstat.$ac_objext "* ) ;;
25650 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25656 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25657 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25658 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25661 if test "$cross_compiling" = yes; then
25662 ac_cv_func_lstat_empty_string_bug=yes
25664 cat >conftest.$ac_ext <<_ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 $ac_includes_default
25675 return lstat ("", &sbuf) == 0;
25680 rm -f conftest$ac_exeext
25681 if { (ac_try="$ac_link"
25682 case "(($ac_try" in
25683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684 *) ac_try_echo=$ac_try;;
25686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25687 (eval "$ac_link") 2>&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25691 { (case "(($ac_try" in
25692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693 *) ac_try_echo=$ac_try;;
25695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25696 (eval "$ac_try") 2>&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); }; }; then
25700 ac_cv_func_lstat_empty_string_bug=no
25702 echo "$as_me: program exited with status $ac_status" >&5
25703 echo "$as_me: failed program was:" >&5
25704 sed 's/^/| /' conftest.$ac_ext >&5
25706 ( exit $ac_status )
25707 ac_cv_func_lstat_empty_string_bug=yes
25709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25714 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25715 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25716 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25717 case " $LIB@&t@OBJS " in
25718 *" lstat.$ac_objext "* ) ;;
25719 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25724 cat >>confdefs.h <<_ACEOF
25725 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
25730 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25731 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25732 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25733 echo $ECHO_N "(cached) $ECHO_C" >&6
25735 rm -f conftest.sym conftest.file
25736 echo >conftest.file
25737 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25738 if test "$cross_compiling" = yes; then
25739 ac_cv_func_lstat_dereferences_slashed_symlink=no
25741 cat >conftest.$ac_ext <<_ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 $ac_includes_default
25752 /* Linux will dereference the symlink and fail.
25753 That is better in the sense that it means we will not
25754 have to compile and use the lstat wrapper. */
25755 return lstat ("conftest.sym/", &sbuf) == 0;
25760 rm -f conftest$ac_exeext
25761 if { (ac_try="$ac_link"
25762 case "(($ac_try" in
25763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764 *) ac_try_echo=$ac_try;;
25766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25767 (eval "$ac_link") 2>&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25771 { (case "(($ac_try" in
25772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773 *) ac_try_echo=$ac_try;;
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776 (eval "$ac_try") 2>&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); }; }; then
25780 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25782 echo "$as_me: program exited with status $ac_status" >&5
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25786 ( exit $ac_status )
25787 ac_cv_func_lstat_dereferences_slashed_symlink=no
25789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25794 # If the `ln -s' command failed, then we probably don't even
25795 # have an lstat function.
25796 ac_cv_func_lstat_dereferences_slashed_symlink=no
25798 rm -f conftest.sym conftest.file
25801 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25802 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25804 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25806 cat >>confdefs.h <<_ACEOF
25807 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25811 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25812 case " $LIB@&t@OBJS " in
25813 *" lstat.$ac_objext "* ) ;;
25814 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25820 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25821 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25822 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25823 echo $ECHO_N "(cached) $ECHO_C" >&6
25825 cat >conftest.$ac_ext <<_ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h. */
25831 @%:@include <sys/types.h>
25835 return makedev(0, 0);
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_header_sys_types_h_makedev=yes
25860 echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25863 ac_cv_header_sys_types_h_makedev=no
25866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25867 conftest$ac_exeext conftest.$ac_ext
25870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25871 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25873 if test $ac_cv_header_sys_types_h_makedev = no; then
25874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25875 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25876 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25877 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25878 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25881 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25883 # Is the header compilable?
25884 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25885 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25886 cat >conftest.$ac_ext <<_ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h. */
25892 $ac_includes_default
25893 @%:@include <sys/mkdev.h>
25895 rm -f conftest.$ac_objext
25896 if { (ac_try="$ac_compile"
25897 case "(($ac_try" in
25898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899 *) ac_try_echo=$ac_try;;
25901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25902 (eval "$ac_compile") 2>conftest.er1
25904 grep -v '^ *+' conftest.er1 >conftest.err
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } && {
25909 test -z "$ac_c_werror_flag" ||
25910 test ! -s conftest.err
25911 } && test -s conftest.$ac_objext; then
25912 ac_header_compiler=yes
25914 echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_header_compiler=no
25920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25922 echo "${ECHO_T}$ac_header_compiler" >&6; }
25924 # Is the header present?
25925 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25926 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25927 cat >conftest.$ac_ext <<_ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h. */
25933 @%:@include <sys/mkdev.h>
25935 if { (ac_try="$ac_cpp conftest.$ac_ext"
25936 case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25943 grep -v '^ *+' conftest.er1 >conftest.err
25945 cat conftest.err >&5
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } >/dev/null && {
25948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25949 test ! -s conftest.err
25951 ac_header_preproc=yes
25953 echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25956 ac_header_preproc=no
25959 rm -f conftest.err conftest.$ac_ext
25960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25961 echo "${ECHO_T}$ac_header_preproc" >&6; }
25963 # So? What about this header?
25964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25966 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25967 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25968 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25969 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25970 ac_header_preproc=yes
25973 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25974 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25976 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25978 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25979 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25980 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25982 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25983 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25984 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25986 @%:@@%:@ ------------------------------- @%:@@%:@
25987 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25988 @%:@@%:@ ------------------------------- @%:@@%:@
25990 ) | sed "s/^/$as_me: WARNING: /" >&2
25993 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25994 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25995 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25996 echo $ECHO_N "(cached) $ECHO_C" >&6
25998 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26000 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26001 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26004 if test $ac_cv_header_sys_mkdev_h = yes; then
26006 cat >>confdefs.h <<\_ACEOF
26007 @%:@define MAJOR_IN_MKDEV 1
26014 if test $ac_cv_header_sys_mkdev_h = no; then
26015 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26016 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26017 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26018 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26022 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26024 # Is the header compilable?
26025 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26026 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26027 cat >conftest.$ac_ext <<_ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h. */
26033 $ac_includes_default
26034 @%:@include <sys/sysmacros.h>
26036 rm -f conftest.$ac_objext
26037 if { (ac_try="$ac_compile"
26038 case "(($ac_try" in
26039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040 *) ac_try_echo=$ac_try;;
26042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043 (eval "$ac_compile") 2>conftest.er1
26045 grep -v '^ *+' conftest.er1 >conftest.err
26047 cat conftest.err >&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); } && {
26050 test -z "$ac_c_werror_flag" ||
26051 test ! -s conftest.err
26052 } && test -s conftest.$ac_objext; then
26053 ac_header_compiler=yes
26055 echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26058 ac_header_compiler=no
26061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26063 echo "${ECHO_T}$ac_header_compiler" >&6; }
26065 # Is the header present?
26066 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26067 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26068 cat >conftest.$ac_ext <<_ACEOF
26071 cat confdefs.h >>conftest.$ac_ext
26072 cat >>conftest.$ac_ext <<_ACEOF
26073 /* end confdefs.h. */
26074 @%:@include <sys/sysmacros.h>
26076 if { (ac_try="$ac_cpp conftest.$ac_ext"
26077 case "(($ac_try" in
26078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079 *) ac_try_echo=$ac_try;;
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26084 grep -v '^ *+' conftest.er1 >conftest.err
26086 cat conftest.err >&5
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } >/dev/null && {
26089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26090 test ! -s conftest.err
26092 ac_header_preproc=yes
26094 echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26097 ac_header_preproc=no
26100 rm -f conftest.err conftest.$ac_ext
26101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26102 echo "${ECHO_T}$ac_header_preproc" >&6; }
26104 # So? What about this header?
26105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26107 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26108 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26110 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26111 ac_header_preproc=yes
26114 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26115 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26116 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
26117 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
26118 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26119 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26120 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
26121 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
26122 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26123 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26124 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26125 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26127 @%:@@%:@ ------------------------------- @%:@@%:@
26128 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26129 @%:@@%:@ ------------------------------- @%:@@%:@
26131 ) | sed "s/^/$as_me: WARNING: /" >&2
26134 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26135 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26136 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26139 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26142 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26145 if test $ac_cv_header_sys_sysmacros_h = yes; then
26147 cat >>confdefs.h <<\_ACEOF
26148 @%:@define MAJOR_IN_SYSMACROS 1
26158 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26159 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26160 if test "${ac_cv_func_memcmp_working+set}" = set; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26163 if test "$cross_compiling" = yes; then
26164 ac_cv_func_memcmp_working=no
26166 cat >conftest.$ac_ext <<_ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 $ac_includes_default
26177 /* Some versions of memcmp are not 8-bit clean. */
26178 char c0 = '\100', c1 = '\200', c2 = '\201';
26179 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26182 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26183 or more and with at least one buffer not starting on a 4-byte boundary.
26184 William Lewis provided this test program. */
26189 for (i = 0; i < 4; i++)
26193 strcpy (a, "--------01111111");
26194 strcpy (b, "--------10000000");
26195 if (memcmp (a, b, 16) >= 0)
26205 rm -f conftest$ac_exeext
26206 if { (ac_try="$ac_link"
26207 case "(($ac_try" in
26208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26209 *) ac_try_echo=$ac_try;;
26211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26212 (eval "$ac_link") 2>&5
26214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26216 { (case "(($ac_try" in
26217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26218 *) ac_try_echo=$ac_try;;
26220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26221 (eval "$ac_try") 2>&5
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); }; }; then
26225 ac_cv_func_memcmp_working=yes
26227 echo "$as_me: program exited with status $ac_status" >&5
26228 echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26231 ( exit $ac_status )
26232 ac_cv_func_memcmp_working=no
26234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26239 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26240 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26241 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
26242 *" memcmp.$ac_objext "* ) ;;
26243 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
26251 for ac_header in sys/select.h sys/socket.h
26253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26258 echo $ECHO_N "(cached) $ECHO_C" >&6
26260 ac_res=`eval echo '${'$as_ac_Header'}'`
26261 { echo "$as_me:$LINENO: result: $ac_res" >&5
26262 echo "${ECHO_T}$ac_res" >&6; }
26264 # Is the header compilable?
26265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26267 cat >conftest.$ac_ext <<_ACEOF
26270 cat confdefs.h >>conftest.$ac_ext
26271 cat >>conftest.$ac_ext <<_ACEOF
26272 /* end confdefs.h. */
26273 $ac_includes_default
26274 @%:@include <$ac_header>
26276 rm -f conftest.$ac_objext
26277 if { (ac_try="$ac_compile"
26278 case "(($ac_try" in
26279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26280 *) ac_try_echo=$ac_try;;
26282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26283 (eval "$ac_compile") 2>conftest.er1
26285 grep -v '^ *+' conftest.er1 >conftest.err
26287 cat conftest.err >&5
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } && {
26290 test -z "$ac_c_werror_flag" ||
26291 test ! -s conftest.err
26292 } && test -s conftest.$ac_objext; then
26293 ac_header_compiler=yes
26295 echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 ac_header_compiler=no
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26303 echo "${ECHO_T}$ac_header_compiler" >&6; }
26305 # Is the header present?
26306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26308 cat >conftest.$ac_ext <<_ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h. */
26314 @%:@include <$ac_header>
26316 if { (ac_try="$ac_cpp conftest.$ac_ext"
26317 case "(($ac_try" in
26318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319 *) ac_try_echo=$ac_try;;
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26324 grep -v '^ *+' conftest.er1 >conftest.err
26326 cat conftest.err >&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); } >/dev/null && {
26329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26330 test ! -s conftest.err
26332 ac_header_preproc=yes
26334 echo "$as_me: failed program was:" >&5
26335 sed 's/^/| /' conftest.$ac_ext >&5
26337 ac_header_preproc=no
26340 rm -f conftest.err conftest.$ac_ext
26341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26342 echo "${ECHO_T}$ac_header_preproc" >&6; }
26344 # So? What about this header?
26345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26351 ac_header_preproc=yes
26354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26367 @%:@@%:@ ------------------------------- @%:@@%:@
26368 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26369 @%:@@%:@ ------------------------------- @%:@@%:@
26371 ) | sed "s/^/$as_me: WARNING: /" >&2
26374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26377 echo $ECHO_N "(cached) $ECHO_C" >&6
26379 eval "$as_ac_Header=\$ac_header_preproc"
26381 ac_res=`eval echo '${'$as_ac_Header'}'`
26382 { echo "$as_me:$LINENO: result: $ac_res" >&5
26383 echo "${ECHO_T}$ac_res" >&6; }
26386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26387 cat >>confdefs.h <<_ACEOF
26388 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26395 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26396 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26397 if test "${ac_cv_func_select_args+set}" = set; then
26398 echo $ECHO_N "(cached) $ECHO_C" >&6
26400 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26401 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26402 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26403 cat >conftest.$ac_ext <<_ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h. */
26409 $ac_includes_default
26410 #ifdef HAVE_SYS_SELECT_H
26411 # include <sys/select.h>
26413 #ifdef HAVE_SYS_SOCKET_H
26414 # include <sys/socket.h>
26420 extern int select ($ac_arg1,
26421 $ac_arg234, $ac_arg234, $ac_arg234,
26427 rm -f conftest.$ac_objext
26428 if { (ac_try="$ac_compile"
26429 case "(($ac_try" in
26430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26431 *) ac_try_echo=$ac_try;;
26433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26434 (eval "$ac_compile") 2>conftest.er1
26436 grep -v '^ *+' conftest.er1 >conftest.err
26438 cat conftest.err >&5
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } && {
26441 test -z "$ac_c_werror_flag" ||
26442 test ! -s conftest.err
26443 } && test -s conftest.$ac_objext; then
26444 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26446 echo "$as_me: failed program was:" >&5
26447 sed 's/^/| /' conftest.$ac_ext >&5
26452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26456 # Provide a safe default value.
26457 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26460 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26461 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26462 ac_save_IFS=$IFS; IFS=','
26463 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26467 cat >>confdefs.h <<_ACEOF
26468 @%:@define SELECT_TYPE_ARG1 $1
26472 cat >>confdefs.h <<_ACEOF
26473 @%:@define SELECT_TYPE_ARG234 ($2)
26477 cat >>confdefs.h <<_ACEOF
26478 @%:@define SELECT_TYPE_ARG5 ($3)
26483 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26484 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26485 if test "${ac_cv_type_signal+set}" = set; then
26486 echo $ECHO_N "(cached) $ECHO_C" >&6
26488 cat >conftest.$ac_ext <<_ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h. */
26494 #include <sys/types.h>
26495 #include <signal.h>
26500 return *(signal (0, 0)) (0) == 1;
26505 rm -f conftest.$ac_objext
26506 if { (ac_try="$ac_compile"
26507 case "(($ac_try" in
26508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509 *) ac_try_echo=$ac_try;;
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512 (eval "$ac_compile") 2>conftest.er1
26514 grep -v '^ *+' conftest.er1 >conftest.err
26516 cat conftest.err >&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } && {
26519 test -z "$ac_c_werror_flag" ||
26520 test ! -s conftest.err
26521 } && test -s conftest.$ac_objext; then
26522 ac_cv_type_signal=int
26524 echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26527 ac_cv_type_signal=void
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26532 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26533 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26535 cat >>confdefs.h <<_ACEOF
26536 @%:@define RETSIGTYPE $ac_cv_type_signal
26540 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26541 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26542 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26545 if test "$cross_compiling" = yes; then
26546 ac_cv_func_stat_empty_string_bug=yes
26548 cat >conftest.$ac_ext <<_ACEOF
26551 cat confdefs.h >>conftest.$ac_ext
26552 cat >>conftest.$ac_ext <<_ACEOF
26553 /* end confdefs.h. */
26554 $ac_includes_default
26559 return stat ("", &sbuf) == 0;
26564 rm -f conftest$ac_exeext
26565 if { (ac_try="$ac_link"
26566 case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571 (eval "$ac_link") 2>&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26575 { (case "(($ac_try" in
26576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26577 *) ac_try_echo=$ac_try;;
26579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26580 (eval "$ac_try") 2>&5
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; }; then
26584 ac_cv_func_stat_empty_string_bug=no
26586 echo "$as_me: program exited with status $ac_status" >&5
26587 echo "$as_me: failed program was:" >&5
26588 sed 's/^/| /' conftest.$ac_ext >&5
26590 ( exit $ac_status )
26591 ac_cv_func_stat_empty_string_bug=yes
26593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26598 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26599 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26600 if test $ac_cv_func_stat_empty_string_bug = yes; then
26601 case " $LIB@&t@OBJS " in
26602 *" stat.$ac_objext "* ) ;;
26603 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
26608 cat >>confdefs.h <<_ACEOF
26609 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
26615 for ac_func in vprintf
26617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26621 echo $ECHO_N "(cached) $ECHO_C" >&6
26623 cat >conftest.$ac_ext <<_ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h. */
26629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26631 #define $ac_func innocuous_$ac_func
26633 /* System header to define __stub macros and hopefully few prototypes,
26634 which can conflict with char $ac_func (); below.
26635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26636 <limits.h> exists even on freestanding compilers. */
26639 # include <limits.h>
26641 # include <assert.h>
26646 /* Override any GCC internal prototype to avoid an error.
26647 Use char because int might match the return type of a GCC
26648 builtin and then its argument prototype would still apply. */
26653 /* The GNU C library defines this for functions which it implements
26654 to always fail with ENOSYS. Some functions are actually named
26655 something starting with __ and the normal name is an alias. */
26656 #if defined __stub_$ac_func || defined __stub___$ac_func
26663 return $ac_func ();
26668 rm -f conftest.$ac_objext conftest$ac_exeext
26669 if { (ac_try="$ac_link"
26670 case "(($ac_try" in
26671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26672 *) ac_try_echo=$ac_try;;
26674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26675 (eval "$ac_link") 2>conftest.er1
26677 grep -v '^ *+' conftest.er1 >conftest.err
26679 cat conftest.err >&5
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); } && {
26682 test -z "$ac_c_werror_flag" ||
26683 test ! -s conftest.err
26684 } && test -s conftest$ac_exeext &&
26685 $as_test_x conftest$ac_exeext; then
26686 eval "$as_ac_var=yes"
26688 echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26691 eval "$as_ac_var=no"
26694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26695 conftest$ac_exeext conftest.$ac_ext
26697 ac_res=`eval echo '${'$as_ac_var'}'`
26698 { echo "$as_me:$LINENO: result: $ac_res" >&5
26699 echo "${ECHO_T}$ac_res" >&6; }
26700 if test `eval echo '${'$as_ac_var'}'` = yes; then
26701 cat >>confdefs.h <<_ACEOF
26702 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26705 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26706 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26707 if test "${ac_cv_func__doprnt+set}" = set; then
26708 echo $ECHO_N "(cached) $ECHO_C" >&6
26710 cat >conftest.$ac_ext <<_ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h. */
26716 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26718 #define _doprnt innocuous__doprnt
26720 /* System header to define __stub macros and hopefully few prototypes,
26721 which can conflict with char _doprnt (); below.
26722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26723 <limits.h> exists even on freestanding compilers. */
26726 # include <limits.h>
26728 # include <assert.h>
26733 /* Override any GCC internal prototype to avoid an error.
26734 Use char because int might match the return type of a GCC
26735 builtin and then its argument prototype would still apply. */
26740 /* The GNU C library defines this for functions which it implements
26741 to always fail with ENOSYS. Some functions are actually named
26742 something starting with __ and the normal name is an alias. */
26743 #if defined __stub__doprnt || defined __stub____doprnt
26755 rm -f conftest.$ac_objext conftest$ac_exeext
26756 if { (ac_try="$ac_link"
26757 case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762 (eval "$ac_link") 2>conftest.er1
26764 grep -v '^ *+' conftest.er1 >conftest.err
26766 cat conftest.err >&5
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); } && {
26769 test -z "$ac_c_werror_flag" ||
26770 test ! -s conftest.err
26771 } && test -s conftest$ac_exeext &&
26772 $as_test_x conftest$ac_exeext; then
26773 ac_cv_func__doprnt=yes
26775 echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.$ac_ext >&5
26778 ac_cv_func__doprnt=no
26781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26782 conftest$ac_exeext conftest.$ac_ext
26784 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26785 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26786 if test $ac_cv_func__doprnt = yes; then
26788 cat >>confdefs.h <<\_ACEOF
26789 @%:@define HAVE_DOPRNT 1
26827 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26828 gethostbyaddr gethostbyname gethostname getmntent \
26829 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26830 realpath rmdir select socket strcasecmp strchr strdup \
26831 strerror strrchr strtol strtoul sigprocmask
26833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26837 echo $ECHO_N "(cached) $ECHO_C" >&6
26839 cat >conftest.$ac_ext <<_ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h. */
26845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26847 #define $ac_func innocuous_$ac_func
26849 /* System header to define __stub macros and hopefully few prototypes,
26850 which can conflict with char $ac_func (); below.
26851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26852 <limits.h> exists even on freestanding compilers. */
26855 # include <limits.h>
26857 # include <assert.h>
26862 /* Override any GCC internal prototype to avoid an error.
26863 Use char because int might match the return type of a GCC
26864 builtin and then its argument prototype would still apply. */
26869 /* The GNU C library defines this for functions which it implements
26870 to always fail with ENOSYS. Some functions are actually named
26871 something starting with __ and the normal name is an alias. */
26872 #if defined __stub_$ac_func || defined __stub___$ac_func
26879 return $ac_func ();
26884 rm -f conftest.$ac_objext conftest$ac_exeext
26885 if { (ac_try="$ac_link"
26886 case "(($ac_try" in
26887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888 *) ac_try_echo=$ac_try;;
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891 (eval "$ac_link") 2>conftest.er1
26893 grep -v '^ *+' conftest.er1 >conftest.err
26895 cat conftest.err >&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } && {
26898 test -z "$ac_c_werror_flag" ||
26899 test ! -s conftest.err
26900 } && test -s conftest$ac_exeext &&
26901 $as_test_x conftest$ac_exeext; then
26902 eval "$as_ac_var=yes"
26904 echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26907 eval "$as_ac_var=no"
26910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26911 conftest$ac_exeext conftest.$ac_ext
26913 ac_res=`eval echo '${'$as_ac_var'}'`
26914 { echo "$as_me:$LINENO: result: $ac_res" >&5
26915 echo "${ECHO_T}$ac_res" >&6; }
26916 if test `eval echo '${'$as_ac_var'}'` = yes; then
26917 cat >>confdefs.h <<_ACEOF
26918 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26926 { echo "$as_me:$LINENO: checking for short" >&5
26927 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26928 if test "${ac_cv_type_short+set}" = set; then
26929 echo $ECHO_N "(cached) $ECHO_C" >&6
26931 cat >conftest.$ac_ext <<_ACEOF
26934 cat confdefs.h >>conftest.$ac_ext
26935 cat >>conftest.$ac_ext <<_ACEOF
26936 /* end confdefs.h. */
26937 $ac_includes_default
26938 typedef short ac__type_new_;
26942 if ((ac__type_new_ *) 0)
26944 if (sizeof (ac__type_new_))
26950 rm -f conftest.$ac_objext
26951 if { (ac_try="$ac_compile"
26952 case "(($ac_try" in
26953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954 *) ac_try_echo=$ac_try;;
26956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957 (eval "$ac_compile") 2>conftest.er1
26959 grep -v '^ *+' conftest.er1 >conftest.err
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } && {
26964 test -z "$ac_c_werror_flag" ||
26965 test ! -s conftest.err
26966 } && test -s conftest.$ac_objext; then
26967 ac_cv_type_short=yes
26969 echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26972 ac_cv_type_short=no
26975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26977 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26978 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26980 # The cast to long int works around a bug in the HP C Compiler
26981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26983 # This bug is HP SR number 8606223364.
26984 { echo "$as_me:$LINENO: checking size of short" >&5
26985 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26986 if test "${ac_cv_sizeof_short+set}" = set; then
26987 echo $ECHO_N "(cached) $ECHO_C" >&6
26989 if test "$cross_compiling" = yes; then
26990 # Depending upon the size, compute the lo and hi bounds.
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
26997 $ac_includes_default
26998 typedef short ac__type_sizeof_;
27002 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27003 test_array @<:@0@:>@ = 0
27009 rm -f conftest.$ac_objext
27010 if { (ac_try="$ac_compile"
27011 case "(($ac_try" in
27012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013 *) ac_try_echo=$ac_try;;
27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016 (eval "$ac_compile") 2>conftest.er1
27018 grep -v '^ *+' conftest.er1 >conftest.err
27020 cat conftest.err >&5
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } && {
27023 test -z "$ac_c_werror_flag" ||
27024 test ! -s conftest.err
27025 } && test -s conftest.$ac_objext; then
27028 cat >conftest.$ac_ext <<_ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h. */
27034 $ac_includes_default
27035 typedef short ac__type_sizeof_;
27039 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27040 test_array @<:@0@:>@ = 0
27046 rm -f conftest.$ac_objext
27047 if { (ac_try="$ac_compile"
27048 case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053 (eval "$ac_compile") 2>conftest.er1
27055 grep -v '^ *+' conftest.er1 >conftest.err
27057 cat conftest.err >&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } && {
27060 test -z "$ac_c_werror_flag" ||
27061 test ! -s conftest.err
27062 } && test -s conftest.$ac_objext; then
27063 ac_hi=$ac_mid; break
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27068 ac_lo=`expr $ac_mid + 1`
27069 if test $ac_lo -le $ac_mid; then
27073 ac_mid=`expr 2 '*' $ac_mid + 1`
27076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 cat >conftest.$ac_ext <<_ACEOF
27085 cat confdefs.h >>conftest.$ac_ext
27086 cat >>conftest.$ac_ext <<_ACEOF
27087 /* end confdefs.h. */
27088 $ac_includes_default
27089 typedef short ac__type_sizeof_;
27093 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27094 test_array @<:@0@:>@ = 0
27100 rm -f conftest.$ac_objext
27101 if { (ac_try="$ac_compile"
27102 case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107 (eval "$ac_compile") 2>conftest.er1
27109 grep -v '^ *+' conftest.er1 >conftest.err
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } && {
27114 test -z "$ac_c_werror_flag" ||
27115 test ! -s conftest.err
27116 } && test -s conftest.$ac_objext; then
27119 cat >conftest.$ac_ext <<_ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h. */
27125 $ac_includes_default
27126 typedef short ac__type_sizeof_;
27130 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27131 test_array @<:@0@:>@ = 0
27137 rm -f conftest.$ac_objext
27138 if { (ac_try="$ac_compile"
27139 case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27144 (eval "$ac_compile") 2>conftest.er1
27146 grep -v '^ *+' conftest.er1 >conftest.err
27148 cat conftest.err >&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); } && {
27151 test -z "$ac_c_werror_flag" ||
27152 test ! -s conftest.err
27153 } && test -s conftest.$ac_objext; then
27154 ac_lo=$ac_mid; break
27156 echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27159 ac_hi=`expr '(' $ac_mid ')' - 1`
27160 if test $ac_mid -le $ac_hi; then
27164 ac_mid=`expr 2 '*' $ac_mid`
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170 echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27180 # Binary search between lo and hi bounds.
27181 while test "x$ac_lo" != "x$ac_hi"; do
27182 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27183 cat >conftest.$ac_ext <<_ACEOF
27186 cat confdefs.h >>conftest.$ac_ext
27187 cat >>conftest.$ac_ext <<_ACEOF
27188 /* end confdefs.h. */
27189 $ac_includes_default
27190 typedef short ac__type_sizeof_;
27194 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27195 test_array @<:@0@:>@ = 0
27201 rm -f conftest.$ac_objext
27202 if { (ac_try="$ac_compile"
27203 case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_compile") 2>conftest.er1
27210 grep -v '^ *+' conftest.er1 >conftest.err
27212 cat conftest.err >&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); } && {
27215 test -z "$ac_c_werror_flag" ||
27216 test ! -s conftest.err
27217 } && test -s conftest.$ac_objext; then
27220 echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27223 ac_lo=`expr '(' $ac_mid ')' + 1`
27226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27229 ?*) ac_cv_sizeof_short=$ac_lo;;
27230 '') if test "$ac_cv_type_short" = yes; then
27231 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27232 See \`config.log' for more details." >&5
27233 echo "$as_me: error: cannot compute sizeof (short)
27234 See \`config.log' for more details." >&2;}
27235 { (exit 77); exit 77; }; }
27237 ac_cv_sizeof_short=0
27241 cat >conftest.$ac_ext <<_ACEOF
27244 cat confdefs.h >>conftest.$ac_ext
27245 cat >>conftest.$ac_ext <<_ACEOF
27246 /* end confdefs.h. */
27247 $ac_includes_default
27248 typedef short ac__type_sizeof_;
27249 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27250 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27251 @%:@include <stdio.h>
27252 @%:@include <stdlib.h>
27257 FILE *f = fopen ("conftest.val", "w");
27260 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27262 long int i = longval ();
27263 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27265 fprintf (f, "%ld\n", i);
27269 unsigned long int i = ulongval ();
27270 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27272 fprintf (f, "%lu\n", i);
27274 return ferror (f) || fclose (f) != 0;
27280 rm -f conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_link") 2>&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27291 { (case "(($ac_try" in
27292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293 *) ac_try_echo=$ac_try;;
27295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296 (eval "$ac_try") 2>&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); }; }; then
27300 ac_cv_sizeof_short=`cat conftest.val`
27302 echo "$as_me: program exited with status $ac_status" >&5
27303 echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27306 ( exit $ac_status )
27307 if test "$ac_cv_type_short" = yes; then
27308 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27309 See \`config.log' for more details." >&5
27310 echo "$as_me: error: cannot compute sizeof (short)
27311 See \`config.log' for more details." >&2;}
27312 { (exit 77); exit 77; }; }
27314 ac_cv_sizeof_short=0
27317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27321 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27322 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27326 cat >>confdefs.h <<_ACEOF
27327 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
27331 { echo "$as_me:$LINENO: checking for int" >&5
27332 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27333 if test "${ac_cv_type_int+set}" = set; then
27334 echo $ECHO_N "(cached) $ECHO_C" >&6
27336 cat >conftest.$ac_ext <<_ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h. */
27342 $ac_includes_default
27343 typedef int ac__type_new_;
27347 if ((ac__type_new_ *) 0)
27349 if (sizeof (ac__type_new_))
27355 rm -f conftest.$ac_objext
27356 if { (ac_try="$ac_compile"
27357 case "(($ac_try" in
27358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359 *) ac_try_echo=$ac_try;;
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362 (eval "$ac_compile") 2>conftest.er1
27364 grep -v '^ *+' conftest.er1 >conftest.err
27366 cat conftest.err >&5
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); } && {
27369 test -z "$ac_c_werror_flag" ||
27370 test ! -s conftest.err
27371 } && test -s conftest.$ac_objext; then
27374 echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27383 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27385 # The cast to long int works around a bug in the HP C Compiler
27386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27388 # This bug is HP SR number 8606223364.
27389 { echo "$as_me:$LINENO: checking size of int" >&5
27390 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27391 if test "${ac_cv_sizeof_int+set}" = set; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27394 if test "$cross_compiling" = yes; then
27395 # Depending upon the size, compute the lo and hi bounds.
27396 cat >conftest.$ac_ext <<_ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h. */
27402 $ac_includes_default
27403 typedef int ac__type_sizeof_;
27407 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27408 test_array @<:@0@:>@ = 0
27414 rm -f conftest.$ac_objext
27415 if { (ac_try="$ac_compile"
27416 case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_compile") 2>conftest.er1
27423 grep -v '^ *+' conftest.er1 >conftest.err
27425 cat conftest.err >&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); } && {
27428 test -z "$ac_c_werror_flag" ||
27429 test ! -s conftest.err
27430 } && test -s conftest.$ac_objext; then
27433 cat >conftest.$ac_ext <<_ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h. */
27439 $ac_includes_default
27440 typedef int ac__type_sizeof_;
27444 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27445 test_array @<:@0@:>@ = 0
27451 rm -f conftest.$ac_objext
27452 if { (ac_try="$ac_compile"
27453 case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_compile") 2>conftest.er1
27460 grep -v '^ *+' conftest.er1 >conftest.err
27462 cat conftest.err >&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } && {
27465 test -z "$ac_c_werror_flag" ||
27466 test ! -s conftest.err
27467 } && test -s conftest.$ac_objext; then
27468 ac_hi=$ac_mid; break
27470 echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27473 ac_lo=`expr $ac_mid + 1`
27474 if test $ac_lo -le $ac_mid; then
27478 ac_mid=`expr 2 '*' $ac_mid + 1`
27481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27484 echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27487 cat >conftest.$ac_ext <<_ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h. */
27493 $ac_includes_default
27494 typedef int ac__type_sizeof_;
27498 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27499 test_array @<:@0@:>@ = 0
27505 rm -f conftest.$ac_objext
27506 if { (ac_try="$ac_compile"
27507 case "(($ac_try" in
27508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509 *) ac_try_echo=$ac_try;;
27511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512 (eval "$ac_compile") 2>conftest.er1
27514 grep -v '^ *+' conftest.er1 >conftest.err
27516 cat conftest.err >&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } && {
27519 test -z "$ac_c_werror_flag" ||
27520 test ! -s conftest.err
27521 } && test -s conftest.$ac_objext; then
27524 cat >conftest.$ac_ext <<_ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h. */
27530 $ac_includes_default
27531 typedef int ac__type_sizeof_;
27535 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27536 test_array @<:@0@:>@ = 0
27542 rm -f conftest.$ac_objext
27543 if { (ac_try="$ac_compile"
27544 case "(($ac_try" in
27545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27546 *) ac_try_echo=$ac_try;;
27548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27549 (eval "$ac_compile") 2>conftest.er1
27551 grep -v '^ *+' conftest.er1 >conftest.err
27553 cat conftest.err >&5
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); } && {
27556 test -z "$ac_c_werror_flag" ||
27557 test ! -s conftest.err
27558 } && test -s conftest.$ac_objext; then
27559 ac_lo=$ac_mid; break
27561 echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27564 ac_hi=`expr '(' $ac_mid ')' - 1`
27565 if test $ac_mid -le $ac_hi; then
27569 ac_mid=`expr 2 '*' $ac_mid`
27572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27585 # Binary search between lo and hi bounds.
27586 while test "x$ac_lo" != "x$ac_hi"; do
27587 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27588 cat >conftest.$ac_ext <<_ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27594 $ac_includes_default
27595 typedef int ac__type_sizeof_;
27599 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27600 test_array @<:@0@:>@ = 0
27606 rm -f conftest.$ac_objext
27607 if { (ac_try="$ac_compile"
27608 case "(($ac_try" in
27609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_compile") 2>conftest.er1
27615 grep -v '^ *+' conftest.er1 >conftest.err
27617 cat conftest.err >&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); } && {
27620 test -z "$ac_c_werror_flag" ||
27621 test ! -s conftest.err
27622 } && test -s conftest.$ac_objext; then
27625 echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27628 ac_lo=`expr '(' $ac_mid ')' + 1`
27631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27634 ?*) ac_cv_sizeof_int=$ac_lo;;
27635 '') if test "$ac_cv_type_int" = yes; then
27636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27637 See \`config.log' for more details." >&5
27638 echo "$as_me: error: cannot compute sizeof (int)
27639 See \`config.log' for more details." >&2;}
27640 { (exit 77); exit 77; }; }
27646 cat >conftest.$ac_ext <<_ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h. */
27652 $ac_includes_default
27653 typedef int ac__type_sizeof_;
27654 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27655 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27656 @%:@include <stdio.h>
27657 @%:@include <stdlib.h>
27662 FILE *f = fopen ("conftest.val", "w");
27665 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27667 long int i = longval ();
27668 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27670 fprintf (f, "%ld\n", i);
27674 unsigned long int i = ulongval ();
27675 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27677 fprintf (f, "%lu\n", i);
27679 return ferror (f) || fclose (f) != 0;
27685 rm -f conftest$ac_exeext
27686 if { (ac_try="$ac_link"
27687 case "(($ac_try" in
27688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689 *) ac_try_echo=$ac_try;;
27691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27692 (eval "$ac_link") 2>&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27696 { (case "(($ac_try" in
27697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698 *) ac_try_echo=$ac_try;;
27700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701 (eval "$ac_try") 2>&5
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); }; }; then
27705 ac_cv_sizeof_int=`cat conftest.val`
27707 echo "$as_me: program exited with status $ac_status" >&5
27708 echo "$as_me: failed program was:" >&5
27709 sed 's/^/| /' conftest.$ac_ext >&5
27711 ( exit $ac_status )
27712 if test "$ac_cv_type_int" = yes; then
27713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27714 See \`config.log' for more details." >&5
27715 echo "$as_me: error: cannot compute sizeof (int)
27716 See \`config.log' for more details." >&2;}
27717 { (exit 77); exit 77; }; }
27722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27726 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27727 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27731 cat >>confdefs.h <<_ACEOF
27732 @%:@define SIZEOF_INT $ac_cv_sizeof_int
27736 { echo "$as_me:$LINENO: checking for long" >&5
27737 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27738 if test "${ac_cv_type_long+set}" = set; then
27739 echo $ECHO_N "(cached) $ECHO_C" >&6
27741 cat >conftest.$ac_ext <<_ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h. */
27747 $ac_includes_default
27748 typedef long ac__type_new_;
27752 if ((ac__type_new_ *) 0)
27754 if (sizeof (ac__type_new_))
27760 rm -f conftest.$ac_objext
27761 if { (ac_try="$ac_compile"
27762 case "(($ac_try" in
27763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764 *) ac_try_echo=$ac_try;;
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767 (eval "$ac_compile") 2>conftest.er1
27769 grep -v '^ *+' conftest.er1 >conftest.err
27771 cat conftest.err >&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); } && {
27774 test -z "$ac_c_werror_flag" ||
27775 test ! -s conftest.err
27776 } && test -s conftest.$ac_objext; then
27777 ac_cv_type_long=yes
27779 echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27787 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27788 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27790 # The cast to long int works around a bug in the HP C Compiler
27791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27793 # This bug is HP SR number 8606223364.
27794 { echo "$as_me:$LINENO: checking size of long" >&5
27795 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27796 if test "${ac_cv_sizeof_long+set}" = set; then
27797 echo $ECHO_N "(cached) $ECHO_C" >&6
27799 if test "$cross_compiling" = yes; then
27800 # Depending upon the size, compute the lo and hi bounds.
27801 cat >conftest.$ac_ext <<_ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h. */
27807 $ac_includes_default
27808 typedef long ac__type_sizeof_;
27812 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27813 test_array @<:@0@:>@ = 0
27819 rm -f conftest.$ac_objext
27820 if { (ac_try="$ac_compile"
27821 case "(($ac_try" in
27822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27823 *) ac_try_echo=$ac_try;;
27825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27826 (eval "$ac_compile") 2>conftest.er1
27828 grep -v '^ *+' conftest.er1 >conftest.err
27830 cat conftest.err >&5
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); } && {
27833 test -z "$ac_c_werror_flag" ||
27834 test ! -s conftest.err
27835 } && test -s conftest.$ac_objext; then
27838 cat >conftest.$ac_ext <<_ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 $ac_includes_default
27845 typedef long ac__type_sizeof_;
27849 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27850 test_array @<:@0@:>@ = 0
27856 rm -f conftest.$ac_objext
27857 if { (ac_try="$ac_compile"
27858 case "(($ac_try" in
27859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860 *) ac_try_echo=$ac_try;;
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863 (eval "$ac_compile") 2>conftest.er1
27865 grep -v '^ *+' conftest.er1 >conftest.err
27867 cat conftest.err >&5
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); } && {
27870 test -z "$ac_c_werror_flag" ||
27871 test ! -s conftest.err
27872 } && test -s conftest.$ac_objext; then
27873 ac_hi=$ac_mid; break
27875 echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27878 ac_lo=`expr $ac_mid + 1`
27879 if test $ac_lo -le $ac_mid; then
27883 ac_mid=`expr 2 '*' $ac_mid + 1`
27886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27889 echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27892 cat >conftest.$ac_ext <<_ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27898 $ac_includes_default
27899 typedef long ac__type_sizeof_;
27903 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27904 test_array @<:@0@:>@ = 0
27910 rm -f conftest.$ac_objext
27911 if { (ac_try="$ac_compile"
27912 case "(($ac_try" in
27913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914 *) ac_try_echo=$ac_try;;
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917 (eval "$ac_compile") 2>conftest.er1
27919 grep -v '^ *+' conftest.er1 >conftest.err
27921 cat conftest.err >&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); } && {
27924 test -z "$ac_c_werror_flag" ||
27925 test ! -s conftest.err
27926 } && test -s conftest.$ac_objext; then
27929 cat >conftest.$ac_ext <<_ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h. */
27935 $ac_includes_default
27936 typedef long ac__type_sizeof_;
27940 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27941 test_array @<:@0@:>@ = 0
27947 rm -f conftest.$ac_objext
27948 if { (ac_try="$ac_compile"
27949 case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954 (eval "$ac_compile") 2>conftest.er1
27956 grep -v '^ *+' conftest.er1 >conftest.err
27958 cat conftest.err >&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } && {
27961 test -z "$ac_c_werror_flag" ||
27962 test ! -s conftest.err
27963 } && test -s conftest.$ac_objext; then
27964 ac_lo=$ac_mid; break
27966 echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27969 ac_hi=`expr '(' $ac_mid ')' - 1`
27970 if test $ac_mid -le $ac_hi; then
27974 ac_mid=`expr 2 '*' $ac_mid`
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27980 echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27990 # Binary search between lo and hi bounds.
27991 while test "x$ac_lo" != "x$ac_hi"; do
27992 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27993 cat >conftest.$ac_ext <<_ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h. */
27999 $ac_includes_default
28000 typedef long ac__type_sizeof_;
28004 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28005 test_array @<:@0@:>@ = 0
28011 rm -f conftest.$ac_objext
28012 if { (ac_try="$ac_compile"
28013 case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_compile") 2>conftest.er1
28020 grep -v '^ *+' conftest.er1 >conftest.err
28022 cat conftest.err >&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); } && {
28025 test -z "$ac_c_werror_flag" ||
28026 test ! -s conftest.err
28027 } && test -s conftest.$ac_objext; then
28030 echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28033 ac_lo=`expr '(' $ac_mid ')' + 1`
28036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28039 ?*) ac_cv_sizeof_long=$ac_lo;;
28040 '') if test "$ac_cv_type_long" = yes; then
28041 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28042 See \`config.log' for more details." >&5
28043 echo "$as_me: error: cannot compute sizeof (long)
28044 See \`config.log' for more details." >&2;}
28045 { (exit 77); exit 77; }; }
28047 ac_cv_sizeof_long=0
28051 cat >conftest.$ac_ext <<_ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h. */
28057 $ac_includes_default
28058 typedef long ac__type_sizeof_;
28059 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28060 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28061 @%:@include <stdio.h>
28062 @%:@include <stdlib.h>
28067 FILE *f = fopen ("conftest.val", "w");
28070 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28072 long int i = longval ();
28073 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28075 fprintf (f, "%ld\n", i);
28079 unsigned long int i = ulongval ();
28080 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28082 fprintf (f, "%lu\n", i);
28084 return ferror (f) || fclose (f) != 0;
28090 rm -f conftest$ac_exeext
28091 if { (ac_try="$ac_link"
28092 case "(($ac_try" in
28093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094 *) ac_try_echo=$ac_try;;
28096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097 (eval "$ac_link") 2>&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28101 { (case "(($ac_try" in
28102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106 (eval "$ac_try") 2>&5
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; }; then
28110 ac_cv_sizeof_long=`cat conftest.val`
28112 echo "$as_me: program exited with status $ac_status" >&5
28113 echo "$as_me: failed program was:" >&5
28114 sed 's/^/| /' conftest.$ac_ext >&5
28116 ( exit $ac_status )
28117 if test "$ac_cv_type_long" = yes; then
28118 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28119 See \`config.log' for more details." >&5
28120 echo "$as_me: error: cannot compute sizeof (long)
28121 See \`config.log' for more details." >&2;}
28122 { (exit 77); exit 77; }; }
28124 ac_cv_sizeof_long=0
28127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28131 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28132 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28136 cat >>confdefs.h <<_ACEOF
28137 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
28141 { echo "$as_me:$LINENO: checking for size_t" >&5
28142 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28143 if test "${ac_cv_type_size_t+set}" = set; then
28144 echo $ECHO_N "(cached) $ECHO_C" >&6
28146 cat >conftest.$ac_ext <<_ACEOF
28149 cat confdefs.h >>conftest.$ac_ext
28150 cat >>conftest.$ac_ext <<_ACEOF
28151 /* end confdefs.h. */
28152 $ac_includes_default
28153 typedef size_t ac__type_new_;
28157 if ((ac__type_new_ *) 0)
28159 if (sizeof (ac__type_new_))
28165 rm -f conftest.$ac_objext
28166 if { (ac_try="$ac_compile"
28167 case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_compile") 2>conftest.er1
28174 grep -v '^ *+' conftest.er1 >conftest.err
28176 cat conftest.err >&5
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); } && {
28179 test -z "$ac_c_werror_flag" ||
28180 test ! -s conftest.err
28181 } && test -s conftest.$ac_objext; then
28182 ac_cv_type_size_t=yes
28184 echo "$as_me: failed program was:" >&5
28185 sed 's/^/| /' conftest.$ac_ext >&5
28187 ac_cv_type_size_t=no
28190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28192 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28193 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28195 # The cast to long int works around a bug in the HP C Compiler
28196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28198 # This bug is HP SR number 8606223364.
28199 { echo "$as_me:$LINENO: checking size of size_t" >&5
28200 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28201 if test "${ac_cv_sizeof_size_t+set}" = set; then
28202 echo $ECHO_N "(cached) $ECHO_C" >&6
28204 if test "$cross_compiling" = yes; then
28205 # Depending upon the size, compute the lo and hi bounds.
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 $ac_includes_default
28213 typedef size_t ac__type_sizeof_;
28217 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28218 test_array @<:@0@:>@ = 0
28224 rm -f conftest.$ac_objext
28225 if { (ac_try="$ac_compile"
28226 case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_compile") 2>conftest.er1
28233 grep -v '^ *+' conftest.er1 >conftest.err
28235 cat conftest.err >&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } && {
28238 test -z "$ac_c_werror_flag" ||
28239 test ! -s conftest.err
28240 } && test -s conftest.$ac_objext; then
28243 cat >conftest.$ac_ext <<_ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h. */
28249 $ac_includes_default
28250 typedef size_t ac__type_sizeof_;
28254 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28255 test_array @<:@0@:>@ = 0
28261 rm -f conftest.$ac_objext
28262 if { (ac_try="$ac_compile"
28263 case "(($ac_try" in
28264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265 *) ac_try_echo=$ac_try;;
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268 (eval "$ac_compile") 2>conftest.er1
28270 grep -v '^ *+' conftest.er1 >conftest.err
28272 cat conftest.err >&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } && {
28275 test -z "$ac_c_werror_flag" ||
28276 test ! -s conftest.err
28277 } && test -s conftest.$ac_objext; then
28278 ac_hi=$ac_mid; break
28280 echo "$as_me: failed program was:" >&5
28281 sed 's/^/| /' conftest.$ac_ext >&5
28283 ac_lo=`expr $ac_mid + 1`
28284 if test $ac_lo -le $ac_mid; then
28288 ac_mid=`expr 2 '*' $ac_mid + 1`
28291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28294 echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28297 cat >conftest.$ac_ext <<_ACEOF
28300 cat confdefs.h >>conftest.$ac_ext
28301 cat >>conftest.$ac_ext <<_ACEOF
28302 /* end confdefs.h. */
28303 $ac_includes_default
28304 typedef size_t ac__type_sizeof_;
28308 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28309 test_array @<:@0@:>@ = 0
28315 rm -f conftest.$ac_objext
28316 if { (ac_try="$ac_compile"
28317 case "(($ac_try" in
28318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319 *) ac_try_echo=$ac_try;;
28321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322 (eval "$ac_compile") 2>conftest.er1
28324 grep -v '^ *+' conftest.er1 >conftest.err
28326 cat conftest.err >&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } && {
28329 test -z "$ac_c_werror_flag" ||
28330 test ! -s conftest.err
28331 } && test -s conftest.$ac_objext; then
28334 cat >conftest.$ac_ext <<_ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h. */
28340 $ac_includes_default
28341 typedef size_t ac__type_sizeof_;
28345 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28346 test_array @<:@0@:>@ = 0
28352 rm -f conftest.$ac_objext
28353 if { (ac_try="$ac_compile"
28354 case "(($ac_try" in
28355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356 *) ac_try_echo=$ac_try;;
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359 (eval "$ac_compile") 2>conftest.er1
28361 grep -v '^ *+' conftest.er1 >conftest.err
28363 cat conftest.err >&5
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); } && {
28366 test -z "$ac_c_werror_flag" ||
28367 test ! -s conftest.err
28368 } && test -s conftest.$ac_objext; then
28369 ac_lo=$ac_mid; break
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 ac_hi=`expr '(' $ac_mid ')' - 1`
28375 if test $ac_mid -le $ac_hi; then
28379 ac_mid=`expr 2 '*' $ac_mid`
28382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28385 echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28395 # Binary search between lo and hi bounds.
28396 while test "x$ac_lo" != "x$ac_hi"; do
28397 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28398 cat >conftest.$ac_ext <<_ACEOF
28401 cat confdefs.h >>conftest.$ac_ext
28402 cat >>conftest.$ac_ext <<_ACEOF
28403 /* end confdefs.h. */
28404 $ac_includes_default
28405 typedef size_t ac__type_sizeof_;
28409 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28410 test_array @<:@0@:>@ = 0
28416 rm -f conftest.$ac_objext
28417 if { (ac_try="$ac_compile"
28418 case "(($ac_try" in
28419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420 *) ac_try_echo=$ac_try;;
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423 (eval "$ac_compile") 2>conftest.er1
28425 grep -v '^ *+' conftest.er1 >conftest.err
28427 cat conftest.err >&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } && {
28430 test -z "$ac_c_werror_flag" ||
28431 test ! -s conftest.err
28432 } && test -s conftest.$ac_objext; then
28435 echo "$as_me: failed program was:" >&5
28436 sed 's/^/| /' conftest.$ac_ext >&5
28438 ac_lo=`expr '(' $ac_mid ')' + 1`
28441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28444 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28445 '') if test "$ac_cv_type_size_t" = yes; then
28446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28447 See \`config.log' for more details." >&5
28448 echo "$as_me: error: cannot compute sizeof (size_t)
28449 See \`config.log' for more details." >&2;}
28450 { (exit 77); exit 77; }; }
28452 ac_cv_sizeof_size_t=0
28456 cat >conftest.$ac_ext <<_ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h. */
28462 $ac_includes_default
28463 typedef size_t ac__type_sizeof_;
28464 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28465 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28466 @%:@include <stdio.h>
28467 @%:@include <stdlib.h>
28472 FILE *f = fopen ("conftest.val", "w");
28475 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28477 long int i = longval ();
28478 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28480 fprintf (f, "%ld\n", i);
28484 unsigned long int i = ulongval ();
28485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28487 fprintf (f, "%lu\n", i);
28489 return ferror (f) || fclose (f) != 0;
28495 rm -f conftest$ac_exeext
28496 if { (ac_try="$ac_link"
28497 case "(($ac_try" in
28498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499 *) ac_try_echo=$ac_try;;
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502 (eval "$ac_link") 2>&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28506 { (case "(($ac_try" in
28507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508 *) ac_try_echo=$ac_try;;
28510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511 (eval "$ac_try") 2>&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; }; then
28515 ac_cv_sizeof_size_t=`cat conftest.val`
28517 echo "$as_me: program exited with status $ac_status" >&5
28518 echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28521 ( exit $ac_status )
28522 if test "$ac_cv_type_size_t" = yes; then
28523 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28524 See \`config.log' for more details." >&5
28525 echo "$as_me: error: cannot compute sizeof (size_t)
28526 See \`config.log' for more details." >&2;}
28527 { (exit 77); exit 77; }; }
28529 ac_cv_sizeof_size_t=0
28532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28536 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28537 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28541 cat >>confdefs.h <<_ACEOF
28542 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28546 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28547 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28548 if test "${ac_cv_type_socklen_t+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28551 cat >conftest.$ac_ext <<_ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h. */
28557 $ac_includes_default
28558 typedef socklen_t ac__type_new_;
28562 if ((ac__type_new_ *) 0)
28564 if (sizeof (ac__type_new_))
28570 rm -f conftest.$ac_objext
28571 if { (ac_try="$ac_compile"
28572 case "(($ac_try" in
28573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574 *) ac_try_echo=$ac_try;;
28576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577 (eval "$ac_compile") 2>conftest.er1
28579 grep -v '^ *+' conftest.er1 >conftest.err
28581 cat conftest.err >&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } && {
28584 test -z "$ac_c_werror_flag" ||
28585 test ! -s conftest.err
28586 } && test -s conftest.$ac_objext; then
28587 ac_cv_type_socklen_t=yes
28589 echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28592 ac_cv_type_socklen_t=no
28595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28598 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28600 # The cast to long int works around a bug in the HP C Compiler
28601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28603 # This bug is HP SR number 8606223364.
28604 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28605 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28606 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28607 echo $ECHO_N "(cached) $ECHO_C" >&6
28609 if test "$cross_compiling" = yes; then
28610 # Depending upon the size, compute the lo and hi bounds.
28611 cat >conftest.$ac_ext <<_ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h. */
28617 $ac_includes_default
28618 typedef socklen_t ac__type_sizeof_;
28622 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28623 test_array @<:@0@:>@ = 0
28629 rm -f conftest.$ac_objext
28630 if { (ac_try="$ac_compile"
28631 case "(($ac_try" in
28632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28633 *) ac_try_echo=$ac_try;;
28635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636 (eval "$ac_compile") 2>conftest.er1
28638 grep -v '^ *+' conftest.er1 >conftest.err
28640 cat conftest.err >&5
28641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); } && {
28643 test -z "$ac_c_werror_flag" ||
28644 test ! -s conftest.err
28645 } && test -s conftest.$ac_objext; then
28648 cat >conftest.$ac_ext <<_ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h. */
28654 $ac_includes_default
28655 typedef socklen_t ac__type_sizeof_;
28659 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28660 test_array @<:@0@:>@ = 0
28666 rm -f conftest.$ac_objext
28667 if { (ac_try="$ac_compile"
28668 case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_compile") 2>conftest.er1
28675 grep -v '^ *+' conftest.er1 >conftest.err
28677 cat conftest.err >&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); } && {
28680 test -z "$ac_c_werror_flag" ||
28681 test ! -s conftest.err
28682 } && test -s conftest.$ac_objext; then
28683 ac_hi=$ac_mid; break
28685 echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28688 ac_lo=`expr $ac_mid + 1`
28689 if test $ac_lo -le $ac_mid; then
28693 ac_mid=`expr 2 '*' $ac_mid + 1`
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28699 echo "$as_me: failed program was:" >&5
28700 sed 's/^/| /' conftest.$ac_ext >&5
28702 cat >conftest.$ac_ext <<_ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28708 $ac_includes_default
28709 typedef socklen_t ac__type_sizeof_;
28713 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28714 test_array @<:@0@:>@ = 0
28720 rm -f conftest.$ac_objext
28721 if { (ac_try="$ac_compile"
28722 case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_compile") 2>conftest.er1
28729 grep -v '^ *+' conftest.er1 >conftest.err
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } && {
28734 test -z "$ac_c_werror_flag" ||
28735 test ! -s conftest.err
28736 } && test -s conftest.$ac_objext; then
28739 cat >conftest.$ac_ext <<_ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h. */
28745 $ac_includes_default
28746 typedef socklen_t ac__type_sizeof_;
28750 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28751 test_array @<:@0@:>@ = 0
28757 rm -f conftest.$ac_objext
28758 if { (ac_try="$ac_compile"
28759 case "(($ac_try" in
28760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761 *) ac_try_echo=$ac_try;;
28763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28764 (eval "$ac_compile") 2>conftest.er1
28766 grep -v '^ *+' conftest.er1 >conftest.err
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } && {
28771 test -z "$ac_c_werror_flag" ||
28772 test ! -s conftest.err
28773 } && test -s conftest.$ac_objext; then
28774 ac_lo=$ac_mid; break
28776 echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28779 ac_hi=`expr '(' $ac_mid ')' - 1`
28780 if test $ac_mid -le $ac_hi; then
28784 ac_mid=`expr 2 '*' $ac_mid`
28787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28790 echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28800 # Binary search between lo and hi bounds.
28801 while test "x$ac_lo" != "x$ac_hi"; do
28802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28803 cat >conftest.$ac_ext <<_ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h. */
28809 $ac_includes_default
28810 typedef socklen_t ac__type_sizeof_;
28814 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28815 test_array @<:@0@:>@ = 0
28821 rm -f conftest.$ac_objext
28822 if { (ac_try="$ac_compile"
28823 case "(($ac_try" in
28824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28825 *) ac_try_echo=$ac_try;;
28827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28828 (eval "$ac_compile") 2>conftest.er1
28830 grep -v '^ *+' conftest.er1 >conftest.err
28832 cat conftest.err >&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } && {
28835 test -z "$ac_c_werror_flag" ||
28836 test ! -s conftest.err
28837 } && test -s conftest.$ac_objext; then
28840 echo "$as_me: failed program was:" >&5
28841 sed 's/^/| /' conftest.$ac_ext >&5
28843 ac_lo=`expr '(' $ac_mid ')' + 1`
28846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28849 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28850 '') if test "$ac_cv_type_socklen_t" = yes; then
28851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28852 See \`config.log' for more details." >&5
28853 echo "$as_me: error: cannot compute sizeof (socklen_t)
28854 See \`config.log' for more details." >&2;}
28855 { (exit 77); exit 77; }; }
28857 ac_cv_sizeof_socklen_t=0
28861 cat >conftest.$ac_ext <<_ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h. */
28867 $ac_includes_default
28868 typedef socklen_t ac__type_sizeof_;
28869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28871 @%:@include <stdio.h>
28872 @%:@include <stdlib.h>
28877 FILE *f = fopen ("conftest.val", "w");
28880 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28882 long int i = longval ();
28883 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28885 fprintf (f, "%ld\n", i);
28889 unsigned long int i = ulongval ();
28890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28892 fprintf (f, "%lu\n", i);
28894 return ferror (f) || fclose (f) != 0;
28900 rm -f conftest$ac_exeext
28901 if { (ac_try="$ac_link"
28902 case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_link") 2>&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28911 { (case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_try") 2>&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); }; }; then
28920 ac_cv_sizeof_socklen_t=`cat conftest.val`
28922 echo "$as_me: program exited with status $ac_status" >&5
28923 echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28926 ( exit $ac_status )
28927 if test "$ac_cv_type_socklen_t" = yes; then
28928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28929 See \`config.log' for more details." >&5
28930 echo "$as_me: error: cannot compute sizeof (socklen_t)
28931 See \`config.log' for more details." >&2;}
28932 { (exit 77); exit 77; }; }
28934 ac_cv_sizeof_socklen_t=0
28937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28941 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28942 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28946 cat >>confdefs.h <<_ACEOF
28947 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28954 cat >>confdefs.h <<_ACEOF
28955 @%:@define NFS_STATEDIR "$statedir"
28959 if test "x$cross_compiling" = "xno"; then
28960 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28961 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28962 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28963 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28965 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28966 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28967 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28968 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28983 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28988 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28990 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28992 AM_CFLAGS="$my_am_cflags"
28995 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28996 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28999 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/getiversion/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/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
29001 cat >confcache <<\_ACEOF
29002 # This file is a shell script that caches the results of configure
29003 # tests run on this system so they can be shared between configure
29004 # scripts and configure runs, see configure's option --config-cache.
29005 # It is not useful on other systems. If it contains results you don't
29006 # want to keep, you may remove or edit it.
29008 # config.status only pays attention to the cache file if you give it
29009 # the --recheck option to rerun configure.
29011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29013 # following values.
29017 # The following way of writing the cache mishandles newlines in values,
29018 # but we know of no workaround that is simple, portable, and efficient.
29019 # So, we kill variables containing newlines.
29020 # Ultrix sh set writes to stderr and can't be redirected directly,
29021 # and sets the high bit in the cache file unless we assign to the vars.
29023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29024 eval ac_val=\$$ac_var
29028 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29029 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29032 _ | IFS | as_nl) ;; #(
29033 *) $as_unset $ac_var ;;
29039 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29040 *${as_nl}ac_space=\ *)
29041 # `set' does not quote correctly, so add quotes (double-quote
29042 # substitution turns \\\\ into \\, and sed turns \\ into \).
29045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29048 # `set' quotes correctly as required by POSIX, so do not add quotes.
29049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29062 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29063 if test -w "$cache_file"; then
29064 test "x$cache_file" != "x/dev/null" &&
29065 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29066 echo "$as_me: updating cache $cache_file" >&6;}
29067 cat confcache >$cache_file
29069 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29070 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29075 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29076 # Let make expand exec_prefix.
29077 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29079 DEFS=-DHAVE_CONFIG_H
29083 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
29084 # 1. Remove the extension, and $U if already installed.
29085 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29086 ac_i=`echo "$ac_i" | sed "$ac_script"`
29087 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29088 # will be set to the directory where LIBOBJS objects are built.
29089 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29090 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29092 LIB@&t@OBJS=$ac_libobjs
29094 LTLIBOBJS=$ac_ltlibobjs
29097 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29098 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29099 Usually this means the macro was only invoked conditionally." >&5
29100 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29101 Usually this means the macro was only invoked conditionally." >&2;}
29102 { (exit 1); exit 1; }; }
29104 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29105 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29106 Usually this means the macro was only invoked conditionally." >&5
29107 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29108 Usually this means the macro was only invoked conditionally." >&2;}
29109 { (exit 1); exit 1; }; }
29111 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29112 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29113 Usually this means the macro was only invoked conditionally." >&5
29114 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29115 Usually this means the macro was only invoked conditionally." >&2;}
29116 { (exit 1); exit 1; }; }
29118 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
29119 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29120 Usually this means the macro was only invoked conditionally." >&5
29121 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29122 Usually this means the macro was only invoked conditionally." >&2;}
29123 { (exit 1); exit 1; }; }
29125 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29126 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29127 Usually this means the macro was only invoked conditionally." >&5
29128 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29129 Usually this means the macro was only invoked conditionally." >&2;}
29130 { (exit 1); exit 1; }; }
29132 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29133 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29134 Usually this means the macro was only invoked conditionally." >&5
29135 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29136 Usually this means the macro was only invoked conditionally." >&2;}
29137 { (exit 1); exit 1; }; }
29139 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29140 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29141 Usually this means the macro was only invoked conditionally." >&5
29142 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29143 Usually this means the macro was only invoked conditionally." >&2;}
29144 { (exit 1); exit 1; }; }
29146 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29147 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29148 Usually this means the macro was only invoked conditionally." >&5
29149 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29150 Usually this means the macro was only invoked conditionally." >&2;}
29151 { (exit 1); exit 1; }; }
29153 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29154 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29155 Usually this means the macro was only invoked conditionally." >&5
29156 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29157 Usually this means the macro was only invoked conditionally." >&2;}
29158 { (exit 1); exit 1; }; }
29161 : ${CONFIG_STATUS=./config.status}
29162 ac_clean_files_save=$ac_clean_files
29163 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29164 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29165 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29166 cat >$CONFIG_STATUS <<_ACEOF
29168 # Generated by $as_me.
29169 # Run this file to recreate the current configuration.
29170 # Compiler output produced by configure, useful for debugging
29171 # configure, is in config.log if it exists.
29174 ac_cs_recheck=false
29176 SHELL=\${CONFIG_SHELL-$SHELL}
29179 cat >>$CONFIG_STATUS <<\_ACEOF
29180 ## --------------------- ##
29181 ## M4sh Initialization. ##
29182 ## --------------------- ##
29184 # Be more Bourne compatible
29185 DUALCASE=1; export DUALCASE # for MKS sh
29186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29189 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29190 # is contrary to our usage. Disable this feature.
29191 alias -g '${1+"$@"}'='"$@"'
29192 setopt NO_GLOB_SUBST
29194 case `(set -o) 2>/dev/null` in
29195 *posix*) set -o posix ;;
29204 # Avoid depending upon Character Ranges.
29205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29208 as_cr_digits='0123456789'
29209 as_cr_alnum=$as_cr_Letters$as_cr_digits
29211 # The user is always right.
29212 if test "${PATH_SEPARATOR+set}" != set; then
29213 echo "#! /bin/sh" >conf$$.sh
29214 echo "exit 0" >>conf$$.sh
29216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29224 # Support unset when possible.
29225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29233 # We need space, tab and new line, in precisely that order. Quoting is
29234 # there to prevent editors from complaining about space-tab.
29235 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29236 # splitting by setting IFS to empty value.)
29241 # Find who we are. Look in the path if we contain no directory separator.
29243 *[\\/]* ) as_myself=$0 ;;
29244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29245 for as_dir in $PATH
29248 test -z "$as_dir" && as_dir=.
29249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29255 # We did not find ourselves, most probably we were run as `sh COMMAND'
29256 # in which case we are not to be found in the path.
29257 if test "x$as_myself" = x; then
29260 if test ! -f "$as_myself"; then
29261 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29262 { (exit 1); exit 1; }
29265 # Work around bugs in pre-3.0 UWIN ksh.
29266 for as_var in ENV MAIL MAILPATH
29267 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29275 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29276 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29277 LC_TELEPHONE LC_TIME
29279 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29280 eval $as_var=C; export $as_var
29282 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29286 # Required to use basename.
29287 if expr a : '\(a\)' >/dev/null 2>&1 &&
29288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29295 as_basename=basename
29301 # Name of the executable.
29302 as_me=`$as_basename -- "$0" ||
29303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29304 X"$0" : 'X\(//\)$' \| \
29305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29307 sed '/^.*\/\([^/][^/]*\)\/*$/{
29326 as_lineno_1=$LINENO
29327 as_lineno_2=$LINENO
29328 test "x$as_lineno_1" != "x$as_lineno_2" &&
29329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29331 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29332 # uniformly replaced by the line number. The first 'sed' inserts a
29333 # line-number line after each line using $LINENO; the second 'sed'
29334 # does the real work. The second script uses 'N' to pair each
29335 # line-number line with the line containing $LINENO, and appends
29336 # trailing '-' during substitution so that $LINENO is not a special
29337 # case at line end.
29338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29339 # scripts with optimization help from Paolo Bonzini. Blame Lee
29340 # E. McMahon (1931-1989) for sed's syntax. :-)
29352 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29355 ' >$as_me.lineno &&
29356 chmod +x "$as_me.lineno" ||
29357 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29358 { (exit 1); exit 1; }; }
29360 # Don't try to exec as it changes $[0], causing all sort of problems
29361 # (the dirname of $[0] is not the place where we might find the
29362 # original and so on. Autoconf is especially sensitive to this).
29363 . "./$as_me.lineno"
29364 # Exit status is that of the last command.
29369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29375 ECHO_C= ECHO_N= ECHO_T=
29376 case `echo -n x` in
29378 case `echo 'x\c'` in
29379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29386 if expr a : '\(a\)' >/dev/null 2>&1 &&
29387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29393 rm -f conf$$ conf$$.exe conf$$.file
29394 if test -d conf$$.dir; then
29395 rm -f conf$$.dir/conf$$.file
29401 if ln -s conf$$.file conf$$ 2>/dev/null; then
29403 # ... but there are two gotchas:
29404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29406 # In both cases, we have to default to `cp -p'.
29407 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29409 elif ln conf$$.file conf$$ 2>/dev/null; then
29414 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29415 rmdir conf$$.dir 2>/dev/null
29417 if mkdir -p . 2>/dev/null; then
29420 test -d ./-p && rmdir ./-p
29424 if test -x / >/dev/null 2>&1; then
29425 as_test_x='test -x'
29427 if ls -dL / >/dev/null 2>&1; then
29434 if test -d "$1"; then
29440 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29441 ???[sx]*):;;*)false;;esac;fi
29445 as_executable_p=$as_test_x
29447 # Sed expression to map a string onto a valid CPP name.
29448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29450 # Sed expression to map a string onto a valid variable name.
29451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29456 # Save the log message, to keep $[0] and so on meaningful, and to
29457 # report actual input values of CONFIG_FILES etc. instead of their
29458 # values after options handling.
29460 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29461 generated by GNU Autoconf 2.61. Invocation command line was
29463 CONFIG_FILES = $CONFIG_FILES
29464 CONFIG_HEADERS = $CONFIG_HEADERS
29465 CONFIG_LINKS = $CONFIG_LINKS
29466 CONFIG_COMMANDS = $CONFIG_COMMANDS
29469 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29474 cat >>$CONFIG_STATUS <<_ACEOF
29475 # Files that config.status was made for.
29476 config_files="$ac_config_files"
29477 config_headers="$ac_config_headers"
29478 config_commands="$ac_config_commands"
29482 cat >>$CONFIG_STATUS <<\_ACEOF
29484 \`$as_me' instantiates files from templates according to the
29485 current configuration.
29487 Usage: $0 [OPTIONS] [FILE]...
29489 -h, --help print this help, then exit
29490 -V, --version print version number and configuration settings, then exit
29491 -q, --quiet do not print progress messages
29492 -d, --debug don't remove temporary files
29493 --recheck update $as_me by reconfiguring in the same conditions
29494 --file=FILE[:TEMPLATE]
29495 instantiate the configuration file FILE
29496 --header=FILE[:TEMPLATE]
29497 instantiate the configuration header FILE
29499 Configuration files:
29502 Configuration headers:
29505 Configuration commands:
29508 Report bugs to <bug-autoconf@gnu.org>."
29511 cat >>$CONFIG_STATUS <<_ACEOF
29513 linux nfs-utils config.status 1.0.10
29514 configured by $0, generated by GNU Autoconf 2.61,
29515 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29517 Copyright (C) 2006 Free Software Foundation, Inc.
29518 This config.status script is free software; the Free Software Foundation
29519 gives unlimited permission to copy, distribute and modify it."
29527 cat >>$CONFIG_STATUS <<\_ACEOF
29528 # If no file are specified by the user, then we need to provide default
29529 # value. By we need to know if files were specified by the user.
29535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29547 # Handling of the options.
29548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29550 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29551 echo "$ac_cs_version"; exit ;;
29552 --debug | --debu | --deb | --de | --d | -d )
29554 --file | --fil | --fi | --f )
29556 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29557 ac_need_defaults=false;;
29558 --header | --heade | --head | --hea )
29560 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29561 ac_need_defaults=false;;
29563 # Conflict between --help and --header
29564 { echo "$as_me: error: ambiguous option: $1
29565 Try \`$0 --help' for more information." >&2
29566 { (exit 1); exit 1; }; };;
29567 --help | --hel | -h )
29568 echo "$ac_cs_usage"; exit ;;
29569 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29570 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29573 # This is an error.
29574 -*) { echo "$as_me: error: unrecognized option: $1
29575 Try \`$0 --help' for more information." >&2
29576 { (exit 1); exit 1; }; } ;;
29578 *) ac_config_targets="$ac_config_targets $1"
29579 ac_need_defaults=false ;;
29585 ac_configure_extra_args=
29587 if $ac_cs_silent; then
29589 ac_configure_extra_args="$ac_configure_extra_args --silent"
29593 cat >>$CONFIG_STATUS <<_ACEOF
29594 if \$ac_cs_recheck; then
29595 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29596 CONFIG_SHELL=$SHELL
29597 export CONFIG_SHELL
29598 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29602 cat >>$CONFIG_STATUS <<\_ACEOF
29606 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
29607 @%:@@%:@ Running $as_me. @%:@@%:@
29613 cat >>$CONFIG_STATUS <<_ACEOF
29617 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29621 cat >>$CONFIG_STATUS <<\_ACEOF
29623 # Handling of arguments.
29624 for ac_config_target in $ac_config_targets
29626 case $ac_config_target in
29627 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29628 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29630 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29631 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29632 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29633 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29634 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29635 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29636 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29637 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29638 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29639 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29640 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29641 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29642 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29643 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29644 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29645 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29646 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29647 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29648 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29649 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29650 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29651 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29652 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29653 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29654 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29655 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29656 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29657 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29659 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29660 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29661 { (exit 1); exit 1; }; };;
29666 # If the user did not use the arguments to specify the items to instantiate,
29667 # then the envvar interface is used. Set only those that are not.
29668 # We use the long form for the default assignment because of an extremely
29669 # bizarre bug on SunOS 4.1.3.
29670 if $ac_need_defaults; then
29671 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29672 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29673 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29676 # Have a temporary directory for convenience. Make it in the build tree
29677 # simply because there is no reason against having it here, and in addition,
29678 # creating and moving files from /tmp can sometimes cause problems.
29679 # Hook for its removal unless debugging.
29680 # Note that there is a small window in which the directory will not be cleaned:
29681 # after its creation but before its name has been assigned to `$tmp'.
29685 trap 'exit_status=$?
29686 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29688 trap '{ (exit 1); exit 1; }' 1 2 13 15
29690 # Create a (secure) tmp directory for tmp files.
29693 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29694 test -n "$tmp" && test -d "$tmp"
29697 tmp=./conf$$-$RANDOM
29698 (umask 077 && mkdir "$tmp")
29701 echo "$me: cannot create a temporary directory in ." >&2
29702 { (exit 1); exit 1; }
29706 # Set up the sed scripts for CONFIG_FILES section.
29709 # No need to generate the scripts if there are no CONFIG_FILES.
29710 # This happens for instance when ./config.status config.h
29711 if test -n "$CONFIG_FILES"; then
29718 for ac_last_try in false false false false false :; do
29719 cat >conf$$subs.sed <<_ACEOF
29720 SHELL!$SHELL$ac_delim
29721 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29722 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29723 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29724 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29725 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29726 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29727 exec_prefix!$exec_prefix$ac_delim
29728 prefix!$prefix$ac_delim
29729 program_transform_name!$program_transform_name$ac_delim
29730 bindir!$bindir$ac_delim
29731 sbindir!$sbindir$ac_delim
29732 libexecdir!$libexecdir$ac_delim
29733 datarootdir!$datarootdir$ac_delim
29734 datadir!$datadir$ac_delim
29735 sysconfdir!$sysconfdir$ac_delim
29736 sharedstatedir!$sharedstatedir$ac_delim
29737 localstatedir!$localstatedir$ac_delim
29738 includedir!$includedir$ac_delim
29739 oldincludedir!$oldincludedir$ac_delim
29740 docdir!$docdir$ac_delim
29741 infodir!$infodir$ac_delim
29742 htmldir!$htmldir$ac_delim
29743 dvidir!$dvidir$ac_delim
29744 pdfdir!$pdfdir$ac_delim
29745 psdir!$psdir$ac_delim
29746 libdir!$libdir$ac_delim
29747 localedir!$localedir$ac_delim
29748 mandir!$mandir$ac_delim
29749 DEFS!$DEFS$ac_delim
29750 ECHO_C!$ECHO_C$ac_delim
29751 ECHO_N!$ECHO_N$ac_delim
29752 ECHO_T!$ECHO_T$ac_delim
29753 LIBS!$LIBS$ac_delim
29754 build_alias!$build_alias$ac_delim
29755 host_alias!$host_alias$ac_delim
29756 target_alias!$target_alias$ac_delim
29757 build!$build$ac_delim
29758 build_cpu!$build_cpu$ac_delim
29759 build_vendor!$build_vendor$ac_delim
29760 build_os!$build_os$ac_delim
29761 host!$host$ac_delim
29762 host_cpu!$host_cpu$ac_delim
29763 host_vendor!$host_vendor$ac_delim
29764 host_os!$host_os$ac_delim
29765 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29766 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29767 INSTALL_DATA!$INSTALL_DATA$ac_delim
29768 am__isrc!$am__isrc$ac_delim
29769 CYGPATH_W!$CYGPATH_W$ac_delim
29770 PACKAGE!$PACKAGE$ac_delim
29771 VERSION!$VERSION$ac_delim
29772 ACLOCAL!$ACLOCAL$ac_delim
29773 AUTOCONF!$AUTOCONF$ac_delim
29774 AUTOMAKE!$AUTOMAKE$ac_delim
29775 AUTOHEADER!$AUTOHEADER$ac_delim
29776 MAKEINFO!$MAKEINFO$ac_delim
29777 install_sh!$install_sh$ac_delim
29778 STRIP!$STRIP$ac_delim
29779 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29780 mkdir_p!$mkdir_p$ac_delim
29782 SET_MAKE!$SET_MAKE$ac_delim
29783 am__leading_dot!$am__leading_dot$ac_delim
29784 AMTAR!$AMTAR$ac_delim
29785 am__tar!$am__tar$ac_delim
29786 am__untar!$am__untar$ac_delim
29787 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
29788 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
29789 MAINT!$MAINT$ac_delim
29790 RELEASE!$RELEASE$ac_delim
29791 statedir!$statedir$ac_delim
29792 statduser!$statduser$ac_delim
29793 enable_nfsv3!$enable_nfsv3$ac_delim
29794 IDMAPD!$IDMAPD$ac_delim
29795 enable_nfsv4!$enable_nfsv4$ac_delim
29796 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29797 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29798 GSSD!$GSSD$ac_delim
29799 SVCGSSD!$SVCGSSD$ac_delim
29800 enable_gss!$enable_gss$ac_delim
29801 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29802 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29803 kprefix!$kprefix$ac_delim
29804 secure_statd!$secure_statd$ac_delim
29805 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29806 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29807 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29808 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29810 CFLAGS!$CFLAGS$ac_delim
29811 LDFLAGS!$LDFLAGS$ac_delim
29812 CPPFLAGS!$CPPFLAGS$ac_delim
29813 ac_ct_CC!$ac_ct_CC$ac_delim
29814 EXEEXT!$EXEEXT$ac_delim
29815 OBJEXT!$OBJEXT$ac_delim
29816 DEPDIR!$DEPDIR$ac_delim
29819 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29821 elif $ac_last_try; then
29822 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29823 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29824 { (exit 1); exit 1; }; }
29826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29830 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29831 if test -n "$ac_eof"; then
29832 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29833 ac_eof=`expr $ac_eof + 1`
29836 cat >>$CONFIG_STATUS <<_ACEOF
29837 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29842 s/^/s,@/; s/!/@,|#_!!_#|/
29845 s/'"$ac_delim"'$/,g/; t
29847 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29848 ' >>$CONFIG_STATUS <conf$$subs.sed
29849 rm -f conf$$subs.sed
29850 cat >>$CONFIG_STATUS <<_ACEOF
29856 for ac_last_try in false false false false false :; do
29857 cat >conf$$subs.sed <<_ACEOF
29858 am__include!$am__include$ac_delim
29859 am__quote!$am__quote$ac_delim
29860 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29861 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29862 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29863 CCDEPMODE!$CCDEPMODE$ac_delim
29864 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29865 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29866 LIBWRAP!$LIBWRAP$ac_delim
29867 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29868 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29870 CXXFLAGS!$CXXFLAGS$ac_delim
29871 ac_ct_CXX!$ac_ct_CXX$ac_delim
29872 CXXDEPMODE!$CXXDEPMODE$ac_delim
29873 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29874 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29876 LN_S!$LN_S$ac_delim
29877 GREP!$GREP$ac_delim
29878 EGREP!$EGREP$ac_delim
29879 ECHO!$ECHO$ac_delim
29881 RANLIB!$RANLIB$ac_delim
29882 CXXCPP!$CXXCPP$ac_delim
29884 FFLAGS!$FFLAGS$ac_delim
29885 ac_ct_F77!$ac_ct_F77$ac_delim
29886 LIBTOOL!$LIBTOOL$ac_delim
29887 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29889 LIBNSL!$LIBNSL$ac_delim
29890 PKG_CONFIG!$PKG_CONFIG$ac_delim
29891 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29892 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29893 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29894 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29895 LIBSOCKET!$LIBSOCKET$ac_delim
29896 LIBCRYPT!$LIBCRYPT$ac_delim
29897 LIBBSD!$LIBBSD$ac_delim
29898 LIBBLKID!$LIBBLKID$ac_delim
29899 KRBDIR!$KRBDIR$ac_delim
29900 KRBLIBS!$KRBLIBS$ac_delim
29901 KRBCFLAGS!$KRBCFLAGS$ac_delim
29902 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29903 K5VERS!$K5VERS$ac_delim
29904 ALLOCA!$ALLOCA$ac_delim
29905 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
29906 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29907 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29908 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29909 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29910 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29911 AM_CFLAGS!$AM_CFLAGS$ac_delim
29912 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29913 LTLIBOBJS!$LTLIBOBJS$ac_delim
29916 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
29918 elif $ac_last_try; then
29919 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29921 { (exit 1); exit 1; }; }
29923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29928 if test -n "$ac_eof"; then
29929 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29930 ac_eof=`expr $ac_eof + 1`
29933 cat >>$CONFIG_STATUS <<_ACEOF
29934 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29939 s/^/s,@/; s/!/@,|#_!!_#|/
29942 s/'"$ac_delim"'$/,g/; t
29944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29945 ' >>$CONFIG_STATUS <conf$$subs.sed
29946 rm -f conf$$subs.sed
29947 cat >>$CONFIG_STATUS <<_ACEOF
29954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29956 # trailing colons and then remove the whole line if VPATH becomes empty
29957 # (actually we leave an empty line to preserve line numbers).
29958 if test "x$srcdir" = x.; then
29959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29960 s/:*\$(srcdir):*/:/
29961 s/:*\${srcdir}:*/:/
29963 s/^\([^=]*=[ ]*\):*/\1/
29969 cat >>$CONFIG_STATUS <<\_ACEOF
29970 fi # test -n "$CONFIG_FILES"
29973 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29976 :[FHLC]) ac_mode=$ac_tag; continue;;
29978 case $ac_mode$ac_tag in
29980 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29981 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29982 { (exit 1); exit 1; }; };;
29983 :[FH]-) ac_tag=-:-;;
29984 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30001 -) ac_f="$tmp/stdin";;
30002 *) # Look for the file first in the build tree, then in the source tree
30003 # (if the path is not absolute). The absolute path cannot be DOS-style,
30004 # because $ac_f cannot contain `:'.
30008 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30010 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30011 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30012 { (exit 1); exit 1; }; };;
30014 ac_file_inputs="$ac_file_inputs $ac_f"
30017 # Let's still pretend it is `configure' which instantiates (i.e., don't
30018 # use $as_me), people would be surprised to read:
30019 # /* config.h. Generated by config.status. */
30020 configure_input="Generated from "`IFS=:
30021 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30022 if test x"$ac_file" != x-; then
30023 configure_input="$ac_file. $configure_input"
30024 { echo "$as_me:$LINENO: creating $ac_file" >&5
30025 echo "$as_me: creating $ac_file" >&6;}
30029 *:-:* | *:-) cat >"$tmp/stdin";;
30034 ac_dir=`$as_dirname -- "$ac_file" ||
30035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30036 X"$ac_file" : 'X\(//\)[^/]' \| \
30037 X"$ac_file" : 'X\(//\)$' \| \
30038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30044 /^X\(\/\/\)[^/].*/{
30059 -*) as_dir=./$as_dir;;
30061 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30065 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30066 *) as_qdir=$as_dir;;
30068 as_dirs="'$as_qdir' $as_dirs"
30069 as_dir=`$as_dirname -- "$as_dir" ||
30070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30071 X"$as_dir" : 'X\(//\)[^/]' \| \
30072 X"$as_dir" : 'X\(//\)$' \| \
30073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30079 /^X\(\/\/\)[^/].*/{
30092 test -d "$as_dir" && break
30094 test -z "$as_dirs" || eval "mkdir $as_dirs"
30095 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30096 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30097 { (exit 1); exit 1; }; }; }
30101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30104 # A ".." for each directory in $ac_dir_suffix.
30105 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30106 case $ac_top_builddir_sub in
30107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30111 ac_abs_top_builddir=$ac_pwd
30112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30113 # for backward compatibility:
30114 ac_top_builddir=$ac_top_build_prefix
30117 .) # We are building in place.
30119 ac_top_srcdir=$ac_top_builddir_sub
30120 ac_abs_top_srcdir=$ac_pwd ;;
30121 [\\/]* | ?:[\\/]* ) # Absolute name.
30122 ac_srcdir=$srcdir$ac_dir_suffix;
30123 ac_top_srcdir=$srcdir
30124 ac_abs_top_srcdir=$srcdir ;;
30125 *) # Relative name.
30126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30127 ac_top_srcdir=$ac_top_build_prefix$srcdir
30128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30143 ac_MKDIR_P=$MKDIR_P
30145 [\\/$]* | ?:[\\/]* ) ;;
30146 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30150 cat >>$CONFIG_STATUS <<\_ACEOF
30151 # If the template does not know about datarootdir, expand it.
30152 # FIXME: This hack should be removed a few years after 2.60.
30153 ac_datarootdir_hack=; ac_datarootdir_seen=
30155 case `sed -n '/datarootdir/ {
30164 ' $ac_file_inputs` in
30165 *datarootdir*) ac_datarootdir_seen=yes;;
30166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30167 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30168 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30170 cat >>$CONFIG_STATUS <<_ACEOF
30171 ac_datarootdir_hack='
30172 s&@datadir@&$datadir&g
30173 s&@docdir@&$docdir&g
30174 s&@infodir@&$infodir&g
30175 s&@localedir@&$localedir&g
30176 s&@mandir@&$mandir&g
30177 s&\\\${datarootdir}&$datarootdir&g' ;;
30181 # Neutralize VPATH when `$srcdir' = `.'.
30182 # Shell code in configure.ac might set extrasub.
30183 # FIXME: do we really want to maintain this feature?
30184 cat >>$CONFIG_STATUS <<_ACEOF
30188 cat >>$CONFIG_STATUS <<\_ACEOF
30190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30191 s&@configure_input@&$configure_input&;t t
30192 s&@top_builddir@&$ac_top_builddir_sub&;t t
30193 s&@srcdir@&$ac_srcdir&;t t
30194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30195 s&@top_srcdir@&$ac_top_srcdir&;t t
30196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30197 s&@builddir@&$ac_builddir&;t t
30198 s&@abs_builddir@&$ac_abs_builddir&;t t
30199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30200 s&@INSTALL@&$ac_INSTALL&;t t
30201 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30202 $ac_datarootdir_hack
30203 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30206 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30208 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30209 which seems to be undefined. Please make sure it is defined." >&5
30210 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30211 which seems to be undefined. Please make sure it is defined." >&2;}
30215 -) cat "$tmp/out"; rm -f "$tmp/out";;
30216 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30225 # Transform confdefs.h into a sed script `conftest.defines', that
30226 # substitutes the proper values into config.h.in to produce config.h.
30227 rm -f conftest.defines conftest.tail
30228 # First, append a space to every undef/define line, to ease matching.
30229 echo 's/$/ /' >conftest.defines
30230 # Then, protect against being on the right side of a sed subst, or in
30231 # an unquoted here document, in config.status. If some macros were
30232 # called several times there might be several #defines for the same
30233 # symbol, which is useless. But do not sort them, since the last
30234 # AC_DEFINE must be honored.
30235 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30236 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30237 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30238 # PARAMS is the parameter list in the macro definition--in most cases, it's
30239 # just an empty string.
30240 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30241 ac_dB='\\)[ (].*,\\1define\\2'
30249 s/^[ ]*#[ ]*define[ ][ ]*//
30254 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30255 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30256 ' >>conftest.defines
30258 # Remove the space that was appended to ease matching.
30259 # Then replace #undef with comments. This is necessary, for
30260 # example, in the case of _POSIX_SOURCE, which is predefined and required
30261 # on some systems where configure will not decide to define it.
30262 # (The regexp can be short, since the line contains either #define or #undef.)
30264 s,^[ #]*u.*,/* & */,' >>conftest.defines
30266 # Break up conftest.defines:
30267 ac_max_sed_lines=50
30269 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30270 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30271 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30273 ac_in='$ac_file_inputs'
30274 ac_out='"$tmp/out1"'
30275 ac_nxt='"$tmp/out2"'
30279 # Write a here document:
30280 cat >>$CONFIG_STATUS <<_ACEOF
30281 # First, check the format of the line:
30282 cat >"\$tmp/defines.sed" <<\\CEOF
30283 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30284 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30288 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30290 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30291 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30292 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30293 grep . conftest.tail >/dev/null || break
30294 rm -f conftest.defines
30295 mv conftest.tail conftest.defines
30297 rm -f conftest.defines conftest.tail
30299 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30300 cat >>$CONFIG_STATUS <<\_ACEOF
30301 if test x"$ac_file" != x-; then
30302 echo "/* $configure_input */" >"$tmp/config.h"
30303 cat "$ac_result" >>"$tmp/config.h"
30304 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30306 echo "$as_me: $ac_file is unchanged" >&6;}
30309 mv "$tmp/config.h" $ac_file
30312 echo "/* $configure_input */"
30316 # Compute $ac_file's index in $config_headers.
30318 for _am_header in $config_headers :; do
30319 case $_am_header in
30320 $ac_file | $ac_file:* )
30323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30326 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30327 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30328 X$ac_file : 'X\(//\)[^/]' \| \
30329 X$ac_file : 'X\(//\)$' \| \
30330 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30336 /^X\(\/\/\)[^/].*/{
30348 s/.*/./; q'`/stamp-h$_am_stamp_count
30351 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30352 echo "$as_me: executing $ac_file commands" >&6;}
30357 case $ac_file$ac_mode in
30358 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30359 # Strip MF so we end up with the name of the file.
30360 mf=`echo "$mf" | sed -e 's/:.*$//'`
30361 # Check whether this is an Automake generated Makefile or not.
30362 # We used to match only the files named `Makefile.in', but
30363 # some people rename them; so instead we look at the file content.
30364 # Grep'ing the first line is not enough: some people post-process
30365 # each Makefile.in and add a new line on top of each file to say so.
30366 # Grep'ing the whole file is not good either: AIX grep has a line
30367 # limit of 2048, but all sed's we know have understand at least 4000.
30368 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30369 dirpart=`$as_dirname -- "$mf" ||
30370 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30371 X"$mf" : 'X\(//\)[^/]' \| \
30372 X"$mf" : 'X\(//\)$' \| \
30373 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30379 /^X\(\/\/\)[^/].*/{
30395 # Extract the definition of DEPDIR, am__include, and am__quote
30396 # from the Makefile without running `make'.
30397 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30398 test -z "$DEPDIR" && continue
30399 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30400 test -z "am__include" && continue
30401 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30402 # When using ansi2knr, U may be empty or an underscore; expand it
30403 U=`sed -n 's/^U = //p' < "$mf"`
30404 # Find all dependency output files, they are included files with
30405 # $(DEPDIR) in their names. We invoke sed twice because it is the
30406 # simplest approach to changing $(DEPDIR) to its actual value in the
30408 for file in `sed -n "
30409 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30410 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30411 # Make sure the directory exists.
30412 test -f "$dirpart/$file" && continue
30413 fdir=`$as_dirname -- "$file" ||
30414 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30415 X"$file" : 'X\(//\)[^/]' \| \
30416 X"$file" : 'X\(//\)$' \| \
30417 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30423 /^X\(\/\/\)[^/].*/{
30436 { as_dir=$dirpart/$fdir
30438 -*) as_dir=./$as_dir;;
30440 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30444 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30445 *) as_qdir=$as_dir;;
30447 as_dirs="'$as_qdir' $as_dirs"
30448 as_dir=`$as_dirname -- "$as_dir" ||
30449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30450 X"$as_dir" : 'X\(//\)[^/]' \| \
30451 X"$as_dir" : 'X\(//\)$' \| \
30452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30458 /^X\(\/\/\)[^/].*/{
30471 test -d "$as_dir" && break
30473 test -z "$as_dirs" || eval "mkdir $as_dirs"
30474 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30475 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30476 { (exit 1); exit 1; }; }; }
30477 # echo "creating $dirpart/$file"
30478 echo '# dummy' > "$dirpart/$file"
30487 { (exit 0); exit 0; }
30489 chmod +x $CONFIG_STATUS
30490 ac_clean_files=$ac_clean_files_save
30493 # configure is writing to config.log, and then calls config.status.
30494 # config.status does its own redirection, appending to config.log.
30495 # Unfortunately, on DOS this fails, as config.log is still kept open
30496 # by configure, so config.status won't be able to write to it; its
30497 # output is simply discarded. So we exec the FD to /dev/null,
30498 # effectively closing config.log, so it can be properly (re)opened and
30499 # appended to by config.status. When coming back to configure, we
30500 # need to make the FD available again.
30501 if test "$no_create" != yes; then
30503 ac_config_status_args=
30504 test "$silent" = yes &&
30505 ac_config_status_args="$ac_config_status_args --quiet"
30507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30510 # would make configure fail if this is the last instruction.
30511 $ac_cs_success || { (exit 1); exit 1; }