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
921 ac_precious_vars='build_alias
943 # Initialize some variables set by options.
945 ac_init_version=false
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name=s,x,x,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980 infodir='${datarootdir}/info'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1031 -datadir | --datadir | --datadi | --datad)
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1043 -disable-* | --disable-*)
1044 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1069 eval enable_$ac_feature=\$ac_optarg ;;
1071 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073 | --exec | --exe | --ex)
1074 ac_prev=exec_prefix ;;
1075 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077 | --exec=* | --exe=* | --ex=*)
1078 exec_prefix=$ac_optarg ;;
1080 -gas | --gas | --ga | --g)
1081 # Obsolete; use --with-gas.
1084 -help | --help | --hel | --he | -h)
1085 ac_init_help=long ;;
1086 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087 ac_init_help=recursive ;;
1088 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089 ac_init_help=short ;;
1091 -host | --host | --hos | --ho)
1092 ac_prev=host_alias ;;
1093 -host=* | --host=* | --hos=* | --ho=*)
1094 host_alias=$ac_optarg ;;
1096 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100 htmldir=$ac_optarg ;;
1102 -includedir | --includedir | --includedi | --included | --include \
1103 | --includ | --inclu | --incl | --inc)
1104 ac_prev=includedir ;;
1105 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106 | --includ=* | --inclu=* | --incl=* | --inc=*)
1107 includedir=$ac_optarg ;;
1109 -infodir | --infodir | --infodi | --infod | --info | --inf)
1111 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112 infodir=$ac_optarg ;;
1114 -libdir | --libdir | --libdi | --libd)
1116 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117 libdir=$ac_optarg ;;
1119 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120 | --libexe | --libex | --libe)
1121 ac_prev=libexecdir ;;
1122 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123 | --libexe=* | --libex=* | --libe=*)
1124 libexecdir=$ac_optarg ;;
1126 -localedir | --localedir | --localedi | --localed | --locale)
1127 ac_prev=localedir ;;
1128 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129 localedir=$ac_optarg ;;
1131 -localstatedir | --localstatedir | --localstatedi | --localstated \
1132 | --localstate | --localstat | --localsta | --localst | --locals)
1133 ac_prev=localstatedir ;;
1134 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136 localstatedir=$ac_optarg ;;
1138 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141 mandir=$ac_optarg ;;
1143 -nfp | --nfp | --nf)
1144 # Obsolete; use --without-fp.
1147 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148 | --no-cr | --no-c | -n)
1151 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157 | --oldin | --oldi | --old | --ol | --o)
1158 ac_prev=oldincludedir ;;
1159 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162 oldincludedir=$ac_optarg ;;
1164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167 prefix=$ac_optarg ;;
1169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170 | --program-pre | --program-pr | --program-p)
1171 ac_prev=program_prefix ;;
1172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174 program_prefix=$ac_optarg ;;
1176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177 | --program-suf | --program-su | --program-s)
1178 ac_prev=program_suffix ;;
1179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181 program_suffix=$ac_optarg ;;
1183 -program-transform-name | --program-transform-name \
1184 | --program-transform-nam | --program-transform-na \
1185 | --program-transform-n | --program-transform- \
1186 | --program-transform | --program-transfor \
1187 | --program-transfo | --program-transf \
1188 | --program-trans | --program-tran \
1189 | --progr-tra | --program-tr | --program-t)
1190 ac_prev=program_transform_name ;;
1191 -program-transform-name=* | --program-transform-name=* \
1192 | --program-transform-nam=* | --program-transform-na=* \
1193 | --program-transform-n=* | --program-transform-=* \
1194 | --program-transform=* | --program-transfor=* \
1195 | --program-transfo=* | --program-transf=* \
1196 | --program-trans=* | --program-tran=* \
1197 | --progr-tra=* | --program-tr=* | --program-t=*)
1198 program_transform_name=$ac_optarg ;;
1200 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203 pdfdir=$ac_optarg ;;
1205 -psdir | --psdir | --psdi | --psd | --ps)
1207 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1214 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218 sbindir=$ac_optarg ;;
1220 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222 | --sharedst | --shareds | --shared | --share | --shar \
1224 ac_prev=sharedstatedir ;;
1225 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229 sharedstatedir=$ac_optarg ;;
1231 -site | --site | --sit)
1233 -site=* | --site=* | --sit=*)
1236 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239 srcdir=$ac_optarg ;;
1241 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242 | --syscon | --sysco | --sysc | --sys | --sy)
1243 ac_prev=sysconfdir ;;
1244 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246 sysconfdir=$ac_optarg ;;
1248 -target | --target | --targe | --targ | --tar | --ta | --t)
1249 ac_prev=target_alias ;;
1250 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251 target_alias=$ac_optarg ;;
1253 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 -version | --version | --versio | --versi | --vers | -V)
1257 ac_init_version=: ;;
1260 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_$ac_package=\$ac_optarg ;;
1268 -without-* | --without-*)
1269 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275 eval with_$ac_package=no ;;
1278 # Obsolete; use --with-x.
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286 x_includes=$ac_optarg ;;
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293 x_libraries=$ac_optarg ;;
1295 -*) { echo "$as_me: error: unrecognized option: $ac_option
1296 Try \`$0 --help' for more information." >&2
1297 { (exit 1); exit 1; }; }
1301 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1304 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1305 { (exit 1); exit 1; }; }
1306 eval $ac_envvar=\$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320 if test -n "$ac_prev"; then
1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322 { echo "$as_me: error: missing argument to $ac_option" >&2
1323 { (exit 1); exit 1; }; }
1326 # Be sure to have absolute directory names.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1332 eval ac_val=\$$ac_var
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1338 { (exit 1); exit 1; }; }
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1346 target=$target_alias
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1353 If a cross compiler is detected then cross compile mode will be used." >&2
1354 elif test "x$build_alias" != "x$host_alias"; then
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 { echo "$as_me: error: Working directory cannot be determined" >&2
1369 { (exit 1); exit 1; }; }
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 { echo "$as_me: error: pwd does not report name of working directory" >&2
1372 { (exit 1); exit 1; }; }
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$0" ||
1380 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$0" : 'X\(//\)[^/]' \| \
1382 X"$0" : 'X\(//\)$' \| \
1383 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1407 ac_srcdir_defaulted=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1412 { (exit 1); exit 1; }; }
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1417 { (exit 1); exit 1; }; }
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 # Report the --help message.
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1443 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1450 Defaults for the options are specified in brackets.
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1474 For better control, use the options below.
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
1501 --program-prefix=PREFIX prepend PREFIX to installed program names
1502 --program-suffix=SUFFIX append SUFFIX to installed program names
1503 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --enable-nfsv3 enable support for NFSv3 @<:@default=yes@:>@
1521 --enable-nfsv4 enable support for NFSv4 @<:@default=yes@:>@
1522 --enable-gss enable support for rpcsec_gss @<:@default=yes@:>@
1523 --enable-kprefix install progs as rpc.knfsd etc
1524 --enable-secure-statd Only lockd can use statd (security)
1525 --enable-rquotad enable rquotad @<:@default=yes@:>@
1526 --enable-mount Create mount.nfs and don't use the util-linux
1527 mount(8) functionality. @<:@default=no@:>@
1528 --disable-dependency-tracking speeds up one-time build
1529 --enable-dependency-tracking do not reject slow dependency extractors
1530 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1531 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1532 --enable-fast-install@<:@=PKGS@:>@
1533 optimize for fast installation @<:@default=yes@:>@
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-release=XXX set release to XXX [1]
1540 --with-statedir=/foo use state dir /foo /var/lib/nfs
1541 --with-statduser=rpcuser
1542 statd to run under @<:@rpcuser or nobody@:>@
1543 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1544 (optionally in PATH)
1545 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1546 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1548 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1549 --with-krb5=DIR use Kerberos v5 installation in DIR
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1562 CXXCPP C++ preprocessor
1563 F77 Fortran 77 compiler command
1564 FFLAGS Fortran 77 compiler flags
1565 PKG_CONFIG path to pkg-config utility
1567 C compiler flags for RPCSECGSS, overriding pkg-config
1569 linker flags for RPCSECGSS, overriding pkg-config
1571 C compiler flags for GSSAPI, overriding pkg-config
1572 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1577 Report bugs to <nfs@lists.sf.net>.
1582 if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" || continue
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1605 .) # We are building in place.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1629 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1638 linux nfs-utils configure 1.0.10
1639 generated by GNU Autoconf 2.61
1641 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1642 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1643 This configure script is free software; the Free Software Foundation
1644 gives unlimited permission to copy, distribute and modify it.
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1652 It was created by linux nfs-utils $as_me 1.0.10, which was
1653 generated by GNU Autoconf 2.61. Invocation command line was
1661 @%:@@%:@ --------- @%:@@%:@
1662 @%:@@%:@ Platform. @%:@@%:@
1663 @%:@@%:@ --------- @%:@@%:@
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1674 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1675 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1678 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1679 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1680 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 echo "PATH: $as_dir"
1698 @%:@@%:@ ----------- @%:@@%:@
1699 @%:@@%:@ Core tests. @%:@@%:@
1700 @%:@@%:@ ----------- @%:@@%:@
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_must_keep_next=false
1719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721 | -silent | --silent | --silen | --sile | --sil)
1724 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730 if test $ac_must_keep_next = true; then
1731 ac_must_keep_next=false # Got value, back to normal.
1734 *=* | --config-cache | -C | -disable-* | --disable-* \
1735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737 | -with-* | --with-* | -without-* | --without-* | --x)
1738 case "$ac_configure_args0 " in
1739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742 -* ) ac_must_keep_next=true ;;
1745 ac_configure_args="$ac_configure_args '$ac_arg'"
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log. We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759 # Save into config.log some information that might help in debugging.
1764 @%:@@%:@ ---------------- @%:@@%:@
1765 @%:@@%:@ Cache variables. @%:@@%:@
1766 @%:@@%:@ ---------------- @%:@@%:@
1769 # The following way of writing the cache mishandles newlines in values,
1771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772 eval ac_val=\$$ac_var
1776 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1780 _ | IFS | as_nl) ;; #(
1781 *) $as_unset $ac_var ;;
1786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787 *${as_nl}ac_space=\ *)
1789 "s/'\''/'\''\\\\'\'''\''/g;
1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1801 @%:@@%:@ ----------------- @%:@@%:@
1802 @%:@@%:@ Output variables. @%:@@%:@
1803 @%:@@%:@ ----------------- @%:@@%:@
1806 for ac_var in $ac_subst_vars
1808 eval ac_val=\$$ac_var
1810 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 echo "$ac_var='\''$ac_val'\''"
1816 if test -n "$ac_subst_files"; then
1818 @%:@@%:@ ------------------- @%:@@%:@
1819 @%:@@%:@ File substitutions. @%:@@%:@
1820 @%:@@%:@ ------------------- @%:@@%:@
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 echo "$ac_var='\''$ac_val'\''"
1834 if test -s confdefs.h; then
1836 @%:@@%:@ ----------- @%:@@%:@
1837 @%:@@%:@ confdefs.h. @%:@@%:@
1838 @%:@@%:@ ----------- @%:@@%:@
1844 test "$ac_signal" != 0 &&
1845 echo "$as_me: caught signal $ac_signal"
1846 echo "$as_me: exit $exit_status"
1848 rm -f core *.core core.conftest.* &&
1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1852 for ac_signal in 1 2 13 15; do
1853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1858 rm -f -r conftest* confdefs.h
1860 # Predefined preprocessor variables.
1862 cat >>confdefs.h <<_ACEOF
1863 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1867 cat >>confdefs.h <<_ACEOF
1868 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872 cat >>confdefs.h <<_ACEOF
1873 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1877 cat >>confdefs.h <<_ACEOF
1878 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1882 cat >>confdefs.h <<_ACEOF
1883 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887 # Let the site file select an alternate cache file if it wants to.
1888 # Prefer explicitly selected file to automatically selected ones.
1889 if test -n "$CONFIG_SITE"; then
1890 set x "$CONFIG_SITE"
1891 elif test "x$prefix" != xNONE; then
1892 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 set x "$ac_default_prefix/share/config.site" \
1895 "$ac_default_prefix/etc/config.site"
1900 if test -r "$ac_site_file"; then
1901 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 echo "$as_me: loading site script $ac_site_file" >&6;}
1903 sed 's/^/| /' "$ac_site_file" >&5
1908 if test -r "$cache_file"; then
1909 # Some versions of bash will fail to source /dev/null (special
1910 # files actually), so we avoid doing that.
1911 if test -f "$cache_file"; then
1912 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 echo "$as_me: loading cache $cache_file" >&6;}
1915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916 *) . "./$cache_file";;
1920 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 echo "$as_me: creating cache $cache_file" >&6;}
1925 # Check that the precious variables saved in the cache have kept the same
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930 eval ac_new_set=\$ac_env_${ac_var}_set
1931 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932 eval ac_new_val=\$ac_env_${ac_var}_value
1933 case $ac_old_set,$ac_new_set in
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1944 if test "x$ac_old_val" != "x$ac_new_val"; then
1945 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1948 echo "$as_me: former value: $ac_old_val" >&2;}
1949 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1950 echo "$as_me: current value: $ac_new_val" >&2;}
1951 ac_cache_corrupted=:
1954 # Pass precious variables to config.status.
1955 if test "$ac_new_set" = set; then
1957 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 *) ac_arg=$ac_var=$ac_new_val ;;
1960 case " $ac_configure_args " in
1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1962 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966 if $ac_cache_corrupted; then
1967 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971 { (exit 1); exit 1; }; }
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2007 if test -f "$ac_dir/install-sh"; then
2009 ac_install_sh="$ac_aux_dir/install-sh -c"
2011 elif test -f "$ac_dir/install.sh"; then
2013 ac_install_sh="$ac_aux_dir/install.sh -c"
2015 elif test -f "$ac_dir/shtool"; then
2017 ac_install_sh="$ac_aux_dir/shtool install -c"
2021 if test -z "$ac_aux_dir"; then
2022 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2023 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2024 { (exit 1); exit 1; }; }
2027 # These three variables are undocumented and unsupported,
2028 # and are intended to be withdrawn in a future Autoconf release.
2029 # They can cause serious problems if a builder's source tree is in a directory
2030 # whose full name contains unusual characters.
2031 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2032 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2033 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2036 # Make sure we can run config.sub.
2037 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2038 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2039 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2040 { (exit 1); exit 1; }; }
2042 { echo "$as_me:$LINENO: checking build system type" >&5
2043 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2044 if test "${ac_cv_build+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 ac_build_alias=$build_alias
2048 test "x$ac_build_alias" = x &&
2049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2050 test "x$ac_build_alias" = x &&
2051 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2052 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2053 { (exit 1); exit 1; }; }
2054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2055 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2056 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2057 { (exit 1); exit 1; }; }
2060 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2061 echo "${ECHO_T}$ac_cv_build" >&6; }
2062 case $ac_cv_build in
2064 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2065 echo "$as_me: error: invalid value of canonical build" >&2;}
2066 { (exit 1); exit 1; }; };;
2069 ac_save_IFS=$IFS; IFS='-'
2075 # Remember, the first character of IFS is used to create $*,
2076 # except with old shells:
2079 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2082 { echo "$as_me:$LINENO: checking host system type" >&5
2083 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2084 if test "${ac_cv_host+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test "x$host_alias" = x; then
2088 ac_cv_host=$ac_cv_build
2090 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2091 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2092 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2093 { (exit 1); exit 1; }; }
2097 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2098 echo "${ECHO_T}$ac_cv_host" >&6; }
2101 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2102 echo "$as_me: error: invalid value of canonical host" >&2;}
2103 { (exit 1); exit 1; }; };;
2106 ac_save_IFS=$IFS; IFS='-'
2112 # Remember, the first character of IFS is used to create $*,
2113 # except with old shells:
2116 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2121 am__api_version="1.8"
2122 # Find a good install program. We prefer a C program (faster),
2123 # so one script is as good as another. But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 # Account for people who put trailing slashes in PATH elements.
2148 ./ | .// | /cC/* | \
2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153 # OSF1 and SCO ODT 3.0 have their own names for install.
2154 # Don't use installbsd from OSF since it installs stuff as root
2156 for ac_prog in ginstall scoinst install; do
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159 if test $ac_prog = install &&
2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # AIX install. It has an incompatible calling convention.
2163 elif test $ac_prog = install &&
2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # program-specific install script used by HP pwplus--don't use.
2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181 if test "${ac_cv_path_install+set}" = set; then
2182 INSTALL=$ac_cv_path_install
2184 # As a last resort, use the slow shell script. Don't cache a
2185 # value for INSTALL within a source directory, because that will
2186 # break other packages using the cache if that directory is
2187 # removed, or if the value is a relative name.
2188 INSTALL=$ac_install_sh
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments. Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2213 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214 if test "$*" = "X"; then
2216 set X `ls -t $srcdir/configure conftest.file`
2219 if test "$*" != "X $srcdir/configure conftest.file" \
2220 && test "$*" != "X conftest.file $srcdir/configure"; then
2222 # If neither matched, then we have a broken ls. This can happen
2223 # if, for instance, CONFIG_SHELL is bash and it inherits a
2224 # broken ls alias from the environment. This has actually
2225 # happened. Such a system could not be considered "sane".
2226 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2229 alias in your environment" >&2;}
2230 { (exit 1); exit 1; }; }
2233 test "$2" = conftest.file
2239 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243 { (exit 1); exit 1; }; }
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $. echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266 am_missing_run="$MISSING --run "
2269 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2273 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2274 # Keeping the `.' argument allows $(mkdir_p) to be used without
2275 # argument. Indeed, we sometimes output rules like
2276 # $(mkdir_p) $(somedir)
2277 # where $(somedir) is conditionally defined.
2278 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2279 # expensive solution, as it forces Make to start a sub-shell.)
2280 mkdir_p='mkdir -p -- .'
2282 # On NextStep and OpenStep, the `mkdir' command does not
2283 # recognize any option. It will interpret all options as
2284 # directories to create, and then abort because `.' already
2286 for d in ./-p ./--version;
2288 test -d $d && rmdir $d
2290 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2291 if test -f "$ac_aux_dir/mkinstalldirs"; then
2292 mkdir_p='$(mkinstalldirs)'
2294 mkdir_p='$(install_sh) -d'
2298 for ac_prog in gawk mawk nawk awk
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_prog_AWK+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test -n "$AWK"; then
2308 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317 ac_cv_prog_AWK="$ac_prog"
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 if test -n "$AWK"; then
2329 { echo "$as_me:$LINENO: result: $AWK" >&5
2330 echo "${ECHO_T}$AWK" >&6; }
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2337 test -n "$AWK" && break
2340 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 cat >conftest.make <<\_ACEOF
2349 @echo '@@@%%%=$(MAKE)=@@@%%%'
2351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354 eval ac_cv_prog_make_${ac_make}_set=yes;;
2356 eval ac_cv_prog_make_${ac_make}_set=no;;
2360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361 { echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 SET_MAKE="MAKE=${MAKE-make}"
2370 rm -rf .tst 2>/dev/null
2371 mkdir .tst 2>/dev/null
2372 if test -d .tst; then
2377 rmdir .tst 2>/dev/null
2379 # test to see if srcdir already configured
2380 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2381 test -f $srcdir/config.status; then
2382 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384 { (exit 1); exit 1; }; }
2387 # test whether we have cygpath
2388 if test -z "$CYGPATH_W"; then
2389 if (cygpath --version) >/dev/null 2>/dev/null; then
2390 CYGPATH_W='cygpath -w'
2397 # Define the identity of the package.
2402 cat >>confdefs.h <<_ACEOF
2403 @%:@define PACKAGE "$PACKAGE"
2407 cat >>confdefs.h <<_ACEOF
2408 @%:@define VERSION "$VERSION"
2411 # Some tools Automake needs.
2413 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2416 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2419 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2422 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2425 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2428 AMTAR=${AMTAR-"${am_missing_run}tar"}
2430 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'. However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$STRIP"; then
2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467 { echo "$as_me:$LINENO: result: $STRIP" >&5
2468 echo "${ECHO_T}$STRIP" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2476 if test -z "$ac_cv_prog_STRIP"; then
2478 # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$ac_ct_STRIP"; then
2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_STRIP="strip"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2514 if test "x$ac_ct_STRIP" = x; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2530 STRIP="$ac_cv_prog_STRIP"
2534 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2536 # We need awk for the "check" target. The system "awk" is bad on
2545 # Check whether --with-release was given.
2546 if test "${with_release+set}" = set; then
2547 withval=$with_release; RELEASE=$withval
2554 # Check whether --with-statedir was given.
2555 if test "${with_statedir+set}" = set; then
2556 withval=$with_statedir; statedir=$withval
2558 statedir=/var/lib/nfs
2563 # Check whether --with-statduser was given.
2564 if test "${with_statduser+set}" = set; then
2565 withval=$with_statduser; statduser=$withval
2567 if test "x$cross_compiling" = "xno"; then
2568 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2579 # Check whether --enable-nfsv3 was given.
2580 if test "${enable_nfsv3+set}" = set; then
2581 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2586 if test "$enable_nfsv3" = yes; then
2588 cat >>confdefs.h <<\_ACEOF
2589 @%:@define NFS3_SUPPORTED 1
2596 # Check whether --enable-nfsv4 was given.
2597 if test "${enable_nfsv4+set}" = set; then
2598 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2603 if test "$enable_nfsv4" = yes; then
2605 cat >>confdefs.h <<\_ACEOF
2606 @%:@define NFS4_SUPPORTED 1
2618 if test "$enable_nfsv4" = "yes"; then
2620 CONFIG_NFSV4_FALSE='#'
2622 CONFIG_NFSV4_TRUE='#'
2626 # Check whether --enable-gss was given.
2627 if test "${enable_gss+set}" = set; then
2628 enableval=$enable_gss; enable_gss=$enableval
2633 if test "$enable_gss" = yes; then
2635 cat >>confdefs.h <<\_ACEOF
2636 @%:@define GSS_SUPPORTED 1
2651 if test "$enable_gss" = "yes"; then
2653 CONFIG_GSS_FALSE='#'
2659 # Check whether --enable-kprefix was given.
2660 if test "${enable_kprefix+set}" = set; then
2661 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2667 # Check whether --enable-secure-statd was given.
2668 if test "${enable_secure_statd+set}" = set; then
2669 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2674 if test "$secure_statd" = yes; then
2676 cat >>confdefs.h <<\_ACEOF
2677 @%:@define RESTRICTED_STATD 1
2682 # Check whether --enable-rquotad was given.
2683 if test "${enable_rquotad+set}" = set; then
2684 enableval=$enable_rquotad; enable_rquotad=$enableval
2689 if test "$enable_rquotad" = yes; then
2696 if test "$enable_rquotad" = "yes"; then
2697 CONFIG_RQUOTAD_TRUE=
2698 CONFIG_RQUOTAD_FALSE='#'
2700 CONFIG_RQUOTAD_TRUE='#'
2701 CONFIG_RQUOTAD_FALSE=
2705 # Check whether --enable-mount was given.
2706 if test "${enable_mount+set}" = set; then
2707 enableval=$enable_mount; enable_mount=$enableval
2714 if test "$enable_mount" = "yes"; then
2716 CONFIG_MOUNT_FALSE='#'
2718 CONFIG_MOUNT_TRUE='#'
2723 # Check whether user wants TCP wrappers support
2724 DEPDIR="${am__leading_dot}deps"
2726 ac_config_commands="$ac_config_commands depfiles"
2729 am_make=${MAKE-make}
2730 cat > confinc << 'END'
2735 # If we don't find an include directive, just comment out the code.
2736 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2737 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2741 # First try GNU make style include.
2742 echo "include confinc" > confmf
2743 # We grep out `Entering directory' and `Leaving directory'
2744 # messages which can occur if `w' ends up in MAKEFLAGS.
2745 # In particular we don't look at `^make:' because GNU make might
2746 # be invoked under some other name (usually "gmake"), in which
2747 # case it prints its new name instead of `make'.
2748 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2753 # Now try BSD make style include.
2754 if test "$am__include" = "#"; then
2755 echo '.include "confinc"' > confmf
2756 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2757 am__include=.include
2764 { echo "$as_me:$LINENO: result: $_am_result" >&5
2765 echo "${ECHO_T}$_am_result" >&6; }
2766 rm -f confinc confmf
2768 # Check whether --enable-dependency-tracking was given.
2769 if test "${enable_dependency_tracking+set}" = set; then
2770 enableval=$enable_dependency_tracking;
2773 if test "x$enable_dependency_tracking" != xno; then
2774 am_depcomp="$ac_aux_dir/depcomp"
2779 if test "x$enable_dependency_tracking" != xno; then
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CC"; then
2824 { echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6; }
2827 { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2833 if test -z "$ac_cv_prog_CC"; then
2835 # Extract the first word of "gcc", so it can be a program name with args.
2836 set dummy gcc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_CC="gcc"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865 echo "${ECHO_T}$ac_ct_CC" >&6; }
2867 { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2871 if test "x$ac_ct_CC" = x; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet. If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&5
2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882 ac_tool_warned=yes ;;
2890 if test -z "$CC"; then
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC="${ac_tool_prefix}cc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CC"; then
2921 { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2931 if test -z "$CC"; then
2932 # Extract the first word of "cc", so it can be a program name with args.
2933 set dummy cc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951 ac_prog_rejected=yes
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test $ac_prog_rejected = yes; then
2963 # We found a bogon in the path, so make sure we never use it.
2964 set dummy $ac_cv_prog_CC
2966 if test $@%:@ != 0; then
2967 # We chose a different compiler from the bogus one.
2968 # However, it has the same basename, so the bogon will be chosen
2969 # first if we set CC to just the basename; use the full file name.
2971 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977 if test -n "$CC"; then
2978 { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2987 if test -z "$CC"; then
2988 if test -n "$ac_tool_prefix"; then
2989 for ac_prog in cl.exe
2991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_CC+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 if test -n "$CC"; then
3020 { echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6; }
3023 { echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6; }
3028 test -n "$CC" && break
3031 if test -z "$CC"; then
3033 for ac_prog in cl.exe
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 if test -n "$ac_ct_CC"; then
3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_ac_ct_CC="$ac_prog"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3065 echo "${ECHO_T}$ac_ct_CC" >&6; }
3067 { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3072 test -n "$ac_ct_CC" && break
3075 if test "x$ac_ct_CC" = x; then
3078 case $cross_compiling:$ac_tool_warned in
3080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3081 whose name does not start with the host triplet. If you think this
3082 configuration is useful to you, please write to autoconf@gnu.org." >&5
3083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3084 whose name does not start with the host triplet. If you think this
3085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3086 ac_tool_warned=yes ;;
3095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3101 # Provide some information about the compiler.
3102 echo "$as_me:$LINENO: checking for C compiler version" >&5
3103 ac_compiler=`set X $ac_compile; echo $2`
3104 { (ac_try="$ac_compiler --version >&5"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compiler --version >&5") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }
3114 { (ac_try="$ac_compiler -v >&5"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compiler -v >&5") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3124 { (ac_try="$ac_compiler -V >&5"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compiler -V >&5") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3150 ac_clean_files_save=$ac_clean_files
3151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3152 # Try to create an executable without -o first, disregard a.out.
3153 # It will help us diagnose broken compilers, and finding out an intuition
3155 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3159 # List of possible output files, starting from the most likely.
3160 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3161 # only as a last resort. b.out is created by i960 compilers.
3162 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3164 # The IRIX 6 linker writes into existing files which may not be
3165 # executable, retaining their permissions. Remove them first so a
3166 # subsequent execution test works.
3168 for ac_file in $ac_files
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3172 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3177 if { (ac_try="$ac_link_default"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_link_default") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; then
3187 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3192 for ac_file in $ac_files ''
3194 test -f "$ac_file" || continue
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3199 # We found the default executable, but exeext='' is most
3203 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 # We set ac_cv_exeext here because the later test for it is not
3208 # safe: cross compilers may not add the suffix if given an `-o'
3209 # argument, so we may need to know it at that point already.
3210 # Even if this section looks crufty: it has the advantage of
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3223 { echo "$as_me:$LINENO: result: $ac_file" >&5
3224 echo "${ECHO_T}$ac_file" >&6; }
3225 if test -z "$ac_file"; then
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C compiler cannot create executables
3232 See \`config.log' for more details." >&2;}
3233 { (exit 77); exit 77; }; }
3236 ac_exeext=$ac_cv_exeext
3238 # Check that the compiler produces executables we can run. If not, either
3239 # the compiler is broken, or we cross compile.
3240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245 if { ac_try='./$ac_file'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 if test "$cross_compiling" = maybe; then
3260 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." >&2;}
3266 { (exit 1); exit 1; }; }
3270 { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 # Check that the compiler produces executables we can run. If not, either
3276 # the compiler is broken, or we cross compile.
3277 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280 echo "${ECHO_T}$cross_compiling" >&6; }
3282 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284 if { (ac_try="$ac_link"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_link") 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; then
3294 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3298 for ac_file in conftest.exe conftest conftest.*; do
3299 test -f "$ac_file" || continue
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." >&2;}
3312 { (exit 1); exit 1; }; }
3315 rm -f conftest$ac_cv_exeext
3316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324 if test "${ac_cv_objext+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3342 rm -f conftest.o conftest.obj
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; then
3353 for ac_file in conftest.o conftest.obj conftest.*; do
3354 test -f "$ac_file" || continue;
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375 echo "${ECHO_T}$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_compile") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } && {
3415 test -z "$ac_c_werror_flag" ||
3416 test ! -s conftest.err
3417 } && test -s conftest.$ac_objext; then
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3432 GCC=`test $ac_compiler_gnu = yes && echo yes`
3433 ac_test_CFLAGS=${CFLAGS+set}
3434 ac_save_CFLAGS=$CFLAGS
3435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_cc_g+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 ac_save_c_werror_flag=$ac_c_werror_flag
3441 ac_c_werror_flag=yes
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3459 rm -f conftest.$ac_objext
3460 if { (ac_try="$ac_compile"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && {
3473 test -z "$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 } && test -s conftest.$ac_objext; then
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_c_werror_flag=$ac_save_c_werror_flag
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3570 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3581 if test "$GCC" = yes; then
3587 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3588 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 ac_cv_prog_cc_c89=no
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3618 s = g (p, va_arg (v,int));
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3624 function prototypes and stuff, but not '\xHH' hex character constants.
3625 These don't provoke an error unfortunately, instead are silently treated
3626 as 'x'. The following induces an error, until -std is added to get
3627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3628 array size at least. It's necessary to write '\x00'==0 to get something
3629 that's true only with -std. */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633 inside strings and character constants. */
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3654 CC="$ac_save_CC $ac_arg"
3655 rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_compile") 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } && {
3669 test -z "$ac_c_werror_flag" ||
3670 test ! -s conftest.err
3671 } && test -s conftest.$ac_objext; then
3672 ac_cv_prog_cc_c89=$ac_arg
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3683 rm -f conftest.$ac_ext
3688 case "x$ac_cv_prog_cc_c89" in
3690 { echo "$as_me:$LINENO: result: none needed" >&5
3691 echo "${ECHO_T}none needed" >&6; } ;;
3693 { echo "$as_me:$LINENO: result: unsupported" >&5
3694 echo "${ECHO_T}unsupported" >&6; } ;;
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3698 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 depcc="$CC" am_compiler_list=
3710 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716 # We make a subdir and do the tests there. Otherwise we can end up
3717 # making bogus files that we don't know about and never remove. For
3718 # instance it was reported that on HP-UX the gcc test will end up
3719 # making a dummy file named `D' -- because `-MD' means `put the output
3722 # Copy depcomp to subdir because otherwise we won't find it if we're
3723 # using a relative directory.
3724 cp "$am_depcomp" conftest.dir
3726 # We will build objects and dependencies in a subdirectory because
3727 # it helps to detect inapplicable dependency modes. For instance
3728 # both Tru64's cc and ICC support -MD to output dependencies as a
3729 # side effect of compilation, but ICC will put the dependencies in
3730 # the current directory while Tru64 will put them in the object
3734 am_cv_CC_dependencies_compiler_type=none
3735 if test "$am_compiler_list" = ""; then
3736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3738 for depmode in $am_compiler_list; do
3739 # Setup a source with many dependencies, because some compilers
3740 # like to wrap large dependency lists on column 80 (with \), and
3741 # we should not choose a depcomp mode which is confused by this.
3743 # We need to recreate these files for each test, as the compiler may
3744 # overwrite some of them when testing with obscure command lines.
3745 # This happens at least with the AIX C compiler.
3747 for i in 1 2 3 4 5 6; do
3748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750 # Solaris 8's {/usr,}/bin/sh.
3751 touch sub/conftst$i.h
3753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3757 # after this tag, mechanisms are not by side-effect, so they'll
3758 # only be used when explicitly requested
3759 if test "x$enable_dependency_tracking" = xyes; then
3767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle `-M -o', and we need to detect this.
3770 if depmode=$depmode \
3771 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774 >/dev/null 2>conftest.err &&
3775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778 # icc doesn't choke on unknown options, it will just issue warnings
3779 # or remarks (even with -Werror). So we grep stderr for any message
3780 # that says an option was ignored or not supported.
3781 # When given -MP, icc 7.0 and 7.1 complain thusly:
3782 # icc: Command line warning: ignoring option '-M'; no argument required
3783 # The diagnosis changed in icc 8.0:
3784 # icc: Command line remark: option '-MP' not supported
3785 if (grep 'ignoring option' conftest.err ||
3786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787 am_cv_CC_dependencies_compiler_type=$depmode
3796 am_cv_CC_dependencies_compiler_type=none
3800 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807 test "x$enable_dependency_tracking" != xno \
3808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_FALSE='#'
3812 am__fastdepCC_TRUE='#'
3813 am__fastdepCC_FALSE=
3821 # Check whether --with-tcp-wrappers was given.
3822 if test "${with_tcp_wrappers+set}" = set; then
3823 withval=$with_tcp_wrappers;
3824 if test "x$withval" != "xno" ; then
3826 saved_LDFLAGS="$LDFLAGS"
3827 saved_CPPFLAGS="$CPPFLAGS"
3828 if test -n "${withval}" -a "${withval}" != "yes"; then
3829 if test -d "${withval}/lib"; then
3830 if test -n "${need_dash_r}"; then
3831 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3833 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3836 if test -n "${need_dash_r}"; then
3837 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3839 LDFLAGS="-L${withval} ${LDFLAGS}"
3842 if test -d "${withval}/include"; then
3843 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3845 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3849 LIBS="$LIBWRAP $LIBS"
3850 { echo "$as_me:$LINENO: checking for libwrap" >&5
3851 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3860 int deny_severity = 0, allow_severity = 0;
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (ac_try="$ac_link"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_link") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest$ac_exeext &&
3887 $as_test_x conftest$ac_exeext; then
3889 { echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6; }
3893 cat >>confdefs.h <<\_ACEOF
3894 @%:@define LIBWRAP 1
3898 cat >>confdefs.h <<\_ACEOF
3899 @%:@define HAVE_LIBWRAP 1
3903 cat >>confdefs.h <<\_ACEOF
3904 @%:@define HAVE_TCP_WRAPPER 1
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3914 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3915 echo "$as_me: error: *** libwrap missing" >&2;}
3916 { (exit 1); exit 1; }; }
3921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3922 conftest$ac_exeext conftest.$ac_ext
3935 ac_config_headers="$ac_config_headers support/include/config.h"
3938 # Checks for programs.
3940 ac_cpp='$CXXCPP $CPPFLAGS'
3941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3944 if test -z "$CXX"; then
3945 if test -n "$CCC"; then
3948 if test -n "$ac_tool_prefix"; then
3949 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3955 if test "${ac_cv_prog_CXX+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$CXX"; then
3959 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 if test -n "$CXX"; then
3980 { echo "$as_me:$LINENO: result: $CXX" >&5
3981 echo "${ECHO_T}$CXX" >&6; }
3983 { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3988 test -n "$CXX" && break
3991 if test -z "$CXX"; then
3993 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test -n "$ac_ct_CXX"; then
4003 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_ac_ct_CXX="$ac_prog"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4023 if test -n "$ac_ct_CXX"; then
4024 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4025 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4032 test -n "$ac_ct_CXX" && break
4035 if test "x$ac_ct_CXX" = x; then
4038 case $cross_compiling:$ac_tool_warned in
4040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4041 whose name does not start with the host triplet. If you think this
4042 configuration is useful to you, please write to autoconf@gnu.org." >&5
4043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4044 whose name does not start with the host triplet. If you think this
4045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4046 ac_tool_warned=yes ;;
4054 # Provide some information about the compiler.
4055 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (ac_try="$ac_compiler --version >&5"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_compiler --version >&5") 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }
4067 { (ac_try="$ac_compiler -v >&5"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compiler -v >&5") 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }
4077 { (ac_try="$ac_compiler -V >&5"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compiler -V >&5") 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }
4088 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4089 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4090 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 cat >conftest.$ac_ext <<_ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_cxx_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4140 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4141 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4142 GXX=`test $ac_compiler_gnu = yes && echo yes`
4143 ac_test_CXXFLAGS=${CXXFLAGS+set}
4144 ac_save_CXXFLAGS=$CXXFLAGS
4145 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4146 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_cxx_g+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4151 ac_cxx_werror_flag=yes
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && {
4183 test -z "$ac_cxx_werror_flag" ||
4184 test ! -s conftest.err
4185 } && test -s conftest.$ac_objext; then
4186 ac_cv_prog_cxx_g=yes
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && {
4221 test -z "$ac_cxx_werror_flag" ||
4222 test ! -s conftest.err
4223 } && test -s conftest.$ac_objext; then
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4246 rm -f conftest.$ac_objext
4247 if { (ac_try="$ac_compile"
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253 (eval "$ac_compile") 2>conftest.er1
4255 grep -v '^ *+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } && {
4260 test -z "$ac_cxx_werror_flag" ||
4261 test ! -s conftest.err
4262 } && test -s conftest.$ac_objext; then
4263 ac_cv_prog_cxx_g=yes
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4280 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4281 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4282 if test "$ac_test_CXXFLAGS" = set; then
4283 CXXFLAGS=$ac_save_CXXFLAGS
4284 elif test $ac_cv_prog_cxx_g = yes; then
4285 if test "$GXX" = yes; then
4291 if test "$GXX" = yes; then
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 depcc="$CXX" am_compiler_list=
4305 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4306 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4307 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4311 # We make a subdir and do the tests there. Otherwise we can end up
4312 # making bogus files that we don't know about and never remove. For
4313 # instance it was reported that on HP-UX the gcc test will end up
4314 # making a dummy file named `D' -- because `-MD' means `put the output
4317 # Copy depcomp to subdir because otherwise we won't find it if we're
4318 # using a relative directory.
4319 cp "$am_depcomp" conftest.dir
4321 # We will build objects and dependencies in a subdirectory because
4322 # it helps to detect inapplicable dependency modes. For instance
4323 # both Tru64's cc and ICC support -MD to output dependencies as a
4324 # side effect of compilation, but ICC will put the dependencies in
4325 # the current directory while Tru64 will put them in the object
4329 am_cv_CXX_dependencies_compiler_type=none
4330 if test "$am_compiler_list" = ""; then
4331 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4333 for depmode in $am_compiler_list; do
4334 # Setup a source with many dependencies, because some compilers
4335 # like to wrap large dependency lists on column 80 (with \), and
4336 # we should not choose a depcomp mode which is confused by this.
4338 # We need to recreate these files for each test, as the compiler may
4339 # overwrite some of them when testing with obscure command lines.
4340 # This happens at least with the AIX C compiler.
4342 for i in 1 2 3 4 5 6; do
4343 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4344 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4345 # Solaris 8's {/usr,}/bin/sh.
4346 touch sub/conftst$i.h
4348 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4352 # after this tag, mechanisms are not by side-effect, so they'll
4353 # only be used when explicitly requested
4354 if test "x$enable_dependency_tracking" = xyes; then
4362 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4363 # mode. It turns out that the SunPro C++ compiler does not properly
4364 # handle `-M -o', and we need to detect this.
4365 if depmode=$depmode \
4366 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4367 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4368 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4369 >/dev/null 2>conftest.err &&
4370 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4371 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4372 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4373 # icc doesn't choke on unknown options, it will just issue warnings
4374 # or remarks (even with -Werror). So we grep stderr for any message
4375 # that says an option was ignored or not supported.
4376 # When given -MP, icc 7.0 and 7.1 complain thusly:
4377 # icc: Command line warning: ignoring option '-M'; no argument required
4378 # The diagnosis changed in icc 8.0:
4379 # icc: Command line remark: option '-MP' not supported
4380 if (grep 'ignoring option' conftest.err ||
4381 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4382 am_cv_CXX_dependencies_compiler_type=$depmode
4391 am_cv_CXX_dependencies_compiler_type=none
4395 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4396 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4397 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4402 test "x$enable_dependency_tracking" != xno \
4403 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4404 am__fastdepCXX_TRUE=
4405 am__fastdepCXX_FALSE='#'
4407 am__fastdepCXX_TRUE='#'
4408 am__fastdepCXX_FALSE=
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_CC+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$CC"; then
4426 ac_cv_prog_CC="$CC" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 if test -n "$CC"; then
4447 { echo "$as_me:$LINENO: result: $CC" >&5
4448 echo "${ECHO_T}$CC" >&6; }
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4456 if test -z "$ac_cv_prog_CC"; then
4458 # Extract the first word of "gcc", so it can be a program name with args.
4459 set dummy gcc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CC="gcc"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4488 echo "${ECHO_T}$ac_ct_CC" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4494 if test "x$ac_ct_CC" = x; then
4497 case $cross_compiling:$ac_tool_warned in
4499 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet. If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4513 if test -z "$CC"; then
4514 if test -n "$ac_tool_prefix"; then
4515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4516 set dummy ${ac_tool_prefix}cc; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_prog_CC+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 if test -n "$CC"; then
4523 ac_cv_prog_CC="$CC" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_CC="${ac_tool_prefix}cc"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 if test -n "$CC"; then
4544 { echo "$as_me:$LINENO: result: $CC" >&5
4545 echo "${ECHO_T}$CC" >&6; }
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4554 if test -z "$CC"; then
4555 # Extract the first word of "cc", so it can be a program name with args.
4556 set dummy cc; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_CC+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 if test -n "$CC"; then
4563 ac_cv_prog_CC="$CC" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4574 ac_prog_rejected=yes
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 if test $ac_prog_rejected = yes; then
4586 # We found a bogon in the path, so make sure we never use it.
4587 set dummy $ac_cv_prog_CC
4589 if test $@%:@ != 0; then
4590 # We chose a different compiler from the bogus one.
4591 # However, it has the same basename, so the bogon will be chosen
4592 # first if we set CC to just the basename; use the full file name.
4594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4600 if test -n "$CC"; then
4601 { echo "$as_me:$LINENO: result: $CC" >&5
4602 echo "${ECHO_T}$CC" >&6; }
4604 { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4610 if test -z "$CC"; then
4611 if test -n "$ac_tool_prefix"; then
4612 for ac_prog in cl.exe
4614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_CC+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 if test -n "$CC"; then
4622 ac_cv_prog_CC="$CC" # Let the user override the test.
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 if test -n "$CC"; then
4643 { echo "$as_me:$LINENO: result: $CC" >&5
4644 echo "${ECHO_T}$CC" >&6; }
4646 { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4651 test -n "$CC" && break
4654 if test -z "$CC"; then
4656 for ac_prog in cl.exe
4658 # Extract the first word of "$ac_prog", so it can be a program name with args.
4659 set dummy $ac_prog; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC="$ac_prog"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4688 echo "${ECHO_T}$ac_ct_CC" >&6; }
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4695 test -n "$ac_ct_CC" && break
4698 if test "x$ac_ct_CC" = x; then
4701 case $cross_compiling:$ac_tool_warned in
4703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4704 whose name does not start with the host triplet. If you think this
4705 configuration is useful to you, please write to autoconf@gnu.org." >&5
4706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4707 whose name does not start with the host triplet. If you think this
4708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4709 ac_tool_warned=yes ;;
4718 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4719 See \`config.log' for more details." >&5
4720 echo "$as_me: error: no acceptable C compiler found in \$PATH
4721 See \`config.log' for more details." >&2;}
4722 { (exit 1); exit 1; }; }
4724 # Provide some information about the compiler.
4725 echo "$as_me:$LINENO: checking for C compiler version" >&5
4726 ac_compiler=`set X $ac_compile; echo $2`
4727 { (ac_try="$ac_compiler --version >&5"
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_compiler --version >&5") 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }
4737 { (ac_try="$ac_compiler -v >&5"
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_compiler -v >&5") 2>&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }
4747 { (ac_try="$ac_compiler -V >&5"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_compiler -V >&5") 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }
4758 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4781 rm -f conftest.$ac_objext
4782 if { (ac_try="$ac_compile"
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_compile") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && {
4795 test -z "$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4797 } && test -s conftest.$ac_objext; then
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4810 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4811 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4812 GCC=`test $ac_compiler_gnu = yes && echo yes`
4813 ac_test_CFLAGS=${CFLAGS+set}
4814 ac_save_CFLAGS=$CFLAGS
4815 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4816 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_cc_g+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_save_c_werror_flag=$ac_c_werror_flag
4821 ac_c_werror_flag=yes
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compile") 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && {
4853 test -z "$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 } && test -s conftest.$ac_objext; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4877 rm -f conftest.$ac_objext
4878 if { (ac_try="$ac_compile"
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_compile") 2>conftest.er1
4886 grep -v '^ *+' conftest.er1 >conftest.err
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } && {
4891 test -z "$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 } && test -s conftest.$ac_objext; then
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4899 ac_c_werror_flag=$ac_save_c_werror_flag
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4916 rm -f conftest.$ac_objext
4917 if { (ac_try="$ac_compile"
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_compile") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest.$ac_objext; then
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_c_werror_flag=$ac_save_c_werror_flag
4950 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4951 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4952 if test "$ac_test_CFLAGS" = set; then
4953 CFLAGS=$ac_save_CFLAGS
4954 elif test $ac_cv_prog_cc_g = yes; then
4955 if test "$GCC" = yes; then
4961 if test "$GCC" = yes; then
4967 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4968 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_cc_c89+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_cv_prog_cc_c89=no
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4982 #include <sys/types.h>
4983 #include <sys/stat.h>
4984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4985 struct buf { int x; };
4986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4987 static char *e (p, i)
4993 static char *f (char * (*g) (char **, int), char **p, ...)
4998 s = g (p, va_arg (v,int));
5003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5004 function prototypes and stuff, but not '\xHH' hex character constants.
5005 These don't provoke an error unfortunately, instead are silently treated
5006 as 'x'. The following induces an error, until -std is added to get
5007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5008 array size at least. It's necessary to write '\x00'==0 to get something
5009 that's true only with -std. */
5010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5012 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5013 inside strings and character constants. */
5015 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5017 int test (int i, double x);
5018 struct s1 {int (*f) (int a);};
5019 struct s2 {int (*f) (double a);};
5020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5026 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5032 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5034 CC="$ac_save_CC $ac_arg"
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compile") 2>conftest.er1
5044 grep -v '^ *+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && {
5049 test -z "$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 } && test -s conftest.$ac_objext; then
5052 ac_cv_prog_cc_c89=$ac_arg
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5060 rm -f core conftest.err conftest.$ac_objext
5061 test "x$ac_cv_prog_cc_c89" != "xno" && break
5063 rm -f conftest.$ac_ext
5068 case "x$ac_cv_prog_cc_c89" in
5070 { echo "$as_me:$LINENO: result: none needed" >&5
5071 echo "${ECHO_T}none needed" >&6; } ;;
5073 { echo "$as_me:$LINENO: result: unsupported" >&5
5074 echo "${ECHO_T}unsupported" >&6; } ;;
5076 CC="$CC $ac_cv_prog_cc_c89"
5077 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5078 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 depcc="$CC" am_compiler_list=
5090 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5091 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5092 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5096 # We make a subdir and do the tests there. Otherwise we can end up
5097 # making bogus files that we don't know about and never remove. For
5098 # instance it was reported that on HP-UX the gcc test will end up
5099 # making a dummy file named `D' -- because `-MD' means `put the output
5102 # Copy depcomp to subdir because otherwise we won't find it if we're
5103 # using a relative directory.
5104 cp "$am_depcomp" conftest.dir
5106 # We will build objects and dependencies in a subdirectory because
5107 # it helps to detect inapplicable dependency modes. For instance
5108 # both Tru64's cc and ICC support -MD to output dependencies as a
5109 # side effect of compilation, but ICC will put the dependencies in
5110 # the current directory while Tru64 will put them in the object
5114 am_cv_CC_dependencies_compiler_type=none
5115 if test "$am_compiler_list" = ""; then
5116 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5118 for depmode in $am_compiler_list; do
5119 # Setup a source with many dependencies, because some compilers
5120 # like to wrap large dependency lists on column 80 (with \), and
5121 # we should not choose a depcomp mode which is confused by this.
5123 # We need to recreate these files for each test, as the compiler may
5124 # overwrite some of them when testing with obscure command lines.
5125 # This happens at least with the AIX C compiler.
5127 for i in 1 2 3 4 5 6; do
5128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5129 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5130 # Solaris 8's {/usr,}/bin/sh.
5131 touch sub/conftst$i.h
5133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5137 # after this tag, mechanisms are not by side-effect, so they'll
5138 # only be used when explicitly requested
5139 if test "x$enable_dependency_tracking" = xyes; then
5147 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5148 # mode. It turns out that the SunPro C++ compiler does not properly
5149 # handle `-M -o', and we need to detect this.
5150 if depmode=$depmode \
5151 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5153 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5154 >/dev/null 2>conftest.err &&
5155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5156 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5158 # icc doesn't choke on unknown options, it will just issue warnings
5159 # or remarks (even with -Werror). So we grep stderr for any message
5160 # that says an option was ignored or not supported.
5161 # When given -MP, icc 7.0 and 7.1 complain thusly:
5162 # icc: Command line warning: ignoring option '-M'; no argument required
5163 # The diagnosis changed in icc 8.0:
5164 # icc: Command line remark: option '-MP' not supported
5165 if (grep 'ignoring option' conftest.err ||
5166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5167 am_cv_CC_dependencies_compiler_type=$depmode
5176 am_cv_CC_dependencies_compiler_type=none
5180 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5181 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5182 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5187 test "x$enable_dependency_tracking" != xno \
5188 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5190 am__fastdepCC_FALSE='#'
5192 am__fastdepCC_TRUE='#'
5193 am__fastdepCC_FALSE=
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5204 # On Suns, sometimes $CPP names a directory.
5205 if test -n "$CPP" && test -d "$CPP"; then
5208 if test -z "$CPP"; then
5209 if test "${ac_cv_prog_CPP+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 # Double quotes because CPP needs to be expanded
5213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5216 for ac_c_preproc_warn_flag in '' yes
5218 # Use a header file that comes with gcc, so configuring glibc
5219 # with a fresh cross-compiler works.
5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 # <limits.h> exists even on freestanding compilers.
5222 # On the NeXT, cc -E runs the code through the compiler's parser,
5223 # not just through cpp. "Syntax error" is here to catch this case.
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5231 @%:@ include <limits.h>
5233 @%:@ include <assert.h>
5237 if { (ac_try="$ac_cpp conftest.$ac_ext"
5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 *) ac_try_echo=$ac_try;;
5242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245 grep -v '^ *+' conftest.er1 >conftest.err
5247 cat conftest.err >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); } >/dev/null && {
5250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5251 test ! -s conftest.err
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 # Broken: fails on valid input.
5262 rm -f conftest.err conftest.$ac_ext
5264 # OK, works on sane cases. Now check whether nonexistent headers
5265 # can be detected and how.
5266 cat >conftest.$ac_ext <<_ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 @%:@include <ac_nonexistent.h>
5274 if { (ac_try="$ac_cpp conftest.$ac_ext"
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5282 grep -v '^ *+' conftest.er1 >conftest.err
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } >/dev/null && {
5287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5290 # Broken: success on invalid input.
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5296 # Passes both tests.
5301 rm -f conftest.err conftest.$ac_ext
5304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5305 rm -f conftest.err conftest.$ac_ext
5306 if $ac_preproc_ok; then
5318 { echo "$as_me:$LINENO: result: $CPP" >&5
5319 echo "${ECHO_T}$CPP" >&6; }
5321 for ac_c_preproc_warn_flag in '' yes
5323 # Use a header file that comes with gcc, so configuring glibc
5324 # with a fresh cross-compiler works.
5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 # <limits.h> exists even on freestanding compilers.
5327 # On the NeXT, cc -E runs the code through the compiler's parser,
5328 # not just through cpp. "Syntax error" is here to catch this case.
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5336 @%:@ include <limits.h>
5338 @%:@ include <assert.h>
5342 if { (ac_try="$ac_cpp conftest.$ac_ext"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } >/dev/null && {
5355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5356 test ! -s conftest.err
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 # Broken: fails on valid input.
5367 rm -f conftest.err conftest.$ac_ext
5369 # OK, works on sane cases. Now check whether nonexistent headers
5370 # can be detected and how.
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 @%:@include <ac_nonexistent.h>
5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } >/dev/null && {
5392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5395 # Broken: success on invalid input.
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 # Passes both tests.
5406 rm -f conftest.err conftest.$ac_ext
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok; then
5414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5415 See \`config.log' for more details." >&5
5416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5417 See \`config.log' for more details." >&2;}
5418 { (exit 1); exit 1; }; }
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 # Find a good install program. We prefer a C program (faster),
5428 # so one script is as good as another. But avoid the broken or
5429 # incompatible versions:
5430 # SysV /etc/install, /usr/sbin/install
5431 # SunOS /usr/etc/install
5432 # IRIX /sbin/install
5434 # AmigaOS /C/install, which installs bootblocks on floppy discs
5435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5438 # OS/2's system install, which has a completely different semantic
5439 # ./install, which can be erroneously created by make from ./install.sh.
5440 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5442 if test -z "$INSTALL"; then
5443 if test "${ac_cv_path_install+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir=.
5451 # Account for people who put trailing slashes in PATH elements.
5453 ./ | .// | /cC/* | \
5454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5455 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5458 # OSF1 and SCO ODT 3.0 have their own names for install.
5459 # Don't use installbsd from OSF since it installs stuff as root
5461 for ac_prog in ginstall scoinst install; do
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5464 if test $ac_prog = install &&
5465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5466 # AIX install. It has an incompatible calling convention.
5468 elif test $ac_prog = install &&
5469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5470 # program-specific install script used by HP pwplus--don't use.
5473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5486 if test "${ac_cv_path_install+set}" = set; then
5487 INSTALL=$ac_cv_path_install
5489 # As a last resort, use the slow shell script. Don't cache a
5490 # value for INSTALL within a source directory, because that will
5491 # break other packages using the cache if that directory is
5492 # removed, or if the value is a relative name.
5493 INSTALL=$ac_install_sh
5496 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5497 echo "${ECHO_T}$INSTALL" >&6; }
5499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5500 # It thinks the first close brace ends the variable substitution.
5501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5507 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5510 if test "$LN_S" = "ln -s"; then
5511 { echo "$as_me:$LINENO: result: yes" >&5
5512 echo "${ECHO_T}yes" >&6; }
5514 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5515 echo "${ECHO_T}no, using $LN_S" >&6; }
5518 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5519 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5520 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5521 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 cat >conftest.make <<\_ACEOF
5527 @echo '@@@%%%=$(MAKE)=@@@%%%'
5529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5530 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5532 eval ac_cv_prog_make_${ac_make}_set=yes;;
5534 eval ac_cv_prog_make_${ac_make}_set=no;;
5538 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5539 { echo "$as_me:$LINENO: result: yes" >&5
5540 echo "${ECHO_T}yes" >&6; }
5543 { echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6; }
5545 SET_MAKE="MAKE=${MAKE-make}"
5548 # Check whether --enable-shared was given.
5549 if test "${enable_shared+set}" = set; then
5550 enableval=$enable_shared; p=${PACKAGE-default}
5552 yes) enable_shared=yes ;;
5553 no) enable_shared=no ;;
5556 # Look at the argument we got. We use all the common list separators.
5557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5558 for pkg in $enableval; do
5560 if test "X$pkg" = "X$p"; then
5572 # Check whether --enable-static was given.
5573 if test "${enable_static+set}" = set; then
5574 enableval=$enable_static; p=${PACKAGE-default}
5576 yes) enable_static=yes ;;
5577 no) enable_static=no ;;
5580 # Look at the argument we got. We use all the common list separators.
5581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5582 for pkg in $enableval; do
5584 if test "X$pkg" = "X$p"; then
5596 # Check whether --enable-fast-install was given.
5597 if test "${enable_fast_install+set}" = set; then
5598 enableval=$enable_fast_install; p=${PACKAGE-default}
5600 yes) enable_fast_install=yes ;;
5601 no) enable_fast_install=no ;;
5603 enable_fast_install=no
5604 # Look at the argument we got. We use all the common list separators.
5605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5606 for pkg in $enableval; do
5608 if test "X$pkg" = "X$p"; then
5609 enable_fast_install=yes
5616 enable_fast_install=yes
5620 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5621 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5622 if test "${lt_cv_path_SED+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 # Loop through the user's path and test for sed and gsed.
5626 # Then use that list of sed's as ones to test for truncation.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for lt_ac_prog in sed gsed; do
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5635 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5642 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5643 # along with /bin/sed that truncates output.
5644 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5645 test ! -f $lt_ac_sed && continue
5646 cat /dev/null > conftest.in
5648 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5649 # Check for GNU sed and select it if it is found.
5650 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5651 lt_cv_path_SED=$lt_ac_sed
5655 cat conftest.in conftest.in >conftest.tmp
5656 mv conftest.tmp conftest.in
5657 cp conftest.in conftest.nl
5659 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5660 cmp -s conftest.out conftest.nl || break
5661 # 10000 chars as input seems more than enough
5662 test $lt_ac_count -gt 10 && break
5663 lt_ac_count=`expr $lt_ac_count + 1`
5664 if test $lt_ac_count -gt $lt_ac_max; then
5665 lt_ac_max=$lt_ac_count
5666 lt_cv_path_SED=$lt_ac_sed
5674 { echo "$as_me:$LINENO: result: $SED" >&5
5675 echo "${ECHO_T}$SED" >&6; }
5677 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5678 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5679 if test "${ac_cv_path_GREP+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 # Extract the first word of "grep ggrep" to use in msg output
5683 if test -z "$GREP"; then
5684 set dummy grep ggrep; ac_prog_name=$2
5685 if test "${ac_cv_path_GREP+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 ac_path_GREP_found=false
5689 # Loop through the user's path and test for each of PROGNAME-LIST
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5694 test -z "$as_dir" && as_dir=.
5695 for ac_prog in grep ggrep; do
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5698 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5699 # Check for GNU ac_path_GREP and select it if it is found.
5700 # Check for GNU $ac_path_GREP
5701 case `"$ac_path_GREP" --version 2>&1` in
5703 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5706 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5709 cat "conftest.in" "conftest.in" >"conftest.tmp"
5710 mv "conftest.tmp" "conftest.in"
5711 cp "conftest.in" "conftest.nl"
5712 echo 'GREP' >> "conftest.nl"
5713 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5715 ac_count=`expr $ac_count + 1`
5716 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5717 # Best one so far, save it but keep looking for a better one
5718 ac_cv_path_GREP="$ac_path_GREP"
5719 ac_path_GREP_max=$ac_count
5721 # 10*(2^10) chars as input seems more than enough
5722 test $ac_count -gt 10 && break
5724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5728 $ac_path_GREP_found && break 3
5738 GREP="$ac_cv_path_GREP"
5739 if test -z "$GREP"; then
5740 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5741 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5742 { (exit 1); exit 1; }; }
5746 ac_cv_path_GREP=$GREP
5751 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5752 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5753 GREP="$ac_cv_path_GREP"
5756 { echo "$as_me:$LINENO: checking for egrep" >&5
5757 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5758 if test "${ac_cv_path_EGREP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5762 then ac_cv_path_EGREP="$GREP -E"
5764 # Extract the first word of "egrep" to use in msg output
5765 if test -z "$EGREP"; then
5766 set dummy egrep; ac_prog_name=$2
5767 if test "${ac_cv_path_EGREP+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 ac_path_EGREP_found=false
5771 # Loop through the user's path and test for each of PROGNAME-LIST
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776 test -z "$as_dir" && as_dir=.
5777 for ac_prog in egrep; do
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5780 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5781 # Check for GNU ac_path_EGREP and select it if it is found.
5782 # Check for GNU $ac_path_EGREP
5783 case `"$ac_path_EGREP" --version 2>&1` in
5785 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5788 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5791 cat "conftest.in" "conftest.in" >"conftest.tmp"
5792 mv "conftest.tmp" "conftest.in"
5793 cp "conftest.in" "conftest.nl"
5794 echo 'EGREP' >> "conftest.nl"
5795 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5797 ac_count=`expr $ac_count + 1`
5798 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5799 # Best one so far, save it but keep looking for a better one
5800 ac_cv_path_EGREP="$ac_path_EGREP"
5801 ac_path_EGREP_max=$ac_count
5803 # 10*(2^10) chars as input seems more than enough
5804 test $ac_count -gt 10 && break
5806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5810 $ac_path_EGREP_found && break 3
5820 EGREP="$ac_cv_path_EGREP"
5821 if test -z "$EGREP"; then
5822 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5823 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5824 { (exit 1); exit 1; }; }
5828 ac_cv_path_EGREP=$EGREP
5834 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5835 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5836 EGREP="$ac_cv_path_EGREP"
5840 # Check whether --with-gnu-ld was given.
5841 if test "${with_gnu_ld+set}" = set; then
5842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5848 if test "$GCC" = yes; then
5849 # Check if gcc -print-prog-name=ld gives a path.
5850 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5851 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5854 # gcc leaves a trailing carriage return which upsets mingw
5855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5860 # Accept absolute paths.
5862 re_direlt='/[^/][^/]*/\.\./'
5863 # Canonicalize the pathname of ld
5864 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5865 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5866 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5868 test -z "$LD" && LD="$ac_prog"
5871 # If it fails, then pretend we aren't using GCC.
5875 # If it is relative, then search for the first ld in PATH.
5879 elif test "$with_gnu_ld" = yes; then
5880 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5881 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5883 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5884 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5886 if test "${lt_cv_path_LD+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 if test -z "$LD"; then
5890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5891 for ac_dir in $PATH; do
5893 test -z "$ac_dir" && ac_dir=.
5894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5895 lt_cv_path_LD="$ac_dir/$ac_prog"
5896 # Check to see if the program is GNU ld. I'd rather use --version,
5897 # but apparently some variants of GNU ld only accept -v.
5898 # Break only if it was the GNU/non-GNU ld that we prefer.
5899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5900 *GNU* | *'with BFD'*)
5901 test "$with_gnu_ld" != no && break
5904 test "$with_gnu_ld" != yes && break
5911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5916 if test -n "$LD"; then
5917 { echo "$as_me:$LINENO: result: $LD" >&5
5918 echo "${ECHO_T}$LD" >&6; }
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5923 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5924 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5925 { (exit 1); exit 1; }; }
5926 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5927 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5928 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5932 case `$LD -v 2>&1 </dev/null` in
5933 *GNU* | *'with BFD'*)
5934 lt_cv_prog_gnu_ld=yes
5937 lt_cv_prog_gnu_ld=no
5941 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5942 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5943 with_gnu_ld=$lt_cv_prog_gnu_ld
5946 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5947 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5948 if test "${lt_cv_ld_reload_flag+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 lt_cv_ld_reload_flag='-r'
5953 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5954 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5955 reload_flag=$lt_cv_ld_reload_flag
5956 case $reload_flag in
5958 *) reload_flag=" $reload_flag" ;;
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5963 if test "$GCC" = yes; then
5964 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5966 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5971 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5972 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5973 if test "${lt_cv_path_NM+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 if test -n "$NM"; then
5977 # Let the user override the test.
5980 lt_nm_to_check="${ac_tool_prefix}nm"
5981 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5982 lt_nm_to_check="$lt_nm_to_check nm"
5984 for lt_tmp_nm in $lt_nm_to_check; do
5985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5986 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5988 test -z "$ac_dir" && ac_dir=.
5989 tmp_nm="$ac_dir/$lt_tmp_nm"
5990 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5991 # Check to see if the nm accepts a BSD-compat flag.
5992 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5993 # nm: unknown option "B" ignored
5994 # Tru64's nm complains that /dev/null is an invalid object file
5995 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5996 */dev/null* | *'Invalid file or object type'*)
5997 lt_cv_path_NM="$tmp_nm -B"
6001 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6003 lt_cv_path_NM="$tmp_nm -p"
6007 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6008 continue # so that we can try to find one that supports BSD flags
6017 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6020 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6021 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6024 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6025 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6026 if test "${lt_cv_deplibs_check_method+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 lt_cv_file_magic_cmd='$MAGIC_CMD'
6030 lt_cv_file_magic_test_file=
6031 lt_cv_deplibs_check_method='unknown'
6032 # Need to set the preceding variable on all platforms that support
6033 # interlibrary dependencies.
6034 # 'none' -- dependencies not supported.
6035 # `unknown' -- same as none, but documents that we really don't know.
6036 # 'pass_all' -- all dependencies passed with no checks.
6037 # 'test_compile' -- check by making test program.
6038 # 'file_magic [[regex]]' -- check by looking for files in library path
6039 # which responds to the $file_magic_cmd with a given extended regex.
6040 # If you have `file' or equivalent on your system and you're not sure
6041 # whether `pass_all' will *always* work, you probably want this one.
6045 lt_cv_deplibs_check_method=pass_all
6049 lt_cv_deplibs_check_method=pass_all
6053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6054 lt_cv_file_magic_cmd='/usr/bin/file -L'
6055 lt_cv_file_magic_test_file=/shlib/libc.so
6059 # func_win32_libid is a shell function defined in ltmain.sh
6060 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6061 lt_cv_file_magic_cmd='func_win32_libid'
6065 # Base MSYS/MinGW do not provide the 'file' command needed by
6066 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6067 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6068 lt_cv_file_magic_cmd='$OBJDUMP -f'
6071 darwin* | rhapsody*)
6072 lt_cv_deplibs_check_method=pass_all
6075 freebsd* | dragonfly*)
6076 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6079 # Not sure whether the presence of OpenBSD here was a mistake.
6080 # Let's accept both of them until this is cleared up.
6081 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6082 lt_cv_file_magic_cmd=/usr/bin/file
6083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6087 lt_cv_deplibs_check_method=pass_all
6092 lt_cv_deplibs_check_method=pass_all
6095 hpux10.20* | hpux11*)
6096 lt_cv_file_magic_cmd=/usr/bin/file
6099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6100 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6103 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]'
6104 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6108 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6114 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6118 irix5* | irix6* | nonstopux*)
6120 *-32|*"-32 ") libmagic=32-bit;;
6121 *-n32|*"-n32 ") libmagic=N32;;
6122 *-64|*"-64 ") libmagic=64-bit;;
6123 *) libmagic=never-match;;
6125 lt_cv_deplibs_check_method=pass_all
6128 # This must be Linux ELF.
6129 linux* | k*bsd*-gnu)
6130 lt_cv_deplibs_check_method=pass_all
6133 netbsd* | netbsdelf*-gnu)
6134 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6143 lt_cv_file_magic_cmd=/usr/bin/file
6144 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6148 lt_cv_deplibs_check_method=unknown
6152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6159 osf3* | osf4* | osf5*)
6160 lt_cv_deplibs_check_method=pass_all
6164 lt_cv_deplibs_check_method=pass_all
6168 case $host_vendor in
6170 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]'
6171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6174 lt_cv_deplibs_check_method=pass_all
6177 lt_cv_file_magic_cmd='/bin/file'
6178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6181 lt_cv_file_magic_cmd='/bin/file'
6182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6183 lt_cv_file_magic_test_file=/lib/libc.so
6186 lt_cv_deplibs_check_method=pass_all
6189 lt_cv_deplibs_check_method=pass_all
6194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6195 lt_cv_deplibs_check_method=pass_all
6200 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6201 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6202 file_magic_cmd=$lt_cv_file_magic_cmd
6203 deplibs_check_method=$lt_cv_deplibs_check_method
6204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6209 # If no C compiler was specified, use CC.
6212 # If no C compiler flags were specified, use CFLAGS.
6213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6215 # Allow CC to be a program name with arguments.
6218 # Check whether --enable-libtool-lock was given.
6219 if test "${enable_libtool_lock+set}" = set; then
6220 enableval=$enable_libtool_lock;
6223 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6225 # Some flags need to be propagated to the compiler or linker for good
6229 # Find out which ABI we are using.
6230 echo 'int i;' > conftest.$ac_ext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; then
6236 case `/usr/bin/file conftest.$ac_objext` in
6248 # Find out which ABI we are using.
6249 echo '#line __oline__ "configure"' > conftest.$ac_ext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; then
6255 if test "$lt_cv_prog_gnu_ld" = yes; then
6256 case `/usr/bin/file conftest.$ac_objext` in
6258 LD="${LD-ld} -melf32bsmip"
6261 LD="${LD-ld} -melf32bmipn32"
6264 LD="${LD-ld} -melf64bmip"
6268 case `/usr/bin/file conftest.$ac_objext` in
6284 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6285 # Find out which ABI we are using.
6286 echo 'int i;' > conftest.$ac_ext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; then
6292 case `/usr/bin/file conftest.o` in
6296 LD="${LD-ld} -m elf_i386"
6298 ppc64-*linux*|powerpc64-*linux*)
6299 LD="${LD-ld} -m elf32ppclinux"
6302 LD="${LD-ld} -m elf_s390"
6305 LD="${LD-ld} -m elf32_sparc"
6312 LD="${LD-ld} -m elf_x86_64"
6314 ppc*-*linux*|powerpc*-*linux*)
6315 LD="${LD-ld} -m elf64ppc"
6318 LD="${LD-ld} -m elf64_s390"
6321 LD="${LD-ld} -m elf64_sparc"
6331 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6332 SAVE_CFLAGS="$CFLAGS"
6333 CFLAGS="$CFLAGS -belf"
6334 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6335 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6336 if test "${lt_cv_cc_needs_belf+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 ac_cpp='$CPP $CPPFLAGS'
6341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (ac_try="$ac_link"
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_link") 2>conftest.er1
6369 grep -v '^ *+' conftest.er1 >conftest.err
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest$ac_exeext &&
6377 $as_test_x conftest$ac_exeext; then
6378 lt_cv_cc_needs_belf=yes
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 lt_cv_cc_needs_belf=no
6386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6387 conftest$ac_exeext conftest.$ac_ext
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
6395 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6396 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6397 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6398 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6399 CFLAGS="$SAVE_CFLAGS"
6403 # Find out which ABI we are using.
6404 echo 'int i;' > conftest.$ac_ext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; then
6410 case `/usr/bin/file conftest.o` in
6412 case $lt_cv_prog_gnu_ld in
6413 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6414 *) LD="${LD-ld} -64" ;;
6425 need_locks="$enable_libtool_lock"
6429 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6430 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6431 if test "${ac_cv_header_stdc+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } && {
6467 test -z "$ac_c_werror_flag" ||
6468 test ! -s conftest.err
6469 } && test -s conftest.$ac_objext; then
6470 ac_cv_header_stdc=yes
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 ac_cv_header_stdc=no
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 if test $ac_cv_header_stdc = yes; then
6481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 $EGREP "memchr" >/dev/null 2>&1; then
6495 ac_cv_header_stdc=no
6501 if test $ac_cv_header_stdc = yes; then
6502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513 $EGREP "free" >/dev/null 2>&1; then
6516 ac_cv_header_stdc=no
6522 if test $ac_cv_header_stdc = yes; then
6523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6524 if test "$cross_compiling" = yes; then
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6535 #if ((' ' & 0x0FF) == 0x020)
6536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6539 # define ISLOWER(c) \
6540 (('a' <= (c) && (c) <= 'i') \
6541 || ('j' <= (c) && (c) <= 'r') \
6542 || ('s' <= (c) && (c) <= 'z'))
6543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6551 for (i = 0; i < 256; i++)
6552 if (XOR (islower (i), ISLOWER (i))
6553 || toupper (i) != TOUPPER (i))
6558 rm -f conftest$ac_exeext
6559 if { (ac_try="$ac_link"
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_link") 2>&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6569 { (case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 (eval "$ac_try") 2>&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6580 echo "$as_me: program exited with status $ac_status" >&5
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6585 ac_cv_header_stdc=no
6587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6593 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6594 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6595 if test $ac_cv_header_stdc = yes; then
6597 cat >>confdefs.h <<\_ACEOF
6598 @%:@define STDC_HEADERS 1
6603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6613 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6614 inttypes.h stdint.h unistd.h
6616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.$ac_ext <<_ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 $ac_includes_default
6630 @%:@include <$ac_header>
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6641 grep -v '^ *+' conftest.er1 >conftest.err
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 eval "$as_ac_Header=yes"
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 eval "$as_ac_Header=no"
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 ac_res=`eval echo '${'$as_ac_Header'}'`
6660 { echo "$as_me:$LINENO: result: $ac_res" >&5
6661 echo "${ECHO_T}$ac_res" >&6; }
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663 cat >>confdefs.h <<_ACEOF
6664 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6673 for ac_header in dlfcn.h
6675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 ac_res=`eval echo '${'$as_ac_Header'}'`
6683 { echo "$as_me:$LINENO: result: $ac_res" >&5
6684 echo "${ECHO_T}$ac_res" >&6; }
6686 # Is the header compilable?
6687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 @%:@include <$ac_header>
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 ac_header_compiler=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_header_compiler=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6725 echo "${ECHO_T}$ac_header_compiler" >&6; }
6727 # Is the header present?
6728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 @%:@include <$ac_header>
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev/null && {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6754 ac_header_preproc=yes
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 ac_header_preproc=no
6762 rm -f conftest.err conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6764 echo "${ECHO_T}$ac_header_preproc" >&6; }
6766 # So? What about this header?
6767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6773 ac_header_preproc=yes
6776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6789 @%:@@%:@ ------------------------------- @%:@@%:@
6790 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
6791 @%:@@%:@ ------------------------------- @%:@@%:@
6793 ) | sed "s/^/$as_me: WARNING: /" >&2
6796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 eval "$as_ac_Header=\$ac_header_preproc"
6803 ac_res=`eval echo '${'$as_ac_Header'}'`
6804 { echo "$as_me:$LINENO: result: $ac_res" >&5
6805 echo "${ECHO_T}$ac_res" >&6; }
6808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6809 cat >>confdefs.h <<_ACEOF
6810 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6820 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6821 (test "X$CXX" != "Xg++"))) ; then
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6828 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6829 if test -z "$CXXCPP"; then
6830 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 # Double quotes because CXXCPP needs to be expanded
6834 for CXXCPP in "$CXX -E" "/lib/cpp"
6837 for ac_cxx_preproc_warn_flag in '' yes
6839 # Use a header file that comes with gcc, so configuring glibc
6840 # with a fresh cross-compiler works.
6841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842 # <limits.h> exists even on freestanding compilers.
6843 # On the NeXT, cc -E runs the code through the compiler's parser,
6844 # not just through cpp. "Syntax error" is here to catch this case.
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6852 @%:@ include <limits.h>
6854 @%:@ include <assert.h>
6858 if { (ac_try="$ac_cpp conftest.$ac_ext"
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6866 grep -v '^ *+' conftest.er1 >conftest.err
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } >/dev/null && {
6871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6872 test ! -s conftest.err
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 # Broken: fails on valid input.
6883 rm -f conftest.err conftest.$ac_ext
6885 # OK, works on sane cases. Now check whether nonexistent headers
6886 # can be detected and how.
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 @%:@include <ac_nonexistent.h>
6895 if { (ac_try="$ac_cpp conftest.$ac_ext"
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } >/dev/null && {
6908 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6909 test ! -s conftest.err
6911 # Broken: success on invalid input.
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 # Passes both tests.
6922 rm -f conftest.err conftest.$ac_ext
6925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6926 rm -f conftest.err conftest.$ac_ext
6927 if $ac_preproc_ok; then
6932 ac_cv_prog_CXXCPP=$CXXCPP
6935 CXXCPP=$ac_cv_prog_CXXCPP
6937 ac_cv_prog_CXXCPP=$CXXCPP
6939 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6940 echo "${ECHO_T}$CXXCPP" >&6; }
6942 for ac_cxx_preproc_warn_flag in '' yes
6944 # Use a header file that comes with gcc, so configuring glibc
6945 # with a fresh cross-compiler works.
6946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6947 # <limits.h> exists even on freestanding compilers.
6948 # On the NeXT, cc -E runs the code through the compiler's parser,
6949 # not just through cpp. "Syntax error" is here to catch this case.
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6957 @%:@ include <limits.h>
6959 @%:@ include <assert.h>
6963 if { (ac_try="$ac_cpp conftest.$ac_ext"
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6971 grep -v '^ *+' conftest.er1 >conftest.err
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } >/dev/null && {
6976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6977 test ! -s conftest.err
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 # Broken: fails on valid input.
6988 rm -f conftest.err conftest.$ac_ext
6990 # OK, works on sane cases. Now check whether nonexistent headers
6991 # can be detected and how.
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 @%:@include <ac_nonexistent.h>
7000 if { (ac_try="$ac_cpp conftest.$ac_ext"
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7008 grep -v '^ *+' conftest.er1 >conftest.err
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } >/dev/null && {
7013 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7014 test ! -s conftest.err
7016 # Broken: success on invalid input.
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 # Passes both tests.
7027 rm -f conftest.err conftest.$ac_ext
7030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7031 rm -f conftest.err conftest.$ac_ext
7032 if $ac_preproc_ok; then
7035 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7038 See \`config.log' for more details." >&2;}
7039 { (exit 1); exit 1; }; }
7043 ac_cpp='$CXXCPP $CPPFLAGS'
7044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7055 if test -n "$ac_tool_prefix"; then
7056 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
7058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_prog_F77+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 if test -n "$F77"; then
7066 ac_cv_prog_F77="$F77" # Let the user override the test.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 if test -n "$F77"; then
7087 { echo "$as_me:$LINENO: result: $F77" >&5
7088 echo "${ECHO_T}$F77" >&6; }
7090 { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7095 test -n "$F77" && break
7098 if test -z "$F77"; then
7100 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
7102 # Extract the first word of "$ac_prog", so it can be a program name with args.
7103 set dummy $ac_prog; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 if test -n "$ac_ct_F77"; then
7110 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_prog_ac_ct_F77="$ac_prog"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7130 if test -n "$ac_ct_F77"; then
7131 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7132 echo "${ECHO_T}$ac_ct_F77" >&6; }
7134 { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7139 test -n "$ac_ct_F77" && break
7142 if test "x$ac_ct_F77" = x; then
7145 case $cross_compiling:$ac_tool_warned in
7147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet. If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&5
7150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7151 whose name does not start with the host triplet. If you think this
7152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7153 ac_tool_warned=yes ;;
7160 # Provide some information about the compiler.
7161 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7162 ac_compiler=`set X $ac_compile; echo $2`
7163 { (ac_try="$ac_compiler --version >&5"
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_compiler --version >&5") 2>&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }
7173 { (ac_try="$ac_compiler -v >&5"
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_compiler -v >&5") 2>&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }
7183 { (ac_try="$ac_compiler -V >&5"
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compiler -V >&5") 2>&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }
7195 # If we don't use `.F' as extension, the preprocessor is not run on the
7196 # input file. (Note that this only needs to work for GNU compilers.)
7199 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7200 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7201 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 cat >conftest.$ac_ext <<_ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7221 grep -v '^ *+' conftest.er1 >conftest.err
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_f77_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7241 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7242 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7244 ac_test_FFLAGS=${FFLAGS+set}
7245 ac_save_FFLAGS=$FFLAGS
7247 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7248 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7249 if test "${ac_cv_prog_f77_g+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_f77_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_prog_f77_g=yes
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7287 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7288 if test "$ac_test_FFLAGS" = set; then
7289 FFLAGS=$ac_save_FFLAGS
7290 elif test $ac_cv_prog_f77_g = yes; then
7291 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7297 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7304 G77=`test $ac_compiler_gnu = yes && echo yes`
7306 ac_cpp='$CPP $CPPFLAGS'
7307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7315 # find the maximum length of command line arguments
7316 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7317 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7318 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 # On DJGPP, this test can blow up pretty badly due to problems in libc
7327 # (any single argument exceeding 2000 bytes causes a buffer overrun
7328 # during glob expansion). Even if it were fixed, the result of this
7329 # check would be larger than it should be.
7330 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7334 # Under GNU Hurd, this test is not required because there is
7335 # no limit to the length of command line arguments.
7336 # Libtool will interpret -1 as no limit whatsoever
7337 lt_cv_sys_max_cmd_len=-1;
7341 # On Win9x/ME, this test blows up -- it succeeds, but takes
7342 # about 5 minutes as the teststring grows exponentially.
7343 # Worse, since 9x/ME are not pre-emptively multitasking,
7344 # you end up with a "frozen" computer, even though with patience
7345 # the test eventually succeeds (with a max line length of 256k).
7346 # Instead, let's just punt: use the minimum linelength reported by
7347 # all of the supported platforms: 8192 (on NT/2K/XP).
7348 lt_cv_sys_max_cmd_len=8192;
7352 # On AmigaOS with pdksh, this test takes hours, literally.
7353 # So we just punt and use a minimum line length of 8192.
7354 lt_cv_sys_max_cmd_len=8192;
7357 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7358 # This has been around since 386BSD, at least. Likely further.
7359 if test -x /sbin/sysctl; then
7360 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7361 elif test -x /usr/sbin/sysctl; then
7362 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7364 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7366 # And add a safety zone
7367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7372 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7373 lt_cv_sys_max_cmd_len=196608
7377 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7378 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7379 # nice to cause kernel panics so lets avoid the loop below.
7380 # First set a reasonable default.
7381 lt_cv_sys_max_cmd_len=16384
7383 if test -x /sbin/sysconfig; then
7384 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7385 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7390 lt_cv_sys_max_cmd_len=102400
7392 sysv5* | sco5v6* | sysv4.2uw2*)
7393 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7394 if test -n "$kargmax"; then
7395 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7397 lt_cv_sys_max_cmd_len=32768
7401 # If test is not a shell built-in, we'll probably end up computing a
7402 # maximum length that is only half of the actual maximum length, but
7404 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7405 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7406 = "XX$teststring") >/dev/null 2>&1 &&
7407 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7408 lt_cv_sys_max_cmd_len=$new_result &&
7409 test $i != 17 # 1/2 MB should be enough
7412 teststring=$teststring$teststring
7415 # Add a significant safety factor because C++ compilers can tack on massive
7416 # amounts of additional arguments before passing them to the linker.
7417 # It appears as though 1/2 is a usable value.
7418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7424 if test -n $lt_cv_sys_max_cmd_len ; then
7425 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7426 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7428 { echo "$as_me:$LINENO: result: none" >&5
7429 echo "${ECHO_T}none" >&6; }
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 # These are sane defaults that work on at least a few old systems.
7443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7445 # Character class describing NM global symbol codes.
7446 symcode='[BCDEGRST]'
7448 # Regexp to match symbols that can be accessed directly from C.
7449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7451 # Transform an extracted symbol line into a proper C declaration
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7454 # Transform an extracted symbol line into symbol name and symbol address
7455 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'"
7457 # Define system-specific variables.
7462 cygwin* | mingw* | pw32*)
7463 symcode='[ABCDGISTW]'
7465 hpux*) # Its linker distinguishes data from code symbols
7466 if test "$host_cpu" = ia64; then
7467 symcode='[ABCDEGRST]'
7469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7470 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'"
7472 linux* | k*bsd*-gnu)
7473 if test "$host_cpu" = ia64; then
7474 symcode='[ABCDGIRSTW]'
7475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7476 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'"
7480 symcode='[BCDEGRST]'
7483 symcode='[BCDEGQRST]'
7494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7502 # Handle CRLF in mingw tool chain
7506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7510 # If we're using GNU nm, then use its standard symbol codes.
7511 case `$NM -V 2>&1` in
7512 *GNU* | *'with BFD'*)
7513 symcode='[ABCDGIRSTW]' ;;
7516 # Try without a prefix undercore, then with it.
7517 for ac_symprfx in "" "_"; do
7519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7520 symxfrm="\\1 $ac_symprfx\\2 \\2"
7522 # Write the raw and C identifiers.
7523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7525 # Check to see that the pipe works correctly.
7529 cat > conftest.$ac_ext <<EOF
7534 void nm_test_func(){}
7538 int main(){nm_test_var='a';nm_test_func();return(0);}
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; then
7546 # Now try to grab the symbols.
7548 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } && test -s "$nlist"; then
7553 # Try sorting and uniquifying the output.
7554 if sort "$nlist" | uniq > "$nlist"T; then
7555 mv -f "$nlist"T "$nlist"
7560 # Make sure that we snagged all the symbols we need.
7561 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7562 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7563 cat <<EOF > conftest.$ac_ext
7569 # Now generate the symbol file.
7570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7572 cat <<EOF >> conftest.$ac_ext
7573 #if defined (__STDC__) && __STDC__
7574 # define lt_ptr_t void *
7576 # define lt_ptr_t char *
7580 /* The mapping between symbol names and symbols. */
7585 lt_preloaded_symbols[] =
7588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7589 cat <<\EOF >> conftest.$ac_ext
7597 # Now try linking the two files.
7598 mv conftest.$ac_objext conftstm.$ac_objext
7599 lt_save_LIBS="$LIBS"
7600 lt_save_CFLAGS="$CFLAGS"
7601 LIBS="conftstm.$ac_objext"
7602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7610 LIBS="$lt_save_LIBS"
7611 CFLAGS="$lt_save_CFLAGS"
7613 echo "cannot find nm_test_func in $nlist" >&5
7616 echo "cannot find nm_test_var in $nlist" >&5
7619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7622 echo "$progname: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7625 rm -f conftest* conftst*
7627 # Do not use the global_symbol_pipe unless it works.
7628 if test "$pipe_works" = yes; then
7631 lt_cv_sys_global_symbol_pipe=
7637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7638 lt_cv_sys_global_symbol_to_cdecl=
7640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7641 { echo "$as_me:$LINENO: result: failed" >&5
7642 echo "${ECHO_T}failed" >&6; }
7644 { echo "$as_me:$LINENO: result: ok" >&5
7645 echo "${ECHO_T}ok" >&6; }
7648 { echo "$as_me:$LINENO: checking for objdir" >&5
7649 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7650 if test "${lt_cv_objdir+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 rm -f .libs 2>/dev/null
7654 mkdir .libs 2>/dev/null
7655 if test -d .libs; then
7658 # MS-DOS does not allow filenames that begin with a dot.
7661 rmdir .libs 2>/dev/null
7663 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7664 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7665 objdir=$lt_cv_objdir
7673 # AIX sometimes has problems with the GCC collect2 program. For some
7674 # reason, if we set the COLLECT_NAMES environment variable, the problems
7675 # vanish in a puff of smoke.
7676 if test "X${COLLECT_NAMES+set}" != Xset; then
7678 export COLLECT_NAMES
7683 # Sed substitution that helps us do robust quoting. It backslashifies
7684 # metacharacters that are still active within double-quoted strings.
7685 Xsed='sed -e 1s/^X//'
7686 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7688 # Same as above, but do not quote variable references.
7689 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7691 # Sed substitution to delay expansion of an escaped shell variable in a
7692 # double_quote_subst'ed string.
7693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7695 # Sed substitution to avoid accidental globbing in evaled expressions
7696 no_glob_subst='s/\*/\\\*/g'
7702 default_ofile=libtool
7703 can_build_shared=yes
7705 # All known linkers require a `.a' archive for static linking (except MSVC,
7706 # which needs '.lib').
7708 ltmain="$ac_aux_dir/ltmain.sh"
7709 ofile="$default_ofile"
7710 with_gnu_ld="$lt_cv_prog_gnu_ld"
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}ar; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_prog_AR+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 if test -n "$AR"; then
7721 ac_cv_prog_AR="$AR" # Let the user override the test.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_AR="${ac_tool_prefix}ar"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 if test -n "$AR"; then
7742 { echo "$as_me:$LINENO: result: $AR" >&5
7743 echo "${ECHO_T}$AR" >&6; }
7745 { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7751 if test -z "$ac_cv_prog_AR"; then
7753 # Extract the first word of "ar", so it can be a program name with args.
7754 set dummy ar; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 if test -n "$ac_ct_AR"; then
7761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_prog_ac_ct_AR="ar"
7771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7781 if test -n "$ac_ct_AR"; then
7782 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7783 echo "${ECHO_T}$ac_ct_AR" >&6; }
7785 { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7789 if test "x$ac_ct_AR" = x; then
7792 case $cross_compiling:$ac_tool_warned in
7794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7795 whose name does not start with the host triplet. If you think this
7796 configuration is useful to you, please write to autoconf@gnu.org." >&5
7797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7798 whose name does not start with the host triplet. If you think this
7799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7800 ac_tool_warned=yes ;;
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813 if test "${ac_cv_prog_RANLIB+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 if test -n "$RANLIB"; then
7817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 RANLIB=$ac_cv_prog_RANLIB
7837 if test -n "$RANLIB"; then
7838 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7839 echo "${ECHO_T}$RANLIB" >&6; }
7841 { echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6; }
7847 if test -z "$ac_cv_prog_RANLIB"; then
7848 ac_ct_RANLIB=$RANLIB
7849 # Extract the first word of "ranlib", so it can be a program name with args.
7850 set dummy ranlib; ac_word=$2
7851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 if test -n "$ac_ct_RANLIB"; then
7857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_prog_ac_ct_RANLIB="ranlib"
7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7877 if test -n "$ac_ct_RANLIB"; then
7878 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7879 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7881 { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7885 if test "x$ac_ct_RANLIB" = x; then
7888 case $cross_compiling:$ac_tool_warned in
7890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7891 whose name does not start with the host triplet. If you think this
7892 configuration is useful to you, please write to autoconf@gnu.org." >&5
7893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7894 whose name does not start with the host triplet. If you think this
7895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7896 ac_tool_warned=yes ;;
7898 RANLIB=$ac_ct_RANLIB
7901 RANLIB="$ac_cv_prog_RANLIB"
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}strip; ac_word=$2
7907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909 if test "${ac_cv_prog_STRIP+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 if test -n "$STRIP"; then
7913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 STRIP=$ac_cv_prog_STRIP
7933 if test -n "$STRIP"; then
7934 { echo "$as_me:$LINENO: result: $STRIP" >&5
7935 echo "${ECHO_T}$STRIP" >&6; }
7937 { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7943 if test -z "$ac_cv_prog_STRIP"; then
7945 # Extract the first word of "strip", so it can be a program name with args.
7946 set dummy strip; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 if test -n "$ac_ct_STRIP"; then
7953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_ac_ct_STRIP="strip"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7973 if test -n "$ac_ct_STRIP"; then
7974 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7975 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7977 { echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6; }
7981 if test "x$ac_ct_STRIP" = x; then
7984 case $cross_compiling:$ac_tool_warned in
7986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7987 whose name does not start with the host triplet. If you think this
7988 configuration is useful to you, please write to autoconf@gnu.org." >&5
7989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet. If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7992 ac_tool_warned=yes ;;
7997 STRIP="$ac_cv_prog_STRIP"
8002 old_CFLAGS="$CFLAGS"
8004 # Set sane defaults for various variables
8005 test -z "$AR" && AR=ar
8006 test -z "$AR_FLAGS" && AR_FLAGS=cru
8007 test -z "$AS" && AS=as
8008 test -z "$CC" && CC=cc
8009 test -z "$LTCC" && LTCC=$CC
8010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8011 test -z "$DLLTOOL" && DLLTOOL=dlltool
8012 test -z "$LD" && LD=ld
8013 test -z "$LN_S" && LN_S="ln -s"
8014 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8015 test -z "$NM" && NM=nm
8016 test -z "$SED" && SED=sed
8017 test -z "$OBJDUMP" && OBJDUMP=objdump
8018 test -z "$RANLIB" && RANLIB=:
8019 test -z "$STRIP" && STRIP=:
8020 test -z "$ac_objext" && ac_objext=o
8022 # Determine commands to create old-style static archives.
8023 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8024 old_postinstall_cmds='chmod 644 $oldlib'
8025 old_postuninstall_cmds=
8027 if test -n "$RANLIB"; then
8030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8033 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8036 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8039 for cc_temp in $compiler""; do
8041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8050 # Only perform the check for file, if the check method requires it
8051 case $deplibs_check_method in
8053 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8054 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8055 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8056 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8064 lt_save_MAGIC_CMD="$MAGIC_CMD"
8065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8067 for ac_dir in $ac_dummy; do
8069 test -z "$ac_dir" && ac_dir=.
8070 if test -f $ac_dir/${ac_tool_prefix}file; then
8071 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8072 if test -n "$file_magic_test_file"; then
8073 case $deplibs_check_method in
8075 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8078 $EGREP "$file_magic_regex" > /dev/null; then
8083 *** Warning: the command libtool uses to detect shared libraries,
8084 *** $file_magic_cmd, produces output that libtool cannot recognize.
8085 *** The result is that libtool may fail to recognize shared libraries
8086 *** as such. This will affect the creation of libtool libraries that
8087 *** depend on shared libraries, but programs linked with such libtool
8088 *** libraries will work regardless of this problem. Nevertheless, you
8089 *** may want to report the problem to your system manager and/or to
8090 *** bug-libtool@gnu.org
8100 MAGIC_CMD="$lt_save_MAGIC_CMD"
8105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8106 if test -n "$MAGIC_CMD"; then
8107 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8108 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8110 { echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6; }
8114 if test -z "$lt_cv_path_MAGIC_CMD"; then
8115 if test -n "$ac_tool_prefix"; then
8116 { echo "$as_me:$LINENO: checking for file" >&5
8117 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8118 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8126 lt_save_MAGIC_CMD="$MAGIC_CMD"
8127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129 for ac_dir in $ac_dummy; do
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f $ac_dir/file; then
8133 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8134 if test -n "$file_magic_test_file"; then
8135 case $deplibs_check_method in
8137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140 $EGREP "$file_magic_regex" > /dev/null; then
8145 *** Warning: the command libtool uses to detect shared libraries,
8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
8147 *** The result is that libtool may fail to recognize shared libraries
8148 *** as such. This will affect the creation of libtool libraries that
8149 *** depend on shared libraries, but programs linked with such libtool
8150 *** libraries will work regardless of this problem. Nevertheless, you
8151 *** may want to report the problem to your system manager and/or to
8152 *** bug-libtool@gnu.org
8162 MAGIC_CMD="$lt_save_MAGIC_CMD"
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if test -n "$MAGIC_CMD"; then
8169 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8170 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8188 # Check whether --enable-libtool-lock was given.
8189 if test "${enable_libtool_lock+set}" = set; then
8190 enableval=$enable_libtool_lock;
8193 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8196 # Check whether --with-pic was given.
8197 if test "${with_pic+set}" = set; then
8198 withval=$with_pic; pic_mode="$withval"
8203 test -z "$pic_mode" && pic_mode=default
8205 # Use C for the default configuration in the libtool script
8209 ac_cpp='$CPP $CPPFLAGS'
8210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8215 # Source file extension for C test sources.
8218 # Object file extension for compiled C test sources.
8222 # Code to be used in simple compile tests
8223 lt_simple_compile_test_code="int some_variable = 0;\n"
8225 # Code to be used in simple link tests
8226 lt_simple_link_test_code='int main(){return(0);}\n'
8229 # If no C compiler was specified, use CC.
8232 # If no C compiler flags were specified, use CFLAGS.
8233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8235 # Allow CC to be a program name with arguments.
8239 # save warnings/boilerplate of simple test code
8240 ac_outfile=conftest.$ac_objext
8241 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8243 _lt_compiler_boilerplate=`cat conftest.err`
8246 ac_outfile=conftest.$ac_objext
8247 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8249 _lt_linker_boilerplate=`cat conftest.err`
8254 ## There is no encapsulation within the following macros, do not change
8255 ## the running order or otherwise move them around unless you know exactly
8256 ## what you are doing...
8258 lt_prog_compiler_no_builtin_flag=
8260 if test "$GCC" = yes; then
8261 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8264 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8265 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8266 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 lt_cv_prog_compiler_rtti_exceptions=no
8270 ac_outfile=conftest.$ac_objext
8271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8272 lt_compiler_flag="-fno-rtti -fno-exceptions"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 # The option is referenced via a variable to avoid confusing sed.
8278 lt_compile=`echo "$ac_compile" | $SED \
8279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8281 -e 's:$: $lt_compiler_flag:'`
8282 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8283 (eval "$lt_compile" 2>conftest.err)
8285 cat conftest.err >&5
8286 echo "$as_me:__oline__: \$? = $ac_status" >&5
8287 if (exit $ac_status) && test -s "$ac_outfile"; then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings other than the usual output.
8290 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_rtti_exceptions=yes
8299 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8300 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8302 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8310 lt_prog_compiler_wl=
8311 lt_prog_compiler_pic=
8312 lt_prog_compiler_static=
8314 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8315 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8317 if test "$GCC" = yes; then
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_static='-static'
8323 # All AIX code is PIC.
8324 if test "$host_cpu" = ia64; then
8325 # AIX 5 now supports IA64 processor
8326 lt_prog_compiler_static='-Bstatic'
8331 # FIXME: we need at least 68020 code to build shared libraries, but
8332 # adding the `-m68020' flag to GCC prevents building anything better,
8334 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8337 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8338 # PIC is the default for these OSes.
8341 mingw* | pw32* | os2*)
8342 # This hack is so that the source file can tell whether it is being
8343 # built for inclusion in a dll (and should export symbols for example).
8344 lt_prog_compiler_pic='-DDLL_EXPORT'
8347 darwin* | rhapsody*)
8348 # PIC is the default on this platform
8349 # Common symbols not allowed in MH_DYLIB files
8350 lt_prog_compiler_pic='-fno-common'
8354 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8355 # Instead, we relocate shared libraries at runtime.
8359 # Just because we use GCC doesn't mean we suddenly get shared libraries
8360 # on systems that don't support them.
8361 lt_prog_compiler_can_build_shared=no
8366 if test -d /usr/nec; then
8367 lt_prog_compiler_pic=-Kconform_pic
8372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8379 lt_prog_compiler_pic='-fPIC'
8385 lt_prog_compiler_pic='-fPIC'
8389 # PORTME Check for flag to pass linker flags through the system compiler.
8392 lt_prog_compiler_wl='-Wl,'
8393 if test "$host_cpu" = ia64; then
8394 # AIX 5 now supports IA64 processor
8395 lt_prog_compiler_static='-Bstatic'
8397 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8401 # PIC is the default on this platform
8402 # Common symbols not allowed in MH_DYLIB files
8403 case $cc_basename in
8405 lt_prog_compiler_pic='-qnocommon'
8406 lt_prog_compiler_wl='-Wl,'
8411 mingw* | pw32* | os2*)
8412 # This hack is so that the source file can tell whether it is being
8413 # built for inclusion in a dll (and should export symbols for example).
8414 lt_prog_compiler_pic='-DDLL_EXPORT'
8417 hpux9* | hpux10* | hpux11*)
8418 lt_prog_compiler_wl='-Wl,'
8419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8426 lt_prog_compiler_pic='+Z'
8429 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8430 lt_prog_compiler_static='${wl}-a ${wl}archive'
8433 irix5* | irix6* | nonstopux*)
8434 lt_prog_compiler_wl='-Wl,'
8435 # PIC (with -KPIC) is the default.
8436 lt_prog_compiler_static='-non_shared'
8440 lt_prog_compiler_pic='-KPIC'
8441 lt_prog_compiler_static='-Bstatic'
8444 linux* | k*bsd*-gnu)
8445 case $cc_basename in
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_pic='-KPIC'
8449 lt_prog_compiler_static='-static'
8451 pgcc* | pgf77* | pgf90* | pgf95*)
8452 # Portland Group compilers (*not* the Pentium gcc compiler,
8453 # which looks to be a dead project)
8454 lt_prog_compiler_wl='-Wl,'
8455 lt_prog_compiler_pic='-fpic'
8456 lt_prog_compiler_static='-Bstatic'
8459 lt_prog_compiler_wl='-Wl,'
8460 # All Alpha code is PIC.
8461 lt_prog_compiler_static='-non_shared'
8466 osf3* | osf4* | osf5*)
8467 lt_prog_compiler_wl='-Wl,'
8468 # All OSF/1 code is PIC.
8469 lt_prog_compiler_static='-non_shared'
8473 lt_prog_compiler_pic='-KPIC'
8474 lt_prog_compiler_static='-Bstatic'
8475 case $cc_basename in
8477 lt_prog_compiler_wl='-Qoption ld ';;
8479 lt_prog_compiler_wl='-Wl,';;
8484 lt_prog_compiler_wl='-Qoption ld '
8485 lt_prog_compiler_pic='-PIC'
8486 lt_prog_compiler_static='-Bstatic'
8489 sysv4 | sysv4.2uw2* | sysv4.3*)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-KPIC'
8492 lt_prog_compiler_static='-Bstatic'
8496 if test -d /usr/nec ;then
8497 lt_prog_compiler_pic='-Kconform_pic'
8498 lt_prog_compiler_static='-Bstatic'
8502 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-Bstatic'
8509 lt_prog_compiler_wl='-Wl,'
8510 lt_prog_compiler_can_build_shared=no
8514 lt_prog_compiler_pic='-pic'
8515 lt_prog_compiler_static='-Bstatic'
8519 lt_prog_compiler_can_build_shared=no
8524 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8525 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8528 # Check to make sure the PIC flag actually works.
8530 if test -n "$lt_prog_compiler_pic"; then
8532 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8533 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8534 if test "${lt_prog_compiler_pic_works+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 lt_prog_compiler_pic_works=no
8538 ac_outfile=conftest.$ac_objext
8539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
8550 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8551 (eval "$lt_compile" 2>conftest.err)
8553 cat conftest.err >&5
8554 echo "$as_me:__oline__: \$? = $ac_status" >&5
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
8558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_prog_compiler_pic_works=yes
8567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8568 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8570 if test x"$lt_prog_compiler_pic_works" = xyes; then
8571 case $lt_prog_compiler_pic in
8573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_can_build_shared=no
8582 # For platforms which do not support PIC, -DPIC is meaningless:
8584 lt_prog_compiler_pic=
8587 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8592 # Check to make sure the static flag actually works.
8594 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8595 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8596 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8597 if test "${lt_prog_compiler_static_works+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 lt_prog_compiler_static_works=no
8601 save_LDFLAGS="$LDFLAGS"
8602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8603 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8605 # The linker can only warn and ignore the option if not recognized
8606 # So say no if there are warnings
8607 if test -s conftest.err; then
8608 # Append any errors to the config.log.
8609 cat conftest.err 1>&5
8610 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612 if diff conftest.exp conftest.er2 >/dev/null; then
8613 lt_prog_compiler_static_works=yes
8616 lt_prog_compiler_static_works=yes
8620 LDFLAGS="$save_LDFLAGS"
8623 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8624 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8626 if test x"$lt_prog_compiler_static_works" = xyes; then
8629 lt_prog_compiler_static=
8633 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8634 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8635 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 lt_cv_prog_compiler_c_o=no
8639 $rm -r conftest 2>/dev/null
8643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8645 lt_compiler_flag="-o out/conftest2.$ac_objext"
8646 # Insert the option either (1) after the last *FLAGS variable, or
8647 # (2) before a word containing "conftest.", or (3) at the end.
8648 # Note that $ac_compile itself does not contain backslashes and begins
8649 # with a dollar sign (not a hyphen), so the echo should work correctly.
8650 lt_compile=`echo "$ac_compile" | $SED \
8651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653 -e 's:$: $lt_compiler_flag:'`
8654 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8655 (eval "$lt_compile" 2>out/conftest.err)
8657 cat out/conftest.err >&5
8658 echo "$as_me:__oline__: \$? = $ac_status" >&5
8659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8661 # The compiler can only warn and ignore the option if not recognized
8662 # So say no if there are warnings
8663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666 lt_cv_prog_compiler_c_o=yes
8671 # SGI C++ compiler will create directory out/ii_files/ for
8672 # template instantiation
8673 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8674 $rm out/* && rmdir out
8680 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8681 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8684 hard_links="nottested"
8685 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8686 # do not overwrite the value of need_locks provided by the user
8687 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8688 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8693 ln conftest.a conftest.b 2>&5 || hard_links=no
8694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8695 { echo "$as_me:$LINENO: result: $hard_links" >&5
8696 echo "${ECHO_T}$hard_links" >&6; }
8697 if test "$hard_links" = no; then
8698 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8699 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8706 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8707 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8710 allow_undefined_flag=
8711 enable_shared_with_static_runtimes=no
8713 archive_expsym_cmds=
8714 old_archive_From_new_cmds=
8715 old_archive_from_expsyms_cmds=
8716 export_dynamic_flag_spec=
8717 whole_archive_flag_spec=
8718 thread_safe_flag_spec=
8719 hardcode_libdir_flag_spec=
8720 hardcode_libdir_flag_spec_ld=
8721 hardcode_libdir_separator=
8724 hardcode_shlibpath_var=unsupported
8725 link_all_deplibs=unknown
8726 hardcode_automatic=no
8729 always_export_symbols=no
8730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8731 # include_expsyms should be a list of space-separated symbols to be *always*
8732 # included in the symbol list
8734 # exclude_expsyms can be an extended regexp of symbols to exclude
8735 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8737 # as well as any symbol that contains `d'.
8738 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8740 # platforms (ab)use it in PIC code, but their linkers get confused if
8741 # the symbol is explicitly referenced. Since portable code cannot
8742 # rely on this symbol name, it's probably fine to never include it in
8743 # preloaded symbol tables.
8744 extract_expsyms_cmds=
8745 # Just being paranoid about ensuring that cc_basename is set.
8746 for cc_temp in $compiler""; do
8748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8754 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8757 cygwin* | mingw* | pw32*)
8758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8759 # When not using gcc, we currently assume that we are using
8760 # Microsoft Visual C++.
8761 if test "$GCC" != yes; then
8766 # we just hope/assume this is gcc and not c89 (= MSVC++)
8775 if test "$with_gnu_ld" = yes; then
8776 # If archive_cmds runs LD, not CC, wlarc should be empty
8779 # Set some defaults for GNU ld with shared library support. These
8780 # are reset later if shared libraries are not supported. Putting them
8781 # here allows them to be overridden if necessary.
8782 runpath_var=LD_RUN_PATH
8783 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8784 export_dynamic_flag_spec='${wl}--export-dynamic'
8785 # ancient GNU ld didn't support --whole-archive et. al.
8786 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8787 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8789 whole_archive_flag_spec=
8791 supports_anon_versioning=no
8792 case `$LD -v 2>/dev/null` in
8793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8796 *\ 2.11.*) ;; # other 2.11 versions
8797 *) supports_anon_versioning=yes ;;
8800 # See if GNU ld supports shared libraries.
8802 aix3* | aix4* | aix5*)
8803 # On AIX/PPC, the GNU linker is very broken
8804 if test "$host_cpu" != ia64; then
8808 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8809 *** to be unable to reliably create shared libraries on AIX.
8810 *** Therefore, libtool is disabling shared libraries support. If you
8811 *** really care for shared libraries, you may want to modify your PATH
8812 *** so that a non-GNU linker is found, and then restart.
8819 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)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8823 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8824 # that the semantics of dynamic libraries on AmigaOS, at least up
8825 # to version 4, is to share data among multiple programs linked
8826 # with the same dynamic library. Since this doesn't match the
8827 # behavior of shared libraries on other platforms, we can't use
8833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8834 allow_undefined_flag=unsupported
8835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8836 # support --undefined. This deserves some investigation. FIXME
8837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843 cygwin* | mingw* | pw32*)
8844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8845 # as there is no search path for DLLs.
8846 hardcode_libdir_flag_spec='-L$libdir'
8847 allow_undefined_flag=unsupported
8848 always_export_symbols=no
8849 enable_shared_with_static_runtimes=yes
8850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8854 # If the export-symbols file already is a .def file (1st line
8855 # is EXPORTS), use it as is; otherwise, prepend...
8856 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8857 cp $export_symbols $output_objdir/$soname.def;
8859 echo EXPORTS > $output_objdir/$soname.def;
8860 cat $export_symbols >> $output_objdir/$soname.def;
8862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8870 hardcode_shlibpath_var=no
8871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8872 export_dynamic_flag_spec='${wl}-E'
8873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8874 # Instead, shared libraries are loaded at an image base (0x10000000 by
8875 # default) and relocated if they conflict, which is a slow very memory
8876 # consuming and fragmenting process. To avoid this, we pick a random,
8877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8880 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'
8883 linux* | k*bsd*-gnu)
8884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8886 case $cc_basename,$host_cpu in
8887 pgcc*) # Portland Group C compiler
8888 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'
8889 tmp_addflag=' $pic_flag'
8891 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8892 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'
8893 tmp_addflag=' $pic_flag -Mnomain' ;;
8894 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8895 tmp_addflag=' -i_dynamic' ;;
8896 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8897 tmp_addflag=' -i_dynamic -nofor_main' ;;
8898 ifc* | ifort*) # Intel Fortran compiler
8899 tmp_addflag=' -nofor_main' ;;
8901 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8903 if test $supports_anon_versioning = yes; then
8904 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8906 $echo "local: *; };" >> $output_objdir/$libname.ver~
8907 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8915 netbsd* | netbsdelf*-gnu)
8916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8917 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8926 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8930 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8931 *** create shared libraries on Solaris systems. Therefore, libtool
8932 *** is disabling shared libraries support. We urge you to upgrade GNU
8933 *** binutils to release 2.9.1 or newer. Another option is to modify
8934 *** your PATH or compiler configuration so that the native linker is
8935 *** used, and then restart.
8938 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8947 case `$LD -v 2>&1` in
8948 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8952 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8953 *** reliably create shared libraries on SCO systems. Therefore, libtool
8954 *** is disabling shared libraries support. We urge you to upgrade GNU
8955 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8956 *** your PATH or compiler configuration so that the native linker is
8957 *** used, and then restart.
8962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8963 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8974 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8977 hardcode_shlibpath_var=no
8981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990 if test "$ld_shlibs" = no; then
8992 hardcode_libdir_flag_spec=
8993 export_dynamic_flag_spec=
8994 whole_archive_flag_spec=
8997 # PORTME fill in a description of your system's linker (not GNU ld)
9000 allow_undefined_flag=unsupported
9001 always_export_symbols=yes
9002 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'
9003 # Note: this linker hardcodes the directories in LIBPATH if there
9004 # are no directories specified by -L.
9005 hardcode_minus_L=yes
9006 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9007 # Neither direct hardcoding nor static linking is supported with a
9009 hardcode_direct=unsupported
9014 if test "$host_cpu" = ia64; then
9015 # On IA64, the linker does run time linking by default, so we don't
9016 # have to do anything special.
9017 aix_use_runtimelinking=no
9018 exp_sym_flag='-Bexport'
9021 # If we're using GNU nm, then we don't want the "-C" option.
9022 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9023 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9024 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'
9026 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'
9028 aix_use_runtimelinking=no
9030 # Test if we are trying to use run time linking or normal
9031 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9032 # need to do runtime linking.
9033 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9034 for ld_flag in $LDFLAGS; do
9035 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9036 aix_use_runtimelinking=yes
9043 exp_sym_flag='-bexport'
9044 no_entry_flag='-bnoentry'
9047 # When large executables or shared objects are built, AIX ld can
9048 # have problems creating the table of contents. If linking a library
9049 # or program results in "error TOC overflow" add -mminimal-toc to
9050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9055 hardcode_libdir_separator=':'
9056 link_all_deplibs=yes
9058 if test "$GCC" = yes; then
9059 case $host_os in aix4.[012]|aix4.[012].*)
9060 # We only want to do this on AIX 4.2 and lower, the check
9061 # below for broken collect2 doesn't work under 4.3+
9062 collect2name=`${CC} -print-prog-name=collect2`
9063 if test -f "$collect2name" && \
9064 strings "$collect2name" | grep resolve_lib_name >/dev/null
9066 # We have reworked collect2
9069 # We have old collect2
9070 hardcode_direct=unsupported
9071 # It fails to find uninstalled libraries when the uninstalled
9072 # path is not listed in the libpath. Setting hardcode_minus_L
9073 # to unsupported forces relinking
9074 hardcode_minus_L=yes
9075 hardcode_libdir_flag_spec='-L$libdir'
9076 hardcode_libdir_separator=
9080 shared_flag='-shared'
9081 if test "$aix_use_runtimelinking" = yes; then
9082 shared_flag="$shared_flag "'${wl}-G'
9086 if test "$host_cpu" = ia64; then
9087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9088 # chokes on -Wl,-G. The following line is correct:
9091 if test "$aix_use_runtimelinking" = yes; then
9092 shared_flag='${wl}-G'
9094 shared_flag='${wl}-bM:SRE'
9099 # It seems that -bexpall does not export symbols beginning with
9100 # underscore (_), so it is better to generate a list of symbols to export.
9101 always_export_symbols=yes
9102 if test "$aix_use_runtimelinking" = yes; then
9103 # Warning - without using the other runtime loading flags (-brtl),
9104 # -berok will link without error, but may produce a broken library.
9105 allow_undefined_flag='-berok'
9106 # Determine the default libpath from the value encoded in an empty executable.
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (ac_try="$ac_link"
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_link") 2>conftest.er1
9131 grep -v '^ *+' conftest.er1 >conftest.err
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest$ac_exeext &&
9139 $as_test_x conftest$ac_exeext; then
9141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9143 # Check for a 64-bit object if we didn't find anything.
9144 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; }
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9154 conftest$ac_exeext conftest.$ac_ext
9155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9158 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"
9160 if test "$host_cpu" = ia64; then
9161 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9162 allow_undefined_flag="-z nodefs"
9163 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"
9165 # Determine the default libpath from the value encoded in an empty executable.
9166 cat >conftest.$ac_ext <<_ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (ac_try="$ac_link"
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_link") 2>conftest.er1
9190 grep -v '^ *+' conftest.er1 >conftest.err
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } && {
9195 test -z "$ac_c_werror_flag" ||
9196 test ! -s conftest.err
9197 } && test -s conftest$ac_exeext &&
9198 $as_test_x conftest$ac_exeext; then
9200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9202 # Check for a 64-bit object if we didn't find anything.
9203 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; }
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9213 conftest$ac_exeext conftest.$ac_ext
9214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9217 # Warning - without using the other run time loading flags,
9218 # -berok will link without error, but may produce a broken library.
9219 no_undefined_flag=' ${wl}-bernotok'
9220 allow_undefined_flag=' ${wl}-berok'
9221 # Exported symbols can be pulled into shared objects from archives
9222 whole_archive_flag_spec='$convenience'
9223 archive_cmds_need_lc=yes
9224 # This is similar to how AIX traditionally builds its shared libraries.
9225 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'
9231 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)'
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 hardcode_minus_L=yes
9234 # see comment about different semantics on the GNU ld section
9239 export_dynamic_flag_spec=-rdynamic
9242 cygwin* | mingw* | pw32*)
9243 # When not using gcc, we currently assume that we are using
9244 # Microsoft Visual C++.
9245 # hardcode_libdir_flag_spec is actually meaningless, as there is
9246 # no search path for DLLs.
9247 hardcode_libdir_flag_spec=' '
9248 allow_undefined_flag=unsupported
9249 # Tell ltmain to make .lib files, not .a files.
9251 # Tell ltmain to make .dll files, not .so files.
9253 # FIXME: Setting linknames here is a bad hack.
9254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9255 # The linker will automatically build a .lib file if we build a DLL.
9256 old_archive_From_new_cmds='true'
9257 # FIXME: Should let the user specify the lib program.
9258 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9259 fix_srcfile_path='`cygpath -w "$srcfile"`'
9260 enable_shared_with_static_runtimes=yes
9263 darwin* | rhapsody*)
9265 rhapsody* | darwin1.[012])
9266 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9269 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9270 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9272 case ${MACOSX_DEPLOYMENT_TARGET} in
9274 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9277 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9283 archive_cmds_need_lc=no
9285 hardcode_automatic=yes
9286 hardcode_shlibpath_var=unsupported
9287 whole_archive_flag_spec=''
9288 link_all_deplibs=yes
9289 if test "$GCC" = yes ; then
9290 output_verbose_link_cmd='echo'
9291 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9292 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9293 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9294 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}'
9295 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}'
9297 case $cc_basename in
9299 output_verbose_link_cmd='echo'
9300 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9301 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9302 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9303 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}'
9304 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}'
9314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_shlibpath_var=no
9323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9324 # support. Future versions do this automatically, but an explicit c++rt0.o
9325 # does not break anything, and helps significantly (at the cost of a little
9328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9329 hardcode_libdir_flag_spec='-R$libdir'
9331 hardcode_shlibpath_var=no
9334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338 hardcode_minus_L=yes
9339 hardcode_shlibpath_var=no
9342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9343 freebsd* | dragonfly*)
9344 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9345 hardcode_libdir_flag_spec='-R$libdir'
9347 hardcode_shlibpath_var=no
9351 if test "$GCC" = yes; then
9352 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'
9354 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'
9356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357 hardcode_libdir_separator=:
9360 # hardcode_minus_L: Not really in the search PATH,
9361 # but as the default location of the library.
9362 hardcode_minus_L=yes
9363 export_dynamic_flag_spec='${wl}-E'
9367 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9368 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9372 if test "$with_gnu_ld" = no; then
9373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9374 hardcode_libdir_separator=:
9377 export_dynamic_flag_spec='${wl}-E'
9379 # hardcode_minus_L: Not really in the search PATH,
9380 # but as the default location of the library.
9381 hardcode_minus_L=yes
9386 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9389 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9401 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9407 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9411 if test "$with_gnu_ld" = no; then
9412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9413 hardcode_libdir_separator=:
9417 hardcode_libdir_flag_spec_ld='+b $libdir'
9419 hardcode_shlibpath_var=no
9423 export_dynamic_flag_spec='${wl}-E'
9425 # hardcode_minus_L: Not really in the search PATH,
9426 # but as the default location of the library.
9427 hardcode_minus_L=yes
9433 irix5* | irix6* | nonstopux*)
9434 if test "$GCC" = yes; then
9435 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'
9437 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'
9438 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441 hardcode_libdir_separator=:
9442 link_all_deplibs=yes
9445 netbsd* | netbsdelf*-gnu)
9446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9449 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9451 hardcode_libdir_flag_spec='-R$libdir'
9453 hardcode_shlibpath_var=no
9457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9460 hardcode_libdir_separator=:
9461 hardcode_shlibpath_var=no
9466 hardcode_shlibpath_var=no
9467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9471 export_dynamic_flag_spec='${wl}-E'
9474 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_libdir_flag_spec='-R$libdir'
9479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487 hardcode_libdir_flag_spec='-L$libdir'
9488 hardcode_minus_L=yes
9489 allow_undefined_flag=unsupported
9490 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'
9491 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9495 if test "$GCC" = yes; then
9496 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9497 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'
9499 allow_undefined_flag=' -expect_unresolved \*'
9500 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'
9502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9503 hardcode_libdir_separator=:
9506 osf4* | osf5*) # as osf3* with the addition of -msym flag
9507 if test "$GCC" = yes; then
9508 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9509 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'
9510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9512 allow_undefined_flag=' -expect_unresolved \*'
9513 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'
9514 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9515 $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'
9517 # Both c and cxx compiler support -rpath directly
9518 hardcode_libdir_flag_spec='-rpath $libdir'
9520 hardcode_libdir_separator=:
9524 no_undefined_flag=' -z text'
9525 if test "$GCC" = yes; then
9527 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9529 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9536 hardcode_libdir_flag_spec='-R$libdir'
9537 hardcode_shlibpath_var=no
9539 solaris2.[0-5] | solaris2.[0-5].*) ;;
9541 # The compiler driver will combine linker options so we
9542 # cannot just pass the convience library names through
9543 # without $wl, iff we do not link with $LD.
9544 # Luckily, gcc supports the same syntax we need for Sun Studio.
9545 # Supported since Solaris 2.6 (maybe 2.5.1?)
9548 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9550 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' ;;
9553 link_all_deplibs=yes
9557 if test "x$host_vendor" = xsequent; then
9558 # Use $CC to link under sequent, because it throws in some extra .o
9559 # files that make .init and .fini sections work.
9560 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9562 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-L$libdir'
9566 hardcode_minus_L=yes
9567 hardcode_shlibpath_var=no
9571 case $host_vendor in
9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574 hardcode_direct=yes # is this really true???
9577 ## LD is ld it makes a PLAMLIB
9578 ## CC just makes a GrossModule.
9579 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9580 reload_cmds='$CC -r -o $output$reload_objs'
9584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9588 runpath_var='LD_RUN_PATH'
9589 hardcode_shlibpath_var=no
9593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9594 hardcode_shlibpath_var=no
9595 export_dynamic_flag_spec='-Bexport'
9599 if test -d /usr/nec; then
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_shlibpath_var=no
9602 runpath_var=LD_RUN_PATH
9603 hardcode_runpath_var=yes
9608 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9609 no_undefined_flag='${wl}-z,text'
9610 archive_cmds_need_lc=no
9611 hardcode_shlibpath_var=no
9612 runpath_var='LD_RUN_PATH'
9614 if test "$GCC" = yes; then
9615 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9618 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 sysv5* | sco3.2v5* | sco5v6*)
9624 # Note: We can NOT use -z defs as we might desire, because we do not
9625 # link with -lc, and that would cause any symbols used from libc to
9626 # always be unresolved, which means just about no library would
9627 # ever link correctly. If we're not using GNU ld we use -z text
9628 # though, which does catch some bad symbols but isn't as heavy-handed
9630 no_undefined_flag='${wl}-z,text'
9631 allow_undefined_flag='${wl}-z,nodefs'
9632 archive_cmds_need_lc=no
9633 hardcode_shlibpath_var=no
9634 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9635 hardcode_libdir_separator=':'
9636 link_all_deplibs=yes
9637 export_dynamic_flag_spec='${wl}-Bexport'
9638 runpath_var='LD_RUN_PATH'
9640 if test "$GCC" = yes; then
9641 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_shlibpath_var=no
9661 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9662 echo "${ECHO_T}$ld_shlibs" >&6; }
9663 test "$ld_shlibs" = no && can_build_shared=no
9666 # Do we need to explicitly link libc?
9668 case "x$archive_cmds_need_lc" in
9670 # Assume -lc should be added
9671 archive_cmds_need_lc=yes
9673 if test "$enable_shared" = yes && test "$GCC" = yes; then
9674 case $archive_cmds in
9676 # FIXME: we may have to deal with multi-command sequences.
9679 # Test whether the compiler implicitly links with -lc since on some
9680 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9681 # to ld, don't add -lc before -lgcc.
9682 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9683 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688 (eval $ac_compile) 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } 2>conftest.err; then
9694 libobjs=conftest.$ac_objext
9696 wl=$lt_prog_compiler_wl
9697 pic_flag=$lt_prog_compiler_pic
9703 lt_save_allow_undefined_flag=$allow_undefined_flag
9704 allow_undefined_flag=
9705 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9706 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }
9711 archive_cmds_need_lc=no
9713 archive_cmds_need_lc=yes
9715 allow_undefined_flag=$lt_save_allow_undefined_flag
9717 cat conftest.err 1>&5
9720 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9721 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9728 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9729 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9731 libname_spec='lib$name'
9739 shlibpath_overrides_runpath=unknown
9741 dynamic_linker="$host_os ld.so"
9742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9743 if test "$GCC" = yes; then
9744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9745 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9746 # if the path contains ";" then we assume it to be the separator
9747 # otherwise default to the standard path separator (i.e. ":") - it is
9748 # assumed that no part of a normal pathname contains ";" but that should
9749 # okay in the real world where ";" in dirpaths is itself problematic.
9750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9757 need_lib_prefix=unknown
9758 hardcode_into_libs=no
9760 # when you set need_version to no, make sure it does not cause -set_version
9761 # flags to be left without arguments
9762 need_version=unknown
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9768 shlibpath_var=LIBPATH
9770 # AIX 3 has no versioning support, so we append a major version to the name.
9771 soname_spec='${libname}${release}${shared_ext}$major'
9778 hardcode_into_libs=yes
9779 if test "$host_cpu" = ia64; then
9780 # AIX 5 supports IA64
9781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9782 shlibpath_var=LD_LIBRARY_PATH
9784 # With GCC up to 2.95.x, collect2 would create an import file
9785 # for dependence libraries. The import file would start with
9786 # the line `#! .'. This would cause the generated library to
9787 # depend on `.', always an invalid library. This was fixed in
9788 # development snapshots of GCC prior to 3.0.
9790 aix4 | aix4.[01] | aix4.[01].*)
9791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9793 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9801 # soname into executable. Probably we can add versioning support to
9802 # collect2, so additional links can be useful in future.
9803 if test "$aix_use_runtimelinking" = yes; then
9804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9805 # instead of lib<name>.a to let people know that these are not
9806 # typical AIX shared libraries.
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809 # We preserve .a as extension for shared libraries through AIX4.2
9810 # and later when we are not doing run time linking.
9811 library_names_spec='${libname}${release}.a $libname.a'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9814 shlibpath_var=LIBPATH
9819 library_names_spec='$libname.ixlibrary $libname.a'
9820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9821 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'
9825 library_names_spec='${libname}${shared_ext}'
9826 dynamic_linker="$host_os ld.so"
9827 shlibpath_var=LIBRARY_PATH
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 soname_spec='${libname}${release}${shared_ext}$major'
9835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9839 # the default ld.so.conf also contains /usr/contrib/lib and
9840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9841 # libtool to hard-code these into programs
9844 cygwin* | mingw* | pw32*)
9845 version_type=windows
9850 case $GCC,$host_os in
9851 yes,cygwin* | yes,mingw* | yes,pw32*)
9852 library_names_spec='$libname.dll.a'
9853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9854 postinstall_cmds='base_file=`basename \${file}`~
9855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9856 dldir=$destdir/`dirname \$dlpath`~
9857 test -d \$dldir || mkdir -p \$dldir~
9858 $install_prog $dir/$dlname \$dldir/$dlname~
9859 chmod a+x \$dldir/$dlname'
9860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9861 dlpath=$dir/\$dldll~
9863 shlibpath_overrides_runpath=yes
9867 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9868 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9872 # MinGW DLLs use traditional 'lib' prefix
9873 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9875 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9876 # It is most probably a Windows format PATH printed by
9877 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9878 # path with ; separators, and with drive letters. We can handle the
9879 # drive letters (cygwin fileutils understands them), so leave them,
9880 # especially as we might pass files found there to a mingw objdump,
9881 # which wouldn't understand a cygwinified path. Ahh.
9882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9888 # pw32 DLLs use 'pw' prefix rather than 'lib'
9889 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9895 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9898 dynamic_linker='Win32 ld.exe'
9899 # FIXME: first we should search . and the directory the executable is in
9903 darwin* | rhapsody*)
9904 dynamic_linker="$host_os dyld"
9908 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9909 soname_spec='${libname}${release}${major}$shared_ext'
9910 shlibpath_overrides_runpath=yes
9911 shlibpath_var=DYLD_LIBRARY_PATH
9912 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9913 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9914 if test "$GCC" = yes; then
9915 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"`
9917 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9935 freebsd* | dragonfly*)
9936 # DragonFly does not have aout. When/if they implement a new
9937 # versioning mechanism, adjust this.
9938 if test -x /usr/bin/objformat; then
9939 objformat=`/usr/bin/objformat`
9942 freebsd[123]*) objformat=aout ;;
9946 version_type=freebsd-$objformat
9947 case $version_type in
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9958 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=yes
9963 freebsd3.[01]* | freebsdelf3.[01]*)
9964 shlibpath_overrides_runpath=yes
9965 hardcode_into_libs=yes
9967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9969 shlibpath_overrides_runpath=no
9970 hardcode_into_libs=yes
9972 freebsd*) # from 4.6 on
9973 shlibpath_overrides_runpath=yes
9974 hardcode_into_libs=yes
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 hardcode_into_libs=yes
9989 hpux9* | hpux10* | hpux11*)
9990 # Give a soname corresponding to the major version so that dld.sl refuses to
9991 # link against other versions.
9998 hardcode_into_libs=yes
9999 dynamic_linker="$host_os dld.so"
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 if test "X$HPUX_IA64_MODE" = X32; then
10005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10013 hardcode_into_libs=yes
10014 dynamic_linker="$host_os dld.sl"
10015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10024 dynamic_linker="$host_os dld.sl"
10025 shlibpath_var=SHLIB_PATH
10026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10031 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10032 postinstall_cmds='chmod 555 $lib'
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=no
10044 hardcode_into_libs=yes
10047 irix5* | irix6* | nonstopux*)
10049 nonstopux*) version_type=nonstopux ;;
10051 if test "$lt_cv_prog_gnu_ld" = yes; then
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10062 irix5* | nonstopux*)
10063 libsuff= shlibsuff=
10066 case $LD in # libtool.m4 will add one of these switches to LD
10067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10068 libsuff= shlibsuff= libmagic=32-bit;;
10069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10070 libsuff=32 shlibsuff=N32 libmagic=N32;;
10071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10073 *) libsuff= shlibsuff= libmagic=never-match;;
10077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10078 shlibpath_overrides_runpath=no
10079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10081 hardcode_into_libs=yes
10084 # No shared lib support for Linux oldld, aout, or coff.
10085 linux*oldld* | linux*aout* | linux*coff*)
10089 # This must be Linux ELF.
10090 linux* | k*bsd*-gnu)
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 shlibpath_overrides_runpath=no
10099 # This implies no fast_install, which is unacceptable.
10100 # Some rework will be needed to allow for fast_install
10101 # before this can be enabled.
10102 hardcode_into_libs=yes
10104 # Append ld.so.conf contents to the search path
10105 if test -f /etc/ld.so.conf; then
10106 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' ' '`
10107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10110 # We used to test for /lib/ld.so.1 and disable shared libraries on
10111 # powerpc, because MkLinux only supported shared libraries with the
10112 # GNU dynamic linker. Since this was broken with cross compilers,
10113 # most powerpc-linux boxes support dynamic linking these days and
10114 # people can always --disable-shared, the test was removed, and we
10115 # assume the GNU/Linux dynamic linker is in use.
10116 dynamic_linker='GNU/Linux ld.so'
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=no
10127 hardcode_into_libs=yes
10128 dynamic_linker='NetBSD ld.elf_so'
10135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10138 dynamic_linker='NetBSD (a.out) ld.so'
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 dynamic_linker='NetBSD ld.elf_so'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=yes
10146 hardcode_into_libs=yes
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=yes
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 shlibpath_overrides_runpath=yes
10168 sys_lib_dlsearch_path_spec="/usr/lib"
10170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10172 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10173 *) need_version=no ;;
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10180 openbsd2.[89] | openbsd2.[89].*)
10181 shlibpath_overrides_runpath=no
10184 shlibpath_overrides_runpath=yes
10188 shlibpath_overrides_runpath=yes
10193 libname_spec='$name'
10196 library_names_spec='$libname${shared_ext} $libname.a'
10197 dynamic_linker='OS/2 ld.exe'
10198 shlibpath_var=LIBPATH
10201 osf3* | osf4* | osf5*)
10205 soname_spec='${libname}${release}${shared_ext}$major'
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=yes
10220 hardcode_into_libs=yes
10221 # ldd complains unless libraries are executable
10222 postinstall_cmds='chmod +x $lib'
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 if test "$with_gnu_ld" = yes; then
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 case $host_vendor in
10244 shlibpath_overrides_runpath=no
10246 export_dynamic_flag_spec='${wl}-Blargedynsym'
10247 runpath_var=LD_RUN_PATH
10255 shlibpath_overrides_runpath=no
10256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10262 if test -d /usr/nec ;then
10264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10265 soname_spec='$libname${shared_ext}.$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10271 version_type=freebsd-elf
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 hardcode_into_libs=yes
10278 if test "$with_gnu_ld" = yes; then
10279 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10280 shlibpath_overrides_runpath=no
10282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10283 shlibpath_overrides_runpath=yes
10286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10290 sys_lib_dlsearch_path_spec='/usr/lib'
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10304 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10305 echo "${ECHO_T}$dynamic_linker" >&6; }
10306 test "$dynamic_linker" = no && can_build_shared=no
10308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10309 if test "$GCC" = yes; then
10310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10313 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10314 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10316 if test -n "$hardcode_libdir_flag_spec" || \
10317 test -n "$runpath_var" || \
10318 test "X$hardcode_automatic" = "Xyes" ; then
10320 # We can hardcode non-existant directories.
10321 if test "$hardcode_direct" != no &&
10322 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10323 # have to relink, otherwise we might link with an installed library
10324 # when we should be linking with a yet-to-be-installed one
10325 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10326 test "$hardcode_minus_L" != no; then
10327 # Linking always hardcodes the temporary library directory.
10328 hardcode_action=relink
10330 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10331 hardcode_action=immediate
10334 # We cannot hardcode anything, or else we can only hardcode existing
10336 hardcode_action=unsupported
10338 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10339 echo "${ECHO_T}$hardcode_action" >&6; }
10341 if test "$hardcode_action" = relink; then
10342 # Fast installation is not supported
10343 enable_fast_install=no
10344 elif test "$shlibpath_overrides_runpath" = yes ||
10345 test "$enable_shared" = no; then
10346 # Fast installation is not necessary
10347 enable_fast_install=needless
10352 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10353 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10354 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10357 { echo "$as_me:$LINENO: result: yes" >&5
10358 echo "${ECHO_T}yes" >&6; }
10360 # FIXME - insert some real tests, host_os isn't really good enough
10363 if test -n "$STRIP" ; then
10364 striplib="$STRIP -x"
10365 { echo "$as_me:$LINENO: result: yes" >&5
10366 echo "${ECHO_T}yes" >&6; }
10368 { echo "$as_me:$LINENO: result: no" >&5
10369 echo "${ECHO_T}no" >&6; }
10373 { echo "$as_me:$LINENO: result: no" >&5
10374 echo "${ECHO_T}no" >&6; }
10379 if test "x$enable_dlopen" != xyes; then
10380 enable_dlopen=unknown
10381 enable_dlopen_self=unknown
10382 enable_dlopen_self_static=unknown
10389 lt_cv_dlopen="load_add_on"
10391 lt_cv_dlopen_self=yes
10395 lt_cv_dlopen="LoadLibrary"
10400 lt_cv_dlopen="dlopen"
10405 # if libdl is installed we need to link against it
10406 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 ac_check_lib_save_LIBS=$LIBS
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10420 /* Override any GCC internal prototype to avoid an error.
10421 Use char because int might match the return type of a GCC
10422 builtin and then its argument prototype would still apply. */
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (ac_try="$ac_link"
10437 case "(($ac_try" in
10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439 *) ac_try_echo=$ac_try;;
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442 (eval "$ac_link") 2>conftest.er1
10444 grep -v '^ *+' conftest.er1 >conftest.err
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } && {
10449 test -z "$ac_c_werror_flag" ||
10450 test ! -s conftest.err
10451 } && test -s conftest$ac_exeext &&
10452 $as_test_x conftest$ac_exeext; then
10453 ac_cv_lib_dl_dlopen=yes
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10458 ac_cv_lib_dl_dlopen=no
10461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10462 conftest$ac_exeext conftest.$ac_ext
10463 LIBS=$ac_check_lib_save_LIBS
10465 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10467 if test $ac_cv_lib_dl_dlopen = yes; then
10468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10471 lt_cv_dlopen="dyld"
10473 lt_cv_dlopen_self=yes
10480 { echo "$as_me:$LINENO: checking for shl_load" >&5
10481 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10482 if test "${ac_cv_func_shl_load+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10493 #define shl_load innocuous_shl_load
10495 /* System header to define __stub macros and hopefully few prototypes,
10496 which can conflict with char shl_load (); below.
10497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498 <limits.h> exists even on freestanding compilers. */
10501 # include <limits.h>
10503 # include <assert.h>
10508 /* Override any GCC internal prototype to avoid an error.
10509 Use char because int might match the return type of a GCC
10510 builtin and then its argument prototype would still apply. */
10515 /* The GNU C library defines this for functions which it implements
10516 to always fail with ENOSYS. Some functions are actually named
10517 something starting with __ and the normal name is an alias. */
10518 #if defined __stub_shl_load || defined __stub___shl_load
10525 return shl_load ();
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10539 grep -v '^ *+' conftest.er1 >conftest.err
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest$ac_exeext &&
10547 $as_test_x conftest$ac_exeext; then
10548 ac_cv_func_shl_load=yes
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_func_shl_load=no
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 conftest$ac_exeext conftest.$ac_ext
10559 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10560 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10561 if test $ac_cv_func_shl_load = yes; then
10562 lt_cv_dlopen="shl_load"
10564 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10565 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10566 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 ac_check_lib_save_LIBS=$LIBS
10571 cat >conftest.$ac_ext <<_ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10588 return shl_load ();
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
10611 ac_cv_lib_dld_shl_load=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_cv_lib_dld_shl_load=no
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620 conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10624 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10625 if test $ac_cv_lib_dld_shl_load = yes; then
10626 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10628 { echo "$as_me:$LINENO: checking for dlopen" >&5
10629 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10630 if test "${ac_cv_func_dlopen+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10641 #define dlopen innocuous_dlopen
10643 /* System header to define __stub macros and hopefully few prototypes,
10644 which can conflict with char dlopen (); below.
10645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10646 <limits.h> exists even on freestanding compilers. */
10649 # include <limits.h>
10651 # include <assert.h>
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10663 /* The GNU C library defines this for functions which it implements
10664 to always fail with ENOSYS. Some functions are actually named
10665 something starting with __ and the normal name is an alias. */
10666 #if defined __stub_dlopen || defined __stub___dlopen
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_link") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest$ac_exeext &&
10695 $as_test_x conftest$ac_exeext; then
10696 ac_cv_func_dlopen=yes
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_cv_func_dlopen=no
10704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10705 conftest$ac_exeext conftest.$ac_ext
10707 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10708 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10709 if test $ac_cv_func_dlopen = yes; then
10710 lt_cv_dlopen="dlopen"
10712 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 ac_check_lib_save_LIBS=$LIBS
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && {
10755 test -z "$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 } && test -s conftest$ac_exeext &&
10758 $as_test_x conftest$ac_exeext; then
10759 ac_cv_lib_dl_dlopen=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_lib_dl_dlopen=no
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10771 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10772 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10773 if test $ac_cv_lib_dl_dlopen = yes; then
10774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10776 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10777 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10778 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-lsvld $LIBS"
10783 cat >conftest.$ac_ext <<_ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10790 /* Override any GCC internal prototype to avoid an error.
10791 Use char because int might match the return type of a GCC
10792 builtin and then its argument prototype would still apply. */
10805 rm -f conftest.$ac_objext conftest$ac_exeext
10806 if { (ac_try="$ac_link"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_link") 2>conftest.er1
10814 grep -v '^ *+' conftest.er1 >conftest.err
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest$ac_exeext &&
10822 $as_test_x conftest$ac_exeext; then
10823 ac_cv_lib_svld_dlopen=yes
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10828 ac_cv_lib_svld_dlopen=no
10831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10835 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10836 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10837 if test $ac_cv_lib_svld_dlopen = yes; then
10838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10840 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10841 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10842 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 ac_check_lib_save_LIBS=$LIBS
10847 cat >conftest.$ac_ext <<_ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10864 return dld_link ();
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (ac_try="$ac_link"
10871 case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_link") 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && {
10883 test -z "$ac_c_werror_flag" ||
10884 test ! -s conftest.err
10885 } && test -s conftest$ac_exeext &&
10886 $as_test_x conftest$ac_exeext; then
10887 ac_cv_lib_dld_dld_link=yes
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_cv_lib_dld_dld_link=no
10895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10900 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10901 if test $ac_cv_lib_dld_dld_link = yes; then
10902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10923 if test "x$lt_cv_dlopen" != xno; then
10929 case $lt_cv_dlopen in
10931 save_CPPFLAGS="$CPPFLAGS"
10932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10934 save_LDFLAGS="$LDFLAGS"
10935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10938 LIBS="$lt_cv_dlopen_libs $LIBS"
10940 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10941 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10942 if test "${lt_cv_dlopen_self+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 if test "$cross_compiling" = yes; then :
10946 lt_cv_dlopen_self=cross
10948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10949 lt_status=$lt_dlunknown
10950 cat > conftest.$ac_ext <<EOF
10951 #line __oline__ "configure"
10952 #include "confdefs.h"
10961 # define LT_DLGLOBAL RTLD_GLOBAL
10964 # define LT_DLGLOBAL DL_GLOBAL
10966 # define LT_DLGLOBAL 0
10970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10971 find out it does not work in some platform. */
10972 #ifndef LT_DLLAZY_OR_NOW
10974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10977 # define LT_DLLAZY_OR_NOW DL_LAZY
10980 # define LT_DLLAZY_OR_NOW RTLD_NOW
10983 # define LT_DLLAZY_OR_NOW DL_NOW
10985 # define LT_DLLAZY_OR_NOW 0
10993 extern "C" void exit (int);
10996 void fnord() { int i=42;}
10999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11000 int status = $lt_dlunknown;
11004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11006 /* dlclose (self); */
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11019 (./conftest; exit; ) >&5 2>/dev/null
11021 case x$lt_status in
11022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11024 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11027 # compilation failed
11028 lt_cv_dlopen_self=no
11035 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11036 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11038 if test "x$lt_cv_dlopen_self" = xyes; then
11039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11040 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11041 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11042 if test "${lt_cv_dlopen_self_static+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 if test "$cross_compiling" = yes; then :
11046 lt_cv_dlopen_self_static=cross
11048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11049 lt_status=$lt_dlunknown
11050 cat > conftest.$ac_ext <<EOF
11051 #line __oline__ "configure"
11052 #include "confdefs.h"
11061 # define LT_DLGLOBAL RTLD_GLOBAL
11064 # define LT_DLGLOBAL DL_GLOBAL
11066 # define LT_DLGLOBAL 0
11070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11071 find out it does not work in some platform. */
11072 #ifndef LT_DLLAZY_OR_NOW
11074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11077 # define LT_DLLAZY_OR_NOW DL_LAZY
11080 # define LT_DLLAZY_OR_NOW RTLD_NOW
11083 # define LT_DLLAZY_OR_NOW DL_NOW
11085 # define LT_DLLAZY_OR_NOW 0
11093 extern "C" void exit (int);
11096 void fnord() { int i=42;}
11099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11100 int status = $lt_dlunknown;
11104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11106 /* dlclose (self); */
11114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115 (eval $ac_link) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11119 (./conftest; exit; ) >&5 2>/dev/null
11121 case x$lt_status in
11122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11124 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11127 # compilation failed
11128 lt_cv_dlopen_self_static=no
11135 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11136 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11139 CPPFLAGS="$save_CPPFLAGS"
11140 LDFLAGS="$save_LDFLAGS"
11145 case $lt_cv_dlopen_self in
11146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11147 *) enable_dlopen_self=unknown ;;
11150 case $lt_cv_dlopen_self_static in
11151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11152 *) enable_dlopen_self_static=unknown ;;
11157 # Report which library types will actually be built
11158 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11159 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11160 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11161 echo "${ECHO_T}$can_build_shared" >&6; }
11163 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11164 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11165 test "$can_build_shared" = "no" && enable_shared=no
11167 # On AIX, shared libraries and static libraries use the same namespace, and
11168 # are all built from PIC.
11171 test "$enable_shared" = yes && enable_static=no
11172 if test -n "$RANLIB"; then
11173 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11174 postinstall_cmds='$RANLIB $lib'
11179 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11180 test "$enable_shared" = yes && enable_static=no
11184 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11185 echo "${ECHO_T}$enable_shared" >&6; }
11187 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11188 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11189 # Make sure either enable_shared or enable_static is yes.
11190 test "$enable_shared" = yes || enable_static=yes
11191 { echo "$as_me:$LINENO: result: $enable_static" >&5
11192 echo "${ECHO_T}$enable_static" >&6; }
11194 # The else clause should only fire when bootstrapping the
11195 # libtool distribution, otherwise you forgot to ship ltmain.sh
11196 # with your package, and you will get complaints that there are
11197 # no rules to generate ltmain.sh.
11198 if test -f "$ltmain"; then
11199 # See if we are running on zsh, and set the options which allow our commands through
11200 # without removal of \ escapes.
11201 if test -n "${ZSH_VERSION+set}" ; then
11202 setopt NO_GLOB_SUBST
11204 # Now quote all the things that may contain metacharacters while being
11205 # careful not to overquote the AC_SUBSTed values. We take copies of the
11206 # variables and quote the copies for generation of the libtool script.
11207 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11209 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11210 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11211 deplibs_check_method reload_flag reload_cmds need_locks \
11212 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11213 lt_cv_sys_global_symbol_to_c_name_address \
11214 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11215 old_postinstall_cmds old_postuninstall_cmds \
11219 lt_prog_compiler_wl \
11220 lt_prog_compiler_pic \
11221 lt_prog_compiler_static \
11222 lt_prog_compiler_no_builtin_flag \
11223 export_dynamic_flag_spec \
11224 thread_safe_flag_spec \
11225 whole_archive_flag_spec \
11226 enable_shared_with_static_runtimes \
11228 old_archive_from_new_cmds \
11233 compiler_lib_search_path \
11235 archive_expsym_cmds \
11237 postuninstall_cmds \
11238 old_archive_from_expsyms_cmds \
11239 allow_undefined_flag \
11240 no_undefined_flag \
11241 export_symbols_cmds \
11242 hardcode_libdir_flag_spec \
11243 hardcode_libdir_flag_spec_ld \
11244 hardcode_libdir_separator \
11245 hardcode_automatic \
11247 module_expsym_cmds \
11248 lt_cv_prog_compiler_c_o \
11250 include_expsyms; do
11253 old_archive_cmds | \
11254 old_archive_from_new_cmds | \
11256 archive_expsym_cmds | \
11258 module_expsym_cmds | \
11259 old_archive_from_expsyms_cmds | \
11260 export_symbols_cmds | \
11261 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11262 postinstall_cmds | postuninstall_cmds | \
11263 old_postinstall_cmds | old_postuninstall_cmds | \
11264 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11265 # Double-quote double-evaled strings.
11266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11275 *'\$0 --fallback-echo"')
11276 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11280 cfgfile="${ofile}T"
11281 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11283 { echo "$as_me:$LINENO: creating $ofile" >&5
11284 echo "$as_me: creating $ofile" >&6;}
11286 cat <<__EOF__ >> "$cfgfile"
11289 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11290 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11291 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11293 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11294 # Free Software Foundation, Inc.
11296 # This file is part of GNU Libtool:
11297 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11299 # This program is free software; you can redistribute it and/or modify
11300 # it under the terms of the GNU General Public License as published by
11301 # the Free Software Foundation; either version 2 of the License, or
11302 # (at your option) any later version.
11304 # This program is distributed in the hope that it will be useful, but
11305 # WITHOUT ANY WARRANTY; without even the implied warranty of
11306 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11307 # General Public License for more details.
11309 # You should have received a copy of the GNU General Public License
11310 # along with this program; if not, write to the Free Software
11311 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11313 # As a special exception to the GNU General Public License, if you
11314 # distribute this file as part of a program that contains a
11315 # configuration script generated by Autoconf, you may include it under
11316 # the same distribution terms that you use for the rest of that program.
11318 # A sed program that does not truncate output.
11321 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11322 Xsed="$SED -e 1s/^X//"
11324 # The HP-UX ksh and POSIX shell print the target directory to stdout
11325 # if CDPATH is set.
11326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11328 # The names of the tagged configurations supported by this script.
11331 # ### BEGIN LIBTOOL CONFIG
11333 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11335 # Shell to use when invoking shell scripts.
11338 # Whether or not to build shared libraries.
11339 build_libtool_libs=$enable_shared
11341 # Whether or not to build static libraries.
11342 build_old_libs=$enable_static
11344 # Whether or not to add -lc for building shared libraries.
11345 build_libtool_need_lc=$archive_cmds_need_lc
11347 # Whether or not to disallow shared libs when runtime libs are static
11348 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11350 # Whether or not to optimize for fast installation.
11351 fast_install=$enable_fast_install
11354 host_alias=$host_alias
11358 # The build system.
11359 build_alias=$build_alias
11363 # An echo program that does not interpret backslashes.
11368 AR_FLAGS=$lt_AR_FLAGS
11373 # LTCC compiler flags.
11374 LTCFLAGS=$lt_LTCFLAGS
11376 # A language-specific compiler.
11379 # Is the compiler the GNU C compiler?
11385 # The linker used to build libraries.
11388 # Whether we need hard or soft links.
11391 # A BSD-compatible nm program.
11394 # A symbol stripping program
11397 # Used to examine libraries when file_magic_cmd begins "file"
11398 MAGIC_CMD=$MAGIC_CMD
11400 # Used on cygwin: DLL creation program.
11403 # Used on cygwin: object dumper.
11406 # Used on cygwin: assembler.
11409 # The name of the directory that contains temporary libtool files.
11412 # How to create reloadable object files.
11413 reload_flag=$lt_reload_flag
11414 reload_cmds=$lt_reload_cmds
11416 # How to pass a linker flag through the compiler.
11417 wl=$lt_lt_prog_compiler_wl
11419 # Object file suffix (normally "o").
11420 objext="$ac_objext"
11422 # Old archive suffix (normally "a").
11425 # Shared library suffix (normally ".so").
11426 shrext_cmds='$shrext_cmds'
11428 # Executable file suffix (normally "").
11431 # Additional compiler flags for building library objects.
11432 pic_flag=$lt_lt_prog_compiler_pic
11435 # What is the maximum length of a command?
11436 max_cmd_len=$lt_cv_sys_max_cmd_len
11438 # Does compiler simultaneously support -c and -o options?
11439 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11441 # Must we lock files when doing compilation?
11442 need_locks=$lt_need_locks
11444 # Do we need the lib prefix for modules?
11445 need_lib_prefix=$need_lib_prefix
11447 # Do we need a version for libraries?
11448 need_version=$need_version
11450 # Whether dlopen is supported.
11451 dlopen_support=$enable_dlopen
11453 # Whether dlopen of programs is supported.
11454 dlopen_self=$enable_dlopen_self
11456 # Whether dlopen of statically linked programs is supported.
11457 dlopen_self_static=$enable_dlopen_self_static
11459 # Compiler flag to prevent dynamic linking.
11460 link_static_flag=$lt_lt_prog_compiler_static
11462 # Compiler flag to turn off builtin functions.
11463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11465 # Compiler flag to allow reflexive dlopens.
11466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11468 # Compiler flag to generate shared objects directly from archives.
11469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11471 # Compiler flag to generate thread-safe objects.
11472 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11474 # Library versioning type.
11475 version_type=$version_type
11477 # Format of library name prefix.
11478 libname_spec=$lt_libname_spec
11480 # List of archive names. First name is the real one, the rest are links.
11481 # The last name is the one that the linker finds with -lNAME.
11482 library_names_spec=$lt_library_names_spec
11484 # The coded name of the library, if different from the real name.
11485 soname_spec=$lt_soname_spec
11487 # Commands used to build and install an old-style archive.
11489 old_archive_cmds=$lt_old_archive_cmds
11490 old_postinstall_cmds=$lt_old_postinstall_cmds
11491 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11493 # Create an old-style archive from a shared archive.
11494 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11496 # Create a temporary old-style archive to link instead of a shared archive.
11497 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11499 # Commands used to build and install a shared archive.
11500 archive_cmds=$lt_archive_cmds
11501 archive_expsym_cmds=$lt_archive_expsym_cmds
11502 postinstall_cmds=$lt_postinstall_cmds
11503 postuninstall_cmds=$lt_postuninstall_cmds
11505 # Commands used to build a loadable module (assumed same as above if empty)
11506 module_cmds=$lt_module_cmds
11507 module_expsym_cmds=$lt_module_expsym_cmds
11509 # Commands to strip libraries.
11510 old_striplib=$lt_old_striplib
11511 striplib=$lt_striplib
11513 # Dependencies to place before the objects being linked to create a
11515 predep_objects=$lt_predep_objects
11517 # Dependencies to place after the objects being linked to create a
11519 postdep_objects=$lt_postdep_objects
11521 # Dependencies to place before the objects being linked to create a
11523 predeps=$lt_predeps
11525 # Dependencies to place after the objects being linked to create a
11527 postdeps=$lt_postdeps
11529 # The library search path used internally by the compiler when linking
11530 # a shared library.
11531 compiler_lib_search_path=$lt_compiler_lib_search_path
11533 # Method to check whether dependent libraries are shared objects.
11534 deplibs_check_method=$lt_deplibs_check_method
11536 # Command to use when deplibs_check_method == file_magic.
11537 file_magic_cmd=$lt_file_magic_cmd
11539 # Flag that allows shared libraries with undefined symbols to be built.
11540 allow_undefined_flag=$lt_allow_undefined_flag
11542 # Flag that forces no undefined symbols.
11543 no_undefined_flag=$lt_no_undefined_flag
11545 # Commands used to finish a libtool library installation in a directory.
11546 finish_cmds=$lt_finish_cmds
11548 # Same as above, but a single script fragment to be evaled but not shown.
11549 finish_eval=$lt_finish_eval
11551 # Take the output of nm and produce a listing of raw symbols and C names.
11552 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11554 # Transform the output of nm in a proper C declaration
11555 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11557 # Transform the output of nm in a C name address pair
11558 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11560 # This is the shared library runtime path variable.
11561 runpath_var=$runpath_var
11563 # This is the shared library path variable.
11564 shlibpath_var=$shlibpath_var
11566 # Is shlibpath searched before the hard-coded library search path?
11567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11569 # How to hardcode a shared library path into an executable.
11570 hardcode_action=$hardcode_action
11572 # Whether we should hardcode library paths into libraries.
11573 hardcode_into_libs=$hardcode_into_libs
11575 # Flag to hardcode \$libdir into a binary during linking.
11576 # This must work even if \$libdir does not exist.
11577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11579 # If ld is used when linking, flag to hardcode \$libdir into
11580 # a binary during linking. This must work even if \$libdir does
11582 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11584 # Whether we need a single -rpath flag with a separated argument.
11585 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11587 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11588 # resulting binary.
11589 hardcode_direct=$hardcode_direct
11591 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11592 # resulting binary.
11593 hardcode_minus_L=$hardcode_minus_L
11595 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11596 # the resulting binary.
11597 hardcode_shlibpath_var=$hardcode_shlibpath_var
11599 # Set to yes if building a shared library automatically hardcodes DIR into the library
11600 # and all subsequent libraries and executables linked against it.
11601 hardcode_automatic=$hardcode_automatic
11603 # Variables whose values should be saved in libtool wrapper scripts and
11604 # restored at relink time.
11605 variables_saved_for_relink="$variables_saved_for_relink"
11607 # Whether libtool must link a program against all its dependency libraries.
11608 link_all_deplibs=$link_all_deplibs
11610 # Compile-time system search path for libraries
11611 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11613 # Run-time system search path for libraries
11614 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11616 # Fix the shell variable \$srcfile for the compiler.
11617 fix_srcfile_path="$fix_srcfile_path"
11619 # Set to yes if exported symbols are required.
11620 always_export_symbols=$always_export_symbols
11622 # The commands to list exported symbols.
11623 export_symbols_cmds=$lt_export_symbols_cmds
11625 # The commands to extract the exported symbol list from a shared archive.
11626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11628 # Symbols that should not be listed in the preloaded symbols.
11629 exclude_expsyms=$lt_exclude_expsyms
11631 # Symbols that must always be exported.
11632 include_expsyms=$lt_include_expsyms
11634 # ### END LIBTOOL CONFIG
11641 cat <<\EOF >> "$cfgfile"
11643 # AIX sometimes has problems with the GCC collect2 program. For some
11644 # reason, if we set the COLLECT_NAMES environment variable, the problems
11645 # vanish in a puff of smoke.
11646 if test "X${COLLECT_NAMES+set}" != Xset; then
11648 export COLLECT_NAMES
11654 # We use sed instead of cat because bash on DJGPP gets confused if
11655 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11656 # text mode, it properly converts lines to CR/LF. This bash problem
11657 # is reportedly fixed, but why not run on old versions too?
11658 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11660 mv -f "$cfgfile" "$ofile" || \
11661 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11665 # If there is no Makefile yet, we rely on a make rule to execute
11666 # `config.status --recheck' to rerun these tests and create the
11667 # libtool script then.
11668 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11669 if test -f "$ltmain_in"; then
11670 test -f Makefile && make "$ltmain"
11676 ac_cpp='$CPP $CPPFLAGS'
11677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11684 # Check whether --with-tags was given.
11685 if test "${with_tags+set}" = set; then
11686 withval=$with_tags; tagnames="$withval"
11690 if test -f "$ltmain" && test -n "$tagnames"; then
11691 if test ! -f "${ofile}"; then
11692 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11693 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11696 if test -z "$LTCC"; then
11697 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11698 if test -z "$LTCC"; then
11699 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11700 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11703 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11706 if test -z "$LTCFLAGS"; then
11707 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11710 # Extract list of available tagged configurations in $ofile.
11711 # Note that this assumes the entire list is on one line.
11712 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11715 for tagname in $tagnames; do
11717 # Check whether tagname contains only valid characters
11718 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11720 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11721 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11722 { (exit 1); exit 1; }; }
11726 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11728 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11729 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11730 { (exit 1); exit 1; }; }
11733 # Update the list of available tags.
11734 if test -n "$tagname"; then
11735 echo appending configuration tag \"$tagname\" to $ofile
11739 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11740 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11741 (test "X$CXX" != "Xg++"))) ; then
11743 ac_cpp='$CXXCPP $CPPFLAGS'
11744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11751 archive_cmds_need_lc_CXX=no
11752 allow_undefined_flag_CXX=
11753 always_export_symbols_CXX=no
11754 archive_expsym_cmds_CXX=
11755 export_dynamic_flag_spec_CXX=
11756 hardcode_direct_CXX=no
11757 hardcode_libdir_flag_spec_CXX=
11758 hardcode_libdir_flag_spec_ld_CXX=
11759 hardcode_libdir_separator_CXX=
11760 hardcode_minus_L_CXX=no
11761 hardcode_shlibpath_var_CXX=unsupported
11762 hardcode_automatic_CXX=no
11764 module_expsym_cmds_CXX=
11765 link_all_deplibs_CXX=unknown
11766 old_archive_cmds_CXX=$old_archive_cmds
11767 no_undefined_flag_CXX=
11768 whole_archive_flag_spec_CXX=
11769 enable_shared_with_static_runtimes_CXX=no
11771 # Dependencies to place before and after the object being linked:
11772 predep_objects_CXX=
11773 postdep_objects_CXX=
11776 compiler_lib_search_path_CXX=
11778 # Source file extension for C++ test sources.
11781 # Object file extension for compiled C++ test sources.
11785 # Code to be used in simple compile tests
11786 lt_simple_compile_test_code="int some_variable = 0;\n"
11788 # Code to be used in simple link tests
11789 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11791 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11793 # If no C compiler was specified, use CC.
11796 # If no C compiler flags were specified, use CFLAGS.
11797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11799 # Allow CC to be a program name with arguments.
11803 # save warnings/boilerplate of simple test code
11804 ac_outfile=conftest.$ac_objext
11805 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11807 _lt_compiler_boilerplate=`cat conftest.err`
11810 ac_outfile=conftest.$ac_objext
11811 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11813 _lt_linker_boilerplate=`cat conftest.err`
11817 # Allow CC to be a program name with arguments.
11822 lt_save_with_gnu_ld=$with_gnu_ld
11823 lt_save_path_LD=$lt_cv_path_LD
11824 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11825 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11827 $as_unset lt_cv_prog_gnu_ld
11829 if test -n "${lt_cv_path_LDCXX+set}"; then
11830 lt_cv_path_LD=$lt_cv_path_LDCXX
11832 $as_unset lt_cv_path_LD
11834 test -z "${LDCXX+set}" || LD=$LDCXX
11838 for cc_temp in $compiler""; do
11840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11849 # We don't want -fno-exception wen compiling C++ code, so set the
11850 # no_builtin_flag separately
11851 if test "$GXX" = yes; then
11852 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11854 lt_prog_compiler_no_builtin_flag_CXX=
11857 if test "$GXX" = yes; then
11858 # Set up default GNU C++ configuration
11861 # Check whether --with-gnu-ld was given.
11862 if test "${with_gnu_ld+set}" = set; then
11863 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11869 if test "$GCC" = yes; then
11870 # Check if gcc -print-prog-name=ld gives a path.
11871 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11872 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11875 # gcc leaves a trailing carriage return which upsets mingw
11876 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11878 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11881 # Accept absolute paths.
11883 re_direlt='/[^/][^/]*/\.\./'
11884 # Canonicalize the pathname of ld
11885 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11886 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11887 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11889 test -z "$LD" && LD="$ac_prog"
11892 # If it fails, then pretend we aren't using GCC.
11896 # If it is relative, then search for the first ld in PATH.
11897 with_gnu_ld=unknown
11900 elif test "$with_gnu_ld" = yes; then
11901 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11902 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11904 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11905 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11907 if test "${lt_cv_path_LD+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 if test -z "$LD"; then
11911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11912 for ac_dir in $PATH; do
11914 test -z "$ac_dir" && ac_dir=.
11915 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11916 lt_cv_path_LD="$ac_dir/$ac_prog"
11917 # Check to see if the program is GNU ld. I'd rather use --version,
11918 # but apparently some variants of GNU ld only accept -v.
11919 # Break only if it was the GNU/non-GNU ld that we prefer.
11920 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11921 *GNU* | *'with BFD'*)
11922 test "$with_gnu_ld" != no && break
11925 test "$with_gnu_ld" != yes && break
11932 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11936 LD="$lt_cv_path_LD"
11937 if test -n "$LD"; then
11938 { echo "$as_me:$LINENO: result: $LD" >&5
11939 echo "${ECHO_T}$LD" >&6; }
11941 { echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6; }
11944 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11945 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11946 { (exit 1); exit 1; }; }
11947 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11948 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11949 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11953 case `$LD -v 2>&1 </dev/null` in
11954 *GNU* | *'with BFD'*)
11955 lt_cv_prog_gnu_ld=yes
11958 lt_cv_prog_gnu_ld=no
11962 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11963 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11964 with_gnu_ld=$lt_cv_prog_gnu_ld
11968 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11969 # archiving commands below assume that GNU ld is being used.
11970 if test "$with_gnu_ld" = yes; then
11971 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11972 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'
11974 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11977 # If archive_cmds runs LD, not CC, wlarc should be empty
11978 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11979 # investigate it a little bit more. (MM)
11982 # ancient GNU ld didn't support --whole-archive et. al.
11983 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11984 grep 'no-whole-archive' > /dev/null; then
11985 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11987 whole_archive_flag_spec_CXX=
11993 # A generic and very simple default shared library creation
11994 # command for GNU C++ for the case where it uses the native
11995 # linker, instead of GNU ld. If possible, this setting should
11996 # overridden to take advantage of the native linker features on
11997 # the platform it is being used on.
11998 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12001 # Commands to make compiler produce verbose output that lists
12002 # what "hidden" libraries, object files and flags are used when
12003 # linking a shared library.
12004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12012 # PORTME: fill in a description of your system's C++ link characteristics
12013 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12018 # FIXME: insert proper C++ library support
12022 if test "$host_cpu" = ia64; then
12023 # On IA64, the linker does run time linking by default, so we don't
12024 # have to do anything special.
12025 aix_use_runtimelinking=no
12026 exp_sym_flag='-Bexport'
12029 aix_use_runtimelinking=no
12031 # Test if we are trying to use run time linking or normal
12032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12033 # need to do runtime linking.
12034 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12035 for ld_flag in $LDFLAGS; do
12038 aix_use_runtimelinking=yes
12046 exp_sym_flag='-bexport'
12047 no_entry_flag='-bnoentry'
12050 # When large executables or shared objects are built, AIX ld can
12051 # have problems creating the table of contents. If linking a library
12052 # or program results in "error TOC overflow" add -mminimal-toc to
12053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12056 archive_cmds_CXX=''
12057 hardcode_direct_CXX=yes
12058 hardcode_libdir_separator_CXX=':'
12059 link_all_deplibs_CXX=yes
12061 if test "$GXX" = yes; then
12062 case $host_os in aix4.[012]|aix4.[012].*)
12063 # We only want to do this on AIX 4.2 and lower, the check
12064 # below for broken collect2 doesn't work under 4.3+
12065 collect2name=`${CC} -print-prog-name=collect2`
12066 if test -f "$collect2name" && \
12067 strings "$collect2name" | grep resolve_lib_name >/dev/null
12069 # We have reworked collect2
12070 hardcode_direct_CXX=yes
12072 # We have old collect2
12073 hardcode_direct_CXX=unsupported
12074 # It fails to find uninstalled libraries when the uninstalled
12075 # path is not listed in the libpath. Setting hardcode_minus_L
12076 # to unsupported forces relinking
12077 hardcode_minus_L_CXX=yes
12078 hardcode_libdir_flag_spec_CXX='-L$libdir'
12079 hardcode_libdir_separator_CXX=
12083 shared_flag='-shared'
12084 if test "$aix_use_runtimelinking" = yes; then
12085 shared_flag="$shared_flag "'${wl}-G'
12089 if test "$host_cpu" = ia64; then
12090 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12091 # chokes on -Wl,-G. The following line is correct:
12094 if test "$aix_use_runtimelinking" = yes; then
12095 shared_flag='${wl}-G'
12097 shared_flag='${wl}-bM:SRE'
12102 # It seems that -bexpall does not export symbols beginning with
12103 # underscore (_), so it is better to generate a list of symbols to export.
12104 always_export_symbols_CXX=yes
12105 if test "$aix_use_runtimelinking" = yes; then
12106 # Warning - without using the other runtime loading flags (-brtl),
12107 # -berok will link without error, but may produce a broken library.
12108 allow_undefined_flag_CXX='-berok'
12109 # Determine the default libpath from the value encoded in an empty executable.
12110 cat >conftest.$ac_ext <<_ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (ac_try="$ac_link"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_link") 2>conftest.er1
12134 grep -v '^ *+' conftest.er1 >conftest.err
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_cxx_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest$ac_exeext &&
12142 $as_test_x conftest$ac_exeext; then
12144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12146 # Check for a 64-bit object if we didn't find anything.
12147 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; }
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157 conftest$ac_exeext conftest.$ac_ext
12158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12162 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"
12164 if test "$host_cpu" = ia64; then
12165 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12166 allow_undefined_flag_CXX="-z nodefs"
12167 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"
12169 # Determine the default libpath from the value encoded in an empty executable.
12170 cat >conftest.$ac_ext <<_ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_link") 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_cxx_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest$ac_exeext &&
12202 $as_test_x conftest$ac_exeext; then
12204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12206 # Check for a 64-bit object if we didn't find anything.
12207 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; }
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12217 conftest$ac_exeext conftest.$ac_ext
12218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12220 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12221 # Warning - without using the other run time loading flags,
12222 # -berok will link without error, but may produce a broken library.
12223 no_undefined_flag_CXX=' ${wl}-bernotok'
12224 allow_undefined_flag_CXX=' ${wl}-berok'
12225 # Exported symbols can be pulled into shared objects from archives
12226 whole_archive_flag_spec_CXX='$convenience'
12227 archive_cmds_need_lc_CXX=yes
12228 # This is similar to how AIX traditionally builds its shared libraries.
12229 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'
12235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12236 allow_undefined_flag_CXX=unsupported
12237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12238 # support --undefined. This deserves some investigation. FIXME
12239 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246 case $cc_basename in
12248 # FIXME: insert proper C++ library support
12254 cygwin* | mingw* | pw32*)
12255 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12256 # as there is no search path for DLLs.
12257 hardcode_libdir_flag_spec_CXX='-L$libdir'
12258 allow_undefined_flag_CXX=unsupported
12259 always_export_symbols_CXX=no
12260 enable_shared_with_static_runtimes_CXX=yes
12262 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12263 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'
12264 # If the export-symbols file already is a .def file (1st line
12265 # is EXPORTS), use it as is; otherwise, prepend...
12266 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12267 cp $export_symbols $output_objdir/$soname.def;
12269 echo EXPORTS > $output_objdir/$soname.def;
12270 cat $export_symbols >> $output_objdir/$soname.def;
12272 $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'
12277 darwin* | rhapsody*)
12279 rhapsody* | darwin1.[012])
12280 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12284 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12286 case ${MACOSX_DEPLOYMENT_TARGET} in
12288 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12291 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12297 archive_cmds_need_lc_CXX=no
12298 hardcode_direct_CXX=no
12299 hardcode_automatic_CXX=yes
12300 hardcode_shlibpath_var_CXX=unsupported
12301 whole_archive_flag_spec_CXX=''
12302 link_all_deplibs_CXX=yes
12304 if test "$GXX" = yes ; then
12305 lt_int_apple_cc_single_mod=no
12306 output_verbose_link_cmd='echo'
12307 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12308 lt_int_apple_cc_single_mod=yes
12310 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12311 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12313 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'
12315 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12316 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12317 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12318 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}'
12320 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}'
12322 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}'
12324 case $cc_basename in
12326 output_verbose_link_cmd='echo'
12327 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'
12328 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12330 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}'
12331 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}'
12341 case $cc_basename in
12343 # FIXME: insert proper C++ library support
12347 # Green Hills C++ Compiler
12348 # FIXME: insert proper C++ library support
12352 # FIXME: insert proper C++ library support
12358 # C++ shared libraries reported to be fairly broken before switch to ELF
12362 archive_cmds_need_lc_CXX=no
12364 freebsd* | dragonfly*)
12365 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12372 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12373 hardcode_libdir_separator_CXX=:
12374 export_dynamic_flag_spec_CXX='${wl}-E'
12375 hardcode_direct_CXX=yes
12376 hardcode_minus_L_CXX=yes # Not in the search PATH,
12377 # but as the default
12378 # location of the library.
12380 case $cc_basename in
12382 # FIXME: insert proper C++ library support
12386 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'
12387 # Commands to make compiler produce verbose output that lists
12388 # what "hidden" libraries, object files and flags are used when
12389 # linking a shared library.
12391 # There doesn't appear to be a way to prevent this compiler from
12392 # explicitly linking system object files so we need to strip them
12393 # from the output so that they don't get included in the library
12395 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'
12398 if test "$GXX" = yes; then
12399 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'
12401 # FIXME: insert proper C++ library support
12408 if test $with_gnu_ld = no; then
12409 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12410 hardcode_libdir_separator_CXX=:
12414 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12417 export_dynamic_flag_spec_CXX='${wl}-E'
12423 hardcode_direct_CXX=no
12424 hardcode_shlibpath_var_CXX=no
12427 hardcode_direct_CXX=yes
12428 hardcode_minus_L_CXX=yes # Not in the search PATH,
12429 # but as the default
12430 # location of the library.
12434 case $cc_basename in
12436 # FIXME: insert proper C++ library support
12442 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12445 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12448 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12451 # Commands to make compiler produce verbose output that lists
12452 # what "hidden" libraries, object files and flags are used when
12453 # linking a shared library.
12455 # There doesn't appear to be a way to prevent this compiler from
12456 # explicitly linking system object files so we need to strip them
12457 # from the output so that they don't get included in the library
12459 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'
12462 if test "$GXX" = yes; then
12463 if test $with_gnu_ld = no; then
12466 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12469 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12472 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'
12477 # FIXME: insert proper C++ library support
12484 hardcode_direct_CXX=no
12485 hardcode_shlibpath_var_CXX=no
12486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12487 export_dynamic_flag_spec_CXX='${wl}-E'
12488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12489 # Instead, shared libraries are loaded at an image base (0x10000000 by
12490 # default) and relocated if they conflict, which is a slow very memory
12491 # consuming and fragmenting process. To avoid this, we pick a random,
12492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12493 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12494 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'
12495 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'
12498 case $cc_basename in
12501 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'
12503 # Archives containing C++ object files must be created using
12504 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12505 # necessary to make sure instantiated templates are included
12507 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12510 if test "$GXX" = yes; then
12511 if test "$with_gnu_ld" = no; then
12512 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'
12514 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'
12517 link_all_deplibs_CXX=yes
12520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12521 hardcode_libdir_separator_CXX=:
12523 linux* | k*bsd*-gnu)
12524 case $cc_basename in
12526 # Kuck and Associates, Inc. (KAI) C++ Compiler
12528 # KCC will only create a shared library if the output file
12529 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12530 # to its proper name (with version) after linking.
12531 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'
12532 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'
12533 # Commands to make compiler produce verbose output that lists
12534 # what "hidden" libraries, object files and flags are used when
12535 # linking a shared library.
12537 # There doesn't appear to be a way to prevent this compiler from
12538 # explicitly linking system object files so we need to strip them
12539 # from the output so that they don't get included in the library
12541 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'
12543 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12546 # Archives containing C++ object files must be created using
12547 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12548 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12553 # version 8.0 and above of icpc choke on multiply defined symbols
12554 # if we add $predep_objects and $postdep_objects, however 7.1 and
12555 # earlier do not add the objects themselves.
12556 case `$CC -V 2>&1` in
12558 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12559 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'
12561 *) # Version 8.0 or newer
12564 ia64*) tmp_idyn=' -i_dynamic';;
12566 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12567 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'
12570 archive_cmds_need_lc_CXX=no
12571 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12573 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12576 # Portland Group C++ compiler
12577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12578 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'
12580 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12581 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12582 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'
12586 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12587 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'
12589 runpath_var=LD_RUN_PATH
12590 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12591 hardcode_libdir_separator_CXX=:
12593 # Commands to make compiler produce verbose output that lists
12594 # what "hidden" libraries, object files and flags are used when
12595 # linking a shared library.
12597 # There doesn't appear to be a way to prevent this compiler from
12598 # explicitly linking system object files so we need to strip them
12599 # from the output so that they don't get included in the library
12601 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'
12606 # FIXME: insert proper C++ library support
12610 # FIXME: insert proper C++ library support
12614 case $cc_basename in
12616 # FIXME: insert proper C++ library support
12620 # FIXME: insert proper C++ library support
12625 netbsd* | netbsdelf*-gnu)
12626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12627 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12629 hardcode_libdir_flag_spec_CXX='-R$libdir'
12630 hardcode_direct_CXX=yes
12631 hardcode_shlibpath_var_CXX=no
12633 # Workaround some broken pre-1.5 toolchains
12634 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12637 # C++ shared libraries are fairly broken
12641 hardcode_direct_CXX=yes
12642 hardcode_shlibpath_var_CXX=no
12643 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12644 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12646 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12647 export_dynamic_flag_spec_CXX='${wl}-E'
12648 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12650 output_verbose_link_cmd='echo'
12653 case $cc_basename in
12655 # Kuck and Associates, Inc. (KAI) C++ Compiler
12657 # KCC will only create a shared library if the output file
12658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12659 # to its proper name (with version) after linking.
12660 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'
12662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12663 hardcode_libdir_separator_CXX=:
12665 # Archives containing C++ object files must be created using
12666 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12667 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12671 # Rational C++ 2.4.1
12672 # FIXME: insert proper C++ library support
12676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12677 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'
12679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12680 hardcode_libdir_separator_CXX=:
12682 # Commands to make compiler produce verbose output that lists
12683 # what "hidden" libraries, object files and flags are used when
12684 # linking a shared library.
12686 # There doesn't appear to be a way to prevent this compiler from
12687 # explicitly linking system object files so we need to strip them
12688 # from the output so that they don't get included in the library
12690 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'
12693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12694 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12695 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'
12697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12698 hardcode_libdir_separator_CXX=:
12700 # Commands to make compiler produce verbose output that lists
12701 # what "hidden" libraries, object files and flags are used when
12702 # linking a shared library.
12703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12706 # FIXME: insert proper C++ library support
12713 case $cc_basename in
12715 # Kuck and Associates, Inc. (KAI) C++ Compiler
12717 # KCC will only create a shared library if the output file
12718 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12719 # to its proper name (with version) after linking.
12720 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'
12722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12723 hardcode_libdir_separator_CXX=:
12725 # Archives containing C++ object files must be created using
12726 # the KAI C++ compiler.
12727 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12730 # Rational C++ 2.4.1
12731 # FIXME: insert proper C++ library support
12735 allow_undefined_flag_CXX=' -expect_unresolved \*'
12736 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'
12737 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12738 echo "-hidden">> $lib.exp~
12739 $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~
12742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12743 hardcode_libdir_separator_CXX=:
12745 # Commands to make compiler produce verbose output that lists
12746 # what "hidden" libraries, object files and flags are used when
12747 # linking a shared library.
12749 # There doesn't appear to be a way to prevent this compiler from
12750 # explicitly linking system object files so we need to strip them
12751 # from the output so that they don't get included in the library
12753 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'
12756 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12757 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12758 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'
12760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12761 hardcode_libdir_separator_CXX=:
12763 # Commands to make compiler produce verbose output that lists
12764 # what "hidden" libraries, object files and flags are used when
12765 # linking a shared library.
12766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12769 # FIXME: insert proper C++ library support
12776 # FIXME: insert proper C++ library support
12780 case $cc_basename in
12783 # FIXME: insert proper C++ library support
12788 # FIXME: insert proper C++ library support
12792 # FIXME: insert proper C++ library support
12798 case $cc_basename in
12800 # Sun C++ 4.2, 5.x and Centerline C++
12801 archive_cmds_need_lc_CXX=yes
12802 no_undefined_flag_CXX=' -zdefs'
12803 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12804 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12805 $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'
12807 hardcode_libdir_flag_spec_CXX='-R$libdir'
12808 hardcode_shlibpath_var_CXX=no
12810 solaris2.[0-5] | solaris2.[0-5].*) ;;
12812 # The C++ compiler is used as linker so we must use $wl
12813 # flag to pass the commands to the underlying system
12814 # linker. We must also pass each convience library through
12815 # to the system linker between allextract/defaultextract.
12816 # The C++ compiler will combine linker options so we
12817 # cannot just pass the convience library names through
12819 # Supported since Solaris 2.6 (maybe 2.5.1?)
12820 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'
12823 link_all_deplibs_CXX=yes
12825 output_verbose_link_cmd='echo'
12827 # Archives containing C++ object files must be created using
12828 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12829 # necessary to make sure instantiated templates are included
12831 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12834 # Green Hills C++ Compiler
12835 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12837 # The C++ compiler must be used to create the archive.
12838 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12841 # GNU C++ compiler with Solaris linker
12842 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12843 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12844 if $CC --version | grep -v '^2\.7' > /dev/null; then
12845 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12846 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12847 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12849 # Commands to make compiler produce verbose output that lists
12850 # what "hidden" libraries, object files and flags are used when
12851 # linking a shared library.
12852 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12854 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12856 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12857 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12858 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12866 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12872 no_undefined_flag_CXX='${wl}-z,text'
12873 archive_cmds_need_lc_CXX=no
12874 hardcode_shlibpath_var_CXX=no
12875 runpath_var='LD_RUN_PATH'
12877 case $cc_basename in
12879 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12884 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12888 sysv5* | sco3.2v5* | sco5v6*)
12889 # Note: We can NOT use -z defs as we might desire, because we do not
12890 # link with -lc, and that would cause any symbols used from libc to
12891 # always be unresolved, which means just about no library would
12892 # ever link correctly. If we're not using GNU ld we use -z text
12893 # though, which does catch some bad symbols but isn't as heavy-handed
12895 # For security reasons, it is highly recommended that you always
12896 # use absolute paths for naming shared libraries, and exclude the
12897 # DT_RUNPATH tag from executables and libraries. But doing so
12898 # requires that you compile everything twice, which is a pain.
12899 # So that behaviour is only enabled if SCOABSPATH is set to a
12900 # non-empty value in the environment. Most likely only useful for
12901 # creating official distributions of packages.
12902 # This is a hack until libtool officially supports absolute path
12903 # names for shared libraries.
12904 no_undefined_flag_CXX='${wl}-z,text'
12905 allow_undefined_flag_CXX='${wl}-z,nodefs'
12906 archive_cmds_need_lc_CXX=no
12907 hardcode_shlibpath_var_CXX=no
12908 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12909 hardcode_libdir_separator_CXX=':'
12910 link_all_deplibs_CXX=yes
12911 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12912 runpath_var='LD_RUN_PATH'
12914 case $cc_basename in
12916 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12917 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12920 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12921 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12926 case $cc_basename in
12928 # NonStop-UX NCC 3.20
12929 # FIXME: insert proper C++ library support
12933 # FIXME: insert proper C++ library support
12939 # FIXME: insert proper C++ library support
12943 # FIXME: insert proper C++ library support
12947 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12948 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12949 test "$ld_shlibs_CXX" = no && can_build_shared=no
12955 ## There is no encapsulation within the following macros, do not change
12956 ## the running order or otherwise move them around unless you know exactly
12957 ## what you are doing...
12959 cat > conftest.$ac_ext <<EOF
12963 Foo (void) { a = 0; }
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; then
12974 # Parse the compiler output and extract the necessary
12975 # objects, libraries and library flags.
12977 # Sentinel used to keep track of whether or not we are before
12978 # the conftest object file.
12979 pre_test_object_deps_done=no
12981 # The `*' in the case matches for architectures that use `case' in
12982 # $output_verbose_cmd can trigger glob expansion during the loop
12983 # eval without this substitution.
12984 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12986 for p in `eval $output_verbose_link_cmd`; do
12990 # Some compilers place space between "-{L,R}" and the path.
12991 # Remove the space.
12992 if test $p = "-L" \
12993 || test $p = "-R"; then
13000 if test "$pre_test_object_deps_done" = no; then
13003 # Internal compiler library paths should come after those
13004 # provided the user. The postdeps already come after the
13005 # user supplied libs so there is no need to process them.
13006 if test -z "$compiler_lib_search_path_CXX"; then
13007 compiler_lib_search_path_CXX="${prev}${p}"
13009 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13012 # The "-l" case would never come before the object being
13013 # linked, so don't bother handling this case.
13016 if test -z "$postdeps_CXX"; then
13017 postdeps_CXX="${prev}${p}"
13019 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13025 # This assumes that the test object file only shows up
13026 # once in the compiler output.
13027 if test "$p" = "conftest.$objext"; then
13028 pre_test_object_deps_done=yes
13032 if test "$pre_test_object_deps_done" = no; then
13033 if test -z "$predep_objects_CXX"; then
13034 predep_objects_CXX="$p"
13036 predep_objects_CXX="$predep_objects_CXX $p"
13039 if test -z "$postdep_objects_CXX"; then
13040 postdep_objects_CXX="$p"
13042 postdep_objects_CXX="$postdep_objects_CXX $p"
13047 *) ;; # Ignore the rest.
13055 echo "libtool.m4: error: problem compiling CXX test program"
13058 $rm -f confest.$objext
13060 # PORTME: override above test on systems where it is broken
13063 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13064 # hack all around it, let's just trust "g++" to DTRT.
13065 predep_objects_CXX=
13066 postdep_objects_CXX=
13071 case $cc_basename in
13073 # Adding this requires a known-good setup of shared libraries for
13074 # Sun compiler versions before 5.6, else PIC objects from an old
13075 # archive will be linked into the output, leading to subtle bugs.
13076 postdeps_CXX='-lCstd -lCrun'
13083 case " $postdeps_CXX " in
13084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13087 lt_prog_compiler_wl_CXX=
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX=
13091 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13092 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13094 # C++ specific cases for pic, static, wl, etc.
13095 if test "$GXX" = yes; then
13096 lt_prog_compiler_wl_CXX='-Wl,'
13097 lt_prog_compiler_static_CXX='-static'
13101 # All AIX code is PIC.
13102 if test "$host_cpu" = ia64; then
13103 # AIX 5 now supports IA64 processor
13104 lt_prog_compiler_static_CXX='-Bstatic'
13108 # FIXME: we need at least 68020 code to build shared libraries, but
13109 # adding the `-m68020' flag to GCC prevents building anything better,
13111 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13113 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114 # PIC is the default for these OSes.
13116 mingw* | os2* | pw32*)
13117 # This hack is so that the source file can tell whether it is being
13118 # built for inclusion in a dll (and should export symbols for example).
13119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13121 darwin* | rhapsody*)
13122 # PIC is the default on this platform
13123 # Common symbols not allowed in MH_DYLIB files
13124 lt_prog_compiler_pic_CXX='-fno-common'
13127 # DJGPP does not support shared libraries at all
13128 lt_prog_compiler_pic_CXX=
13131 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13132 # Instead, we relocate shared libraries at runtime.
13135 if test -d /usr/nec; then
13136 lt_prog_compiler_pic_CXX=-Kconform_pic
13140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13141 # not for PA HP-UX.
13146 lt_prog_compiler_pic_CXX='-fPIC'
13151 lt_prog_compiler_pic_CXX='-fPIC'
13157 # All AIX code is PIC.
13158 if test "$host_cpu" = ia64; then
13159 # AIX 5 now supports IA64 processor
13160 lt_prog_compiler_static_CXX='-Bstatic'
13162 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13166 case $cc_basename in
13168 # Green Hills C++ Compiler
13169 # _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"
13174 # PIC is the default on this platform
13175 # Common symbols not allowed in MH_DYLIB files
13176 case $cc_basename in
13178 lt_prog_compiler_pic_CXX='-qnocommon'
13179 lt_prog_compiler_wl_CXX='-Wl,'
13184 case $cc_basename in
13186 lt_prog_compiler_pic_CXX='-KPIC'
13189 # Green Hills C++ Compiler
13190 lt_prog_compiler_pic_CXX='-pic'
13196 freebsd* | dragonfly*)
13197 # FreeBSD uses GNU C++
13199 hpux9* | hpux10* | hpux11*)
13200 case $cc_basename in
13202 lt_prog_compiler_wl_CXX='-Wl,'
13203 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13204 if test "$host_cpu" != ia64; then
13205 lt_prog_compiler_pic_CXX='+Z'
13209 lt_prog_compiler_wl_CXX='-Wl,'
13210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13216 lt_prog_compiler_pic_CXX='+Z'
13225 # This is c89, which is MS Visual C++ (no shared libs)
13226 # Anyone wants to do a port?
13228 irix5* | irix6* | nonstopux*)
13229 case $cc_basename in
13231 lt_prog_compiler_wl_CXX='-Wl,'
13232 lt_prog_compiler_static_CXX='-non_shared'
13233 # CC pic flag -KPIC is the default.
13239 linux* | k*bsd*-gnu)
13240 case $cc_basename in
13243 lt_prog_compiler_wl_CXX='--backend -Wl,'
13244 lt_prog_compiler_pic_CXX='-fPIC'
13248 lt_prog_compiler_wl_CXX='-Wl,'
13249 lt_prog_compiler_pic_CXX='-KPIC'
13250 lt_prog_compiler_static_CXX='-static'
13253 # Portland Group C++ compiler.
13254 lt_prog_compiler_wl_CXX='-Wl,'
13255 lt_prog_compiler_pic_CXX='-fpic'
13256 lt_prog_compiler_static_CXX='-Bstatic'
13260 # Make sure the PIC flag is empty. It appears that all Alpha
13261 # Linux and Compaq Tru64 Unix objects are PIC.
13262 lt_prog_compiler_pic_CXX=
13263 lt_prog_compiler_static_CXX='-non_shared'
13274 case $cc_basename in
13276 lt_prog_compiler_pic_CXX='-W c,exportall'
13282 netbsd* | netbsdelf*-gnu)
13284 osf3* | osf4* | osf5*)
13285 case $cc_basename in
13287 lt_prog_compiler_wl_CXX='--backend -Wl,'
13290 # Rational C++ 2.4.1
13291 lt_prog_compiler_pic_CXX='-pic'
13294 # Digital/Compaq C++
13295 lt_prog_compiler_wl_CXX='-Wl,'
13296 # Make sure the PIC flag is empty. It appears that all Alpha
13297 # Linux and Compaq Tru64 Unix objects are PIC.
13298 lt_prog_compiler_pic_CXX=
13299 lt_prog_compiler_static_CXX='-non_shared'
13308 case $cc_basename in
13310 # Sun C++ 4.2, 5.x and Centerline C++
13311 lt_prog_compiler_pic_CXX='-KPIC'
13312 lt_prog_compiler_static_CXX='-Bstatic'
13313 lt_prog_compiler_wl_CXX='-Qoption ld '
13316 # Green Hills C++ Compiler
13317 lt_prog_compiler_pic_CXX='-PIC'
13324 case $cc_basename in
13327 lt_prog_compiler_pic_CXX='-pic'
13328 lt_prog_compiler_static_CXX='-Bstatic'
13332 lt_prog_compiler_pic_CXX='-pic'
13339 case $cc_basename in
13341 # NonStop-UX NCC 3.20
13342 lt_prog_compiler_pic_CXX='-KPIC'
13348 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13349 case $cc_basename in
13351 lt_prog_compiler_wl_CXX='-Wl,'
13352 lt_prog_compiler_pic_CXX='-KPIC'
13353 lt_prog_compiler_static_CXX='-Bstatic'
13360 lt_prog_compiler_can_build_shared_CXX=no
13365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13366 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13369 # Check to make sure the PIC flag actually works.
13371 if test -n "$lt_prog_compiler_pic_CXX"; then
13373 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13375 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 lt_prog_compiler_pic_works_CXX=no
13379 ac_outfile=conftest.$ac_objext
13380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13381 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13382 # Insert the option either (1) after the last *FLAGS variable, or
13383 # (2) before a word containing "conftest.", or (3) at the end.
13384 # Note that $ac_compile itself does not contain backslashes and begins
13385 # with a dollar sign (not a hyphen), so the echo should work correctly.
13386 # The option is referenced via a variable to avoid confusing sed.
13387 lt_compile=`echo "$ac_compile" | $SED \
13388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13390 -e 's:$: $lt_compiler_flag:'`
13391 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13392 (eval "$lt_compile" 2>conftest.err)
13394 cat conftest.err >&5
13395 echo "$as_me:__oline__: \$? = $ac_status" >&5
13396 if (exit $ac_status) && test -s "$ac_outfile"; then
13397 # The compiler can only warn and ignore the option if not recognized
13398 # So say no if there are warnings other than the usual output.
13399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13402 lt_prog_compiler_pic_works_CXX=yes
13408 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13409 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13411 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13412 case $lt_prog_compiler_pic_CXX in
13414 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13417 lt_prog_compiler_pic_CXX=
13418 lt_prog_compiler_can_build_shared_CXX=no
13423 # For platforms which do not support PIC, -DPIC is meaningless:
13425 lt_prog_compiler_pic_CXX=
13428 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13433 # Check to make sure the static flag actually works.
13435 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13436 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13438 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 lt_prog_compiler_static_works_CXX=no
13442 save_LDFLAGS="$LDFLAGS"
13443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13446 # The linker can only warn and ignore the option if not recognized
13447 # So say no if there are warnings
13448 if test -s conftest.err; then
13449 # Append any errors to the config.log.
13450 cat conftest.err 1>&5
13451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13453 if diff conftest.exp conftest.er2 >/dev/null; then
13454 lt_prog_compiler_static_works_CXX=yes
13457 lt_prog_compiler_static_works_CXX=yes
13461 LDFLAGS="$save_LDFLAGS"
13464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13465 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13467 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13470 lt_prog_compiler_static_CXX=
13474 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13476 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 lt_cv_prog_compiler_c_o_CXX=no
13480 $rm -r conftest 2>/dev/null
13484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13486 lt_compiler_flag="-o out/conftest2.$ac_objext"
13487 # Insert the option either (1) after the last *FLAGS variable, or
13488 # (2) before a word containing "conftest.", or (3) at the end.
13489 # Note that $ac_compile itself does not contain backslashes and begins
13490 # with a dollar sign (not a hyphen), so the echo should work correctly.
13491 lt_compile=`echo "$ac_compile" | $SED \
13492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13494 -e 's:$: $lt_compiler_flag:'`
13495 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13496 (eval "$lt_compile" 2>out/conftest.err)
13498 cat out/conftest.err >&5
13499 echo "$as_me:__oline__: \$? = $ac_status" >&5
13500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13502 # The compiler can only warn and ignore the option if not recognized
13503 # So say no if there are warnings
13504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13507 lt_cv_prog_compiler_c_o_CXX=yes
13512 # SGI C++ compiler will create directory out/ii_files/ for
13513 # template instantiation
13514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13515 $rm out/* && rmdir out
13521 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13525 hard_links="nottested"
13526 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13527 # do not overwrite the value of need_locks provided by the user
13528 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13534 ln conftest.a conftest.b 2>&5 || hard_links=no
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536 { echo "$as_me:$LINENO: result: $hard_links" >&5
13537 echo "${ECHO_T}$hard_links" >&6; }
13538 if test "$hard_links" = no; then
13539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13547 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13550 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13553 # If we're using GNU nm, then we don't want the "-C" option.
13554 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13555 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13556 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'
13558 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'
13562 export_symbols_cmds_CXX="$ltdll_cmds"
13565 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'
13567 linux* | k*bsd*-gnu)
13568 link_all_deplibs_CXX=no
13571 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13575 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13576 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13577 test "$ld_shlibs_CXX" = no && can_build_shared=no
13580 # Do we need to explicitly link libc?
13582 case "x$archive_cmds_need_lc_CXX" in
13584 # Assume -lc should be added
13585 archive_cmds_need_lc_CXX=yes
13587 if test "$enable_shared" = yes && test "$GCC" = yes; then
13588 case $archive_cmds_CXX in
13590 # FIXME: we may have to deal with multi-command sequences.
13593 # Test whether the compiler implicitly links with -lc since on some
13594 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13595 # to ld, don't add -lc before -lgcc.
13596 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13597 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13602 (eval $ac_compile) 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } 2>conftest.err; then
13608 libobjs=conftest.$ac_objext
13610 wl=$lt_prog_compiler_wl_CXX
13611 pic_flag=$lt_prog_compiler_pic_CXX
13617 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13618 allow_undefined_flag_CXX=
13619 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13620 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }
13625 archive_cmds_need_lc_CXX=no
13627 archive_cmds_need_lc_CXX=yes
13629 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13631 cat conftest.err 1>&5
13634 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13635 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13642 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13643 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13644 library_names_spec=
13645 libname_spec='lib$name'
13649 postuninstall_cmds=
13653 shlibpath_overrides_runpath=unknown
13655 dynamic_linker="$host_os ld.so"
13656 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13657 if test "$GCC" = yes; then
13658 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13659 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13660 # if the path contains ";" then we assume it to be the separator
13661 # otherwise default to the standard path separator (i.e. ":") - it is
13662 # assumed that no part of a normal pathname contains ";" but that should
13663 # okay in the real world where ";" in dirpaths is itself problematic.
13664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13669 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13671 need_lib_prefix=unknown
13672 hardcode_into_libs=no
13674 # when you set need_version to no, make sure it does not cause -set_version
13675 # flags to be left without arguments
13676 need_version=unknown
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13682 shlibpath_var=LIBPATH
13684 # AIX 3 has no versioning support, so we append a major version to the name.
13685 soname_spec='${libname}${release}${shared_ext}$major'
13692 hardcode_into_libs=yes
13693 if test "$host_cpu" = ia64; then
13694 # AIX 5 supports IA64
13695 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13696 shlibpath_var=LD_LIBRARY_PATH
13698 # With GCC up to 2.95.x, collect2 would create an import file
13699 # for dependence libraries. The import file would start with
13700 # the line `#! .'. This would cause the generated library to
13701 # depend on `.', always an invalid library. This was fixed in
13702 # development snapshots of GCC prior to 3.0.
13704 aix4 | aix4.[01] | aix4.[01].*)
13705 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13707 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13710 can_build_shared=no
13714 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13715 # soname into executable. Probably we can add versioning support to
13716 # collect2, so additional links can be useful in future.
13717 if test "$aix_use_runtimelinking" = yes; then
13718 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13719 # instead of lib<name>.a to let people know that these are not
13720 # typical AIX shared libraries.
13721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723 # We preserve .a as extension for shared libraries through AIX4.2
13724 # and later when we are not doing run time linking.
13725 library_names_spec='${libname}${release}.a $libname.a'
13726 soname_spec='${libname}${release}${shared_ext}$major'
13728 shlibpath_var=LIBPATH
13733 library_names_spec='$libname.ixlibrary $libname.a'
13734 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13735 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'
13739 library_names_spec='${libname}${shared_ext}'
13740 dynamic_linker="$host_os ld.so"
13741 shlibpath_var=LIBRARY_PATH
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13749 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13750 shlibpath_var=LD_LIBRARY_PATH
13751 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13752 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13753 # the default ld.so.conf also contains /usr/contrib/lib and
13754 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13755 # libtool to hard-code these into programs
13758 cygwin* | mingw* | pw32*)
13759 version_type=windows
13764 case $GCC,$host_os in
13765 yes,cygwin* | yes,mingw* | yes,pw32*)
13766 library_names_spec='$libname.dll.a'
13767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13768 postinstall_cmds='base_file=`basename \${file}`~
13769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13770 dldir=$destdir/`dirname \$dlpath`~
13771 test -d \$dldir || mkdir -p \$dldir~
13772 $install_prog $dir/$dlname \$dldir/$dlname~
13773 chmod a+x \$dldir/$dlname'
13774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13775 dlpath=$dir/\$dldll~
13777 shlibpath_overrides_runpath=yes
13781 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13782 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13783 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13786 # MinGW DLLs use traditional 'lib' prefix
13787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13788 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13789 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13790 # It is most probably a Windows format PATH printed by
13791 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13792 # path with ; separators, and with drive letters. We can handle the
13793 # drive letters (cygwin fileutils understands them), so leave them,
13794 # especially as we might pass files found there to a mingw objdump,
13795 # which wouldn't understand a cygwinified path. Ahh.
13796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13802 # pw32 DLLs use 'pw' prefix rather than 'lib'
13803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13809 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13812 dynamic_linker='Win32 ld.exe'
13813 # FIXME: first we should search . and the directory the executable is in
13817 darwin* | rhapsody*)
13818 dynamic_linker="$host_os dyld"
13819 version_type=darwin
13822 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13823 soname_spec='${libname}${release}${major}$shared_ext'
13824 shlibpath_overrides_runpath=yes
13825 shlibpath_var=DYLD_LIBRARY_PATH
13826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13827 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13828 if test "$GCC" = yes; then
13829 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"`
13831 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13833 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13841 soname_spec='${libname}${release}${shared_ext}$major'
13842 shlibpath_var=LD_LIBRARY_PATH
13849 freebsd* | dragonfly*)
13850 # DragonFly does not have aout. When/if they implement a new
13851 # versioning mechanism, adjust this.
13852 if test -x /usr/bin/objformat; then
13853 objformat=`/usr/bin/objformat`
13856 freebsd[123]*) objformat=aout ;;
13857 *) objformat=elf ;;
13860 version_type=freebsd-$objformat
13861 case $version_type in
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13872 shlibpath_var=LD_LIBRARY_PATH
13875 shlibpath_overrides_runpath=yes
13877 freebsd3.[01]* | freebsdelf3.[01]*)
13878 shlibpath_overrides_runpath=yes
13879 hardcode_into_libs=yes
13881 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13882 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13883 shlibpath_overrides_runpath=no
13884 hardcode_into_libs=yes
13886 freebsd*) # from 4.6 on
13887 shlibpath_overrides_runpath=yes
13888 hardcode_into_libs=yes
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 hardcode_into_libs=yes
13903 hpux9* | hpux10* | hpux11*)
13904 # Give a soname corresponding to the major version so that dld.sl refuses to
13905 # link against other versions.
13912 hardcode_into_libs=yes
13913 dynamic_linker="$host_os dld.so"
13914 shlibpath_var=LD_LIBRARY_PATH
13915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13917 soname_spec='${libname}${release}${shared_ext}$major'
13918 if test "X$HPUX_IA64_MODE" = X32; then
13919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13927 hardcode_into_libs=yes
13928 dynamic_linker="$host_os dld.sl"
13929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13938 dynamic_linker="$host_os dld.sl"
13939 shlibpath_var=SHLIB_PATH
13940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942 soname_spec='${libname}${release}${shared_ext}$major'
13945 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13946 postinstall_cmds='chmod 555 $lib'
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13956 shlibpath_var=LD_LIBRARY_PATH
13957 shlibpath_overrides_runpath=no
13958 hardcode_into_libs=yes
13961 irix5* | irix6* | nonstopux*)
13963 nonstopux*) version_type=nonstopux ;;
13965 if test "$lt_cv_prog_gnu_ld" = yes; then
13973 soname_spec='${libname}${release}${shared_ext}$major'
13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13976 irix5* | nonstopux*)
13977 libsuff= shlibsuff=
13980 case $LD in # libtool.m4 will add one of these switches to LD
13981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13982 libsuff= shlibsuff= libmagic=32-bit;;
13983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13984 libsuff=32 shlibsuff=N32 libmagic=N32;;
13985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13987 *) libsuff= shlibsuff= libmagic=never-match;;
13991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13992 shlibpath_overrides_runpath=no
13993 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13994 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13995 hardcode_into_libs=yes
13998 # No shared lib support for Linux oldld, aout, or coff.
13999 linux*oldld* | linux*aout* | linux*coff*)
14003 # This must be Linux ELF.
14004 linux* | k*bsd*-gnu)
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 soname_spec='${libname}${release}${shared_ext}$major'
14010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14011 shlibpath_var=LD_LIBRARY_PATH
14012 shlibpath_overrides_runpath=no
14013 # This implies no fast_install, which is unacceptable.
14014 # Some rework will be needed to allow for fast_install
14015 # before this can be enabled.
14016 hardcode_into_libs=yes
14018 # Append ld.so.conf contents to the search path
14019 if test -f /etc/ld.so.conf; then
14020 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' ' '`
14021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14024 # We used to test for /lib/ld.so.1 and disable shared libraries on
14025 # powerpc, because MkLinux only supported shared libraries with the
14026 # GNU dynamic linker. Since this was broken with cross compilers,
14027 # most powerpc-linux boxes support dynamic linking these days and
14028 # people can always --disable-shared, the test was removed, and we
14029 # assume the GNU/Linux dynamic linker is in use.
14030 dynamic_linker='GNU/Linux ld.so'
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 shlibpath_overrides_runpath=no
14041 hardcode_into_libs=yes
14042 dynamic_linker='NetBSD ld.elf_so'
14049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14052 dynamic_linker='NetBSD (a.out) ld.so'
14054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14055 soname_spec='${libname}${release}${shared_ext}$major'
14056 dynamic_linker='NetBSD ld.elf_so'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 shlibpath_overrides_runpath=yes
14060 hardcode_into_libs=yes
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 shlibpath_var=LD_LIBRARY_PATH
14067 shlibpath_overrides_runpath=yes
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 soname_spec='${libname}${release}${shared_ext}$major'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 shlibpath_overrides_runpath=yes
14082 sys_lib_dlsearch_path_spec="/usr/lib"
14084 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14086 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14087 *) need_version=no ;;
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14091 shlibpath_var=LD_LIBRARY_PATH
14092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094 openbsd2.[89] | openbsd2.[89].*)
14095 shlibpath_overrides_runpath=no
14098 shlibpath_overrides_runpath=yes
14102 shlibpath_overrides_runpath=yes
14107 libname_spec='$name'
14110 library_names_spec='$libname${shared_ext} $libname.a'
14111 dynamic_linker='OS/2 ld.exe'
14112 shlibpath_var=LIBPATH
14115 osf3* | osf4* | osf5*)
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14123 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 shlibpath_overrides_runpath=yes
14134 hardcode_into_libs=yes
14135 # ldd complains unless libraries are executable
14136 postinstall_cmds='chmod +x $lib'
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=yes
14145 if test "$with_gnu_ld" = yes; then
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 soname_spec='${libname}${release}${shared_ext}$major'
14155 shlibpath_var=LD_LIBRARY_PATH
14156 case $host_vendor in
14158 shlibpath_overrides_runpath=no
14160 export_dynamic_flag_spec='${wl}-Blargedynsym'
14161 runpath_var=LD_RUN_PATH
14169 shlibpath_overrides_runpath=no
14170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14176 if test -d /usr/nec ;then
14178 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14179 soname_spec='$libname${shared_ext}.$major'
14180 shlibpath_var=LD_LIBRARY_PATH
14184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14185 version_type=freebsd-elf
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14189 soname_spec='${libname}${release}${shared_ext}$major'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 hardcode_into_libs=yes
14192 if test "$with_gnu_ld" = yes; then
14193 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14194 shlibpath_overrides_runpath=no
14196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14197 shlibpath_overrides_runpath=yes
14200 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14204 sys_lib_dlsearch_path_spec='/usr/lib'
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14210 soname_spec='${libname}${release}${shared_ext}$major'
14211 shlibpath_var=LD_LIBRARY_PATH
14218 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14219 echo "${ECHO_T}$dynamic_linker" >&6; }
14220 test "$dynamic_linker" = no && can_build_shared=no
14222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14223 if test "$GCC" = yes; then
14224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14227 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14228 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14229 hardcode_action_CXX=
14230 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14231 test -n "$runpath_var_CXX" || \
14232 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14234 # We can hardcode non-existant directories.
14235 if test "$hardcode_direct_CXX" != no &&
14236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14237 # have to relink, otherwise we might link with an installed library
14238 # when we should be linking with a yet-to-be-installed one
14239 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14240 test "$hardcode_minus_L_CXX" != no; then
14241 # Linking always hardcodes the temporary library directory.
14242 hardcode_action_CXX=relink
14244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14245 hardcode_action_CXX=immediate
14248 # We cannot hardcode anything, or else we can only hardcode existing
14250 hardcode_action_CXX=unsupported
14252 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14253 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14255 if test "$hardcode_action_CXX" = relink; then
14256 # Fast installation is not supported
14257 enable_fast_install=no
14258 elif test "$shlibpath_overrides_runpath" = yes ||
14259 test "$enable_shared" = no; then
14260 # Fast installation is not necessary
14261 enable_fast_install=needless
14265 # The else clause should only fire when bootstrapping the
14266 # libtool distribution, otherwise you forgot to ship ltmain.sh
14267 # with your package, and you will get complaints that there are
14268 # no rules to generate ltmain.sh.
14269 if test -f "$ltmain"; then
14270 # See if we are running on zsh, and set the options which allow our commands through
14271 # without removal of \ escapes.
14272 if test -n "${ZSH_VERSION+set}" ; then
14273 setopt NO_GLOB_SUBST
14275 # Now quote all the things that may contain metacharacters while being
14276 # careful not to overquote the AC_SUBSTed values. We take copies of the
14277 # variables and quote the copies for generation of the libtool script.
14278 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14280 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14281 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14282 deplibs_check_method reload_flag reload_cmds need_locks \
14283 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14284 lt_cv_sys_global_symbol_to_c_name_address \
14285 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14286 old_postinstall_cmds old_postuninstall_cmds \
14290 lt_prog_compiler_wl_CXX \
14291 lt_prog_compiler_pic_CXX \
14292 lt_prog_compiler_static_CXX \
14293 lt_prog_compiler_no_builtin_flag_CXX \
14294 export_dynamic_flag_spec_CXX \
14295 thread_safe_flag_spec_CXX \
14296 whole_archive_flag_spec_CXX \
14297 enable_shared_with_static_runtimes_CXX \
14298 old_archive_cmds_CXX \
14299 old_archive_from_new_cmds_CXX \
14300 predep_objects_CXX \
14301 postdep_objects_CXX \
14304 compiler_lib_search_path_CXX \
14306 archive_expsym_cmds_CXX \
14307 postinstall_cmds_CXX \
14308 postuninstall_cmds_CXX \
14309 old_archive_from_expsyms_cmds_CXX \
14310 allow_undefined_flag_CXX \
14311 no_undefined_flag_CXX \
14312 export_symbols_cmds_CXX \
14313 hardcode_libdir_flag_spec_CXX \
14314 hardcode_libdir_flag_spec_ld_CXX \
14315 hardcode_libdir_separator_CXX \
14316 hardcode_automatic_CXX \
14318 module_expsym_cmds_CXX \
14319 lt_cv_prog_compiler_c_o_CXX \
14320 exclude_expsyms_CXX \
14321 include_expsyms_CXX; do
14324 old_archive_cmds_CXX | \
14325 old_archive_from_new_cmds_CXX | \
14326 archive_cmds_CXX | \
14327 archive_expsym_cmds_CXX | \
14328 module_cmds_CXX | \
14329 module_expsym_cmds_CXX | \
14330 old_archive_from_expsyms_cmds_CXX | \
14331 export_symbols_cmds_CXX | \
14332 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14333 postinstall_cmds | postuninstall_cmds | \
14334 old_postinstall_cmds | old_postuninstall_cmds | \
14335 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14336 # Double-quote double-evaled strings.
14337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14346 *'\$0 --fallback-echo"')
14347 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14353 cat <<__EOF__ >> "$cfgfile"
14354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14358 # Shell to use when invoking shell scripts.
14361 # Whether or not to build shared libraries.
14362 build_libtool_libs=$enable_shared
14364 # Whether or not to build static libraries.
14365 build_old_libs=$enable_static
14367 # Whether or not to add -lc for building shared libraries.
14368 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14370 # Whether or not to disallow shared libs when runtime libs are static
14371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14373 # Whether or not to optimize for fast installation.
14374 fast_install=$enable_fast_install
14377 host_alias=$host_alias
14381 # The build system.
14382 build_alias=$build_alias
14386 # An echo program that does not interpret backslashes.
14391 AR_FLAGS=$lt_AR_FLAGS
14396 # LTCC compiler flags.
14397 LTCFLAGS=$lt_LTCFLAGS
14399 # A language-specific compiler.
14400 CC=$lt_compiler_CXX
14402 # Is the compiler the GNU C compiler?
14408 # The linker used to build libraries.
14411 # Whether we need hard or soft links.
14414 # A BSD-compatible nm program.
14417 # A symbol stripping program
14420 # Used to examine libraries when file_magic_cmd begins "file"
14421 MAGIC_CMD=$MAGIC_CMD
14423 # Used on cygwin: DLL creation program.
14426 # Used on cygwin: object dumper.
14429 # Used on cygwin: assembler.
14432 # The name of the directory that contains temporary libtool files.
14435 # How to create reloadable object files.
14436 reload_flag=$lt_reload_flag
14437 reload_cmds=$lt_reload_cmds
14439 # How to pass a linker flag through the compiler.
14440 wl=$lt_lt_prog_compiler_wl_CXX
14442 # Object file suffix (normally "o").
14443 objext="$ac_objext"
14445 # Old archive suffix (normally "a").
14448 # Shared library suffix (normally ".so").
14449 shrext_cmds='$shrext_cmds'
14451 # Executable file suffix (normally "").
14454 # Additional compiler flags for building library objects.
14455 pic_flag=$lt_lt_prog_compiler_pic_CXX
14458 # What is the maximum length of a command?
14459 max_cmd_len=$lt_cv_sys_max_cmd_len
14461 # Does compiler simultaneously support -c and -o options?
14462 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14464 # Must we lock files when doing compilation?
14465 need_locks=$lt_need_locks
14467 # Do we need the lib prefix for modules?
14468 need_lib_prefix=$need_lib_prefix
14470 # Do we need a version for libraries?
14471 need_version=$need_version
14473 # Whether dlopen is supported.
14474 dlopen_support=$enable_dlopen
14476 # Whether dlopen of programs is supported.
14477 dlopen_self=$enable_dlopen_self
14479 # Whether dlopen of statically linked programs is supported.
14480 dlopen_self_static=$enable_dlopen_self_static
14482 # Compiler flag to prevent dynamic linking.
14483 link_static_flag=$lt_lt_prog_compiler_static_CXX
14485 # Compiler flag to turn off builtin functions.
14486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14488 # Compiler flag to allow reflexive dlopens.
14489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14491 # Compiler flag to generate shared objects directly from archives.
14492 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14494 # Compiler flag to generate thread-safe objects.
14495 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14497 # Library versioning type.
14498 version_type=$version_type
14500 # Format of library name prefix.
14501 libname_spec=$lt_libname_spec
14503 # List of archive names. First name is the real one, the rest are links.
14504 # The last name is the one that the linker finds with -lNAME.
14505 library_names_spec=$lt_library_names_spec
14507 # The coded name of the library, if different from the real name.
14508 soname_spec=$lt_soname_spec
14510 # Commands used to build and install an old-style archive.
14512 old_archive_cmds=$lt_old_archive_cmds_CXX
14513 old_postinstall_cmds=$lt_old_postinstall_cmds
14514 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14516 # Create an old-style archive from a shared archive.
14517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14519 # Create a temporary old-style archive to link instead of a shared archive.
14520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14522 # Commands used to build and install a shared archive.
14523 archive_cmds=$lt_archive_cmds_CXX
14524 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14525 postinstall_cmds=$lt_postinstall_cmds
14526 postuninstall_cmds=$lt_postuninstall_cmds
14528 # Commands used to build a loadable module (assumed same as above if empty)
14529 module_cmds=$lt_module_cmds_CXX
14530 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14532 # Commands to strip libraries.
14533 old_striplib=$lt_old_striplib
14534 striplib=$lt_striplib
14536 # Dependencies to place before the objects being linked to create a
14538 predep_objects=$lt_predep_objects_CXX
14540 # Dependencies to place after the objects being linked to create a
14542 postdep_objects=$lt_postdep_objects_CXX
14544 # Dependencies to place before the objects being linked to create a
14546 predeps=$lt_predeps_CXX
14548 # Dependencies to place after the objects being linked to create a
14550 postdeps=$lt_postdeps_CXX
14552 # The library search path used internally by the compiler when linking
14553 # a shared library.
14554 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14556 # Method to check whether dependent libraries are shared objects.
14557 deplibs_check_method=$lt_deplibs_check_method
14559 # Command to use when deplibs_check_method == file_magic.
14560 file_magic_cmd=$lt_file_magic_cmd
14562 # Flag that allows shared libraries with undefined symbols to be built.
14563 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14565 # Flag that forces no undefined symbols.
14566 no_undefined_flag=$lt_no_undefined_flag_CXX
14568 # Commands used to finish a libtool library installation in a directory.
14569 finish_cmds=$lt_finish_cmds
14571 # Same as above, but a single script fragment to be evaled but not shown.
14572 finish_eval=$lt_finish_eval
14574 # Take the output of nm and produce a listing of raw symbols and C names.
14575 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14577 # Transform the output of nm in a proper C declaration
14578 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14580 # Transform the output of nm in a C name address pair
14581 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14583 # This is the shared library runtime path variable.
14584 runpath_var=$runpath_var
14586 # This is the shared library path variable.
14587 shlibpath_var=$shlibpath_var
14589 # Is shlibpath searched before the hard-coded library search path?
14590 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14592 # How to hardcode a shared library path into an executable.
14593 hardcode_action=$hardcode_action_CXX
14595 # Whether we should hardcode library paths into libraries.
14596 hardcode_into_libs=$hardcode_into_libs
14598 # Flag to hardcode \$libdir into a binary during linking.
14599 # This must work even if \$libdir does not exist.
14600 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14602 # If ld is used when linking, flag to hardcode \$libdir into
14603 # a binary during linking. This must work even if \$libdir does
14605 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14607 # Whether we need a single -rpath flag with a separated argument.
14608 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14610 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14611 # resulting binary.
14612 hardcode_direct=$hardcode_direct_CXX
14614 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14615 # resulting binary.
14616 hardcode_minus_L=$hardcode_minus_L_CXX
14618 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14619 # the resulting binary.
14620 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14622 # Set to yes if building a shared library automatically hardcodes DIR into the library
14623 # and all subsequent libraries and executables linked against it.
14624 hardcode_automatic=$hardcode_automatic_CXX
14626 # Variables whose values should be saved in libtool wrapper scripts and
14627 # restored at relink time.
14628 variables_saved_for_relink="$variables_saved_for_relink"
14630 # Whether libtool must link a program against all its dependency libraries.
14631 link_all_deplibs=$link_all_deplibs_CXX
14633 # Compile-time system search path for libraries
14634 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14636 # Run-time system search path for libraries
14637 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14639 # Fix the shell variable \$srcfile for the compiler.
14640 fix_srcfile_path="$fix_srcfile_path_CXX"
14642 # Set to yes if exported symbols are required.
14643 always_export_symbols=$always_export_symbols_CXX
14645 # The commands to list exported symbols.
14646 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14648 # The commands to extract the exported symbol list from a shared archive.
14649 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14651 # Symbols that should not be listed in the preloaded symbols.
14652 exclude_expsyms=$lt_exclude_expsyms_CXX
14654 # Symbols that must always be exported.
14655 include_expsyms=$lt_include_expsyms_CXX
14657 # ### END LIBTOOL TAG CONFIG: $tagname
14663 # If there is no Makefile yet, we rely on a make rule to execute
14664 # `config.status --recheck' to rerun these tests and create the
14665 # libtool script then.
14666 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14667 if test -f "$ltmain_in"; then
14668 test -f Makefile && make "$ltmain"
14674 ac_cpp='$CPP $CPPFLAGS'
14675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14683 with_gnu_ldcxx=$with_gnu_ld
14684 with_gnu_ld=$lt_save_with_gnu_ld
14685 lt_cv_path_LDCXX=$lt_cv_path_LD
14686 lt_cv_path_LD=$lt_save_path_LD
14687 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14688 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14696 if test -n "$F77" && test "X$F77" != "Xno"; then
14699 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14700 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14704 archive_cmds_need_lc_F77=no
14705 allow_undefined_flag_F77=
14706 always_export_symbols_F77=no
14707 archive_expsym_cmds_F77=
14708 export_dynamic_flag_spec_F77=
14709 hardcode_direct_F77=no
14710 hardcode_libdir_flag_spec_F77=
14711 hardcode_libdir_flag_spec_ld_F77=
14712 hardcode_libdir_separator_F77=
14713 hardcode_minus_L_F77=no
14714 hardcode_automatic_F77=no
14716 module_expsym_cmds_F77=
14717 link_all_deplibs_F77=unknown
14718 old_archive_cmds_F77=$old_archive_cmds
14719 no_undefined_flag_F77=
14720 whole_archive_flag_spec_F77=
14721 enable_shared_with_static_runtimes_F77=no
14723 # Source file extension for f77 test sources.
14726 # Object file extension for compiled f77 test sources.
14730 # Code to be used in simple compile tests
14731 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14733 # Code to be used in simple link tests
14734 lt_simple_link_test_code=" program t\n end\n"
14736 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14738 # If no C compiler was specified, use CC.
14741 # If no C compiler flags were specified, use CFLAGS.
14742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14744 # Allow CC to be a program name with arguments.
14748 # save warnings/boilerplate of simple test code
14749 ac_outfile=conftest.$ac_objext
14750 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14752 _lt_compiler_boilerplate=`cat conftest.err`
14755 ac_outfile=conftest.$ac_objext
14756 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14758 _lt_linker_boilerplate=`cat conftest.err`
14762 # Allow CC to be a program name with arguments.
14767 for cc_temp in $compiler""; do
14769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14778 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14779 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14780 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14781 echo "${ECHO_T}$can_build_shared" >&6; }
14783 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14784 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14785 test "$can_build_shared" = "no" && enable_shared=no
14787 # On AIX, shared libraries and static libraries use the same namespace, and
14788 # are all built from PIC.
14791 test "$enable_shared" = yes && enable_static=no
14792 if test -n "$RANLIB"; then
14793 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14794 postinstall_cmds='$RANLIB $lib'
14798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14799 test "$enable_shared" = yes && enable_static=no
14803 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14804 echo "${ECHO_T}$enable_shared" >&6; }
14806 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14807 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14808 # Make sure either enable_shared or enable_static is yes.
14809 test "$enable_shared" = yes || enable_static=yes
14810 { echo "$as_me:$LINENO: result: $enable_static" >&5
14811 echo "${ECHO_T}$enable_static" >&6; }
14816 lt_prog_compiler_wl_F77=
14817 lt_prog_compiler_pic_F77=
14818 lt_prog_compiler_static_F77=
14820 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14821 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14823 if test "$GCC" = yes; then
14824 lt_prog_compiler_wl_F77='-Wl,'
14825 lt_prog_compiler_static_F77='-static'
14829 # All AIX code is PIC.
14830 if test "$host_cpu" = ia64; then
14831 # AIX 5 now supports IA64 processor
14832 lt_prog_compiler_static_F77='-Bstatic'
14837 # FIXME: we need at least 68020 code to build shared libraries, but
14838 # adding the `-m68020' flag to GCC prevents building anything better,
14840 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14843 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14844 # PIC is the default for these OSes.
14847 mingw* | pw32* | os2*)
14848 # This hack is so that the source file can tell whether it is being
14849 # built for inclusion in a dll (and should export symbols for example).
14850 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14853 darwin* | rhapsody*)
14854 # PIC is the default on this platform
14855 # Common symbols not allowed in MH_DYLIB files
14856 lt_prog_compiler_pic_F77='-fno-common'
14860 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14861 # Instead, we relocate shared libraries at runtime.
14865 # Just because we use GCC doesn't mean we suddenly get shared libraries
14866 # on systems that don't support them.
14867 lt_prog_compiler_can_build_shared_F77=no
14872 if test -d /usr/nec; then
14873 lt_prog_compiler_pic_F77=-Kconform_pic
14878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14879 # not for PA HP-UX.
14885 lt_prog_compiler_pic_F77='-fPIC'
14891 lt_prog_compiler_pic_F77='-fPIC'
14895 # PORTME Check for flag to pass linker flags through the system compiler.
14898 lt_prog_compiler_wl_F77='-Wl,'
14899 if test "$host_cpu" = ia64; then
14900 # AIX 5 now supports IA64 processor
14901 lt_prog_compiler_static_F77='-Bstatic'
14903 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14907 # PIC is the default on this platform
14908 # Common symbols not allowed in MH_DYLIB files
14909 case $cc_basename in
14911 lt_prog_compiler_pic_F77='-qnocommon'
14912 lt_prog_compiler_wl_F77='-Wl,'
14917 mingw* | pw32* | os2*)
14918 # This hack is so that the source file can tell whether it is being
14919 # built for inclusion in a dll (and should export symbols for example).
14920 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14923 hpux9* | hpux10* | hpux11*)
14924 lt_prog_compiler_wl_F77='-Wl,'
14925 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14926 # not for PA HP-UX.
14932 lt_prog_compiler_pic_F77='+Z'
14935 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14936 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14939 irix5* | irix6* | nonstopux*)
14940 lt_prog_compiler_wl_F77='-Wl,'
14941 # PIC (with -KPIC) is the default.
14942 lt_prog_compiler_static_F77='-non_shared'
14946 lt_prog_compiler_pic_F77='-KPIC'
14947 lt_prog_compiler_static_F77='-Bstatic'
14950 linux* | k*bsd*-gnu)
14951 case $cc_basename in
14953 lt_prog_compiler_wl_F77='-Wl,'
14954 lt_prog_compiler_pic_F77='-KPIC'
14955 lt_prog_compiler_static_F77='-static'
14957 pgcc* | pgf77* | pgf90* | pgf95*)
14958 # Portland Group compilers (*not* the Pentium gcc compiler,
14959 # which looks to be a dead project)
14960 lt_prog_compiler_wl_F77='-Wl,'
14961 lt_prog_compiler_pic_F77='-fpic'
14962 lt_prog_compiler_static_F77='-Bstatic'
14965 lt_prog_compiler_wl_F77='-Wl,'
14966 # All Alpha code is PIC.
14967 lt_prog_compiler_static_F77='-non_shared'
14972 osf3* | osf4* | osf5*)
14973 lt_prog_compiler_wl_F77='-Wl,'
14974 # All OSF/1 code is PIC.
14975 lt_prog_compiler_static_F77='-non_shared'
14979 lt_prog_compiler_pic_F77='-KPIC'
14980 lt_prog_compiler_static_F77='-Bstatic'
14981 case $cc_basename in
14982 f77* | f90* | f95*)
14983 lt_prog_compiler_wl_F77='-Qoption ld ';;
14985 lt_prog_compiler_wl_F77='-Wl,';;
14990 lt_prog_compiler_wl_F77='-Qoption ld '
14991 lt_prog_compiler_pic_F77='-PIC'
14992 lt_prog_compiler_static_F77='-Bstatic'
14995 sysv4 | sysv4.2uw2* | sysv4.3*)
14996 lt_prog_compiler_wl_F77='-Wl,'
14997 lt_prog_compiler_pic_F77='-KPIC'
14998 lt_prog_compiler_static_F77='-Bstatic'
15002 if test -d /usr/nec ;then
15003 lt_prog_compiler_pic_F77='-Kconform_pic'
15004 lt_prog_compiler_static_F77='-Bstatic'
15008 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15009 lt_prog_compiler_wl_F77='-Wl,'
15010 lt_prog_compiler_pic_F77='-KPIC'
15011 lt_prog_compiler_static_F77='-Bstatic'
15015 lt_prog_compiler_wl_F77='-Wl,'
15016 lt_prog_compiler_can_build_shared_F77=no
15020 lt_prog_compiler_pic_F77='-pic'
15021 lt_prog_compiler_static_F77='-Bstatic'
15025 lt_prog_compiler_can_build_shared_F77=no
15030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15031 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15034 # Check to make sure the PIC flag actually works.
15036 if test -n "$lt_prog_compiler_pic_F77"; then
15038 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15039 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15040 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 lt_prog_compiler_pic_works_F77=no
15044 ac_outfile=conftest.$ac_objext
15045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15046 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15047 # Insert the option either (1) after the last *FLAGS variable, or
15048 # (2) before a word containing "conftest.", or (3) at the end.
15049 # Note that $ac_compile itself does not contain backslashes and begins
15050 # with a dollar sign (not a hyphen), so the echo should work correctly.
15051 # The option is referenced via a variable to avoid confusing sed.
15052 lt_compile=`echo "$ac_compile" | $SED \
15053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15055 -e 's:$: $lt_compiler_flag:'`
15056 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15057 (eval "$lt_compile" 2>conftest.err)
15059 cat conftest.err >&5
15060 echo "$as_me:__oline__: \$? = $ac_status" >&5
15061 if (exit $ac_status) && test -s "$ac_outfile"; then
15062 # The compiler can only warn and ignore the option if not recognized
15063 # So say no if there are warnings other than the usual output.
15064 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15067 lt_prog_compiler_pic_works_F77=yes
15073 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15074 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15076 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15077 case $lt_prog_compiler_pic_F77 in
15079 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15082 lt_prog_compiler_pic_F77=
15083 lt_prog_compiler_can_build_shared_F77=no
15088 # For platforms which do not support PIC, -DPIC is meaningless:
15090 lt_prog_compiler_pic_F77=
15093 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15098 # Check to make sure the static flag actually works.
15100 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15101 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15102 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15103 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 lt_prog_compiler_static_works_F77=no
15107 save_LDFLAGS="$LDFLAGS"
15108 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15109 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15110 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15111 # The linker can only warn and ignore the option if not recognized
15112 # So say no if there are warnings
15113 if test -s conftest.err; then
15114 # Append any errors to the config.log.
15115 cat conftest.err 1>&5
15116 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15118 if diff conftest.exp conftest.er2 >/dev/null; then
15119 lt_prog_compiler_static_works_F77=yes
15122 lt_prog_compiler_static_works_F77=yes
15126 LDFLAGS="$save_LDFLAGS"
15129 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15130 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15132 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15135 lt_prog_compiler_static_F77=
15139 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15140 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15141 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 lt_cv_prog_compiler_c_o_F77=no
15145 $rm -r conftest 2>/dev/null
15149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15151 lt_compiler_flag="-o out/conftest2.$ac_objext"
15152 # Insert the option either (1) after the last *FLAGS variable, or
15153 # (2) before a word containing "conftest.", or (3) at the end.
15154 # Note that $ac_compile itself does not contain backslashes and begins
15155 # with a dollar sign (not a hyphen), so the echo should work correctly.
15156 lt_compile=`echo "$ac_compile" | $SED \
15157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15159 -e 's:$: $lt_compiler_flag:'`
15160 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15161 (eval "$lt_compile" 2>out/conftest.err)
15163 cat out/conftest.err >&5
15164 echo "$as_me:__oline__: \$? = $ac_status" >&5
15165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15167 # The compiler can only warn and ignore the option if not recognized
15168 # So say no if there are warnings
15169 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15172 lt_cv_prog_compiler_c_o_F77=yes
15177 # SGI C++ compiler will create directory out/ii_files/ for
15178 # template instantiation
15179 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15180 $rm out/* && rmdir out
15186 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15187 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15190 hard_links="nottested"
15191 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15192 # do not overwrite the value of need_locks provided by the user
15193 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15194 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15199 ln conftest.a conftest.b 2>&5 || hard_links=no
15200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15201 { echo "$as_me:$LINENO: result: $hard_links" >&5
15202 echo "${ECHO_T}$hard_links" >&6; }
15203 if test "$hard_links" = no; then
15204 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15205 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15212 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15213 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15216 allow_undefined_flag_F77=
15217 enable_shared_with_static_runtimes_F77=no
15219 archive_expsym_cmds_F77=
15220 old_archive_From_new_cmds_F77=
15221 old_archive_from_expsyms_cmds_F77=
15222 export_dynamic_flag_spec_F77=
15223 whole_archive_flag_spec_F77=
15224 thread_safe_flag_spec_F77=
15225 hardcode_libdir_flag_spec_F77=
15226 hardcode_libdir_flag_spec_ld_F77=
15227 hardcode_libdir_separator_F77=
15228 hardcode_direct_F77=no
15229 hardcode_minus_L_F77=no
15230 hardcode_shlibpath_var_F77=unsupported
15231 link_all_deplibs_F77=unknown
15232 hardcode_automatic_F77=no
15234 module_expsym_cmds_F77=
15235 always_export_symbols_F77=no
15236 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15237 # include_expsyms should be a list of space-separated symbols to be *always*
15238 # included in the symbol list
15239 include_expsyms_F77=
15240 # exclude_expsyms can be an extended regexp of symbols to exclude
15241 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15242 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15243 # as well as any symbol that contains `d'.
15244 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15245 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15246 # platforms (ab)use it in PIC code, but their linkers get confused if
15247 # the symbol is explicitly referenced. Since portable code cannot
15248 # rely on this symbol name, it's probably fine to never include it in
15249 # preloaded symbol tables.
15250 extract_expsyms_cmds=
15251 # Just being paranoid about ensuring that cc_basename is set.
15252 for cc_temp in $compiler""; do
15254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15260 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15263 cygwin* | mingw* | pw32*)
15264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15265 # When not using gcc, we currently assume that we are using
15266 # Microsoft Visual C++.
15267 if test "$GCC" != yes; then
15272 # we just hope/assume this is gcc and not c89 (= MSVC++)
15281 if test "$with_gnu_ld" = yes; then
15282 # If archive_cmds runs LD, not CC, wlarc should be empty
15285 # Set some defaults for GNU ld with shared library support. These
15286 # are reset later if shared libraries are not supported. Putting them
15287 # here allows them to be overridden if necessary.
15288 runpath_var=LD_RUN_PATH
15289 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15290 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15291 # ancient GNU ld didn't support --whole-archive et. al.
15292 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15293 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15295 whole_archive_flag_spec_F77=
15297 supports_anon_versioning=no
15298 case `$LD -v 2>/dev/null` in
15299 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15300 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15301 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15302 *\ 2.11.*) ;; # other 2.11 versions
15303 *) supports_anon_versioning=yes ;;
15306 # See if GNU ld supports shared libraries.
15308 aix3* | aix4* | aix5*)
15309 # On AIX/PPC, the GNU linker is very broken
15310 if test "$host_cpu" != ia64; then
15314 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15315 *** to be unable to reliably create shared libraries on AIX.
15316 *** Therefore, libtool is disabling shared libraries support. If you
15317 *** really care for shared libraries, you may want to modify your PATH
15318 *** so that a non-GNU linker is found, and then restart.
15325 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)'
15326 hardcode_libdir_flag_spec_F77='-L$libdir'
15327 hardcode_minus_L_F77=yes
15329 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15330 # that the semantics of dynamic libraries on AmigaOS, at least up
15331 # to version 4, is to share data among multiple programs linked
15332 # with the same dynamic library. Since this doesn't match the
15333 # behavior of shared libraries on other platforms, we can't use
15339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15340 allow_undefined_flag_F77=unsupported
15341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15342 # support --undefined. This deserves some investigation. FIXME
15343 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15349 cygwin* | mingw* | pw32*)
15350 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15351 # as there is no search path for DLLs.
15352 hardcode_libdir_flag_spec_F77='-L$libdir'
15353 allow_undefined_flag_F77=unsupported
15354 always_export_symbols_F77=no
15355 enable_shared_with_static_runtimes_F77=yes
15356 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15358 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15360 # If the export-symbols file already is a .def file (1st line
15361 # is EXPORTS), use it as is; otherwise, prepend...
15362 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15363 cp $export_symbols $output_objdir/$soname.def;
15365 echo EXPORTS > $output_objdir/$soname.def;
15366 cat $export_symbols >> $output_objdir/$soname.def;
15368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15375 hardcode_direct_F77=no
15376 hardcode_shlibpath_var_F77=no
15377 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15378 export_dynamic_flag_spec_F77='${wl}-E'
15379 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15380 # Instead, shared libraries are loaded at an image base (0x10000000 by
15381 # default) and relocated if they conflict, which is a slow very memory
15382 # consuming and fragmenting process. To avoid this, we pick a random,
15383 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15384 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15385 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'
15386 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'
15389 linux* | k*bsd*-gnu)
15390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15392 case $cc_basename,$host_cpu in
15393 pgcc*) # Portland Group C compiler
15394 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'
15395 tmp_addflag=' $pic_flag'
15397 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15398 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'
15399 tmp_addflag=' $pic_flag -Mnomain' ;;
15400 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15401 tmp_addflag=' -i_dynamic' ;;
15402 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15403 tmp_addflag=' -i_dynamic -nofor_main' ;;
15404 ifc* | ifort*) # Intel Fortran compiler
15405 tmp_addflag=' -nofor_main' ;;
15407 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15409 if test $supports_anon_versioning = yes; then
15410 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15412 $echo "local: *; };" >> $output_objdir/$libname.ver~
15413 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15415 link_all_deplibs_F77=no
15421 netbsd* | netbsdelf*-gnu)
15422 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15423 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15426 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15432 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15436 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15437 *** create shared libraries on Solaris systems. Therefore, libtool
15438 *** is disabling shared libraries support. We urge you to upgrade GNU
15439 *** binutils to release 2.9.1 or newer. Another option is to modify
15440 *** your PATH or compiler configuration so that the native linker is
15441 *** used, and then restart.
15444 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15445 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15446 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15453 case `$LD -v 2>&1` in
15454 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15458 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15459 *** reliably create shared libraries on SCO systems. Therefore, libtool
15460 *** is disabling shared libraries support. We urge you to upgrade GNU
15461 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15462 *** your PATH or compiler configuration so that the native linker is
15463 *** used, and then restart.
15468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15470 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15471 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15480 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15482 hardcode_direct_F77=yes
15483 hardcode_shlibpath_var_F77=no
15487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15488 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15489 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15496 if test "$ld_shlibs_F77" = no; then
15498 hardcode_libdir_flag_spec_F77=
15499 export_dynamic_flag_spec_F77=
15500 whole_archive_flag_spec_F77=
15503 # PORTME fill in a description of your system's linker (not GNU ld)
15506 allow_undefined_flag_F77=unsupported
15507 always_export_symbols_F77=yes
15508 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'
15509 # Note: this linker hardcodes the directories in LIBPATH if there
15510 # are no directories specified by -L.
15511 hardcode_minus_L_F77=yes
15512 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15513 # Neither direct hardcoding nor static linking is supported with a
15515 hardcode_direct_F77=unsupported
15520 if test "$host_cpu" = ia64; then
15521 # On IA64, the linker does run time linking by default, so we don't
15522 # have to do anything special.
15523 aix_use_runtimelinking=no
15524 exp_sym_flag='-Bexport'
15527 # If we're using GNU nm, then we don't want the "-C" option.
15528 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15529 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15530 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'
15532 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'
15534 aix_use_runtimelinking=no
15536 # Test if we are trying to use run time linking or normal
15537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15538 # need to do runtime linking.
15539 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15540 for ld_flag in $LDFLAGS; do
15541 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15542 aix_use_runtimelinking=yes
15549 exp_sym_flag='-bexport'
15550 no_entry_flag='-bnoentry'
15553 # When large executables or shared objects are built, AIX ld can
15554 # have problems creating the table of contents. If linking a library
15555 # or program results in "error TOC overflow" add -mminimal-toc to
15556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15559 archive_cmds_F77=''
15560 hardcode_direct_F77=yes
15561 hardcode_libdir_separator_F77=':'
15562 link_all_deplibs_F77=yes
15564 if test "$GCC" = yes; then
15565 case $host_os in aix4.[012]|aix4.[012].*)
15566 # We only want to do this on AIX 4.2 and lower, the check
15567 # below for broken collect2 doesn't work under 4.3+
15568 collect2name=`${CC} -print-prog-name=collect2`
15569 if test -f "$collect2name" && \
15570 strings "$collect2name" | grep resolve_lib_name >/dev/null
15572 # We have reworked collect2
15573 hardcode_direct_F77=yes
15575 # We have old collect2
15576 hardcode_direct_F77=unsupported
15577 # It fails to find uninstalled libraries when the uninstalled
15578 # path is not listed in the libpath. Setting hardcode_minus_L
15579 # to unsupported forces relinking
15580 hardcode_minus_L_F77=yes
15581 hardcode_libdir_flag_spec_F77='-L$libdir'
15582 hardcode_libdir_separator_F77=
15586 shared_flag='-shared'
15587 if test "$aix_use_runtimelinking" = yes; then
15588 shared_flag="$shared_flag "'${wl}-G'
15592 if test "$host_cpu" = ia64; then
15593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15594 # chokes on -Wl,-G. The following line is correct:
15597 if test "$aix_use_runtimelinking" = yes; then
15598 shared_flag='${wl}-G'
15600 shared_flag='${wl}-bM:SRE'
15605 # It seems that -bexpall does not export symbols beginning with
15606 # underscore (_), so it is better to generate a list of symbols to export.
15607 always_export_symbols_F77=yes
15608 if test "$aix_use_runtimelinking" = yes; then
15609 # Warning - without using the other runtime loading flags (-brtl),
15610 # -berok will link without error, but may produce a broken library.
15611 allow_undefined_flag_F77='-berok'
15612 # Determine the default libpath from the value encoded in an empty executable.
15613 cat >conftest.$ac_ext <<_ACEOF
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (ac_try="$ac_link"
15620 case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_link") 2>conftest.er1
15627 grep -v '^ *+' conftest.er1 >conftest.err
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } && {
15632 test -z "$ac_f77_werror_flag" ||
15633 test ! -s conftest.err
15634 } && test -s conftest$ac_exeext &&
15635 $as_test_x conftest$ac_exeext; then
15637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15639 # Check for a 64-bit object if we didn't find anything.
15640 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; }
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650 conftest$ac_exeext conftest.$ac_ext
15651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15653 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15654 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"
15656 if test "$host_cpu" = ia64; then
15657 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15658 allow_undefined_flag_F77="-z nodefs"
15659 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"
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 # Warning - without using the other run time loading flags,
15704 # -berok will link without error, but may produce a broken library.
15705 no_undefined_flag_F77=' ${wl}-bernotok'
15706 allow_undefined_flag_F77=' ${wl}-berok'
15707 # Exported symbols can be pulled into shared objects from archives
15708 whole_archive_flag_spec_F77='$convenience'
15709 archive_cmds_need_lc_F77=yes
15710 # This is similar to how AIX traditionally builds its shared libraries.
15711 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'
15717 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)'
15718 hardcode_libdir_flag_spec_F77='-L$libdir'
15719 hardcode_minus_L_F77=yes
15720 # see comment about different semantics on the GNU ld section
15725 export_dynamic_flag_spec_F77=-rdynamic
15728 cygwin* | mingw* | pw32*)
15729 # When not using gcc, we currently assume that we are using
15730 # Microsoft Visual C++.
15731 # hardcode_libdir_flag_spec is actually meaningless, as there is
15732 # no search path for DLLs.
15733 hardcode_libdir_flag_spec_F77=' '
15734 allow_undefined_flag_F77=unsupported
15735 # Tell ltmain to make .lib files, not .a files.
15737 # Tell ltmain to make .dll files, not .so files.
15739 # FIXME: Setting linknames here is a bad hack.
15740 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15741 # The linker will automatically build a .lib file if we build a DLL.
15742 old_archive_From_new_cmds_F77='true'
15743 # FIXME: Should let the user specify the lib program.
15744 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15745 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15746 enable_shared_with_static_runtimes_F77=yes
15749 darwin* | rhapsody*)
15751 rhapsody* | darwin1.[012])
15752 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15755 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15756 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15758 case ${MACOSX_DEPLOYMENT_TARGET} in
15760 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15763 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15769 archive_cmds_need_lc_F77=no
15770 hardcode_direct_F77=no
15771 hardcode_automatic_F77=yes
15772 hardcode_shlibpath_var_F77=unsupported
15773 whole_archive_flag_spec_F77=''
15774 link_all_deplibs_F77=yes
15775 if test "$GCC" = yes ; then
15776 output_verbose_link_cmd='echo'
15777 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15778 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15779 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15780 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}'
15781 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}'
15783 case $cc_basename in
15785 output_verbose_link_cmd='echo'
15786 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15787 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15788 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15789 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}'
15790 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}'
15800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801 hardcode_libdir_flag_spec_F77='-L$libdir'
15802 hardcode_shlibpath_var_F77=no
15809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15810 # support. Future versions do this automatically, but an explicit c++rt0.o
15811 # does not break anything, and helps significantly (at the cost of a little
15814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15815 hardcode_libdir_flag_spec_F77='-R$libdir'
15816 hardcode_direct_F77=yes
15817 hardcode_shlibpath_var_F77=no
15820 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15822 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15823 hardcode_direct_F77=yes
15824 hardcode_minus_L_F77=yes
15825 hardcode_shlibpath_var_F77=no
15828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15829 freebsd* | dragonfly*)
15830 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15831 hardcode_libdir_flag_spec_F77='-R$libdir'
15832 hardcode_direct_F77=yes
15833 hardcode_shlibpath_var_F77=no
15837 if test "$GCC" = yes; then
15838 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'
15840 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'
15842 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15843 hardcode_libdir_separator_F77=:
15844 hardcode_direct_F77=yes
15846 # hardcode_minus_L: Not really in the search PATH,
15847 # but as the default location of the library.
15848 hardcode_minus_L_F77=yes
15849 export_dynamic_flag_spec_F77='${wl}-E'
15853 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15854 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15856 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15858 if test "$with_gnu_ld" = no; then
15859 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15860 hardcode_libdir_separator_F77=:
15862 hardcode_direct_F77=yes
15863 export_dynamic_flag_spec_F77='${wl}-E'
15865 # hardcode_minus_L: Not really in the search PATH,
15866 # but as the default location of the library.
15867 hardcode_minus_L_F77=yes
15872 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15875 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15881 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15893 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15897 if test "$with_gnu_ld" = no; then
15898 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15899 hardcode_libdir_separator_F77=:
15903 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15904 hardcode_direct_F77=no
15905 hardcode_shlibpath_var_F77=no
15908 hardcode_direct_F77=yes
15909 export_dynamic_flag_spec_F77='${wl}-E'
15911 # hardcode_minus_L: Not really in the search PATH,
15912 # but as the default location of the library.
15913 hardcode_minus_L_F77=yes
15919 irix5* | irix6* | nonstopux*)
15920 if test "$GCC" = yes; then
15921 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'
15923 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'
15924 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15926 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15927 hardcode_libdir_separator_F77=:
15928 link_all_deplibs_F77=yes
15931 netbsd* | netbsdelf*-gnu)
15932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15933 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15935 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15937 hardcode_libdir_flag_spec_F77='-R$libdir'
15938 hardcode_direct_F77=yes
15939 hardcode_shlibpath_var_F77=no
15943 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15944 hardcode_direct_F77=yes
15945 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15946 hardcode_libdir_separator_F77=:
15947 hardcode_shlibpath_var_F77=no
15951 hardcode_direct_F77=yes
15952 hardcode_shlibpath_var_F77=no
15953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15954 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15956 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15957 export_dynamic_flag_spec_F77='${wl}-E'
15960 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15961 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15962 hardcode_libdir_flag_spec_F77='-R$libdir'
15965 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15966 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15973 hardcode_libdir_flag_spec_F77='-L$libdir'
15974 hardcode_minus_L_F77=yes
15975 allow_undefined_flag_F77=unsupported
15976 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'
15977 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15981 if test "$GCC" = yes; then
15982 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15983 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'
15985 allow_undefined_flag_F77=' -expect_unresolved \*'
15986 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'
15988 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15989 hardcode_libdir_separator_F77=:
15992 osf4* | osf5*) # as osf3* with the addition of -msym flag
15993 if test "$GCC" = yes; then
15994 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15995 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'
15996 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15998 allow_undefined_flag_F77=' -expect_unresolved \*'
15999 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'
16000 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~
16001 $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'
16003 # Both c and cxx compiler support -rpath directly
16004 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16006 hardcode_libdir_separator_F77=:
16010 no_undefined_flag_F77=' -z text'
16011 if test "$GCC" = yes; then
16013 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16015 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16018 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16022 hardcode_libdir_flag_spec_F77='-R$libdir'
16023 hardcode_shlibpath_var_F77=no
16025 solaris2.[0-5] | solaris2.[0-5].*) ;;
16027 # The compiler driver will combine linker options so we
16028 # cannot just pass the convience library names through
16029 # without $wl, iff we do not link with $LD.
16030 # Luckily, gcc supports the same syntax we need for Sun Studio.
16031 # Supported since Solaris 2.6 (maybe 2.5.1?)
16034 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16036 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' ;;
16039 link_all_deplibs_F77=yes
16043 if test "x$host_vendor" = xsequent; then
16044 # Use $CC to link under sequent, because it throws in some extra .o
16045 # files that make .init and .fini sections work.
16046 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16048 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16050 hardcode_libdir_flag_spec_F77='-L$libdir'
16051 hardcode_direct_F77=yes
16052 hardcode_minus_L_F77=yes
16053 hardcode_shlibpath_var_F77=no
16057 case $host_vendor in
16059 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_direct_F77=yes # is this really true???
16063 ## LD is ld it makes a PLAMLIB
16064 ## CC just makes a GrossModule.
16065 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16066 reload_cmds_F77='$CC -r -o $output$reload_objs'
16067 hardcode_direct_F77=no
16070 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16071 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16074 runpath_var='LD_RUN_PATH'
16075 hardcode_shlibpath_var_F77=no
16079 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16080 hardcode_shlibpath_var_F77=no
16081 export_dynamic_flag_spec_F77='-Bexport'
16085 if test -d /usr/nec; then
16086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087 hardcode_shlibpath_var_F77=no
16088 runpath_var=LD_RUN_PATH
16089 hardcode_runpath_var=yes
16094 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16095 no_undefined_flag_F77='${wl}-z,text'
16096 archive_cmds_need_lc_F77=no
16097 hardcode_shlibpath_var_F77=no
16098 runpath_var='LD_RUN_PATH'
16100 if test "$GCC" = yes; then
16101 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16102 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16104 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16105 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16109 sysv5* | sco3.2v5* | sco5v6*)
16110 # Note: We can NOT use -z defs as we might desire, because we do not
16111 # link with -lc, and that would cause any symbols used from libc to
16112 # always be unresolved, which means just about no library would
16113 # ever link correctly. If we're not using GNU ld we use -z text
16114 # though, which does catch some bad symbols but isn't as heavy-handed
16116 no_undefined_flag_F77='${wl}-z,text'
16117 allow_undefined_flag_F77='${wl}-z,nodefs'
16118 archive_cmds_need_lc_F77=no
16119 hardcode_shlibpath_var_F77=no
16120 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16121 hardcode_libdir_separator_F77=':'
16122 link_all_deplibs_F77=yes
16123 export_dynamic_flag_spec_F77='${wl}-Bexport'
16124 runpath_var='LD_RUN_PATH'
16126 if test "$GCC" = yes; then
16127 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16128 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16130 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16131 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137 hardcode_libdir_flag_spec_F77='-L$libdir'
16138 hardcode_shlibpath_var_F77=no
16147 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16148 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16149 test "$ld_shlibs_F77" = no && can_build_shared=no
16152 # Do we need to explicitly link libc?
16154 case "x$archive_cmds_need_lc_F77" in
16156 # Assume -lc should be added
16157 archive_cmds_need_lc_F77=yes
16159 if test "$enable_shared" = yes && test "$GCC" = yes; then
16160 case $archive_cmds_F77 in
16162 # FIXME: we may have to deal with multi-command sequences.
16165 # Test whether the compiler implicitly links with -lc since on some
16166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16167 # to ld, don't add -lc before -lgcc.
16168 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16169 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16174 (eval $ac_compile) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } 2>conftest.err; then
16180 libobjs=conftest.$ac_objext
16182 wl=$lt_prog_compiler_wl_F77
16183 pic_flag=$lt_prog_compiler_pic_F77
16189 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16190 allow_undefined_flag_F77=
16191 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16192 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }
16197 archive_cmds_need_lc_F77=no
16199 archive_cmds_need_lc_F77=yes
16201 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16203 cat conftest.err 1>&5
16206 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16207 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16214 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16216 library_names_spec=
16217 libname_spec='lib$name'
16221 postuninstall_cmds=
16225 shlibpath_overrides_runpath=unknown
16227 dynamic_linker="$host_os ld.so"
16228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16229 if test "$GCC" = yes; then
16230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16231 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16232 # if the path contains ";" then we assume it to be the separator
16233 # otherwise default to the standard path separator (i.e. ":") - it is
16234 # assumed that no part of a normal pathname contains ";" but that should
16235 # okay in the real world where ";" in dirpaths is itself problematic.
16236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16241 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16243 need_lib_prefix=unknown
16244 hardcode_into_libs=no
16246 # when you set need_version to no, make sure it does not cause -set_version
16247 # flags to be left without arguments
16248 need_version=unknown
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16254 shlibpath_var=LIBPATH
16256 # AIX 3 has no versioning support, so we append a major version to the name.
16257 soname_spec='${libname}${release}${shared_ext}$major'
16264 hardcode_into_libs=yes
16265 if test "$host_cpu" = ia64; then
16266 # AIX 5 supports IA64
16267 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16268 shlibpath_var=LD_LIBRARY_PATH
16270 # With GCC up to 2.95.x, collect2 would create an import file
16271 # for dependence libraries. The import file would start with
16272 # the line `#! .'. This would cause the generated library to
16273 # depend on `.', always an invalid library. This was fixed in
16274 # development snapshots of GCC prior to 3.0.
16276 aix4 | aix4.[01] | aix4.[01].*)
16277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16279 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16282 can_build_shared=no
16286 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16287 # soname into executable. Probably we can add versioning support to
16288 # collect2, so additional links can be useful in future.
16289 if test "$aix_use_runtimelinking" = yes; then
16290 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16291 # instead of lib<name>.a to let people know that these are not
16292 # typical AIX shared libraries.
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 # We preserve .a as extension for shared libraries through AIX4.2
16296 # and later when we are not doing run time linking.
16297 library_names_spec='${libname}${release}.a $libname.a'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16300 shlibpath_var=LIBPATH
16305 library_names_spec='$libname.ixlibrary $libname.a'
16306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16307 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'
16311 library_names_spec='${libname}${shared_ext}'
16312 dynamic_linker="$host_os ld.so"
16313 shlibpath_var=LIBRARY_PATH
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16325 # the default ld.so.conf also contains /usr/contrib/lib and
16326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16327 # libtool to hard-code these into programs
16330 cygwin* | mingw* | pw32*)
16331 version_type=windows
16336 case $GCC,$host_os in
16337 yes,cygwin* | yes,mingw* | yes,pw32*)
16338 library_names_spec='$libname.dll.a'
16339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16340 postinstall_cmds='base_file=`basename \${file}`~
16341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16342 dldir=$destdir/`dirname \$dlpath`~
16343 test -d \$dldir || mkdir -p \$dldir~
16344 $install_prog $dir/$dlname \$dldir/$dlname~
16345 chmod a+x \$dldir/$dlname'
16346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16347 dlpath=$dir/\$dldll~
16349 shlibpath_overrides_runpath=yes
16353 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16354 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16355 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16358 # MinGW DLLs use traditional 'lib' prefix
16359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16360 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16361 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16362 # It is most probably a Windows format PATH printed by
16363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16364 # path with ; separators, and with drive letters. We can handle the
16365 # drive letters (cygwin fileutils understands them), so leave them,
16366 # especially as we might pass files found there to a mingw objdump,
16367 # which wouldn't understand a cygwinified path. Ahh.
16368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16374 # pw32 DLLs use 'pw' prefix rather than 'lib'
16375 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16384 dynamic_linker='Win32 ld.exe'
16385 # FIXME: first we should search . and the directory the executable is in
16389 darwin* | rhapsody*)
16390 dynamic_linker="$host_os dyld"
16391 version_type=darwin
16394 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16395 soname_spec='${libname}${release}${major}$shared_ext'
16396 shlibpath_overrides_runpath=yes
16397 shlibpath_var=DYLD_LIBRARY_PATH
16398 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16399 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16400 if test "$GCC" = yes; then
16401 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"`
16403 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 shlibpath_var=LD_LIBRARY_PATH
16421 freebsd* | dragonfly*)
16422 # DragonFly does not have aout. When/if they implement a new
16423 # versioning mechanism, adjust this.
16424 if test -x /usr/bin/objformat; then
16425 objformat=`/usr/bin/objformat`
16428 freebsd[123]*) objformat=aout ;;
16429 *) objformat=elf ;;
16432 version_type=freebsd-$objformat
16433 case $version_type in
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16444 shlibpath_var=LD_LIBRARY_PATH
16447 shlibpath_overrides_runpath=yes
16449 freebsd3.[01]* | freebsdelf3.[01]*)
16450 shlibpath_overrides_runpath=yes
16451 hardcode_into_libs=yes
16453 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16454 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16455 shlibpath_overrides_runpath=no
16456 hardcode_into_libs=yes
16458 freebsd*) # from 4.6 on
16459 shlibpath_overrides_runpath=yes
16460 hardcode_into_libs=yes
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 hardcode_into_libs=yes
16475 hpux9* | hpux10* | hpux11*)
16476 # Give a soname corresponding to the major version so that dld.sl refuses to
16477 # link against other versions.
16484 hardcode_into_libs=yes
16485 dynamic_linker="$host_os dld.so"
16486 shlibpath_var=LD_LIBRARY_PATH
16487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489 soname_spec='${libname}${release}${shared_ext}$major'
16490 if test "X$HPUX_IA64_MODE" = X32; then
16491 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16493 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16499 hardcode_into_libs=yes
16500 dynamic_linker="$host_os dld.sl"
16501 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16504 soname_spec='${libname}${release}${shared_ext}$major'
16505 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16510 dynamic_linker="$host_os dld.sl"
16511 shlibpath_var=SHLIB_PATH
16512 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514 soname_spec='${libname}${release}${shared_ext}$major'
16517 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16518 postinstall_cmds='chmod 555 $lib'
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=no
16530 hardcode_into_libs=yes
16533 irix5* | irix6* | nonstopux*)
16535 nonstopux*) version_type=nonstopux ;;
16537 if test "$lt_cv_prog_gnu_ld" = yes; then
16545 soname_spec='${libname}${release}${shared_ext}$major'
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16548 irix5* | nonstopux*)
16549 libsuff= shlibsuff=
16552 case $LD in # libtool.m4 will add one of these switches to LD
16553 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16554 libsuff= shlibsuff= libmagic=32-bit;;
16555 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16556 libsuff=32 shlibsuff=N32 libmagic=N32;;
16557 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16558 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16559 *) libsuff= shlibsuff= libmagic=never-match;;
16563 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16564 shlibpath_overrides_runpath=no
16565 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16566 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16567 hardcode_into_libs=yes
16570 # No shared lib support for Linux oldld, aout, or coff.
16571 linux*oldld* | linux*aout* | linux*coff*)
16575 # This must be Linux ELF.
16576 linux* | k*bsd*-gnu)
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=no
16585 # This implies no fast_install, which is unacceptable.
16586 # Some rework will be needed to allow for fast_install
16587 # before this can be enabled.
16588 hardcode_into_libs=yes
16590 # Append ld.so.conf contents to the search path
16591 if test -f /etc/ld.so.conf; then
16592 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' ' '`
16593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16596 # We used to test for /lib/ld.so.1 and disable shared libraries on
16597 # powerpc, because MkLinux only supported shared libraries with the
16598 # GNU dynamic linker. Since this was broken with cross compilers,
16599 # most powerpc-linux boxes support dynamic linking these days and
16600 # people can always --disable-shared, the test was removed, and we
16601 # assume the GNU/Linux dynamic linker is in use.
16602 dynamic_linker='GNU/Linux ld.so'
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16610 soname_spec='${libname}${release}${shared_ext}$major'
16611 shlibpath_var=LD_LIBRARY_PATH
16612 shlibpath_overrides_runpath=no
16613 hardcode_into_libs=yes
16614 dynamic_linker='NetBSD ld.elf_so'
16621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16624 dynamic_linker='NetBSD (a.out) ld.so'
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16627 soname_spec='${libname}${release}${shared_ext}$major'
16628 dynamic_linker='NetBSD ld.elf_so'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 shlibpath_overrides_runpath=yes
16632 hardcode_into_libs=yes
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 shlibpath_var=LD_LIBRARY_PATH
16639 shlibpath_overrides_runpath=yes
16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647 soname_spec='${libname}${release}${shared_ext}$major'
16648 shlibpath_var=LD_LIBRARY_PATH
16649 shlibpath_overrides_runpath=yes
16654 sys_lib_dlsearch_path_spec="/usr/lib"
16656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16659 *) need_version=no ;;
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16666 openbsd2.[89] | openbsd2.[89].*)
16667 shlibpath_overrides_runpath=no
16670 shlibpath_overrides_runpath=yes
16674 shlibpath_overrides_runpath=yes
16679 libname_spec='$name'
16682 library_names_spec='$libname${shared_ext} $libname.a'
16683 dynamic_linker='OS/2 ld.exe'
16684 shlibpath_var=LIBPATH
16687 osf3* | osf4* | osf5*)
16691 soname_spec='${libname}${release}${shared_ext}$major'
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 soname_spec='${libname}${release}${shared_ext}$major'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 shlibpath_overrides_runpath=yes
16706 hardcode_into_libs=yes
16707 # ldd complains unless libraries are executable
16708 postinstall_cmds='chmod +x $lib'
16713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16715 shlibpath_var=LD_LIBRARY_PATH
16716 shlibpath_overrides_runpath=yes
16717 if test "$with_gnu_ld" = yes; then
16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16726 soname_spec='${libname}${release}${shared_ext}$major'
16727 shlibpath_var=LD_LIBRARY_PATH
16728 case $host_vendor in
16730 shlibpath_overrides_runpath=no
16732 export_dynamic_flag_spec='${wl}-Blargedynsym'
16733 runpath_var=LD_RUN_PATH
16741 shlibpath_overrides_runpath=no
16742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16748 if test -d /usr/nec ;then
16750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16751 soname_spec='$libname${shared_ext}.$major'
16752 shlibpath_var=LD_LIBRARY_PATH
16756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16757 version_type=freebsd-elf
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16761 soname_spec='${libname}${release}${shared_ext}$major'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 hardcode_into_libs=yes
16764 if test "$with_gnu_ld" = yes; then
16765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16766 shlibpath_overrides_runpath=no
16768 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16769 shlibpath_overrides_runpath=yes
16772 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16776 sys_lib_dlsearch_path_spec='/usr/lib'
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16782 soname_spec='${libname}${release}${shared_ext}$major'
16783 shlibpath_var=LD_LIBRARY_PATH
16790 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16791 echo "${ECHO_T}$dynamic_linker" >&6; }
16792 test "$dynamic_linker" = no && can_build_shared=no
16794 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16795 if test "$GCC" = yes; then
16796 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16799 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16800 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16801 hardcode_action_F77=
16802 if test -n "$hardcode_libdir_flag_spec_F77" || \
16803 test -n "$runpath_var_F77" || \
16804 test "X$hardcode_automatic_F77" = "Xyes" ; then
16806 # We can hardcode non-existant directories.
16807 if test "$hardcode_direct_F77" != no &&
16808 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16809 # have to relink, otherwise we might link with an installed library
16810 # when we should be linking with a yet-to-be-installed one
16811 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16812 test "$hardcode_minus_L_F77" != no; then
16813 # Linking always hardcodes the temporary library directory.
16814 hardcode_action_F77=relink
16816 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16817 hardcode_action_F77=immediate
16820 # We cannot hardcode anything, or else we can only hardcode existing
16822 hardcode_action_F77=unsupported
16824 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16825 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16827 if test "$hardcode_action_F77" = relink; then
16828 # Fast installation is not supported
16829 enable_fast_install=no
16830 elif test "$shlibpath_overrides_runpath" = yes ||
16831 test "$enable_shared" = no; then
16832 # Fast installation is not necessary
16833 enable_fast_install=needless
16837 # The else clause should only fire when bootstrapping the
16838 # libtool distribution, otherwise you forgot to ship ltmain.sh
16839 # with your package, and you will get complaints that there are
16840 # no rules to generate ltmain.sh.
16841 if test -f "$ltmain"; then
16842 # See if we are running on zsh, and set the options which allow our commands through
16843 # without removal of \ escapes.
16844 if test -n "${ZSH_VERSION+set}" ; then
16845 setopt NO_GLOB_SUBST
16847 # Now quote all the things that may contain metacharacters while being
16848 # careful not to overquote the AC_SUBSTed values. We take copies of the
16849 # variables and quote the copies for generation of the libtool script.
16850 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16852 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16853 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16854 deplibs_check_method reload_flag reload_cmds need_locks \
16855 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16856 lt_cv_sys_global_symbol_to_c_name_address \
16857 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16858 old_postinstall_cmds old_postuninstall_cmds \
16862 lt_prog_compiler_wl_F77 \
16863 lt_prog_compiler_pic_F77 \
16864 lt_prog_compiler_static_F77 \
16865 lt_prog_compiler_no_builtin_flag_F77 \
16866 export_dynamic_flag_spec_F77 \
16867 thread_safe_flag_spec_F77 \
16868 whole_archive_flag_spec_F77 \
16869 enable_shared_with_static_runtimes_F77 \
16870 old_archive_cmds_F77 \
16871 old_archive_from_new_cmds_F77 \
16872 predep_objects_F77 \
16873 postdep_objects_F77 \
16876 compiler_lib_search_path_F77 \
16878 archive_expsym_cmds_F77 \
16879 postinstall_cmds_F77 \
16880 postuninstall_cmds_F77 \
16881 old_archive_from_expsyms_cmds_F77 \
16882 allow_undefined_flag_F77 \
16883 no_undefined_flag_F77 \
16884 export_symbols_cmds_F77 \
16885 hardcode_libdir_flag_spec_F77 \
16886 hardcode_libdir_flag_spec_ld_F77 \
16887 hardcode_libdir_separator_F77 \
16888 hardcode_automatic_F77 \
16890 module_expsym_cmds_F77 \
16891 lt_cv_prog_compiler_c_o_F77 \
16892 exclude_expsyms_F77 \
16893 include_expsyms_F77; do
16896 old_archive_cmds_F77 | \
16897 old_archive_from_new_cmds_F77 | \
16898 archive_cmds_F77 | \
16899 archive_expsym_cmds_F77 | \
16900 module_cmds_F77 | \
16901 module_expsym_cmds_F77 | \
16902 old_archive_from_expsyms_cmds_F77 | \
16903 export_symbols_cmds_F77 | \
16904 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16905 postinstall_cmds | postuninstall_cmds | \
16906 old_postinstall_cmds | old_postuninstall_cmds | \
16907 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16908 # Double-quote double-evaled strings.
16909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16918 *'\$0 --fallback-echo"')
16919 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16925 cat <<__EOF__ >> "$cfgfile"
16926 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16928 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16930 # Shell to use when invoking shell scripts.
16933 # Whether or not to build shared libraries.
16934 build_libtool_libs=$enable_shared
16936 # Whether or not to build static libraries.
16937 build_old_libs=$enable_static
16939 # Whether or not to add -lc for building shared libraries.
16940 build_libtool_need_lc=$archive_cmds_need_lc_F77
16942 # Whether or not to disallow shared libs when runtime libs are static
16943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16945 # Whether or not to optimize for fast installation.
16946 fast_install=$enable_fast_install
16949 host_alias=$host_alias
16953 # The build system.
16954 build_alias=$build_alias
16958 # An echo program that does not interpret backslashes.
16963 AR_FLAGS=$lt_AR_FLAGS
16968 # LTCC compiler flags.
16969 LTCFLAGS=$lt_LTCFLAGS
16971 # A language-specific compiler.
16972 CC=$lt_compiler_F77
16974 # Is the compiler the GNU C compiler?
16980 # The linker used to build libraries.
16983 # Whether we need hard or soft links.
16986 # A BSD-compatible nm program.
16989 # A symbol stripping program
16992 # Used to examine libraries when file_magic_cmd begins "file"
16993 MAGIC_CMD=$MAGIC_CMD
16995 # Used on cygwin: DLL creation program.
16998 # Used on cygwin: object dumper.
17001 # Used on cygwin: assembler.
17004 # The name of the directory that contains temporary libtool files.
17007 # How to create reloadable object files.
17008 reload_flag=$lt_reload_flag
17009 reload_cmds=$lt_reload_cmds
17011 # How to pass a linker flag through the compiler.
17012 wl=$lt_lt_prog_compiler_wl_F77
17014 # Object file suffix (normally "o").
17015 objext="$ac_objext"
17017 # Old archive suffix (normally "a").
17020 # Shared library suffix (normally ".so").
17021 shrext_cmds='$shrext_cmds'
17023 # Executable file suffix (normally "").
17026 # Additional compiler flags for building library objects.
17027 pic_flag=$lt_lt_prog_compiler_pic_F77
17030 # What is the maximum length of a command?
17031 max_cmd_len=$lt_cv_sys_max_cmd_len
17033 # Does compiler simultaneously support -c and -o options?
17034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17036 # Must we lock files when doing compilation?
17037 need_locks=$lt_need_locks
17039 # Do we need the lib prefix for modules?
17040 need_lib_prefix=$need_lib_prefix
17042 # Do we need a version for libraries?
17043 need_version=$need_version
17045 # Whether dlopen is supported.
17046 dlopen_support=$enable_dlopen
17048 # Whether dlopen of programs is supported.
17049 dlopen_self=$enable_dlopen_self
17051 # Whether dlopen of statically linked programs is supported.
17052 dlopen_self_static=$enable_dlopen_self_static
17054 # Compiler flag to prevent dynamic linking.
17055 link_static_flag=$lt_lt_prog_compiler_static_F77
17057 # Compiler flag to turn off builtin functions.
17058 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17060 # Compiler flag to allow reflexive dlopens.
17061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17063 # Compiler flag to generate shared objects directly from archives.
17064 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17066 # Compiler flag to generate thread-safe objects.
17067 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17069 # Library versioning type.
17070 version_type=$version_type
17072 # Format of library name prefix.
17073 libname_spec=$lt_libname_spec
17075 # List of archive names. First name is the real one, the rest are links.
17076 # The last name is the one that the linker finds with -lNAME.
17077 library_names_spec=$lt_library_names_spec
17079 # The coded name of the library, if different from the real name.
17080 soname_spec=$lt_soname_spec
17082 # Commands used to build and install an old-style archive.
17084 old_archive_cmds=$lt_old_archive_cmds_F77
17085 old_postinstall_cmds=$lt_old_postinstall_cmds
17086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17088 # Create an old-style archive from a shared archive.
17089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17091 # Create a temporary old-style archive to link instead of a shared archive.
17092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17094 # Commands used to build and install a shared archive.
17095 archive_cmds=$lt_archive_cmds_F77
17096 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17097 postinstall_cmds=$lt_postinstall_cmds
17098 postuninstall_cmds=$lt_postuninstall_cmds
17100 # Commands used to build a loadable module (assumed same as above if empty)
17101 module_cmds=$lt_module_cmds_F77
17102 module_expsym_cmds=$lt_module_expsym_cmds_F77
17104 # Commands to strip libraries.
17105 old_striplib=$lt_old_striplib
17106 striplib=$lt_striplib
17108 # Dependencies to place before the objects being linked to create a
17110 predep_objects=$lt_predep_objects_F77
17112 # Dependencies to place after the objects being linked to create a
17114 postdep_objects=$lt_postdep_objects_F77
17116 # Dependencies to place before the objects being linked to create a
17118 predeps=$lt_predeps_F77
17120 # Dependencies to place after the objects being linked to create a
17122 postdeps=$lt_postdeps_F77
17124 # The library search path used internally by the compiler when linking
17125 # a shared library.
17126 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17128 # Method to check whether dependent libraries are shared objects.
17129 deplibs_check_method=$lt_deplibs_check_method
17131 # Command to use when deplibs_check_method == file_magic.
17132 file_magic_cmd=$lt_file_magic_cmd
17134 # Flag that allows shared libraries with undefined symbols to be built.
17135 allow_undefined_flag=$lt_allow_undefined_flag_F77
17137 # Flag that forces no undefined symbols.
17138 no_undefined_flag=$lt_no_undefined_flag_F77
17140 # Commands used to finish a libtool library installation in a directory.
17141 finish_cmds=$lt_finish_cmds
17143 # Same as above, but a single script fragment to be evaled but not shown.
17144 finish_eval=$lt_finish_eval
17146 # Take the output of nm and produce a listing of raw symbols and C names.
17147 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17149 # Transform the output of nm in a proper C declaration
17150 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17152 # Transform the output of nm in a C name address pair
17153 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17155 # This is the shared library runtime path variable.
17156 runpath_var=$runpath_var
17158 # This is the shared library path variable.
17159 shlibpath_var=$shlibpath_var
17161 # Is shlibpath searched before the hard-coded library search path?
17162 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17164 # How to hardcode a shared library path into an executable.
17165 hardcode_action=$hardcode_action_F77
17167 # Whether we should hardcode library paths into libraries.
17168 hardcode_into_libs=$hardcode_into_libs
17170 # Flag to hardcode \$libdir into a binary during linking.
17171 # This must work even if \$libdir does not exist.
17172 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17174 # If ld is used when linking, flag to hardcode \$libdir into
17175 # a binary during linking. This must work even if \$libdir does
17177 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17179 # Whether we need a single -rpath flag with a separated argument.
17180 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17182 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17183 # resulting binary.
17184 hardcode_direct=$hardcode_direct_F77
17186 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17187 # resulting binary.
17188 hardcode_minus_L=$hardcode_minus_L_F77
17190 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17191 # the resulting binary.
17192 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17194 # Set to yes if building a shared library automatically hardcodes DIR into the library
17195 # and all subsequent libraries and executables linked against it.
17196 hardcode_automatic=$hardcode_automatic_F77
17198 # Variables whose values should be saved in libtool wrapper scripts and
17199 # restored at relink time.
17200 variables_saved_for_relink="$variables_saved_for_relink"
17202 # Whether libtool must link a program against all its dependency libraries.
17203 link_all_deplibs=$link_all_deplibs_F77
17205 # Compile-time system search path for libraries
17206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17208 # Run-time system search path for libraries
17209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17211 # Fix the shell variable \$srcfile for the compiler.
17212 fix_srcfile_path="$fix_srcfile_path_F77"
17214 # Set to yes if exported symbols are required.
17215 always_export_symbols=$always_export_symbols_F77
17217 # The commands to list exported symbols.
17218 export_symbols_cmds=$lt_export_symbols_cmds_F77
17220 # The commands to extract the exported symbol list from a shared archive.
17221 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17223 # Symbols that should not be listed in the preloaded symbols.
17224 exclude_expsyms=$lt_exclude_expsyms_F77
17226 # Symbols that must always be exported.
17227 include_expsyms=$lt_include_expsyms_F77
17229 # ### END LIBTOOL TAG CONFIG: $tagname
17235 # If there is no Makefile yet, we rely on a make rule to execute
17236 # `config.status --recheck' to rerun these tests and create the
17237 # libtool script then.
17238 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17239 if test -f "$ltmain_in"; then
17240 test -f Makefile && make "$ltmain"
17246 ac_cpp='$CPP $CPPFLAGS'
17247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17259 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17262 # Source file extension for Java test sources.
17265 # Object file extension for compiled Java test sources.
17269 # Code to be used in simple compile tests
17270 lt_simple_compile_test_code="class foo {}\n"
17272 # Code to be used in simple link tests
17273 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17275 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17277 # If no C compiler was specified, use CC.
17280 # If no C compiler flags were specified, use CFLAGS.
17281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17283 # Allow CC to be a program name with arguments.
17287 # save warnings/boilerplate of simple test code
17288 ac_outfile=conftest.$ac_objext
17289 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17291 _lt_compiler_boilerplate=`cat conftest.err`
17294 ac_outfile=conftest.$ac_objext
17295 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17297 _lt_linker_boilerplate=`cat conftest.err`
17301 # Allow CC to be a program name with arguments.
17306 for cc_temp in $compiler""; do
17308 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17309 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17314 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17317 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17318 archive_cmds_need_lc_GCJ=no
17320 old_archive_cmds_GCJ=$old_archive_cmds
17323 ## There is no encapsulation within the following macros, do not change
17324 ## the running order or otherwise move them around unless you know exactly
17325 ## what you are doing...
17327 lt_prog_compiler_no_builtin_flag_GCJ=
17329 if test "$GCC" = yes; then
17330 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17333 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 lt_cv_prog_compiler_rtti_exceptions=no
17339 ac_outfile=conftest.$ac_objext
17340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17341 lt_compiler_flag="-fno-rtti -fno-exceptions"
17342 # Insert the option either (1) after the last *FLAGS variable, or
17343 # (2) before a word containing "conftest.", or (3) at the end.
17344 # Note that $ac_compile itself does not contain backslashes and begins
17345 # with a dollar sign (not a hyphen), so the echo should work correctly.
17346 # The option is referenced via a variable to avoid confusing sed.
17347 lt_compile=`echo "$ac_compile" | $SED \
17348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17350 -e 's:$: $lt_compiler_flag:'`
17351 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17352 (eval "$lt_compile" 2>conftest.err)
17354 cat conftest.err >&5
17355 echo "$as_me:__oline__: \$? = $ac_status" >&5
17356 if (exit $ac_status) && test -s "$ac_outfile"; then
17357 # The compiler can only warn and ignore the option if not recognized
17358 # So say no if there are warnings other than the usual output.
17359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17362 lt_cv_prog_compiler_rtti_exceptions=yes
17368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17369 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17372 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17379 lt_prog_compiler_wl_GCJ=
17380 lt_prog_compiler_pic_GCJ=
17381 lt_prog_compiler_static_GCJ=
17383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17386 if test "$GCC" = yes; then
17387 lt_prog_compiler_wl_GCJ='-Wl,'
17388 lt_prog_compiler_static_GCJ='-static'
17392 # All AIX code is PIC.
17393 if test "$host_cpu" = ia64; then
17394 # AIX 5 now supports IA64 processor
17395 lt_prog_compiler_static_GCJ='-Bstatic'
17400 # FIXME: we need at least 68020 code to build shared libraries, but
17401 # adding the `-m68020' flag to GCC prevents building anything better,
17403 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17406 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17407 # PIC is the default for these OSes.
17410 mingw* | pw32* | os2*)
17411 # This hack is so that the source file can tell whether it is being
17412 # built for inclusion in a dll (and should export symbols for example).
17413 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17416 darwin* | rhapsody*)
17417 # PIC is the default on this platform
17418 # Common symbols not allowed in MH_DYLIB files
17419 lt_prog_compiler_pic_GCJ='-fno-common'
17423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17424 # Instead, we relocate shared libraries at runtime.
17428 # Just because we use GCC doesn't mean we suddenly get shared libraries
17429 # on systems that don't support them.
17430 lt_prog_compiler_can_build_shared_GCJ=no
17435 if test -d /usr/nec; then
17436 lt_prog_compiler_pic_GCJ=-Kconform_pic
17441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17442 # not for PA HP-UX.
17448 lt_prog_compiler_pic_GCJ='-fPIC'
17454 lt_prog_compiler_pic_GCJ='-fPIC'
17458 # PORTME Check for flag to pass linker flags through the system compiler.
17461 lt_prog_compiler_wl_GCJ='-Wl,'
17462 if test "$host_cpu" = ia64; then
17463 # AIX 5 now supports IA64 processor
17464 lt_prog_compiler_static_GCJ='-Bstatic'
17466 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17470 # PIC is the default on this platform
17471 # Common symbols not allowed in MH_DYLIB files
17472 case $cc_basename in
17474 lt_prog_compiler_pic_GCJ='-qnocommon'
17475 lt_prog_compiler_wl_GCJ='-Wl,'
17480 mingw* | pw32* | os2*)
17481 # This hack is so that the source file can tell whether it is being
17482 # built for inclusion in a dll (and should export symbols for example).
17483 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17486 hpux9* | hpux10* | hpux11*)
17487 lt_prog_compiler_wl_GCJ='-Wl,'
17488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17489 # not for PA HP-UX.
17495 lt_prog_compiler_pic_GCJ='+Z'
17498 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17499 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17502 irix5* | irix6* | nonstopux*)
17503 lt_prog_compiler_wl_GCJ='-Wl,'
17504 # PIC (with -KPIC) is the default.
17505 lt_prog_compiler_static_GCJ='-non_shared'
17509 lt_prog_compiler_pic_GCJ='-KPIC'
17510 lt_prog_compiler_static_GCJ='-Bstatic'
17513 linux* | k*bsd*-gnu)
17514 case $cc_basename in
17516 lt_prog_compiler_wl_GCJ='-Wl,'
17517 lt_prog_compiler_pic_GCJ='-KPIC'
17518 lt_prog_compiler_static_GCJ='-static'
17520 pgcc* | pgf77* | pgf90* | pgf95*)
17521 # Portland Group compilers (*not* the Pentium gcc compiler,
17522 # which looks to be a dead project)
17523 lt_prog_compiler_wl_GCJ='-Wl,'
17524 lt_prog_compiler_pic_GCJ='-fpic'
17525 lt_prog_compiler_static_GCJ='-Bstatic'
17528 lt_prog_compiler_wl_GCJ='-Wl,'
17529 # All Alpha code is PIC.
17530 lt_prog_compiler_static_GCJ='-non_shared'
17535 osf3* | osf4* | osf5*)
17536 lt_prog_compiler_wl_GCJ='-Wl,'
17537 # All OSF/1 code is PIC.
17538 lt_prog_compiler_static_GCJ='-non_shared'
17542 lt_prog_compiler_pic_GCJ='-KPIC'
17543 lt_prog_compiler_static_GCJ='-Bstatic'
17544 case $cc_basename in
17545 f77* | f90* | f95*)
17546 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17548 lt_prog_compiler_wl_GCJ='-Wl,';;
17553 lt_prog_compiler_wl_GCJ='-Qoption ld '
17554 lt_prog_compiler_pic_GCJ='-PIC'
17555 lt_prog_compiler_static_GCJ='-Bstatic'
17558 sysv4 | sysv4.2uw2* | sysv4.3*)
17559 lt_prog_compiler_wl_GCJ='-Wl,'
17560 lt_prog_compiler_pic_GCJ='-KPIC'
17561 lt_prog_compiler_static_GCJ='-Bstatic'
17565 if test -d /usr/nec ;then
17566 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17567 lt_prog_compiler_static_GCJ='-Bstatic'
17571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17572 lt_prog_compiler_wl_GCJ='-Wl,'
17573 lt_prog_compiler_pic_GCJ='-KPIC'
17574 lt_prog_compiler_static_GCJ='-Bstatic'
17578 lt_prog_compiler_wl_GCJ='-Wl,'
17579 lt_prog_compiler_can_build_shared_GCJ=no
17583 lt_prog_compiler_pic_GCJ='-pic'
17584 lt_prog_compiler_static_GCJ='-Bstatic'
17588 lt_prog_compiler_can_build_shared_GCJ=no
17593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17594 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17597 # Check to make sure the PIC flag actually works.
17599 if test -n "$lt_prog_compiler_pic_GCJ"; then
17601 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17603 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 lt_prog_compiler_pic_works_GCJ=no
17607 ac_outfile=conftest.$ac_objext
17608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17609 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17610 # Insert the option either (1) after the last *FLAGS variable, or
17611 # (2) before a word containing "conftest.", or (3) at the end.
17612 # Note that $ac_compile itself does not contain backslashes and begins
17613 # with a dollar sign (not a hyphen), so the echo should work correctly.
17614 # The option is referenced via a variable to avoid confusing sed.
17615 lt_compile=`echo "$ac_compile" | $SED \
17616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17618 -e 's:$: $lt_compiler_flag:'`
17619 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17620 (eval "$lt_compile" 2>conftest.err)
17622 cat conftest.err >&5
17623 echo "$as_me:__oline__: \$? = $ac_status" >&5
17624 if (exit $ac_status) && test -s "$ac_outfile"; then
17625 # The compiler can only warn and ignore the option if not recognized
17626 # So say no if there are warnings other than the usual output.
17627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17630 lt_prog_compiler_pic_works_GCJ=yes
17636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17637 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17639 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17640 case $lt_prog_compiler_pic_GCJ in
17642 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17645 lt_prog_compiler_pic_GCJ=
17646 lt_prog_compiler_can_build_shared_GCJ=no
17651 # For platforms which do not support PIC, -DPIC is meaningless:
17653 lt_prog_compiler_pic_GCJ=
17656 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17661 # Check to make sure the static flag actually works.
17663 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17664 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17665 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17666 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 lt_prog_compiler_static_works_GCJ=no
17670 save_LDFLAGS="$LDFLAGS"
17671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17672 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17674 # The linker can only warn and ignore the option if not recognized
17675 # So say no if there are warnings
17676 if test -s conftest.err; then
17677 # Append any errors to the config.log.
17678 cat conftest.err 1>&5
17679 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17681 if diff conftest.exp conftest.er2 >/dev/null; then
17682 lt_prog_compiler_static_works_GCJ=yes
17685 lt_prog_compiler_static_works_GCJ=yes
17689 LDFLAGS="$save_LDFLAGS"
17692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17693 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17695 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17698 lt_prog_compiler_static_GCJ=
17702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17704 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 lt_cv_prog_compiler_c_o_GCJ=no
17708 $rm -r conftest 2>/dev/null
17712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17714 lt_compiler_flag="-o out/conftest2.$ac_objext"
17715 # Insert the option either (1) after the last *FLAGS variable, or
17716 # (2) before a word containing "conftest.", or (3) at the end.
17717 # Note that $ac_compile itself does not contain backslashes and begins
17718 # with a dollar sign (not a hyphen), so the echo should work correctly.
17719 lt_compile=`echo "$ac_compile" | $SED \
17720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17722 -e 's:$: $lt_compiler_flag:'`
17723 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17724 (eval "$lt_compile" 2>out/conftest.err)
17726 cat out/conftest.err >&5
17727 echo "$as_me:__oline__: \$? = $ac_status" >&5
17728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17730 # The compiler can only warn and ignore the option if not recognized
17731 # So say no if there are warnings
17732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17735 lt_cv_prog_compiler_c_o_GCJ=yes
17740 # SGI C++ compiler will create directory out/ii_files/ for
17741 # template instantiation
17742 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17743 $rm out/* && rmdir out
17749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17753 hard_links="nottested"
17754 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17755 # do not overwrite the value of need_locks provided by the user
17756 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17762 ln conftest.a conftest.b 2>&5 || hard_links=no
17763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17764 { echo "$as_me:$LINENO: result: $hard_links" >&5
17765 echo "${ECHO_T}$hard_links" >&6; }
17766 if test "$hard_links" = no; then
17767 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17779 allow_undefined_flag_GCJ=
17780 enable_shared_with_static_runtimes_GCJ=no
17782 archive_expsym_cmds_GCJ=
17783 old_archive_From_new_cmds_GCJ=
17784 old_archive_from_expsyms_cmds_GCJ=
17785 export_dynamic_flag_spec_GCJ=
17786 whole_archive_flag_spec_GCJ=
17787 thread_safe_flag_spec_GCJ=
17788 hardcode_libdir_flag_spec_GCJ=
17789 hardcode_libdir_flag_spec_ld_GCJ=
17790 hardcode_libdir_separator_GCJ=
17791 hardcode_direct_GCJ=no
17792 hardcode_minus_L_GCJ=no
17793 hardcode_shlibpath_var_GCJ=unsupported
17794 link_all_deplibs_GCJ=unknown
17795 hardcode_automatic_GCJ=no
17797 module_expsym_cmds_GCJ=
17798 always_export_symbols_GCJ=no
17799 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17800 # include_expsyms should be a list of space-separated symbols to be *always*
17801 # included in the symbol list
17802 include_expsyms_GCJ=
17803 # exclude_expsyms can be an extended regexp of symbols to exclude
17804 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17806 # as well as any symbol that contains `d'.
17807 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17809 # platforms (ab)use it in PIC code, but their linkers get confused if
17810 # the symbol is explicitly referenced. Since portable code cannot
17811 # rely on this symbol name, it's probably fine to never include it in
17812 # preloaded symbol tables.
17813 extract_expsyms_cmds=
17814 # Just being paranoid about ensuring that cc_basename is set.
17815 for cc_temp in $compiler""; do
17817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17826 cygwin* | mingw* | pw32*)
17827 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17828 # When not using gcc, we currently assume that we are using
17829 # Microsoft Visual C++.
17830 if test "$GCC" != yes; then
17835 # we just hope/assume this is gcc and not c89 (= MSVC++)
17844 if test "$with_gnu_ld" = yes; then
17845 # If archive_cmds runs LD, not CC, wlarc should be empty
17848 # Set some defaults for GNU ld with shared library support. These
17849 # are reset later if shared libraries are not supported. Putting them
17850 # here allows them to be overridden if necessary.
17851 runpath_var=LD_RUN_PATH
17852 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17853 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17854 # ancient GNU ld didn't support --whole-archive et. al.
17855 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17856 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17858 whole_archive_flag_spec_GCJ=
17860 supports_anon_versioning=no
17861 case `$LD -v 2>/dev/null` in
17862 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17863 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17864 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17865 *\ 2.11.*) ;; # other 2.11 versions
17866 *) supports_anon_versioning=yes ;;
17869 # See if GNU ld supports shared libraries.
17871 aix3* | aix4* | aix5*)
17872 # On AIX/PPC, the GNU linker is very broken
17873 if test "$host_cpu" != ia64; then
17877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17878 *** to be unable to reliably create shared libraries on AIX.
17879 *** Therefore, libtool is disabling shared libraries support. If you
17880 *** really care for shared libraries, you may want to modify your PATH
17881 *** so that a non-GNU linker is found, and then restart.
17888 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)'
17889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17890 hardcode_minus_L_GCJ=yes
17892 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17893 # that the semantics of dynamic libraries on AmigaOS, at least up
17894 # to version 4, is to share data among multiple programs linked
17895 # with the same dynamic library. Since this doesn't match the
17896 # behavior of shared libraries on other platforms, we can't use
17902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17903 allow_undefined_flag_GCJ=unsupported
17904 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17905 # support --undefined. This deserves some investigation. FIXME
17906 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17912 cygwin* | mingw* | pw32*)
17913 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17914 # as there is no search path for DLLs.
17915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17916 allow_undefined_flag_GCJ=unsupported
17917 always_export_symbols_GCJ=no
17918 enable_shared_with_static_runtimes_GCJ=yes
17919 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17921 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17922 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17923 # If the export-symbols file already is a .def file (1st line
17924 # is EXPORTS), use it as is; otherwise, prepend...
17925 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17926 cp $export_symbols $output_objdir/$soname.def;
17928 echo EXPORTS > $output_objdir/$soname.def;
17929 cat $export_symbols >> $output_objdir/$soname.def;
17931 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17938 hardcode_direct_GCJ=no
17939 hardcode_shlibpath_var_GCJ=no
17940 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17941 export_dynamic_flag_spec_GCJ='${wl}-E'
17942 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17943 # Instead, shared libraries are loaded at an image base (0x10000000 by
17944 # default) and relocated if they conflict, which is a slow very memory
17945 # consuming and fragmenting process. To avoid this, we pick a random,
17946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17947 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17948 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'
17949 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'
17952 linux* | k*bsd*-gnu)
17953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17955 case $cc_basename,$host_cpu in
17956 pgcc*) # Portland Group C compiler
17957 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'
17958 tmp_addflag=' $pic_flag'
17960 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17961 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'
17962 tmp_addflag=' $pic_flag -Mnomain' ;;
17963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17964 tmp_addflag=' -i_dynamic' ;;
17965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17966 tmp_addflag=' -i_dynamic -nofor_main' ;;
17967 ifc* | ifort*) # Intel Fortran compiler
17968 tmp_addflag=' -nofor_main' ;;
17970 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17972 if test $supports_anon_versioning = yes; then
17973 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17975 $echo "local: *; };" >> $output_objdir/$libname.ver~
17976 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17978 link_all_deplibs_GCJ=no
17984 netbsd* | netbsdelf*-gnu)
17985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17986 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17989 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17995 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18000 *** create shared libraries on Solaris systems. Therefore, libtool
18001 *** is disabling shared libraries support. We urge you to upgrade GNU
18002 *** binutils to release 2.9.1 or newer. Another option is to modify
18003 *** your PATH or compiler configuration so that the native linker is
18004 *** used, and then restart.
18007 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18008 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18016 case `$LD -v 2>&1` in
18017 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18021 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18022 *** reliably create shared libraries on SCO systems. Therefore, libtool
18023 *** is disabling shared libraries support. We urge you to upgrade GNU
18024 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18025 *** your PATH or compiler configuration so that the native linker is
18026 *** used, and then restart.
18031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18032 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18033 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18034 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18043 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18045 hardcode_direct_GCJ=yes
18046 hardcode_shlibpath_var_GCJ=no
18050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18051 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18052 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18059 if test "$ld_shlibs_GCJ" = no; then
18061 hardcode_libdir_flag_spec_GCJ=
18062 export_dynamic_flag_spec_GCJ=
18063 whole_archive_flag_spec_GCJ=
18066 # PORTME fill in a description of your system's linker (not GNU ld)
18069 allow_undefined_flag_GCJ=unsupported
18070 always_export_symbols_GCJ=yes
18071 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'
18072 # Note: this linker hardcodes the directories in LIBPATH if there
18073 # are no directories specified by -L.
18074 hardcode_minus_L_GCJ=yes
18075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18076 # Neither direct hardcoding nor static linking is supported with a
18078 hardcode_direct_GCJ=unsupported
18083 if test "$host_cpu" = ia64; then
18084 # On IA64, the linker does run time linking by default, so we don't
18085 # have to do anything special.
18086 aix_use_runtimelinking=no
18087 exp_sym_flag='-Bexport'
18090 # If we're using GNU nm, then we don't want the "-C" option.
18091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18092 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18093 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'
18095 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'
18097 aix_use_runtimelinking=no
18099 # Test if we are trying to use run time linking or normal
18100 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18101 # need to do runtime linking.
18102 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18103 for ld_flag in $LDFLAGS; do
18104 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18105 aix_use_runtimelinking=yes
18112 exp_sym_flag='-bexport'
18113 no_entry_flag='-bnoentry'
18116 # When large executables or shared objects are built, AIX ld can
18117 # have problems creating the table of contents. If linking a library
18118 # or program results in "error TOC overflow" add -mminimal-toc to
18119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18122 archive_cmds_GCJ=''
18123 hardcode_direct_GCJ=yes
18124 hardcode_libdir_separator_GCJ=':'
18125 link_all_deplibs_GCJ=yes
18127 if test "$GCC" = yes; then
18128 case $host_os in aix4.[012]|aix4.[012].*)
18129 # We only want to do this on AIX 4.2 and lower, the check
18130 # below for broken collect2 doesn't work under 4.3+
18131 collect2name=`${CC} -print-prog-name=collect2`
18132 if test -f "$collect2name" && \
18133 strings "$collect2name" | grep resolve_lib_name >/dev/null
18135 # We have reworked collect2
18136 hardcode_direct_GCJ=yes
18138 # We have old collect2
18139 hardcode_direct_GCJ=unsupported
18140 # It fails to find uninstalled libraries when the uninstalled
18141 # path is not listed in the libpath. Setting hardcode_minus_L
18142 # to unsupported forces relinking
18143 hardcode_minus_L_GCJ=yes
18144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18145 hardcode_libdir_separator_GCJ=
18149 shared_flag='-shared'
18150 if test "$aix_use_runtimelinking" = yes; then
18151 shared_flag="$shared_flag "'${wl}-G'
18155 if test "$host_cpu" = ia64; then
18156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18157 # chokes on -Wl,-G. The following line is correct:
18160 if test "$aix_use_runtimelinking" = yes; then
18161 shared_flag='${wl}-G'
18163 shared_flag='${wl}-bM:SRE'
18168 # It seems that -bexpall does not export symbols beginning with
18169 # underscore (_), so it is better to generate a list of symbols to export.
18170 always_export_symbols_GCJ=yes
18171 if test "$aix_use_runtimelinking" = yes; then
18172 # Warning - without using the other runtime loading flags (-brtl),
18173 # -berok will link without error, but may produce a broken library.
18174 allow_undefined_flag_GCJ='-berok'
18175 # Determine the default libpath from the value encoded in an empty executable.
18176 cat >conftest.$ac_ext <<_ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_link") 2>conftest.er1
18200 grep -v '^ *+' conftest.er1 >conftest.err
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest$ac_exeext &&
18208 $as_test_x conftest$ac_exeext; then
18210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18212 # Check for a 64-bit object if we didn't find anything.
18213 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; }
18216 echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18223 conftest$ac_exeext conftest.$ac_ext
18224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18226 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18227 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"
18229 if test "$host_cpu" = ia64; then
18230 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18231 allow_undefined_flag_GCJ="-z nodefs"
18232 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"
18234 # Determine the default libpath from the value encoded in an empty executable.
18235 cat >conftest.$ac_ext <<_ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } && {
18264 test -z "$ac_c_werror_flag" ||
18265 test ! -s conftest.err
18266 } && test -s conftest$ac_exeext &&
18267 $as_test_x conftest$ac_exeext; then
18269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18271 # Check for a 64-bit object if we didn't find anything.
18272 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; }
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18282 conftest$ac_exeext conftest.$ac_ext
18283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18285 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18286 # Warning - without using the other run time loading flags,
18287 # -berok will link without error, but may produce a broken library.
18288 no_undefined_flag_GCJ=' ${wl}-bernotok'
18289 allow_undefined_flag_GCJ=' ${wl}-berok'
18290 # Exported symbols can be pulled into shared objects from archives
18291 whole_archive_flag_spec_GCJ='$convenience'
18292 archive_cmds_need_lc_GCJ=yes
18293 # This is similar to how AIX traditionally builds its shared libraries.
18294 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'
18300 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)'
18301 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18302 hardcode_minus_L_GCJ=yes
18303 # see comment about different semantics on the GNU ld section
18308 export_dynamic_flag_spec_GCJ=-rdynamic
18311 cygwin* | mingw* | pw32*)
18312 # When not using gcc, we currently assume that we are using
18313 # Microsoft Visual C++.
18314 # hardcode_libdir_flag_spec is actually meaningless, as there is
18315 # no search path for DLLs.
18316 hardcode_libdir_flag_spec_GCJ=' '
18317 allow_undefined_flag_GCJ=unsupported
18318 # Tell ltmain to make .lib files, not .a files.
18320 # Tell ltmain to make .dll files, not .so files.
18322 # FIXME: Setting linknames here is a bad hack.
18323 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18324 # The linker will automatically build a .lib file if we build a DLL.
18325 old_archive_From_new_cmds_GCJ='true'
18326 # FIXME: Should let the user specify the lib program.
18327 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18328 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18329 enable_shared_with_static_runtimes_GCJ=yes
18332 darwin* | rhapsody*)
18334 rhapsody* | darwin1.[012])
18335 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18338 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18339 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18341 case ${MACOSX_DEPLOYMENT_TARGET} in
18343 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18346 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18352 archive_cmds_need_lc_GCJ=no
18353 hardcode_direct_GCJ=no
18354 hardcode_automatic_GCJ=yes
18355 hardcode_shlibpath_var_GCJ=unsupported
18356 whole_archive_flag_spec_GCJ=''
18357 link_all_deplibs_GCJ=yes
18358 if test "$GCC" = yes ; then
18359 output_verbose_link_cmd='echo'
18360 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18361 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18362 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18363 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}'
18364 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}'
18366 case $cc_basename in
18368 output_verbose_link_cmd='echo'
18369 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18370 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18372 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}'
18373 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}'
18383 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18385 hardcode_shlibpath_var_GCJ=no
18392 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18393 # support. Future versions do this automatically, but an explicit c++rt0.o
18394 # does not break anything, and helps significantly (at the cost of a little
18397 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18398 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18399 hardcode_direct_GCJ=yes
18400 hardcode_shlibpath_var_GCJ=no
18403 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18405 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18406 hardcode_direct_GCJ=yes
18407 hardcode_minus_L_GCJ=yes
18408 hardcode_shlibpath_var_GCJ=no
18411 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18412 freebsd* | dragonfly*)
18413 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18414 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18415 hardcode_direct_GCJ=yes
18416 hardcode_shlibpath_var_GCJ=no
18420 if test "$GCC" = yes; then
18421 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'
18423 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'
18425 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18426 hardcode_libdir_separator_GCJ=:
18427 hardcode_direct_GCJ=yes
18429 # hardcode_minus_L: Not really in the search PATH,
18430 # but as the default location of the library.
18431 hardcode_minus_L_GCJ=yes
18432 export_dynamic_flag_spec_GCJ='${wl}-E'
18436 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18437 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18439 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18441 if test "$with_gnu_ld" = no; then
18442 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18443 hardcode_libdir_separator_GCJ=:
18445 hardcode_direct_GCJ=yes
18446 export_dynamic_flag_spec_GCJ='${wl}-E'
18448 # hardcode_minus_L: Not really in the search PATH,
18449 # but as the default location of the library.
18450 hardcode_minus_L_GCJ=yes
18455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18458 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18461 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18464 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18470 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18473 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18476 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18480 if test "$with_gnu_ld" = no; then
18481 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18482 hardcode_libdir_separator_GCJ=:
18486 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18487 hardcode_direct_GCJ=no
18488 hardcode_shlibpath_var_GCJ=no
18491 hardcode_direct_GCJ=yes
18492 export_dynamic_flag_spec_GCJ='${wl}-E'
18494 # hardcode_minus_L: Not really in the search PATH,
18495 # but as the default location of the library.
18496 hardcode_minus_L_GCJ=yes
18502 irix5* | irix6* | nonstopux*)
18503 if test "$GCC" = yes; then
18504 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'
18506 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'
18507 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18510 hardcode_libdir_separator_GCJ=:
18511 link_all_deplibs_GCJ=yes
18514 netbsd* | netbsdelf*-gnu)
18515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18518 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18521 hardcode_direct_GCJ=yes
18522 hardcode_shlibpath_var_GCJ=no
18526 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18527 hardcode_direct_GCJ=yes
18528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18529 hardcode_libdir_separator_GCJ=:
18530 hardcode_shlibpath_var_GCJ=no
18534 hardcode_direct_GCJ=yes
18535 hardcode_shlibpath_var_GCJ=no
18536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18537 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18538 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18540 export_dynamic_flag_spec_GCJ='${wl}-E'
18543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18544 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18545 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18548 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18557 hardcode_minus_L_GCJ=yes
18558 allow_undefined_flag_GCJ=unsupported
18559 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'
18560 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18564 if test "$GCC" = yes; then
18565 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18566 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'
18568 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18569 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'
18571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18572 hardcode_libdir_separator_GCJ=:
18575 osf4* | osf5*) # as osf3* with the addition of -msym flag
18576 if test "$GCC" = yes; then
18577 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18578 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'
18579 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18581 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18582 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'
18583 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~
18584 $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'
18586 # Both c and cxx compiler support -rpath directly
18587 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18589 hardcode_libdir_separator_GCJ=:
18593 no_undefined_flag_GCJ=' -z text'
18594 if test "$GCC" = yes; then
18596 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18597 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18601 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18602 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18605 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18606 hardcode_shlibpath_var_GCJ=no
18608 solaris2.[0-5] | solaris2.[0-5].*) ;;
18610 # The compiler driver will combine linker options so we
18611 # cannot just pass the convience library names through
18612 # without $wl, iff we do not link with $LD.
18613 # Luckily, gcc supports the same syntax we need for Sun Studio.
18614 # Supported since Solaris 2.6 (maybe 2.5.1?)
18617 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18619 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' ;;
18622 link_all_deplibs_GCJ=yes
18626 if test "x$host_vendor" = xsequent; then
18627 # Use $CC to link under sequent, because it throws in some extra .o
18628 # files that make .init and .fini sections work.
18629 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18631 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18634 hardcode_direct_GCJ=yes
18635 hardcode_minus_L_GCJ=yes
18636 hardcode_shlibpath_var_GCJ=no
18640 case $host_vendor in
18642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18643 hardcode_direct_GCJ=yes # is this really true???
18646 ## LD is ld it makes a PLAMLIB
18647 ## CC just makes a GrossModule.
18648 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18649 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18650 hardcode_direct_GCJ=no
18653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18654 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18657 runpath_var='LD_RUN_PATH'
18658 hardcode_shlibpath_var_GCJ=no
18662 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18663 hardcode_shlibpath_var_GCJ=no
18664 export_dynamic_flag_spec_GCJ='-Bexport'
18668 if test -d /usr/nec; then
18669 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18670 hardcode_shlibpath_var_GCJ=no
18671 runpath_var=LD_RUN_PATH
18672 hardcode_runpath_var=yes
18677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18678 no_undefined_flag_GCJ='${wl}-z,text'
18679 archive_cmds_need_lc_GCJ=no
18680 hardcode_shlibpath_var_GCJ=no
18681 runpath_var='LD_RUN_PATH'
18683 if test "$GCC" = yes; then
18684 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18685 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18688 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18692 sysv5* | sco3.2v5* | sco5v6*)
18693 # Note: We can NOT use -z defs as we might desire, because we do not
18694 # link with -lc, and that would cause any symbols used from libc to
18695 # always be unresolved, which means just about no library would
18696 # ever link correctly. If we're not using GNU ld we use -z text
18697 # though, which does catch some bad symbols but isn't as heavy-handed
18699 no_undefined_flag_GCJ='${wl}-z,text'
18700 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18701 archive_cmds_need_lc_GCJ=no
18702 hardcode_shlibpath_var_GCJ=no
18703 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18704 hardcode_libdir_separator_GCJ=':'
18705 link_all_deplibs_GCJ=yes
18706 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18707 runpath_var='LD_RUN_PATH'
18709 if test "$GCC" = yes; then
18710 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18711 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18713 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18714 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18719 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18721 hardcode_shlibpath_var_GCJ=no
18730 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18731 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18732 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18735 # Do we need to explicitly link libc?
18737 case "x$archive_cmds_need_lc_GCJ" in
18739 # Assume -lc should be added
18740 archive_cmds_need_lc_GCJ=yes
18742 if test "$enable_shared" = yes && test "$GCC" = yes; then
18743 case $archive_cmds_GCJ in
18745 # FIXME: we may have to deal with multi-command sequences.
18748 # Test whether the compiler implicitly links with -lc since on some
18749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18750 # to ld, don't add -lc before -lgcc.
18751 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18757 (eval $ac_compile) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } 2>conftest.err; then
18763 libobjs=conftest.$ac_objext
18765 wl=$lt_prog_compiler_wl_GCJ
18766 pic_flag=$lt_prog_compiler_pic_GCJ
18772 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18773 allow_undefined_flag_GCJ=
18774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18775 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }
18780 archive_cmds_need_lc_GCJ=no
18782 archive_cmds_need_lc_GCJ=yes
18784 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18786 cat conftest.err 1>&5
18789 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18790 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18797 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18799 library_names_spec=
18800 libname_spec='lib$name'
18804 postuninstall_cmds=
18808 shlibpath_overrides_runpath=unknown
18810 dynamic_linker="$host_os ld.so"
18811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18812 if test "$GCC" = yes; then
18813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18814 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18815 # if the path contains ";" then we assume it to be the separator
18816 # otherwise default to the standard path separator (i.e. ":") - it is
18817 # assumed that no part of a normal pathname contains ";" but that should
18818 # okay in the real world where ";" in dirpaths is itself problematic.
18819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18826 need_lib_prefix=unknown
18827 hardcode_into_libs=no
18829 # when you set need_version to no, make sure it does not cause -set_version
18830 # flags to be left without arguments
18831 need_version=unknown
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18837 shlibpath_var=LIBPATH
18839 # AIX 3 has no versioning support, so we append a major version to the name.
18840 soname_spec='${libname}${release}${shared_ext}$major'
18847 hardcode_into_libs=yes
18848 if test "$host_cpu" = ia64; then
18849 # AIX 5 supports IA64
18850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18851 shlibpath_var=LD_LIBRARY_PATH
18853 # With GCC up to 2.95.x, collect2 would create an import file
18854 # for dependence libraries. The import file would start with
18855 # the line `#! .'. This would cause the generated library to
18856 # depend on `.', always an invalid library. This was fixed in
18857 # development snapshots of GCC prior to 3.0.
18859 aix4 | aix4.[01] | aix4.[01].*)
18860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18862 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18865 can_build_shared=no
18869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18870 # soname into executable. Probably we can add versioning support to
18871 # collect2, so additional links can be useful in future.
18872 if test "$aix_use_runtimelinking" = yes; then
18873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18874 # instead of lib<name>.a to let people know that these are not
18875 # typical AIX shared libraries.
18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18878 # We preserve .a as extension for shared libraries through AIX4.2
18879 # and later when we are not doing run time linking.
18880 library_names_spec='${libname}${release}.a $libname.a'
18881 soname_spec='${libname}${release}${shared_ext}$major'
18883 shlibpath_var=LIBPATH
18888 library_names_spec='$libname.ixlibrary $libname.a'
18889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18890 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'
18894 library_names_spec='${libname}${shared_ext}'
18895 dynamic_linker="$host_os ld.so"
18896 shlibpath_var=LIBRARY_PATH
18902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18903 soname_spec='${libname}${release}${shared_ext}$major'
18904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18905 shlibpath_var=LD_LIBRARY_PATH
18906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18908 # the default ld.so.conf also contains /usr/contrib/lib and
18909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18910 # libtool to hard-code these into programs
18913 cygwin* | mingw* | pw32*)
18914 version_type=windows
18919 case $GCC,$host_os in
18920 yes,cygwin* | yes,mingw* | yes,pw32*)
18921 library_names_spec='$libname.dll.a'
18922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18923 postinstall_cmds='base_file=`basename \${file}`~
18924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18925 dldir=$destdir/`dirname \$dlpath`~
18926 test -d \$dldir || mkdir -p \$dldir~
18927 $install_prog $dir/$dlname \$dldir/$dlname~
18928 chmod a+x \$dldir/$dlname'
18929 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18930 dlpath=$dir/\$dldll~
18932 shlibpath_overrides_runpath=yes
18936 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18937 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18938 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18941 # MinGW DLLs use traditional 'lib' prefix
18942 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18944 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18945 # It is most probably a Windows format PATH printed by
18946 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18947 # path with ; separators, and with drive letters. We can handle the
18948 # drive letters (cygwin fileutils understands them), so leave them,
18949 # especially as we might pass files found there to a mingw objdump,
18950 # which wouldn't understand a cygwinified path. Ahh.
18951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18957 # pw32 DLLs use 'pw' prefix rather than 'lib'
18958 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18967 dynamic_linker='Win32 ld.exe'
18968 # FIXME: first we should search . and the directory the executable is in
18972 darwin* | rhapsody*)
18973 dynamic_linker="$host_os dyld"
18974 version_type=darwin
18977 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18978 soname_spec='${libname}${release}${major}$shared_ext'
18979 shlibpath_overrides_runpath=yes
18980 shlibpath_var=DYLD_LIBRARY_PATH
18981 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18982 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18983 if test "$GCC" = yes; then
18984 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"`
18986 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18988 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18996 soname_spec='${libname}${release}${shared_ext}$major'
18997 shlibpath_var=LD_LIBRARY_PATH
19004 freebsd* | dragonfly*)
19005 # DragonFly does not have aout. When/if they implement a new
19006 # versioning mechanism, adjust this.
19007 if test -x /usr/bin/objformat; then
19008 objformat=`/usr/bin/objformat`
19011 freebsd[123]*) objformat=aout ;;
19012 *) objformat=elf ;;
19015 version_type=freebsd-$objformat
19016 case $version_type in
19018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19027 shlibpath_var=LD_LIBRARY_PATH
19030 shlibpath_overrides_runpath=yes
19032 freebsd3.[01]* | freebsdelf3.[01]*)
19033 shlibpath_overrides_runpath=yes
19034 hardcode_into_libs=yes
19036 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19037 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19038 shlibpath_overrides_runpath=no
19039 hardcode_into_libs=yes
19041 freebsd*) # from 4.6 on
19042 shlibpath_overrides_runpath=yes
19043 hardcode_into_libs=yes
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19053 soname_spec='${libname}${release}${shared_ext}$major'
19054 shlibpath_var=LD_LIBRARY_PATH
19055 hardcode_into_libs=yes
19058 hpux9* | hpux10* | hpux11*)
19059 # Give a soname corresponding to the major version so that dld.sl refuses to
19060 # link against other versions.
19067 hardcode_into_libs=yes
19068 dynamic_linker="$host_os dld.so"
19069 shlibpath_var=LD_LIBRARY_PATH
19070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19072 soname_spec='${libname}${release}${shared_ext}$major'
19073 if test "X$HPUX_IA64_MODE" = X32; then
19074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19082 hardcode_into_libs=yes
19083 dynamic_linker="$host_os dld.sl"
19084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19087 soname_spec='${libname}${release}${shared_ext}$major'
19088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19093 dynamic_linker="$host_os dld.sl"
19094 shlibpath_var=SHLIB_PATH
19095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19097 soname_spec='${libname}${release}${shared_ext}$major'
19100 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19101 postinstall_cmds='chmod 555 $lib'
19108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19109 soname_spec='${libname}${release}${shared_ext}$major'
19110 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19111 shlibpath_var=LD_LIBRARY_PATH
19112 shlibpath_overrides_runpath=no
19113 hardcode_into_libs=yes
19116 irix5* | irix6* | nonstopux*)
19118 nonstopux*) version_type=nonstopux ;;
19120 if test "$lt_cv_prog_gnu_ld" = yes; then
19128 soname_spec='${libname}${release}${shared_ext}$major'
19129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19131 irix5* | nonstopux*)
19132 libsuff= shlibsuff=
19135 case $LD in # libtool.m4 will add one of these switches to LD
19136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19137 libsuff= shlibsuff= libmagic=32-bit;;
19138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19139 libsuff=32 shlibsuff=N32 libmagic=N32;;
19140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19142 *) libsuff= shlibsuff= libmagic=never-match;;
19146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19147 shlibpath_overrides_runpath=no
19148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19150 hardcode_into_libs=yes
19153 # No shared lib support for Linux oldld, aout, or coff.
19154 linux*oldld* | linux*aout* | linux*coff*)
19158 # This must be Linux ELF.
19159 linux* | k*bsd*-gnu)
19163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19164 soname_spec='${libname}${release}${shared_ext}$major'
19165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19166 shlibpath_var=LD_LIBRARY_PATH
19167 shlibpath_overrides_runpath=no
19168 # This implies no fast_install, which is unacceptable.
19169 # Some rework will be needed to allow for fast_install
19170 # before this can be enabled.
19171 hardcode_into_libs=yes
19173 # Append ld.so.conf contents to the search path
19174 if test -f /etc/ld.so.conf; then
19175 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' ' '`
19176 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19179 # We used to test for /lib/ld.so.1 and disable shared libraries on
19180 # powerpc, because MkLinux only supported shared libraries with the
19181 # GNU dynamic linker. Since this was broken with cross compilers,
19182 # most powerpc-linux boxes support dynamic linking these days and
19183 # people can always --disable-shared, the test was removed, and we
19184 # assume the GNU/Linux dynamic linker is in use.
19185 dynamic_linker='GNU/Linux ld.so'
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19193 soname_spec='${libname}${release}${shared_ext}$major'
19194 shlibpath_var=LD_LIBRARY_PATH
19195 shlibpath_overrides_runpath=no
19196 hardcode_into_libs=yes
19197 dynamic_linker='NetBSD ld.elf_so'
19204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19207 dynamic_linker='NetBSD (a.out) ld.so'
19209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19210 soname_spec='${libname}${release}${shared_ext}$major'
19211 dynamic_linker='NetBSD ld.elf_so'
19213 shlibpath_var=LD_LIBRARY_PATH
19214 shlibpath_overrides_runpath=yes
19215 hardcode_into_libs=yes
19220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19221 shlibpath_var=LD_LIBRARY_PATH
19222 shlibpath_overrides_runpath=yes
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 soname_spec='${libname}${release}${shared_ext}$major'
19231 shlibpath_var=LD_LIBRARY_PATH
19232 shlibpath_overrides_runpath=yes
19237 sys_lib_dlsearch_path_spec="/usr/lib"
19239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19242 *) need_version=no ;;
19244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19246 shlibpath_var=LD_LIBRARY_PATH
19247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19249 openbsd2.[89] | openbsd2.[89].*)
19250 shlibpath_overrides_runpath=no
19253 shlibpath_overrides_runpath=yes
19257 shlibpath_overrides_runpath=yes
19262 libname_spec='$name'
19265 library_names_spec='$libname${shared_ext} $libname.a'
19266 dynamic_linker='OS/2 ld.exe'
19267 shlibpath_var=LIBPATH
19270 osf3* | osf4* | osf5*)
19274 soname_spec='${libname}${release}${shared_ext}$major'
19275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19276 shlibpath_var=LD_LIBRARY_PATH
19277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19286 soname_spec='${libname}${release}${shared_ext}$major'
19287 shlibpath_var=LD_LIBRARY_PATH
19288 shlibpath_overrides_runpath=yes
19289 hardcode_into_libs=yes
19290 # ldd complains unless libraries are executable
19291 postinstall_cmds='chmod +x $lib'
19296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19297 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19298 shlibpath_var=LD_LIBRARY_PATH
19299 shlibpath_overrides_runpath=yes
19300 if test "$with_gnu_ld" = yes; then
19308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309 soname_spec='${libname}${release}${shared_ext}$major'
19310 shlibpath_var=LD_LIBRARY_PATH
19311 case $host_vendor in
19313 shlibpath_overrides_runpath=no
19315 export_dynamic_flag_spec='${wl}-Blargedynsym'
19316 runpath_var=LD_RUN_PATH
19324 shlibpath_overrides_runpath=no
19325 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19331 if test -d /usr/nec ;then
19333 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19334 soname_spec='$libname${shared_ext}.$major'
19335 shlibpath_var=LD_LIBRARY_PATH
19339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19340 version_type=freebsd-elf
19343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19344 soname_spec='${libname}${release}${shared_ext}$major'
19345 shlibpath_var=LD_LIBRARY_PATH
19346 hardcode_into_libs=yes
19347 if test "$with_gnu_ld" = yes; then
19348 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19349 shlibpath_overrides_runpath=no
19351 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19352 shlibpath_overrides_runpath=yes
19355 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19359 sys_lib_dlsearch_path_spec='/usr/lib'
19364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19365 soname_spec='${libname}${release}${shared_ext}$major'
19366 shlibpath_var=LD_LIBRARY_PATH
19373 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19374 echo "${ECHO_T}$dynamic_linker" >&6; }
19375 test "$dynamic_linker" = no && can_build_shared=no
19377 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19378 if test "$GCC" = yes; then
19379 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19382 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19383 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19384 hardcode_action_GCJ=
19385 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19386 test -n "$runpath_var_GCJ" || \
19387 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19389 # We can hardcode non-existant directories.
19390 if test "$hardcode_direct_GCJ" != no &&
19391 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19392 # have to relink, otherwise we might link with an installed library
19393 # when we should be linking with a yet-to-be-installed one
19394 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19395 test "$hardcode_minus_L_GCJ" != no; then
19396 # Linking always hardcodes the temporary library directory.
19397 hardcode_action_GCJ=relink
19399 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19400 hardcode_action_GCJ=immediate
19403 # We cannot hardcode anything, or else we can only hardcode existing
19405 hardcode_action_GCJ=unsupported
19407 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19408 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19410 if test "$hardcode_action_GCJ" = relink; then
19411 # Fast installation is not supported
19412 enable_fast_install=no
19413 elif test "$shlibpath_overrides_runpath" = yes ||
19414 test "$enable_shared" = no; then
19415 # Fast installation is not necessary
19416 enable_fast_install=needless
19420 # The else clause should only fire when bootstrapping the
19421 # libtool distribution, otherwise you forgot to ship ltmain.sh
19422 # with your package, and you will get complaints that there are
19423 # no rules to generate ltmain.sh.
19424 if test -f "$ltmain"; then
19425 # See if we are running on zsh, and set the options which allow our commands through
19426 # without removal of \ escapes.
19427 if test -n "${ZSH_VERSION+set}" ; then
19428 setopt NO_GLOB_SUBST
19430 # Now quote all the things that may contain metacharacters while being
19431 # careful not to overquote the AC_SUBSTed values. We take copies of the
19432 # variables and quote the copies for generation of the libtool script.
19433 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19437 deplibs_check_method reload_flag reload_cmds need_locks \
19438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19439 lt_cv_sys_global_symbol_to_c_name_address \
19440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19441 old_postinstall_cmds old_postuninstall_cmds \
19445 lt_prog_compiler_wl_GCJ \
19446 lt_prog_compiler_pic_GCJ \
19447 lt_prog_compiler_static_GCJ \
19448 lt_prog_compiler_no_builtin_flag_GCJ \
19449 export_dynamic_flag_spec_GCJ \
19450 thread_safe_flag_spec_GCJ \
19451 whole_archive_flag_spec_GCJ \
19452 enable_shared_with_static_runtimes_GCJ \
19453 old_archive_cmds_GCJ \
19454 old_archive_from_new_cmds_GCJ \
19455 predep_objects_GCJ \
19456 postdep_objects_GCJ \
19459 compiler_lib_search_path_GCJ \
19461 archive_expsym_cmds_GCJ \
19462 postinstall_cmds_GCJ \
19463 postuninstall_cmds_GCJ \
19464 old_archive_from_expsyms_cmds_GCJ \
19465 allow_undefined_flag_GCJ \
19466 no_undefined_flag_GCJ \
19467 export_symbols_cmds_GCJ \
19468 hardcode_libdir_flag_spec_GCJ \
19469 hardcode_libdir_flag_spec_ld_GCJ \
19470 hardcode_libdir_separator_GCJ \
19471 hardcode_automatic_GCJ \
19473 module_expsym_cmds_GCJ \
19474 lt_cv_prog_compiler_c_o_GCJ \
19475 exclude_expsyms_GCJ \
19476 include_expsyms_GCJ; do
19479 old_archive_cmds_GCJ | \
19480 old_archive_from_new_cmds_GCJ | \
19481 archive_cmds_GCJ | \
19482 archive_expsym_cmds_GCJ | \
19483 module_cmds_GCJ | \
19484 module_expsym_cmds_GCJ | \
19485 old_archive_from_expsyms_cmds_GCJ | \
19486 export_symbols_cmds_GCJ | \
19487 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19488 postinstall_cmds | postuninstall_cmds | \
19489 old_postinstall_cmds | old_postuninstall_cmds | \
19490 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19491 # Double-quote double-evaled strings.
19492 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19501 *'\$0 --fallback-echo"')
19502 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19508 cat <<__EOF__ >> "$cfgfile"
19509 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19513 # Shell to use when invoking shell scripts.
19516 # Whether or not to build shared libraries.
19517 build_libtool_libs=$enable_shared
19519 # Whether or not to build static libraries.
19520 build_old_libs=$enable_static
19522 # Whether or not to add -lc for building shared libraries.
19523 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19525 # Whether or not to disallow shared libs when runtime libs are static
19526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19528 # Whether or not to optimize for fast installation.
19529 fast_install=$enable_fast_install
19532 host_alias=$host_alias
19536 # The build system.
19537 build_alias=$build_alias
19541 # An echo program that does not interpret backslashes.
19546 AR_FLAGS=$lt_AR_FLAGS
19551 # LTCC compiler flags.
19552 LTCFLAGS=$lt_LTCFLAGS
19554 # A language-specific compiler.
19555 CC=$lt_compiler_GCJ
19557 # Is the compiler the GNU C compiler?
19563 # The linker used to build libraries.
19566 # Whether we need hard or soft links.
19569 # A BSD-compatible nm program.
19572 # A symbol stripping program
19575 # Used to examine libraries when file_magic_cmd begins "file"
19576 MAGIC_CMD=$MAGIC_CMD
19578 # Used on cygwin: DLL creation program.
19581 # Used on cygwin: object dumper.
19584 # Used on cygwin: assembler.
19587 # The name of the directory that contains temporary libtool files.
19590 # How to create reloadable object files.
19591 reload_flag=$lt_reload_flag
19592 reload_cmds=$lt_reload_cmds
19594 # How to pass a linker flag through the compiler.
19595 wl=$lt_lt_prog_compiler_wl_GCJ
19597 # Object file suffix (normally "o").
19598 objext="$ac_objext"
19600 # Old archive suffix (normally "a").
19603 # Shared library suffix (normally ".so").
19604 shrext_cmds='$shrext_cmds'
19606 # Executable file suffix (normally "").
19609 # Additional compiler flags for building library objects.
19610 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19613 # What is the maximum length of a command?
19614 max_cmd_len=$lt_cv_sys_max_cmd_len
19616 # Does compiler simultaneously support -c and -o options?
19617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19619 # Must we lock files when doing compilation?
19620 need_locks=$lt_need_locks
19622 # Do we need the lib prefix for modules?
19623 need_lib_prefix=$need_lib_prefix
19625 # Do we need a version for libraries?
19626 need_version=$need_version
19628 # Whether dlopen is supported.
19629 dlopen_support=$enable_dlopen
19631 # Whether dlopen of programs is supported.
19632 dlopen_self=$enable_dlopen_self
19634 # Whether dlopen of statically linked programs is supported.
19635 dlopen_self_static=$enable_dlopen_self_static
19637 # Compiler flag to prevent dynamic linking.
19638 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19640 # Compiler flag to turn off builtin functions.
19641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19643 # Compiler flag to allow reflexive dlopens.
19644 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19646 # Compiler flag to generate shared objects directly from archives.
19647 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19649 # Compiler flag to generate thread-safe objects.
19650 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19652 # Library versioning type.
19653 version_type=$version_type
19655 # Format of library name prefix.
19656 libname_spec=$lt_libname_spec
19658 # List of archive names. First name is the real one, the rest are links.
19659 # The last name is the one that the linker finds with -lNAME.
19660 library_names_spec=$lt_library_names_spec
19662 # The coded name of the library, if different from the real name.
19663 soname_spec=$lt_soname_spec
19665 # Commands used to build and install an old-style archive.
19667 old_archive_cmds=$lt_old_archive_cmds_GCJ
19668 old_postinstall_cmds=$lt_old_postinstall_cmds
19669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19671 # Create an old-style archive from a shared archive.
19672 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19674 # Create a temporary old-style archive to link instead of a shared archive.
19675 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19677 # Commands used to build and install a shared archive.
19678 archive_cmds=$lt_archive_cmds_GCJ
19679 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19680 postinstall_cmds=$lt_postinstall_cmds
19681 postuninstall_cmds=$lt_postuninstall_cmds
19683 # Commands used to build a loadable module (assumed same as above if empty)
19684 module_cmds=$lt_module_cmds_GCJ
19685 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19687 # Commands to strip libraries.
19688 old_striplib=$lt_old_striplib
19689 striplib=$lt_striplib
19691 # Dependencies to place before the objects being linked to create a
19693 predep_objects=$lt_predep_objects_GCJ
19695 # Dependencies to place after the objects being linked to create a
19697 postdep_objects=$lt_postdep_objects_GCJ
19699 # Dependencies to place before the objects being linked to create a
19701 predeps=$lt_predeps_GCJ
19703 # Dependencies to place after the objects being linked to create a
19705 postdeps=$lt_postdeps_GCJ
19707 # The library search path used internally by the compiler when linking
19708 # a shared library.
19709 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19711 # Method to check whether dependent libraries are shared objects.
19712 deplibs_check_method=$lt_deplibs_check_method
19714 # Command to use when deplibs_check_method == file_magic.
19715 file_magic_cmd=$lt_file_magic_cmd
19717 # Flag that allows shared libraries with undefined symbols to be built.
19718 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19720 # Flag that forces no undefined symbols.
19721 no_undefined_flag=$lt_no_undefined_flag_GCJ
19723 # Commands used to finish a libtool library installation in a directory.
19724 finish_cmds=$lt_finish_cmds
19726 # Same as above, but a single script fragment to be evaled but not shown.
19727 finish_eval=$lt_finish_eval
19729 # Take the output of nm and produce a listing of raw symbols and C names.
19730 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19732 # Transform the output of nm in a proper C declaration
19733 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19735 # Transform the output of nm in a C name address pair
19736 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19738 # This is the shared library runtime path variable.
19739 runpath_var=$runpath_var
19741 # This is the shared library path variable.
19742 shlibpath_var=$shlibpath_var
19744 # Is shlibpath searched before the hard-coded library search path?
19745 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19747 # How to hardcode a shared library path into an executable.
19748 hardcode_action=$hardcode_action_GCJ
19750 # Whether we should hardcode library paths into libraries.
19751 hardcode_into_libs=$hardcode_into_libs
19753 # Flag to hardcode \$libdir into a binary during linking.
19754 # This must work even if \$libdir does not exist.
19755 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19757 # If ld is used when linking, flag to hardcode \$libdir into
19758 # a binary during linking. This must work even if \$libdir does
19760 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19762 # Whether we need a single -rpath flag with a separated argument.
19763 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19765 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19766 # resulting binary.
19767 hardcode_direct=$hardcode_direct_GCJ
19769 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19770 # resulting binary.
19771 hardcode_minus_L=$hardcode_minus_L_GCJ
19773 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19774 # the resulting binary.
19775 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19777 # Set to yes if building a shared library automatically hardcodes DIR into the library
19778 # and all subsequent libraries and executables linked against it.
19779 hardcode_automatic=$hardcode_automatic_GCJ
19781 # Variables whose values should be saved in libtool wrapper scripts and
19782 # restored at relink time.
19783 variables_saved_for_relink="$variables_saved_for_relink"
19785 # Whether libtool must link a program against all its dependency libraries.
19786 link_all_deplibs=$link_all_deplibs_GCJ
19788 # Compile-time system search path for libraries
19789 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19791 # Run-time system search path for libraries
19792 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19794 # Fix the shell variable \$srcfile for the compiler.
19795 fix_srcfile_path="$fix_srcfile_path_GCJ"
19797 # Set to yes if exported symbols are required.
19798 always_export_symbols=$always_export_symbols_GCJ
19800 # The commands to list exported symbols.
19801 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19803 # The commands to extract the exported symbol list from a shared archive.
19804 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19806 # Symbols that should not be listed in the preloaded symbols.
19807 exclude_expsyms=$lt_exclude_expsyms_GCJ
19809 # Symbols that must always be exported.
19810 include_expsyms=$lt_include_expsyms_GCJ
19812 # ### END LIBTOOL TAG CONFIG: $tagname
19818 # If there is no Makefile yet, we rely on a make rule to execute
19819 # `config.status --recheck' to rerun these tests and create the
19820 # libtool script then.
19821 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19822 if test -f "$ltmain_in"; then
19823 test -f Makefile && make "$ltmain"
19829 ac_cpp='$CPP $CPPFLAGS'
19830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19844 # Source file extension for RC test sources.
19847 # Object file extension for compiled RC test sources.
19851 # Code to be used in simple compile tests
19852 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19854 # Code to be used in simple link tests
19855 lt_simple_link_test_code="$lt_simple_compile_test_code"
19857 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19859 # If no C compiler was specified, use CC.
19862 # If no C compiler flags were specified, use CFLAGS.
19863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19865 # Allow CC to be a program name with arguments.
19869 # save warnings/boilerplate of simple test code
19870 ac_outfile=conftest.$ac_objext
19871 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19872 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19873 _lt_compiler_boilerplate=`cat conftest.err`
19876 ac_outfile=conftest.$ac_objext
19877 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19878 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19879 _lt_linker_boilerplate=`cat conftest.err`
19883 # Allow CC to be a program name with arguments.
19888 for cc_temp in $compiler""; do
19890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19898 lt_cv_prog_compiler_c_o_RC=yes
19900 # The else clause should only fire when bootstrapping the
19901 # libtool distribution, otherwise you forgot to ship ltmain.sh
19902 # with your package, and you will get complaints that there are
19903 # no rules to generate ltmain.sh.
19904 if test -f "$ltmain"; then
19905 # See if we are running on zsh, and set the options which allow our commands through
19906 # without removal of \ escapes.
19907 if test -n "${ZSH_VERSION+set}" ; then
19908 setopt NO_GLOB_SUBST
19910 # Now quote all the things that may contain metacharacters while being
19911 # careful not to overquote the AC_SUBSTed values. We take copies of the
19912 # variables and quote the copies for generation of the libtool script.
19913 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19915 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19916 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19917 deplibs_check_method reload_flag reload_cmds need_locks \
19918 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19919 lt_cv_sys_global_symbol_to_c_name_address \
19920 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19921 old_postinstall_cmds old_postuninstall_cmds \
19925 lt_prog_compiler_wl_RC \
19926 lt_prog_compiler_pic_RC \
19927 lt_prog_compiler_static_RC \
19928 lt_prog_compiler_no_builtin_flag_RC \
19929 export_dynamic_flag_spec_RC \
19930 thread_safe_flag_spec_RC \
19931 whole_archive_flag_spec_RC \
19932 enable_shared_with_static_runtimes_RC \
19933 old_archive_cmds_RC \
19934 old_archive_from_new_cmds_RC \
19935 predep_objects_RC \
19936 postdep_objects_RC \
19939 compiler_lib_search_path_RC \
19941 archive_expsym_cmds_RC \
19942 postinstall_cmds_RC \
19943 postuninstall_cmds_RC \
19944 old_archive_from_expsyms_cmds_RC \
19945 allow_undefined_flag_RC \
19946 no_undefined_flag_RC \
19947 export_symbols_cmds_RC \
19948 hardcode_libdir_flag_spec_RC \
19949 hardcode_libdir_flag_spec_ld_RC \
19950 hardcode_libdir_separator_RC \
19951 hardcode_automatic_RC \
19953 module_expsym_cmds_RC \
19954 lt_cv_prog_compiler_c_o_RC \
19955 exclude_expsyms_RC \
19956 include_expsyms_RC; do
19959 old_archive_cmds_RC | \
19960 old_archive_from_new_cmds_RC | \
19961 archive_cmds_RC | \
19962 archive_expsym_cmds_RC | \
19964 module_expsym_cmds_RC | \
19965 old_archive_from_expsyms_cmds_RC | \
19966 export_symbols_cmds_RC | \
19967 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19968 postinstall_cmds | postuninstall_cmds | \
19969 old_postinstall_cmds | old_postuninstall_cmds | \
19970 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19971 # Double-quote double-evaled strings.
19972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19981 *'\$0 --fallback-echo"')
19982 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19988 cat <<__EOF__ >> "$cfgfile"
19989 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19993 # Shell to use when invoking shell scripts.
19996 # Whether or not to build shared libraries.
19997 build_libtool_libs=$enable_shared
19999 # Whether or not to build static libraries.
20000 build_old_libs=$enable_static
20002 # Whether or not to add -lc for building shared libraries.
20003 build_libtool_need_lc=$archive_cmds_need_lc_RC
20005 # Whether or not to disallow shared libs when runtime libs are static
20006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20008 # Whether or not to optimize for fast installation.
20009 fast_install=$enable_fast_install
20012 host_alias=$host_alias
20016 # The build system.
20017 build_alias=$build_alias
20021 # An echo program that does not interpret backslashes.
20026 AR_FLAGS=$lt_AR_FLAGS
20031 # LTCC compiler flags.
20032 LTCFLAGS=$lt_LTCFLAGS
20034 # A language-specific compiler.
20037 # Is the compiler the GNU C compiler?
20043 # The linker used to build libraries.
20046 # Whether we need hard or soft links.
20049 # A BSD-compatible nm program.
20052 # A symbol stripping program
20055 # Used to examine libraries when file_magic_cmd begins "file"
20056 MAGIC_CMD=$MAGIC_CMD
20058 # Used on cygwin: DLL creation program.
20061 # Used on cygwin: object dumper.
20064 # Used on cygwin: assembler.
20067 # The name of the directory that contains temporary libtool files.
20070 # How to create reloadable object files.
20071 reload_flag=$lt_reload_flag
20072 reload_cmds=$lt_reload_cmds
20074 # How to pass a linker flag through the compiler.
20075 wl=$lt_lt_prog_compiler_wl_RC
20077 # Object file suffix (normally "o").
20078 objext="$ac_objext"
20080 # Old archive suffix (normally "a").
20083 # Shared library suffix (normally ".so").
20084 shrext_cmds='$shrext_cmds'
20086 # Executable file suffix (normally "").
20089 # Additional compiler flags for building library objects.
20090 pic_flag=$lt_lt_prog_compiler_pic_RC
20093 # What is the maximum length of a command?
20094 max_cmd_len=$lt_cv_sys_max_cmd_len
20096 # Does compiler simultaneously support -c and -o options?
20097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20099 # Must we lock files when doing compilation?
20100 need_locks=$lt_need_locks
20102 # Do we need the lib prefix for modules?
20103 need_lib_prefix=$need_lib_prefix
20105 # Do we need a version for libraries?
20106 need_version=$need_version
20108 # Whether dlopen is supported.
20109 dlopen_support=$enable_dlopen
20111 # Whether dlopen of programs is supported.
20112 dlopen_self=$enable_dlopen_self
20114 # Whether dlopen of statically linked programs is supported.
20115 dlopen_self_static=$enable_dlopen_self_static
20117 # Compiler flag to prevent dynamic linking.
20118 link_static_flag=$lt_lt_prog_compiler_static_RC
20120 # Compiler flag to turn off builtin functions.
20121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20123 # Compiler flag to allow reflexive dlopens.
20124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20126 # Compiler flag to generate shared objects directly from archives.
20127 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20129 # Compiler flag to generate thread-safe objects.
20130 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20132 # Library versioning type.
20133 version_type=$version_type
20135 # Format of library name prefix.
20136 libname_spec=$lt_libname_spec
20138 # List of archive names. First name is the real one, the rest are links.
20139 # The last name is the one that the linker finds with -lNAME.
20140 library_names_spec=$lt_library_names_spec
20142 # The coded name of the library, if different from the real name.
20143 soname_spec=$lt_soname_spec
20145 # Commands used to build and install an old-style archive.
20147 old_archive_cmds=$lt_old_archive_cmds_RC
20148 old_postinstall_cmds=$lt_old_postinstall_cmds
20149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20151 # Create an old-style archive from a shared archive.
20152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20154 # Create a temporary old-style archive to link instead of a shared archive.
20155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20157 # Commands used to build and install a shared archive.
20158 archive_cmds=$lt_archive_cmds_RC
20159 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20160 postinstall_cmds=$lt_postinstall_cmds
20161 postuninstall_cmds=$lt_postuninstall_cmds
20163 # Commands used to build a loadable module (assumed same as above if empty)
20164 module_cmds=$lt_module_cmds_RC
20165 module_expsym_cmds=$lt_module_expsym_cmds_RC
20167 # Commands to strip libraries.
20168 old_striplib=$lt_old_striplib
20169 striplib=$lt_striplib
20171 # Dependencies to place before the objects being linked to create a
20173 predep_objects=$lt_predep_objects_RC
20175 # Dependencies to place after the objects being linked to create a
20177 postdep_objects=$lt_postdep_objects_RC
20179 # Dependencies to place before the objects being linked to create a
20181 predeps=$lt_predeps_RC
20183 # Dependencies to place after the objects being linked to create a
20185 postdeps=$lt_postdeps_RC
20187 # The library search path used internally by the compiler when linking
20188 # a shared library.
20189 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20191 # Method to check whether dependent libraries are shared objects.
20192 deplibs_check_method=$lt_deplibs_check_method
20194 # Command to use when deplibs_check_method == file_magic.
20195 file_magic_cmd=$lt_file_magic_cmd
20197 # Flag that allows shared libraries with undefined symbols to be built.
20198 allow_undefined_flag=$lt_allow_undefined_flag_RC
20200 # Flag that forces no undefined symbols.
20201 no_undefined_flag=$lt_no_undefined_flag_RC
20203 # Commands used to finish a libtool library installation in a directory.
20204 finish_cmds=$lt_finish_cmds
20206 # Same as above, but a single script fragment to be evaled but not shown.
20207 finish_eval=$lt_finish_eval
20209 # Take the output of nm and produce a listing of raw symbols and C names.
20210 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20212 # Transform the output of nm in a proper C declaration
20213 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20215 # Transform the output of nm in a C name address pair
20216 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20218 # This is the shared library runtime path variable.
20219 runpath_var=$runpath_var
20221 # This is the shared library path variable.
20222 shlibpath_var=$shlibpath_var
20224 # Is shlibpath searched before the hard-coded library search path?
20225 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20227 # How to hardcode a shared library path into an executable.
20228 hardcode_action=$hardcode_action_RC
20230 # Whether we should hardcode library paths into libraries.
20231 hardcode_into_libs=$hardcode_into_libs
20233 # Flag to hardcode \$libdir into a binary during linking.
20234 # This must work even if \$libdir does not exist.
20235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20237 # If ld is used when linking, flag to hardcode \$libdir into
20238 # a binary during linking. This must work even if \$libdir does
20240 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20242 # Whether we need a single -rpath flag with a separated argument.
20243 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20245 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20246 # resulting binary.
20247 hardcode_direct=$hardcode_direct_RC
20249 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20250 # resulting binary.
20251 hardcode_minus_L=$hardcode_minus_L_RC
20253 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20254 # the resulting binary.
20255 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20257 # Set to yes if building a shared library automatically hardcodes DIR into the library
20258 # and all subsequent libraries and executables linked against it.
20259 hardcode_automatic=$hardcode_automatic_RC
20261 # Variables whose values should be saved in libtool wrapper scripts and
20262 # restored at relink time.
20263 variables_saved_for_relink="$variables_saved_for_relink"
20265 # Whether libtool must link a program against all its dependency libraries.
20266 link_all_deplibs=$link_all_deplibs_RC
20268 # Compile-time system search path for libraries
20269 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20271 # Run-time system search path for libraries
20272 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20274 # Fix the shell variable \$srcfile for the compiler.
20275 fix_srcfile_path="$fix_srcfile_path_RC"
20277 # Set to yes if exported symbols are required.
20278 always_export_symbols=$always_export_symbols_RC
20280 # The commands to list exported symbols.
20281 export_symbols_cmds=$lt_export_symbols_cmds_RC
20283 # The commands to extract the exported symbol list from a shared archive.
20284 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20286 # Symbols that should not be listed in the preloaded symbols.
20287 exclude_expsyms=$lt_exclude_expsyms_RC
20289 # Symbols that must always be exported.
20290 include_expsyms=$lt_include_expsyms_RC
20292 # ### END LIBTOOL TAG CONFIG: $tagname
20298 # If there is no Makefile yet, we rely on a make rule to execute
20299 # `config.status --recheck' to rerun these tests and create the
20300 # libtool script then.
20301 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20302 if test -f "$ltmain_in"; then
20303 test -f Makefile && make "$ltmain"
20309 ac_cpp='$CPP $CPPFLAGS'
20310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20319 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20320 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20321 { (exit 1); exit 1; }; }
20325 # Append the new tag name to the list of available tags.
20326 if test -n "$tagname" ; then
20327 available_tags="$available_tags $tagname"
20333 # Now substitute the updated list of available tags.
20334 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20335 mv "${ofile}T" "$ofile"
20339 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20340 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20341 { (exit 1); exit 1; }; }
20347 # This can be used to rebuild libtool when needed
20348 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20350 # Always use our own libtool.
20351 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20353 # Prevent multiple expansion
20375 if test "x$cross_compiling" = "xno"; then
20376 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20378 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20383 if test -n "$ac_tool_prefix"; then
20384 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20385 set dummy ${ac_tool_prefix}ar; ac_word=$2
20386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20388 if test "${ac_cv_prog_AR+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 if test -n "$AR"; then
20392 ac_cv_prog_AR="$AR" # Let the user override the test.
20394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20395 for as_dir in $PATH
20398 test -z "$as_dir" && as_dir=.
20399 for ac_exec_ext in '' $ac_executable_extensions; do
20400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20401 ac_cv_prog_AR="${ac_tool_prefix}ar"
20402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20412 if test -n "$AR"; then
20413 { echo "$as_me:$LINENO: result: $AR" >&5
20414 echo "${ECHO_T}$AR" >&6; }
20416 { echo "$as_me:$LINENO: result: no" >&5
20417 echo "${ECHO_T}no" >&6; }
20422 if test -z "$ac_cv_prog_AR"; then
20424 # Extract the first word of "ar", so it can be a program name with args.
20425 set dummy ar; ac_word=$2
20426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20428 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 if test -n "$ac_ct_AR"; then
20432 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20435 for as_dir in $PATH
20438 test -z "$as_dir" && as_dir=.
20439 for ac_exec_ext in '' $ac_executable_extensions; do
20440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20441 ac_cv_prog_ac_ct_AR="ar"
20442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20451 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20452 if test -n "$ac_ct_AR"; then
20453 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20454 echo "${ECHO_T}$ac_ct_AR" >&6; }
20456 { echo "$as_me:$LINENO: result: no" >&5
20457 echo "${ECHO_T}no" >&6; }
20460 if test "x$ac_ct_AR" = x; then
20463 case $cross_compiling:$ac_tool_warned in
20465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20466 whose name does not start with the host triplet. If you think this
20467 configuration is useful to you, please write to autoconf@gnu.org." >&5
20468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20469 whose name does not start with the host triplet. If you think this
20470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20471 ac_tool_warned=yes ;;
20476 AR="$ac_cv_prog_AR"
20479 if test -n "$ac_tool_prefix"; then
20480 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20481 set dummy ${ac_tool_prefix}ld; ac_word=$2
20482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20484 if test "${ac_cv_prog_LD+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 if test -n "$LD"; then
20488 ac_cv_prog_LD="$LD" # Let the user override the test.
20490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20491 for as_dir in $PATH
20494 test -z "$as_dir" && as_dir=.
20495 for ac_exec_ext in '' $ac_executable_extensions; do
20496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20497 ac_cv_prog_LD="${ac_tool_prefix}ld"
20498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20508 if test -n "$LD"; then
20509 { echo "$as_me:$LINENO: result: $LD" >&5
20510 echo "${ECHO_T}$LD" >&6; }
20512 { echo "$as_me:$LINENO: result: no" >&5
20513 echo "${ECHO_T}no" >&6; }
20518 if test -z "$ac_cv_prog_LD"; then
20520 # Extract the first word of "ld", so it can be a program name with args.
20521 set dummy ld; ac_word=$2
20522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20524 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 if test -n "$ac_ct_LD"; then
20528 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20531 for as_dir in $PATH
20534 test -z "$as_dir" && as_dir=.
20535 for ac_exec_ext in '' $ac_executable_extensions; do
20536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20537 ac_cv_prog_ac_ct_LD="ld"
20538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20547 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20548 if test -n "$ac_ct_LD"; then
20549 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20550 echo "${ECHO_T}$ac_ct_LD" >&6; }
20552 { echo "$as_me:$LINENO: result: no" >&5
20553 echo "${ECHO_T}no" >&6; }
20556 if test "x$ac_ct_LD" = x; then
20559 case $cross_compiling:$ac_tool_warned in
20561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20562 whose name does not start with the host triplet. If you think this
20563 configuration is useful to you, please write to autoconf@gnu.org." >&5
20564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20565 whose name does not start with the host triplet. If you think this
20566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20567 ac_tool_warned=yes ;;
20572 LD="$ac_cv_prog_LD"
20576 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20577 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20578 if test "${ac_cv_header_stdc+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20587 #include <stdlib.h>
20588 #include <stdarg.h>
20589 #include <string.h>
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_compile") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest.$ac_objext; then
20617 ac_cv_header_stdc=yes
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 ac_cv_header_stdc=no
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 if test $ac_cv_header_stdc = yes; then
20628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <string.h>
20638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20639 $EGREP "memchr" >/dev/null 2>&1; then
20642 ac_cv_header_stdc=no
20648 if test $ac_cv_header_stdc = yes; then
20649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20650 cat >conftest.$ac_ext <<_ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656 #include <stdlib.h>
20659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20660 $EGREP "free" >/dev/null 2>&1; then
20663 ac_cv_header_stdc=no
20669 if test $ac_cv_header_stdc = yes; then
20670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20671 if test "$cross_compiling" = yes; then
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20681 #include <stdlib.h>
20682 #if ((' ' & 0x0FF) == 0x020)
20683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20686 # define ISLOWER(c) \
20687 (('a' <= (c) && (c) <= 'i') \
20688 || ('j' <= (c) && (c) <= 'r') \
20689 || ('s' <= (c) && (c) <= 'z'))
20690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20698 for (i = 0; i < 256; i++)
20699 if (XOR (islower (i), ISLOWER (i))
20700 || toupper (i) != TOUPPER (i))
20705 rm -f conftest$ac_exeext
20706 if { (ac_try="$ac_link"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_link") 2>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20727 echo "$as_me: program exited with status $ac_status" >&5
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ( exit $ac_status )
20732 ac_cv_header_stdc=no
20734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20740 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20741 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20742 if test $ac_cv_header_stdc = yes; then
20744 cat >>confdefs.h <<\_ACEOF
20745 @%:@define STDC_HEADERS 1
20751 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20752 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20753 if test "${knfsd_cv_glibc2+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 cat >conftest.$ac_ext <<_ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20763 #include <features.h>
20764 #if !defined(__GLIBC__)
20769 if { (ac_try="$ac_cpp conftest.$ac_ext"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20777 grep -v '^ *+' conftest.er1 >conftest.err
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } >/dev/null && {
20782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20783 test ! -s conftest.err
20785 knfsd_cv_glibc2=yes
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20793 rm -f conftest.err conftest.$ac_ext
20796 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20797 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20798 if test $knfsd_cv_glibc2 = yes; then
20799 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20800 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20804 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20805 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20806 if test "${knfsd_cv_bsd_signals+set}" = set; then
20807 echo $ECHO_N "(cached) $ECHO_C" >&6
20809 if test "$cross_compiling" = yes; then
20810 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20811 See \`config.log' for more details." >&5
20812 echo "$as_me: error: cannot run test program while cross compiling
20813 See \`config.log' for more details." >&2;}
20814 { (exit 1); exit 1; }; }
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20823 #include <signal.h>
20824 #include <unistd.h>
20825 #include <sys/wait.h>
20827 static int counter = 0;
20828 static RETSIGTYPE handler(int num) { counter++; }
20833 if ((s = fork()) < 0) return 1;
20835 if (wait(&s) < 0) return 1;
20836 return WIFSIGNALED(s)? 1 : 0;
20839 signal(SIGHUP, handler);
20840 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20841 return (counter == 2)? 0 : 1;
20845 rm -f conftest$ac_exeext
20846 if { (ac_try="$ac_link"
20847 case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852 (eval "$ac_link") 2>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20856 { (case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861 (eval "$ac_try") 2>&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 knfsd_cv_bsd_signals=yes
20867 echo "$as_me: program exited with status $ac_status" >&5
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ( exit $ac_status )
20872 knfsd_cv_bsd_signals=no
20874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20879 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20880 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20881 test $knfsd_cv_bsd_signals = yes &&
20882 cat >>confdefs.h <<\_ACEOF
20883 @%:@define HAVE_BSD_SIGNALS 1
20888 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20889 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20890 if test "${ac_cv_func_gethostbyname+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20901 #define gethostbyname innocuous_gethostbyname
20903 /* System header to define __stub macros and hopefully few prototypes,
20904 which can conflict with char gethostbyname (); below.
20905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20906 <limits.h> exists even on freestanding compilers. */
20909 # include <limits.h>
20911 # include <assert.h>
20914 #undef gethostbyname
20916 /* Override any GCC internal prototype to avoid an error.
20917 Use char because int might match the return type of a GCC
20918 builtin and then its argument prototype would still apply. */
20922 char gethostbyname ();
20923 /* The GNU C library defines this for functions which it implements
20924 to always fail with ENOSYS. Some functions are actually named
20925 something starting with __ and the normal name is an alias. */
20926 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20933 return gethostbyname ();
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_link") 2>conftest.er1
20947 grep -v '^ *+' conftest.er1 >conftest.err
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } && {
20952 test -z "$ac_c_werror_flag" ||
20953 test ! -s conftest.err
20954 } && test -s conftest$ac_exeext &&
20955 $as_test_x conftest$ac_exeext; then
20956 ac_cv_func_gethostbyname=yes
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ac_cv_func_gethostbyname=no
20964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20965 conftest$ac_exeext conftest.$ac_ext
20967 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20968 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20969 if test $ac_cv_func_gethostbyname = yes; then
20972 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20973 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20974 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 ac_check_lib_save_LIBS=$LIBS
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20986 /* Override any GCC internal prototype to avoid an error.
20987 Use char because int might match the return type of a GCC
20988 builtin and then its argument prototype would still apply. */
20992 char gethostbyname ();
20996 return gethostbyname ();
21001 rm -f conftest.$ac_objext conftest$ac_exeext
21002 if { (ac_try="$ac_link"
21003 case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_link") 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && {
21015 test -z "$ac_c_werror_flag" ||
21016 test ! -s conftest.err
21017 } && test -s conftest$ac_exeext &&
21018 $as_test_x conftest$ac_exeext; then
21019 ac_cv_lib_nsl_gethostbyname=yes
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21024 ac_cv_lib_nsl_gethostbyname=no
21027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21028 conftest$ac_exeext conftest.$ac_ext
21029 LIBS=$ac_check_lib_save_LIBS
21031 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21032 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21033 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21041 { echo "$as_me:$LINENO: checking for connect" >&5
21042 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21043 if test "${ac_cv_func_connect+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21054 #define connect innocuous_connect
21056 /* System header to define __stub macros and hopefully few prototypes,
21057 which can conflict with char connect (); below.
21058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21059 <limits.h> exists even on freestanding compilers. */
21062 # include <limits.h>
21064 # include <assert.h>
21069 /* Override any GCC internal prototype to avoid an error.
21070 Use char because int might match the return type of a GCC
21071 builtin and then its argument prototype would still apply. */
21076 /* The GNU C library defines this for functions which it implements
21077 to always fail with ENOSYS. Some functions are actually named
21078 something starting with __ and the normal name is an alias. */
21079 #if defined __stub_connect || defined __stub___connect
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_link") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest$ac_exeext &&
21108 $as_test_x conftest$ac_exeext; then
21109 ac_cv_func_connect=yes
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_cv_func_connect=no
21117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21118 conftest$ac_exeext conftest.$ac_ext
21120 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21121 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21122 if test $ac_cv_func_connect = yes; then
21125 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21126 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21127 if test "${ac_cv_lib_socket_connect+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 ac_check_lib_save_LIBS=$LIBS
21131 LIBS="-lsocket $LIBNSL $LIBS"
21132 cat >conftest.$ac_ext <<_ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21139 /* Override any GCC internal prototype to avoid an error.
21140 Use char because int might match the return type of a GCC
21141 builtin and then its argument prototype would still apply. */
21154 rm -f conftest.$ac_objext conftest$ac_exeext
21155 if { (ac_try="$ac_link"
21156 case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_link") 2>conftest.er1
21163 grep -v '^ *+' conftest.er1 >conftest.err
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && {
21168 test -z "$ac_c_werror_flag" ||
21169 test ! -s conftest.err
21170 } && test -s conftest$ac_exeext &&
21171 $as_test_x conftest$ac_exeext; then
21172 ac_cv_lib_socket_connect=yes
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ac_cv_lib_socket_connect=no
21180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21181 conftest$ac_exeext conftest.$ac_ext
21182 LIBS=$ac_check_lib_save_LIBS
21184 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21185 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21186 if test $ac_cv_lib_socket_connect = yes; then
21187 LIBSOCKET="-lsocket"
21189 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21190 echo "$as_me: error: Function 'socket' not found." >&2;}
21191 { (exit 1); exit 1; }; }
21197 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21198 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21199 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21202 ac_check_lib_save_LIBS=$LIBS
21203 LIBS="-lcrypt $LIBS"
21204 cat >conftest.$ac_ext <<_ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21211 /* Override any GCC internal prototype to avoid an error.
21212 Use char because int might match the return type of a GCC
21213 builtin and then its argument prototype would still apply. */
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_link") 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest$ac_exeext &&
21243 $as_test_x conftest$ac_exeext; then
21244 ac_cv_lib_crypt_crypt=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_cv_lib_crypt_crypt=no
21252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21253 conftest$ac_exeext conftest.$ac_ext
21254 LIBS=$ac_check_lib_save_LIBS
21256 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21257 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21258 if test $ac_cv_lib_crypt_crypt = yes; then
21262 if test "$enable_nfsv4" = yes; then
21263 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21264 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21265 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 ac_check_lib_save_LIBS=$LIBS
21269 LIBS="-levent $LIBS"
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21277 /* Override any GCC internal prototype to avoid an error.
21278 Use char because int might match the return type of a GCC
21279 builtin and then its argument prototype would still apply. */
21283 char event_dispatch ();
21287 return event_dispatch ();
21292 rm -f conftest.$ac_objext conftest$ac_exeext
21293 if { (ac_try="$ac_link"
21294 case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_link") 2>conftest.er1
21301 grep -v '^ *+' conftest.er1 >conftest.err
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && {
21306 test -z "$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 } && test -s conftest$ac_exeext &&
21309 $as_test_x conftest$ac_exeext; then
21310 ac_cv_lib_event_event_dispatch=yes
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 ac_cv_lib_event_event_dispatch=no
21318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21319 conftest$ac_exeext conftest.$ac_ext
21320 LIBS=$ac_check_lib_save_LIBS
21322 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21323 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21324 if test $ac_cv_lib_event_event_dispatch = yes; then
21327 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21328 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21329 { (exit 1); exit 1; }; }
21332 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21333 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21334 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 ac_check_lib_save_LIBS=$LIBS
21338 LIBS="-lnfsidmap $LIBS"
21339 cat >conftest.$ac_ext <<_ACEOF
21342 cat confdefs.h >>conftest.$ac_ext
21343 cat >>conftest.$ac_ext <<_ACEOF
21344 /* end confdefs.h. */
21346 /* Override any GCC internal prototype to avoid an error.
21347 Use char because int might match the return type of a GCC
21348 builtin and then its argument prototype would still apply. */
21352 char nfs4_init_name_mapping ();
21356 return nfs4_init_name_mapping ();
21361 rm -f conftest.$ac_objext conftest$ac_exeext
21362 if { (ac_try="$ac_link"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_link") 2>conftest.er1
21370 grep -v '^ *+' conftest.er1 >conftest.err
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest$ac_exeext &&
21378 $as_test_x conftest$ac_exeext; then
21379 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21388 conftest$ac_exeext conftest.$ac_ext
21389 LIBS=$ac_check_lib_save_LIBS
21391 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21392 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21393 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21396 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21397 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21398 { (exit 1); exit 1; }; }
21402 for ac_header in event.h
21404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21411 ac_res=`eval echo '${'$as_ac_Header'}'`
21412 { echo "$as_me:$LINENO: result: $ac_res" >&5
21413 echo "${ECHO_T}$ac_res" >&6; }
21415 # Is the header compilable?
21416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21425 @%:@include <$ac_header>
21427 rm -f conftest.$ac_objext
21428 if { (ac_try="$ac_compile"
21429 case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_compile") 2>conftest.er1
21436 grep -v '^ *+' conftest.er1 >conftest.err
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && {
21441 test -z "$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21443 } && test -s conftest.$ac_objext; then
21444 ac_header_compiler=yes
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ac_header_compiler=no
21452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21454 echo "${ECHO_T}$ac_header_compiler" >&6; }
21456 # Is the header present?
21457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 @%:@include <$ac_header>
21467 if { (ac_try="$ac_cpp conftest.$ac_ext"
21468 case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21475 grep -v '^ *+' conftest.er1 >conftest.err
21477 cat conftest.err >&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } >/dev/null && {
21480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21483 ac_header_preproc=yes
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ac_header_preproc=no
21491 rm -f conftest.err conftest.$ac_ext
21492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493 echo "${ECHO_T}$ac_header_preproc" >&6; }
21495 # So? What about this header?
21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21502 ac_header_preproc=yes
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21518 @%:@@%:@ ------------------------------- @%:@@%:@
21519 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21520 @%:@@%:@ ------------------------------- @%:@@%:@
21522 ) | sed "s/^/$as_me: WARNING: /" >&2
21525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 eval "$as_ac_Header=\$ac_header_preproc"
21532 ac_res=`eval echo '${'$as_ac_Header'}'`
21533 { echo "$as_me:$LINENO: result: $ac_res" >&5
21534 echo "${ECHO_T}$ac_res" >&6; }
21537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21538 cat >>confdefs.h <<_ACEOF
21539 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21543 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21544 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21545 { (exit 1); exit 1; }; }
21551 for ac_header in nfsidmap.h
21553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 ac_res=`eval echo '${'$as_ac_Header'}'`
21561 { echo "$as_me:$LINENO: result: $ac_res" >&5
21562 echo "${ECHO_T}$ac_res" >&6; }
21564 # Is the header compilable?
21565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21567 cat >conftest.$ac_ext <<_ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h. */
21573 $ac_includes_default
21574 @%:@include <$ac_header>
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583 (eval "$ac_compile") 2>conftest.er1
21585 grep -v '^ *+' conftest.er1 >conftest.err
21587 cat conftest.err >&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && {
21590 test -z "$ac_c_werror_flag" ||
21591 test ! -s conftest.err
21592 } && test -s conftest.$ac_objext; then
21593 ac_header_compiler=yes
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 ac_header_compiler=no
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21603 echo "${ECHO_T}$ac_header_compiler" >&6; }
21605 # Is the header present?
21606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21608 cat >conftest.$ac_ext <<_ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 @%:@include <$ac_header>
21616 if { (ac_try="$ac_cpp conftest.$ac_ext"
21617 case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21624 grep -v '^ *+' conftest.er1 >conftest.err
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } >/dev/null && {
21629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21632 ac_header_preproc=yes
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 ac_header_preproc=no
21640 rm -f conftest.err conftest.$ac_ext
21641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21642 echo "${ECHO_T}$ac_header_preproc" >&6; }
21644 # So? What about this header?
21645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21651 ac_header_preproc=yes
21654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21667 @%:@@%:@ ------------------------------- @%:@@%:@
21668 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21669 @%:@@%:@ ------------------------------- @%:@@%:@
21671 ) | sed "s/^/$as_me: WARNING: /" >&2
21674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 eval "$as_ac_Header=\$ac_header_preproc"
21681 ac_res=`eval echo '${'$as_ac_Header'}'`
21682 { echo "$as_me:$LINENO: result: $ac_res" >&5
21683 echo "${ECHO_T}$ac_res" >&6; }
21686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21687 cat >>confdefs.h <<_ACEOF
21688 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21692 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21693 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21694 { (exit 1); exit 1; }; }
21699 if test "$enable_gss" = yes; then
21702 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21703 if test -n "$ac_tool_prefix"; then
21704 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21705 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21708 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 case $PKG_CONFIG in
21713 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21717 for as_dir in $PATH
21720 test -z "$as_dir" && as_dir=.
21721 for ac_exec_ext in '' $ac_executable_extensions; do
21722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21723 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21735 if test -n "$PKG_CONFIG"; then
21736 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21737 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21739 { echo "$as_me:$LINENO: result: no" >&5
21740 echo "${ECHO_T}no" >&6; }
21745 if test -z "$ac_cv_path_PKG_CONFIG"; then
21746 ac_pt_PKG_CONFIG=$PKG_CONFIG
21747 # Extract the first word of "pkg-config", so it can be a program name with args.
21748 set dummy pkg-config; ac_word=$2
21749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21751 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 case $ac_pt_PKG_CONFIG in
21756 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21760 for as_dir in $PATH
21763 test -z "$as_dir" && as_dir=.
21764 for ac_exec_ext in '' $ac_executable_extensions; do
21765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21766 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21777 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21778 if test -n "$ac_pt_PKG_CONFIG"; then
21779 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21780 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21782 { echo "$as_me:$LINENO: result: no" >&5
21783 echo "${ECHO_T}no" >&6; }
21786 if test "x$ac_pt_PKG_CONFIG" = x; then
21789 case $cross_compiling:$ac_tool_warned in
21791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21792 whose name does not start with the host triplet. If you think this
21793 configuration is useful to you, please write to autoconf@gnu.org." >&5
21794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21795 whose name does not start with the host triplet. If you think this
21796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21797 ac_tool_warned=yes ;;
21799 PKG_CONFIG=$ac_pt_PKG_CONFIG
21802 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21806 if test -n "$PKG_CONFIG"; then
21807 _pkg_min_version=0.9.0
21808 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21809 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21810 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21811 { echo "$as_me:$LINENO: result: yes" >&5
21812 echo "${ECHO_T}yes" >&6; }
21814 { echo "$as_me:$LINENO: result: no" >&5
21815 echo "${ECHO_T}no" >&6; }
21822 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21823 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21825 if test -n "$PKG_CONFIG"; then
21826 if test -n "$RPCSECGSS_CFLAGS"; then
21827 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21829 if test -n "$PKG_CONFIG" && \
21830 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21831 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; then
21835 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21843 if test -n "$PKG_CONFIG"; then
21844 if test -n "$RPCSECGSS_LIBS"; then
21845 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21847 if test -n "$PKG_CONFIG" && \
21848 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21849 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; then
21853 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21864 if test $pkg_failed = yes; then
21866 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21867 _pkg_short_errors_supported=yes
21869 _pkg_short_errors_supported=no
21871 if test $_pkg_short_errors_supported = yes; then
21872 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21874 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21876 # Put the nasty error message in config.log where it belongs
21877 echo "$RPCSECGSS_PKG_ERRORS" >&5
21879 { echo "$as_me:$LINENO: result: no" >&5
21880 echo "${ECHO_T}no" >&6; }
21881 { { 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
21882 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;}
21883 { (exit 1); exit 1; }; }
21886 elif test $pkg_failed = untried; then
21887 { { 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
21888 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;}
21889 { (exit 1); exit 1; }; }
21893 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21894 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21895 { echo "$as_me:$LINENO: result: yes" >&5
21896 echo "${ECHO_T}yes" >&6; }
21901 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21902 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21904 if test -n "$PKG_CONFIG"; then
21905 if test -n "$GSSAPI_CFLAGS"; then
21906 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21908 if test -n "$PKG_CONFIG" && \
21909 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21910 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; then
21914 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21922 if test -n "$PKG_CONFIG"; then
21923 if test -n "$GSSAPI_LIBS"; then
21924 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21926 if test -n "$PKG_CONFIG" && \
21927 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21928 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; then
21932 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21943 if test $pkg_failed = yes; then
21945 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21946 _pkg_short_errors_supported=yes
21948 _pkg_short_errors_supported=no
21950 if test $_pkg_short_errors_supported = yes; then
21951 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21953 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21955 # Put the nasty error message in config.log where it belongs
21956 echo "$GSSAPI_PKG_ERRORS" >&5
21958 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21962 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21963 installed software in a non-standard prefix.
21965 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21966 and GSSAPI_LIBS to avoid the need to call pkg-config.
21967 See the pkg-config man page for more details.
21969 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21973 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21974 installed software in a non-standard prefix.
21976 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21977 and GSSAPI_LIBS to avoid the need to call pkg-config.
21978 See the pkg-config man page for more details.
21980 { (exit 1); exit 1; }; }
21981 elif test $pkg_failed = untried; then
21982 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21983 is in your PATH or set the PKG_CONFIG environment variable to the full
21984 path to pkg-config.
21986 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21987 and GSSAPI_LIBS to avoid the need to call pkg-config.
21988 See the pkg-config man page for more details.
21990 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21991 See \`config.log' for more details." >&5
21992 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21993 is in your PATH or set the PKG_CONFIG environment variable to the full
21994 path to pkg-config.
21996 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21997 and GSSAPI_LIBS to avoid the need to call pkg-config.
21998 See the pkg-config man page for more details.
22000 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22001 See \`config.log' for more details." >&2;}
22002 { (exit 1); exit 1; }; }
22004 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22005 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22006 { echo "$as_me:$LINENO: result: yes" >&5
22007 echo "${ECHO_T}yes" >&6; }
22013 if test "$knfsd_cv_glibc2" = no; then
22014 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22015 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22016 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 ac_check_lib_save_LIBS=$LIBS
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22028 /* Override any GCC internal prototype to avoid an error.
22029 Use char because int might match the return type of a GCC
22030 builtin and then its argument prototype would still apply. */
22043 rm -f conftest.$ac_objext conftest$ac_exeext
22044 if { (ac_try="$ac_link"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_link") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest$ac_exeext &&
22060 $as_test_x conftest$ac_exeext; then
22061 ac_cv_lib_bsd_daemon=yes
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ac_cv_lib_bsd_daemon=no
22069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22070 conftest$ac_exeext conftest.$ac_ext
22071 LIBS=$ac_check_lib_save_LIBS
22073 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22074 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22075 if test $ac_cv_lib_bsd_daemon = yes; then
22084 if test "$enable_gss" = yes; then
22086 for ac_header in nfsidmap.h
22088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22095 ac_res=`eval echo '${'$as_ac_Header'}'`
22096 { echo "$as_me:$LINENO: result: $ac_res" >&5
22097 echo "${ECHO_T}$ac_res" >&6; }
22099 # Is the header compilable?
22100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22102 cat >conftest.$ac_ext <<_ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22108 $ac_includes_default
22109 @%:@include <$ac_header>
22111 rm -f conftest.$ac_objext
22112 if { (ac_try="$ac_compile"
22113 case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_compile") 2>conftest.er1
22120 grep -v '^ *+' conftest.er1 >conftest.err
22122 cat conftest.err >&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && {
22125 test -z "$ac_c_werror_flag" ||
22126 test ! -s conftest.err
22127 } && test -s conftest.$ac_objext; then
22128 ac_header_compiler=yes
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 ac_header_compiler=no
22136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22138 echo "${ECHO_T}$ac_header_compiler" >&6; }
22140 # Is the header present?
22141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22143 cat >conftest.$ac_ext <<_ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 @%:@include <$ac_header>
22151 if { (ac_try="$ac_cpp conftest.$ac_ext"
22152 case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22159 grep -v '^ *+' conftest.er1 >conftest.err
22161 cat conftest.err >&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } >/dev/null && {
22164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22167 ac_header_preproc=yes
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ac_header_preproc=no
22175 rm -f conftest.err conftest.$ac_ext
22176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22177 echo "${ECHO_T}$ac_header_preproc" >&6; }
22179 # So? What about this header?
22180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22186 ac_header_preproc=yes
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22202 @%:@@%:@ ------------------------------- @%:@@%:@
22203 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22204 @%:@@%:@ ------------------------------- @%:@@%:@
22206 ) | sed "s/^/$as_me: WARNING: /" >&2
22209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22214 eval "$as_ac_Header=\$ac_header_preproc"
22216 ac_res=`eval echo '${'$as_ac_Header'}'`
22217 { echo "$as_me:$LINENO: result: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22222 cat >>confdefs.h <<_ACEOF
22223 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22227 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22228 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22229 { (exit 1); exit 1; }; }
22235 for ac_header in spkm3.h
22237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 ac_res=`eval echo '${'$as_ac_Header'}'`
22245 { echo "$as_me:$LINENO: result: $ac_res" >&5
22246 echo "${ECHO_T}$ac_res" >&6; }
22248 # Is the header compilable?
22249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 $ac_includes_default
22258 @%:@include <$ac_header>
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_compile") 2>conftest.er1
22269 grep -v '^ *+' conftest.er1 >conftest.err
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } && {
22274 test -z "$ac_c_werror_flag" ||
22275 test ! -s conftest.err
22276 } && test -s conftest.$ac_objext; then
22277 ac_header_compiler=yes
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22282 ac_header_compiler=no
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22287 echo "${ECHO_T}$ac_header_compiler" >&6; }
22289 # Is the header present?
22290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22292 cat >conftest.$ac_ext <<_ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22298 @%:@include <$ac_header>
22300 if { (ac_try="$ac_cpp conftest.$ac_ext"
22301 case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22308 grep -v '^ *+' conftest.er1 >conftest.err
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } >/dev/null && {
22313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22314 test ! -s conftest.err
22316 ac_header_preproc=yes
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 ac_header_preproc=no
22324 rm -f conftest.err conftest.$ac_ext
22325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22326 echo "${ECHO_T}$ac_header_preproc" >&6; }
22328 # So? What about this header?
22329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22335 ac_header_preproc=yes
22338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22351 @%:@@%:@ ------------------------------- @%:@@%:@
22352 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22353 @%:@@%:@ ------------------------------- @%:@@%:@
22355 ) | sed "s/^/$as_me: WARNING: /" >&2
22358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 eval "$as_ac_Header=\$ac_header_preproc"
22365 ac_res=`eval echo '${'$as_ac_Header'}'`
22366 { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22371 cat >>confdefs.h <<_ACEOF
22372 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22376 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22377 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22382 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22383 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22384 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22387 ac_check_lib_save_LIBS=$LIBS
22388 LIBS="-lnfsidmap $LIBS"
22389 cat >conftest.$ac_ext <<_ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22396 /* Override any GCC internal prototype to avoid an error.
22397 Use char because int might match the return type of a GCC
22398 builtin and then its argument prototype would still apply. */
22402 char nfs4_set_debug ();
22406 return nfs4_set_debug ();
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412 if { (ac_try="$ac_link"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418 (eval "$ac_link") 2>conftest.er1
22420 grep -v '^ *+' conftest.er1 >conftest.err
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } && {
22425 test -z "$ac_c_werror_flag" ||
22426 test ! -s conftest.err
22427 } && test -s conftest$ac_exeext &&
22428 $as_test_x conftest$ac_exeext; then
22429 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22431 echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22434 ac_cv_lib_nfsidmap_nfs4_set_debug=no
22437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22438 conftest$ac_exeext conftest.$ac_ext
22439 LIBS=$ac_check_lib_save_LIBS
22441 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22442 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22443 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22445 cat >>confdefs.h <<\_ACEOF
22446 @%:@define HAVE_NFS4_SET_DEBUG 1
22453 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22454 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22456 # Check whether --with-krb5 was given.
22457 if test "${with_krb5+set}" = set; then
22458 withval=$with_krb5; case "$withval" in
22463 krb5_with="$withval"
22470 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22471 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22473 if test -f $dir/bin/krb5-config; then
22474 K5CONFIG=$dir/bin/krb5-config
22475 elif test -f "/usr/kerberos/bin/krb5-config"; then
22476 K5CONFIG="/usr/kerberos/bin/krb5-config"
22477 elif test -f "/usr/lib/mit/bin/krb5-config"; then
22478 K5CONFIG="/usr/lib/mit/bin/krb5-config"
22480 if test "$K5CONFIG" != ""; then
22481 KRBCFLAGS=`$K5CONFIG --cflags`
22482 KRBLIBS=`$K5CONFIG --libs gssapi`
22483 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
22485 cat >>confdefs.h <<_ACEOF
22486 @%:@define KRB5_VERSION $K5VERS
22489 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22490 \( -f $dir/lib/libgssapi_krb5.a -o \
22491 -f $dir/lib/libgssapi_krb5.so \) ; then
22493 cat >>confdefs.h <<\_ACEOF
22494 @%:@define HAVE_KRB5 1
22498 if test $K5VERS -le 131; then
22500 cat >>confdefs.h <<\_ACEOF
22501 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
22505 gssapi_lib=gssapi_krb5
22507 elif test \( -f $dir/include/heim_err.h -o\
22508 -f $dir/include/heimdal/heim_err.h \) -a \
22509 -f $dir/lib/libroken.a; then
22511 cat >>confdefs.h <<\_ACEOF
22512 @%:@define HAVE_HEIMDAL 1
22521 if test "x$KRBDIR" = "x"; then
22522 if test "x$krb5_with" = "x"; then
22523 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22524 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22525 { (exit 1); exit 1; }; }
22527 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22528 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22529 { (exit 1); exit 1; }; }
22532 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22533 echo "${ECHO_T}$KRBDIR" >&6; }
22535 echo "The current KRBDIR is $KRBDIR"
22536 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22537 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22539 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22542 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22545 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22546 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22547 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22548 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22551 ac_check_lib_save_LIBS=$LIBS
22552 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22553 cat >conftest.$ac_ext <<_ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22560 /* Override any GCC internal prototype to avoid an error.
22561 Use char because int might match the return type of a GCC
22562 builtin and then its argument prototype would still apply. */
22566 char gss_krb5_export_lucid_sec_context ();
22570 return gss_krb5_export_lucid_sec_context ();
22575 rm -f conftest.$ac_objext conftest$ac_exeext
22576 if { (ac_try="$ac_link"
22577 case "(($ac_try" in
22578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22579 *) ac_try_echo=$ac_try;;
22581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22582 (eval "$ac_link") 2>conftest.er1
22584 grep -v '^ *+' conftest.er1 >conftest.err
22586 cat conftest.err >&5
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } && {
22589 test -z "$ac_c_werror_flag" ||
22590 test ! -s conftest.err
22591 } && test -s conftest$ac_exeext &&
22592 $as_test_x conftest$ac_exeext; then
22593 eval "$as_ac_Lib=yes"
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22598 eval "$as_ac_Lib=no"
22601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22602 conftest$ac_exeext conftest.$ac_ext
22603 LIBS=$ac_check_lib_save_LIBS
22605 ac_res=`eval echo '${'$as_ac_Lib'}'`
22606 { echo "$as_me:$LINENO: result: $ac_res" >&5
22607 echo "${ECHO_T}$ac_res" >&6; }
22608 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22610 cat >>confdefs.h <<\_ACEOF
22611 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
22616 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22617 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22618 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22619 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 ac_check_lib_save_LIBS=$LIBS
22623 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22624 cat >conftest.$ac_ext <<_ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22631 /* Override any GCC internal prototype to avoid an error.
22632 Use char because int might match the return type of a GCC
22633 builtin and then its argument prototype would still apply. */
22637 char gss_krb5_set_allowable_enctypes ();
22641 return gss_krb5_set_allowable_enctypes ();
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653 (eval "$ac_link") 2>conftest.er1
22655 grep -v '^ *+' conftest.er1 >conftest.err
22657 cat conftest.err >&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } && {
22660 test -z "$ac_c_werror_flag" ||
22661 test ! -s conftest.err
22662 } && test -s conftest$ac_exeext &&
22663 $as_test_x conftest$ac_exeext; then
22664 eval "$as_ac_Lib=yes"
22666 echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22669 eval "$as_ac_Lib=no"
22672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22673 conftest$ac_exeext conftest.$ac_ext
22674 LIBS=$ac_check_lib_save_LIBS
22676 ac_res=`eval echo '${'$as_ac_Lib'}'`
22677 { echo "$as_me:$LINENO: result: $ac_res" >&5
22678 echo "${ECHO_T}$ac_res" >&6; }
22679 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22681 cat >>confdefs.h <<\_ACEOF
22682 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
22687 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22688 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22689 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22690 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22691 echo $ECHO_N "(cached) $ECHO_C" >&6
22693 ac_check_lib_save_LIBS=$LIBS
22694 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22695 cat >conftest.$ac_ext <<_ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22702 /* Override any GCC internal prototype to avoid an error.
22703 Use char because int might match the return type of a GCC
22704 builtin and then its argument prototype would still apply. */
22708 char gss_krb5_ccache_name ();
22712 return gss_krb5_ccache_name ();
22717 rm -f conftest.$ac_objext conftest$ac_exeext
22718 if { (ac_try="$ac_link"
22719 case "(($ac_try" in
22720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721 *) ac_try_echo=$ac_try;;
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724 (eval "$ac_link") 2>conftest.er1
22726 grep -v '^ *+' conftest.er1 >conftest.err
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } && {
22731 test -z "$ac_c_werror_flag" ||
22732 test ! -s conftest.err
22733 } && test -s conftest$ac_exeext &&
22734 $as_test_x conftest$ac_exeext; then
22735 eval "$as_ac_Lib=yes"
22737 echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22740 eval "$as_ac_Lib=no"
22743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22744 conftest$ac_exeext conftest.$ac_ext
22745 LIBS=$ac_check_lib_save_LIBS
22747 ac_res=`eval echo '${'$as_ac_Lib'}'`
22748 { echo "$as_me:$LINENO: result: $ac_res" >&5
22749 echo "${ECHO_T}$ac_res" >&6; }
22750 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22752 cat >>confdefs.h <<\_ACEOF
22753 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
22759 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22760 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22761 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22772 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22773 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22774 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22775 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 ac_check_lib_save_LIBS=$LIBS
22778 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22779 cat >conftest.$ac_ext <<_ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22792 char authgss_create_default ();
22796 return authgss_create_default ();
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (ac_try="$ac_link"
22803 case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_link") 2>conftest.er1
22810 grep -v '^ *+' conftest.er1 >conftest.err
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } && {
22815 test -z "$ac_c_werror_flag" ||
22816 test ! -s conftest.err
22817 } && test -s conftest$ac_exeext &&
22818 $as_test_x conftest$ac_exeext; then
22819 ac_cv_lib_rpcsecgss_authgss_create_default=yes
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 ac_cv_lib_rpcsecgss_authgss_create_default=no
22827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22828 conftest$ac_exeext conftest.$ac_ext
22829 LIBS=$ac_check_lib_save_LIBS
22831 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22832 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22833 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22836 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22837 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22838 { (exit 1); exit 1; }; }
22841 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22842 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22843 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22848 cat >conftest.$ac_ext <<_ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22855 /* Override any GCC internal prototype to avoid an error.
22856 Use char because int might match the return type of a GCC
22857 builtin and then its argument prototype would still apply. */
22861 char authgss_set_debug_level ();
22865 return authgss_set_debug_level ();
22870 rm -f conftest.$ac_objext conftest$ac_exeext
22871 if { (ac_try="$ac_link"
22872 case "(($ac_try" in
22873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874 *) ac_try_echo=$ac_try;;
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877 (eval "$ac_link") 2>conftest.er1
22879 grep -v '^ *+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } && {
22884 test -z "$ac_c_werror_flag" ||
22885 test ! -s conftest.err
22886 } && test -s conftest$ac_exeext &&
22887 $as_test_x conftest$ac_exeext; then
22888 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22897 conftest$ac_exeext conftest.$ac_ext
22898 LIBS=$ac_check_lib_save_LIBS
22900 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22901 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22902 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22904 cat >>confdefs.h <<\_ACEOF
22905 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22936 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22937 malloc.h memory.h netdb.h netinet/in.h paths.h \
22938 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22939 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22940 syslog.h unistd.h com_err.h et/com_err.h \
22943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22948 echo $ECHO_N "(cached) $ECHO_C" >&6
22950 ac_res=`eval echo '${'$as_ac_Header'}'`
22951 { echo "$as_me:$LINENO: result: $ac_res" >&5
22952 echo "${ECHO_T}$ac_res" >&6; }
22954 # Is the header compilable?
22955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22963 $ac_includes_default
22964 @%:@include <$ac_header>
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_compile") 2>conftest.er1
22975 grep -v '^ *+' conftest.er1 >conftest.err
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } && {
22980 test -z "$ac_c_werror_flag" ||
22981 test ! -s conftest.err
22982 } && test -s conftest.$ac_objext; then
22983 ac_header_compiler=yes
22985 echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ac_header_compiler=no
22991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22993 echo "${ECHO_T}$ac_header_compiler" >&6; }
22995 # Is the header present?
22996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22998 cat >conftest.$ac_ext <<_ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h. */
23004 @%:@include <$ac_header>
23006 if { (ac_try="$ac_cpp conftest.$ac_ext"
23007 case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23014 grep -v '^ *+' conftest.er1 >conftest.err
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } >/dev/null && {
23019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23020 test ! -s conftest.err
23022 ac_header_preproc=yes
23024 echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23027 ac_header_preproc=no
23030 rm -f conftest.err conftest.$ac_ext
23031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23032 echo "${ECHO_T}$ac_header_preproc" >&6; }
23034 # So? What about this header?
23035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23041 ac_header_preproc=yes
23044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23057 @%:@@%:@ ------------------------------- @%:@@%:@
23058 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23059 @%:@@%:@ ------------------------------- @%:@@%:@
23061 ) | sed "s/^/$as_me: WARNING: /" >&2
23064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23067 echo $ECHO_N "(cached) $ECHO_C" >&6
23069 eval "$as_ac_Header=\$ac_header_preproc"
23071 ac_res=`eval echo '${'$as_ac_Header'}'`
23072 { echo "$as_me:$LINENO: result: $ac_res" >&5
23073 echo "${ECHO_T}$ac_res" >&6; }
23076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23077 cat >>confdefs.h <<_ACEOF
23078 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23086 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23088 if test "${ac_cv_c_const+set}" = set; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 cat >conftest.$ac_ext <<_ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h. */
23101 /* FIXME: Include the comments suggested by Paul. */
23102 #ifndef __cplusplus
23103 /* Ultrix mips cc rejects this. */
23104 typedef int charset[2];
23106 /* SunOS 4.1.1 cc rejects this. */
23107 char const *const *pcpcc;
23109 /* NEC SVR4.0.2 mips cc rejects this. */
23110 struct point {int x, y;};
23111 static struct point const zero = {0,0};
23112 /* AIX XL C 1.02.0.0 rejects this.
23113 It does not let you subtract one const X* pointer from another in
23114 an arm of an if-expression whose if-part is not a constant
23116 const char *g = "string";
23117 pcpcc = &g + (g ? g-g : 0);
23118 /* HPUX 7.0 cc rejects these. */
23120 ppc = (char**) pcpcc;
23121 pcpcc = (char const *const *) ppc;
23122 { /* SCO 3.2v4 cc rejects this. */
23124 char const *s = 0 ? (char *) 0 : (char const *) 0;
23129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23130 int x[] = {25, 17};
23131 const int *foo = &x[0];
23134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23135 typedef const int *iptr;
23139 { /* AIX XL C 1.02.0.0 rejects this saying
23140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23141 struct s { int j; const int *ap[3]; };
23142 struct s *b; b->j = 5;
23144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23145 const int foo = 10;
23146 if (!foo) return 0;
23148 return !cs[0] && !zero.x;
23155 rm -f conftest.$ac_objext
23156 if { (ac_try="$ac_compile"
23157 case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_compile") 2>conftest.er1
23164 grep -v '^ *+' conftest.er1 >conftest.err
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } && {
23169 test -z "$ac_c_werror_flag" ||
23170 test ! -s conftest.err
23171 } && test -s conftest.$ac_objext; then
23174 echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23182 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23183 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23184 if test $ac_cv_c_const = no; then
23186 cat >>confdefs.h <<\_ACEOF
23192 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23193 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23194 if test "${ac_cv_type_uid_t+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23197 cat >conftest.$ac_ext <<_ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 #include <sys/types.h>
23206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23207 $EGREP "uid_t" >/dev/null 2>&1; then
23208 ac_cv_type_uid_t=yes
23210 ac_cv_type_uid_t=no
23215 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23216 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23217 if test $ac_cv_type_uid_t = no; then
23219 cat >>confdefs.h <<\_ACEOF
23220 @%:@define uid_t int
23224 cat >>confdefs.h <<\_ACEOF
23225 @%:@define gid_t int
23230 { echo "$as_me:$LINENO: checking for inline" >&5
23231 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23232 if test "${ac_cv_c_inline+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23236 for ac_kw in inline __inline__ __inline; do
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 #ifndef __cplusplus
23245 static $ac_kw foo_t static_foo () {return 0; }
23246 $ac_kw foo_t foo () {return 0; }
23250 rm -f conftest.$ac_objext
23251 if { (ac_try="$ac_compile"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_compile") 2>conftest.er1
23259 grep -v '^ *+' conftest.er1 >conftest.err
23261 cat conftest.err >&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && {
23264 test -z "$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23266 } && test -s conftest.$ac_objext; then
23267 ac_cv_c_inline=$ac_kw
23269 echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23276 test "$ac_cv_c_inline" != no && break
23280 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23281 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23284 case $ac_cv_c_inline in
23287 case $ac_cv_c_inline in
23289 *) ac_val=$ac_cv_c_inline;;
23291 cat >>confdefs.h <<_ACEOF
23292 #ifndef __cplusplus
23293 #define inline $ac_val
23299 { echo "$as_me:$LINENO: checking for off_t" >&5
23300 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23301 if test "${ac_cv_type_off_t+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23310 $ac_includes_default
23311 typedef off_t ac__type_new_;
23315 if ((ac__type_new_ *) 0)
23317 if (sizeof (ac__type_new_))
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23332 grep -v '^ *+' conftest.er1 >conftest.err
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23340 ac_cv_type_off_t=yes
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 ac_cv_type_off_t=no
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23351 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23352 if test $ac_cv_type_off_t = yes; then
23356 cat >>confdefs.h <<_ACEOF
23357 @%:@define off_t long int
23362 { echo "$as_me:$LINENO: checking for pid_t" >&5
23363 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23364 if test "${ac_cv_type_pid_t+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 cat >conftest.$ac_ext <<_ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 $ac_includes_default
23374 typedef pid_t ac__type_new_;
23378 if ((ac__type_new_ *) 0)
23380 if (sizeof (ac__type_new_))
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_compile") 2>conftest.er1
23395 grep -v '^ *+' conftest.er1 >conftest.err
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && {
23400 test -z "$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 } && test -s conftest.$ac_objext; then
23403 ac_cv_type_pid_t=yes
23405 echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23408 ac_cv_type_pid_t=no
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23414 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23415 if test $ac_cv_type_pid_t = yes; then
23419 cat >>confdefs.h <<_ACEOF
23420 @%:@define pid_t int
23425 { echo "$as_me:$LINENO: checking for size_t" >&5
23426 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23427 if test "${ac_cv_type_size_t+set}" = set; then
23428 echo $ECHO_N "(cached) $ECHO_C" >&6
23430 cat >conftest.$ac_ext <<_ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h. */
23436 $ac_includes_default
23437 typedef size_t ac__type_new_;
23441 if ((ac__type_new_ *) 0)
23443 if (sizeof (ac__type_new_))
23449 rm -f conftest.$ac_objext
23450 if { (ac_try="$ac_compile"
23451 case "(($ac_try" in
23452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453 *) ac_try_echo=$ac_try;;
23455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23456 (eval "$ac_compile") 2>conftest.er1
23458 grep -v '^ *+' conftest.er1 >conftest.err
23460 cat conftest.err >&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } && {
23463 test -z "$ac_c_werror_flag" ||
23464 test ! -s conftest.err
23465 } && test -s conftest.$ac_objext; then
23466 ac_cv_type_size_t=yes
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23471 ac_cv_type_size_t=no
23474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23477 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23478 if test $ac_cv_type_size_t = yes; then
23482 cat >>confdefs.h <<_ACEOF
23483 @%:@define size_t unsigned int
23488 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23489 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23490 if test "${ac_cv_header_time+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 cat >conftest.$ac_ext <<_ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 #include <sys/types.h>
23500 #include <sys/time.h>
23506 if ((struct tm *) 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_header_time=yes
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 ac_cv_header_time=no
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23540 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23541 if test $ac_cv_header_time = yes; then
23543 cat >>confdefs.h <<\_ACEOF
23544 @%:@define TIME_WITH_SYS_TIME 1
23549 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23550 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23551 if test "${ac_cv_struct_tm+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 #include <sys/types.h>
23567 int *p = &tm.tm_sec;
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577 *) ac_try_echo=$ac_try;;
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580 (eval "$ac_compile") 2>conftest.er1
23582 grep -v '^ *+' conftest.er1 >conftest.err
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } && {
23587 test -z "$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 } && test -s conftest.$ac_objext; then
23590 ac_cv_struct_tm=time.h
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23595 ac_cv_struct_tm=sys/time.h
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23601 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23602 if test $ac_cv_struct_tm = sys/time.h; then
23604 cat >>confdefs.h <<\_ACEOF
23605 @%:@define TM_IN_SYS_TIME 1
23611 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23612 # for constant arguments. Useless!
23613 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23614 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23615 if test "${ac_cv_working_alloca_h+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23618 cat >conftest.$ac_ext <<_ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23624 @%:@include <alloca.h>
23628 char *p = (char *) alloca (2 * sizeof (int));
23634 rm -f conftest.$ac_objext conftest$ac_exeext
23635 if { (ac_try="$ac_link"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_link") 2>conftest.er1
23643 grep -v '^ *+' conftest.er1 >conftest.err
23645 cat conftest.err >&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && {
23648 test -z "$ac_c_werror_flag" ||
23649 test ! -s conftest.err
23650 } && test -s conftest$ac_exeext &&
23651 $as_test_x conftest$ac_exeext; then
23652 ac_cv_working_alloca_h=yes
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 ac_cv_working_alloca_h=no
23660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23661 conftest$ac_exeext conftest.$ac_ext
23663 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23664 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23665 if test $ac_cv_working_alloca_h = yes; then
23667 cat >>confdefs.h <<\_ACEOF
23668 @%:@define HAVE_ALLOCA_H 1
23673 { echo "$as_me:$LINENO: checking for alloca" >&5
23674 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23675 if test "${ac_cv_func_alloca_works+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23678 cat >conftest.$ac_ext <<_ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23685 # define alloca __builtin_alloca
23688 # include <malloc.h>
23689 # define alloca _alloca
23691 # ifdef HAVE_ALLOCA_H
23692 # include <alloca.h>
23697 # ifndef alloca /* predefined by HP cc +Olibcalls */
23708 char *p = (char *) alloca (1);
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (ac_try="$ac_link"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_link") 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } && {
23728 test -z "$ac_c_werror_flag" ||
23729 test ! -s conftest.err
23730 } && test -s conftest$ac_exeext &&
23731 $as_test_x conftest$ac_exeext; then
23732 ac_cv_func_alloca_works=yes
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23737 ac_cv_func_alloca_works=no
23740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23741 conftest$ac_exeext conftest.$ac_ext
23743 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23744 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23746 if test $ac_cv_func_alloca_works = yes; then
23748 cat >>confdefs.h <<\_ACEOF
23749 @%:@define HAVE_ALLOCA 1
23753 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23754 # that cause trouble. Some versions do not even contain alloca or
23755 # contain a buggy version. If you still want to use their alloca,
23756 # use ar to extract alloca.o from them instead of compiling alloca.c.
23758 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23760 cat >>confdefs.h <<\_ACEOF
23761 @%:@define C_ALLOCA 1
23765 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23766 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23767 if test "${ac_cv_os_cray+set}" = set; then
23768 echo $ECHO_N "(cached) $ECHO_C" >&6
23770 cat >conftest.$ac_ext <<_ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h. */
23776 #if defined CRAY && ! defined CRAY2
23783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23784 $EGREP "webecray" >/dev/null 2>&1; then
23792 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23793 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23794 if test $ac_cv_os_cray = yes; then
23795 for ac_func in _getb67 GETB67 getb67; do
23796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23802 cat >conftest.$ac_ext <<_ACEOF
23805 cat confdefs.h >>conftest.$ac_ext
23806 cat >>conftest.$ac_ext <<_ACEOF
23807 /* end confdefs.h. */
23808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23810 #define $ac_func innocuous_$ac_func
23812 /* System header to define __stub macros and hopefully few prototypes,
23813 which can conflict with char $ac_func (); below.
23814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23815 <limits.h> exists even on freestanding compilers. */
23818 # include <limits.h>
23820 # include <assert.h>
23825 /* Override any GCC internal prototype to avoid an error.
23826 Use char because int might match the return type of a GCC
23827 builtin and then its argument prototype would still apply. */
23832 /* The GNU C library defines this for functions which it implements
23833 to always fail with ENOSYS. Some functions are actually named
23834 something starting with __ and the normal name is an alias. */
23835 #if defined __stub_$ac_func || defined __stub___$ac_func
23842 return $ac_func ();
23847 rm -f conftest.$ac_objext conftest$ac_exeext
23848 if { (ac_try="$ac_link"
23849 case "(($ac_try" in
23850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851 *) ac_try_echo=$ac_try;;
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854 (eval "$ac_link") 2>conftest.er1
23856 grep -v '^ *+' conftest.er1 >conftest.err
23858 cat conftest.err >&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } && {
23861 test -z "$ac_c_werror_flag" ||
23862 test ! -s conftest.err
23863 } && test -s conftest$ac_exeext &&
23864 $as_test_x conftest$ac_exeext; then
23865 eval "$as_ac_var=yes"
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23870 eval "$as_ac_var=no"
23873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23874 conftest$ac_exeext conftest.$ac_ext
23876 ac_res=`eval echo '${'$as_ac_var'}'`
23877 { echo "$as_me:$LINENO: result: $ac_res" >&5
23878 echo "${ECHO_T}$ac_res" >&6; }
23879 if test `eval echo '${'$as_ac_var'}'` = yes; then
23881 cat >>confdefs.h <<_ACEOF
23882 @%:@define CRAY_STACKSEG_END $ac_func
23891 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23892 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23893 if test "${ac_cv_c_stack_direction+set}" = set; then
23894 echo $ECHO_N "(cached) $ECHO_C" >&6
23896 if test "$cross_compiling" = yes; then
23897 ac_cv_c_stack_direction=0
23899 cat >conftest.$ac_ext <<_ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h. */
23905 $ac_includes_default
23907 find_stack_direction ()
23909 static char *addr = 0;
23914 return find_stack_direction ();
23917 return (&dummy > addr) ? 1 : -1;
23923 return find_stack_direction () < 0;
23926 rm -f conftest$ac_exeext
23927 if { (ac_try="$ac_link"
23928 case "(($ac_try" in
23929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23930 *) ac_try_echo=$ac_try;;
23932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23933 (eval "$ac_link") 2>&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23937 { (case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_try") 2>&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; }; then
23946 ac_cv_c_stack_direction=1
23948 echo "$as_me: program exited with status $ac_status" >&5
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ( exit $ac_status )
23953 ac_cv_c_stack_direction=-1
23955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23960 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23961 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23963 cat >>confdefs.h <<_ACEOF
23964 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
23975 ac_header_dirent=no
23976 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23977 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23978 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23979 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23983 cat >conftest.$ac_ext <<_ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 #include <sys/types.h>
24001 rm -f conftest.$ac_objext
24002 if { (ac_try="$ac_compile"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_compile") 2>conftest.er1
24010 grep -v '^ *+' conftest.er1 >conftest.err
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } && {
24015 test -z "$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 } && test -s conftest.$ac_objext; then
24018 eval "$as_ac_Header=yes"
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 eval "$as_ac_Header=no"
24026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24028 ac_res=`eval echo '${'$as_ac_Header'}'`
24029 { echo "$as_me:$LINENO: result: $ac_res" >&5
24030 echo "${ECHO_T}$ac_res" >&6; }
24031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24032 cat >>confdefs.h <<_ACEOF
24033 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24036 ac_header_dirent=$ac_hdr; break
24040 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24041 if test $ac_header_dirent = dirent.h; then
24042 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24043 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24044 if test "${ac_cv_search_opendir+set}" = set; then
24045 echo $ECHO_N "(cached) $ECHO_C" >&6
24047 ac_func_search_save_LIBS=$LIBS
24048 cat >conftest.$ac_ext <<_ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h. */
24055 /* Override any GCC internal prototype to avoid an error.
24056 Use char because int might match the return type of a GCC
24057 builtin and then its argument prototype would still apply. */
24070 for ac_lib in '' dir; do
24071 if test -z "$ac_lib"; then
24072 ac_res="none required"
24075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24077 rm -f conftest.$ac_objext conftest$ac_exeext
24078 if { (ac_try="$ac_link"
24079 case "(($ac_try" in
24080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081 *) ac_try_echo=$ac_try;;
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084 (eval "$ac_link") 2>conftest.er1
24086 grep -v '^ *+' conftest.er1 >conftest.err
24088 cat conftest.err >&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } && {
24091 test -z "$ac_c_werror_flag" ||
24092 test ! -s conftest.err
24093 } && test -s conftest$ac_exeext &&
24094 $as_test_x conftest$ac_exeext; then
24095 ac_cv_search_opendir=$ac_res
24097 echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24105 if test "${ac_cv_search_opendir+set}" = set; then
24109 if test "${ac_cv_search_opendir+set}" = set; then
24112 ac_cv_search_opendir=no
24114 rm conftest.$ac_ext
24115 LIBS=$ac_func_search_save_LIBS
24117 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24118 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24119 ac_res=$ac_cv_search_opendir
24120 if test "$ac_res" != no; then
24121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24126 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24128 if test "${ac_cv_search_opendir+set}" = set; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24131 ac_func_search_save_LIBS=$LIBS
24132 cat >conftest.$ac_ext <<_ACEOF
24135 cat confdefs.h >>conftest.$ac_ext
24136 cat >>conftest.$ac_ext <<_ACEOF
24137 /* end confdefs.h. */
24139 /* Override any GCC internal prototype to avoid an error.
24140 Use char because int might match the return type of a GCC
24141 builtin and then its argument prototype would still apply. */
24154 for ac_lib in '' x; do
24155 if test -z "$ac_lib"; then
24156 ac_res="none required"
24159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24161 rm -f conftest.$ac_objext conftest$ac_exeext
24162 if { (ac_try="$ac_link"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168 (eval "$ac_link") 2>conftest.er1
24170 grep -v '^ *+' conftest.er1 >conftest.err
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } && {
24175 test -z "$ac_c_werror_flag" ||
24176 test ! -s conftest.err
24177 } && test -s conftest$ac_exeext &&
24178 $as_test_x conftest$ac_exeext; then
24179 ac_cv_search_opendir=$ac_res
24181 echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24189 if test "${ac_cv_search_opendir+set}" = set; then
24193 if test "${ac_cv_search_opendir+set}" = set; then
24196 ac_cv_search_opendir=no
24198 rm conftest.$ac_ext
24199 LIBS=$ac_func_search_save_LIBS
24201 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24202 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24203 ac_res=$ac_cv_search_opendir
24204 if test "$ac_res" != no; then
24205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24211 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24212 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24213 if test "${ac_cv_func_closedir_void+set}" = set; then
24214 echo $ECHO_N "(cached) $ECHO_C" >&6
24216 if test "$cross_compiling" = yes; then
24217 ac_cv_func_closedir_void=yes
24219 cat >conftest.$ac_ext <<_ACEOF
24222 cat confdefs.h >>conftest.$ac_ext
24223 cat >>conftest.$ac_ext <<_ACEOF
24224 /* end confdefs.h. */
24225 $ac_includes_default
24226 #include <$ac_header_dirent>
24227 #ifndef __cplusplus
24234 return closedir (opendir (".")) != 0;
24239 rm -f conftest$ac_exeext
24240 if { (ac_try="$ac_link"
24241 case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246 (eval "$ac_link") 2>&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24250 { (case "(($ac_try" in
24251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252 *) ac_try_echo=$ac_try;;
24254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24255 (eval "$ac_try") 2>&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); }; }; then
24259 ac_cv_func_closedir_void=no
24261 echo "$as_me: program exited with status $ac_status" >&5
24262 echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24265 ( exit $ac_status )
24266 ac_cv_func_closedir_void=yes
24268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24273 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24274 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24275 if test $ac_cv_func_closedir_void = yes; then
24277 cat >>confdefs.h <<\_ACEOF
24278 @%:@define CLOSEDIR_VOID 1
24283 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24284 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24285 if test "${ac_cv_lib_error_at_line+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24288 cat >conftest.$ac_ext <<_ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24298 error_at_line (0, 0, "", 0, "an error occurred");
24303 rm -f conftest.$ac_objext conftest$ac_exeext
24304 if { (ac_try="$ac_link"
24305 case "(($ac_try" in
24306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307 *) ac_try_echo=$ac_try;;
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310 (eval "$ac_link") 2>conftest.er1
24312 grep -v '^ *+' conftest.er1 >conftest.err
24314 cat conftest.err >&5
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); } && {
24317 test -z "$ac_c_werror_flag" ||
24318 test ! -s conftest.err
24319 } && test -s conftest$ac_exeext &&
24320 $as_test_x conftest$ac_exeext; then
24321 ac_cv_lib_error_at_line=yes
24323 echo "$as_me: failed program was:" >&5
24324 sed 's/^/| /' conftest.$ac_ext >&5
24326 ac_cv_lib_error_at_line=no
24329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24330 conftest$ac_exeext conftest.$ac_ext
24332 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24333 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24334 if test $ac_cv_lib_error_at_line = no; then
24335 case " $LIB@&t@OBJS " in
24336 *" error.$ac_objext "* ) ;;
24337 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
24344 for ac_header in vfork.h
24346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24351 echo $ECHO_N "(cached) $ECHO_C" >&6
24353 ac_res=`eval echo '${'$as_ac_Header'}'`
24354 { echo "$as_me:$LINENO: result: $ac_res" >&5
24355 echo "${ECHO_T}$ac_res" >&6; }
24357 # Is the header compilable?
24358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24360 cat >conftest.$ac_ext <<_ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h. */
24366 $ac_includes_default
24367 @%:@include <$ac_header>
24369 rm -f conftest.$ac_objext
24370 if { (ac_try="$ac_compile"
24371 case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376 (eval "$ac_compile") 2>conftest.er1
24378 grep -v '^ *+' conftest.er1 >conftest.err
24380 cat conftest.err >&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); } && {
24383 test -z "$ac_c_werror_flag" ||
24384 test ! -s conftest.err
24385 } && test -s conftest.$ac_objext; then
24386 ac_header_compiler=yes
24388 echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24391 ac_header_compiler=no
24394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24396 echo "${ECHO_T}$ac_header_compiler" >&6; }
24398 # Is the header present?
24399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24401 cat >conftest.$ac_ext <<_ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 @%:@include <$ac_header>
24409 if { (ac_try="$ac_cpp conftest.$ac_ext"
24410 case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24417 grep -v '^ *+' conftest.er1 >conftest.err
24419 cat conftest.err >&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } >/dev/null && {
24422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24423 test ! -s conftest.err
24425 ac_header_preproc=yes
24427 echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24430 ac_header_preproc=no
24433 rm -f conftest.err conftest.$ac_ext
24434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24435 echo "${ECHO_T}$ac_header_preproc" >&6; }
24437 # So? What about this header?
24438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24444 ac_header_preproc=yes
24447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24460 @%:@@%:@ ------------------------------- @%:@@%:@
24461 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24462 @%:@@%:@ ------------------------------- @%:@@%:@
24464 ) | sed "s/^/$as_me: WARNING: /" >&2
24467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24470 echo $ECHO_N "(cached) $ECHO_C" >&6
24472 eval "$as_ac_Header=\$ac_header_preproc"
24474 ac_res=`eval echo '${'$as_ac_Header'}'`
24475 { echo "$as_me:$LINENO: result: $ac_res" >&5
24476 echo "${ECHO_T}$ac_res" >&6; }
24479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24480 cat >>confdefs.h <<_ACEOF
24481 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24490 for ac_func in fork vfork
24492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24498 cat >conftest.$ac_ext <<_ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h. */
24504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24506 #define $ac_func innocuous_$ac_func
24508 /* System header to define __stub macros and hopefully few prototypes,
24509 which can conflict with char $ac_func (); below.
24510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24511 <limits.h> exists even on freestanding compilers. */
24514 # include <limits.h>
24516 # include <assert.h>
24521 /* Override any GCC internal prototype to avoid an error.
24522 Use char because int might match the return type of a GCC
24523 builtin and then its argument prototype would still apply. */
24528 /* The GNU C library defines this for functions which it implements
24529 to always fail with ENOSYS. Some functions are actually named
24530 something starting with __ and the normal name is an alias. */
24531 #if defined __stub_$ac_func || defined __stub___$ac_func
24538 return $ac_func ();
24543 rm -f conftest.$ac_objext conftest$ac_exeext
24544 if { (ac_try="$ac_link"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550 (eval "$ac_link") 2>conftest.er1
24552 grep -v '^ *+' conftest.er1 >conftest.err
24554 cat conftest.err >&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } && {
24557 test -z "$ac_c_werror_flag" ||
24558 test ! -s conftest.err
24559 } && test -s conftest$ac_exeext &&
24560 $as_test_x conftest$ac_exeext; then
24561 eval "$as_ac_var=yes"
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 eval "$as_ac_var=no"
24569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24570 conftest$ac_exeext conftest.$ac_ext
24572 ac_res=`eval echo '${'$as_ac_var'}'`
24573 { echo "$as_me:$LINENO: result: $ac_res" >&5
24574 echo "${ECHO_T}$ac_res" >&6; }
24575 if test `eval echo '${'$as_ac_var'}'` = yes; then
24576 cat >>confdefs.h <<_ACEOF
24577 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24583 if test "x$ac_cv_func_fork" = xyes; then
24584 { echo "$as_me:$LINENO: checking for working fork" >&5
24585 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24586 if test "${ac_cv_func_fork_works+set}" = set; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24589 if test "$cross_compiling" = yes; then
24590 ac_cv_func_fork_works=cross
24592 cat >conftest.$ac_ext <<_ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h. */
24598 $ac_includes_default
24603 /* By Ruediger Kuhlmann. */
24604 return fork () < 0;
24610 rm -f conftest$ac_exeext
24611 if { (ac_try="$ac_link"
24612 case "(($ac_try" in
24613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614 *) ac_try_echo=$ac_try;;
24616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24617 (eval "$ac_link") 2>&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24621 { (case "(($ac_try" in
24622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623 *) ac_try_echo=$ac_try;;
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626 (eval "$ac_try") 2>&5
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; }; then
24630 ac_cv_func_fork_works=yes
24632 echo "$as_me: program exited with status $ac_status" >&5
24633 echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24636 ( exit $ac_status )
24637 ac_cv_func_fork_works=no
24639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24644 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24645 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24648 ac_cv_func_fork_works=$ac_cv_func_fork
24650 if test "x$ac_cv_func_fork_works" = xcross; then
24652 *-*-amigaos* | *-*-msdosdjgpp*)
24653 # Override, as these systems have only a dummy fork() stub
24654 ac_cv_func_fork_works=no
24657 ac_cv_func_fork_works=yes
24660 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24661 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24663 ac_cv_func_vfork_works=$ac_cv_func_vfork
24664 if test "x$ac_cv_func_vfork" = xyes; then
24665 { echo "$as_me:$LINENO: checking for working vfork" >&5
24666 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24667 if test "${ac_cv_func_vfork_works+set}" = set; then
24668 echo $ECHO_N "(cached) $ECHO_C" >&6
24670 if test "$cross_compiling" = yes; then
24671 ac_cv_func_vfork_works=cross
24673 cat >conftest.$ac_ext <<_ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24679 /* Thanks to Paul Eggert for this test. */
24680 $ac_includes_default
24681 #include <sys/wait.h>
24682 #ifdef HAVE_VFORK_H
24683 # include <vfork.h>
24685 /* On some sparc systems, changes by the child to local and incoming
24686 argument registers are propagated back to the parent. The compiler
24687 is told about this with #include <vfork.h>, but some compilers
24688 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24689 static variable whose address is put into a register that is
24690 clobbered by the vfork. */
24693 sparc_address_test (int arg)
24695 sparc_address_test (arg) int arg;
24698 static pid_t child;
24716 pid_t parent = getpid ();
24719 sparc_address_test (0);
24724 /* Here is another test for sparc vfork register problems. This
24725 test uses lots of local variables, at least as many local
24726 variables as main has allocated so far including compiler
24727 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24728 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24729 reuse the register of parent for one of the local variables,
24730 since it will think that parent can't possibly be used any more
24731 in this routine. Assigning to the local variable will thus
24732 munge parent in the parent process. */
24734 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24735 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24736 /* Convince the compiler that p..p7 are live; otherwise, it might
24737 use the same hardware register for all 8 local variables. */
24738 if (p != p1 || p != p2 || p != p3 || p != p4
24739 || p != p5 || p != p6 || p != p7)
24742 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24743 from child file descriptors. If the child closes a descriptor
24744 before it execs or exits, this munges the parent's descriptor
24745 as well. Test for this by closing stdout in the child. */
24746 _exit(close(fileno(stdout)) != 0);
24751 while (wait(&status) != child)
24754 /* Was there some problem with vforking? */
24757 /* Did the child fail? (This shouldn't happen.) */
24760 /* Did the vfork/compiler bug occur? */
24761 || parent != getpid()
24763 /* Did the file descriptor bug occur? */
24764 || fstat(fileno(stdout), &st) != 0
24769 rm -f conftest$ac_exeext
24770 if { (ac_try="$ac_link"
24771 case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_link") 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24780 { (case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_try") 2>&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; }; then
24789 ac_cv_func_vfork_works=yes
24791 echo "$as_me: program exited with status $ac_status" >&5
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24795 ( exit $ac_status )
24796 ac_cv_func_vfork_works=no
24798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24803 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24804 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24807 if test "x$ac_cv_func_fork_works" = xcross; then
24808 ac_cv_func_vfork_works=$ac_cv_func_vfork
24809 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24810 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24813 if test "x$ac_cv_func_vfork_works" = xyes; then
24815 cat >>confdefs.h <<\_ACEOF
24816 @%:@define HAVE_WORKING_VFORK 1
24821 cat >>confdefs.h <<\_ACEOF
24822 @%:@define vfork fork
24826 if test "x$ac_cv_func_fork_works" = xyes; then
24828 cat >>confdefs.h <<\_ACEOF
24829 @%:@define HAVE_WORKING_FORK 1
24834 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24835 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24836 if test "${ac_cv_type_getgroups+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 if test "$cross_compiling" = yes; then
24840 ac_cv_type_getgroups=cross
24842 cat >conftest.$ac_ext <<_ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h. */
24848 /* Thanks to Mike Rendell for this test. */
24849 $ac_includes_default
24852 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24857 gid_t gidset[NGID];
24859 union { gid_t gval; long int lval; } val;
24862 for (i = 0; i < NGID; i++)
24863 gidset[i] = val.gval;
24864 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24866 /* Exit non-zero if getgroups seems to require an array of ints. This
24867 happens when gid_t is short int but getgroups modifies an array
24869 return n > 0 && gidset[n] != val.gval;
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_type_getgroups=gid_t
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_type_getgroups=int
24901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24905 if test $ac_cv_type_getgroups = cross; then
24906 cat >conftest.$ac_ext <<_ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912 #include <unistd.h>
24915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24916 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24917 ac_cv_type_getgroups=gid_t
24919 ac_cv_type_getgroups=int
24925 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24926 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24928 cat >>confdefs.h <<_ACEOF
24929 @%:@define GETGROUPS_T $ac_cv_type_getgroups
24933 { echo "$as_me:$LINENO: checking for getgroups" >&5
24934 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24935 if test "${ac_cv_func_getgroups+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24938 cat >conftest.$ac_ext <<_ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24946 #define getgroups innocuous_getgroups
24948 /* System header to define __stub macros and hopefully few prototypes,
24949 which can conflict with char getgroups (); below.
24950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24951 <limits.h> exists even on freestanding compilers. */
24954 # include <limits.h>
24956 # include <assert.h>
24961 /* Override any GCC internal prototype to avoid an error.
24962 Use char because int might match the return type of a GCC
24963 builtin and then its argument prototype would still apply. */
24968 /* The GNU C library defines this for functions which it implements
24969 to always fail with ENOSYS. Some functions are actually named
24970 something starting with __ and the normal name is an alias. */
24971 #if defined __stub_getgroups || defined __stub___getgroups
24978 return getgroups ();
24983 rm -f conftest.$ac_objext conftest$ac_exeext
24984 if { (ac_try="$ac_link"
24985 case "(($ac_try" in
24986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987 *) ac_try_echo=$ac_try;;
24989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24990 (eval "$ac_link") 2>conftest.er1
24992 grep -v '^ *+' conftest.er1 >conftest.err
24994 cat conftest.err >&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } && {
24997 test -z "$ac_c_werror_flag" ||
24998 test ! -s conftest.err
24999 } && test -s conftest$ac_exeext &&
25000 $as_test_x conftest$ac_exeext; then
25001 ac_cv_func_getgroups=yes
25003 echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25006 ac_cv_func_getgroups=no
25009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25010 conftest$ac_exeext conftest.$ac_ext
25012 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25013 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25016 # If we don't yet have getgroups, see if it's in -lbsd.
25017 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25019 if test $ac_cv_func_getgroups = no; then
25020 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25021 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25022 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 ac_check_lib_save_LIBS=$LIBS
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25034 /* Override any GCC internal prototype to avoid an error.
25035 Use char because int might match the return type of a GCC
25036 builtin and then its argument prototype would still apply. */
25044 return getgroups ();
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (ac_try="$ac_link"
25051 case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056 (eval "$ac_link") 2>conftest.er1
25058 grep -v '^ *+' conftest.er1 >conftest.err
25060 cat conftest.err >&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } && {
25063 test -z "$ac_c_werror_flag" ||
25064 test ! -s conftest.err
25065 } && test -s conftest$ac_exeext &&
25066 $as_test_x conftest$ac_exeext; then
25067 ac_cv_lib_bsd_getgroups=yes
25069 echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25072 ac_cv_lib_bsd_getgroups=no
25075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25076 conftest$ac_exeext conftest.$ac_ext
25077 LIBS=$ac_check_lib_save_LIBS
25079 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25080 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25081 if test $ac_cv_lib_bsd_getgroups = yes; then
25082 GETGROUPS_LIB=-lbsd
25087 # Run the program to test the functionality of the system-supplied
25088 # getgroups function only if there is such a function.
25089 if test $ac_cv_func_getgroups = yes; then
25090 { echo "$as_me:$LINENO: checking for working getgroups" >&5
25091 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25092 if test "${ac_cv_func_getgroups_works+set}" = set; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 if test "$cross_compiling" = yes; then
25096 ac_cv_func_getgroups_works=no
25098 cat >conftest.$ac_ext <<_ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h. */
25104 $ac_includes_default
25108 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25109 return getgroups (0, 0) == -1;
25114 rm -f conftest$ac_exeext
25115 if { (ac_try="$ac_link"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121 (eval "$ac_link") 2>&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25125 { (case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_try") 2>&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_cv_func_getgroups_works=yes
25136 echo "$as_me: program exited with status $ac_status" >&5
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25140 ( exit $ac_status )
25141 ac_cv_func_getgroups_works=no
25143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25149 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25150 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25151 if test $ac_cv_func_getgroups_works = yes; then
25153 cat >>confdefs.h <<\_ACEOF
25154 @%:@define HAVE_GETGROUPS 1
25161 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25162 # -lseq on Dynix/PTX, -lgen on Unixware.
25163 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25164 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25165 if test "${ac_cv_search_getmntent+set}" = set; then
25166 echo $ECHO_N "(cached) $ECHO_C" >&6
25168 ac_func_search_save_LIBS=$LIBS
25169 cat >conftest.$ac_ext <<_ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25176 /* Override any GCC internal prototype to avoid an error.
25177 Use char because int might match the return type of a GCC
25178 builtin and then its argument prototype would still apply. */
25186 return getmntent ();
25191 for ac_lib in '' sun seq gen; do
25192 if test -z "$ac_lib"; then
25193 ac_res="none required"
25196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>conftest.er1
25207 grep -v '^ *+' conftest.er1 >conftest.err
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } && {
25212 test -z "$ac_c_werror_flag" ||
25213 test ! -s conftest.err
25214 } && test -s conftest$ac_exeext &&
25215 $as_test_x conftest$ac_exeext; then
25216 ac_cv_search_getmntent=$ac_res
25218 echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25226 if test "${ac_cv_search_getmntent+set}" = set; then
25230 if test "${ac_cv_search_getmntent+set}" = set; then
25233 ac_cv_search_getmntent=no
25235 rm conftest.$ac_ext
25236 LIBS=$ac_func_search_save_LIBS
25238 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25239 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25240 ac_res=$ac_cv_search_getmntent
25241 if test "$ac_res" != no; then
25242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25243 ac_cv_func_getmntent=yes
25245 cat >>confdefs.h <<\_ACEOF
25246 @%:@define HAVE_GETMNTENT 1
25250 ac_cv_func_getmntent=no
25254 if test $ac_cv_c_compiler_gnu = yes; then
25255 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25256 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25257 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
25260 ac_pattern="Autoconf.*'x'"
25261 cat >conftest.$ac_ext <<_ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h. */
25270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25271 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25272 ac_cv_prog_gcc_traditional=yes
25274 ac_cv_prog_gcc_traditional=no
25279 if test $ac_cv_prog_gcc_traditional = no; then
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 #include <termio.h>
25289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25290 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25291 ac_cv_prog_gcc_traditional=yes
25297 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25298 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25299 if test $ac_cv_prog_gcc_traditional = yes; then
25300 CC="$CC -traditional"
25304 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25305 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25306 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25307 echo $ECHO_N "(cached) $ECHO_C" >&6
25309 rm -f conftest.sym conftest.file
25310 echo >conftest.file
25311 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25312 if test "$cross_compiling" = yes; then
25313 ac_cv_func_lstat_dereferences_slashed_symlink=no
25315 cat >conftest.$ac_ext <<_ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25321 $ac_includes_default
25326 /* Linux will dereference the symlink and fail.
25327 That is better in the sense that it means we will not
25328 have to compile and use the lstat wrapper. */
25329 return lstat ("conftest.sym/", &sbuf) == 0;
25334 rm -f conftest$ac_exeext
25335 if { (ac_try="$ac_link"
25336 case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341 (eval "$ac_link") 2>&5
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25345 { (case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350 (eval "$ac_try") 2>&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); }; }; then
25354 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25356 echo "$as_me: program exited with status $ac_status" >&5
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25360 ( exit $ac_status )
25361 ac_cv_func_lstat_dereferences_slashed_symlink=no
25363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25368 # If the `ln -s' command failed, then we probably don't even
25369 # have an lstat function.
25370 ac_cv_func_lstat_dereferences_slashed_symlink=no
25372 rm -f conftest.sym conftest.file
25375 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25376 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25378 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25380 cat >>confdefs.h <<_ACEOF
25381 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25385 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25386 case " $LIB@&t@OBJS " in
25387 *" lstat.$ac_objext "* ) ;;
25388 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25394 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25395 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25396 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
25399 if test "$cross_compiling" = yes; then
25400 ac_cv_func_lstat_empty_string_bug=yes
25402 cat >conftest.$ac_ext <<_ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25408 $ac_includes_default
25413 return lstat ("", &sbuf) == 0;
25418 rm -f conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422 *) ac_try_echo=$ac_try;;
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425 (eval "$ac_link") 2>&5
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25429 { (case "(($ac_try" in
25430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431 *) ac_try_echo=$ac_try;;
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434 (eval "$ac_try") 2>&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; }; then
25438 ac_cv_func_lstat_empty_string_bug=no
25440 echo "$as_me: program exited with status $ac_status" >&5
25441 echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25444 ( exit $ac_status )
25445 ac_cv_func_lstat_empty_string_bug=yes
25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25452 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25453 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25454 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25455 case " $LIB@&t@OBJS " in
25456 *" lstat.$ac_objext "* ) ;;
25457 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25462 cat >>confdefs.h <<_ACEOF
25463 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
25468 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25469 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25470 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25473 rm -f conftest.sym conftest.file
25474 echo >conftest.file
25475 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25476 if test "$cross_compiling" = yes; then
25477 ac_cv_func_lstat_dereferences_slashed_symlink=no
25479 cat >conftest.$ac_ext <<_ACEOF
25482 cat confdefs.h >>conftest.$ac_ext
25483 cat >>conftest.$ac_ext <<_ACEOF
25484 /* end confdefs.h. */
25485 $ac_includes_default
25490 /* Linux will dereference the symlink and fail.
25491 That is better in the sense that it means we will not
25492 have to compile and use the lstat wrapper. */
25493 return lstat ("conftest.sym/", &sbuf) == 0;
25498 rm -f conftest$ac_exeext
25499 if { (ac_try="$ac_link"
25500 case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505 (eval "$ac_link") 2>&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25509 { (case "(($ac_try" in
25510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511 *) ac_try_echo=$ac_try;;
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514 (eval "$ac_try") 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
25518 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25520 echo "$as_me: program exited with status $ac_status" >&5
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25524 ( exit $ac_status )
25525 ac_cv_func_lstat_dereferences_slashed_symlink=no
25527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25532 # If the `ln -s' command failed, then we probably don't even
25533 # have an lstat function.
25534 ac_cv_func_lstat_dereferences_slashed_symlink=no
25536 rm -f conftest.sym conftest.file
25539 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25540 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25542 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25544 cat >>confdefs.h <<_ACEOF
25545 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25549 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25550 case " $LIB@&t@OBJS " in
25551 *" lstat.$ac_objext "* ) ;;
25552 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25558 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25559 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25560 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25561 echo $ECHO_N "(cached) $ECHO_C" >&6
25563 cat >conftest.$ac_ext <<_ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h. */
25569 @%:@include <sys/types.h>
25573 return makedev(0, 0);
25578 rm -f conftest.$ac_objext conftest$ac_exeext
25579 if { (ac_try="$ac_link"
25580 case "(($ac_try" in
25581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25582 *) ac_try_echo=$ac_try;;
25584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25585 (eval "$ac_link") 2>conftest.er1
25587 grep -v '^ *+' conftest.er1 >conftest.err
25589 cat conftest.err >&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } && {
25592 test -z "$ac_c_werror_flag" ||
25593 test ! -s conftest.err
25594 } && test -s conftest$ac_exeext &&
25595 $as_test_x conftest$ac_exeext; then
25596 ac_cv_header_sys_types_h_makedev=yes
25598 echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25601 ac_cv_header_sys_types_h_makedev=no
25604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25605 conftest$ac_exeext conftest.$ac_ext
25608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25609 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25611 if test $ac_cv_header_sys_types_h_makedev = no; then
25612 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25613 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25614 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25615 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25616 echo $ECHO_N "(cached) $ECHO_C" >&6
25618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25619 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25621 # Is the header compilable?
25622 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25623 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25624 cat >conftest.$ac_ext <<_ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25630 $ac_includes_default
25631 @%:@include <sys/mkdev.h>
25633 rm -f conftest.$ac_objext
25634 if { (ac_try="$ac_compile"
25635 case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_compile") 2>conftest.er1
25642 grep -v '^ *+' conftest.er1 >conftest.err
25644 cat conftest.err >&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } && {
25647 test -z "$ac_c_werror_flag" ||
25648 test ! -s conftest.err
25649 } && test -s conftest.$ac_objext; then
25650 ac_header_compiler=yes
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25655 ac_header_compiler=no
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25660 echo "${ECHO_T}$ac_header_compiler" >&6; }
25662 # Is the header present?
25663 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25664 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25665 cat >conftest.$ac_ext <<_ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 @%:@include <sys/mkdev.h>
25673 if { (ac_try="$ac_cpp conftest.$ac_ext"
25674 case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25681 grep -v '^ *+' conftest.er1 >conftest.err
25683 cat conftest.err >&5
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } >/dev/null && {
25686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25687 test ! -s conftest.err
25689 ac_header_preproc=yes
25691 echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25694 ac_header_preproc=no
25697 rm -f conftest.err conftest.$ac_ext
25698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25699 echo "${ECHO_T}$ac_header_preproc" >&6; }
25701 # So? What about this header?
25702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25704 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25705 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25707 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25708 ac_header_preproc=yes
25711 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25712 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25713 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25714 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25715 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25716 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25717 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25718 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25719 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25720 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25721 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25722 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25724 @%:@@%:@ ------------------------------- @%:@@%:@
25725 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25726 @%:@@%:@ ------------------------------- @%:@@%:@
25728 ) | sed "s/^/$as_me: WARNING: /" >&2
25731 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25732 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25733 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25734 echo $ECHO_N "(cached) $ECHO_C" >&6
25736 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25738 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25739 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25742 if test $ac_cv_header_sys_mkdev_h = yes; then
25744 cat >>confdefs.h <<\_ACEOF
25745 @%:@define MAJOR_IN_MKDEV 1
25752 if test $ac_cv_header_sys_mkdev_h = no; then
25753 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25754 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25755 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25756 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25759 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25760 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25762 # Is the header compilable?
25763 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25764 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25765 cat >conftest.$ac_ext <<_ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25771 $ac_includes_default
25772 @%:@include <sys/sysmacros.h>
25774 rm -f conftest.$ac_objext
25775 if { (ac_try="$ac_compile"
25776 case "(($ac_try" in
25777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778 *) ac_try_echo=$ac_try;;
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781 (eval "$ac_compile") 2>conftest.er1
25783 grep -v '^ *+' conftest.er1 >conftest.err
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } && {
25788 test -z "$ac_c_werror_flag" ||
25789 test ! -s conftest.err
25790 } && test -s conftest.$ac_objext; then
25791 ac_header_compiler=yes
25793 echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25796 ac_header_compiler=no
25799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25801 echo "${ECHO_T}$ac_header_compiler" >&6; }
25803 # Is the header present?
25804 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25805 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25806 cat >conftest.$ac_ext <<_ACEOF
25809 cat confdefs.h >>conftest.$ac_ext
25810 cat >>conftest.$ac_ext <<_ACEOF
25811 /* end confdefs.h. */
25812 @%:@include <sys/sysmacros.h>
25814 if { (ac_try="$ac_cpp conftest.$ac_ext"
25815 case "(($ac_try" in
25816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25817 *) ac_try_echo=$ac_try;;
25819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25822 grep -v '^ *+' conftest.er1 >conftest.err
25824 cat conftest.err >&5
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); } >/dev/null && {
25827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25828 test ! -s conftest.err
25830 ac_header_preproc=yes
25832 echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25835 ac_header_preproc=no
25838 rm -f conftest.err conftest.$ac_ext
25839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25840 echo "${ECHO_T}$ac_header_preproc" >&6; }
25842 # So? What about this header?
25843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25845 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25846 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25847 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25848 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25849 ac_header_preproc=yes
25852 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25853 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25854 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25855 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25856 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25857 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25858 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25859 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25860 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25861 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25862 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25863 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25865 @%:@@%:@ ------------------------------- @%:@@%:@
25866 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25867 @%:@@%:@ ------------------------------- @%:@@%:@
25869 ) | sed "s/^/$as_me: WARNING: /" >&2
25872 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25873 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25874 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25877 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25879 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25880 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25883 if test $ac_cv_header_sys_sysmacros_h = yes; then
25885 cat >>confdefs.h <<\_ACEOF
25886 @%:@define MAJOR_IN_SYSMACROS 1
25896 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25897 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25898 if test "${ac_cv_func_memcmp_working+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 if test "$cross_compiling" = yes; then
25902 ac_cv_func_memcmp_working=no
25904 cat >conftest.$ac_ext <<_ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h. */
25910 $ac_includes_default
25915 /* Some versions of memcmp are not 8-bit clean. */
25916 char c0 = '\100', c1 = '\200', c2 = '\201';
25917 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25920 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25921 or more and with at least one buffer not starting on a 4-byte boundary.
25922 William Lewis provided this test program. */
25927 for (i = 0; i < 4; i++)
25931 strcpy (a, "--------01111111");
25932 strcpy (b, "--------10000000");
25933 if (memcmp (a, b, 16) >= 0)
25943 rm -f conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_link") 2>&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25954 { (case "(($ac_try" in
25955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956 *) ac_try_echo=$ac_try;;
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959 (eval "$ac_try") 2>&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; }; then
25963 ac_cv_func_memcmp_working=yes
25965 echo "$as_me: program exited with status $ac_status" >&5
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 ( exit $ac_status )
25970 ac_cv_func_memcmp_working=no
25972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25977 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25978 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25979 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
25980 *" memcmp.$ac_objext "* ) ;;
25981 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
25989 for ac_header in sys/select.h sys/socket.h
25991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25996 echo $ECHO_N "(cached) $ECHO_C" >&6
25998 ac_res=`eval echo '${'$as_ac_Header'}'`
25999 { echo "$as_me:$LINENO: result: $ac_res" >&5
26000 echo "${ECHO_T}$ac_res" >&6; }
26002 # Is the header compilable?
26003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26005 cat >conftest.$ac_ext <<_ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011 $ac_includes_default
26012 @%:@include <$ac_header>
26014 rm -f conftest.$ac_objext
26015 if { (ac_try="$ac_compile"
26016 case "(($ac_try" in
26017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018 *) ac_try_echo=$ac_try;;
26020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26021 (eval "$ac_compile") 2>conftest.er1
26023 grep -v '^ *+' conftest.er1 >conftest.err
26025 cat conftest.err >&5
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); } && {
26028 test -z "$ac_c_werror_flag" ||
26029 test ! -s conftest.err
26030 } && test -s conftest.$ac_objext; then
26031 ac_header_compiler=yes
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 ac_header_compiler=no
26039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26041 echo "${ECHO_T}$ac_header_compiler" >&6; }
26043 # Is the header present?
26044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26046 cat >conftest.$ac_ext <<_ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h. */
26052 @%:@include <$ac_header>
26054 if { (ac_try="$ac_cpp conftest.$ac_ext"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26062 grep -v '^ *+' conftest.er1 >conftest.err
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } >/dev/null && {
26067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26070 ac_header_preproc=yes
26072 echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26075 ac_header_preproc=no
26078 rm -f conftest.err conftest.$ac_ext
26079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26080 echo "${ECHO_T}$ac_header_preproc" >&6; }
26082 # So? What about this header?
26083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26089 ac_header_preproc=yes
26092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26105 @%:@@%:@ ------------------------------- @%:@@%:@
26106 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26107 @%:@@%:@ ------------------------------- @%:@@%:@
26109 ) | sed "s/^/$as_me: WARNING: /" >&2
26112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26115 echo $ECHO_N "(cached) $ECHO_C" >&6
26117 eval "$as_ac_Header=\$ac_header_preproc"
26119 ac_res=`eval echo '${'$as_ac_Header'}'`
26120 { echo "$as_me:$LINENO: result: $ac_res" >&5
26121 echo "${ECHO_T}$ac_res" >&6; }
26124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26125 cat >>confdefs.h <<_ACEOF
26126 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26133 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26134 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26135 if test "${ac_cv_func_select_args+set}" = set; then
26136 echo $ECHO_N "(cached) $ECHO_C" >&6
26138 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26139 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26140 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26141 cat >conftest.$ac_ext <<_ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h. */
26147 $ac_includes_default
26148 #ifdef HAVE_SYS_SELECT_H
26149 # include <sys/select.h>
26151 #ifdef HAVE_SYS_SOCKET_H
26152 # include <sys/socket.h>
26158 extern int select ($ac_arg1,
26159 $ac_arg234, $ac_arg234, $ac_arg234,
26165 rm -f conftest.$ac_objext
26166 if { (ac_try="$ac_compile"
26167 case "(($ac_try" in
26168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26169 *) ac_try_echo=$ac_try;;
26171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26172 (eval "$ac_compile") 2>conftest.er1
26174 grep -v '^ *+' conftest.er1 >conftest.err
26176 cat conftest.err >&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } && {
26179 test -z "$ac_c_werror_flag" ||
26180 test ! -s conftest.err
26181 } && test -s conftest.$ac_objext; then
26182 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26184 echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26194 # Provide a safe default value.
26195 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26198 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26199 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26200 ac_save_IFS=$IFS; IFS=','
26201 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26205 cat >>confdefs.h <<_ACEOF
26206 @%:@define SELECT_TYPE_ARG1 $1
26210 cat >>confdefs.h <<_ACEOF
26211 @%:@define SELECT_TYPE_ARG234 ($2)
26215 cat >>confdefs.h <<_ACEOF
26216 @%:@define SELECT_TYPE_ARG5 ($3)
26221 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26222 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26223 if test "${ac_cv_type_signal+set}" = set; then
26224 echo $ECHO_N "(cached) $ECHO_C" >&6
26226 cat >conftest.$ac_ext <<_ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26232 #include <sys/types.h>
26233 #include <signal.h>
26238 return *(signal (0, 0)) (0) == 1;
26243 rm -f conftest.$ac_objext
26244 if { (ac_try="$ac_compile"
26245 case "(($ac_try" in
26246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26247 *) ac_try_echo=$ac_try;;
26249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26250 (eval "$ac_compile") 2>conftest.er1
26252 grep -v '^ *+' conftest.er1 >conftest.err
26254 cat conftest.err >&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); } && {
26257 test -z "$ac_c_werror_flag" ||
26258 test ! -s conftest.err
26259 } && test -s conftest.$ac_objext; then
26260 ac_cv_type_signal=int
26262 echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26265 ac_cv_type_signal=void
26268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26270 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26271 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26273 cat >>confdefs.h <<_ACEOF
26274 @%:@define RETSIGTYPE $ac_cv_type_signal
26278 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26279 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26280 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26281 echo $ECHO_N "(cached) $ECHO_C" >&6
26283 if test "$cross_compiling" = yes; then
26284 ac_cv_func_stat_empty_string_bug=yes
26286 cat >conftest.$ac_ext <<_ACEOF
26289 cat confdefs.h >>conftest.$ac_ext
26290 cat >>conftest.$ac_ext <<_ACEOF
26291 /* end confdefs.h. */
26292 $ac_includes_default
26297 return stat ("", &sbuf) == 0;
26302 rm -f conftest$ac_exeext
26303 if { (ac_try="$ac_link"
26304 case "(($ac_try" in
26305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306 *) ac_try_echo=$ac_try;;
26308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26309 (eval "$ac_link") 2>&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26313 { (case "(($ac_try" in
26314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26315 *) ac_try_echo=$ac_try;;
26317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26318 (eval "$ac_try") 2>&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; }; then
26322 ac_cv_func_stat_empty_string_bug=no
26324 echo "$as_me: program exited with status $ac_status" >&5
26325 echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26328 ( exit $ac_status )
26329 ac_cv_func_stat_empty_string_bug=yes
26331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26336 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26337 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26338 if test $ac_cv_func_stat_empty_string_bug = yes; then
26339 case " $LIB@&t@OBJS " in
26340 *" stat.$ac_objext "* ) ;;
26341 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
26346 cat >>confdefs.h <<_ACEOF
26347 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
26353 for ac_func in vprintf
26355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26361 cat >conftest.$ac_ext <<_ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26369 #define $ac_func innocuous_$ac_func
26371 /* System header to define __stub macros and hopefully few prototypes,
26372 which can conflict with char $ac_func (); below.
26373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26374 <limits.h> exists even on freestanding compilers. */
26377 # include <limits.h>
26379 # include <assert.h>
26384 /* Override any GCC internal prototype to avoid an error.
26385 Use char because int might match the return type of a GCC
26386 builtin and then its argument prototype would still apply. */
26391 /* The GNU C library defines this for functions which it implements
26392 to always fail with ENOSYS. Some functions are actually named
26393 something starting with __ and the normal name is an alias. */
26394 #if defined __stub_$ac_func || defined __stub___$ac_func
26401 return $ac_func ();
26406 rm -f conftest.$ac_objext conftest$ac_exeext
26407 if { (ac_try="$ac_link"
26408 case "(($ac_try" in
26409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410 *) ac_try_echo=$ac_try;;
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413 (eval "$ac_link") 2>conftest.er1
26415 grep -v '^ *+' conftest.er1 >conftest.err
26417 cat conftest.err >&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } && {
26420 test -z "$ac_c_werror_flag" ||
26421 test ! -s conftest.err
26422 } && test -s conftest$ac_exeext &&
26423 $as_test_x conftest$ac_exeext; then
26424 eval "$as_ac_var=yes"
26426 echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26429 eval "$as_ac_var=no"
26432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26433 conftest$ac_exeext conftest.$ac_ext
26435 ac_res=`eval echo '${'$as_ac_var'}'`
26436 { echo "$as_me:$LINENO: result: $ac_res" >&5
26437 echo "${ECHO_T}$ac_res" >&6; }
26438 if test `eval echo '${'$as_ac_var'}'` = yes; then
26439 cat >>confdefs.h <<_ACEOF
26440 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26443 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26444 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26445 if test "${ac_cv_func__doprnt+set}" = set; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26448 cat >conftest.$ac_ext <<_ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26454 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26456 #define _doprnt innocuous__doprnt
26458 /* System header to define __stub macros and hopefully few prototypes,
26459 which can conflict with char _doprnt (); below.
26460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26461 <limits.h> exists even on freestanding compilers. */
26464 # include <limits.h>
26466 # include <assert.h>
26471 /* Override any GCC internal prototype to avoid an error.
26472 Use char because int might match the return type of a GCC
26473 builtin and then its argument prototype would still apply. */
26478 /* The GNU C library defines this for functions which it implements
26479 to always fail with ENOSYS. Some functions are actually named
26480 something starting with __ and the normal name is an alias. */
26481 #if defined __stub__doprnt || defined __stub____doprnt
26493 rm -f conftest.$ac_objext conftest$ac_exeext
26494 if { (ac_try="$ac_link"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_link") 2>conftest.er1
26502 grep -v '^ *+' conftest.er1 >conftest.err
26504 cat conftest.err >&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } && {
26507 test -z "$ac_c_werror_flag" ||
26508 test ! -s conftest.err
26509 } && test -s conftest$ac_exeext &&
26510 $as_test_x conftest$ac_exeext; then
26511 ac_cv_func__doprnt=yes
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 ac_cv_func__doprnt=no
26519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26520 conftest$ac_exeext conftest.$ac_ext
26522 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26523 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26524 if test $ac_cv_func__doprnt = yes; then
26526 cat >>confdefs.h <<\_ACEOF
26527 @%:@define HAVE_DOPRNT 1
26565 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26566 gethostbyaddr gethostbyname gethostname getmntent \
26567 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26568 realpath rmdir select socket strcasecmp strchr strdup \
26569 strerror strrchr strtol strtoul sigprocmask
26571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26577 cat >conftest.$ac_ext <<_ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26585 #define $ac_func innocuous_$ac_func
26587 /* System header to define __stub macros and hopefully few prototypes,
26588 which can conflict with char $ac_func (); below.
26589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26590 <limits.h> exists even on freestanding compilers. */
26593 # include <limits.h>
26595 # include <assert.h>
26600 /* Override any GCC internal prototype to avoid an error.
26601 Use char because int might match the return type of a GCC
26602 builtin and then its argument prototype would still apply. */
26607 /* The GNU C library defines this for functions which it implements
26608 to always fail with ENOSYS. Some functions are actually named
26609 something starting with __ and the normal name is an alias. */
26610 #if defined __stub_$ac_func || defined __stub___$ac_func
26617 return $ac_func ();
26622 rm -f conftest.$ac_objext conftest$ac_exeext
26623 if { (ac_try="$ac_link"
26624 case "(($ac_try" in
26625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26626 *) ac_try_echo=$ac_try;;
26628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26629 (eval "$ac_link") 2>conftest.er1
26631 grep -v '^ *+' conftest.er1 >conftest.err
26633 cat conftest.err >&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } && {
26636 test -z "$ac_c_werror_flag" ||
26637 test ! -s conftest.err
26638 } && test -s conftest$ac_exeext &&
26639 $as_test_x conftest$ac_exeext; then
26640 eval "$as_ac_var=yes"
26642 echo "$as_me: failed program was:" >&5
26643 sed 's/^/| /' conftest.$ac_ext >&5
26645 eval "$as_ac_var=no"
26648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26649 conftest$ac_exeext conftest.$ac_ext
26651 ac_res=`eval echo '${'$as_ac_var'}'`
26652 { echo "$as_me:$LINENO: result: $ac_res" >&5
26653 echo "${ECHO_T}$ac_res" >&6; }
26654 if test `eval echo '${'$as_ac_var'}'` = yes; then
26655 cat >>confdefs.h <<_ACEOF
26656 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26664 { echo "$as_me:$LINENO: checking for short" >&5
26665 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26666 if test "${ac_cv_type_short+set}" = set; then
26667 echo $ECHO_N "(cached) $ECHO_C" >&6
26669 cat >conftest.$ac_ext <<_ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h. */
26675 $ac_includes_default
26676 typedef short ac__type_new_;
26680 if ((ac__type_new_ *) 0)
26682 if (sizeof (ac__type_new_))
26688 rm -f conftest.$ac_objext
26689 if { (ac_try="$ac_compile"
26690 case "(($ac_try" in
26691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26692 *) ac_try_echo=$ac_try;;
26694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26695 (eval "$ac_compile") 2>conftest.er1
26697 grep -v '^ *+' conftest.er1 >conftest.err
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } && {
26702 test -z "$ac_c_werror_flag" ||
26703 test ! -s conftest.err
26704 } && test -s conftest.$ac_objext; then
26705 ac_cv_type_short=yes
26707 echo "$as_me: failed program was:" >&5
26708 sed 's/^/| /' conftest.$ac_ext >&5
26710 ac_cv_type_short=no
26713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26716 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26718 # The cast to long int works around a bug in the HP C Compiler
26719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26721 # This bug is HP SR number 8606223364.
26722 { echo "$as_me:$LINENO: checking size of short" >&5
26723 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26724 if test "${ac_cv_sizeof_short+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 if test "$cross_compiling" = yes; then
26728 # Depending upon the size, compute the lo and hi bounds.
26729 cat >conftest.$ac_ext <<_ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 $ac_includes_default
26736 typedef short ac__type_sizeof_;
26740 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
26741 test_array @<:@0@:>@ = 0
26747 rm -f conftest.$ac_objext
26748 if { (ac_try="$ac_compile"
26749 case "(($ac_try" in
26750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26751 *) ac_try_echo=$ac_try;;
26753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26754 (eval "$ac_compile") 2>conftest.er1
26756 grep -v '^ *+' conftest.er1 >conftest.err
26758 cat conftest.err >&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } && {
26761 test -z "$ac_c_werror_flag" ||
26762 test ! -s conftest.err
26763 } && test -s conftest.$ac_objext; then
26766 cat >conftest.$ac_ext <<_ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h. */
26772 $ac_includes_default
26773 typedef short ac__type_sizeof_;
26777 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26778 test_array @<:@0@:>@ = 0
26784 rm -f conftest.$ac_objext
26785 if { (ac_try="$ac_compile"
26786 case "(($ac_try" in
26787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26788 *) ac_try_echo=$ac_try;;
26790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26791 (eval "$ac_compile") 2>conftest.er1
26793 grep -v '^ *+' conftest.er1 >conftest.err
26795 cat conftest.err >&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); } && {
26798 test -z "$ac_c_werror_flag" ||
26799 test ! -s conftest.err
26800 } && test -s conftest.$ac_objext; then
26801 ac_hi=$ac_mid; break
26803 echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26806 ac_lo=`expr $ac_mid + 1`
26807 if test $ac_lo -le $ac_mid; then
26811 ac_mid=`expr 2 '*' $ac_mid + 1`
26814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26817 echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26820 cat >conftest.$ac_ext <<_ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h. */
26826 $ac_includes_default
26827 typedef short ac__type_sizeof_;
26831 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
26832 test_array @<:@0@:>@ = 0
26838 rm -f conftest.$ac_objext
26839 if { (ac_try="$ac_compile"
26840 case "(($ac_try" in
26841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842 *) ac_try_echo=$ac_try;;
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845 (eval "$ac_compile") 2>conftest.er1
26847 grep -v '^ *+' conftest.er1 >conftest.err
26849 cat conftest.err >&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); } && {
26852 test -z "$ac_c_werror_flag" ||
26853 test ! -s conftest.err
26854 } && test -s conftest.$ac_objext; then
26857 cat >conftest.$ac_ext <<_ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h. */
26863 $ac_includes_default
26864 typedef short ac__type_sizeof_;
26868 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
26869 test_array @<:@0@:>@ = 0
26875 rm -f conftest.$ac_objext
26876 if { (ac_try="$ac_compile"
26877 case "(($ac_try" in
26878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26879 *) ac_try_echo=$ac_try;;
26881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882 (eval "$ac_compile") 2>conftest.er1
26884 grep -v '^ *+' conftest.er1 >conftest.err
26886 cat conftest.err >&5
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } && {
26889 test -z "$ac_c_werror_flag" ||
26890 test ! -s conftest.err
26891 } && test -s conftest.$ac_objext; then
26892 ac_lo=$ac_mid; break
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26897 ac_hi=`expr '(' $ac_mid ')' - 1`
26898 if test $ac_mid -le $ac_hi; then
26902 ac_mid=`expr 2 '*' $ac_mid`
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26908 echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26918 # Binary search between lo and hi bounds.
26919 while test "x$ac_lo" != "x$ac_hi"; do
26920 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26921 cat >conftest.$ac_ext <<_ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26927 $ac_includes_default
26928 typedef short ac__type_sizeof_;
26932 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26933 test_array @<:@0@:>@ = 0
26939 rm -f conftest.$ac_objext
26940 if { (ac_try="$ac_compile"
26941 case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_compile") 2>conftest.er1
26948 grep -v '^ *+' conftest.er1 >conftest.err
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } && {
26953 test -z "$ac_c_werror_flag" ||
26954 test ! -s conftest.err
26955 } && test -s conftest.$ac_objext; then
26958 echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26961 ac_lo=`expr '(' $ac_mid ')' + 1`
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967 ?*) ac_cv_sizeof_short=$ac_lo;;
26968 '') if test "$ac_cv_type_short" = yes; then
26969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26970 See \`config.log' for more details." >&5
26971 echo "$as_me: error: cannot compute sizeof (short)
26972 See \`config.log' for more details." >&2;}
26973 { (exit 77); exit 77; }; }
26975 ac_cv_sizeof_short=0
26979 cat >conftest.$ac_ext <<_ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h. */
26985 $ac_includes_default
26986 typedef short ac__type_sizeof_;
26987 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26988 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26989 @%:@include <stdio.h>
26990 @%:@include <stdlib.h>
26995 FILE *f = fopen ("conftest.val", "w");
26998 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27000 long int i = longval ();
27001 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27003 fprintf (f, "%ld\n", i);
27007 unsigned long int i = ulongval ();
27008 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27010 fprintf (f, "%lu\n", i);
27012 return ferror (f) || fclose (f) != 0;
27018 rm -f conftest$ac_exeext
27019 if { (ac_try="$ac_link"
27020 case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_link") 2>&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27029 { (case "(($ac_try" in
27030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031 *) ac_try_echo=$ac_try;;
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034 (eval "$ac_try") 2>&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; }; then
27038 ac_cv_sizeof_short=`cat conftest.val`
27040 echo "$as_me: program exited with status $ac_status" >&5
27041 echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27044 ( exit $ac_status )
27045 if test "$ac_cv_type_short" = yes; then
27046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27047 See \`config.log' for more details." >&5
27048 echo "$as_me: error: cannot compute sizeof (short)
27049 See \`config.log' for more details." >&2;}
27050 { (exit 77); exit 77; }; }
27052 ac_cv_sizeof_short=0
27055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27059 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27060 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27064 cat >>confdefs.h <<_ACEOF
27065 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
27069 { echo "$as_me:$LINENO: checking for int" >&5
27070 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27071 if test "${ac_cv_type_int+set}" = set; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27074 cat >conftest.$ac_ext <<_ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h. */
27080 $ac_includes_default
27081 typedef int ac__type_new_;
27085 if ((ac__type_new_ *) 0)
27087 if (sizeof (ac__type_new_))
27093 rm -f conftest.$ac_objext
27094 if { (ac_try="$ac_compile"
27095 case "(($ac_try" in
27096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097 *) ac_try_echo=$ac_try;;
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_compile") 2>conftest.er1
27102 grep -v '^ *+' conftest.er1 >conftest.err
27104 cat conftest.err >&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); } && {
27107 test -z "$ac_c_werror_flag" ||
27108 test ! -s conftest.err
27109 } && test -s conftest.$ac_objext; then
27112 echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27120 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27121 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27123 # The cast to long int works around a bug in the HP C Compiler
27124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27126 # This bug is HP SR number 8606223364.
27127 { echo "$as_me:$LINENO: checking size of int" >&5
27128 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27129 if test "${ac_cv_sizeof_int+set}" = set; then
27130 echo $ECHO_N "(cached) $ECHO_C" >&6
27132 if test "$cross_compiling" = yes; then
27133 # Depending upon the size, compute the lo and hi bounds.
27134 cat >conftest.$ac_ext <<_ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h. */
27140 $ac_includes_default
27141 typedef int ac__type_sizeof_;
27145 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27146 test_array @<:@0@:>@ = 0
27152 rm -f conftest.$ac_objext
27153 if { (ac_try="$ac_compile"
27154 case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_compile") 2>conftest.er1
27161 grep -v '^ *+' conftest.er1 >conftest.err
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } && {
27166 test -z "$ac_c_werror_flag" ||
27167 test ! -s conftest.err
27168 } && test -s conftest.$ac_objext; then
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27177 $ac_includes_default
27178 typedef int ac__type_sizeof_;
27182 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27183 test_array @<:@0@:>@ = 0
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_compile") 2>conftest.er1
27198 grep -v '^ *+' conftest.er1 >conftest.err
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } && {
27203 test -z "$ac_c_werror_flag" ||
27204 test ! -s conftest.err
27205 } && test -s conftest.$ac_objext; then
27206 ac_hi=$ac_mid; break
27208 echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27211 ac_lo=`expr $ac_mid + 1`
27212 if test $ac_lo -le $ac_mid; then
27216 ac_mid=`expr 2 '*' $ac_mid + 1`
27219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27222 echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27225 cat >conftest.$ac_ext <<_ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h. */
27231 $ac_includes_default
27232 typedef int ac__type_sizeof_;
27236 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27237 test_array @<:@0@:>@ = 0
27243 rm -f conftest.$ac_objext
27244 if { (ac_try="$ac_compile"
27245 case "(($ac_try" in
27246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247 *) ac_try_echo=$ac_try;;
27249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250 (eval "$ac_compile") 2>conftest.er1
27252 grep -v '^ *+' conftest.er1 >conftest.err
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } && {
27257 test -z "$ac_c_werror_flag" ||
27258 test ! -s conftest.err
27259 } && test -s conftest.$ac_objext; then
27262 cat >conftest.$ac_ext <<_ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 $ac_includes_default
27269 typedef int ac__type_sizeof_;
27273 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27274 test_array @<:@0@:>@ = 0
27280 rm -f conftest.$ac_objext
27281 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } && {
27294 test -z "$ac_c_werror_flag" ||
27295 test ! -s conftest.err
27296 } && test -s conftest.$ac_objext; then
27297 ac_lo=$ac_mid; break
27299 echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27302 ac_hi=`expr '(' $ac_mid ')' - 1`
27303 if test $ac_mid -le $ac_hi; then
27307 ac_mid=`expr 2 '*' $ac_mid`
27310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27313 echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 # Binary search between lo and hi bounds.
27324 while test "x$ac_lo" != "x$ac_hi"; do
27325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27326 cat >conftest.$ac_ext <<_ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27332 $ac_includes_default
27333 typedef int ac__type_sizeof_;
27337 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27338 test_array @<:@0@:>@ = 0
27344 rm -f conftest.$ac_objext
27345 if { (ac_try="$ac_compile"
27346 case "(($ac_try" in
27347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_compile") 2>conftest.er1
27353 grep -v '^ *+' conftest.er1 >conftest.err
27355 cat conftest.err >&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); } && {
27358 test -z "$ac_c_werror_flag" ||
27359 test ! -s conftest.err
27360 } && test -s conftest.$ac_objext; then
27363 echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27366 ac_lo=`expr '(' $ac_mid ')' + 1`
27369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372 ?*) ac_cv_sizeof_int=$ac_lo;;
27373 '') if test "$ac_cv_type_int" = yes; then
27374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27375 See \`config.log' for more details." >&5
27376 echo "$as_me: error: cannot compute sizeof (int)
27377 See \`config.log' for more details." >&2;}
27378 { (exit 77); exit 77; }; }
27384 cat >conftest.$ac_ext <<_ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h. */
27390 $ac_includes_default
27391 typedef int ac__type_sizeof_;
27392 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27393 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27394 @%:@include <stdio.h>
27395 @%:@include <stdlib.h>
27400 FILE *f = fopen ("conftest.val", "w");
27403 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27405 long int i = longval ();
27406 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27408 fprintf (f, "%ld\n", i);
27412 unsigned long int i = ulongval ();
27413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27415 fprintf (f, "%lu\n", i);
27417 return ferror (f) || fclose (f) != 0;
27423 rm -f conftest$ac_exeext
27424 if { (ac_try="$ac_link"
27425 case "(($ac_try" in
27426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427 *) ac_try_echo=$ac_try;;
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430 (eval "$ac_link") 2>&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27434 { (case "(($ac_try" in
27435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27436 *) ac_try_echo=$ac_try;;
27438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27439 (eval "$ac_try") 2>&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); }; }; then
27443 ac_cv_sizeof_int=`cat conftest.val`
27445 echo "$as_me: program exited with status $ac_status" >&5
27446 echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.$ac_ext >&5
27449 ( exit $ac_status )
27450 if test "$ac_cv_type_int" = yes; then
27451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27452 See \`config.log' for more details." >&5
27453 echo "$as_me: error: cannot compute sizeof (int)
27454 See \`config.log' for more details." >&2;}
27455 { (exit 77); exit 77; }; }
27460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27465 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27469 cat >>confdefs.h <<_ACEOF
27470 @%:@define SIZEOF_INT $ac_cv_sizeof_int
27474 { echo "$as_me:$LINENO: checking for long" >&5
27475 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27476 if test "${ac_cv_type_long+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 cat >conftest.$ac_ext <<_ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h. */
27485 $ac_includes_default
27486 typedef long ac__type_new_;
27490 if ((ac__type_new_ *) 0)
27492 if (sizeof (ac__type_new_))
27498 rm -f conftest.$ac_objext
27499 if { (ac_try="$ac_compile"
27500 case "(($ac_try" in
27501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27502 *) ac_try_echo=$ac_try;;
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_compile") 2>conftest.er1
27507 grep -v '^ *+' conftest.er1 >conftest.err
27509 cat conftest.err >&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } && {
27512 test -z "$ac_c_werror_flag" ||
27513 test ! -s conftest.err
27514 } && test -s conftest.$ac_objext; then
27515 ac_cv_type_long=yes
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27525 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27526 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27528 # The cast to long int works around a bug in the HP C Compiler
27529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27531 # This bug is HP SR number 8606223364.
27532 { echo "$as_me:$LINENO: checking size of long" >&5
27533 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27534 if test "${ac_cv_sizeof_long+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27537 if test "$cross_compiling" = yes; then
27538 # Depending upon the size, compute the lo and hi bounds.
27539 cat >conftest.$ac_ext <<_ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h. */
27545 $ac_includes_default
27546 typedef long ac__type_sizeof_;
27550 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27551 test_array @<:@0@:>@ = 0
27557 rm -f conftest.$ac_objext
27558 if { (ac_try="$ac_compile"
27559 case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_compile") 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } && {
27571 test -z "$ac_c_werror_flag" ||
27572 test ! -s conftest.err
27573 } && test -s conftest.$ac_objext; then
27576 cat >conftest.$ac_ext <<_ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h. */
27582 $ac_includes_default
27583 typedef long ac__type_sizeof_;
27587 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27588 test_array @<:@0@:>@ = 0
27594 rm -f conftest.$ac_objext
27595 if { (ac_try="$ac_compile"
27596 case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_compile") 2>conftest.er1
27603 grep -v '^ *+' conftest.er1 >conftest.err
27605 cat conftest.err >&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } && {
27608 test -z "$ac_c_werror_flag" ||
27609 test ! -s conftest.err
27610 } && test -s conftest.$ac_objext; then
27611 ac_hi=$ac_mid; break
27613 echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27616 ac_lo=`expr $ac_mid + 1`
27617 if test $ac_lo -le $ac_mid; then
27621 ac_mid=`expr 2 '*' $ac_mid + 1`
27624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627 echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27630 cat >conftest.$ac_ext <<_ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h. */
27636 $ac_includes_default
27637 typedef long ac__type_sizeof_;
27641 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27642 test_array @<:@0@:>@ = 0
27648 rm -f conftest.$ac_objext
27649 if { (ac_try="$ac_compile"
27650 case "(($ac_try" in
27651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652 *) ac_try_echo=$ac_try;;
27654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655 (eval "$ac_compile") 2>conftest.er1
27657 grep -v '^ *+' conftest.er1 >conftest.err
27659 cat conftest.err >&5
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); } && {
27662 test -z "$ac_c_werror_flag" ||
27663 test ! -s conftest.err
27664 } && test -s conftest.$ac_objext; then
27667 cat >conftest.$ac_ext <<_ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h. */
27673 $ac_includes_default
27674 typedef long ac__type_sizeof_;
27678 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27679 test_array @<:@0@:>@ = 0
27685 rm -f conftest.$ac_objext
27686 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27694 grep -v '^ *+' conftest.er1 >conftest.err
27696 cat conftest.err >&5
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); } && {
27699 test -z "$ac_c_werror_flag" ||
27700 test ! -s conftest.err
27701 } && test -s conftest.$ac_objext; then
27702 ac_lo=$ac_mid; break
27704 echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27707 ac_hi=`expr '(' $ac_mid ')' - 1`
27708 if test $ac_mid -le $ac_hi; then
27712 ac_mid=`expr 2 '*' $ac_mid`
27715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27718 echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27728 # Binary search between lo and hi bounds.
27729 while test "x$ac_lo" != "x$ac_hi"; do
27730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27731 cat >conftest.$ac_ext <<_ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h. */
27737 $ac_includes_default
27738 typedef long ac__type_sizeof_;
27742 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27743 test_array @<:@0@:>@ = 0
27749 rm -f conftest.$ac_objext
27750 if { (ac_try="$ac_compile"
27751 case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756 (eval "$ac_compile") 2>conftest.er1
27758 grep -v '^ *+' conftest.er1 >conftest.err
27760 cat conftest.err >&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); } && {
27763 test -z "$ac_c_werror_flag" ||
27764 test ! -s conftest.err
27765 } && test -s conftest.$ac_objext; then
27768 echo "$as_me: failed program was:" >&5
27769 sed 's/^/| /' conftest.$ac_ext >&5
27771 ac_lo=`expr '(' $ac_mid ')' + 1`
27774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27777 ?*) ac_cv_sizeof_long=$ac_lo;;
27778 '') if test "$ac_cv_type_long" = yes; then
27779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27780 See \`config.log' for more details." >&5
27781 echo "$as_me: error: cannot compute sizeof (long)
27782 See \`config.log' for more details." >&2;}
27783 { (exit 77); exit 77; }; }
27785 ac_cv_sizeof_long=0
27789 cat >conftest.$ac_ext <<_ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h. */
27795 $ac_includes_default
27796 typedef long ac__type_sizeof_;
27797 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27798 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27799 @%:@include <stdio.h>
27800 @%:@include <stdlib.h>
27805 FILE *f = fopen ("conftest.val", "w");
27808 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27810 long int i = longval ();
27811 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27813 fprintf (f, "%ld\n", i);
27817 unsigned long int i = ulongval ();
27818 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27820 fprintf (f, "%lu\n", i);
27822 return ferror (f) || fclose (f) != 0;
27828 rm -f conftest$ac_exeext
27829 if { (ac_try="$ac_link"
27830 case "(($ac_try" in
27831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832 *) ac_try_echo=$ac_try;;
27834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835 (eval "$ac_link") 2>&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27839 { (case "(($ac_try" in
27840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27841 *) ac_try_echo=$ac_try;;
27843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27844 (eval "$ac_try") 2>&5
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; }; then
27848 ac_cv_sizeof_long=`cat conftest.val`
27850 echo "$as_me: program exited with status $ac_status" >&5
27851 echo "$as_me: failed program was:" >&5
27852 sed 's/^/| /' conftest.$ac_ext >&5
27854 ( exit $ac_status )
27855 if test "$ac_cv_type_long" = yes; then
27856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27857 See \`config.log' for more details." >&5
27858 echo "$as_me: error: cannot compute sizeof (long)
27859 See \`config.log' for more details." >&2;}
27860 { (exit 77); exit 77; }; }
27862 ac_cv_sizeof_long=0
27865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27869 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27870 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27874 cat >>confdefs.h <<_ACEOF
27875 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
27879 { echo "$as_me:$LINENO: checking for size_t" >&5
27880 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27881 if test "${ac_cv_type_size_t+set}" = set; then
27882 echo $ECHO_N "(cached) $ECHO_C" >&6
27884 cat >conftest.$ac_ext <<_ACEOF
27887 cat confdefs.h >>conftest.$ac_ext
27888 cat >>conftest.$ac_ext <<_ACEOF
27889 /* end confdefs.h. */
27890 $ac_includes_default
27891 typedef size_t ac__type_new_;
27895 if ((ac__type_new_ *) 0)
27897 if (sizeof (ac__type_new_))
27903 rm -f conftest.$ac_objext
27904 if { (ac_try="$ac_compile"
27905 case "(($ac_try" in
27906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907 *) ac_try_echo=$ac_try;;
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910 (eval "$ac_compile") 2>conftest.er1
27912 grep -v '^ *+' conftest.er1 >conftest.err
27914 cat conftest.err >&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } && {
27917 test -z "$ac_c_werror_flag" ||
27918 test ! -s conftest.err
27919 } && test -s conftest.$ac_objext; then
27920 ac_cv_type_size_t=yes
27922 echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27925 ac_cv_type_size_t=no
27928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27930 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27931 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27933 # The cast to long int works around a bug in the HP C Compiler
27934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27936 # This bug is HP SR number 8606223364.
27937 { echo "$as_me:$LINENO: checking size of size_t" >&5
27938 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27939 if test "${ac_cv_sizeof_size_t+set}" = set; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
27942 if test "$cross_compiling" = yes; then
27943 # Depending upon the size, compute the lo and hi bounds.
27944 cat >conftest.$ac_ext <<_ACEOF
27947 cat confdefs.h >>conftest.$ac_ext
27948 cat >>conftest.$ac_ext <<_ACEOF
27949 /* end confdefs.h. */
27950 $ac_includes_default
27951 typedef size_t ac__type_sizeof_;
27955 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27956 test_array @<:@0@:>@ = 0
27962 rm -f conftest.$ac_objext
27963 if { (ac_try="$ac_compile"
27964 case "(($ac_try" in
27965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966 *) ac_try_echo=$ac_try;;
27968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969 (eval "$ac_compile") 2>conftest.er1
27971 grep -v '^ *+' conftest.er1 >conftest.err
27973 cat conftest.err >&5
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); } && {
27976 test -z "$ac_c_werror_flag" ||
27977 test ! -s conftest.err
27978 } && test -s conftest.$ac_objext; then
27981 cat >conftest.$ac_ext <<_ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h. */
27987 $ac_includes_default
27988 typedef size_t ac__type_sizeof_;
27992 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27993 test_array @<:@0@:>@ = 0
27999 rm -f conftest.$ac_objext
28000 if { (ac_try="$ac_compile"
28001 case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_compile") 2>conftest.er1
28008 grep -v '^ *+' conftest.er1 >conftest.err
28010 cat conftest.err >&5
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); } && {
28013 test -z "$ac_c_werror_flag" ||
28014 test ! -s conftest.err
28015 } && test -s conftest.$ac_objext; then
28016 ac_hi=$ac_mid; break
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28021 ac_lo=`expr $ac_mid + 1`
28022 if test $ac_lo -le $ac_mid; then
28026 ac_mid=`expr 2 '*' $ac_mid + 1`
28029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28035 cat >conftest.$ac_ext <<_ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h. */
28041 $ac_includes_default
28042 typedef size_t ac__type_sizeof_;
28046 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28047 test_array @<:@0@:>@ = 0
28053 rm -f conftest.$ac_objext
28054 if { (ac_try="$ac_compile"
28055 case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_compile") 2>conftest.er1
28062 grep -v '^ *+' conftest.er1 >conftest.err
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } && {
28067 test -z "$ac_c_werror_flag" ||
28068 test ! -s conftest.err
28069 } && test -s conftest.$ac_objext; then
28072 cat >conftest.$ac_ext <<_ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h. */
28078 $ac_includes_default
28079 typedef size_t ac__type_sizeof_;
28083 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28084 test_array @<:@0@:>@ = 0
28090 rm -f conftest.$ac_objext
28091 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28099 grep -v '^ *+' conftest.er1 >conftest.err
28101 cat conftest.err >&5
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); } && {
28104 test -z "$ac_c_werror_flag" ||
28105 test ! -s conftest.err
28106 } && test -s conftest.$ac_objext; then
28107 ac_lo=$ac_mid; break
28109 echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28112 ac_hi=`expr '(' $ac_mid ')' - 1`
28113 if test $ac_mid -le $ac_hi; then
28117 ac_mid=`expr 2 '*' $ac_mid`
28120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28123 echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28133 # Binary search between lo and hi bounds.
28134 while test "x$ac_lo" != "x$ac_hi"; do
28135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28136 cat >conftest.$ac_ext <<_ACEOF
28139 cat confdefs.h >>conftest.$ac_ext
28140 cat >>conftest.$ac_ext <<_ACEOF
28141 /* end confdefs.h. */
28142 $ac_includes_default
28143 typedef size_t ac__type_sizeof_;
28147 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28148 test_array @<:@0@:>@ = 0
28154 rm -f conftest.$ac_objext
28155 if { (ac_try="$ac_compile"
28156 case "(($ac_try" in
28157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161 (eval "$ac_compile") 2>conftest.er1
28163 grep -v '^ *+' conftest.er1 >conftest.err
28165 cat conftest.err >&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); } && {
28168 test -z "$ac_c_werror_flag" ||
28169 test ! -s conftest.err
28170 } && test -s conftest.$ac_objext; then
28173 echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28176 ac_lo=`expr '(' $ac_mid ')' + 1`
28179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28182 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28183 '') if test "$ac_cv_type_size_t" = yes; then
28184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28185 See \`config.log' for more details." >&5
28186 echo "$as_me: error: cannot compute sizeof (size_t)
28187 See \`config.log' for more details." >&2;}
28188 { (exit 77); exit 77; }; }
28190 ac_cv_sizeof_size_t=0
28194 cat >conftest.$ac_ext <<_ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h. */
28200 $ac_includes_default
28201 typedef size_t ac__type_sizeof_;
28202 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28203 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28204 @%:@include <stdio.h>
28205 @%:@include <stdlib.h>
28210 FILE *f = fopen ("conftest.val", "w");
28213 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28215 long int i = longval ();
28216 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28218 fprintf (f, "%ld\n", i);
28222 unsigned long int i = ulongval ();
28223 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28225 fprintf (f, "%lu\n", i);
28227 return ferror (f) || fclose (f) != 0;
28233 rm -f conftest$ac_exeext
28234 if { (ac_try="$ac_link"
28235 case "(($ac_try" in
28236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237 *) ac_try_echo=$ac_try;;
28239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240 (eval "$ac_link") 2>&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28244 { (case "(($ac_try" in
28245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246 *) ac_try_echo=$ac_try;;
28248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249 (eval "$ac_try") 2>&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; }; then
28253 ac_cv_sizeof_size_t=`cat conftest.val`
28255 echo "$as_me: program exited with status $ac_status" >&5
28256 echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28259 ( exit $ac_status )
28260 if test "$ac_cv_type_size_t" = yes; then
28261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28262 See \`config.log' for more details." >&5
28263 echo "$as_me: error: cannot compute sizeof (size_t)
28264 See \`config.log' for more details." >&2;}
28265 { (exit 77); exit 77; }; }
28267 ac_cv_sizeof_size_t=0
28270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28274 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28275 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28279 cat >>confdefs.h <<_ACEOF
28280 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28284 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28285 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28286 if test "${ac_cv_type_socklen_t+set}" = set; then
28287 echo $ECHO_N "(cached) $ECHO_C" >&6
28289 cat >conftest.$ac_ext <<_ACEOF
28292 cat confdefs.h >>conftest.$ac_ext
28293 cat >>conftest.$ac_ext <<_ACEOF
28294 /* end confdefs.h. */
28295 $ac_includes_default
28296 typedef socklen_t ac__type_new_;
28300 if ((ac__type_new_ *) 0)
28302 if (sizeof (ac__type_new_))
28308 rm -f conftest.$ac_objext
28309 if { (ac_try="$ac_compile"
28310 case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_compile") 2>conftest.er1
28317 grep -v '^ *+' conftest.er1 >conftest.err
28319 cat conftest.err >&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); } && {
28322 test -z "$ac_c_werror_flag" ||
28323 test ! -s conftest.err
28324 } && test -s conftest.$ac_objext; then
28325 ac_cv_type_socklen_t=yes
28327 echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.$ac_ext >&5
28330 ac_cv_type_socklen_t=no
28333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28335 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28336 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28338 # The cast to long int works around a bug in the HP C Compiler
28339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28341 # This bug is HP SR number 8606223364.
28342 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28343 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28344 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28347 if test "$cross_compiling" = yes; then
28348 # Depending upon the size, compute the lo and hi bounds.
28349 cat >conftest.$ac_ext <<_ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h. */
28355 $ac_includes_default
28356 typedef socklen_t ac__type_sizeof_;
28360 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28361 test_array @<:@0@:>@ = 0
28367 rm -f conftest.$ac_objext
28368 if { (ac_try="$ac_compile"
28369 case "(($ac_try" in
28370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_compile") 2>conftest.er1
28376 grep -v '^ *+' conftest.er1 >conftest.err
28378 cat conftest.err >&5
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); } && {
28381 test -z "$ac_c_werror_flag" ||
28382 test ! -s conftest.err
28383 } && test -s conftest.$ac_objext; then
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28392 $ac_includes_default
28393 typedef socklen_t ac__type_sizeof_;
28397 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28398 test_array @<:@0@:>@ = 0
28404 rm -f conftest.$ac_objext
28405 if { (ac_try="$ac_compile"
28406 case "(($ac_try" in
28407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408 *) ac_try_echo=$ac_try;;
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411 (eval "$ac_compile") 2>conftest.er1
28413 grep -v '^ *+' conftest.er1 >conftest.err
28415 cat conftest.err >&5
28416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); } && {
28418 test -z "$ac_c_werror_flag" ||
28419 test ! -s conftest.err
28420 } && test -s conftest.$ac_objext; then
28421 ac_hi=$ac_mid; break
28423 echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28426 ac_lo=`expr $ac_mid + 1`
28427 if test $ac_lo -le $ac_mid; then
28431 ac_mid=`expr 2 '*' $ac_mid + 1`
28434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28437 echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28440 cat >conftest.$ac_ext <<_ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h. */
28446 $ac_includes_default
28447 typedef socklen_t ac__type_sizeof_;
28451 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28452 test_array @<:@0@:>@ = 0
28458 rm -f conftest.$ac_objext
28459 if { (ac_try="$ac_compile"
28460 case "(($ac_try" in
28461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462 *) ac_try_echo=$ac_try;;
28464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465 (eval "$ac_compile") 2>conftest.er1
28467 grep -v '^ *+' conftest.er1 >conftest.err
28469 cat conftest.err >&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } && {
28472 test -z "$ac_c_werror_flag" ||
28473 test ! -s conftest.err
28474 } && test -s conftest.$ac_objext; then
28477 cat >conftest.$ac_ext <<_ACEOF
28480 cat confdefs.h >>conftest.$ac_ext
28481 cat >>conftest.$ac_ext <<_ACEOF
28482 /* end confdefs.h. */
28483 $ac_includes_default
28484 typedef socklen_t ac__type_sizeof_;
28488 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28489 test_array @<:@0@:>@ = 0
28495 rm -f conftest.$ac_objext
28496 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28504 grep -v '^ *+' conftest.er1 >conftest.err
28506 cat conftest.err >&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } && {
28509 test -z "$ac_c_werror_flag" ||
28510 test ! -s conftest.err
28511 } && test -s conftest.$ac_objext; then
28512 ac_lo=$ac_mid; break
28514 echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28517 ac_hi=`expr '(' $ac_mid ')' - 1`
28518 if test $ac_mid -le $ac_hi; then
28522 ac_mid=`expr 2 '*' $ac_mid`
28525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28528 echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28538 # Binary search between lo and hi bounds.
28539 while test "x$ac_lo" != "x$ac_hi"; do
28540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28541 cat >conftest.$ac_ext <<_ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h. */
28547 $ac_includes_default
28548 typedef socklen_t ac__type_sizeof_;
28552 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28553 test_array @<:@0@:>@ = 0
28559 rm -f conftest.$ac_objext
28560 if { (ac_try="$ac_compile"
28561 case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_compile") 2>conftest.er1
28568 grep -v '^ *+' conftest.er1 >conftest.err
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } && {
28573 test -z "$ac_c_werror_flag" ||
28574 test ! -s conftest.err
28575 } && test -s conftest.$ac_objext; then
28578 echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28581 ac_lo=`expr '(' $ac_mid ')' + 1`
28584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28587 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28588 '') if test "$ac_cv_type_socklen_t" = yes; then
28589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28590 See \`config.log' for more details." >&5
28591 echo "$as_me: error: cannot compute sizeof (socklen_t)
28592 See \`config.log' for more details." >&2;}
28593 { (exit 77); exit 77; }; }
28595 ac_cv_sizeof_socklen_t=0
28599 cat >conftest.$ac_ext <<_ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h. */
28605 $ac_includes_default
28606 typedef socklen_t ac__type_sizeof_;
28607 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28608 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28609 @%:@include <stdio.h>
28610 @%:@include <stdlib.h>
28615 FILE *f = fopen ("conftest.val", "w");
28618 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28620 long int i = longval ();
28621 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28623 fprintf (f, "%ld\n", i);
28627 unsigned long int i = ulongval ();
28628 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28630 fprintf (f, "%lu\n", i);
28632 return ferror (f) || fclose (f) != 0;
28638 rm -f conftest$ac_exeext
28639 if { (ac_try="$ac_link"
28640 case "(($ac_try" in
28641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642 *) ac_try_echo=$ac_try;;
28644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645 (eval "$ac_link") 2>&5
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28649 { (case "(($ac_try" in
28650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28651 *) ac_try_echo=$ac_try;;
28653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28654 (eval "$ac_try") 2>&5
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); }; }; then
28658 ac_cv_sizeof_socklen_t=`cat conftest.val`
28660 echo "$as_me: program exited with status $ac_status" >&5
28661 echo "$as_me: failed program was:" >&5
28662 sed 's/^/| /' conftest.$ac_ext >&5
28664 ( exit $ac_status )
28665 if test "$ac_cv_type_socklen_t" = yes; then
28666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28667 See \`config.log' for more details." >&5
28668 echo "$as_me: error: cannot compute sizeof (socklen_t)
28669 See \`config.log' for more details." >&2;}
28670 { (exit 77); exit 77; }; }
28672 ac_cv_sizeof_socklen_t=0
28675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28680 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28684 cat >>confdefs.h <<_ACEOF
28685 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28692 cat >>confdefs.h <<_ACEOF
28693 @%:@define NFS_STATEDIR "$statedir"
28697 if test "x$cross_compiling" = "xno"; then
28698 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28699 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28700 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28701 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28703 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28704 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28705 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28706 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28721 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28726 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28728 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28730 AM_CFLAGS="$my_am_cflags"
28733 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28734 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28737 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/getkversion/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"
28739 cat >confcache <<\_ACEOF
28740 # This file is a shell script that caches the results of configure
28741 # tests run on this system so they can be shared between configure
28742 # scripts and configure runs, see configure's option --config-cache.
28743 # It is not useful on other systems. If it contains results you don't
28744 # want to keep, you may remove or edit it.
28746 # config.status only pays attention to the cache file if you give it
28747 # the --recheck option to rerun configure.
28749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28751 # following values.
28755 # The following way of writing the cache mishandles newlines in values,
28756 # but we know of no workaround that is simple, portable, and efficient.
28757 # So, we kill variables containing newlines.
28758 # Ultrix sh set writes to stderr and can't be redirected directly,
28759 # and sets the high bit in the cache file unless we assign to the vars.
28761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28762 eval ac_val=\$$ac_var
28766 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28767 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28770 _ | IFS | as_nl) ;; #(
28771 *) $as_unset $ac_var ;;
28777 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28778 *${as_nl}ac_space=\ *)
28779 # `set' does not quote correctly, so add quotes (double-quote
28780 # substitution turns \\\\ into \\, and sed turns \\ into \).
28783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28786 # `set' quotes correctly as required by POSIX, so do not add quotes.
28787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28798 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28800 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28801 if test -w "$cache_file"; then
28802 test "x$cache_file" != "x/dev/null" &&
28803 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28804 echo "$as_me: updating cache $cache_file" >&6;}
28805 cat confcache >$cache_file
28807 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28808 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28814 # Let make expand exec_prefix.
28815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28817 DEFS=-DHAVE_CONFIG_H
28821 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
28822 # 1. Remove the extension, and $U if already installed.
28823 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28824 ac_i=`echo "$ac_i" | sed "$ac_script"`
28825 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28826 # will be set to the directory where LIBOBJS objects are built.
28827 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28828 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28830 LIB@&t@OBJS=$ac_libobjs
28832 LTLIBOBJS=$ac_ltlibobjs
28835 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28836 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28837 Usually this means the macro was only invoked conditionally." >&5
28838 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28839 Usually this means the macro was only invoked conditionally." >&2;}
28840 { (exit 1); exit 1; }; }
28842 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28843 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28844 Usually this means the macro was only invoked conditionally." >&5
28845 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28846 Usually this means the macro was only invoked conditionally." >&2;}
28847 { (exit 1); exit 1; }; }
28849 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28850 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28851 Usually this means the macro was only invoked conditionally." >&5
28852 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28853 Usually this means the macro was only invoked conditionally." >&2;}
28854 { (exit 1); exit 1; }; }
28856 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
28857 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
28858 Usually this means the macro was only invoked conditionally." >&5
28859 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
28860 Usually this means the macro was only invoked conditionally." >&2;}
28861 { (exit 1); exit 1; }; }
28863 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28864 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28865 Usually this means the macro was only invoked conditionally." >&5
28866 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28867 Usually this means the macro was only invoked conditionally." >&2;}
28868 { (exit 1); exit 1; }; }
28870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28871 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28872 Usually this means the macro was only invoked conditionally." >&5
28873 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28874 Usually this means the macro was only invoked conditionally." >&2;}
28875 { (exit 1); exit 1; }; }
28877 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28878 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28879 Usually this means the macro was only invoked conditionally." >&5
28880 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28881 Usually this means the macro was only invoked conditionally." >&2;}
28882 { (exit 1); exit 1; }; }
28884 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28885 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28886 Usually this means the macro was only invoked conditionally." >&5
28887 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28888 Usually this means the macro was only invoked conditionally." >&2;}
28889 { (exit 1); exit 1; }; }
28892 : ${CONFIG_STATUS=./config.status}
28893 ac_clean_files_save=$ac_clean_files
28894 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28895 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28896 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28897 cat >$CONFIG_STATUS <<_ACEOF
28899 # Generated by $as_me.
28900 # Run this file to recreate the current configuration.
28901 # Compiler output produced by configure, useful for debugging
28902 # configure, is in config.log if it exists.
28905 ac_cs_recheck=false
28907 SHELL=\${CONFIG_SHELL-$SHELL}
28910 cat >>$CONFIG_STATUS <<\_ACEOF
28911 ## --------------------- ##
28912 ## M4sh Initialization. ##
28913 ## --------------------- ##
28915 # Be more Bourne compatible
28916 DUALCASE=1; export DUALCASE # for MKS sh
28917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28920 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28921 # is contrary to our usage. Disable this feature.
28922 alias -g '${1+"$@"}'='"$@"'
28923 setopt NO_GLOB_SUBST
28925 case `(set -o) 2>/dev/null` in
28926 *posix*) set -o posix ;;
28935 # Avoid depending upon Character Ranges.
28936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28939 as_cr_digits='0123456789'
28940 as_cr_alnum=$as_cr_Letters$as_cr_digits
28942 # The user is always right.
28943 if test "${PATH_SEPARATOR+set}" != set; then
28944 echo "#! /bin/sh" >conf$$.sh
28945 echo "exit 0" >>conf$$.sh
28947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28955 # Support unset when possible.
28956 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28964 # We need space, tab and new line, in precisely that order. Quoting is
28965 # there to prevent editors from complaining about space-tab.
28966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28967 # splitting by setting IFS to empty value.)
28972 # Find who we are. Look in the path if we contain no directory separator.
28974 *[\\/]* ) as_myself=$0 ;;
28975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28976 for as_dir in $PATH
28979 test -z "$as_dir" && as_dir=.
28980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28986 # We did not find ourselves, most probably we were run as `sh COMMAND'
28987 # in which case we are not to be found in the path.
28988 if test "x$as_myself" = x; then
28991 if test ! -f "$as_myself"; then
28992 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28993 { (exit 1); exit 1; }
28996 # Work around bugs in pre-3.0 UWIN ksh.
28997 for as_var in ENV MAIL MAILPATH
28998 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29006 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29007 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29008 LC_TELEPHONE LC_TIME
29010 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29011 eval $as_var=C; export $as_var
29013 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29017 # Required to use basename.
29018 if expr a : '\(a\)' >/dev/null 2>&1 &&
29019 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29025 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29026 as_basename=basename
29032 # Name of the executable.
29033 as_me=`$as_basename -- "$0" ||
29034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29035 X"$0" : 'X\(//\)$' \| \
29036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29038 sed '/^.*\/\([^/][^/]*\)\/*$/{
29057 as_lineno_1=$LINENO
29058 as_lineno_2=$LINENO
29059 test "x$as_lineno_1" != "x$as_lineno_2" &&
29060 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29062 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29063 # uniformly replaced by the line number. The first 'sed' inserts a
29064 # line-number line after each line using $LINENO; the second 'sed'
29065 # does the real work. The second script uses 'N' to pair each
29066 # line-number line with the line containing $LINENO, and appends
29067 # trailing '-' during substitution so that $LINENO is not a special
29068 # case at line end.
29069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29070 # scripts with optimization help from Paolo Bonzini. Blame Lee
29071 # E. McMahon (1931-1989) for sed's syntax. :-)
29083 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29086 ' >$as_me.lineno &&
29087 chmod +x "$as_me.lineno" ||
29088 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29089 { (exit 1); exit 1; }; }
29091 # Don't try to exec as it changes $[0], causing all sort of problems
29092 # (the dirname of $[0] is not the place where we might find the
29093 # original and so on. Autoconf is especially sensitive to this).
29094 . "./$as_me.lineno"
29095 # Exit status is that of the last command.
29100 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29106 ECHO_C= ECHO_N= ECHO_T=
29107 case `echo -n x` in
29109 case `echo 'x\c'` in
29110 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29117 if expr a : '\(a\)' >/dev/null 2>&1 &&
29118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29124 rm -f conf$$ conf$$.exe conf$$.file
29125 if test -d conf$$.dir; then
29126 rm -f conf$$.dir/conf$$.file
29132 if ln -s conf$$.file conf$$ 2>/dev/null; then
29134 # ... but there are two gotchas:
29135 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29136 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29137 # In both cases, we have to default to `cp -p'.
29138 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29140 elif ln conf$$.file conf$$ 2>/dev/null; then
29145 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29146 rmdir conf$$.dir 2>/dev/null
29148 if mkdir -p . 2>/dev/null; then
29151 test -d ./-p && rmdir ./-p
29155 if test -x / >/dev/null 2>&1; then
29156 as_test_x='test -x'
29158 if ls -dL / >/dev/null 2>&1; then
29165 if test -d "$1"; then
29171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29172 ???[sx]*):;;*)false;;esac;fi
29176 as_executable_p=$as_test_x
29178 # Sed expression to map a string onto a valid CPP name.
29179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29181 # Sed expression to map a string onto a valid variable name.
29182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29187 # Save the log message, to keep $[0] and so on meaningful, and to
29188 # report actual input values of CONFIG_FILES etc. instead of their
29189 # values after options handling.
29191 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29192 generated by GNU Autoconf 2.61. Invocation command line was
29194 CONFIG_FILES = $CONFIG_FILES
29195 CONFIG_HEADERS = $CONFIG_HEADERS
29196 CONFIG_LINKS = $CONFIG_LINKS
29197 CONFIG_COMMANDS = $CONFIG_COMMANDS
29200 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29205 cat >>$CONFIG_STATUS <<_ACEOF
29206 # Files that config.status was made for.
29207 config_files="$ac_config_files"
29208 config_headers="$ac_config_headers"
29209 config_commands="$ac_config_commands"
29213 cat >>$CONFIG_STATUS <<\_ACEOF
29215 \`$as_me' instantiates files from templates according to the
29216 current configuration.
29218 Usage: $0 [OPTIONS] [FILE]...
29220 -h, --help print this help, then exit
29221 -V, --version print version number and configuration settings, then exit
29222 -q, --quiet do not print progress messages
29223 -d, --debug don't remove temporary files
29224 --recheck update $as_me by reconfiguring in the same conditions
29225 --file=FILE[:TEMPLATE]
29226 instantiate the configuration file FILE
29227 --header=FILE[:TEMPLATE]
29228 instantiate the configuration header FILE
29230 Configuration files:
29233 Configuration headers:
29236 Configuration commands:
29239 Report bugs to <bug-autoconf@gnu.org>."
29242 cat >>$CONFIG_STATUS <<_ACEOF
29244 linux nfs-utils config.status 1.0.10
29245 configured by $0, generated by GNU Autoconf 2.61,
29246 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29248 Copyright (C) 2006 Free Software Foundation, Inc.
29249 This config.status script is free software; the Free Software Foundation
29250 gives unlimited permission to copy, distribute and modify it."
29257 cat >>$CONFIG_STATUS <<\_ACEOF
29258 # If no file are specified by the user, then we need to provide default
29259 # value. By we need to know if files were specified by the user.
29265 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29266 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29277 # Handling of the options.
29278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29280 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29281 echo "$ac_cs_version"; exit ;;
29282 --debug | --debu | --deb | --de | --d | -d )
29284 --file | --fil | --fi | --f )
29286 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29287 ac_need_defaults=false;;
29288 --header | --heade | --head | --hea )
29290 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29291 ac_need_defaults=false;;
29293 # Conflict between --help and --header
29294 { echo "$as_me: error: ambiguous option: $1
29295 Try \`$0 --help' for more information." >&2
29296 { (exit 1); exit 1; }; };;
29297 --help | --hel | -h )
29298 echo "$ac_cs_usage"; exit ;;
29299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29303 # This is an error.
29304 -*) { echo "$as_me: error: unrecognized option: $1
29305 Try \`$0 --help' for more information." >&2
29306 { (exit 1); exit 1; }; } ;;
29308 *) ac_config_targets="$ac_config_targets $1"
29309 ac_need_defaults=false ;;
29315 ac_configure_extra_args=
29317 if $ac_cs_silent; then
29319 ac_configure_extra_args="$ac_configure_extra_args --silent"
29323 cat >>$CONFIG_STATUS <<_ACEOF
29324 if \$ac_cs_recheck; then
29325 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29326 CONFIG_SHELL=$SHELL
29327 export CONFIG_SHELL
29328 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29332 cat >>$CONFIG_STATUS <<\_ACEOF
29336 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
29337 @%:@@%:@ Running $as_me. @%:@@%:@
29343 cat >>$CONFIG_STATUS <<_ACEOF
29347 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29351 cat >>$CONFIG_STATUS <<\_ACEOF
29353 # Handling of arguments.
29354 for ac_config_target in $ac_config_targets
29356 case $ac_config_target in
29357 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29358 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29359 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29360 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29361 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29362 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29363 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29364 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29365 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29366 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29367 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29368 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29369 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29370 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29371 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29372 "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29373 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29374 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29375 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29376 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29377 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29378 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29379 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29380 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29381 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29382 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29383 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29384 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29385 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29386 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29387 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29388 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29391 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29392 { (exit 1); exit 1; }; };;
29397 # If the user did not use the arguments to specify the items to instantiate,
29398 # then the envvar interface is used. Set only those that are not.
29399 # We use the long form for the default assignment because of an extremely
29400 # bizarre bug on SunOS 4.1.3.
29401 if $ac_need_defaults; then
29402 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29403 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29407 # Have a temporary directory for convenience. Make it in the build tree
29408 # simply because there is no reason against having it here, and in addition,
29409 # creating and moving files from /tmp can sometimes cause problems.
29410 # Hook for its removal unless debugging.
29411 # Note that there is a small window in which the directory will not be cleaned:
29412 # after its creation but before its name has been assigned to `$tmp'.
29416 trap 'exit_status=$?
29417 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29419 trap '{ (exit 1); exit 1; }' 1 2 13 15
29421 # Create a (secure) tmp directory for tmp files.
29424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29425 test -n "$tmp" && test -d "$tmp"
29428 tmp=./conf$$-$RANDOM
29429 (umask 077 && mkdir "$tmp")
29432 echo "$me: cannot create a temporary directory in ." >&2
29433 { (exit 1); exit 1; }
29437 # Set up the sed scripts for CONFIG_FILES section.
29440 # No need to generate the scripts if there are no CONFIG_FILES.
29441 # This happens for instance when ./config.status config.h
29442 if test -n "$CONFIG_FILES"; then
29449 for ac_last_try in false false false false false :; do
29450 cat >conf$$subs.sed <<_ACEOF
29451 SHELL!$SHELL$ac_delim
29452 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29453 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29454 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29455 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29456 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29457 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29458 exec_prefix!$exec_prefix$ac_delim
29459 prefix!$prefix$ac_delim
29460 program_transform_name!$program_transform_name$ac_delim
29461 bindir!$bindir$ac_delim
29462 sbindir!$sbindir$ac_delim
29463 libexecdir!$libexecdir$ac_delim
29464 datarootdir!$datarootdir$ac_delim
29465 datadir!$datadir$ac_delim
29466 sysconfdir!$sysconfdir$ac_delim
29467 sharedstatedir!$sharedstatedir$ac_delim
29468 localstatedir!$localstatedir$ac_delim
29469 includedir!$includedir$ac_delim
29470 oldincludedir!$oldincludedir$ac_delim
29471 docdir!$docdir$ac_delim
29472 infodir!$infodir$ac_delim
29473 htmldir!$htmldir$ac_delim
29474 dvidir!$dvidir$ac_delim
29475 pdfdir!$pdfdir$ac_delim
29476 psdir!$psdir$ac_delim
29477 libdir!$libdir$ac_delim
29478 localedir!$localedir$ac_delim
29479 mandir!$mandir$ac_delim
29480 DEFS!$DEFS$ac_delim
29481 ECHO_C!$ECHO_C$ac_delim
29482 ECHO_N!$ECHO_N$ac_delim
29483 ECHO_T!$ECHO_T$ac_delim
29484 LIBS!$LIBS$ac_delim
29485 build_alias!$build_alias$ac_delim
29486 host_alias!$host_alias$ac_delim
29487 target_alias!$target_alias$ac_delim
29488 build!$build$ac_delim
29489 build_cpu!$build_cpu$ac_delim
29490 build_vendor!$build_vendor$ac_delim
29491 build_os!$build_os$ac_delim
29492 host!$host$ac_delim
29493 host_cpu!$host_cpu$ac_delim
29494 host_vendor!$host_vendor$ac_delim
29495 host_os!$host_os$ac_delim
29496 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29497 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29498 INSTALL_DATA!$INSTALL_DATA$ac_delim
29499 CYGPATH_W!$CYGPATH_W$ac_delim
29500 PACKAGE!$PACKAGE$ac_delim
29501 VERSION!$VERSION$ac_delim
29502 ACLOCAL!$ACLOCAL$ac_delim
29503 AUTOCONF!$AUTOCONF$ac_delim
29504 AUTOMAKE!$AUTOMAKE$ac_delim
29505 AUTOHEADER!$AUTOHEADER$ac_delim
29506 MAKEINFO!$MAKEINFO$ac_delim
29507 AMTAR!$AMTAR$ac_delim
29508 install_sh!$install_sh$ac_delim
29509 STRIP!$STRIP$ac_delim
29510 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29511 mkdir_p!$mkdir_p$ac_delim
29513 SET_MAKE!$SET_MAKE$ac_delim
29514 am__leading_dot!$am__leading_dot$ac_delim
29515 RELEASE!$RELEASE$ac_delim
29516 statedir!$statedir$ac_delim
29517 statduser!$statduser$ac_delim
29518 enable_nfsv3!$enable_nfsv3$ac_delim
29519 IDMAPD!$IDMAPD$ac_delim
29520 enable_nfsv4!$enable_nfsv4$ac_delim
29521 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29522 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29523 GSSD!$GSSD$ac_delim
29524 SVCGSSD!$SVCGSSD$ac_delim
29525 enable_gss!$enable_gss$ac_delim
29526 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29527 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29528 kprefix!$kprefix$ac_delim
29529 secure_statd!$secure_statd$ac_delim
29530 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29531 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29532 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29533 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29535 CFLAGS!$CFLAGS$ac_delim
29536 LDFLAGS!$LDFLAGS$ac_delim
29537 CPPFLAGS!$CPPFLAGS$ac_delim
29538 ac_ct_CC!$ac_ct_CC$ac_delim
29539 EXEEXT!$EXEEXT$ac_delim
29540 OBJEXT!$OBJEXT$ac_delim
29541 DEPDIR!$DEPDIR$ac_delim
29542 am__include!$am__include$ac_delim
29543 am__quote!$am__quote$ac_delim
29544 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29545 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29546 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29547 CCDEPMODE!$CCDEPMODE$ac_delim
29550 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29552 elif $ac_last_try; then
29553 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29554 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29555 { (exit 1); exit 1; }; }
29557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29561 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29562 if test -n "$ac_eof"; then
29563 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29564 ac_eof=`expr $ac_eof + 1`
29567 cat >>$CONFIG_STATUS <<_ACEOF
29568 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29572 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29573 s/^/s,@/; s/!/@,|#_!!_#|/
29576 s/'"$ac_delim"'$/,g/; t
29578 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29579 ' >>$CONFIG_STATUS <conf$$subs.sed
29580 rm -f conf$$subs.sed
29581 cat >>$CONFIG_STATUS <<_ACEOF
29587 for ac_last_try in false false false false false :; do
29588 cat >conf$$subs.sed <<_ACEOF
29589 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29590 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29591 LIBWRAP!$LIBWRAP$ac_delim
29592 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29593 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29595 CXXFLAGS!$CXXFLAGS$ac_delim
29596 ac_ct_CXX!$ac_ct_CXX$ac_delim
29597 CXXDEPMODE!$CXXDEPMODE$ac_delim
29598 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29599 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29601 LN_S!$LN_S$ac_delim
29602 GREP!$GREP$ac_delim
29603 EGREP!$EGREP$ac_delim
29604 ECHO!$ECHO$ac_delim
29606 RANLIB!$RANLIB$ac_delim
29607 CXXCPP!$CXXCPP$ac_delim
29609 FFLAGS!$FFLAGS$ac_delim
29610 ac_ct_F77!$ac_ct_F77$ac_delim
29611 LIBTOOL!$LIBTOOL$ac_delim
29612 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29614 LIBNSL!$LIBNSL$ac_delim
29615 PKG_CONFIG!$PKG_CONFIG$ac_delim
29616 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29617 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29618 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29619 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29620 LIBSOCKET!$LIBSOCKET$ac_delim
29621 LIBCRYPT!$LIBCRYPT$ac_delim
29622 LIBBSD!$LIBBSD$ac_delim
29623 KRBDIR!$KRBDIR$ac_delim
29624 KRBLIBS!$KRBLIBS$ac_delim
29625 KRBCFLAGS!$KRBCFLAGS$ac_delim
29626 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29627 K5VERS!$K5VERS$ac_delim
29628 ALLOCA!$ALLOCA$ac_delim
29629 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
29630 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29631 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29632 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29633 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29634 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29635 AM_CFLAGS!$AM_CFLAGS$ac_delim
29636 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29637 LTLIBOBJS!$LTLIBOBJS$ac_delim
29640 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
29642 elif $ac_last_try; then
29643 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29644 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29645 { (exit 1); exit 1; }; }
29647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29651 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29652 if test -n "$ac_eof"; then
29653 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29654 ac_eof=`expr $ac_eof + 1`
29657 cat >>$CONFIG_STATUS <<_ACEOF
29658 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29662 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29663 s/^/s,@/; s/!/@,|#_!!_#|/
29666 s/'"$ac_delim"'$/,g/; t
29668 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29669 ' >>$CONFIG_STATUS <conf$$subs.sed
29670 rm -f conf$$subs.sed
29671 cat >>$CONFIG_STATUS <<_ACEOF
29678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29680 # trailing colons and then remove the whole line if VPATH becomes empty
29681 # (actually we leave an empty line to preserve line numbers).
29682 if test "x$srcdir" = x.; then
29683 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29684 s/:*\$(srcdir):*/:/
29685 s/:*\${srcdir}:*/:/
29687 s/^\([^=]*=[ ]*\):*/\1/
29693 cat >>$CONFIG_STATUS <<\_ACEOF
29694 fi # test -n "$CONFIG_FILES"
29697 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29700 :[FHLC]) ac_mode=$ac_tag; continue;;
29702 case $ac_mode$ac_tag in
29704 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29705 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29706 { (exit 1); exit 1; }; };;
29707 :[FH]-) ac_tag=-:-;;
29708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29725 -) ac_f="$tmp/stdin";;
29726 *) # Look for the file first in the build tree, then in the source tree
29727 # (if the path is not absolute). The absolute path cannot be DOS-style,
29728 # because $ac_f cannot contain `:'.
29732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29734 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29735 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29736 { (exit 1); exit 1; }; };;
29738 ac_file_inputs="$ac_file_inputs $ac_f"
29741 # Let's still pretend it is `configure' which instantiates (i.e., don't
29742 # use $as_me), people would be surprised to read:
29743 # /* config.h. Generated by config.status. */
29744 configure_input="Generated from "`IFS=:
29745 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29746 if test x"$ac_file" != x-; then
29747 configure_input="$ac_file. $configure_input"
29748 { echo "$as_me:$LINENO: creating $ac_file" >&5
29749 echo "$as_me: creating $ac_file" >&6;}
29753 *:-:* | *:-) cat >"$tmp/stdin";;
29758 ac_dir=`$as_dirname -- "$ac_file" ||
29759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29760 X"$ac_file" : 'X\(//\)[^/]' \| \
29761 X"$ac_file" : 'X\(//\)$' \| \
29762 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29768 /^X\(\/\/\)[^/].*/{
29783 -*) as_dir=./$as_dir;;
29785 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29789 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29790 *) as_qdir=$as_dir;;
29792 as_dirs="'$as_qdir' $as_dirs"
29793 as_dir=`$as_dirname -- "$as_dir" ||
29794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29795 X"$as_dir" : 'X\(//\)[^/]' \| \
29796 X"$as_dir" : 'X\(//\)$' \| \
29797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29803 /^X\(\/\/\)[^/].*/{
29816 test -d "$as_dir" && break
29818 test -z "$as_dirs" || eval "mkdir $as_dirs"
29819 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29820 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29821 { (exit 1); exit 1; }; }; }
29825 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29828 # A ".." for each directory in $ac_dir_suffix.
29829 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29830 case $ac_top_builddir_sub in
29831 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29832 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29835 ac_abs_top_builddir=$ac_pwd
29836 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29837 # for backward compatibility:
29838 ac_top_builddir=$ac_top_build_prefix
29841 .) # We are building in place.
29843 ac_top_srcdir=$ac_top_builddir_sub
29844 ac_abs_top_srcdir=$ac_pwd ;;
29845 [\\/]* | ?:[\\/]* ) # Absolute name.
29846 ac_srcdir=$srcdir$ac_dir_suffix;
29847 ac_top_srcdir=$srcdir
29848 ac_abs_top_srcdir=$srcdir ;;
29849 *) # Relative name.
29850 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29851 ac_top_srcdir=$ac_top_build_prefix$srcdir
29852 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29854 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29864 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29865 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29869 cat >>$CONFIG_STATUS <<\_ACEOF
29870 # If the template does not know about datarootdir, expand it.
29871 # FIXME: This hack should be removed a few years after 2.60.
29872 ac_datarootdir_hack=; ac_datarootdir_seen=
29874 case `sed -n '/datarootdir/ {
29883 ' $ac_file_inputs` in
29884 *datarootdir*) ac_datarootdir_seen=yes;;
29885 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29886 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29887 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29889 cat >>$CONFIG_STATUS <<_ACEOF
29890 ac_datarootdir_hack='
29891 s&@datadir@&$datadir&g
29892 s&@docdir@&$docdir&g
29893 s&@infodir@&$infodir&g
29894 s&@localedir@&$localedir&g
29895 s&@mandir@&$mandir&g
29896 s&\\\${datarootdir}&$datarootdir&g' ;;
29900 # Neutralize VPATH when `$srcdir' = `.'.
29901 # Shell code in configure.ac might set extrasub.
29902 # FIXME: do we really want to maintain this feature?
29903 cat >>$CONFIG_STATUS <<_ACEOF
29907 cat >>$CONFIG_STATUS <<\_ACEOF
29909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29910 s&@configure_input@&$configure_input&;t t
29911 s&@top_builddir@&$ac_top_builddir_sub&;t t
29912 s&@srcdir@&$ac_srcdir&;t t
29913 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29914 s&@top_srcdir@&$ac_top_srcdir&;t t
29915 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29916 s&@builddir@&$ac_builddir&;t t
29917 s&@abs_builddir@&$ac_abs_builddir&;t t
29918 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29919 s&@INSTALL@&$ac_INSTALL&;t t
29920 $ac_datarootdir_hack
29921 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29924 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29926 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29927 which seems to be undefined. Please make sure it is defined." >&5
29928 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29929 which seems to be undefined. Please make sure it is defined." >&2;}
29933 -) cat "$tmp/out"; rm -f "$tmp/out";;
29934 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29943 # Transform confdefs.h into a sed script `conftest.defines', that
29944 # substitutes the proper values into config.h.in to produce config.h.
29945 rm -f conftest.defines conftest.tail
29946 # First, append a space to every undef/define line, to ease matching.
29947 echo 's/$/ /' >conftest.defines
29948 # Then, protect against being on the right side of a sed subst, or in
29949 # an unquoted here document, in config.status. If some macros were
29950 # called several times there might be several #defines for the same
29951 # symbol, which is useless. But do not sort them, since the last
29952 # AC_DEFINE must be honored.
29953 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29954 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29955 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29956 # PARAMS is the parameter list in the macro definition--in most cases, it's
29957 # just an empty string.
29958 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29959 ac_dB='\\)[ (].*,\\1define\\2'
29967 s/^[ ]*#[ ]*define[ ][ ]*//
29972 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29973 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29974 ' >>conftest.defines
29976 # Remove the space that was appended to ease matching.
29977 # Then replace #undef with comments. This is necessary, for
29978 # example, in the case of _POSIX_SOURCE, which is predefined and required
29979 # on some systems where configure will not decide to define it.
29980 # (The regexp can be short, since the line contains either #define or #undef.)
29982 s,^[ #]*u.*,/* & */,' >>conftest.defines
29984 # Break up conftest.defines:
29985 ac_max_sed_lines=50
29987 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29988 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29989 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29991 ac_in='$ac_file_inputs'
29992 ac_out='"$tmp/out1"'
29993 ac_nxt='"$tmp/out2"'
29997 # Write a here document:
29998 cat >>$CONFIG_STATUS <<_ACEOF
29999 # First, check the format of the line:
30000 cat >"\$tmp/defines.sed" <<\\CEOF
30001 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30002 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30006 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30008 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30009 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30010 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30011 grep . conftest.tail >/dev/null || break
30012 rm -f conftest.defines
30013 mv conftest.tail conftest.defines
30015 rm -f conftest.defines conftest.tail
30017 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30018 cat >>$CONFIG_STATUS <<\_ACEOF
30019 if test x"$ac_file" != x-; then
30020 echo "/* $configure_input */" >"$tmp/config.h"
30021 cat "$ac_result" >>"$tmp/config.h"
30022 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30023 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30024 echo "$as_me: $ac_file is unchanged" >&6;}
30027 mv "$tmp/config.h" $ac_file
30030 echo "/* $configure_input */"
30034 # Compute $ac_file's index in $config_headers.
30036 for _am_header in $config_headers :; do
30037 case $_am_header in
30038 $ac_file | $ac_file:* )
30041 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30044 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30045 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30046 X$ac_file : 'X\(//\)[^/]' \| \
30047 X$ac_file : 'X\(//\)$' \| \
30048 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30054 /^X\(\/\/\)[^/].*/{
30066 s/.*/./; q'`/stamp-h$_am_stamp_count
30069 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30070 echo "$as_me: executing $ac_file commands" >&6;}
30075 case $ac_file$ac_mode in
30076 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30077 # Strip MF so we end up with the name of the file.
30078 mf=`echo "$mf" | sed -e 's/:.*$//'`
30079 # Check whether this is an Automake generated Makefile or not.
30080 # We used to match only the files named `Makefile.in', but
30081 # some people rename them; so instead we look at the file content.
30082 # Grep'ing the first line is not enough: some people post-process
30083 # each Makefile.in and add a new line on top of each file to say so.
30084 # So let's grep whole file.
30085 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30086 dirpart=`$as_dirname -- "$mf" ||
30087 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30088 X"$mf" : 'X\(//\)[^/]' \| \
30089 X"$mf" : 'X\(//\)$' \| \
30090 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30096 /^X\(\/\/\)[^/].*/{
30112 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
30113 # Extract the definition of DEP_FILES from the Makefile without
30115 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30116 test -z "$DEPDIR" && continue
30117 # When using ansi2knr, U may be empty or an underscore; expand it
30118 U=`sed -n 's/^U = //p' < "$mf"`
30119 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
30120 # We invoke sed twice because it is the simplest approach to
30121 # changing $(DEPDIR) to its actual value in the expansion.
30122 for file in `sed -n '
30123 /^DEP_FILES = .*\\\\$/ {
30132 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
30133 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30134 # Make sure the directory exists.
30135 test -f "$dirpart/$file" && continue
30136 fdir=`$as_dirname -- "$file" ||
30137 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30138 X"$file" : 'X\(//\)[^/]' \| \
30139 X"$file" : 'X\(//\)$' \| \
30140 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30146 /^X\(\/\/\)[^/].*/{
30159 { as_dir=$dirpart/$fdir
30161 -*) as_dir=./$as_dir;;
30163 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30167 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30168 *) as_qdir=$as_dir;;
30170 as_dirs="'$as_qdir' $as_dirs"
30171 as_dir=`$as_dirname -- "$as_dir" ||
30172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30173 X"$as_dir" : 'X\(//\)[^/]' \| \
30174 X"$as_dir" : 'X\(//\)$' \| \
30175 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30181 /^X\(\/\/\)[^/].*/{
30194 test -d "$as_dir" && break
30196 test -z "$as_dirs" || eval "mkdir $as_dirs"
30197 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30198 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30199 { (exit 1); exit 1; }; }; }
30200 # echo "creating $dirpart/$file"
30201 echo '# dummy' > "$dirpart/$file"
30210 { (exit 0); exit 0; }
30212 chmod +x $CONFIG_STATUS
30213 ac_clean_files=$ac_clean_files_save
30216 # configure is writing to config.log, and then calls config.status.
30217 # config.status does its own redirection, appending to config.log.
30218 # Unfortunately, on DOS this fails, as config.log is still kept open
30219 # by configure, so config.status won't be able to write to it; its
30220 # output is simply discarded. So we exec the FD to /dev/null,
30221 # effectively closing config.log, so it can be properly (re)opened and
30222 # appended to by config.status. When coming back to configure, we
30223 # need to make the FD available again.
30224 if test "$no_create" != yes; then
30226 ac_config_status_args=
30227 test "$silent" = yes &&
30228 ac_config_status_args="$ac_config_status_args --quiet"
30230 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30232 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30233 # would make configure fail if this is the last instruction.
30234 $ac_cs_success || { (exit 1); exit 1; }