2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.0.
5 # Report bugs to <nfs@lists.sf.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.0'
732 PACKAGE_STRING='linux nfs-utils 1.1.0'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
832 INSTALL_STRIP_PROGRAM
841 MAINTAINER_MODE_FALSE
929 ac_precious_vars='build_alias
951 # Initialize some variables set by options.
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name=s,x,x,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058 eval enable_$ac_feature=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1077 eval enable_$ac_feature=\$ac_optarg ;;
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 htmldir=$ac_optarg ;;
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1122 -libdir | --libdir | --libdi | --libd)
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1213 -psdir | --psdir | --psdi | --psd | --ps)
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1241 -site=* | --site=* | --sit=*)
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1268 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid package name: $ac_package" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274 eval with_$ac_package=\$ac_optarg ;;
1276 -without-* | --without-*)
1277 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283 eval with_$ac_package=no ;;
1286 # Obsolete; use --with-x.
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305 { (exit 1); exit 1; }; }
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313 { (exit 1); exit 1; }; }
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 { echo "$as_me: error: missing argument to $ac_option" >&2
1331 { (exit 1); exit 1; }; }
1334 # Be sure to have absolute directory names.
1335 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
1340 eval ac_val=\$$ac_var
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346 { (exit 1); exit 1; }; }
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used." >&2
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370 test "$silent" = yes && exec 6>/dev/null
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 { echo "$as_me: error: Working directory cannot be determined" >&2
1377 { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 { echo "$as_me: error: pwd does not report name of working directory" >&2
1380 { (exit 1); exit 1; }; }
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$0" : 'X\(//\)[^/]' \| \
1390 X"$0" : 'X\(//\)$' \| \
1391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1415 ac_srcdir_defaulted=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420 { (exit 1); exit 1; }; }
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425 { (exit 1); exit 1; }; }
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 for ac_var in $ac_precious_vars; do
1438 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_${ac_var}_value=\$${ac_var}
1440 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1451 \`configure' configures linux nfs-utils 1.1.0 to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive ) echo "Configuration of linux nfs-utils 1.1.0:";;
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --enable-maintainer-mode enable make rules and dependencies not useful
1529 (and sometimes confusing) to the casual installer
1530 --enable-nfsv3 enable support for NFSv3 [default=yes]
1531 --enable-nfsv4 enable support for NFSv4 [default=yes]
1532 --enable-gss enable support for rpcsec_gss [default=yes]
1533 --enable-kprefix install progs as rpc.knfsd etc
1534 --enable-secure-statd Only lockd can use statd (security)
1535 --without-uuid Exclude uuid support and so avoid possibly buggy
1537 --enable-mount Create mount.nfs and don't use the util-linux
1538 mount(8) functionality. [default=no]
1539 --disable-dependency-tracking speeds up one-time build
1540 --enable-dependency-tracking do not reject slow dependency extractors
1541 --disable-largefile omit support for large files
1542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-static[=PKGS] build static libraries [default=yes]
1544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-release=XXX set release to XXX [1]
1552 --with-statedir=/foo use state dir /foo /var/lib/nfs
1553 --with-statduser=rpcuser
1554 statd to run under [rpcuser or nobody]
1555 --with-start-statd=scriptname
1556 When an nfs filesystems is mounted with locking, run
1558 --with-rpcgen=internal use internal rpcgen instead of system one
1559 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1560 (optionally in PATH)
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-pic try to use only PIC/non-PIC objects [default=use
1564 --with-tags[=TAGS] include additional configurations [automatic]
1565 --with-krb5=DIR use Kerberos v5 installation in DIR
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CXX C++ compiler command
1576 CXXFLAGS C++ compiler flags
1578 CXXCPP C++ preprocessor
1579 F77 Fortran 77 compiler command
1580 FFLAGS Fortran 77 compiler flags
1581 PKG_CONFIG path to pkg-config utility
1583 C compiler flags for RPCSECGSS, overriding pkg-config
1585 linker flags for RPCSECGSS, overriding pkg-config
1587 C compiler flags for GSSAPI, overriding pkg-config
1588 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1593 Report bugs to <nfs@lists.sf.net>.
1598 if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601 test -d "$ac_dir" || continue
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1621 .) # We are building in place.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1645 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1654 linux nfs-utils configure 1.1.0
1655 generated by GNU Autoconf 2.61
1657 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1668 It was created by linux nfs-utils $as_me 1.1.0, which was
1669 generated by GNU Autoconf 2.61. Invocation command line was
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 echo "PATH: $as_dir"
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1729 ac_must_keep_next=false
1735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737 | -silent | --silent | --silen | --sile | --sil)
1740 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746 if test $ac_must_keep_next = true; then
1747 ac_must_keep_next=false # Got value, back to normal.
1750 *=* | --config-cache | -C | -disable-* | --disable-* \
1751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753 | -with-* | --with-* | -without-* | --without-* | --x)
1754 case "$ac_configure_args0 " in
1755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758 -* ) ac_must_keep_next=true ;;
1761 ac_configure_args="$ac_configure_args '$ac_arg'"
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log. We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775 # Save into config.log some information that might help in debugging.
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1785 # The following way of writing the cache mishandles newlines in values,
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1792 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1796 _ | IFS | as_nl) ;; #(
1797 *) $as_unset $ac_var ;;
1802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803 *${as_nl}ac_space=\ *)
1805 "s/'\''/'\''\\\\'\'''\''/g;
1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 ## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##
1822 for ac_var in $ac_subst_vars
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 echo "$ac_var='\''$ac_val'\''"
1832 if test -n "$ac_subst_files"; then
1834 ## ------------------- ##
1835 ## File substitutions. ##
1836 ## ------------------- ##
1839 for ac_var in $ac_subst_files
1841 eval ac_val=\$$ac_var
1843 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 echo "$ac_var='\''$ac_val'\''"
1850 if test -s confdefs.h; then
1860 test "$ac_signal" != 0 &&
1861 echo "$as_me: caught signal $ac_signal"
1862 echo "$as_me: exit $exit_status"
1864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 for ac_signal in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1876 # Predefined preprocessor variables.
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906 set x "$CONFIG_SITE"
1907 elif test "x$prefix" != xNONE; then
1908 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1910 set x "$ac_default_prefix/share/config.site" \
1911 "$ac_default_prefix/etc/config.site"
1916 if test -r "$ac_site_file"; then
1917 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918 echo "$as_me: loading site script $ac_site_file" >&6;}
1919 sed 's/^/| /' "$ac_site_file" >&5
1924 if test -r "$cache_file"; then
1925 # Some versions of bash will fail to source /dev/null (special
1926 # files actually), so we avoid doing that.
1927 if test -f "$cache_file"; then
1928 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929 echo "$as_me: loading cache $cache_file" >&6;}
1931 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932 *) . "./$cache_file";;
1936 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937 echo "$as_me: creating cache $cache_file" >&6;}
1941 # Check that the precious variables saved in the cache have kept the same
1943 ac_cache_corrupted=false
1944 for ac_var in $ac_precious_vars; do
1945 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946 eval ac_new_set=\$ac_env_${ac_var}_set
1947 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948 eval ac_new_val=\$ac_env_${ac_var}_value
1949 case $ac_old_set,$ac_new_set in
1951 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1955 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1960 if test "x$ac_old_val" != "x$ac_new_val"; then
1961 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1964 echo "$as_me: former value: $ac_old_val" >&2;}
1965 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1966 echo "$as_me: current value: $ac_new_val" >&2;}
1967 ac_cache_corrupted=:
1970 # Pass precious variables to config.status.
1971 if test "$ac_new_set" = set; then
1973 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 *) ac_arg=$ac_var=$ac_new_val ;;
1976 case " $ac_configure_args " in
1977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1978 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1982 if $ac_cache_corrupted; then
1983 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987 { (exit 1); exit 1; }; }
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2023 if test -f "$ac_dir/install-sh"; then
2025 ac_install_sh="$ac_aux_dir/install-sh -c"
2027 elif test -f "$ac_dir/install.sh"; then
2029 ac_install_sh="$ac_aux_dir/install.sh -c"
2031 elif test -f "$ac_dir/shtool"; then
2033 ac_install_sh="$ac_aux_dir/shtool install -c"
2037 if test -z "$ac_aux_dir"; then
2038 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2039 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2040 { (exit 1); exit 1; }; }
2043 # These three variables are undocumented and unsupported,
2044 # and are intended to be withdrawn in a future Autoconf release.
2045 # They can cause serious problems if a builder's source tree is in a directory
2046 # whose full name contains unusual characters.
2047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2052 # Make sure we can run config.sub.
2053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2054 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2055 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2056 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: checking build system type" >&5
2059 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2060 if test "${ac_cv_build+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 ac_build_alias=$build_alias
2064 test "x$ac_build_alias" = x &&
2065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2066 test "x$ac_build_alias" = x &&
2067 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2068 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2069 { (exit 1); exit 1; }; }
2070 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2077 echo "${ECHO_T}$ac_cv_build" >&6; }
2078 case $ac_cv_build in
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2081 echo "$as_me: error: invalid value of canonical build" >&2;}
2082 { (exit 1); exit 1; }; };;
2085 ac_save_IFS=$IFS; IFS='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking host system type" >&5
2099 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_host+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "x$host_alias" = x; then
2104 ac_cv_host=$ac_cv_build
2106 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 echo "${ECHO_T}$ac_cv_host" >&6; }
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2118 echo "$as_me: error: invalid value of canonical host" >&2;}
2119 { (exit 1); exit 1; }; };;
2122 ac_save_IFS=$IFS; IFS='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2136 am__api_version='1.10'
2138 # Find a good install program. We prefer a C program (faster),
2139 # so one script is as good as another. But avoid the broken or
2140 # incompatible versions:
2141 # SysV /etc/install, /usr/sbin/install
2142 # SunOS /usr/etc/install
2143 # IRIX /sbin/install
2145 # AmigaOS /C/install, which installs bootblocks on floppy discs
2146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149 # OS/2's system install, which has a completely different semantic
2150 # ./install, which can be erroneously created by make from ./install.sh.
2151 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2152 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2153 if test -z "$INSTALL"; then
2154 if test "${ac_cv_path_install+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir=.
2162 # Account for people who put trailing slashes in PATH elements.
2164 ./ | .// | /cC/* | \
2165 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2166 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2169 # OSF1 and SCO ODT 3.0 have their own names for install.
2170 # Don't use installbsd from OSF since it installs stuff as root
2172 for ac_prog in ginstall scoinst install; do
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2175 if test $ac_prog = install &&
2176 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177 # AIX install. It has an incompatible calling convention.
2179 elif test $ac_prog = install &&
2180 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181 # program-specific install script used by HP pwplus--don't use.
2184 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2197 if test "${ac_cv_path_install+set}" = set; then
2198 INSTALL=$ac_cv_path_install
2200 # As a last resort, use the slow shell script. Don't cache a
2201 # value for INSTALL within a source directory, because that will
2202 # break other packages using the cache if that directory is
2203 # removed, or if the value is a relative name.
2204 INSTALL=$ac_install_sh
2207 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2208 echo "${ECHO_T}$INSTALL" >&6; }
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2218 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2219 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2222 echo timestamp > conftest.file
2223 # Do `set' in a subshell so we don't clobber the current shell's
2224 # arguments. Must try -L first in case configure is actually a
2225 # symlink; some systems play weird games with the mod time of symlinks
2226 # (eg FreeBSD returns the mod time of the symlink's containing
2229 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2230 if test "$*" = "X"; then
2232 set X `ls -t $srcdir/configure conftest.file`
2235 if test "$*" != "X $srcdir/configure conftest.file" \
2236 && test "$*" != "X conftest.file $srcdir/configure"; then
2238 # If neither matched, then we have a broken ls. This can happen
2239 # if, for instance, CONFIG_SHELL is bash and it inherits a
2240 # broken ls alias from the environment. This has actually
2241 # happened. Such a system could not be considered "sane".
2242 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2243 alias in your environment" >&5
2244 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2245 alias in your environment" >&2;}
2246 { (exit 1); exit 1; }; }
2249 test "$2" = conftest.file
2255 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256 Check your system clock" >&5
2257 echo "$as_me: error: newly created file is older than distributed files!
2258 Check your system clock" >&2;}
2259 { (exit 1); exit 1; }; }
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2263 test "$program_prefix" != NONE &&
2264 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2265 # Use a double $ so make ignores it.
2266 test "$program_suffix" != NONE &&
2267 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2268 # Double any \ or $. echo might interpret backslashes.
2269 # By default was `s,x,x', remove it if useless.
2270 cat <<\_ACEOF >conftest.sed
2271 s/[\\$]/&&/g;s/;s,x,x,$//
2273 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2276 # expand $ac_aux_dir to an absolute path
2277 am_aux_dir=`cd $ac_aux_dir && pwd`
2279 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2280 # Use eval to expand $SHELL
2281 if eval "$MISSING --run true"; then
2282 am_missing_run="$MISSING --run "
2285 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2286 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2289 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2290 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2291 if test -z "$MKDIR_P"; then
2292 if test "${ac_cv_path_mkdir+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2299 test -z "$as_dir" && as_dir=.
2300 for ac_prog in mkdir gmkdir; do
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2303 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2304 'mkdir (GNU coreutils) '* | \
2305 'mkdir (coreutils) '* | \
2306 'mkdir (fileutils) '4.1*)
2307 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2317 if test "${ac_cv_path_mkdir+set}" = set; then
2318 MKDIR_P="$ac_cv_path_mkdir -p"
2320 # As a last resort, use the slow shell script. Don't cache a
2321 # value for MKDIR_P within a source directory, because that will
2322 # break other packages using the cache if that directory is
2323 # removed, or if the value is a relative name.
2324 test -d ./--version && rmdir ./--version
2325 MKDIR_P="$ac_install_sh -d"
2328 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2329 echo "${ECHO_T}$MKDIR_P" >&6; }
2333 [\\/$]* | ?:[\\/]*) ;;
2334 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2337 for ac_prog in gawk mawk nawk awk
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_AWK+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$AWK"; then
2347 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_AWK="$ac_prog"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 if test -n "$AWK"; then
2368 { echo "$as_me:$LINENO: result: $AWK" >&5
2369 echo "${ECHO_T}$AWK" >&6; }
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2376 test -n "$AWK" && break
2379 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2380 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2381 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2382 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat >conftest.make <<\_ACEOF
2388 @echo '@@@%%%=$(MAKE)=@@@%%%'
2390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2393 eval ac_cv_prog_make_${ac_make}_set=yes;;
2395 eval ac_cv_prog_make_${ac_make}_set=no;;
2399 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2400 { echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6; }
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2406 SET_MAKE="MAKE=${MAKE-make}"
2409 rm -rf .tst 2>/dev/null
2410 mkdir .tst 2>/dev/null
2411 if test -d .tst; then
2416 rmdir .tst 2>/dev/null
2418 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2419 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2420 # is not polluted with repeated "-I."
2421 am__isrc=' -I$(srcdir)'
2422 # test to see if srcdir already configured
2423 if test -f $srcdir/config.status; then
2424 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2425 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2426 { (exit 1); exit 1; }; }
2430 # test whether we have cygpath
2431 if test -z "$CYGPATH_W"; then
2432 if (cygpath --version) >/dev/null 2>/dev/null; then
2433 CYGPATH_W='cygpath -w'
2440 # Define the identity of the package.
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE "$PACKAGE"
2450 cat >>confdefs.h <<_ACEOF
2451 #define VERSION "$VERSION"
2454 # Some tools Automake needs.
2456 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2459 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2462 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2465 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2468 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2470 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2472 # Installed binaries are usually stripped using `strip' when the user
2473 # run `make install-strip'. However `strip' might not be the right
2474 # tool to use in cross-compilation environments, therefore Automake
2475 # will honor the `STRIP' environment variable to overrule this program.
2476 if test "$cross_compiling" != no; then
2477 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$STRIP"; then
2486 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}strip"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 STRIP=$ac_cv_prog_STRIP
2506 if test -n "$STRIP"; then
2507 { echo "$as_me:$LINENO: result: $STRIP" >&5
2508 echo "${ECHO_T}$STRIP" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2516 if test -z "$ac_cv_prog_STRIP"; then
2518 # Extract the first word of "strip", so it can be a program name with args.
2519 set dummy strip; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -n "$ac_ct_STRIP"; then
2526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_ac_ct_STRIP="strip"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2546 if test -n "$ac_ct_STRIP"; then
2547 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2548 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2554 if test "x$ac_ct_STRIP" = x; then
2557 case $cross_compiling:$ac_tool_warned in
2559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet. If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&5
2562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2563 whose name does not start with the host triplet. If you think this
2564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2565 ac_tool_warned=yes ;;
2570 STRIP="$ac_cv_prog_STRIP"
2574 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2576 # We need awk for the "check" target. The system "awk" is bad on
2578 # Always define AMTAR for backward compatibility.
2580 AMTAR=${AMTAR-"${am_missing_run}tar"}
2582 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2590 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2591 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2592 # Check whether --enable-maintainer-mode was given.
2593 if test "${enable_maintainer_mode+set}" = set; then
2594 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2596 USE_MAINTAINER_MODE=no
2599 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2600 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2601 if test $USE_MAINTAINER_MODE = yes; then
2602 MAINTAINER_MODE_TRUE=
2603 MAINTAINER_MODE_FALSE='#'
2605 MAINTAINER_MODE_TRUE='#'
2606 MAINTAINER_MODE_FALSE=
2609 MAINT=$MAINTAINER_MODE_TRUE
2614 # Check whether --with-release was given.
2615 if test "${with_release+set}" = set; then
2616 withval=$with_release; RELEASE=$withval
2623 # Check whether --with-statedir was given.
2624 if test "${with_statedir+set}" = set; then
2625 withval=$with_statedir; statedir=$withval
2627 statedir=/var/lib/nfs
2632 # Check whether --with-statduser was given.
2633 if test "${with_statduser+set}" = set; then
2634 withval=$with_statduser; statduser=$withval
2636 if test "x$cross_compiling" = "xno"; then
2637 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2649 # Check whether --with-start-statd was given.
2650 if test "${with_start_statd+set}" = set; then
2651 withval=$with_start_statd; startstatd=$withval
2653 startstatd=/usr/sbin/start-statd
2659 cat >>confdefs.h <<_ACEOF
2660 #define START_STATD "$startstatd"
2663 # Check whether --enable-nfsv3 was given.
2664 if test "${enable_nfsv3+set}" = set; then
2665 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2670 if test "$enable_nfsv3" = yes; then
2672 cat >>confdefs.h <<\_ACEOF
2673 #define NFS3_SUPPORTED 1
2680 # Check whether --enable-nfsv4 was given.
2681 if test "${enable_nfsv4+set}" = set; then
2682 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2687 if test "$enable_nfsv4" = yes; then
2689 cat >>confdefs.h <<\_ACEOF
2690 #define NFS4_SUPPORTED 1
2700 if test "$enable_nfsv4" = "yes"; then
2702 CONFIG_NFSV4_FALSE='#'
2704 CONFIG_NFSV4_TRUE='#'
2708 # Check whether --enable-gss was given.
2709 if test "${enable_gss+set}" = set; then
2710 enableval=$enable_gss; enable_gss=$enableval
2715 if test "$enable_gss" = yes; then
2717 cat >>confdefs.h <<\_ACEOF
2718 #define GSS_SUPPORTED 1
2731 if test "$enable_gss" = "yes"; then
2733 CONFIG_GSS_FALSE='#'
2739 # Check whether --enable-kprefix was given.
2740 if test "${enable_kprefix+set}" = set; then
2741 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2747 # Check whether --enable-secure-statd was given.
2748 if test "${enable_secure_statd+set}" = set; then
2749 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2754 if test "$secure_statd" = yes; then
2756 cat >>confdefs.h <<\_ACEOF
2757 #define RESTRICTED_STATD 1
2763 # Check whether --with-rpcgen was given.
2764 if test "${with_rpcgen+set}" = set; then
2765 withval=$with_rpcgen; rpcgen_path=$withval
2771 if test "$rpcgen_path" == "yes"; then
2772 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2773 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2774 elif test "$rpcgen_path" != "internal"; then
2775 RPCGEN_PATH=$rpcgen_path
2778 if test "$RPCGEN_PATH" == ""; then
2780 CONFIG_RPCGEN_FALSE='#'
2782 CONFIG_RPCGEN_TRUE='#'
2783 CONFIG_RPCGEN_FALSE=
2786 # Check whether --enable-uuid was given.
2787 if test "${enable_uuid+set}" = set; then
2788 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2790 choose_blkid=default
2793 # Check whether --enable-mount was given.
2794 if test "${enable_mount+set}" = set; then
2795 enableval=$enable_mount; enable_mount=$enableval
2800 if test "$enable_mount" = "yes"; then
2802 CONFIG_MOUNT_FALSE='#'
2804 CONFIG_MOUNT_TRUE='#'
2809 # Check whether user wants TCP wrappers support
2810 DEPDIR="${am__leading_dot}deps"
2812 ac_config_commands="$ac_config_commands depfiles"
2815 am_make=${MAKE-make}
2816 cat > confinc << 'END'
2821 # If we don't find an include directive, just comment out the code.
2822 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2823 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2827 # First try GNU make style include.
2828 echo "include confinc" > confmf
2829 # We grep out `Entering directory' and `Leaving directory'
2830 # messages which can occur if `w' ends up in MAKEFLAGS.
2831 # In particular we don't look at `^make:' because GNU make might
2832 # be invoked under some other name (usually "gmake"), in which
2833 # case it prints its new name instead of `make'.
2834 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2839 # Now try BSD make style include.
2840 if test "$am__include" = "#"; then
2841 echo '.include "confinc"' > confmf
2842 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2843 am__include=.include
2850 { echo "$as_me:$LINENO: result: $_am_result" >&5
2851 echo "${ECHO_T}$_am_result" >&6; }
2852 rm -f confinc confmf
2854 # Check whether --enable-dependency-tracking was given.
2855 if test "${enable_dependency_tracking+set}" = set; then
2856 enableval=$enable_dependency_tracking;
2859 if test "x$enable_dependency_tracking" != xno; then
2860 am_depcomp="$ac_aux_dir/depcomp"
2863 if test "x$enable_dependency_tracking" != xno; then
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 if test -n "$CC"; then
2907 { echo "$as_me:$LINENO: result: $CC" >&5
2908 echo "${ECHO_T}$CC" >&6; }
2910 { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2916 if test -z "$ac_cv_prog_CC"; then
2918 # Extract the first word of "gcc", so it can be a program name with args.
2919 set dummy gcc; ac_word=$2
2920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CC="gcc"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2948 echo "${ECHO_T}$ac_ct_CC" >&6; }
2950 { echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6; }
2954 if test "x$ac_ct_CC" = x; then
2957 case $cross_compiling:$ac_tool_warned in
2959 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2960 whose name does not start with the host triplet. If you think this
2961 configuration is useful to you, please write to autoconf@gnu.org." >&5
2962 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2963 whose name does not start with the host triplet. If you think this
2964 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2965 ac_tool_warned=yes ;;
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}cc; ac_word=$2
2977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="${ac_tool_prefix}cc"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 if test -n "$CC"; then
3004 { echo "$as_me:$LINENO: result: $CC" >&5
3005 echo "${ECHO_T}$CC" >&6; }
3007 { echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6; }
3014 if test -z "$CC"; then
3015 # Extract the first word of "cc", so it can be a program name with args.
3016 set dummy cc; ac_word=$2
3017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034 ac_prog_rejected=yes
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 if test $ac_prog_rejected = yes; then
3046 # We found a bogon in the path, so make sure we never use it.
3047 set dummy $ac_cv_prog_CC
3049 if test $# != 0; then
3050 # We chose a different compiler from the bogus one.
3051 # However, it has the same basename, so the bogon will be chosen
3052 # first if we set CC to just the basename; use the full file name.
3054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 if test -n "$CC"; then
3061 { echo "$as_me:$LINENO: result: $CC" >&5
3062 echo "${ECHO_T}$CC" >&6; }
3064 { echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6; }
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 for ac_prog in cl.exe
3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$CC"; then
3103 { echo "$as_me:$LINENO: result: $CC" >&5
3104 echo "${ECHO_T}$CC" >&6; }
3106 { echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6; }
3111 test -n "$CC" && break
3114 if test -z "$CC"; then
3116 for ac_prog in cl.exe
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_ac_ct_CC="$ac_prog"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3148 echo "${ECHO_T}$ac_ct_CC" >&6; }
3150 { echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6; }
3155 test -n "$ac_ct_CC" && break
3158 if test "x$ac_ct_CC" = x; then
3161 case $cross_compiling:$ac_tool_warned in
3163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3164 whose name does not start with the host triplet. If you think this
3165 configuration is useful to you, please write to autoconf@gnu.org." >&5
3166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3167 whose name does not start with the host triplet. If you think this
3168 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3169 ac_tool_warned=yes ;;
3178 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3179 See \`config.log' for more details." >&5
3180 echo "$as_me: error: no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." >&2;}
3182 { (exit 1); exit 1; }; }
3184 # Provide some information about the compiler.
3185 echo "$as_me:$LINENO: checking for C compiler version" >&5
3186 ac_compiler=`set X $ac_compile; echo $2`
3187 { (ac_try="$ac_compiler --version >&5"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compiler --version >&5") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197 { (ac_try="$ac_compiler -v >&5"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_compiler -v >&5") 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }
3207 { (ac_try="$ac_compiler -V >&5"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compiler -V >&5") 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3233 ac_clean_files_save=$ac_clean_files
3234 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3235 # Try to create an executable without -o first, disregard a.out.
3236 # It will help us diagnose broken compilers, and finding out an intuition
3238 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3239 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3240 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3242 # List of possible output files, starting from the most likely.
3243 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3244 # only as a last resort. b.out is created by i960 compilers.
3245 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3247 # The IRIX 6 linker writes into existing files which may not be
3248 # executable, retaining their permissions. Remove them first so a
3249 # subsequent execution test works.
3251 for ac_file in $ac_files
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3255 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260 if { (ac_try="$ac_link_default"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_link_default") 2>&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; then
3270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3275 for ac_file in $ac_files ''
3277 test -f "$ac_file" || continue
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3282 # We found the default executable, but exeext='' is most
3286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an `-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3306 { echo "$as_me:$LINENO: result: $ac_file" >&5
3307 echo "${ECHO_T}$ac_file" >&6; }
3308 if test -z "$ac_file"; then
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3313 See \`config.log' for more details." >&5
3314 echo "$as_me: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&2;}
3316 { (exit 77); exit 77; }; }
3319 ac_exeext=$ac_cv_exeext
3321 # Check that the compiler produces executables we can run. If not, either
3322 # the compiler is broken, or we cross compile.
3323 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3324 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3325 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3326 # If not cross compiling, check that we can run a simple program.
3327 if test "$cross_compiling" != yes; then
3328 if { ac_try='./$ac_file'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3340 if test "$cross_compiling" = maybe; then
3343 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3344 If you meant to cross compile, use \`--host'.
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: cannot run C compiled programs.
3347 If you meant to cross compile, use \`--host'.
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }
3353 { echo "$as_me:$LINENO: result: yes" >&5
3354 echo "${ECHO_T}yes" >&6; }
3356 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3357 ac_clean_files=$ac_clean_files_save
3358 # Check that the compiler produces executables we can run. If not, either
3359 # the compiler is broken, or we cross compile.
3360 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3361 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3362 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3363 echo "${ECHO_T}$cross_compiling" >&6; }
3365 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3366 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3367 if { (ac_try="$ac_link"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_link") 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; then
3377 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3378 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3379 # work properly (i.e., refer to `conftest.exe'), while it won't with
3381 for ac_file in conftest.exe conftest conftest.*; do
3382 test -f "$ac_file" || continue
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3385 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3391 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3392 See \`config.log' for more details." >&5
3393 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3394 See \`config.log' for more details." >&2;}
3395 { (exit 1); exit 1; }; }
3398 rm -f conftest$ac_cv_exeext
3399 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3400 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3402 rm -f conftest.$ac_ext
3403 EXEEXT=$ac_cv_exeext
3405 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3406 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3407 if test "${ac_cv_objext+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3425 rm -f conftest.o conftest.obj
3426 if { (ac_try="$ac_compile"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_compile") 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; then
3436 for ac_file in conftest.o conftest.obj conftest.*; do
3437 test -f "$ac_file" || continue;
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details." >&2;}
3452 { (exit 1); exit 1; }; }
3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3458 echo "${ECHO_T}$ac_cv_objext" >&6; }
3459 OBJEXT=$ac_cv_objext
3461 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3462 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3463 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_compile") 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && {
3498 test -z "$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest.$ac_objext; then
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3514 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3515 GCC=`test $ac_compiler_gnu = yes && echo yes`
3516 ac_test_CFLAGS=${CFLAGS+set}
3517 ac_save_CFLAGS=$CFLAGS
3518 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3519 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3520 if test "${ac_cv_prog_cc_g+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest.$ac_objext; then
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3565 cat >conftest.$ac_ext <<_ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_compile") 2>conftest.er1
3589 grep -v '^ *+' conftest.er1 >conftest.err
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } && {
3594 test -z "$ac_c_werror_flag" ||
3595 test ! -s conftest.err
3596 } && test -s conftest.$ac_objext; then
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 ac_c_werror_flag=$ac_save_c_werror_flag
3604 cat >conftest.$ac_ext <<_ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3619 rm -f conftest.$ac_objext
3620 if { (ac_try="$ac_compile"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_compile") 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } && {
3633 test -z "$ac_c_werror_flag" ||
3634 test ! -s conftest.err
3635 } && test -s conftest.$ac_objext; then
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3653 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3654 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3655 if test "$ac_test_CFLAGS" = set; then
3656 CFLAGS=$ac_save_CFLAGS
3657 elif test $ac_cv_prog_cc_g = yes; then
3658 if test "$GCC" = yes; then
3664 if test "$GCC" = yes; then
3670 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3671 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3672 if test "${ac_cv_prog_cc_c89+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 ac_cv_prog_cc_c89=no
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3685 #include <sys/types.h>
3686 #include <sys/stat.h>
3687 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3688 struct buf { int x; };
3689 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3690 static char *e (p, i)
3696 static char *f (char * (*g) (char **, int), char **p, ...)
3701 s = g (p, va_arg (v,int));
3706 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3707 function prototypes and stuff, but not '\xHH' hex character constants.
3708 These don't provoke an error unfortunately, instead are silently treated
3709 as 'x'. The following induces an error, until -std is added to get
3710 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3711 array size at least. It's necessary to write '\x00'==0 to get something
3712 that's true only with -std. */
3713 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3715 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3716 inside strings and character constants. */
3718 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3720 int test (int i, double x);
3721 struct s1 {int (*f) (int a);};
3722 struct s2 {int (*f) (double a);};
3723 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3729 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3734 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3735 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737 CC="$ac_save_CC $ac_arg"
3738 rm -f conftest.$ac_objext
3739 if { (ac_try="$ac_compile"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_compile") 2>conftest.er1
3747 grep -v '^ *+' conftest.er1 >conftest.err
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } && {
3752 test -z "$ac_c_werror_flag" ||
3753 test ! -s conftest.err
3754 } && test -s conftest.$ac_objext; then
3755 ac_cv_prog_cc_c89=$ac_arg
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3763 rm -f core conftest.err conftest.$ac_objext
3764 test "x$ac_cv_prog_cc_c89" != "xno" && break
3766 rm -f conftest.$ac_ext
3771 case "x$ac_cv_prog_cc_c89" in
3773 { echo "$as_me:$LINENO: result: none needed" >&5
3774 echo "${ECHO_T}none needed" >&6; } ;;
3776 { echo "$as_me:$LINENO: result: unsupported" >&5
3777 echo "${ECHO_T}unsupported" >&6; } ;;
3779 CC="$CC $ac_cv_prog_cc_c89"
3780 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3781 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 depcc="$CC" am_compiler_list=
3793 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3794 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3795 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3799 # We make a subdir and do the tests there. Otherwise we can end up
3800 # making bogus files that we don't know about and never remove. For
3801 # instance it was reported that on HP-UX the gcc test will end up
3802 # making a dummy file named `D' -- because `-MD' means `put the output
3805 # Copy depcomp to subdir because otherwise we won't find it if we're
3806 # using a relative directory.
3807 cp "$am_depcomp" conftest.dir
3809 # We will build objects and dependencies in a subdirectory because
3810 # it helps to detect inapplicable dependency modes. For instance
3811 # both Tru64's cc and ICC support -MD to output dependencies as a
3812 # side effect of compilation, but ICC will put the dependencies in
3813 # the current directory while Tru64 will put them in the object
3817 am_cv_CC_dependencies_compiler_type=none
3818 if test "$am_compiler_list" = ""; then
3819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3821 for depmode in $am_compiler_list; do
3822 # Setup a source with many dependencies, because some compilers
3823 # like to wrap large dependency lists on column 80 (with \), and
3824 # we should not choose a depcomp mode which is confused by this.
3826 # We need to recreate these files for each test, as the compiler may
3827 # overwrite some of them when testing with obscure command lines.
3828 # This happens at least with the AIX C compiler.
3830 for i in 1 2 3 4 5 6; do
3831 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833 # Solaris 8's {/usr,}/bin/sh.
3834 touch sub/conftst$i.h
3836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3840 # after this tag, mechanisms are not by side-effect, so they'll
3841 # only be used when explicitly requested
3842 if test "x$enable_dependency_tracking" = xyes; then
3850 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3851 # mode. It turns out that the SunPro C++ compiler does not properly
3852 # handle `-M -o', and we need to detect this.
3853 if depmode=$depmode \
3854 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3855 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3856 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3857 >/dev/null 2>conftest.err &&
3858 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3859 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3860 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3861 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3862 # icc doesn't choke on unknown options, it will just issue warnings
3863 # or remarks (even with -Werror). So we grep stderr for any message
3864 # that says an option was ignored or not supported.
3865 # When given -MP, icc 7.0 and 7.1 complain thusly:
3866 # icc: Command line warning: ignoring option '-M'; no argument required
3867 # The diagnosis changed in icc 8.0:
3868 # icc: Command line remark: option '-MP' not supported
3869 if (grep 'ignoring option' conftest.err ||
3870 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3871 am_cv_CC_dependencies_compiler_type=$depmode
3880 am_cv_CC_dependencies_compiler_type=none
3884 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3885 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3886 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889 test "x$enable_dependency_tracking" != xno \
3890 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3892 am__fastdepCC_FALSE='#'
3894 am__fastdepCC_TRUE='#'
3895 am__fastdepCC_FALSE=
3903 # Check whether --with-tcp-wrappers was given.
3904 if test "${with_tcp_wrappers+set}" = set; then
3905 withval=$with_tcp_wrappers; with_tcpw=$withval
3910 if test "x$with_tcpw" != "xno" ; then
3912 saved_LDFLAGS="$LDFLAGS"
3913 saved_CPPFLAGS="$CPPFLAGS"
3914 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3915 if test -d "${with_tcpw}/lib"; then
3916 if test -n "${need_dash_r}"; then
3917 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3919 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3922 if test -n "${need_dash_r}"; then
3923 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3925 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3928 if test -d "${with_tcpw}/include"; then
3929 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3931 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3935 LIBS="$LIBWRAP $LIBS"
3936 { echo "$as_me:$LINENO: checking for libwrap" >&5
3937 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3946 int deny_severity = 0, allow_severity = 0;
3956 rm -f conftest.$ac_objext conftest$ac_exeext
3957 if { (ac_try="$ac_link"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_link") 2>conftest.er1
3965 grep -v '^ *+' conftest.er1 >conftest.err
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && {
3970 test -z "$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 } && test -s conftest$ac_exeext &&
3973 $as_test_x conftest$ac_exeext; then
3975 { echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6; }
3979 cat >>confdefs.h <<\_ACEOF
3984 cat >>confdefs.h <<\_ACEOF
3985 #define HAVE_LIBWRAP 1
3989 cat >>confdefs.h <<\_ACEOF
3990 #define HAVE_TCP_WRAPPER 1
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
4000 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4001 echo "$as_me: error: *** libwrap missing" >&2;}
4002 { (exit 1); exit 1; }; }
4007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4008 conftest$ac_exeext conftest.$ac_ext
4016 # Arrange for large-file support
4017 # Check whether --enable-largefile was given.
4018 if test "${enable_largefile+set}" = set; then
4019 enableval=$enable_largefile;
4022 if test "$enable_largefile" != no; then
4024 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4025 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4026 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 ac_cv_sys_largefile_CC=no
4030 if test "$GCC" != yes; then
4033 # IRIX 6.2 and later do not support large files by default,
4034 # so use the C compiler's -n32 option if that helps.
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 #include <sys/types.h>
4042 /* Check that off_t can represent 2**63 - 1 correctly.
4043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4044 since some C++ compilers masquerading as C compilers
4045 incorrectly reject 9223372036854775807. */
4046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4048 && LARGE_OFF_T % 2147483647 == 1)
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && {
4072 test -z "$ac_c_werror_flag" ||
4073 test ! -s conftest.err
4074 } && test -s conftest.$ac_objext; then
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4083 rm -f core conftest.err conftest.$ac_objext
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_c_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest.$ac_objext; then
4102 ac_cv_sys_largefile_CC=' -n32'; break
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4110 rm -f core conftest.err conftest.$ac_objext
4114 rm -f conftest.$ac_ext
4117 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4118 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4119 if test "$ac_cv_sys_largefile_CC" != no; then
4120 CC=$CC$ac_cv_sys_largefile_CC
4123 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4124 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4125 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <sys/types.h>
4136 /* Check that off_t can represent 2**63 - 1 correctly.
4137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4138 since some C++ compilers masquerading as C compilers
4139 incorrectly reject 9223372036854775807. */
4140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4142 && LARGE_OFF_T % 2147483647 == 1)
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest.$ac_objext; then
4169 ac_cv_sys_file_offset_bits=no; break
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 #define _FILE_OFFSET_BITS 64
4185 #include <sys/types.h>
4186 /* Check that off_t can represent 2**63 - 1 correctly.
4187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4188 since some C++ compilers masquerading as C compilers
4189 incorrectly reject 9223372036854775807. */
4190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4192 && LARGE_OFF_T % 2147483647 == 1)
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 } && test -s conftest.$ac_objext; then
4219 ac_cv_sys_file_offset_bits=64; break
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ac_cv_sys_file_offset_bits=unknown
4232 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4233 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4234 case $ac_cv_sys_file_offset_bits in #(
4237 cat >>confdefs.h <<_ACEOF
4238 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4243 if test $ac_cv_sys_file_offset_bits = unknown; then
4244 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4245 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4246 if test "${ac_cv_sys_large_files+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 /* Check that off_t can represent 2**63 - 1 correctly.
4258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4259 since some C++ compilers masquerading as C compilers
4260 incorrectly reject 9223372036854775807. */
4261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4263 && LARGE_OFF_T % 2147483647 == 1)
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 ac_cv_sys_large_files=no; break
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 #define _LARGE_FILES 1
4306 #include <sys/types.h>
4307 /* Check that off_t can represent 2**63 - 1 correctly.
4308 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4309 since some C++ compilers masquerading as C compilers
4310 incorrectly reject 9223372036854775807. */
4311 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4312 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4313 && LARGE_OFF_T % 2147483647 == 1)
4323 rm -f conftest.$ac_objext
4324 if { (ac_try="$ac_compile"
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_compile") 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && {
4337 test -z "$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4339 } && test -s conftest.$ac_objext; then
4340 ac_cv_sys_large_files=1; break
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 ac_cv_sys_large_files=unknown
4353 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4354 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4355 case $ac_cv_sys_large_files in #(
4358 cat >>confdefs.h <<_ACEOF
4359 #define _LARGE_FILES $ac_cv_sys_large_files
4369 ac_config_headers="$ac_config_headers support/include/config.h"
4372 # Checks for programs.
4374 ac_cpp='$CXXCPP $CPPFLAGS'
4375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4378 if test -z "$CXX"; then
4379 if test -n "$CCC"; then
4382 if test -n "$ac_tool_prefix"; then
4383 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_CXX+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$CXX"; then
4393 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 if test -n "$CXX"; then
4414 { echo "$as_me:$LINENO: result: $CXX" >&5
4415 echo "${ECHO_T}$CXX" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 test -n "$CXX" && break
4425 if test -z "$CXX"; then
4427 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4429 # Extract the first word of "$ac_prog", so it can be a program name with args.
4430 set dummy $ac_prog; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test -n "$ac_ct_CXX"; then
4437 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_ac_ct_CXX="$ac_prog"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4457 if test -n "$ac_ct_CXX"; then
4458 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4459 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4461 { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4466 test -n "$ac_ct_CXX" && break
4469 if test "x$ac_ct_CXX" = x; then
4472 case $cross_compiling:$ac_tool_warned in
4474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4475 whose name does not start with the host triplet. If you think this
4476 configuration is useful to you, please write to autoconf@gnu.org." >&5
4477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4478 whose name does not start with the host triplet. If you think this
4479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4480 ac_tool_warned=yes ;;
4488 # Provide some information about the compiler.
4489 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4490 ac_compiler=`set X $ac_compile; echo $2`
4491 { (ac_try="$ac_compiler --version >&5"
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_compiler --version >&5") 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }
4501 { (ac_try="$ac_compiler -v >&5"
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_compiler -v >&5") 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }
4511 { (ac_try="$ac_compiler -V >&5"
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_compiler -V >&5") 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }
4522 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4523 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_compile") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && {
4559 test -z "$ac_cxx_werror_flag" ||
4560 test ! -s conftest.err
4561 } && test -s conftest.$ac_objext; then
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4574 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4575 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4576 GXX=`test $ac_compiler_gnu = yes && echo yes`
4577 ac_test_CXXFLAGS=${CXXFLAGS+set}
4578 ac_save_CXXFLAGS=$CXXFLAGS
4579 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4580 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_cxx_g+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4585 ac_cxx_werror_flag=yes
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4603 rm -f conftest.$ac_objext
4604 if { (ac_try="$ac_compile"
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_compile") 2>conftest.er1
4612 grep -v '^ *+' conftest.er1 >conftest.err
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && {
4617 test -z "$ac_cxx_werror_flag" ||
4618 test ! -s conftest.err
4619 } && test -s conftest.$ac_objext; then
4620 ac_cv_prog_cxx_g=yes
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4641 rm -f conftest.$ac_objext
4642 if { (ac_try="$ac_compile"
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_compile") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1 >conftest.err
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_cxx_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest.$ac_objext; then
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4665 cat >conftest.$ac_ext <<_ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4680 rm -f conftest.$ac_objext
4681 if { (ac_try="$ac_compile"
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_compile") 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && {
4694 test -z "$ac_cxx_werror_flag" ||
4695 test ! -s conftest.err
4696 } && test -s conftest.$ac_objext; then
4697 ac_cv_prog_cxx_g=yes
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4715 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4716 if test "$ac_test_CXXFLAGS" = set; then
4717 CXXFLAGS=$ac_save_CXXFLAGS
4718 elif test $ac_cv_prog_cxx_g = yes; then
4719 if test "$GXX" = yes; then
4725 if test "$GXX" = yes; then
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 depcc="$CXX" am_compiler_list=
4739 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4740 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4741 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4745 # We make a subdir and do the tests there. Otherwise we can end up
4746 # making bogus files that we don't know about and never remove. For
4747 # instance it was reported that on HP-UX the gcc test will end up
4748 # making a dummy file named `D' -- because `-MD' means `put the output
4751 # Copy depcomp to subdir because otherwise we won't find it if we're
4752 # using a relative directory.
4753 cp "$am_depcomp" conftest.dir
4755 # We will build objects and dependencies in a subdirectory because
4756 # it helps to detect inapplicable dependency modes. For instance
4757 # both Tru64's cc and ICC support -MD to output dependencies as a
4758 # side effect of compilation, but ICC will put the dependencies in
4759 # the current directory while Tru64 will put them in the object
4763 am_cv_CXX_dependencies_compiler_type=none
4764 if test "$am_compiler_list" = ""; then
4765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4767 for depmode in $am_compiler_list; do
4768 # Setup a source with many dependencies, because some compilers
4769 # like to wrap large dependency lists on column 80 (with \), and
4770 # we should not choose a depcomp mode which is confused by this.
4772 # We need to recreate these files for each test, as the compiler may
4773 # overwrite some of them when testing with obscure command lines.
4774 # This happens at least with the AIX C compiler.
4776 for i in 1 2 3 4 5 6; do
4777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4778 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4779 # Solaris 8's {/usr,}/bin/sh.
4780 touch sub/conftst$i.h
4782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4786 # after this tag, mechanisms are not by side-effect, so they'll
4787 # only be used when explicitly requested
4788 if test "x$enable_dependency_tracking" = xyes; then
4796 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4797 # mode. It turns out that the SunPro C++ compiler does not properly
4798 # handle `-M -o', and we need to detect this.
4799 if depmode=$depmode \
4800 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4801 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4802 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4803 >/dev/null 2>conftest.err &&
4804 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4805 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4806 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4807 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4808 # icc doesn't choke on unknown options, it will just issue warnings
4809 # or remarks (even with -Werror). So we grep stderr for any message
4810 # that says an option was ignored or not supported.
4811 # When given -MP, icc 7.0 and 7.1 complain thusly:
4812 # icc: Command line warning: ignoring option '-M'; no argument required
4813 # The diagnosis changed in icc 8.0:
4814 # icc: Command line remark: option '-MP' not supported
4815 if (grep 'ignoring option' conftest.err ||
4816 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4817 am_cv_CXX_dependencies_compiler_type=$depmode
4826 am_cv_CXX_dependencies_compiler_type=none
4830 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4831 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4832 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4835 test "x$enable_dependency_tracking" != xno \
4836 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4837 am__fastdepCXX_TRUE=
4838 am__fastdepCXX_FALSE='#'
4840 am__fastdepCXX_TRUE='#'
4841 am__fastdepCXX_FALSE=
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 if test -n "$ac_tool_prefix"; then
4851 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_CC+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC="$CC" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 if test -n "$CC"; then
4880 { echo "$as_me:$LINENO: result: $CC" >&5
4881 echo "${ECHO_T}$CC" >&6; }
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4889 if test -z "$ac_cv_prog_CC"; then
4891 # Extract the first word of "gcc", so it can be a program name with args.
4892 set dummy gcc; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 if test -n "$ac_ct_CC"; then
4899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_ac_ct_CC="gcc"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4919 if test -n "$ac_ct_CC"; then
4920 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4921 echo "${ECHO_T}$ac_ct_CC" >&6; }
4923 { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4927 if test "x$ac_ct_CC" = x; then
4930 case $cross_compiling:$ac_tool_warned in
4932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4933 whose name does not start with the host triplet. If you think this
4934 configuration is useful to you, please write to autoconf@gnu.org." >&5
4935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4936 whose name does not start with the host triplet. If you think this
4937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4938 ac_tool_warned=yes ;;
4946 if test -z "$CC"; then
4947 if test -n "$ac_tool_prefix"; then
4948 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4949 set dummy ${ac_tool_prefix}cc; ac_word=$2
4950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4952 if test "${ac_cv_prog_CC+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 if test -n "$CC"; then
4956 ac_cv_prog_CC="$CC" # Let the user override the test.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_prog_CC="${ac_tool_prefix}cc"
4966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 if test -n "$CC"; then
4977 { echo "$as_me:$LINENO: result: $CC" >&5
4978 echo "${ECHO_T}$CC" >&6; }
4980 { echo "$as_me:$LINENO: result: no" >&5
4981 echo "${ECHO_T}no" >&6; }
4987 if test -z "$CC"; then
4988 # Extract the first word of "cc", so it can be a program name with args.
4989 set dummy cc; ac_word=$2
4990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992 if test "${ac_cv_prog_CC+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 if test -n "$CC"; then
4996 ac_cv_prog_CC="$CC" # Let the user override the test.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5007 ac_prog_rejected=yes
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 if test $ac_prog_rejected = yes; then
5019 # We found a bogon in the path, so make sure we never use it.
5020 set dummy $ac_cv_prog_CC
5022 if test $# != 0; then
5023 # We chose a different compiler from the bogus one.
5024 # However, it has the same basename, so the bogon will be chosen
5025 # first if we set CC to just the basename; use the full file name.
5027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5033 if test -n "$CC"; then
5034 { echo "$as_me:$LINENO: result: $CC" >&5
5035 echo "${ECHO_T}$CC" >&6; }
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5043 if test -z "$CC"; then
5044 if test -n "$ac_tool_prefix"; then
5045 for ac_prog in cl.exe
5047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_CC+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 if test -n "$CC"; then
5055 ac_cv_prog_CC="$CC" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 if test -n "$CC"; then
5076 { echo "$as_me:$LINENO: result: $CC" >&5
5077 echo "${ECHO_T}$CC" >&6; }
5079 { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5084 test -n "$CC" && break
5087 if test -z "$CC"; then
5089 for ac_prog in cl.exe
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 if test -n "$ac_ct_CC"; then
5099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_ac_ct_CC="$ac_prog"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5119 if test -n "$ac_ct_CC"; then
5120 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5121 echo "${ECHO_T}$ac_ct_CC" >&6; }
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5128 test -n "$ac_ct_CC" && break
5131 if test "x$ac_ct_CC" = x; then
5134 case $cross_compiling:$ac_tool_warned in
5136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5137 whose name does not start with the host triplet. If you think this
5138 configuration is useful to you, please write to autoconf@gnu.org." >&5
5139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5140 whose name does not start with the host triplet. If you think this
5141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5142 ac_tool_warned=yes ;;
5151 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5152 See \`config.log' for more details." >&5
5153 echo "$as_me: error: no acceptable C compiler found in \$PATH
5154 See \`config.log' for more details." >&2;}
5155 { (exit 1); exit 1; }; }
5157 # Provide some information about the compiler.
5158 echo "$as_me:$LINENO: checking for C compiler version" >&5
5159 ac_compiler=`set X $ac_compile; echo $2`
5160 { (ac_try="$ac_compiler --version >&5"
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_compiler --version >&5") 2>&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }
5170 { (ac_try="$ac_compiler -v >&5"
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_compiler -v >&5") 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }
5180 { (ac_try="$ac_compiler -V >&5"
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_compiler -V >&5") 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }
5191 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5192 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5214 rm -f conftest.$ac_objext
5215 if { (ac_try="$ac_compile"
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_compile") 2>conftest.er1
5223 grep -v '^ *+' conftest.er1 >conftest.err
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } && {
5228 test -z "$ac_c_werror_flag" ||
5229 test ! -s conftest.err
5230 } && test -s conftest.$ac_objext; then
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5243 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5244 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5245 GCC=`test $ac_compiler_gnu = yes && echo yes`
5246 ac_test_CFLAGS=${CFLAGS+set}
5247 ac_save_CFLAGS=$CFLAGS
5248 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5249 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5250 if test "${ac_cv_prog_cc_g+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 ac_save_c_werror_flag=$ac_c_werror_flag
5254 ac_c_werror_flag=yes
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5272 rm -f conftest.$ac_objext
5273 if { (ac_try="$ac_compile"
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compile") 2>conftest.er1
5281 grep -v '^ *+' conftest.er1 >conftest.err
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && {
5286 test -z "$ac_c_werror_flag" ||
5287 test ! -s conftest.err
5288 } && test -s conftest.$ac_objext; then
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_compile") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest.$ac_objext; then
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 ac_c_werror_flag=$ac_save_c_werror_flag
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5349 rm -f conftest.$ac_objext
5350 if { (ac_try="$ac_compile"
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_compile") 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } && {
5363 test -z "$ac_c_werror_flag" ||
5364 test ! -s conftest.err
5365 } && test -s conftest.$ac_objext; then
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 ac_c_werror_flag=$ac_save_c_werror_flag
5383 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5384 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5385 if test "$ac_test_CFLAGS" = set; then
5386 CFLAGS=$ac_save_CFLAGS
5387 elif test $ac_cv_prog_cc_g = yes; then
5388 if test "$GCC" = yes; then
5394 if test "$GCC" = yes; then
5400 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5401 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_cc_c89+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 ac_cv_prog_cc_c89=no
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5415 #include <sys/types.h>
5416 #include <sys/stat.h>
5417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5418 struct buf { int x; };
5419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5420 static char *e (p, i)
5426 static char *f (char * (*g) (char **, int), char **p, ...)
5431 s = g (p, va_arg (v,int));
5436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5437 function prototypes and stuff, but not '\xHH' hex character constants.
5438 These don't provoke an error unfortunately, instead are silently treated
5439 as 'x'. The following induces an error, until -std is added to get
5440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5441 array size at least. It's necessary to write '\x00'==0 to get something
5442 that's true only with -std. */
5443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5446 inside strings and character constants. */
5448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5450 int test (int i, double x);
5451 struct s1 {int (*f) (int a);};
5452 struct s2 {int (*f) (double a);};
5453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5467 CC="$ac_save_CC $ac_arg"
5468 rm -f conftest.$ac_objext
5469 if { (ac_try="$ac_compile"
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_compile") 2>conftest.er1
5477 grep -v '^ *+' conftest.er1 >conftest.err
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } && {
5482 test -z "$ac_c_werror_flag" ||
5483 test ! -s conftest.err
5484 } && test -s conftest.$ac_objext; then
5485 ac_cv_prog_cc_c89=$ac_arg
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5493 rm -f core conftest.err conftest.$ac_objext
5494 test "x$ac_cv_prog_cc_c89" != "xno" && break
5496 rm -f conftest.$ac_ext
5501 case "x$ac_cv_prog_cc_c89" in
5503 { echo "$as_me:$LINENO: result: none needed" >&5
5504 echo "${ECHO_T}none needed" >&6; } ;;
5506 { echo "$as_me:$LINENO: result: unsupported" >&5
5507 echo "${ECHO_T}unsupported" >&6; } ;;
5509 CC="$CC $ac_cv_prog_cc_c89"
5510 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5511 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5516 ac_cpp='$CPP $CPPFLAGS'
5517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521 depcc="$CC" am_compiler_list=
5523 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5524 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5525 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5529 # We make a subdir and do the tests there. Otherwise we can end up
5530 # making bogus files that we don't know about and never remove. For
5531 # instance it was reported that on HP-UX the gcc test will end up
5532 # making a dummy file named `D' -- because `-MD' means `put the output
5535 # Copy depcomp to subdir because otherwise we won't find it if we're
5536 # using a relative directory.
5537 cp "$am_depcomp" conftest.dir
5539 # We will build objects and dependencies in a subdirectory because
5540 # it helps to detect inapplicable dependency modes. For instance
5541 # both Tru64's cc and ICC support -MD to output dependencies as a
5542 # side effect of compilation, but ICC will put the dependencies in
5543 # the current directory while Tru64 will put them in the object
5547 am_cv_CC_dependencies_compiler_type=none
5548 if test "$am_compiler_list" = ""; then
5549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5551 for depmode in $am_compiler_list; do
5552 # Setup a source with many dependencies, because some compilers
5553 # like to wrap large dependency lists on column 80 (with \), and
5554 # we should not choose a depcomp mode which is confused by this.
5556 # We need to recreate these files for each test, as the compiler may
5557 # overwrite some of them when testing with obscure command lines.
5558 # This happens at least with the AIX C compiler.
5560 for i in 1 2 3 4 5 6; do
5561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5562 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5563 # Solaris 8's {/usr,}/bin/sh.
5564 touch sub/conftst$i.h
5566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5570 # after this tag, mechanisms are not by side-effect, so they'll
5571 # only be used when explicitly requested
5572 if test "x$enable_dependency_tracking" = xyes; then
5580 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5581 # mode. It turns out that the SunPro C++ compiler does not properly
5582 # handle `-M -o', and we need to detect this.
5583 if depmode=$depmode \
5584 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5586 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5587 >/dev/null 2>conftest.err &&
5588 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5590 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5592 # icc doesn't choke on unknown options, it will just issue warnings
5593 # or remarks (even with -Werror). So we grep stderr for any message
5594 # that says an option was ignored or not supported.
5595 # When given -MP, icc 7.0 and 7.1 complain thusly:
5596 # icc: Command line warning: ignoring option '-M'; no argument required
5597 # The diagnosis changed in icc 8.0:
5598 # icc: Command line remark: option '-MP' not supported
5599 if (grep 'ignoring option' conftest.err ||
5600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5601 am_cv_CC_dependencies_compiler_type=$depmode
5610 am_cv_CC_dependencies_compiler_type=none
5614 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5615 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5616 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5619 test "x$enable_dependency_tracking" != xno \
5620 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5622 am__fastdepCC_FALSE='#'
5624 am__fastdepCC_TRUE='#'
5625 am__fastdepCC_FALSE=
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5635 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5636 # On Suns, sometimes $CPP names a directory.
5637 if test -n "$CPP" && test -d "$CPP"; then
5640 if test -z "$CPP"; then
5641 if test "${ac_cv_prog_CPP+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 # Double quotes because CPP needs to be expanded
5645 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5648 for ac_c_preproc_warn_flag in '' yes
5650 # Use a header file that comes with gcc, so configuring glibc
5651 # with a fresh cross-compiler works.
5652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653 # <limits.h> exists even on freestanding compilers.
5654 # On the NeXT, cc -E runs the code through the compiler's parser,
5655 # not just through cpp. "Syntax error" is here to catch this case.
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5663 # include <limits.h>
5665 # include <assert.h>
5669 if { (ac_try="$ac_cpp conftest.$ac_ext"
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5677 grep -v '^ *+' conftest.er1 >conftest.err
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } >/dev/null && {
5682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5683 test ! -s conftest.err
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 # Broken: fails on valid input.
5694 rm -f conftest.err conftest.$ac_ext
5696 # OK, works on sane cases. Now check whether nonexistent headers
5697 # can be detected and how.
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <ac_nonexistent.h>
5706 if { (ac_try="$ac_cpp conftest.$ac_ext"
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714 grep -v '^ *+' conftest.er1 >conftest.err
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } >/dev/null && {
5719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5722 # Broken: success on invalid input.
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 # Passes both tests.
5733 rm -f conftest.err conftest.$ac_ext
5736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737 rm -f conftest.err conftest.$ac_ext
5738 if $ac_preproc_ok; then
5750 { echo "$as_me:$LINENO: result: $CPP" >&5
5751 echo "${ECHO_T}$CPP" >&6; }
5753 for ac_c_preproc_warn_flag in '' yes
5755 # Use a header file that comes with gcc, so configuring glibc
5756 # with a fresh cross-compiler works.
5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758 # <limits.h> exists even on freestanding compilers.
5759 # On the NeXT, cc -E runs the code through the compiler's parser,
5760 # not just through cpp. "Syntax error" is here to catch this case.
5761 cat >conftest.$ac_ext <<_ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5768 # include <limits.h>
5770 # include <assert.h>
5774 if { (ac_try="$ac_cpp conftest.$ac_ext"
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782 grep -v '^ *+' conftest.er1 >conftest.err
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } >/dev/null && {
5787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 # Broken: fails on valid input.
5799 rm -f conftest.err conftest.$ac_ext
5801 # OK, works on sane cases. Now check whether nonexistent headers
5802 # can be detected and how.
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <ac_nonexistent.h>
5811 if { (ac_try="$ac_cpp conftest.$ac_ext"
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } >/dev/null && {
5824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5825 test ! -s conftest.err
5827 # Broken: success on invalid input.
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 # Passes both tests.
5838 rm -f conftest.err conftest.$ac_ext
5841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842 rm -f conftest.err conftest.$ac_ext
5843 if $ac_preproc_ok; then
5846 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5847 See \`config.log' for more details." >&5
5848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." >&2;}
5850 { (exit 1); exit 1; }; }
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 # Find a good install program. We prefer a C program (faster),
5860 # so one script is as good as another. But avoid the broken or
5861 # incompatible versions:
5862 # SysV /etc/install, /usr/sbin/install
5863 # SunOS /usr/etc/install
5864 # IRIX /sbin/install
5866 # AmigaOS /C/install, which installs bootblocks on floppy discs
5867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5870 # OS/2's system install, which has a completely different semantic
5871 # ./install, which can be erroneously created by make from ./install.sh.
5872 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5873 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5874 if test -z "$INSTALL"; then
5875 if test "${ac_cv_path_install+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir=.
5883 # Account for people who put trailing slashes in PATH elements.
5885 ./ | .// | /cC/* | \
5886 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5887 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5890 # OSF1 and SCO ODT 3.0 have their own names for install.
5891 # Don't use installbsd from OSF since it installs stuff as root
5893 for ac_prog in ginstall scoinst install; do
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5896 if test $ac_prog = install &&
5897 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5898 # AIX install. It has an incompatible calling convention.
5900 elif test $ac_prog = install &&
5901 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5902 # program-specific install script used by HP pwplus--don't use.
5905 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5918 if test "${ac_cv_path_install+set}" = set; then
5919 INSTALL=$ac_cv_path_install
5921 # As a last resort, use the slow shell script. Don't cache a
5922 # value for INSTALL within a source directory, because that will
5923 # break other packages using the cache if that directory is
5924 # removed, or if the value is a relative name.
5925 INSTALL=$ac_install_sh
5928 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5929 echo "${ECHO_T}$INSTALL" >&6; }
5931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5932 # It thinks the first close brace ends the variable substitution.
5933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5939 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5940 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5942 if test "$LN_S" = "ln -s"; then
5943 { echo "$as_me:$LINENO: result: yes" >&5
5944 echo "${ECHO_T}yes" >&6; }
5946 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5947 echo "${ECHO_T}no, using $LN_S" >&6; }
5950 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5951 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5952 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5953 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 cat >conftest.make <<\_ACEOF
5959 @echo '@@@%%%=$(MAKE)=@@@%%%'
5961 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5964 eval ac_cv_prog_make_${ac_make}_set=yes;;
5966 eval ac_cv_prog_make_${ac_make}_set=no;;
5970 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5971 { echo "$as_me:$LINENO: result: yes" >&5
5972 echo "${ECHO_T}yes" >&6; }
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5977 SET_MAKE="MAKE=${MAKE-make}"
5980 # Check whether --enable-shared was given.
5981 if test "${enable_shared+set}" = set; then
5982 enableval=$enable_shared; p=${PACKAGE-default}
5984 yes) enable_shared=yes ;;
5985 no) enable_shared=no ;;
5988 # Look at the argument we got. We use all the common list separators.
5989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5990 for pkg in $enableval; do
5992 if test "X$pkg" = "X$p"; then
6004 # Check whether --enable-static was given.
6005 if test "${enable_static+set}" = set; then
6006 enableval=$enable_static; p=${PACKAGE-default}
6008 yes) enable_static=yes ;;
6009 no) enable_static=no ;;
6012 # Look at the argument we got. We use all the common list separators.
6013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6014 for pkg in $enableval; do
6016 if test "X$pkg" = "X$p"; then
6028 # Check whether --enable-fast-install was given.
6029 if test "${enable_fast_install+set}" = set; then
6030 enableval=$enable_fast_install; p=${PACKAGE-default}
6032 yes) enable_fast_install=yes ;;
6033 no) enable_fast_install=no ;;
6035 enable_fast_install=no
6036 # Look at the argument we got. We use all the common list separators.
6037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6038 for pkg in $enableval; do
6040 if test "X$pkg" = "X$p"; then
6041 enable_fast_install=yes
6048 enable_fast_install=yes
6052 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6053 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6054 if test "${lt_cv_path_SED+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 # Loop through the user's path and test for sed and gsed.
6058 # Then use that list of sed's as ones to test for truncation.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for lt_ac_prog in sed gsed; do
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6067 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6074 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6075 # along with /bin/sed that truncates output.
6076 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6077 test ! -f $lt_ac_sed && continue
6078 cat /dev/null > conftest.in
6080 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6081 # Check for GNU sed and select it if it is found.
6082 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6083 lt_cv_path_SED=$lt_ac_sed
6087 cat conftest.in conftest.in >conftest.tmp
6088 mv conftest.tmp conftest.in
6089 cp conftest.in conftest.nl
6091 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6092 cmp -s conftest.out conftest.nl || break
6093 # 10000 chars as input seems more than enough
6094 test $lt_ac_count -gt 10 && break
6095 lt_ac_count=`expr $lt_ac_count + 1`
6096 if test $lt_ac_count -gt $lt_ac_max; then
6097 lt_ac_max=$lt_ac_count
6098 lt_cv_path_SED=$lt_ac_sed
6106 { echo "$as_me:$LINENO: result: $SED" >&5
6107 echo "${ECHO_T}$SED" >&6; }
6109 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6110 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6111 if test "${ac_cv_path_GREP+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 # Extract the first word of "grep ggrep" to use in msg output
6115 if test -z "$GREP"; then
6116 set dummy grep ggrep; ac_prog_name=$2
6117 if test "${ac_cv_path_GREP+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_path_GREP_found=false
6121 # Loop through the user's path and test for each of PROGNAME-LIST
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6126 test -z "$as_dir" && as_dir=.
6127 for ac_prog in grep ggrep; do
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6130 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6131 # Check for GNU ac_path_GREP and select it if it is found.
6132 # Check for GNU $ac_path_GREP
6133 case `"$ac_path_GREP" --version 2>&1` in
6135 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6141 cat "conftest.in" "conftest.in" >"conftest.tmp"
6142 mv "conftest.tmp" "conftest.in"
6143 cp "conftest.in" "conftest.nl"
6144 echo 'GREP' >> "conftest.nl"
6145 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6147 ac_count=`expr $ac_count + 1`
6148 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6149 # Best one so far, save it but keep looking for a better one
6150 ac_cv_path_GREP="$ac_path_GREP"
6151 ac_path_GREP_max=$ac_count
6153 # 10*(2^10) chars as input seems more than enough
6154 test $ac_count -gt 10 && break
6156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6160 $ac_path_GREP_found && break 3
6170 GREP="$ac_cv_path_GREP"
6171 if test -z "$GREP"; then
6172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6174 { (exit 1); exit 1; }; }
6178 ac_cv_path_GREP=$GREP
6183 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6184 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6185 GREP="$ac_cv_path_GREP"
6188 { echo "$as_me:$LINENO: checking for egrep" >&5
6189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6190 if test "${ac_cv_path_EGREP+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6194 then ac_cv_path_EGREP="$GREP -E"
6196 # Extract the first word of "egrep" to use in msg output
6197 if test -z "$EGREP"; then
6198 set dummy egrep; ac_prog_name=$2
6199 if test "${ac_cv_path_EGREP+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 ac_path_EGREP_found=false
6203 # Loop through the user's path and test for each of PROGNAME-LIST
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6208 test -z "$as_dir" && as_dir=.
6209 for ac_prog in egrep; do
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6212 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6213 # Check for GNU ac_path_EGREP and select it if it is found.
6214 # Check for GNU $ac_path_EGREP
6215 case `"$ac_path_EGREP" --version 2>&1` in
6217 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6220 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6223 cat "conftest.in" "conftest.in" >"conftest.tmp"
6224 mv "conftest.tmp" "conftest.in"
6225 cp "conftest.in" "conftest.nl"
6226 echo 'EGREP' >> "conftest.nl"
6227 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6229 ac_count=`expr $ac_count + 1`
6230 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6231 # Best one so far, save it but keep looking for a better one
6232 ac_cv_path_EGREP="$ac_path_EGREP"
6233 ac_path_EGREP_max=$ac_count
6235 # 10*(2^10) chars as input seems more than enough
6236 test $ac_count -gt 10 && break
6238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6242 $ac_path_EGREP_found && break 3
6252 EGREP="$ac_cv_path_EGREP"
6253 if test -z "$EGREP"; then
6254 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6255 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6256 { (exit 1); exit 1; }; }
6260 ac_cv_path_EGREP=$EGREP
6266 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6267 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6268 EGREP="$ac_cv_path_EGREP"
6272 # Check whether --with-gnu-ld was given.
6273 if test "${with_gnu_ld+set}" = set; then
6274 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6280 if test "$GCC" = yes; then
6281 # Check if gcc -print-prog-name=ld gives a path.
6282 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6286 # gcc leaves a trailing carriage return which upsets mingw
6287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6292 # Accept absolute paths.
6294 re_direlt='/[^/][^/]*/\.\./'
6295 # Canonicalize the pathname of ld
6296 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6297 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6298 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6300 test -z "$LD" && LD="$ac_prog"
6303 # If it fails, then pretend we aren't using GCC.
6307 # If it is relative, then search for the first ld in PATH.
6311 elif test "$with_gnu_ld" = yes; then
6312 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6315 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6318 if test "${lt_cv_path_LD+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 if test -z "$LD"; then
6322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6323 for ac_dir in $PATH; do
6325 test -z "$ac_dir" && ac_dir=.
6326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6327 lt_cv_path_LD="$ac_dir/$ac_prog"
6328 # Check to see if the program is GNU ld. I'd rather use --version,
6329 # but apparently some variants of GNU ld only accept -v.
6330 # Break only if it was the GNU/non-GNU ld that we prefer.
6331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6332 *GNU* | *'with BFD'*)
6333 test "$with_gnu_ld" != no && break
6336 test "$with_gnu_ld" != yes && break
6343 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6348 if test -n "$LD"; then
6349 { echo "$as_me:$LINENO: result: $LD" >&5
6350 echo "${ECHO_T}$LD" >&6; }
6352 { echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6; }
6355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6357 { (exit 1); exit 1; }; }
6358 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6364 case `$LD -v 2>&1 </dev/null` in
6365 *GNU* | *'with BFD'*)
6366 lt_cv_prog_gnu_ld=yes
6369 lt_cv_prog_gnu_ld=no
6373 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6375 with_gnu_ld=$lt_cv_prog_gnu_ld
6378 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6380 if test "${lt_cv_ld_reload_flag+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 lt_cv_ld_reload_flag='-r'
6385 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6387 reload_flag=$lt_cv_ld_reload_flag
6388 case $reload_flag in
6390 *) reload_flag=" $reload_flag" ;;
6392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6395 if test "$GCC" = yes; then
6396 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6403 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6404 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6405 if test "${lt_cv_path_NM+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 if test -n "$NM"; then
6409 # Let the user override the test.
6412 lt_nm_to_check="${ac_tool_prefix}nm"
6413 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6414 lt_nm_to_check="$lt_nm_to_check nm"
6416 for lt_tmp_nm in $lt_nm_to_check; do
6417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6418 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6420 test -z "$ac_dir" && ac_dir=.
6421 tmp_nm="$ac_dir/$lt_tmp_nm"
6422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6423 # Check to see if the nm accepts a BSD-compat flag.
6424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6425 # nm: unknown option "B" ignored
6426 # Tru64's nm complains that /dev/null is an invalid object file
6427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6428 */dev/null* | *'Invalid file or object type'*)
6429 lt_cv_path_NM="$tmp_nm -B"
6433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6435 lt_cv_path_NM="$tmp_nm -p"
6439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6440 continue # so that we can try to find one that supports BSD flags
6449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6452 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6453 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6456 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6457 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6458 if test "${lt_cv_deplibs_check_method+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 lt_cv_file_magic_cmd='$MAGIC_CMD'
6462 lt_cv_file_magic_test_file=
6463 lt_cv_deplibs_check_method='unknown'
6464 # Need to set the preceding variable on all platforms that support
6465 # interlibrary dependencies.
6466 # 'none' -- dependencies not supported.
6467 # `unknown' -- same as none, but documents that we really don't know.
6468 # 'pass_all' -- all dependencies passed with no checks.
6469 # 'test_compile' -- check by making test program.
6470 # 'file_magic [[regex]]' -- check by looking for files in library path
6471 # which responds to the $file_magic_cmd with a given extended regex.
6472 # If you have `file' or equivalent on your system and you're not sure
6473 # whether `pass_all' will *always* work, you probably want this one.
6477 lt_cv_deplibs_check_method=pass_all
6481 lt_cv_deplibs_check_method=pass_all
6485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6486 lt_cv_file_magic_cmd='/usr/bin/file -L'
6487 lt_cv_file_magic_test_file=/shlib/libc.so
6491 # func_win32_libid is a shell function defined in ltmain.sh
6492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6493 lt_cv_file_magic_cmd='func_win32_libid'
6497 # Base MSYS/MinGW do not provide the 'file' command needed by
6498 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6499 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6500 lt_cv_file_magic_cmd='$OBJDUMP -f'
6503 darwin* | rhapsody*)
6504 lt_cv_deplibs_check_method=pass_all
6507 freebsd* | dragonfly*)
6508 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6511 # Not sure whether the presence of OpenBSD here was a mistake.
6512 # Let's accept both of them until this is cleared up.
6513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6514 lt_cv_file_magic_cmd=/usr/bin/file
6515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6519 lt_cv_deplibs_check_method=pass_all
6524 lt_cv_deplibs_check_method=pass_all
6527 hpux10.20* | hpux11*)
6528 lt_cv_file_magic_cmd=/usr/bin/file
6531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6535 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]'
6536 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6540 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6546 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6550 irix5* | irix6* | nonstopux*)
6552 *-32|*"-32 ") libmagic=32-bit;;
6553 *-n32|*"-n32 ") libmagic=N32;;
6554 *-64|*"-64 ") libmagic=64-bit;;
6555 *) libmagic=never-match;;
6557 lt_cv_deplibs_check_method=pass_all
6560 # This must be Linux ELF.
6561 linux* | k*bsd*-gnu)
6562 lt_cv_deplibs_check_method=pass_all
6565 netbsd* | netbsdelf*-gnu)
6566 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6575 lt_cv_file_magic_cmd=/usr/bin/file
6576 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6580 lt_cv_deplibs_check_method=unknown
6584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6591 osf3* | osf4* | osf5*)
6592 lt_cv_deplibs_check_method=pass_all
6596 lt_cv_deplibs_check_method=pass_all
6600 case $host_vendor in
6602 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]'
6603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6606 lt_cv_deplibs_check_method=pass_all
6609 lt_cv_file_magic_cmd='/bin/file'
6610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6613 lt_cv_file_magic_cmd='/bin/file'
6614 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6615 lt_cv_file_magic_test_file=/lib/libc.so
6618 lt_cv_deplibs_check_method=pass_all
6621 lt_cv_deplibs_check_method=pass_all
6626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6627 lt_cv_deplibs_check_method=pass_all
6632 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6634 file_magic_cmd=$lt_cv_file_magic_cmd
6635 deplibs_check_method=$lt_cv_deplibs_check_method
6636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6641 # If no C compiler was specified, use CC.
6644 # If no C compiler flags were specified, use CFLAGS.
6645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6647 # Allow CC to be a program name with arguments.
6650 # Check whether --enable-libtool-lock was given.
6651 if test "${enable_libtool_lock+set}" = set; then
6652 enableval=$enable_libtool_lock;
6655 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6657 # Some flags need to be propagated to the compiler or linker for good
6661 # Find out which ABI we are using.
6662 echo 'int i;' > conftest.$ac_ext
6663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6664 (eval $ac_compile) 2>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; then
6668 case `/usr/bin/file conftest.$ac_objext` in
6680 # Find out which ABI we are using.
6681 echo '#line 6681 "configure"' > conftest.$ac_ext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; then
6687 if test "$lt_cv_prog_gnu_ld" = yes; then
6688 case `/usr/bin/file conftest.$ac_objext` in
6690 LD="${LD-ld} -melf32bsmip"
6693 LD="${LD-ld} -melf32bmipn32"
6696 LD="${LD-ld} -melf64bmip"
6700 case `/usr/bin/file conftest.$ac_objext` in
6716 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6717 # Find out which ABI we are using.
6718 echo 'int i;' > conftest.$ac_ext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720 (eval $ac_compile) 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; then
6724 case `/usr/bin/file conftest.o` in
6728 LD="${LD-ld} -m elf_i386"
6730 ppc64-*linux*|powerpc64-*linux*)
6731 LD="${LD-ld} -m elf32ppclinux"
6734 LD="${LD-ld} -m elf_s390"
6737 LD="${LD-ld} -m elf32_sparc"
6744 LD="${LD-ld} -m elf_x86_64"
6746 ppc*-*linux*|powerpc*-*linux*)
6747 LD="${LD-ld} -m elf64ppc"
6750 LD="${LD-ld} -m elf64_s390"
6753 LD="${LD-ld} -m elf64_sparc"
6763 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6764 SAVE_CFLAGS="$CFLAGS"
6765 CFLAGS="$CFLAGS -belf"
6766 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6767 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6768 if test "${lt_cv_cc_needs_belf+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 ac_cpp='$CPP $CPPFLAGS'
6773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6777 cat >conftest.$ac_ext <<_ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (ac_try="$ac_link"
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799 (eval "$ac_link") 2>conftest.er1
6801 grep -v '^ *+' conftest.er1 >conftest.err
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && {
6806 test -z "$ac_c_werror_flag" ||
6807 test ! -s conftest.err
6808 } && test -s conftest$ac_exeext &&
6809 $as_test_x conftest$ac_exeext; then
6810 lt_cv_cc_needs_belf=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 lt_cv_cc_needs_belf=no
6818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6819 conftest$ac_exeext conftest.$ac_ext
6821 ac_cpp='$CPP $CPPFLAGS'
6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6827 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6828 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6829 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6830 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6831 CFLAGS="$SAVE_CFLAGS"
6835 # Find out which ABI we are using.
6836 echo 'int i;' > conftest.$ac_ext
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; then
6842 case `/usr/bin/file conftest.o` in
6844 case $lt_cv_prog_gnu_ld in
6845 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6846 *) LD="${LD-ld} -64" ;;
6857 need_locks="$enable_libtool_lock"
6861 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6863 if test "${ac_cv_header_stdc+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6894 grep -v '^ *+' conftest.er1 >conftest.err
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_header_stdc=yes
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 ac_cv_header_stdc=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 if test $ac_cv_header_stdc = yes; then
6913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6914 cat >conftest.$ac_ext <<_ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6924 $EGREP "memchr" >/dev/null 2>&1; then
6927 ac_cv_header_stdc=no
6933 if test $ac_cv_header_stdc = yes; then
6934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945 $EGREP "free" >/dev/null 2>&1; then
6948 ac_cv_header_stdc=no
6954 if test $ac_cv_header_stdc = yes; then
6955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6956 if test "$cross_compiling" = yes; then
6959 cat >conftest.$ac_ext <<_ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6967 #if ((' ' & 0x0FF) == 0x020)
6968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6971 # define ISLOWER(c) \
6972 (('a' <= (c) && (c) <= 'i') \
6973 || ('j' <= (c) && (c) <= 'r') \
6974 || ('s' <= (c) && (c) <= 'z'))
6975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6983 for (i = 0; i < 256; i++)
6984 if (XOR (islower (i), ISLOWER (i))
6985 || toupper (i) != TOUPPER (i))
6990 rm -f conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_link") 2>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001 { (case "(($ac_try" in
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_try") 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7012 echo "$as_me: program exited with status $ac_status" >&5
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7017 ac_cv_header_stdc=no
7019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7027 if test $ac_cv_header_stdc = yes; then
7029 cat >>confdefs.h <<\_ACEOF
7030 #define STDC_HEADERS 1
7035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7046 inttypes.h stdint.h unistd.h
7048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 $ac_includes_default
7062 #include <$ac_header>
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.$ac_objext; then
7081 eval "$as_ac_Header=yes"
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 eval "$as_ac_Header=no"
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 ac_res=`eval echo '${'$as_ac_Header'}'`
7092 { echo "$as_me:$LINENO: result: $ac_res" >&5
7093 echo "${ECHO_T}$ac_res" >&6; }
7094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7105 for ac_header in dlfcn.h
7107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_res=`eval echo '${'$as_ac_Header'}'`
7115 { echo "$as_me:$LINENO: result: $ac_res" >&5
7116 echo "${ECHO_T}$ac_res" >&6; }
7118 # Is the header compilable?
7119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7121 cat >conftest.$ac_ext <<_ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7128 #include <$ac_header>
7130 rm -f conftest.$ac_objext
7131 if { (ac_try="$ac_compile"
7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137 (eval "$ac_compile") 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest.$ac_objext; then
7147 ac_header_compiler=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_header_compiler=no
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7157 echo "${ECHO_T}$ac_header_compiler" >&6; }
7159 # Is the header present?
7160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7162 cat >conftest.$ac_ext <<_ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <$ac_header>
7170 if { (ac_try="$ac_cpp conftest.$ac_ext"
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7178 grep -v '^ *+' conftest.er1 >conftest.err
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } >/dev/null && {
7183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7186 ac_header_preproc=yes
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7191 ac_header_preproc=no
7194 rm -f conftest.err conftest.$ac_ext
7195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7196 echo "${ECHO_T}$ac_header_preproc" >&6; }
7198 # So? What about this header?
7199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7205 ac_header_preproc=yes
7208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7221 ## ------------------------------- ##
7222 ## Report this to nfs@lists.sf.net ##
7223 ## ------------------------------- ##
7225 ) | sed "s/^/$as_me: WARNING: /" >&2
7228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 eval "$as_ac_Header=\$ac_header_preproc"
7235 ac_res=`eval echo '${'$as_ac_Header'}'`
7236 { echo "$as_me:$LINENO: result: $ac_res" >&5
7237 echo "${ECHO_T}$ac_res" >&6; }
7240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7241 cat >>confdefs.h <<_ACEOF
7242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7252 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7253 (test "X$CXX" != "Xg++"))) ; then
7255 ac_cpp='$CXXCPP $CPPFLAGS'
7256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7259 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7260 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7261 if test -z "$CXXCPP"; then
7262 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 # Double quotes because CXXCPP needs to be expanded
7266 for CXXCPP in "$CXX -E" "/lib/cpp"
7269 for ac_cxx_preproc_warn_flag in '' yes
7271 # Use a header file that comes with gcc, so configuring glibc
7272 # with a fresh cross-compiler works.
7273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274 # <limits.h> exists even on freestanding compilers.
7275 # On the NeXT, cc -E runs the code through the compiler's parser,
7276 # not just through cpp. "Syntax error" is here to catch this case.
7277 cat >conftest.$ac_ext <<_ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7284 # include <limits.h>
7286 # include <assert.h>
7290 if { (ac_try="$ac_cpp conftest.$ac_ext"
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7298 grep -v '^ *+' conftest.er1 >conftest.err
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } >/dev/null && {
7303 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7304 test ! -s conftest.err
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 # Broken: fails on valid input.
7315 rm -f conftest.err conftest.$ac_ext
7317 # OK, works on sane cases. Now check whether nonexistent headers
7318 # can be detected and how.
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #include <ac_nonexistent.h>
7327 if { (ac_try="$ac_cpp conftest.$ac_ext"
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7335 grep -v '^ *+' conftest.er1 >conftest.err
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } >/dev/null && {
7340 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7341 test ! -s conftest.err
7343 # Broken: success on invalid input.
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 # Passes both tests.
7354 rm -f conftest.err conftest.$ac_ext
7357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7358 rm -f conftest.err conftest.$ac_ext
7359 if $ac_preproc_ok; then
7364 ac_cv_prog_CXXCPP=$CXXCPP
7367 CXXCPP=$ac_cv_prog_CXXCPP
7369 ac_cv_prog_CXXCPP=$CXXCPP
7371 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7372 echo "${ECHO_T}$CXXCPP" >&6; }
7374 for ac_cxx_preproc_warn_flag in '' yes
7376 # Use a header file that comes with gcc, so configuring glibc
7377 # with a fresh cross-compiler works.
7378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7379 # <limits.h> exists even on freestanding compilers.
7380 # On the NeXT, cc -E runs the code through the compiler's parser,
7381 # not just through cpp. "Syntax error" is here to catch this case.
7382 cat >conftest.$ac_ext <<_ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7389 # include <limits.h>
7391 # include <assert.h>
7395 if { (ac_try="$ac_cpp conftest.$ac_ext"
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } >/dev/null && {
7408 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7409 test ! -s conftest.err
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 # Broken: fails on valid input.
7420 rm -f conftest.err conftest.$ac_ext
7422 # OK, works on sane cases. Now check whether nonexistent headers
7423 # can be detected and how.
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <ac_nonexistent.h>
7432 if { (ac_try="$ac_cpp conftest.$ac_ext"
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7440 grep -v '^ *+' conftest.er1 >conftest.err
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev/null && {
7445 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7446 test ! -s conftest.err
7448 # Broken: success on invalid input.
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 # Passes both tests.
7459 rm -f conftest.err conftest.$ac_ext
7462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7463 rm -f conftest.err conftest.$ac_ext
7464 if $ac_preproc_ok; then
7467 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7468 See \`config.log' for more details." >&5
7469 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7470 See \`config.log' for more details." >&2;}
7471 { (exit 1); exit 1; }; }
7475 ac_cpp='$CXXCPP $CPPFLAGS'
7476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7484 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7485 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7487 if test -n "$ac_tool_prefix"; then
7488 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
7490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_prog_F77+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 if test -n "$F77"; then
7498 ac_cv_prog_F77="$F77" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 if test -n "$F77"; then
7519 { echo "$as_me:$LINENO: result: $F77" >&5
7520 echo "${ECHO_T}$F77" >&6; }
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7527 test -n "$F77" && break
7530 if test -z "$F77"; then
7532 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
7534 # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 if test -n "$ac_ct_F77"; then
7542 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_ac_ct_F77="$ac_prog"
7552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7562 if test -n "$ac_ct_F77"; then
7563 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7564 echo "${ECHO_T}$ac_ct_F77" >&6; }
7566 { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7571 test -n "$ac_ct_F77" && break
7574 if test "x$ac_ct_F77" = x; then
7577 case $cross_compiling:$ac_tool_warned in
7579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7580 whose name does not start with the host triplet. If you think this
7581 configuration is useful to you, please write to autoconf@gnu.org." >&5
7582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7583 whose name does not start with the host triplet. If you think this
7584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7585 ac_tool_warned=yes ;;
7592 # Provide some information about the compiler.
7593 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7594 ac_compiler=`set X $ac_compile; echo $2`
7595 { (ac_try="$ac_compiler --version >&5"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compiler --version >&5") 2>&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }
7605 { (ac_try="$ac_compiler -v >&5"
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611 (eval "$ac_compiler -v >&5") 2>&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }
7615 { (ac_try="$ac_compiler -V >&5"
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compiler -V >&5") 2>&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }
7627 # If we don't use `.F' as extension, the preprocessor is not run on the
7628 # input file. (Note that this only needs to work for GNU compilers.)
7631 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7632 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7633 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 cat >conftest.$ac_ext <<_ACEOF
7644 rm -f conftest.$ac_objext
7645 if { (ac_try="$ac_compile"
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_compile") 2>conftest.er1
7653 grep -v '^ *+' conftest.er1 >conftest.err
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_f77_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest.$ac_objext; then
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7673 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7674 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7676 ac_test_FFLAGS=${FFLAGS+set}
7677 ac_save_FFLAGS=$FFLAGS
7679 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7680 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7681 if test "${ac_cv_prog_f77_g+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_f77_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 ac_cv_prog_f77_g=yes
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7719 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7720 if test "$ac_test_FFLAGS" = set; then
7721 FFLAGS=$ac_save_FFLAGS
7722 elif test $ac_cv_prog_f77_g = yes; then
7723 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7729 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7736 G77=`test $ac_compiler_gnu = yes && echo yes`
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7747 # find the maximum length of command line arguments
7748 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7749 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7750 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 # On DJGPP, this test can blow up pretty badly due to problems in libc
7759 # (any single argument exceeding 2000 bytes causes a buffer overrun
7760 # during glob expansion). Even if it were fixed, the result of this
7761 # check would be larger than it should be.
7762 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7766 # Under GNU Hurd, this test is not required because there is
7767 # no limit to the length of command line arguments.
7768 # Libtool will interpret -1 as no limit whatsoever
7769 lt_cv_sys_max_cmd_len=-1;
7773 # On Win9x/ME, this test blows up -- it succeeds, but takes
7774 # about 5 minutes as the teststring grows exponentially.
7775 # Worse, since 9x/ME are not pre-emptively multitasking,
7776 # you end up with a "frozen" computer, even though with patience
7777 # the test eventually succeeds (with a max line length of 256k).
7778 # Instead, let's just punt: use the minimum linelength reported by
7779 # all of the supported platforms: 8192 (on NT/2K/XP).
7780 lt_cv_sys_max_cmd_len=8192;
7784 # On AmigaOS with pdksh, this test takes hours, literally.
7785 # So we just punt and use a minimum line length of 8192.
7786 lt_cv_sys_max_cmd_len=8192;
7789 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7790 # This has been around since 386BSD, at least. Likely further.
7791 if test -x /sbin/sysctl; then
7792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7793 elif test -x /usr/sbin/sysctl; then
7794 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7796 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7798 # And add a safety zone
7799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7804 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7805 lt_cv_sys_max_cmd_len=196608
7809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7811 # nice to cause kernel panics so lets avoid the loop below.
7812 # First set a reasonable default.
7813 lt_cv_sys_max_cmd_len=16384
7815 if test -x /sbin/sysconfig; then
7816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7817 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7822 lt_cv_sys_max_cmd_len=102400
7824 sysv5* | sco5v6* | sysv4.2uw2*)
7825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7826 if test -n "$kargmax"; then
7827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7829 lt_cv_sys_max_cmd_len=32768
7833 # If test is not a shell built-in, we'll probably end up computing a
7834 # maximum length that is only half of the actual maximum length, but
7836 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7837 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7838 = "XX$teststring") >/dev/null 2>&1 &&
7839 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7840 lt_cv_sys_max_cmd_len=$new_result &&
7841 test $i != 17 # 1/2 MB should be enough
7844 teststring=$teststring$teststring
7847 # Add a significant safety factor because C++ compilers can tack on massive
7848 # amounts of additional arguments before passing them to the linker.
7849 # It appears as though 1/2 is a usable value.
7850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7856 if test -n $lt_cv_sys_max_cmd_len ; then
7857 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7858 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7860 { echo "$as_me:$LINENO: result: none" >&5
7861 echo "${ECHO_T}none" >&6; }
7867 # Check for command to grab the raw symbol name followed by C symbol from nm.
7868 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7869 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7870 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 # These are sane defaults that work on at least a few old systems.
7875 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7877 # Character class describing NM global symbol codes.
7878 symcode='[BCDEGRST]'
7880 # Regexp to match symbols that can be accessed directly from C.
7881 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7883 # Transform an extracted symbol line into a proper C declaration
7884 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7886 # Transform an extracted symbol line into symbol name and symbol address
7887 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'"
7889 # Define system-specific variables.
7894 cygwin* | mingw* | pw32*)
7895 symcode='[ABCDGISTW]'
7897 hpux*) # Its linker distinguishes data from code symbols
7898 if test "$host_cpu" = ia64; then
7899 symcode='[ABCDEGRST]'
7901 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7902 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'"
7904 linux* | k*bsd*-gnu)
7905 if test "$host_cpu" = ia64; then
7906 symcode='[ABCDGIRSTW]'
7907 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7908 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'"
7912 symcode='[BCDEGRST]'
7915 symcode='[BCDEGQRST]'
7926 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7934 # Handle CRLF in mingw tool chain
7938 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7942 # If we're using GNU nm, then use its standard symbol codes.
7943 case `$NM -V 2>&1` in
7944 *GNU* | *'with BFD'*)
7945 symcode='[ABCDGIRSTW]' ;;
7948 # Try without a prefix undercore, then with it.
7949 for ac_symprfx in "" "_"; do
7951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7952 symxfrm="\\1 $ac_symprfx\\2 \\2"
7954 # Write the raw and C identifiers.
7955 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7957 # Check to see that the pipe works correctly.
7961 cat > conftest.$ac_ext <<EOF
7966 void nm_test_func(){}
7970 int main(){nm_test_var='a';nm_test_func();return(0);}
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974 (eval $ac_compile) 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; then
7978 # Now try to grab the symbols.
7980 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7981 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && test -s "$nlist"; then
7985 # Try sorting and uniquifying the output.
7986 if sort "$nlist" | uniq > "$nlist"T; then
7987 mv -f "$nlist"T "$nlist"
7992 # Make sure that we snagged all the symbols we need.
7993 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7994 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7995 cat <<EOF > conftest.$ac_ext
8001 # Now generate the symbol file.
8002 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8004 cat <<EOF >> conftest.$ac_ext
8005 #if defined (__STDC__) && __STDC__
8006 # define lt_ptr_t void *
8008 # define lt_ptr_t char *
8012 /* The mapping between symbol names and symbols. */
8017 lt_preloaded_symbols[] =
8020 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8021 cat <<\EOF >> conftest.$ac_ext
8029 # Now try linking the two files.
8030 mv conftest.$ac_objext conftstm.$ac_objext
8031 lt_save_LIBS="$LIBS"
8032 lt_save_CFLAGS="$CFLAGS"
8033 LIBS="conftstm.$ac_objext"
8034 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8036 (eval $ac_link) 2>&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8042 LIBS="$lt_save_LIBS"
8043 CFLAGS="$lt_save_CFLAGS"
8045 echo "cannot find nm_test_func in $nlist" >&5
8048 echo "cannot find nm_test_var in $nlist" >&5
8051 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8054 echo "$progname: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8057 rm -f conftest* conftst*
8059 # Do not use the global_symbol_pipe unless it works.
8060 if test "$pipe_works" = yes; then
8063 lt_cv_sys_global_symbol_pipe=
8069 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8070 lt_cv_sys_global_symbol_to_cdecl=
8072 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8073 { echo "$as_me:$LINENO: result: failed" >&5
8074 echo "${ECHO_T}failed" >&6; }
8076 { echo "$as_me:$LINENO: result: ok" >&5
8077 echo "${ECHO_T}ok" >&6; }
8080 { echo "$as_me:$LINENO: checking for objdir" >&5
8081 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8082 if test "${lt_cv_objdir+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 rm -f .libs 2>/dev/null
8086 mkdir .libs 2>/dev/null
8087 if test -d .libs; then
8090 # MS-DOS does not allow filenames that begin with a dot.
8093 rmdir .libs 2>/dev/null
8095 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8096 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8097 objdir=$lt_cv_objdir
8105 # AIX sometimes has problems with the GCC collect2 program. For some
8106 # reason, if we set the COLLECT_NAMES environment variable, the problems
8107 # vanish in a puff of smoke.
8108 if test "X${COLLECT_NAMES+set}" != Xset; then
8110 export COLLECT_NAMES
8115 # Sed substitution that helps us do robust quoting. It backslashifies
8116 # metacharacters that are still active within double-quoted strings.
8117 Xsed='sed -e 1s/^X//'
8118 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8120 # Same as above, but do not quote variable references.
8121 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8123 # Sed substitution to delay expansion of an escaped shell variable in a
8124 # double_quote_subst'ed string.
8125 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8127 # Sed substitution to avoid accidental globbing in evaled expressions
8128 no_glob_subst='s/\*/\\\*/g'
8134 default_ofile=libtool
8135 can_build_shared=yes
8137 # All known linkers require a `.a' archive for static linking (except MSVC,
8138 # which needs '.lib').
8140 ltmain="$ac_aux_dir/ltmain.sh"
8141 ofile="$default_ofile"
8142 with_gnu_ld="$lt_cv_prog_gnu_ld"
8144 if test -n "$ac_tool_prefix"; then
8145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8146 set dummy ${ac_tool_prefix}ar; ac_word=$2
8147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149 if test "${ac_cv_prog_AR+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 if test -n "$AR"; then
8153 ac_cv_prog_AR="$AR" # Let the user override the test.
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_AR="${ac_tool_prefix}ar"
8163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 if test -n "$AR"; then
8174 { echo "$as_me:$LINENO: result: $AR" >&5
8175 echo "${ECHO_T}$AR" >&6; }
8177 { echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6; }
8183 if test -z "$ac_cv_prog_AR"; then
8185 # Extract the first word of "ar", so it can be a program name with args.
8186 set dummy ar; ac_word=$2
8187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8189 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 if test -n "$ac_ct_AR"; then
8193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8202 ac_cv_prog_ac_ct_AR="ar"
8203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8213 if test -n "$ac_ct_AR"; then
8214 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8215 echo "${ECHO_T}$ac_ct_AR" >&6; }
8217 { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8221 if test "x$ac_ct_AR" = x; then
8224 case $cross_compiling:$ac_tool_warned in
8226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8227 whose name does not start with the host triplet. If you think this
8228 configuration is useful to you, please write to autoconf@gnu.org." >&5
8229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8230 whose name does not start with the host triplet. If you think this
8231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8232 ac_tool_warned=yes ;;
8240 if test -n "$ac_tool_prefix"; then
8241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245 if test "${ac_cv_prog_RANLIB+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 if test -n "$RANLIB"; then
8249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 RANLIB=$ac_cv_prog_RANLIB
8269 if test -n "$RANLIB"; then
8270 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8271 echo "${ECHO_T}$RANLIB" >&6; }
8273 { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8279 if test -z "$ac_cv_prog_RANLIB"; then
8280 ac_ct_RANLIB=$RANLIB
8281 # Extract the first word of "ranlib", so it can be a program name with args.
8282 set dummy ranlib; ac_word=$2
8283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 if test -n "$ac_ct_RANLIB"; then
8289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_prog_ac_ct_RANLIB="ranlib"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8309 if test -n "$ac_ct_RANLIB"; then
8310 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8311 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8313 { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8317 if test "x$ac_ct_RANLIB" = x; then
8320 case $cross_compiling:$ac_tool_warned in
8322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8323 whose name does not start with the host triplet. If you think this
8324 configuration is useful to you, please write to autoconf@gnu.org." >&5
8325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8326 whose name does not start with the host triplet. If you think this
8327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8328 ac_tool_warned=yes ;;
8330 RANLIB=$ac_ct_RANLIB
8333 RANLIB="$ac_cv_prog_RANLIB"
8336 if test -n "$ac_tool_prefix"; then
8337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}strip; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_prog_STRIP+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 if test -n "$STRIP"; then
8345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 STRIP=$ac_cv_prog_STRIP
8365 if test -n "$STRIP"; then
8366 { echo "$as_me:$LINENO: result: $STRIP" >&5
8367 echo "${ECHO_T}$STRIP" >&6; }
8369 { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8375 if test -z "$ac_cv_prog_STRIP"; then
8377 # Extract the first word of "strip", so it can be a program name with args.
8378 set dummy strip; ac_word=$2
8379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 if test -n "$ac_ct_STRIP"; then
8385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_ac_ct_STRIP="strip"
8395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8405 if test -n "$ac_ct_STRIP"; then
8406 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8407 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8409 { echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6; }
8413 if test "x$ac_ct_STRIP" = x; then
8416 case $cross_compiling:$ac_tool_warned in
8418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8419 whose name does not start with the host triplet. If you think this
8420 configuration is useful to you, please write to autoconf@gnu.org." >&5
8421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8422 whose name does not start with the host triplet. If you think this
8423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8424 ac_tool_warned=yes ;;
8429 STRIP="$ac_cv_prog_STRIP"
8434 old_CFLAGS="$CFLAGS"
8436 # Set sane defaults for various variables
8437 test -z "$AR" && AR=ar
8438 test -z "$AR_FLAGS" && AR_FLAGS=cru
8439 test -z "$AS" && AS=as
8440 test -z "$CC" && CC=cc
8441 test -z "$LTCC" && LTCC=$CC
8442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8443 test -z "$DLLTOOL" && DLLTOOL=dlltool
8444 test -z "$LD" && LD=ld
8445 test -z "$LN_S" && LN_S="ln -s"
8446 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8447 test -z "$NM" && NM=nm
8448 test -z "$SED" && SED=sed
8449 test -z "$OBJDUMP" && OBJDUMP=objdump
8450 test -z "$RANLIB" && RANLIB=:
8451 test -z "$STRIP" && STRIP=:
8452 test -z "$ac_objext" && ac_objext=o
8454 # Determine commands to create old-style static archives.
8455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8456 old_postinstall_cmds='chmod 644 $oldlib'
8457 old_postuninstall_cmds=
8459 if test -n "$RANLIB"; then
8462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8468 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8471 for cc_temp in $compiler""; do
8473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8479 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8482 # Only perform the check for file, if the check method requires it
8483 case $deplibs_check_method in
8485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8486 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8487 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8496 lt_save_MAGIC_CMD="$MAGIC_CMD"
8497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8499 for ac_dir in $ac_dummy; do
8501 test -z "$ac_dir" && ac_dir=.
8502 if test -f $ac_dir/${ac_tool_prefix}file; then
8503 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8504 if test -n "$file_magic_test_file"; then
8505 case $deplibs_check_method in
8507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8510 $EGREP "$file_magic_regex" > /dev/null; then
8515 *** Warning: the command libtool uses to detect shared libraries,
8516 *** $file_magic_cmd, produces output that libtool cannot recognize.
8517 *** The result is that libtool may fail to recognize shared libraries
8518 *** as such. This will affect the creation of libtool libraries that
8519 *** depend on shared libraries, but programs linked with such libtool
8520 *** libraries will work regardless of this problem. Nevertheless, you
8521 *** may want to report the problem to your system manager and/or to
8522 *** bug-libtool@gnu.org
8532 MAGIC_CMD="$lt_save_MAGIC_CMD"
8537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8538 if test -n "$MAGIC_CMD"; then
8539 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8540 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8542 { echo "$as_me:$LINENO: result: no" >&5
8543 echo "${ECHO_T}no" >&6; }
8546 if test -z "$lt_cv_path_MAGIC_CMD"; then
8547 if test -n "$ac_tool_prefix"; then
8548 { echo "$as_me:$LINENO: checking for file" >&5
8549 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8550 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8558 lt_save_MAGIC_CMD="$MAGIC_CMD"
8559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8560 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8561 for ac_dir in $ac_dummy; do
8563 test -z "$ac_dir" && ac_dir=.
8564 if test -f $ac_dir/file; then
8565 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8566 if test -n "$file_magic_test_file"; then
8567 case $deplibs_check_method in
8569 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8571 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8572 $EGREP "$file_magic_regex" > /dev/null; then
8577 *** Warning: the command libtool uses to detect shared libraries,
8578 *** $file_magic_cmd, produces output that libtool cannot recognize.
8579 *** The result is that libtool may fail to recognize shared libraries
8580 *** as such. This will affect the creation of libtool libraries that
8581 *** depend on shared libraries, but programs linked with such libtool
8582 *** libraries will work regardless of this problem. Nevertheless, you
8583 *** may want to report the problem to your system manager and/or to
8584 *** bug-libtool@gnu.org
8594 MAGIC_CMD="$lt_save_MAGIC_CMD"
8599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8600 if test -n "$MAGIC_CMD"; then
8601 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8602 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8604 { echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6; }
8620 # Check whether --enable-libtool-lock was given.
8621 if test "${enable_libtool_lock+set}" = set; then
8622 enableval=$enable_libtool_lock;
8625 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8628 # Check whether --with-pic was given.
8629 if test "${with_pic+set}" = set; then
8630 withval=$with_pic; pic_mode="$withval"
8635 test -z "$pic_mode" && pic_mode=default
8637 # Use C for the default configuration in the libtool script
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8647 # Source file extension for C test sources.
8650 # Object file extension for compiled C test sources.
8654 # Code to be used in simple compile tests
8655 lt_simple_compile_test_code="int some_variable = 0;\n"
8657 # Code to be used in simple link tests
8658 lt_simple_link_test_code='int main(){return(0);}\n'
8661 # If no C compiler was specified, use CC.
8664 # If no C compiler flags were specified, use CFLAGS.
8665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8667 # Allow CC to be a program name with arguments.
8671 # save warnings/boilerplate of simple test code
8672 ac_outfile=conftest.$ac_objext
8673 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8675 _lt_compiler_boilerplate=`cat conftest.err`
8678 ac_outfile=conftest.$ac_objext
8679 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8681 _lt_linker_boilerplate=`cat conftest.err`
8686 lt_prog_compiler_no_builtin_flag=
8688 if test "$GCC" = yes; then
8689 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8692 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8693 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 lt_cv_prog_compiler_rtti_exceptions=no
8698 ac_outfile=conftest.$ac_objext
8699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8700 lt_compiler_flag="-fno-rtti -fno-exceptions"
8701 # Insert the option either (1) after the last *FLAGS variable, or
8702 # (2) before a word containing "conftest.", or (3) at the end.
8703 # Note that $ac_compile itself does not contain backslashes and begins
8704 # with a dollar sign (not a hyphen), so the echo should work correctly.
8705 # The option is referenced via a variable to avoid confusing sed.
8706 lt_compile=`echo "$ac_compile" | $SED \
8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709 -e 's:$: $lt_compiler_flag:'`
8710 (eval echo "\"\$as_me:8710: $lt_compile\"" >&5)
8711 (eval "$lt_compile" 2>conftest.err)
8713 cat conftest.err >&5
8714 echo "$as_me:8714: \$? = $ac_status" >&5
8715 if (exit $ac_status) && test -s "$ac_outfile"; then
8716 # The compiler can only warn and ignore the option if not recognized
8717 # So say no if there are warnings other than the usual output.
8718 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8721 lt_cv_prog_compiler_rtti_exceptions=yes
8727 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8728 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8730 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8731 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8738 lt_prog_compiler_wl=
8739 lt_prog_compiler_pic=
8740 lt_prog_compiler_static=
8742 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8743 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8745 if test "$GCC" = yes; then
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_static='-static'
8751 # All AIX code is PIC.
8752 if test "$host_cpu" = ia64; then
8753 # AIX 5 now supports IA64 processor
8754 lt_prog_compiler_static='-Bstatic'
8759 # FIXME: we need at least 68020 code to build shared libraries, but
8760 # adding the `-m68020' flag to GCC prevents building anything better,
8762 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8765 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8766 # PIC is the default for these OSes.
8769 mingw* | pw32* | os2*)
8770 # This hack is so that the source file can tell whether it is being
8771 # built for inclusion in a dll (and should export symbols for example).
8772 lt_prog_compiler_pic='-DDLL_EXPORT'
8775 darwin* | rhapsody*)
8776 # PIC is the default on this platform
8777 # Common symbols not allowed in MH_DYLIB files
8778 lt_prog_compiler_pic='-fno-common'
8782 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8783 # Instead, we relocate shared libraries at runtime.
8787 # Just because we use GCC doesn't mean we suddenly get shared libraries
8788 # on systems that don't support them.
8789 lt_prog_compiler_can_build_shared=no
8794 if test -d /usr/nec; then
8795 lt_prog_compiler_pic=-Kconform_pic
8800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8807 lt_prog_compiler_pic='-fPIC'
8813 lt_prog_compiler_pic='-fPIC'
8817 # PORTME Check for flag to pass linker flags through the system compiler.
8820 lt_prog_compiler_wl='-Wl,'
8821 if test "$host_cpu" = ia64; then
8822 # AIX 5 now supports IA64 processor
8823 lt_prog_compiler_static='-Bstatic'
8825 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8829 # PIC is the default on this platform
8830 # Common symbols not allowed in MH_DYLIB files
8831 case $cc_basename in
8833 lt_prog_compiler_pic='-qnocommon'
8834 lt_prog_compiler_wl='-Wl,'
8839 mingw* | pw32* | os2*)
8840 # This hack is so that the source file can tell whether it is being
8841 # built for inclusion in a dll (and should export symbols for example).
8842 lt_prog_compiler_pic='-DDLL_EXPORT'
8845 hpux9* | hpux10* | hpux11*)
8846 lt_prog_compiler_wl='-Wl,'
8847 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8854 lt_prog_compiler_pic='+Z'
8857 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8858 lt_prog_compiler_static='${wl}-a ${wl}archive'
8861 irix5* | irix6* | nonstopux*)
8862 lt_prog_compiler_wl='-Wl,'
8863 # PIC (with -KPIC) is the default.
8864 lt_prog_compiler_static='-non_shared'
8868 lt_prog_compiler_pic='-KPIC'
8869 lt_prog_compiler_static='-Bstatic'
8872 linux* | k*bsd*-gnu)
8873 case $cc_basename in
8875 lt_prog_compiler_wl='-Wl,'
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-static'
8879 pgcc* | pgf77* | pgf90* | pgf95*)
8880 # Portland Group compilers (*not* the Pentium gcc compiler,
8881 # which looks to be a dead project)
8882 lt_prog_compiler_wl='-Wl,'
8883 lt_prog_compiler_pic='-fpic'
8884 lt_prog_compiler_static='-Bstatic'
8887 lt_prog_compiler_wl='-Wl,'
8888 # All Alpha code is PIC.
8889 lt_prog_compiler_static='-non_shared'
8894 osf3* | osf4* | osf5*)
8895 lt_prog_compiler_wl='-Wl,'
8896 # All OSF/1 code is PIC.
8897 lt_prog_compiler_static='-non_shared'
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8903 case $cc_basename in
8905 lt_prog_compiler_wl='-Qoption ld ';;
8907 lt_prog_compiler_wl='-Wl,';;
8912 lt_prog_compiler_wl='-Qoption ld '
8913 lt_prog_compiler_pic='-PIC'
8914 lt_prog_compiler_static='-Bstatic'
8917 sysv4 | sysv4.2uw2* | sysv4.3*)
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_pic='-KPIC'
8920 lt_prog_compiler_static='-Bstatic'
8924 if test -d /usr/nec ;then
8925 lt_prog_compiler_pic='-Kconform_pic'
8926 lt_prog_compiler_static='-Bstatic'
8930 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-Bstatic'
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_can_build_shared=no
8942 lt_prog_compiler_pic='-pic'
8943 lt_prog_compiler_static='-Bstatic'
8947 lt_prog_compiler_can_build_shared=no
8952 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8953 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8956 # Check to make sure the PIC flag actually works.
8958 if test -n "$lt_prog_compiler_pic"; then
8960 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8961 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8962 if test "${lt_prog_compiler_pic_works+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 lt_prog_compiler_pic_works=no
8966 ac_outfile=conftest.$ac_objext
8967 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8968 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8969 # Insert the option either (1) after the last *FLAGS variable, or
8970 # (2) before a word containing "conftest.", or (3) at the end.
8971 # Note that $ac_compile itself does not contain backslashes and begins
8972 # with a dollar sign (not a hyphen), so the echo should work correctly.
8973 # The option is referenced via a variable to avoid confusing sed.
8974 lt_compile=`echo "$ac_compile" | $SED \
8975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977 -e 's:$: $lt_compiler_flag:'`
8978 (eval echo "\"\$as_me:8978: $lt_compile\"" >&5)
8979 (eval "$lt_compile" 2>conftest.err)
8981 cat conftest.err >&5
8982 echo "$as_me:8982: \$? = $ac_status" >&5
8983 if (exit $ac_status) && test -s "$ac_outfile"; then
8984 # The compiler can only warn and ignore the option if not recognized
8985 # So say no if there are warnings other than the usual output.
8986 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8989 lt_prog_compiler_pic_works=yes
8995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8996 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8998 if test x"$lt_prog_compiler_pic_works" = xyes; then
8999 case $lt_prog_compiler_pic in
9001 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9004 lt_prog_compiler_pic=
9005 lt_prog_compiler_can_build_shared=no
9010 # For platforms which do not support PIC, -DPIC is meaningless:
9012 lt_prog_compiler_pic=
9015 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9020 # Check to make sure the static flag actually works.
9022 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9023 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9024 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9025 if test "${lt_prog_compiler_static_works+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 lt_prog_compiler_static_works=no
9029 save_LDFLAGS="$LDFLAGS"
9030 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9031 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9032 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9033 # The linker can only warn and ignore the option if not recognized
9034 # So say no if there are warnings
9035 if test -s conftest.err; then
9036 # Append any errors to the config.log.
9037 cat conftest.err 1>&5
9038 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9040 if diff conftest.exp conftest.er2 >/dev/null; then
9041 lt_prog_compiler_static_works=yes
9044 lt_prog_compiler_static_works=yes
9048 LDFLAGS="$save_LDFLAGS"
9051 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9052 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9054 if test x"$lt_prog_compiler_static_works" = xyes; then
9057 lt_prog_compiler_static=
9061 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9062 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9063 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 lt_cv_prog_compiler_c_o=no
9067 $rm -r conftest 2>/dev/null
9071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9073 lt_compiler_flag="-o out/conftest2.$ac_objext"
9074 # Insert the option either (1) after the last *FLAGS variable, or
9075 # (2) before a word containing "conftest.", or (3) at the end.
9076 # Note that $ac_compile itself does not contain backslashes and begins
9077 # with a dollar sign (not a hyphen), so the echo should work correctly.
9078 lt_compile=`echo "$ac_compile" | $SED \
9079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081 -e 's:$: $lt_compiler_flag:'`
9082 (eval echo "\"\$as_me:9082: $lt_compile\"" >&5)
9083 (eval "$lt_compile" 2>out/conftest.err)
9085 cat out/conftest.err >&5
9086 echo "$as_me:9086: \$? = $ac_status" >&5
9087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9089 # The compiler can only warn and ignore the option if not recognized
9090 # So say no if there are warnings
9091 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler_c_o=yes
9099 # SGI C++ compiler will create directory out/ii_files/ for
9100 # template instantiation
9101 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9102 $rm out/* && rmdir out
9108 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9109 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9112 hard_links="nottested"
9113 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9114 # do not overwrite the value of need_locks provided by the user
9115 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9116 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9121 ln conftest.a conftest.b 2>&5 || hard_links=no
9122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9123 { echo "$as_me:$LINENO: result: $hard_links" >&5
9124 echo "${ECHO_T}$hard_links" >&6; }
9125 if test "$hard_links" = no; then
9126 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9127 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9134 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9135 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9138 allow_undefined_flag=
9139 enable_shared_with_static_runtimes=no
9141 archive_expsym_cmds=
9142 old_archive_From_new_cmds=
9143 old_archive_from_expsyms_cmds=
9144 export_dynamic_flag_spec=
9145 whole_archive_flag_spec=
9146 thread_safe_flag_spec=
9147 hardcode_libdir_flag_spec=
9148 hardcode_libdir_flag_spec_ld=
9149 hardcode_libdir_separator=
9152 hardcode_shlibpath_var=unsupported
9153 link_all_deplibs=unknown
9154 hardcode_automatic=no
9157 always_export_symbols=no
9158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9159 # include_expsyms should be a list of space-separated symbols to be *always*
9160 # included in the symbol list
9162 # exclude_expsyms can be an extended regexp of symbols to exclude
9163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9165 # as well as any symbol that contains `d'.
9166 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9168 # platforms (ab)use it in PIC code, but their linkers get confused if
9169 # the symbol is explicitly referenced. Since portable code cannot
9170 # rely on this symbol name, it's probably fine to never include it in
9171 # preloaded symbol tables.
9172 extract_expsyms_cmds=
9173 # Just being paranoid about ensuring that cc_basename is set.
9174 for cc_temp in $compiler""; do
9176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9182 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9185 cygwin* | mingw* | pw32*)
9186 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9187 # When not using gcc, we currently assume that we are using
9188 # Microsoft Visual C++.
9189 if test "$GCC" != yes; then
9194 # we just hope/assume this is gcc and not c89 (= MSVC++)
9203 if test "$with_gnu_ld" = yes; then
9204 # If archive_cmds runs LD, not CC, wlarc should be empty
9207 # Set some defaults for GNU ld with shared library support. These
9208 # are reset later if shared libraries are not supported. Putting them
9209 # here allows them to be overridden if necessary.
9210 runpath_var=LD_RUN_PATH
9211 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9212 export_dynamic_flag_spec='${wl}--export-dynamic'
9213 # ancient GNU ld didn't support --whole-archive et. al.
9214 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9215 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9217 whole_archive_flag_spec=
9219 supports_anon_versioning=no
9220 case `$LD -v 2>/dev/null` in
9221 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9222 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9223 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9224 *\ 2.11.*) ;; # other 2.11 versions
9225 *) supports_anon_versioning=yes ;;
9228 # See if GNU ld supports shared libraries.
9230 aix3* | aix4* | aix5*)
9231 # On AIX/PPC, the GNU linker is very broken
9232 if test "$host_cpu" != ia64; then
9236 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9237 *** to be unable to reliably create shared libraries on AIX.
9238 *** Therefore, libtool is disabling shared libraries support. If you
9239 *** really care for shared libraries, you may want to modify your PATH
9240 *** so that a non-GNU linker is found, and then restart.
9247 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)'
9248 hardcode_libdir_flag_spec='-L$libdir'
9249 hardcode_minus_L=yes
9251 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9252 # that the semantics of dynamic libraries on AmigaOS, at least up
9253 # to version 4, is to share data among multiple programs linked
9254 # with the same dynamic library. Since this doesn't match the
9255 # behavior of shared libraries on other platforms, we can't use
9261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9262 allow_undefined_flag=unsupported
9263 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9264 # support --undefined. This deserves some investigation. FIXME
9265 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271 cygwin* | mingw* | pw32*)
9272 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9273 # as there is no search path for DLLs.
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 allow_undefined_flag=unsupported
9276 always_export_symbols=no
9277 enable_shared_with_static_runtimes=yes
9278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9280 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9282 # If the export-symbols file already is a .def file (1st line
9283 # is EXPORTS), use it as is; otherwise, prepend...
9284 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9285 cp $export_symbols $output_objdir/$soname.def;
9287 echo EXPORTS > $output_objdir/$soname.def;
9288 cat $export_symbols >> $output_objdir/$soname.def;
9290 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9298 hardcode_shlibpath_var=no
9299 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9300 export_dynamic_flag_spec='${wl}-E'
9301 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9302 # Instead, shared libraries are loaded at an image base (0x10000000 by
9303 # default) and relocated if they conflict, which is a slow very memory
9304 # consuming and fragmenting process. To avoid this, we pick a random,
9305 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9306 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9307 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9308 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'
9311 linux* | k*bsd*-gnu)
9312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9314 case $cc_basename,$host_cpu in
9315 pgcc*) # Portland Group C compiler
9316 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'
9317 tmp_addflag=' $pic_flag'
9319 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9320 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'
9321 tmp_addflag=' $pic_flag -Mnomain' ;;
9322 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9323 tmp_addflag=' -i_dynamic' ;;
9324 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9325 tmp_addflag=' -i_dynamic -nofor_main' ;;
9326 ifc* | ifort*) # Intel Fortran compiler
9327 tmp_addflag=' -nofor_main' ;;
9329 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 if test $supports_anon_versioning = yes; then
9332 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 $echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9343 netbsd* | netbsdelf*-gnu)
9344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9345 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9359 *** create shared libraries on Solaris systems. Therefore, libtool
9360 *** is disabling shared libraries support. We urge you to upgrade GNU
9361 *** binutils to release 2.9.1 or newer. Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9366 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9375 case `$LD -v 2>&1` in
9376 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9381 *** reliably create shared libraries on SCO systems. Therefore, libtool
9382 *** is disabling shared libraries support. We urge you to upgrade GNU
9383 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9384 *** your PATH or compiler configuration so that the native linker is
9385 *** used, and then restart.
9390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9391 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9402 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_shlibpath_var=no
9409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418 if test "$ld_shlibs" = no; then
9420 hardcode_libdir_flag_spec=
9421 export_dynamic_flag_spec=
9422 whole_archive_flag_spec=
9425 # PORTME fill in a description of your system's linker (not GNU ld)
9428 allow_undefined_flag=unsupported
9429 always_export_symbols=yes
9430 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'
9431 # Note: this linker hardcodes the directories in LIBPATH if there
9432 # are no directories specified by -L.
9433 hardcode_minus_L=yes
9434 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9435 # Neither direct hardcoding nor static linking is supported with a
9437 hardcode_direct=unsupported
9442 if test "$host_cpu" = ia64; then
9443 # On IA64, the linker does run time linking by default, so we don't
9444 # have to do anything special.
9445 aix_use_runtimelinking=no
9446 exp_sym_flag='-Bexport'
9449 # If we're using GNU nm, then we don't want the "-C" option.
9450 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9451 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9452 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'
9454 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'
9456 aix_use_runtimelinking=no
9458 # Test if we are trying to use run time linking or normal
9459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9460 # need to do runtime linking.
9461 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9462 for ld_flag in $LDFLAGS; do
9463 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9464 aix_use_runtimelinking=yes
9471 exp_sym_flag='-bexport'
9472 no_entry_flag='-bnoentry'
9475 # When large executables or shared objects are built, AIX ld can
9476 # have problems creating the table of contents. If linking a library
9477 # or program results in "error TOC overflow" add -mminimal-toc to
9478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9483 hardcode_libdir_separator=':'
9484 link_all_deplibs=yes
9486 if test "$GCC" = yes; then
9487 case $host_os in aix4.[012]|aix4.[012].*)
9488 # We only want to do this on AIX 4.2 and lower, the check
9489 # below for broken collect2 doesn't work under 4.3+
9490 collect2name=`${CC} -print-prog-name=collect2`
9491 if test -f "$collect2name" && \
9492 strings "$collect2name" | grep resolve_lib_name >/dev/null
9494 # We have reworked collect2
9497 # We have old collect2
9498 hardcode_direct=unsupported
9499 # It fails to find uninstalled libraries when the uninstalled
9500 # path is not listed in the libpath. Setting hardcode_minus_L
9501 # to unsupported forces relinking
9502 hardcode_minus_L=yes
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_libdir_separator=
9508 shared_flag='-shared'
9509 if test "$aix_use_runtimelinking" = yes; then
9510 shared_flag="$shared_flag "'${wl}-G'
9514 if test "$host_cpu" = ia64; then
9515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9516 # chokes on -Wl,-G. The following line is correct:
9519 if test "$aix_use_runtimelinking" = yes; then
9520 shared_flag='${wl}-G'
9522 shared_flag='${wl}-bM:SRE'
9527 # It seems that -bexpall does not export symbols beginning with
9528 # underscore (_), so it is better to generate a list of symbols to export.
9529 always_export_symbols=yes
9530 if test "$aix_use_runtimelinking" = yes; then
9531 # Warning - without using the other runtime loading flags (-brtl),
9532 # -berok will link without error, but may produce a broken library.
9533 allow_undefined_flag='-berok'
9534 # Determine the default libpath from the value encoded in an empty executable.
9535 cat >conftest.$ac_ext <<_ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_link") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1 >conftest.err
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest$ac_exeext &&
9567 $as_test_x conftest$ac_exeext; then
9569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9571 # Check for a 64-bit object if we didn't find anything.
9572 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; }
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9582 conftest$ac_exeext conftest.$ac_ext
9583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9585 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9586 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"
9588 if test "$host_cpu" = ia64; then
9589 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9590 allow_undefined_flag="-z nodefs"
9591 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"
9593 # Determine the default libpath from the value encoded in an empty executable.
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest$ac_exeext &&
9626 $as_test_x conftest$ac_exeext; then
9628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9630 # Check for a 64-bit object if we didn't find anything.
9631 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; }
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641 conftest$ac_exeext conftest.$ac_ext
9642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9645 # Warning - without using the other run time loading flags,
9646 # -berok will link without error, but may produce a broken library.
9647 no_undefined_flag=' ${wl}-bernotok'
9648 allow_undefined_flag=' ${wl}-berok'
9649 # Exported symbols can be pulled into shared objects from archives
9650 whole_archive_flag_spec='$convenience'
9651 archive_cmds_need_lc=yes
9652 # This is similar to how AIX traditionally builds its shared libraries.
9653 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'
9659 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)'
9660 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_minus_L=yes
9662 # see comment about different semantics on the GNU ld section
9667 export_dynamic_flag_spec=-rdynamic
9670 cygwin* | mingw* | pw32*)
9671 # When not using gcc, we currently assume that we are using
9672 # Microsoft Visual C++.
9673 # hardcode_libdir_flag_spec is actually meaningless, as there is
9674 # no search path for DLLs.
9675 hardcode_libdir_flag_spec=' '
9676 allow_undefined_flag=unsupported
9677 # Tell ltmain to make .lib files, not .a files.
9679 # Tell ltmain to make .dll files, not .so files.
9681 # FIXME: Setting linknames here is a bad hack.
9682 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9683 # The linker will automatically build a .lib file if we build a DLL.
9684 old_archive_From_new_cmds='true'
9685 # FIXME: Should let the user specify the lib program.
9686 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9687 fix_srcfile_path='`cygpath -w "$srcfile"`'
9688 enable_shared_with_static_runtimes=yes
9691 darwin* | rhapsody*)
9693 rhapsody* | darwin1.[012])
9694 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9697 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9698 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9700 case ${MACOSX_DEPLOYMENT_TARGET} in
9702 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9705 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9711 archive_cmds_need_lc=no
9713 hardcode_automatic=yes
9714 hardcode_shlibpath_var=unsupported
9715 whole_archive_flag_spec=''
9716 link_all_deplibs=yes
9717 if test "$GCC" = yes ; then
9718 output_verbose_link_cmd='echo'
9719 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9720 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9722 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}'
9723 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}'
9725 case $cc_basename in
9727 output_verbose_link_cmd='echo'
9728 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9729 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9731 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}'
9732 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}'
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_shlibpath_var=no
9751 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9752 # support. Future versions do this automatically, but an explicit c++rt0.o
9753 # does not break anything, and helps significantly (at the cost of a little
9756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9757 hardcode_libdir_flag_spec='-R$libdir'
9759 hardcode_shlibpath_var=no
9762 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_minus_L=yes
9767 hardcode_shlibpath_var=no
9770 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9771 freebsd* | dragonfly*)
9772 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9773 hardcode_libdir_flag_spec='-R$libdir'
9775 hardcode_shlibpath_var=no
9779 if test "$GCC" = yes; then
9780 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'
9782 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'
9784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9785 hardcode_libdir_separator=:
9788 # hardcode_minus_L: Not really in the search PATH,
9789 # but as the default location of the library.
9790 hardcode_minus_L=yes
9791 export_dynamic_flag_spec='${wl}-E'
9795 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9800 if test "$with_gnu_ld" = no; then
9801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9802 hardcode_libdir_separator=:
9805 export_dynamic_flag_spec='${wl}-E'
9807 # hardcode_minus_L: Not really in the search PATH,
9808 # but as the default location of the library.
9809 hardcode_minus_L=yes
9814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9835 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9839 if test "$with_gnu_ld" = no; then
9840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841 hardcode_libdir_separator=:
9845 hardcode_libdir_flag_spec_ld='+b $libdir'
9847 hardcode_shlibpath_var=no
9851 export_dynamic_flag_spec='${wl}-E'
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L=yes
9861 irix5* | irix6* | nonstopux*)
9862 if test "$GCC" = yes; then
9863 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'
9865 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'
9866 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9869 hardcode_libdir_separator=:
9870 link_all_deplibs=yes
9873 netbsd* | netbsdelf*-gnu)
9874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9877 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9879 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_shlibpath_var=no
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9888 hardcode_libdir_separator=:
9889 hardcode_shlibpath_var=no
9894 hardcode_shlibpath_var=no
9895 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9899 export_dynamic_flag_spec='${wl}-E'
9902 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_libdir_flag_spec='-R$libdir'
9907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9915 hardcode_libdir_flag_spec='-L$libdir'
9916 hardcode_minus_L=yes
9917 allow_undefined_flag=unsupported
9918 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'
9919 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9923 if test "$GCC" = yes; then
9924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9925 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'
9927 allow_undefined_flag=' -expect_unresolved \*'
9928 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'
9930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9931 hardcode_libdir_separator=:
9934 osf4* | osf5*) # as osf3* with the addition of -msym flag
9935 if test "$GCC" = yes; then
9936 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9937 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'
9938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9940 allow_undefined_flag=' -expect_unresolved \*'
9941 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'
9942 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9943 $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'
9945 # Both c and cxx compiler support -rpath directly
9946 hardcode_libdir_flag_spec='-rpath $libdir'
9948 hardcode_libdir_separator=:
9952 no_undefined_flag=' -z text'
9953 if test "$GCC" = yes; then
9955 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9957 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9960 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9964 hardcode_libdir_flag_spec='-R$libdir'
9965 hardcode_shlibpath_var=no
9967 solaris2.[0-5] | solaris2.[0-5].*) ;;
9969 # The compiler driver will combine linker options so we
9970 # cannot just pass the convience library names through
9971 # without $wl, iff we do not link with $LD.
9972 # Luckily, gcc supports the same syntax we need for Sun Studio.
9973 # Supported since Solaris 2.6 (maybe 2.5.1?)
9976 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9978 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' ;;
9981 link_all_deplibs=yes
9985 if test "x$host_vendor" = xsequent; then
9986 # Use $CC to link under sequent, because it throws in some extra .o
9987 # files that make .init and .fini sections work.
9988 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_libdir_flag_spec='-L$libdir'
9994 hardcode_minus_L=yes
9995 hardcode_shlibpath_var=no
9999 case $host_vendor in
10001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_direct=yes # is this really true???
10005 ## LD is ld it makes a PLAMLIB
10006 ## CC just makes a GrossModule.
10007 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10008 reload_cmds='$CC -r -o $output$reload_objs'
10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10016 runpath_var='LD_RUN_PATH'
10017 hardcode_shlibpath_var=no
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_shlibpath_var=no
10023 export_dynamic_flag_spec='-Bexport'
10027 if test -d /usr/nec; then
10028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_shlibpath_var=no
10030 runpath_var=LD_RUN_PATH
10031 hardcode_runpath_var=yes
10036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10037 no_undefined_flag='${wl}-z,text'
10038 archive_cmds_need_lc=no
10039 hardcode_shlibpath_var=no
10040 runpath_var='LD_RUN_PATH'
10042 if test "$GCC" = yes; then
10043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 sysv5* | sco3.2v5* | sco5v6*)
10052 # Note: We can NOT use -z defs as we might desire, because we do not
10053 # link with -lc, and that would cause any symbols used from libc to
10054 # always be unresolved, which means just about no library would
10055 # ever link correctly. If we're not using GNU ld we use -z text
10056 # though, which does catch some bad symbols but isn't as heavy-handed
10058 no_undefined_flag='${wl}-z,text'
10059 allow_undefined_flag='${wl}-z,nodefs'
10060 archive_cmds_need_lc=no
10061 hardcode_shlibpath_var=no
10062 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10063 hardcode_libdir_separator=':'
10064 link_all_deplibs=yes
10065 export_dynamic_flag_spec='${wl}-Bexport'
10066 runpath_var='LD_RUN_PATH'
10068 if test "$GCC" = yes; then
10069 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079 hardcode_libdir_flag_spec='-L$libdir'
10080 hardcode_shlibpath_var=no
10089 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10090 echo "${ECHO_T}$ld_shlibs" >&6; }
10091 test "$ld_shlibs" = no && can_build_shared=no
10094 # Do we need to explicitly link libc?
10096 case "x$archive_cmds_need_lc" in
10098 # Assume -lc should be added
10099 archive_cmds_need_lc=yes
10101 if test "$enable_shared" = yes && test "$GCC" = yes; then
10102 case $archive_cmds in
10104 # FIXME: we may have to deal with multi-command sequences.
10107 # Test whether the compiler implicitly links with -lc since on some
10108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10109 # to ld, don't add -lc before -lgcc.
10110 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10111 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116 (eval $ac_compile) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } 2>conftest.err; then
10122 libobjs=conftest.$ac_objext
10124 wl=$lt_prog_compiler_wl
10125 pic_flag=$lt_prog_compiler_pic
10131 lt_save_allow_undefined_flag=$allow_undefined_flag
10132 allow_undefined_flag=
10133 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10134 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }
10139 archive_cmds_need_lc=no
10141 archive_cmds_need_lc=yes
10143 allow_undefined_flag=$lt_save_allow_undefined_flag
10145 cat conftest.err 1>&5
10148 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10149 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10156 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10157 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10158 library_names_spec=
10159 libname_spec='lib$name'
10163 postuninstall_cmds=
10167 shlibpath_overrides_runpath=unknown
10169 dynamic_linker="$host_os ld.so"
10170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10171 if test "$GCC" = yes; then
10172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10173 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10174 # if the path contains ";" then we assume it to be the separator
10175 # otherwise default to the standard path separator (i.e. ":") - it is
10176 # assumed that no part of a normal pathname contains ";" but that should
10177 # okay in the real world where ";" in dirpaths is itself problematic.
10178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10185 need_lib_prefix=unknown
10186 hardcode_into_libs=no
10188 # when you set need_version to no, make sure it does not cause -set_version
10189 # flags to be left without arguments
10190 need_version=unknown
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10196 shlibpath_var=LIBPATH
10198 # AIX 3 has no versioning support, so we append a major version to the name.
10199 soname_spec='${libname}${release}${shared_ext}$major'
10206 hardcode_into_libs=yes
10207 if test "$host_cpu" = ia64; then
10208 # AIX 5 supports IA64
10209 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10210 shlibpath_var=LD_LIBRARY_PATH
10212 # With GCC up to 2.95.x, collect2 would create an import file
10213 # for dependence libraries. The import file would start with
10214 # the line `#! .'. This would cause the generated library to
10215 # depend on `.', always an invalid library. This was fixed in
10216 # development snapshots of GCC prior to 3.0.
10218 aix4 | aix4.[01] | aix4.[01].*)
10219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10221 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10224 can_build_shared=no
10228 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10229 # soname into executable. Probably we can add versioning support to
10230 # collect2, so additional links can be useful in future.
10231 if test "$aix_use_runtimelinking" = yes; then
10232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10233 # instead of lib<name>.a to let people know that these are not
10234 # typical AIX shared libraries.
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 # We preserve .a as extension for shared libraries through AIX4.2
10238 # and later when we are not doing run time linking.
10239 library_names_spec='${libname}${release}.a $libname.a'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LIBPATH
10247 library_names_spec='$libname.ixlibrary $libname.a'
10248 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10249 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'
10253 library_names_spec='${libname}${shared_ext}'
10254 dynamic_linker="$host_os ld.so"
10255 shlibpath_var=LIBRARY_PATH
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10266 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10267 # the default ld.so.conf also contains /usr/contrib/lib and
10268 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10269 # libtool to hard-code these into programs
10272 cygwin* | mingw* | pw32*)
10273 version_type=windows
10278 case $GCC,$host_os in
10279 yes,cygwin* | yes,mingw* | yes,pw32*)
10280 library_names_spec='$libname.dll.a'
10281 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10282 postinstall_cmds='base_file=`basename \${file}`~
10283 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10284 dldir=$destdir/`dirname \$dlpath`~
10285 test -d \$dldir || mkdir -p \$dldir~
10286 $install_prog $dir/$dlname \$dldir/$dlname~
10287 chmod a+x \$dldir/$dlname'
10288 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10289 dlpath=$dir/\$dldll~
10291 shlibpath_overrides_runpath=yes
10295 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10296 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10297 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10300 # MinGW DLLs use traditional 'lib' prefix
10301 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10303 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10304 # It is most probably a Windows format PATH printed by
10305 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10306 # path with ; separators, and with drive letters. We can handle the
10307 # drive letters (cygwin fileutils understands them), so leave them,
10308 # especially as we might pass files found there to a mingw objdump,
10309 # which wouldn't understand a cygwinified path. Ahh.
10310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10316 # pw32 DLLs use 'pw' prefix rather than 'lib'
10317 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10323 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10326 dynamic_linker='Win32 ld.exe'
10327 # FIXME: first we should search . and the directory the executable is in
10331 darwin* | rhapsody*)
10332 dynamic_linker="$host_os dyld"
10333 version_type=darwin
10336 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10337 soname_spec='${libname}${release}${major}$shared_ext'
10338 shlibpath_overrides_runpath=yes
10339 shlibpath_var=DYLD_LIBRARY_PATH
10340 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10341 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10342 if test "$GCC" = yes; then
10343 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"`
10345 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10363 freebsd* | dragonfly*)
10364 # DragonFly does not have aout. When/if they implement a new
10365 # versioning mechanism, adjust this.
10366 if test -x /usr/bin/objformat; then
10367 objformat=`/usr/bin/objformat`
10370 freebsd[123]*) objformat=aout ;;
10371 *) objformat=elf ;;
10374 version_type=freebsd-$objformat
10375 case $version_type in
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10386 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=yes
10391 freebsd3.[01]* | freebsdelf3.[01]*)
10392 shlibpath_overrides_runpath=yes
10393 hardcode_into_libs=yes
10395 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10396 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10397 shlibpath_overrides_runpath=no
10398 hardcode_into_libs=yes
10400 freebsd*) # from 4.6 on
10401 shlibpath_overrides_runpath=yes
10402 hardcode_into_libs=yes
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 hardcode_into_libs=yes
10417 hpux9* | hpux10* | hpux11*)
10418 # Give a soname corresponding to the major version so that dld.sl refuses to
10419 # link against other versions.
10426 hardcode_into_libs=yes
10427 dynamic_linker="$host_os dld.so"
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 if test "X$HPUX_IA64_MODE" = X32; then
10433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10441 hardcode_into_libs=yes
10442 dynamic_linker="$host_os dld.sl"
10443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10452 dynamic_linker="$host_os dld.sl"
10453 shlibpath_var=SHLIB_PATH
10454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10459 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10460 postinstall_cmds='chmod 555 $lib'
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=no
10472 hardcode_into_libs=yes
10475 irix5* | irix6* | nonstopux*)
10477 nonstopux*) version_type=nonstopux ;;
10479 if test "$lt_cv_prog_gnu_ld" = yes; then
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10490 irix5* | nonstopux*)
10491 libsuff= shlibsuff=
10494 case $LD in # libtool.m4 will add one of these switches to LD
10495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10496 libsuff= shlibsuff= libmagic=32-bit;;
10497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10498 libsuff=32 shlibsuff=N32 libmagic=N32;;
10499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10500 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10501 *) libsuff= shlibsuff= libmagic=never-match;;
10505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10506 shlibpath_overrides_runpath=no
10507 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10508 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10509 hardcode_into_libs=yes
10512 # No shared lib support for Linux oldld, aout, or coff.
10513 linux*oldld* | linux*aout* | linux*coff*)
10517 # This must be Linux ELF.
10518 linux* | k*bsd*-gnu)
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 shlibpath_overrides_runpath=no
10527 # This implies no fast_install, which is unacceptable.
10528 # Some rework will be needed to allow for fast_install
10529 # before this can be enabled.
10530 hardcode_into_libs=yes
10532 # Append ld.so.conf contents to the search path
10533 if test -f /etc/ld.so.conf; then
10534 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' ' '`
10535 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10538 # We used to test for /lib/ld.so.1 and disable shared libraries on
10539 # powerpc, because MkLinux only supported shared libraries with the
10540 # GNU dynamic linker. Since this was broken with cross compilers,
10541 # most powerpc-linux boxes support dynamic linking these days and
10542 # people can always --disable-shared, the test was removed, and we
10543 # assume the GNU/Linux dynamic linker is in use.
10544 dynamic_linker='GNU/Linux ld.so'
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=no
10555 hardcode_into_libs=yes
10556 dynamic_linker='NetBSD ld.elf_so'
10563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10566 dynamic_linker='NetBSD (a.out) ld.so'
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 dynamic_linker='NetBSD ld.elf_so'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes
10574 hardcode_into_libs=yes
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 shlibpath_overrides_runpath=yes
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589 soname_spec='${libname}${release}${shared_ext}$major'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes
10596 sys_lib_dlsearch_path_spec="/usr/lib"
10598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10600 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10601 *) need_version=no ;;
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10608 openbsd2.[89] | openbsd2.[89].*)
10609 shlibpath_overrides_runpath=no
10612 shlibpath_overrides_runpath=yes
10616 shlibpath_overrides_runpath=yes
10621 libname_spec='$name'
10624 library_names_spec='$libname${shared_ext} $libname.a'
10625 dynamic_linker='OS/2 ld.exe'
10626 shlibpath_var=LIBPATH
10629 osf3* | osf4* | osf5*)
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=yes
10648 hardcode_into_libs=yes
10649 # ldd complains unless libraries are executable
10650 postinstall_cmds='chmod +x $lib'
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=yes
10659 if test "$with_gnu_ld" = yes; then
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 soname_spec='${libname}${release}${shared_ext}$major'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 case $host_vendor in
10672 shlibpath_overrides_runpath=no
10674 export_dynamic_flag_spec='${wl}-Blargedynsym'
10675 runpath_var=LD_RUN_PATH
10683 shlibpath_overrides_runpath=no
10684 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10690 if test -d /usr/nec ;then
10692 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10693 soname_spec='$libname${shared_ext}.$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10699 version_type=freebsd-elf
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 hardcode_into_libs=yes
10706 if test "$with_gnu_ld" = yes; then
10707 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10708 shlibpath_overrides_runpath=no
10710 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10711 shlibpath_overrides_runpath=yes
10714 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10718 sys_lib_dlsearch_path_spec='/usr/lib'
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10732 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10733 echo "${ECHO_T}$dynamic_linker" >&6; }
10734 test "$dynamic_linker" = no && can_build_shared=no
10736 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10737 if test "$GCC" = yes; then
10738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10741 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10742 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10744 if test -n "$hardcode_libdir_flag_spec" || \
10745 test -n "$runpath_var" || \
10746 test "X$hardcode_automatic" = "Xyes" ; then
10748 # We can hardcode non-existant directories.
10749 if test "$hardcode_direct" != no &&
10750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10751 # have to relink, otherwise we might link with an installed library
10752 # when we should be linking with a yet-to-be-installed one
10753 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10754 test "$hardcode_minus_L" != no; then
10755 # Linking always hardcodes the temporary library directory.
10756 hardcode_action=relink
10758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10759 hardcode_action=immediate
10762 # We cannot hardcode anything, or else we can only hardcode existing
10764 hardcode_action=unsupported
10766 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10767 echo "${ECHO_T}$hardcode_action" >&6; }
10769 if test "$hardcode_action" = relink; then
10770 # Fast installation is not supported
10771 enable_fast_install=no
10772 elif test "$shlibpath_overrides_runpath" = yes ||
10773 test "$enable_shared" = no; then
10774 # Fast installation is not necessary
10775 enable_fast_install=needless
10780 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10781 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10782 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10783 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10784 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10785 { echo "$as_me:$LINENO: result: yes" >&5
10786 echo "${ECHO_T}yes" >&6; }
10788 # FIXME - insert some real tests, host_os isn't really good enough
10791 if test -n "$STRIP" ; then
10792 striplib="$STRIP -x"
10793 { echo "$as_me:$LINENO: result: yes" >&5
10794 echo "${ECHO_T}yes" >&6; }
10796 { echo "$as_me:$LINENO: result: no" >&5
10797 echo "${ECHO_T}no" >&6; }
10801 { echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6; }
10807 if test "x$enable_dlopen" != xyes; then
10808 enable_dlopen=unknown
10809 enable_dlopen_self=unknown
10810 enable_dlopen_self_static=unknown
10817 lt_cv_dlopen="load_add_on"
10819 lt_cv_dlopen_self=yes
10823 lt_cv_dlopen="LoadLibrary"
10828 lt_cv_dlopen="dlopen"
10833 # if libdl is installed we need to link against it
10834 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 ac_check_lib_save_LIBS=$LIBS
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_link") 2>conftest.er1
10872 grep -v '^ *+' conftest.er1 >conftest.err
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } && {
10877 test -z "$ac_c_werror_flag" ||
10878 test ! -s conftest.err
10879 } && test -s conftest$ac_exeext &&
10880 $as_test_x conftest$ac_exeext; then
10881 ac_cv_lib_dl_dlopen=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_lib_dl_dlopen=no
10889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10895 if test $ac_cv_lib_dl_dlopen = yes; then
10896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10899 lt_cv_dlopen="dyld"
10901 lt_cv_dlopen_self=yes
10908 { echo "$as_me:$LINENO: checking for shl_load" >&5
10909 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10910 if test "${ac_cv_func_shl_load+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 cat >conftest.$ac_ext <<_ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10921 #define shl_load innocuous_shl_load
10923 /* System header to define __stub macros and hopefully few prototypes,
10924 which can conflict with char shl_load (); below.
10925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10926 <limits.h> exists even on freestanding compilers. */
10929 # include <limits.h>
10931 # include <assert.h>
10936 /* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10943 /* The GNU C library defines this for functions which it implements
10944 to always fail with ENOSYS. Some functions are actually named
10945 something starting with __ and the normal name is an alias. */
10946 #if defined __stub_shl_load || defined __stub___shl_load
10953 return shl_load ();
10958 rm -f conftest.$ac_objext conftest$ac_exeext
10959 if { (ac_try="$ac_link"
10960 case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_link") 2>conftest.er1
10967 grep -v '^ *+' conftest.er1 >conftest.err
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && {
10972 test -z "$ac_c_werror_flag" ||
10973 test ! -s conftest.err
10974 } && test -s conftest$ac_exeext &&
10975 $as_test_x conftest$ac_exeext; then
10976 ac_cv_func_shl_load=yes
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_cv_func_shl_load=no
10984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10985 conftest$ac_exeext conftest.$ac_ext
10987 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10988 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10989 if test $ac_cv_func_shl_load = yes; then
10990 lt_cv_dlopen="shl_load"
10992 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10993 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10994 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 ac_check_lib_save_LIBS=$LIBS
10999 cat >conftest.$ac_ext <<_ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11016 return shl_load ();
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (ac_try="$ac_link"
11023 case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_link") 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } && {
11035 test -z "$ac_c_werror_flag" ||
11036 test ! -s conftest.err
11037 } && test -s conftest$ac_exeext &&
11038 $as_test_x conftest$ac_exeext; then
11039 ac_cv_lib_dld_shl_load=yes
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_cv_lib_dld_shl_load=no
11047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11051 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11052 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11053 if test $ac_cv_lib_dld_shl_load = yes; then
11054 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11056 { echo "$as_me:$LINENO: checking for dlopen" >&5
11057 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11058 if test "${ac_cv_func_dlopen+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11069 #define dlopen innocuous_dlopen
11071 /* System header to define __stub macros and hopefully few prototypes,
11072 which can conflict with char dlopen (); below.
11073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11074 <limits.h> exists even on freestanding compilers. */
11077 # include <limits.h>
11079 # include <assert.h>
11084 /* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11091 /* The GNU C library defines this for functions which it implements
11092 to always fail with ENOSYS. Some functions are actually named
11093 something starting with __ and the normal name is an alias. */
11094 #if defined __stub_dlopen || defined __stub___dlopen
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (ac_try="$ac_link"
11108 case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_link") 2>conftest.er1
11115 grep -v '^ *+' conftest.er1 >conftest.err
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest$ac_exeext &&
11123 $as_test_x conftest$ac_exeext; then
11124 ac_cv_func_dlopen=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 ac_cv_func_dlopen=no
11132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11133 conftest$ac_exeext conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11136 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11137 if test $ac_cv_func_dlopen = yes; then
11138 lt_cv_dlopen="dlopen"
11140 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11141 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 ac_check_lib_save_LIBS=$LIBS
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_link") 2>conftest.er1
11178 grep -v '^ *+' conftest.er1 >conftest.err
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest$ac_exeext &&
11186 $as_test_x conftest$ac_exeext; then
11187 ac_cv_lib_dl_dlopen=yes
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11192 ac_cv_lib_dl_dlopen=no
11195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11196 conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_lib_save_LIBS
11199 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11200 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11201 if test $ac_cv_lib_dl_dlopen = yes; then
11202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11204 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11205 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11206 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 ac_check_lib_save_LIBS=$LIBS
11210 LIBS="-lsvld $LIBS"
11211 cat >conftest.$ac_ext <<_ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (ac_try="$ac_link"
11235 case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_link") 2>conftest.er1
11242 grep -v '^ *+' conftest.er1 >conftest.err
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } && {
11247 test -z "$ac_c_werror_flag" ||
11248 test ! -s conftest.err
11249 } && test -s conftest$ac_exeext &&
11250 $as_test_x conftest$ac_exeext; then
11251 ac_cv_lib_svld_dlopen=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_cv_lib_svld_dlopen=no
11259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_lib_save_LIBS
11263 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11264 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11265 if test $ac_cv_lib_svld_dlopen = yes; then
11266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11268 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11269 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11270 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 ac_check_lib_save_LIBS=$LIBS
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11292 return dld_link ();
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (ac_try="$ac_link"
11299 case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_link") 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest$ac_exeext &&
11314 $as_test_x conftest$ac_exeext; then
11315 ac_cv_lib_dld_dld_link=yes
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 ac_cv_lib_dld_dld_link=no
11323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11324 conftest$ac_exeext conftest.$ac_ext
11325 LIBS=$ac_check_lib_save_LIBS
11327 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11328 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11329 if test $ac_cv_lib_dld_dld_link = yes; then
11330 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11351 if test "x$lt_cv_dlopen" != xno; then
11357 case $lt_cv_dlopen in
11359 save_CPPFLAGS="$CPPFLAGS"
11360 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11362 save_LDFLAGS="$LDFLAGS"
11363 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11366 LIBS="$lt_cv_dlopen_libs $LIBS"
11368 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11369 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11370 if test "${lt_cv_dlopen_self+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 if test "$cross_compiling" = yes; then :
11374 lt_cv_dlopen_self=cross
11376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11377 lt_status=$lt_dlunknown
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11379 "configure"
11380 #include "confdefs.h"
11389 # define LT_DLGLOBAL RTLD_GLOBAL
11392 # define LT_DLGLOBAL DL_GLOBAL
11394 # define LT_DLGLOBAL 0
11398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11399 find out it does not work in some platform. */
11400 #ifndef LT_DLLAZY_OR_NOW
11402 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11405 # define LT_DLLAZY_OR_NOW DL_LAZY
11408 # define LT_DLLAZY_OR_NOW RTLD_NOW
11411 # define LT_DLLAZY_OR_NOW DL_NOW
11413 # define LT_DLLAZY_OR_NOW 0
11421 extern "C" void exit (int);
11424 void fnord() { int i=42;}
11427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11428 int status = $lt_dlunknown;
11432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11433 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11434 /* dlclose (self); */
11442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11443 (eval $ac_link) 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11447 (./conftest; exit; ) >&5 2>/dev/null
11449 case x$lt_status in
11450 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11451 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11452 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11455 # compilation failed
11456 lt_cv_dlopen_self=no
11463 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11464 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11466 if test "x$lt_cv_dlopen_self" = xyes; then
11467 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11468 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11469 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11470 if test "${lt_cv_dlopen_self_static+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 if test "$cross_compiling" = yes; then :
11474 lt_cv_dlopen_self_static=cross
11476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11477 lt_status=$lt_dlunknown
11478 cat > conftest.$ac_ext <<EOF
11479 #line 11479 "configure"
11480 #include "confdefs.h"
11489 # define LT_DLGLOBAL RTLD_GLOBAL
11492 # define LT_DLGLOBAL DL_GLOBAL
11494 # define LT_DLGLOBAL 0
11498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11499 find out it does not work in some platform. */
11500 #ifndef LT_DLLAZY_OR_NOW
11502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11505 # define LT_DLLAZY_OR_NOW DL_LAZY
11508 # define LT_DLLAZY_OR_NOW RTLD_NOW
11511 # define LT_DLLAZY_OR_NOW DL_NOW
11513 # define LT_DLLAZY_OR_NOW 0
11521 extern "C" void exit (int);
11524 void fnord() { int i=42;}
11527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11528 int status = $lt_dlunknown;
11532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11534 /* dlclose (self); */
11542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543 (eval $ac_link) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11547 (./conftest; exit; ) >&5 2>/dev/null
11549 case x$lt_status in
11550 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11551 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11552 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11555 # compilation failed
11556 lt_cv_dlopen_self_static=no
11563 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11564 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11567 CPPFLAGS="$save_CPPFLAGS"
11568 LDFLAGS="$save_LDFLAGS"
11573 case $lt_cv_dlopen_self in
11574 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11575 *) enable_dlopen_self=unknown ;;
11578 case $lt_cv_dlopen_self_static in
11579 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11580 *) enable_dlopen_self_static=unknown ;;
11585 # Report which library types will actually be built
11586 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11587 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11588 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11589 echo "${ECHO_T}$can_build_shared" >&6; }
11591 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11592 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11593 test "$can_build_shared" = "no" && enable_shared=no
11595 # On AIX, shared libraries and static libraries use the same namespace, and
11596 # are all built from PIC.
11599 test "$enable_shared" = yes && enable_static=no
11600 if test -n "$RANLIB"; then
11601 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11602 postinstall_cmds='$RANLIB $lib'
11607 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11608 test "$enable_shared" = yes && enable_static=no
11612 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11613 echo "${ECHO_T}$enable_shared" >&6; }
11615 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11616 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11617 # Make sure either enable_shared or enable_static is yes.
11618 test "$enable_shared" = yes || enable_static=yes
11619 { echo "$as_me:$LINENO: result: $enable_static" >&5
11620 echo "${ECHO_T}$enable_static" >&6; }
11622 # The else clause should only fire when bootstrapping the
11623 # libtool distribution, otherwise you forgot to ship ltmain.sh
11624 # with your package, and you will get complaints that there are
11625 # no rules to generate ltmain.sh.
11626 if test -f "$ltmain"; then
11627 # See if we are running on zsh, and set the options which allow our commands through
11628 # without removal of \ escapes.
11629 if test -n "${ZSH_VERSION+set}" ; then
11630 setopt NO_GLOB_SUBST
11632 # Now quote all the things that may contain metacharacters while being
11633 # careful not to overquote the AC_SUBSTed values. We take copies of the
11634 # variables and quote the copies for generation of the libtool script.
11635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11639 deplibs_check_method reload_flag reload_cmds need_locks \
11640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11641 lt_cv_sys_global_symbol_to_c_name_address \
11642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11643 old_postinstall_cmds old_postuninstall_cmds \
11647 lt_prog_compiler_wl \
11648 lt_prog_compiler_pic \
11649 lt_prog_compiler_static \
11650 lt_prog_compiler_no_builtin_flag \
11651 export_dynamic_flag_spec \
11652 thread_safe_flag_spec \
11653 whole_archive_flag_spec \
11654 enable_shared_with_static_runtimes \
11656 old_archive_from_new_cmds \
11661 compiler_lib_search_path \
11663 archive_expsym_cmds \
11665 postuninstall_cmds \
11666 old_archive_from_expsyms_cmds \
11667 allow_undefined_flag \
11668 no_undefined_flag \
11669 export_symbols_cmds \
11670 hardcode_libdir_flag_spec \
11671 hardcode_libdir_flag_spec_ld \
11672 hardcode_libdir_separator \
11673 hardcode_automatic \
11675 module_expsym_cmds \
11676 lt_cv_prog_compiler_c_o \
11678 include_expsyms; do
11681 old_archive_cmds | \
11682 old_archive_from_new_cmds | \
11684 archive_expsym_cmds | \
11686 module_expsym_cmds | \
11687 old_archive_from_expsyms_cmds | \
11688 export_symbols_cmds | \
11689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11690 postinstall_cmds | postuninstall_cmds | \
11691 old_postinstall_cmds | old_postuninstall_cmds | \
11692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11693 # Double-quote double-evaled strings.
11694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11703 *'\$0 --fallback-echo"')
11704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11708 cfgfile="${ofile}T"
11709 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11711 { echo "$as_me:$LINENO: creating $ofile" >&5
11712 echo "$as_me: creating $ofile" >&6;}
11714 cat <<__EOF__ >> "$cfgfile"
11717 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11718 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11719 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11721 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11722 # Free Software Foundation, Inc.
11724 # This file is part of GNU Libtool:
11725 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11727 # This program is free software; you can redistribute it and/or modify
11728 # it under the terms of the GNU General Public License as published by
11729 # the Free Software Foundation; either version 2 of the License, or
11730 # (at your option) any later version.
11732 # This program is distributed in the hope that it will be useful, but
11733 # WITHOUT ANY WARRANTY; without even the implied warranty of
11734 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11735 # General Public License for more details.
11737 # You should have received a copy of the GNU General Public License
11738 # along with this program; if not, write to the Free Software
11739 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11741 # As a special exception to the GNU General Public License, if you
11742 # distribute this file as part of a program that contains a
11743 # configuration script generated by Autoconf, you may include it under
11744 # the same distribution terms that you use for the rest of that program.
11746 # A sed program that does not truncate output.
11749 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11750 Xsed="$SED -e 1s/^X//"
11752 # The HP-UX ksh and POSIX shell print the target directory to stdout
11753 # if CDPATH is set.
11754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11756 # The names of the tagged configurations supported by this script.
11759 # ### BEGIN LIBTOOL CONFIG
11761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11763 # Shell to use when invoking shell scripts.
11766 # Whether or not to build shared libraries.
11767 build_libtool_libs=$enable_shared
11769 # Whether or not to build static libraries.
11770 build_old_libs=$enable_static
11772 # Whether or not to add -lc for building shared libraries.
11773 build_libtool_need_lc=$archive_cmds_need_lc
11775 # Whether or not to disallow shared libs when runtime libs are static
11776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11778 # Whether or not to optimize for fast installation.
11779 fast_install=$enable_fast_install
11782 host_alias=$host_alias
11786 # The build system.
11787 build_alias=$build_alias
11791 # An echo program that does not interpret backslashes.
11796 AR_FLAGS=$lt_AR_FLAGS
11801 # LTCC compiler flags.
11802 LTCFLAGS=$lt_LTCFLAGS
11804 # A language-specific compiler.
11807 # Is the compiler the GNU C compiler?
11813 # The linker used to build libraries.
11816 # Whether we need hard or soft links.
11819 # A BSD-compatible nm program.
11822 # A symbol stripping program
11825 # Used to examine libraries when file_magic_cmd begins "file"
11826 MAGIC_CMD=$MAGIC_CMD
11828 # Used on cygwin: DLL creation program.
11831 # Used on cygwin: object dumper.
11834 # Used on cygwin: assembler.
11837 # The name of the directory that contains temporary libtool files.
11840 # How to create reloadable object files.
11841 reload_flag=$lt_reload_flag
11842 reload_cmds=$lt_reload_cmds
11844 # How to pass a linker flag through the compiler.
11845 wl=$lt_lt_prog_compiler_wl
11847 # Object file suffix (normally "o").
11848 objext="$ac_objext"
11850 # Old archive suffix (normally "a").
11853 # Shared library suffix (normally ".so").
11854 shrext_cmds='$shrext_cmds'
11856 # Executable file suffix (normally "").
11859 # Additional compiler flags for building library objects.
11860 pic_flag=$lt_lt_prog_compiler_pic
11863 # What is the maximum length of a command?
11864 max_cmd_len=$lt_cv_sys_max_cmd_len
11866 # Does compiler simultaneously support -c and -o options?
11867 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11869 # Must we lock files when doing compilation?
11870 need_locks=$lt_need_locks
11872 # Do we need the lib prefix for modules?
11873 need_lib_prefix=$need_lib_prefix
11875 # Do we need a version for libraries?
11876 need_version=$need_version
11878 # Whether dlopen is supported.
11879 dlopen_support=$enable_dlopen
11881 # Whether dlopen of programs is supported.
11882 dlopen_self=$enable_dlopen_self
11884 # Whether dlopen of statically linked programs is supported.
11885 dlopen_self_static=$enable_dlopen_self_static
11887 # Compiler flag to prevent dynamic linking.
11888 link_static_flag=$lt_lt_prog_compiler_static
11890 # Compiler flag to turn off builtin functions.
11891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11893 # Compiler flag to allow reflexive dlopens.
11894 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11896 # Compiler flag to generate shared objects directly from archives.
11897 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11899 # Compiler flag to generate thread-safe objects.
11900 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11902 # Library versioning type.
11903 version_type=$version_type
11905 # Format of library name prefix.
11906 libname_spec=$lt_libname_spec
11908 # List of archive names. First name is the real one, the rest are links.
11909 # The last name is the one that the linker finds with -lNAME.
11910 library_names_spec=$lt_library_names_spec
11912 # The coded name of the library, if different from the real name.
11913 soname_spec=$lt_soname_spec
11915 # Commands used to build and install an old-style archive.
11917 old_archive_cmds=$lt_old_archive_cmds
11918 old_postinstall_cmds=$lt_old_postinstall_cmds
11919 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11921 # Create an old-style archive from a shared archive.
11922 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11924 # Create a temporary old-style archive to link instead of a shared archive.
11925 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11927 # Commands used to build and install a shared archive.
11928 archive_cmds=$lt_archive_cmds
11929 archive_expsym_cmds=$lt_archive_expsym_cmds
11930 postinstall_cmds=$lt_postinstall_cmds
11931 postuninstall_cmds=$lt_postuninstall_cmds
11933 # Commands used to build a loadable module (assumed same as above if empty)
11934 module_cmds=$lt_module_cmds
11935 module_expsym_cmds=$lt_module_expsym_cmds
11937 # Commands to strip libraries.
11938 old_striplib=$lt_old_striplib
11939 striplib=$lt_striplib
11941 # Dependencies to place before the objects being linked to create a
11943 predep_objects=$lt_predep_objects
11945 # Dependencies to place after the objects being linked to create a
11947 postdep_objects=$lt_postdep_objects
11949 # Dependencies to place before the objects being linked to create a
11951 predeps=$lt_predeps
11953 # Dependencies to place after the objects being linked to create a
11955 postdeps=$lt_postdeps
11957 # The library search path used internally by the compiler when linking
11958 # a shared library.
11959 compiler_lib_search_path=$lt_compiler_lib_search_path
11961 # Method to check whether dependent libraries are shared objects.
11962 deplibs_check_method=$lt_deplibs_check_method
11964 # Command to use when deplibs_check_method == file_magic.
11965 file_magic_cmd=$lt_file_magic_cmd
11967 # Flag that allows shared libraries with undefined symbols to be built.
11968 allow_undefined_flag=$lt_allow_undefined_flag
11970 # Flag that forces no undefined symbols.
11971 no_undefined_flag=$lt_no_undefined_flag
11973 # Commands used to finish a libtool library installation in a directory.
11974 finish_cmds=$lt_finish_cmds
11976 # Same as above, but a single script fragment to be evaled but not shown.
11977 finish_eval=$lt_finish_eval
11979 # Take the output of nm and produce a listing of raw symbols and C names.
11980 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11982 # Transform the output of nm in a proper C declaration
11983 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11985 # Transform the output of nm in a C name address pair
11986 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11988 # This is the shared library runtime path variable.
11989 runpath_var=$runpath_var
11991 # This is the shared library path variable.
11992 shlibpath_var=$shlibpath_var
11994 # Is shlibpath searched before the hard-coded library search path?
11995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11997 # How to hardcode a shared library path into an executable.
11998 hardcode_action=$hardcode_action
12000 # Whether we should hardcode library paths into libraries.
12001 hardcode_into_libs=$hardcode_into_libs
12003 # Flag to hardcode \$libdir into a binary during linking.
12004 # This must work even if \$libdir does not exist.
12005 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12007 # If ld is used when linking, flag to hardcode \$libdir into
12008 # a binary during linking. This must work even if \$libdir does
12010 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12012 # Whether we need a single -rpath flag with a separated argument.
12013 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12015 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12016 # resulting binary.
12017 hardcode_direct=$hardcode_direct
12019 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12020 # resulting binary.
12021 hardcode_minus_L=$hardcode_minus_L
12023 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12024 # the resulting binary.
12025 hardcode_shlibpath_var=$hardcode_shlibpath_var
12027 # Set to yes if building a shared library automatically hardcodes DIR into the library
12028 # and all subsequent libraries and executables linked against it.
12029 hardcode_automatic=$hardcode_automatic
12031 # Variables whose values should be saved in libtool wrapper scripts and
12032 # restored at relink time.
12033 variables_saved_for_relink="$variables_saved_for_relink"
12035 # Whether libtool must link a program against all its dependency libraries.
12036 link_all_deplibs=$link_all_deplibs
12038 # Compile-time system search path for libraries
12039 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12041 # Run-time system search path for libraries
12042 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12044 # Fix the shell variable \$srcfile for the compiler.
12045 fix_srcfile_path="$fix_srcfile_path"
12047 # Set to yes if exported symbols are required.
12048 always_export_symbols=$always_export_symbols
12050 # The commands to list exported symbols.
12051 export_symbols_cmds=$lt_export_symbols_cmds
12053 # The commands to extract the exported symbol list from a shared archive.
12054 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12056 # Symbols that should not be listed in the preloaded symbols.
12057 exclude_expsyms=$lt_exclude_expsyms
12059 # Symbols that must always be exported.
12060 include_expsyms=$lt_include_expsyms
12062 # ### END LIBTOOL CONFIG
12069 cat <<\EOF >> "$cfgfile"
12071 # AIX sometimes has problems with the GCC collect2 program. For some
12072 # reason, if we set the COLLECT_NAMES environment variable, the problems
12073 # vanish in a puff of smoke.
12074 if test "X${COLLECT_NAMES+set}" != Xset; then
12076 export COLLECT_NAMES
12082 # We use sed instead of cat because bash on DJGPP gets confused if
12083 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12084 # text mode, it properly converts lines to CR/LF. This bash problem
12085 # is reportedly fixed, but why not run on old versions too?
12086 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12088 mv -f "$cfgfile" "$ofile" || \
12089 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12093 # If there is no Makefile yet, we rely on a make rule to execute
12094 # `config.status --recheck' to rerun these tests and create the
12095 # libtool script then.
12096 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12097 if test -f "$ltmain_in"; then
12098 test -f Makefile && make "$ltmain"
12104 ac_cpp='$CPP $CPPFLAGS'
12105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12112 # Check whether --with-tags was given.
12113 if test "${with_tags+set}" = set; then
12114 withval=$with_tags; tagnames="$withval"
12118 if test -f "$ltmain" && test -n "$tagnames"; then
12119 if test ! -f "${ofile}"; then
12120 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12121 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12124 if test -z "$LTCC"; then
12125 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12126 if test -z "$LTCC"; then
12127 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12128 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12131 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12134 if test -z "$LTCFLAGS"; then
12135 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12138 # Extract list of available tagged configurations in $ofile.
12139 # Note that this assumes the entire list is on one line.
12140 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12143 for tagname in $tagnames; do
12145 # Check whether tagname contains only valid characters
12146 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12148 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12149 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12150 { (exit 1); exit 1; }; }
12154 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12156 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12157 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12158 { (exit 1); exit 1; }; }
12161 # Update the list of available tags.
12162 if test -n "$tagname"; then
12163 echo appending configuration tag \"$tagname\" to $ofile
12167 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12168 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12169 (test "X$CXX" != "Xg++"))) ; then
12171 ac_cpp='$CXXCPP $CPPFLAGS'
12172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12179 archive_cmds_need_lc_CXX=no
12180 allow_undefined_flag_CXX=
12181 always_export_symbols_CXX=no
12182 archive_expsym_cmds_CXX=
12183 export_dynamic_flag_spec_CXX=
12184 hardcode_direct_CXX=no
12185 hardcode_libdir_flag_spec_CXX=
12186 hardcode_libdir_flag_spec_ld_CXX=
12187 hardcode_libdir_separator_CXX=
12188 hardcode_minus_L_CXX=no
12189 hardcode_shlibpath_var_CXX=unsupported
12190 hardcode_automatic_CXX=no
12192 module_expsym_cmds_CXX=
12193 link_all_deplibs_CXX=unknown
12194 old_archive_cmds_CXX=$old_archive_cmds
12195 no_undefined_flag_CXX=
12196 whole_archive_flag_spec_CXX=
12197 enable_shared_with_static_runtimes_CXX=no
12199 # Dependencies to place before and after the object being linked:
12200 predep_objects_CXX=
12201 postdep_objects_CXX=
12204 compiler_lib_search_path_CXX=
12206 # Source file extension for C++ test sources.
12209 # Object file extension for compiled C++ test sources.
12213 # Code to be used in simple compile tests
12214 lt_simple_compile_test_code="int some_variable = 0;\n"
12216 # Code to be used in simple link tests
12217 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12219 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12221 # If no C compiler was specified, use CC.
12224 # If no C compiler flags were specified, use CFLAGS.
12225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12227 # Allow CC to be a program name with arguments.
12231 # save warnings/boilerplate of simple test code
12232 ac_outfile=conftest.$ac_objext
12233 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12235 _lt_compiler_boilerplate=`cat conftest.err`
12238 ac_outfile=conftest.$ac_objext
12239 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12241 _lt_linker_boilerplate=`cat conftest.err`
12245 # Allow CC to be a program name with arguments.
12250 lt_save_with_gnu_ld=$with_gnu_ld
12251 lt_save_path_LD=$lt_cv_path_LD
12252 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12253 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12255 $as_unset lt_cv_prog_gnu_ld
12257 if test -n "${lt_cv_path_LDCXX+set}"; then
12258 lt_cv_path_LD=$lt_cv_path_LDCXX
12260 $as_unset lt_cv_path_LD
12262 test -z "${LDCXX+set}" || LD=$LDCXX
12266 for cc_temp in $compiler""; do
12268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12277 # We don't want -fno-exception wen compiling C++ code, so set the
12278 # no_builtin_flag separately
12279 if test "$GXX" = yes; then
12280 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12282 lt_prog_compiler_no_builtin_flag_CXX=
12285 if test "$GXX" = yes; then
12286 # Set up default GNU C++ configuration
12289 # Check whether --with-gnu-ld was given.
12290 if test "${with_gnu_ld+set}" = set; then
12291 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12297 if test "$GCC" = yes; then
12298 # Check if gcc -print-prog-name=ld gives a path.
12299 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12300 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12303 # gcc leaves a trailing carriage return which upsets mingw
12304 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12306 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12309 # Accept absolute paths.
12311 re_direlt='/[^/][^/]*/\.\./'
12312 # Canonicalize the pathname of ld
12313 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12314 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12315 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12317 test -z "$LD" && LD="$ac_prog"
12320 # If it fails, then pretend we aren't using GCC.
12324 # If it is relative, then search for the first ld in PATH.
12325 with_gnu_ld=unknown
12328 elif test "$with_gnu_ld" = yes; then
12329 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12330 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12332 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12333 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12335 if test "${lt_cv_path_LD+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 if test -z "$LD"; then
12339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12340 for ac_dir in $PATH; do
12342 test -z "$ac_dir" && ac_dir=.
12343 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12344 lt_cv_path_LD="$ac_dir/$ac_prog"
12345 # Check to see if the program is GNU ld. I'd rather use --version,
12346 # but apparently some variants of GNU ld only accept -v.
12347 # Break only if it was the GNU/non-GNU ld that we prefer.
12348 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12349 *GNU* | *'with BFD'*)
12350 test "$with_gnu_ld" != no && break
12353 test "$with_gnu_ld" != yes && break
12360 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12364 LD="$lt_cv_path_LD"
12365 if test -n "$LD"; then
12366 { echo "$as_me:$LINENO: result: $LD" >&5
12367 echo "${ECHO_T}$LD" >&6; }
12369 { echo "$as_me:$LINENO: result: no" >&5
12370 echo "${ECHO_T}no" >&6; }
12372 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12373 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12374 { (exit 1); exit 1; }; }
12375 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12376 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12377 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12381 case `$LD -v 2>&1 </dev/null` in
12382 *GNU* | *'with BFD'*)
12383 lt_cv_prog_gnu_ld=yes
12386 lt_cv_prog_gnu_ld=no
12390 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12391 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12392 with_gnu_ld=$lt_cv_prog_gnu_ld
12396 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12397 # archiving commands below assume that GNU ld is being used.
12398 if test "$with_gnu_ld" = yes; then
12399 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400 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'
12402 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12405 # If archive_cmds runs LD, not CC, wlarc should be empty
12406 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12407 # investigate it a little bit more. (MM)
12410 # ancient GNU ld didn't support --whole-archive et. al.
12411 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12412 grep 'no-whole-archive' > /dev/null; then
12413 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12415 whole_archive_flag_spec_CXX=
12421 # A generic and very simple default shared library creation
12422 # command for GNU C++ for the case where it uses the native
12423 # linker, instead of GNU ld. If possible, this setting should
12424 # overridden to take advantage of the native linker features on
12425 # the platform it is being used on.
12426 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12429 # Commands to make compiler produce verbose output that lists
12430 # what "hidden" libraries, object files and flags are used when
12431 # linking a shared library.
12432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12440 # PORTME: fill in a description of your system's C++ link characteristics
12441 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12442 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12446 # FIXME: insert proper C++ library support
12450 if test "$host_cpu" = ia64; then
12451 # On IA64, the linker does run time linking by default, so we don't
12452 # have to do anything special.
12453 aix_use_runtimelinking=no
12454 exp_sym_flag='-Bexport'
12457 aix_use_runtimelinking=no
12459 # Test if we are trying to use run time linking or normal
12460 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12461 # need to do runtime linking.
12462 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12463 for ld_flag in $LDFLAGS; do
12466 aix_use_runtimelinking=yes
12474 exp_sym_flag='-bexport'
12475 no_entry_flag='-bnoentry'
12478 # When large executables or shared objects are built, AIX ld can
12479 # have problems creating the table of contents. If linking a library
12480 # or program results in "error TOC overflow" add -mminimal-toc to
12481 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12482 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12484 archive_cmds_CXX=''
12485 hardcode_direct_CXX=yes
12486 hardcode_libdir_separator_CXX=':'
12487 link_all_deplibs_CXX=yes
12489 if test "$GXX" = yes; then
12490 case $host_os in aix4.[012]|aix4.[012].*)
12491 # We only want to do this on AIX 4.2 and lower, the check
12492 # below for broken collect2 doesn't work under 4.3+
12493 collect2name=`${CC} -print-prog-name=collect2`
12494 if test -f "$collect2name" && \
12495 strings "$collect2name" | grep resolve_lib_name >/dev/null
12497 # We have reworked collect2
12498 hardcode_direct_CXX=yes
12500 # We have old collect2
12501 hardcode_direct_CXX=unsupported
12502 # It fails to find uninstalled libraries when the uninstalled
12503 # path is not listed in the libpath. Setting hardcode_minus_L
12504 # to unsupported forces relinking
12505 hardcode_minus_L_CXX=yes
12506 hardcode_libdir_flag_spec_CXX='-L$libdir'
12507 hardcode_libdir_separator_CXX=
12511 shared_flag='-shared'
12512 if test "$aix_use_runtimelinking" = yes; then
12513 shared_flag="$shared_flag "'${wl}-G'
12517 if test "$host_cpu" = ia64; then
12518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12519 # chokes on -Wl,-G. The following line is correct:
12522 if test "$aix_use_runtimelinking" = yes; then
12523 shared_flag='${wl}-G'
12525 shared_flag='${wl}-bM:SRE'
12530 # It seems that -bexpall does not export symbols beginning with
12531 # underscore (_), so it is better to generate a list of symbols to export.
12532 always_export_symbols_CXX=yes
12533 if test "$aix_use_runtimelinking" = yes; then
12534 # Warning - without using the other runtime loading flags (-brtl),
12535 # -berok will link without error, but may produce a broken library.
12536 allow_undefined_flag_CXX='-berok'
12537 # Determine the default libpath from the value encoded in an empty executable.
12538 cat >conftest.$ac_ext <<_ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_link") 2>conftest.er1
12562 grep -v '^ *+' conftest.er1 >conftest.err
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } && {
12567 test -z "$ac_cxx_werror_flag" ||
12568 test ! -s conftest.err
12569 } && test -s conftest$ac_exeext &&
12570 $as_test_x conftest$ac_exeext; then
12572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12574 # Check for a 64-bit object if we didn't find anything.
12575 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; }
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585 conftest$ac_exeext conftest.$ac_ext
12586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12588 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12590 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"
12592 if test "$host_cpu" = ia64; then
12593 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12594 allow_undefined_flag_CXX="-z nodefs"
12595 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"
12597 # Determine the default libpath from the value encoded in an empty executable.
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_cxx_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest$ac_exeext &&
12630 $as_test_x conftest$ac_exeext; then
12632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12634 # Check for a 64-bit object if we didn't find anything.
12635 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; }
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12645 conftest$ac_exeext conftest.$ac_ext
12646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12648 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12649 # Warning - without using the other run time loading flags,
12650 # -berok will link without error, but may produce a broken library.
12651 no_undefined_flag_CXX=' ${wl}-bernotok'
12652 allow_undefined_flag_CXX=' ${wl}-berok'
12653 # Exported symbols can be pulled into shared objects from archives
12654 whole_archive_flag_spec_CXX='$convenience'
12655 archive_cmds_need_lc_CXX=yes
12656 # This is similar to how AIX traditionally builds its shared libraries.
12657 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'
12663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12664 allow_undefined_flag_CXX=unsupported
12665 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12666 # support --undefined. This deserves some investigation. FIXME
12667 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 case $cc_basename in
12676 # FIXME: insert proper C++ library support
12682 cygwin* | mingw* | pw32*)
12683 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12684 # as there is no search path for DLLs.
12685 hardcode_libdir_flag_spec_CXX='-L$libdir'
12686 allow_undefined_flag_CXX=unsupported
12687 always_export_symbols_CXX=no
12688 enable_shared_with_static_runtimes_CXX=yes
12690 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12691 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'
12692 # If the export-symbols file already is a .def file (1st line
12693 # is EXPORTS), use it as is; otherwise, prepend...
12694 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12695 cp $export_symbols $output_objdir/$soname.def;
12697 echo EXPORTS > $output_objdir/$soname.def;
12698 cat $export_symbols >> $output_objdir/$soname.def;
12700 $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'
12705 darwin* | rhapsody*)
12707 rhapsody* | darwin1.[012])
12708 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12711 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12712 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12714 case ${MACOSX_DEPLOYMENT_TARGET} in
12716 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12719 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12725 archive_cmds_need_lc_CXX=no
12726 hardcode_direct_CXX=no
12727 hardcode_automatic_CXX=yes
12728 hardcode_shlibpath_var_CXX=unsupported
12729 whole_archive_flag_spec_CXX=''
12730 link_all_deplibs_CXX=yes
12732 if test "$GXX" = yes ; then
12733 lt_int_apple_cc_single_mod=no
12734 output_verbose_link_cmd='echo'
12735 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12736 lt_int_apple_cc_single_mod=yes
12738 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12739 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12741 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'
12743 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12744 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12745 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12746 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}'
12748 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}'
12750 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}'
12752 case $cc_basename in
12754 output_verbose_link_cmd='echo'
12755 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'
12756 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12757 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12758 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}'
12759 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}'
12769 case $cc_basename in
12771 # FIXME: insert proper C++ library support
12775 # Green Hills C++ Compiler
12776 # FIXME: insert proper C++ library support
12780 # FIXME: insert proper C++ library support
12786 # C++ shared libraries reported to be fairly broken before switch to ELF
12790 archive_cmds_need_lc_CXX=no
12792 freebsd* | dragonfly*)
12793 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12800 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12801 hardcode_libdir_separator_CXX=:
12802 export_dynamic_flag_spec_CXX='${wl}-E'
12803 hardcode_direct_CXX=yes
12804 hardcode_minus_L_CXX=yes # Not in the search PATH,
12805 # but as the default
12806 # location of the library.
12808 case $cc_basename in
12810 # FIXME: insert proper C++ library support
12814 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'
12815 # Commands to make compiler produce verbose output that lists
12816 # what "hidden" libraries, object files and flags are used when
12817 # linking a shared library.
12819 # There doesn't appear to be a way to prevent this compiler from
12820 # explicitly linking system object files so we need to strip them
12821 # from the output so that they don't get included in the library
12823 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'
12826 if test "$GXX" = yes; then
12827 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'
12829 # FIXME: insert proper C++ library support
12836 if test $with_gnu_ld = no; then
12837 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12838 hardcode_libdir_separator_CXX=:
12842 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12845 export_dynamic_flag_spec_CXX='${wl}-E'
12851 hardcode_direct_CXX=no
12852 hardcode_shlibpath_var_CXX=no
12855 hardcode_direct_CXX=yes
12856 hardcode_minus_L_CXX=yes # Not in the search PATH,
12857 # but as the default
12858 # location of the library.
12862 case $cc_basename in
12864 # FIXME: insert proper C++ library support
12870 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879 # Commands to make compiler produce verbose output that lists
12880 # what "hidden" libraries, object files and flags are used when
12881 # linking a shared library.
12883 # There doesn't appear to be a way to prevent this compiler from
12884 # explicitly linking system object files so we need to strip them
12885 # from the output so that they don't get included in the library
12887 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'
12890 if test "$GXX" = yes; then
12891 if test $with_gnu_ld = no; then
12894 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12900 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'
12905 # FIXME: insert proper C++ library support
12912 hardcode_direct_CXX=no
12913 hardcode_shlibpath_var_CXX=no
12914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12915 export_dynamic_flag_spec_CXX='${wl}-E'
12916 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12917 # Instead, shared libraries are loaded at an image base (0x10000000 by
12918 # default) and relocated if they conflict, which is a slow very memory
12919 # consuming and fragmenting process. To avoid this, we pick a random,
12920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12921 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12922 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'
12923 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'
12926 case $cc_basename in
12929 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'
12931 # Archives containing C++ object files must be created using
12932 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12933 # necessary to make sure instantiated templates are included
12935 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12938 if test "$GXX" = yes; then
12939 if test "$with_gnu_ld" = no; then
12940 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'
12942 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'
12945 link_all_deplibs_CXX=yes
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949 hardcode_libdir_separator_CXX=:
12951 linux* | k*bsd*-gnu)
12952 case $cc_basename in
12954 # Kuck and Associates, Inc. (KAI) C++ Compiler
12956 # KCC will only create a shared library if the output file
12957 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12958 # to its proper name (with version) after linking.
12959 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'
12960 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'
12961 # Commands to make compiler produce verbose output that lists
12962 # what "hidden" libraries, object files and flags are used when
12963 # linking a shared library.
12965 # There doesn't appear to be a way to prevent this compiler from
12966 # explicitly linking system object files so we need to strip them
12967 # from the output so that they don't get included in the library
12969 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'
12971 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12974 # Archives containing C++ object files must be created using
12975 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12976 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12981 # version 8.0 and above of icpc choke on multiply defined symbols
12982 # if we add $predep_objects and $postdep_objects, however 7.1 and
12983 # earlier do not add the objects themselves.
12984 case `$CC -V 2>&1` in
12986 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12987 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'
12989 *) # Version 8.0 or newer
12992 ia64*) tmp_idyn=' -i_dynamic';;
12994 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995 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'
12998 archive_cmds_need_lc_CXX=no
12999 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13001 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13004 # Portland Group C++ compiler
13005 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13006 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'
13008 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010 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'
13014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13017 runpath_var=LD_RUN_PATH
13018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13019 hardcode_libdir_separator_CXX=:
13021 # Commands to make compiler produce verbose output that lists
13022 # what "hidden" libraries, object files and flags are used when
13023 # linking a shared library.
13025 # There doesn't appear to be a way to prevent this compiler from
13026 # explicitly linking system object files so we need to strip them
13027 # from the output so that they don't get included in the library
13029 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'
13034 # FIXME: insert proper C++ library support
13038 # FIXME: insert proper C++ library support
13042 case $cc_basename in
13044 # FIXME: insert proper C++ library support
13048 # FIXME: insert proper C++ library support
13053 netbsd* | netbsdelf*-gnu)
13054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13055 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13057 hardcode_libdir_flag_spec_CXX='-R$libdir'
13058 hardcode_direct_CXX=yes
13059 hardcode_shlibpath_var_CXX=no
13061 # Workaround some broken pre-1.5 toolchains
13062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13065 # C++ shared libraries are fairly broken
13069 hardcode_direct_CXX=yes
13070 hardcode_shlibpath_var_CXX=no
13071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13072 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13074 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13075 export_dynamic_flag_spec_CXX='${wl}-E'
13076 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13078 output_verbose_link_cmd='echo'
13081 case $cc_basename in
13083 # Kuck and Associates, Inc. (KAI) C++ Compiler
13085 # KCC will only create a shared library if the output file
13086 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13087 # to its proper name (with version) after linking.
13088 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'
13090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13091 hardcode_libdir_separator_CXX=:
13093 # Archives containing C++ object files must be created using
13094 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13095 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13099 # Rational C++ 2.4.1
13100 # FIXME: insert proper C++ library support
13104 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13105 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'
13107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13108 hardcode_libdir_separator_CXX=:
13110 # Commands to make compiler produce verbose output that lists
13111 # what "hidden" libraries, object files and flags are used when
13112 # linking a shared library.
13114 # There doesn't appear to be a way to prevent this compiler from
13115 # explicitly linking system object files so we need to strip them
13116 # from the output so that they don't get included in the library
13118 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'
13121 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13122 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13123 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'
13125 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13126 hardcode_libdir_separator_CXX=:
13128 # Commands to make compiler produce verbose output that lists
13129 # what "hidden" libraries, object files and flags are used when
13130 # linking a shared library.
13131 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13134 # FIXME: insert proper C++ library support
13141 case $cc_basename in
13143 # Kuck and Associates, Inc. (KAI) C++ Compiler
13145 # KCC will only create a shared library if the output file
13146 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13147 # to its proper name (with version) after linking.
13148 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'
13150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13151 hardcode_libdir_separator_CXX=:
13153 # Archives containing C++ object files must be created using
13154 # the KAI C++ compiler.
13155 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13158 # Rational C++ 2.4.1
13159 # FIXME: insert proper C++ library support
13163 allow_undefined_flag_CXX=' -expect_unresolved \*'
13164 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'
13165 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13166 echo "-hidden">> $lib.exp~
13167 $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~
13170 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13171 hardcode_libdir_separator_CXX=:
13173 # Commands to make compiler produce verbose output that lists
13174 # what "hidden" libraries, object files and flags are used when
13175 # linking a shared library.
13177 # There doesn't appear to be a way to prevent this compiler from
13178 # explicitly linking system object files so we need to strip them
13179 # from the output so that they don't get included in the library
13181 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'
13184 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13186 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'
13188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13189 hardcode_libdir_separator_CXX=:
13191 # Commands to make compiler produce verbose output that lists
13192 # what "hidden" libraries, object files and flags are used when
13193 # linking a shared library.
13194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13197 # FIXME: insert proper C++ library support
13204 # FIXME: insert proper C++ library support
13208 case $cc_basename in
13211 # FIXME: insert proper C++ library support
13216 # FIXME: insert proper C++ library support
13220 # FIXME: insert proper C++ library support
13226 case $cc_basename in
13228 # Sun C++ 4.2, 5.x and Centerline C++
13229 archive_cmds_need_lc_CXX=yes
13230 no_undefined_flag_CXX=' -zdefs'
13231 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13232 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13233 $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'
13235 hardcode_libdir_flag_spec_CXX='-R$libdir'
13236 hardcode_shlibpath_var_CXX=no
13238 solaris2.[0-5] | solaris2.[0-5].*) ;;
13240 # The C++ compiler is used as linker so we must use $wl
13241 # flag to pass the commands to the underlying system
13242 # linker. We must also pass each convience library through
13243 # to the system linker between allextract/defaultextract.
13244 # The C++ compiler will combine linker options so we
13245 # cannot just pass the convience library names through
13247 # Supported since Solaris 2.6 (maybe 2.5.1?)
13248 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'
13251 link_all_deplibs_CXX=yes
13253 output_verbose_link_cmd='echo'
13255 # Archives containing C++ object files must be created using
13256 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13257 # necessary to make sure instantiated templates are included
13259 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13262 # Green Hills C++ Compiler
13263 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13265 # The C++ compiler must be used to create the archive.
13266 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13269 # GNU C++ compiler with Solaris linker
13270 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13271 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13272 if $CC --version | grep -v '^2\.7' > /dev/null; then
13273 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13274 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13275 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13277 # Commands to make compiler produce verbose output that lists
13278 # what "hidden" libraries, object files and flags are used when
13279 # linking a shared library.
13280 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13282 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13284 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13285 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13286 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13288 # Commands to make compiler produce verbose output that lists
13289 # what "hidden" libraries, object files and flags are used when
13290 # linking a shared library.
13291 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13294 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13299 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13300 no_undefined_flag_CXX='${wl}-z,text'
13301 archive_cmds_need_lc_CXX=no
13302 hardcode_shlibpath_var_CXX=no
13303 runpath_var='LD_RUN_PATH'
13305 case $cc_basename in
13307 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13311 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13312 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316 sysv5* | sco3.2v5* | sco5v6*)
13317 # Note: We can NOT use -z defs as we might desire, because we do not
13318 # link with -lc, and that would cause any symbols used from libc to
13319 # always be unresolved, which means just about no library would
13320 # ever link correctly. If we're not using GNU ld we use -z text
13321 # though, which does catch some bad symbols but isn't as heavy-handed
13323 # For security reasons, it is highly recommended that you always
13324 # use absolute paths for naming shared libraries, and exclude the
13325 # DT_RUNPATH tag from executables and libraries. But doing so
13326 # requires that you compile everything twice, which is a pain.
13327 # So that behaviour is only enabled if SCOABSPATH is set to a
13328 # non-empty value in the environment. Most likely only useful for
13329 # creating official distributions of packages.
13330 # This is a hack until libtool officially supports absolute path
13331 # names for shared libraries.
13332 no_undefined_flag_CXX='${wl}-z,text'
13333 allow_undefined_flag_CXX='${wl}-z,nodefs'
13334 archive_cmds_need_lc_CXX=no
13335 hardcode_shlibpath_var_CXX=no
13336 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13337 hardcode_libdir_separator_CXX=':'
13338 link_all_deplibs_CXX=yes
13339 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13340 runpath_var='LD_RUN_PATH'
13342 case $cc_basename in
13344 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13345 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13348 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13349 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 case $cc_basename in
13356 # NonStop-UX NCC 3.20
13357 # FIXME: insert proper C++ library support
13361 # FIXME: insert proper C++ library support
13367 # FIXME: insert proper C++ library support
13371 # FIXME: insert proper C++ library support
13375 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13376 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13377 test "$ld_shlibs_CXX" = no && can_build_shared=no
13383 cat > conftest.$ac_ext <<EOF
13387 Foo (void) { a = 0; }
13393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13394 (eval $ac_compile) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; then
13398 # Parse the compiler output and extract the necessary
13399 # objects, libraries and library flags.
13401 # Sentinel used to keep track of whether or not we are before
13402 # the conftest object file.
13403 pre_test_object_deps_done=no
13405 # The `*' in the case matches for architectures that use `case' in
13406 # $output_verbose_cmd can trigger glob expansion during the loop
13407 # eval without this substitution.
13408 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13410 for p in `eval $output_verbose_link_cmd`; do
13414 # Some compilers place space between "-{L,R}" and the path.
13415 # Remove the space.
13416 if test $p = "-L" \
13417 || test $p = "-R"; then
13424 if test "$pre_test_object_deps_done" = no; then
13427 # Internal compiler library paths should come after those
13428 # provided the user. The postdeps already come after the
13429 # user supplied libs so there is no need to process them.
13430 if test -z "$compiler_lib_search_path_CXX"; then
13431 compiler_lib_search_path_CXX="${prev}${p}"
13433 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13436 # The "-l" case would never come before the object being
13437 # linked, so don't bother handling this case.
13440 if test -z "$postdeps_CXX"; then
13441 postdeps_CXX="${prev}${p}"
13443 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13449 # This assumes that the test object file only shows up
13450 # once in the compiler output.
13451 if test "$p" = "conftest.$objext"; then
13452 pre_test_object_deps_done=yes
13456 if test "$pre_test_object_deps_done" = no; then
13457 if test -z "$predep_objects_CXX"; then
13458 predep_objects_CXX="$p"
13460 predep_objects_CXX="$predep_objects_CXX $p"
13463 if test -z "$postdep_objects_CXX"; then
13464 postdep_objects_CXX="$p"
13466 postdep_objects_CXX="$postdep_objects_CXX $p"
13471 *) ;; # Ignore the rest.
13479 echo "libtool.m4: error: problem compiling CXX test program"
13482 $rm -f confest.$objext
13484 # PORTME: override above test on systems where it is broken
13487 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13488 # hack all around it, let's just trust "g++" to DTRT.
13489 predep_objects_CXX=
13490 postdep_objects_CXX=
13495 case $cc_basename in
13497 # Adding this requires a known-good setup of shared libraries for
13498 # Sun compiler versions before 5.6, else PIC objects from an old
13499 # archive will be linked into the output, leading to subtle bugs.
13500 postdeps_CXX='-lCstd -lCrun'
13507 case " $postdeps_CXX " in
13508 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13511 lt_prog_compiler_wl_CXX=
13512 lt_prog_compiler_pic_CXX=
13513 lt_prog_compiler_static_CXX=
13515 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13516 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13518 # C++ specific cases for pic, static, wl, etc.
13519 if test "$GXX" = yes; then
13520 lt_prog_compiler_wl_CXX='-Wl,'
13521 lt_prog_compiler_static_CXX='-static'
13525 # All AIX code is PIC.
13526 if test "$host_cpu" = ia64; then
13527 # AIX 5 now supports IA64 processor
13528 lt_prog_compiler_static_CXX='-Bstatic'
13532 # FIXME: we need at least 68020 code to build shared libraries, but
13533 # adding the `-m68020' flag to GCC prevents building anything better,
13535 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13537 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13538 # PIC is the default for these OSes.
13540 mingw* | os2* | pw32*)
13541 # This hack is so that the source file can tell whether it is being
13542 # built for inclusion in a dll (and should export symbols for example).
13543 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13545 darwin* | rhapsody*)
13546 # PIC is the default on this platform
13547 # Common symbols not allowed in MH_DYLIB files
13548 lt_prog_compiler_pic_CXX='-fno-common'
13551 # DJGPP does not support shared libraries at all
13552 lt_prog_compiler_pic_CXX=
13555 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13556 # Instead, we relocate shared libraries at runtime.
13559 if test -d /usr/nec; then
13560 lt_prog_compiler_pic_CXX=-Kconform_pic
13564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13565 # not for PA HP-UX.
13570 lt_prog_compiler_pic_CXX='-fPIC'
13575 lt_prog_compiler_pic_CXX='-fPIC'
13581 # All AIX code is PIC.
13582 if test "$host_cpu" = ia64; then
13583 # AIX 5 now supports IA64 processor
13584 lt_prog_compiler_static_CXX='-Bstatic'
13586 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13590 case $cc_basename in
13592 # Green Hills C++ Compiler
13593 # _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"
13598 # PIC is the default on this platform
13599 # Common symbols not allowed in MH_DYLIB files
13600 case $cc_basename in
13602 lt_prog_compiler_pic_CXX='-qnocommon'
13603 lt_prog_compiler_wl_CXX='-Wl,'
13608 case $cc_basename in
13610 lt_prog_compiler_pic_CXX='-KPIC'
13613 # Green Hills C++ Compiler
13614 lt_prog_compiler_pic_CXX='-pic'
13620 freebsd* | dragonfly*)
13621 # FreeBSD uses GNU C++
13623 hpux9* | hpux10* | hpux11*)
13624 case $cc_basename in
13626 lt_prog_compiler_wl_CXX='-Wl,'
13627 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13628 if test "$host_cpu" != ia64; then
13629 lt_prog_compiler_pic_CXX='+Z'
13633 lt_prog_compiler_wl_CXX='-Wl,'
13634 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13640 lt_prog_compiler_pic_CXX='+Z'
13649 # This is c89, which is MS Visual C++ (no shared libs)
13650 # Anyone wants to do a port?
13652 irix5* | irix6* | nonstopux*)
13653 case $cc_basename in
13655 lt_prog_compiler_wl_CXX='-Wl,'
13656 lt_prog_compiler_static_CXX='-non_shared'
13657 # CC pic flag -KPIC is the default.
13663 linux* | k*bsd*-gnu)
13664 case $cc_basename in
13667 lt_prog_compiler_wl_CXX='--backend -Wl,'
13668 lt_prog_compiler_pic_CXX='-fPIC'
13672 lt_prog_compiler_wl_CXX='-Wl,'
13673 lt_prog_compiler_pic_CXX='-KPIC'
13674 lt_prog_compiler_static_CXX='-static'
13677 # Portland Group C++ compiler.
13678 lt_prog_compiler_wl_CXX='-Wl,'
13679 lt_prog_compiler_pic_CXX='-fpic'
13680 lt_prog_compiler_static_CXX='-Bstatic'
13684 # Make sure the PIC flag is empty. It appears that all Alpha
13685 # Linux and Compaq Tru64 Unix objects are PIC.
13686 lt_prog_compiler_pic_CXX=
13687 lt_prog_compiler_static_CXX='-non_shared'
13698 case $cc_basename in
13700 lt_prog_compiler_pic_CXX='-W c,exportall'
13706 netbsd* | netbsdelf*-gnu)
13708 osf3* | osf4* | osf5*)
13709 case $cc_basename in
13711 lt_prog_compiler_wl_CXX='--backend -Wl,'
13714 # Rational C++ 2.4.1
13715 lt_prog_compiler_pic_CXX='-pic'
13718 # Digital/Compaq C++
13719 lt_prog_compiler_wl_CXX='-Wl,'
13720 # Make sure the PIC flag is empty. It appears that all Alpha
13721 # Linux and Compaq Tru64 Unix objects are PIC.
13722 lt_prog_compiler_pic_CXX=
13723 lt_prog_compiler_static_CXX='-non_shared'
13732 case $cc_basename in
13734 # Sun C++ 4.2, 5.x and Centerline C++
13735 lt_prog_compiler_pic_CXX='-KPIC'
13736 lt_prog_compiler_static_CXX='-Bstatic'
13737 lt_prog_compiler_wl_CXX='-Qoption ld '
13740 # Green Hills C++ Compiler
13741 lt_prog_compiler_pic_CXX='-PIC'
13748 case $cc_basename in
13751 lt_prog_compiler_pic_CXX='-pic'
13752 lt_prog_compiler_static_CXX='-Bstatic'
13756 lt_prog_compiler_pic_CXX='-pic'
13763 case $cc_basename in
13765 # NonStop-UX NCC 3.20
13766 lt_prog_compiler_pic_CXX='-KPIC'
13772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13773 case $cc_basename in
13775 lt_prog_compiler_wl_CXX='-Wl,'
13776 lt_prog_compiler_pic_CXX='-KPIC'
13777 lt_prog_compiler_static_CXX='-Bstatic'
13784 lt_prog_compiler_can_build_shared_CXX=no
13789 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13790 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13793 # Check to make sure the PIC flag actually works.
13795 if test -n "$lt_prog_compiler_pic_CXX"; then
13797 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13798 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13799 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 lt_prog_compiler_pic_works_CXX=no
13803 ac_outfile=conftest.$ac_objext
13804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13805 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13806 # Insert the option either (1) after the last *FLAGS variable, or
13807 # (2) before a word containing "conftest.", or (3) at the end.
13808 # Note that $ac_compile itself does not contain backslashes and begins
13809 # with a dollar sign (not a hyphen), so the echo should work correctly.
13810 # The option is referenced via a variable to avoid confusing sed.
13811 lt_compile=`echo "$ac_compile" | $SED \
13812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13814 -e 's:$: $lt_compiler_flag:'`
13815 (eval echo "\"\$as_me:13815: $lt_compile\"" >&5)
13816 (eval "$lt_compile" 2>conftest.err)
13818 cat conftest.err >&5
13819 echo "$as_me:13819: \$? = $ac_status" >&5
13820 if (exit $ac_status) && test -s "$ac_outfile"; then
13821 # The compiler can only warn and ignore the option if not recognized
13822 # So say no if there are warnings other than the usual output.
13823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13826 lt_prog_compiler_pic_works_CXX=yes
13832 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13833 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13835 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13836 case $lt_prog_compiler_pic_CXX in
13838 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13841 lt_prog_compiler_pic_CXX=
13842 lt_prog_compiler_can_build_shared_CXX=no
13847 # For platforms which do not support PIC, -DPIC is meaningless:
13849 lt_prog_compiler_pic_CXX=
13852 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13857 # Check to make sure the static flag actually works.
13859 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13860 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13861 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13862 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 lt_prog_compiler_static_works_CXX=no
13866 save_LDFLAGS="$LDFLAGS"
13867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13868 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13870 # The linker can only warn and ignore the option if not recognized
13871 # So say no if there are warnings
13872 if test -s conftest.err; then
13873 # Append any errors to the config.log.
13874 cat conftest.err 1>&5
13875 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13877 if diff conftest.exp conftest.er2 >/dev/null; then
13878 lt_prog_compiler_static_works_CXX=yes
13881 lt_prog_compiler_static_works_CXX=yes
13885 LDFLAGS="$save_LDFLAGS"
13888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13889 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13891 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13894 lt_prog_compiler_static_CXX=
13898 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13899 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13900 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 lt_cv_prog_compiler_c_o_CXX=no
13904 $rm -r conftest 2>/dev/null
13908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13910 lt_compiler_flag="-o out/conftest2.$ac_objext"
13911 # Insert the option either (1) after the last *FLAGS variable, or
13912 # (2) before a word containing "conftest.", or (3) at the end.
13913 # Note that $ac_compile itself does not contain backslashes and begins
13914 # with a dollar sign (not a hyphen), so the echo should work correctly.
13915 lt_compile=`echo "$ac_compile" | $SED \
13916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13918 -e 's:$: $lt_compiler_flag:'`
13919 (eval echo "\"\$as_me:13919: $lt_compile\"" >&5)
13920 (eval "$lt_compile" 2>out/conftest.err)
13922 cat out/conftest.err >&5
13923 echo "$as_me:13923: \$? = $ac_status" >&5
13924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13926 # The compiler can only warn and ignore the option if not recognized
13927 # So say no if there are warnings
13928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13931 lt_cv_prog_compiler_c_o_CXX=yes
13936 # SGI C++ compiler will create directory out/ii_files/ for
13937 # template instantiation
13938 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13939 $rm out/* && rmdir out
13945 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13946 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13949 hard_links="nottested"
13950 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13951 # do not overwrite the value of need_locks provided by the user
13952 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13953 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13958 ln conftest.a conftest.b 2>&5 || hard_links=no
13959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13960 { echo "$as_me:$LINENO: result: $hard_links" >&5
13961 echo "${ECHO_T}$hard_links" >&6; }
13962 if test "$hard_links" = no; then
13963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13964 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13971 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13972 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13974 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13977 # If we're using GNU nm, then we don't want the "-C" option.
13978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13979 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13980 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'
13982 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'
13986 export_symbols_cmds_CXX="$ltdll_cmds"
13989 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'
13991 linux* | k*bsd*-gnu)
13992 link_all_deplibs_CXX=no
13995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13999 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14000 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14001 test "$ld_shlibs_CXX" = no && can_build_shared=no
14004 # Do we need to explicitly link libc?
14006 case "x$archive_cmds_need_lc_CXX" in
14008 # Assume -lc should be added
14009 archive_cmds_need_lc_CXX=yes
14011 if test "$enable_shared" = yes && test "$GCC" = yes; then
14012 case $archive_cmds_CXX in
14014 # FIXME: we may have to deal with multi-command sequences.
14017 # Test whether the compiler implicitly links with -lc since on some
14018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14019 # to ld, don't add -lc before -lgcc.
14020 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14021 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026 (eval $ac_compile) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } 2>conftest.err; then
14032 libobjs=conftest.$ac_objext
14034 wl=$lt_prog_compiler_wl_CXX
14035 pic_flag=$lt_prog_compiler_pic_CXX
14041 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14042 allow_undefined_flag_CXX=
14043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14044 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }
14049 archive_cmds_need_lc_CXX=no
14051 archive_cmds_need_lc_CXX=yes
14053 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14055 cat conftest.err 1>&5
14058 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14059 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14066 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14067 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14068 library_names_spec=
14069 libname_spec='lib$name'
14073 postuninstall_cmds=
14077 shlibpath_overrides_runpath=unknown
14079 dynamic_linker="$host_os ld.so"
14080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14081 if test "$GCC" = yes; then
14082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14083 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14084 # if the path contains ";" then we assume it to be the separator
14085 # otherwise default to the standard path separator (i.e. ":") - it is
14086 # assumed that no part of a normal pathname contains ";" but that should
14087 # okay in the real world where ";" in dirpaths is itself problematic.
14088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14095 need_lib_prefix=unknown
14096 hardcode_into_libs=no
14098 # when you set need_version to no, make sure it does not cause -set_version
14099 # flags to be left without arguments
14100 need_version=unknown
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14106 shlibpath_var=LIBPATH
14108 # AIX 3 has no versioning support, so we append a major version to the name.
14109 soname_spec='${libname}${release}${shared_ext}$major'
14116 hardcode_into_libs=yes
14117 if test "$host_cpu" = ia64; then
14118 # AIX 5 supports IA64
14119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14120 shlibpath_var=LD_LIBRARY_PATH
14122 # With GCC up to 2.95.x, collect2 would create an import file
14123 # for dependence libraries. The import file would start with
14124 # the line `#! .'. This would cause the generated library to
14125 # depend on `.', always an invalid library. This was fixed in
14126 # development snapshots of GCC prior to 3.0.
14128 aix4 | aix4.[01] | aix4.[01].*)
14129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14134 can_build_shared=no
14138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14139 # soname into executable. Probably we can add versioning support to
14140 # collect2, so additional links can be useful in future.
14141 if test "$aix_use_runtimelinking" = yes; then
14142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14143 # instead of lib<name>.a to let people know that these are not
14144 # typical AIX shared libraries.
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14147 # We preserve .a as extension for shared libraries through AIX4.2
14148 # and later when we are not doing run time linking.
14149 library_names_spec='${libname}${release}.a $libname.a'
14150 soname_spec='${libname}${release}${shared_ext}$major'
14152 shlibpath_var=LIBPATH
14157 library_names_spec='$libname.ixlibrary $libname.a'
14158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14159 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'
14163 library_names_spec='${libname}${shared_ext}'
14164 dynamic_linker="$host_os ld.so"
14165 shlibpath_var=LIBRARY_PATH
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14177 # the default ld.so.conf also contains /usr/contrib/lib and
14178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14179 # libtool to hard-code these into programs
14182 cygwin* | mingw* | pw32*)
14183 version_type=windows
14188 case $GCC,$host_os in
14189 yes,cygwin* | yes,mingw* | yes,pw32*)
14190 library_names_spec='$libname.dll.a'
14191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14192 postinstall_cmds='base_file=`basename \${file}`~
14193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14194 dldir=$destdir/`dirname \$dlpath`~
14195 test -d \$dldir || mkdir -p \$dldir~
14196 $install_prog $dir/$dlname \$dldir/$dlname~
14197 chmod a+x \$dldir/$dlname'
14198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14199 dlpath=$dir/\$dldll~
14201 shlibpath_overrides_runpath=yes
14205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14206 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14207 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14210 # MinGW DLLs use traditional 'lib' prefix
14211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14213 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14214 # It is most probably a Windows format PATH printed by
14215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14216 # path with ; separators, and with drive letters. We can handle the
14217 # drive letters (cygwin fileutils understands them), so leave them,
14218 # especially as we might pass files found there to a mingw objdump,
14219 # which wouldn't understand a cygwinified path. Ahh.
14220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14226 # pw32 DLLs use 'pw' prefix rather than 'lib'
14227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14236 dynamic_linker='Win32 ld.exe'
14237 # FIXME: first we should search . and the directory the executable is in
14241 darwin* | rhapsody*)
14242 dynamic_linker="$host_os dyld"
14243 version_type=darwin
14246 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14247 soname_spec='${libname}${release}${major}$shared_ext'
14248 shlibpath_overrides_runpath=yes
14249 shlibpath_var=DYLD_LIBRARY_PATH
14250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14252 if test "$GCC" = yes; then
14253 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"`
14255 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14257 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14266 shlibpath_var=LD_LIBRARY_PATH
14273 freebsd* | dragonfly*)
14274 # DragonFly does not have aout. When/if they implement a new
14275 # versioning mechanism, adjust this.
14276 if test -x /usr/bin/objformat; then
14277 objformat=`/usr/bin/objformat`
14280 freebsd[123]*) objformat=aout ;;
14281 *) objformat=elf ;;
14284 version_type=freebsd-$objformat
14285 case $version_type in
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14296 shlibpath_var=LD_LIBRARY_PATH
14299 shlibpath_overrides_runpath=yes
14301 freebsd3.[01]* | freebsdelf3.[01]*)
14302 shlibpath_overrides_runpath=yes
14303 hardcode_into_libs=yes
14305 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14306 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14307 shlibpath_overrides_runpath=no
14308 hardcode_into_libs=yes
14310 freebsd*) # from 4.6 on
14311 shlibpath_overrides_runpath=yes
14312 hardcode_into_libs=yes
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 shlibpath_var=LD_LIBRARY_PATH
14324 hardcode_into_libs=yes
14327 hpux9* | hpux10* | hpux11*)
14328 # Give a soname corresponding to the major version so that dld.sl refuses to
14329 # link against other versions.
14336 hardcode_into_libs=yes
14337 dynamic_linker="$host_os dld.so"
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 if test "X$HPUX_IA64_MODE" = X32; then
14343 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14345 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14351 hardcode_into_libs=yes
14352 dynamic_linker="$host_os dld.sl"
14353 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14362 dynamic_linker="$host_os dld.sl"
14363 shlibpath_var=SHLIB_PATH
14364 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14369 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14370 postinstall_cmds='chmod 555 $lib'
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14380 shlibpath_var=LD_LIBRARY_PATH
14381 shlibpath_overrides_runpath=no
14382 hardcode_into_libs=yes
14385 irix5* | irix6* | nonstopux*)
14387 nonstopux*) version_type=nonstopux ;;
14389 if test "$lt_cv_prog_gnu_ld" = yes; then
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14400 irix5* | nonstopux*)
14401 libsuff= shlibsuff=
14404 case $LD in # libtool.m4 will add one of these switches to LD
14405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14406 libsuff= shlibsuff= libmagic=32-bit;;
14407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14408 libsuff=32 shlibsuff=N32 libmagic=N32;;
14409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14411 *) libsuff= shlibsuff= libmagic=never-match;;
14415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14416 shlibpath_overrides_runpath=no
14417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14419 hardcode_into_libs=yes
14422 # No shared lib support for Linux oldld, aout, or coff.
14423 linux*oldld* | linux*aout* | linux*coff*)
14427 # This must be Linux ELF.
14428 linux* | k*bsd*-gnu)
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=no
14437 # This implies no fast_install, which is unacceptable.
14438 # Some rework will be needed to allow for fast_install
14439 # before this can be enabled.
14440 hardcode_into_libs=yes
14442 # Append ld.so.conf contents to the search path
14443 if test -f /etc/ld.so.conf; then
14444 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' ' '`
14445 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14448 # We used to test for /lib/ld.so.1 and disable shared libraries on
14449 # powerpc, because MkLinux only supported shared libraries with the
14450 # GNU dynamic linker. Since this was broken with cross compilers,
14451 # most powerpc-linux boxes support dynamic linking these days and
14452 # people can always --disable-shared, the test was removed, and we
14453 # assume the GNU/Linux dynamic linker is in use.
14454 dynamic_linker='GNU/Linux ld.so'
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=no
14465 hardcode_into_libs=yes
14466 dynamic_linker='NetBSD ld.elf_so'
14473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14476 dynamic_linker='NetBSD (a.out) ld.so'
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14479 soname_spec='${libname}${release}${shared_ext}$major'
14480 dynamic_linker='NetBSD ld.elf_so'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 shlibpath_overrides_runpath=yes
14484 hardcode_into_libs=yes
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 shlibpath_var=LD_LIBRARY_PATH
14501 shlibpath_overrides_runpath=yes
14506 sys_lib_dlsearch_path_spec="/usr/lib"
14508 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14510 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14511 *) need_version=no ;;
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14515 shlibpath_var=LD_LIBRARY_PATH
14516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14518 openbsd2.[89] | openbsd2.[89].*)
14519 shlibpath_overrides_runpath=no
14522 shlibpath_overrides_runpath=yes
14526 shlibpath_overrides_runpath=yes
14531 libname_spec='$name'
14534 library_names_spec='$libname${shared_ext} $libname.a'
14535 dynamic_linker='OS/2 ld.exe'
14536 shlibpath_var=LIBPATH
14539 osf3* | osf4* | osf5*)
14543 soname_spec='${libname}${release}${shared_ext}$major'
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 shlibpath_var=LD_LIBRARY_PATH
14546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 shlibpath_var=LD_LIBRARY_PATH
14557 shlibpath_overrides_runpath=yes
14558 hardcode_into_libs=yes
14559 # ldd complains unless libraries are executable
14560 postinstall_cmds='chmod +x $lib'
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 shlibpath_overrides_runpath=yes
14569 if test "$with_gnu_ld" = yes; then
14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14578 soname_spec='${libname}${release}${shared_ext}$major'
14579 shlibpath_var=LD_LIBRARY_PATH
14580 case $host_vendor in
14582 shlibpath_overrides_runpath=no
14584 export_dynamic_flag_spec='${wl}-Blargedynsym'
14585 runpath_var=LD_RUN_PATH
14593 shlibpath_overrides_runpath=no
14594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14600 if test -d /usr/nec ;then
14602 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14603 soname_spec='$libname${shared_ext}.$major'
14604 shlibpath_var=LD_LIBRARY_PATH
14608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14609 version_type=freebsd-elf
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 hardcode_into_libs=yes
14616 if test "$with_gnu_ld" = yes; then
14617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14618 shlibpath_overrides_runpath=no
14620 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14621 shlibpath_overrides_runpath=yes
14624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14628 sys_lib_dlsearch_path_spec='/usr/lib'
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14642 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14643 echo "${ECHO_T}$dynamic_linker" >&6; }
14644 test "$dynamic_linker" = no && can_build_shared=no
14646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14647 if test "$GCC" = yes; then
14648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14651 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14652 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14653 hardcode_action_CXX=
14654 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14655 test -n "$runpath_var_CXX" || \
14656 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14658 # We can hardcode non-existant directories.
14659 if test "$hardcode_direct_CXX" != no &&
14660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14661 # have to relink, otherwise we might link with an installed library
14662 # when we should be linking with a yet-to-be-installed one
14663 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14664 test "$hardcode_minus_L_CXX" != no; then
14665 # Linking always hardcodes the temporary library directory.
14666 hardcode_action_CXX=relink
14668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14669 hardcode_action_CXX=immediate
14672 # We cannot hardcode anything, or else we can only hardcode existing
14674 hardcode_action_CXX=unsupported
14676 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14677 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14679 if test "$hardcode_action_CXX" = relink; then
14680 # Fast installation is not supported
14681 enable_fast_install=no
14682 elif test "$shlibpath_overrides_runpath" = yes ||
14683 test "$enable_shared" = no; then
14684 # Fast installation is not necessary
14685 enable_fast_install=needless
14689 # The else clause should only fire when bootstrapping the
14690 # libtool distribution, otherwise you forgot to ship ltmain.sh
14691 # with your package, and you will get complaints that there are
14692 # no rules to generate ltmain.sh.
14693 if test -f "$ltmain"; then
14694 # See if we are running on zsh, and set the options which allow our commands through
14695 # without removal of \ escapes.
14696 if test -n "${ZSH_VERSION+set}" ; then
14697 setopt NO_GLOB_SUBST
14699 # Now quote all the things that may contain metacharacters while being
14700 # careful not to overquote the AC_SUBSTed values. We take copies of the
14701 # variables and quote the copies for generation of the libtool script.
14702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14706 deplibs_check_method reload_flag reload_cmds need_locks \
14707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14708 lt_cv_sys_global_symbol_to_c_name_address \
14709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14710 old_postinstall_cmds old_postuninstall_cmds \
14714 lt_prog_compiler_wl_CXX \
14715 lt_prog_compiler_pic_CXX \
14716 lt_prog_compiler_static_CXX \
14717 lt_prog_compiler_no_builtin_flag_CXX \
14718 export_dynamic_flag_spec_CXX \
14719 thread_safe_flag_spec_CXX \
14720 whole_archive_flag_spec_CXX \
14721 enable_shared_with_static_runtimes_CXX \
14722 old_archive_cmds_CXX \
14723 old_archive_from_new_cmds_CXX \
14724 predep_objects_CXX \
14725 postdep_objects_CXX \
14728 compiler_lib_search_path_CXX \
14730 archive_expsym_cmds_CXX \
14731 postinstall_cmds_CXX \
14732 postuninstall_cmds_CXX \
14733 old_archive_from_expsyms_cmds_CXX \
14734 allow_undefined_flag_CXX \
14735 no_undefined_flag_CXX \
14736 export_symbols_cmds_CXX \
14737 hardcode_libdir_flag_spec_CXX \
14738 hardcode_libdir_flag_spec_ld_CXX \
14739 hardcode_libdir_separator_CXX \
14740 hardcode_automatic_CXX \
14742 module_expsym_cmds_CXX \
14743 lt_cv_prog_compiler_c_o_CXX \
14744 exclude_expsyms_CXX \
14745 include_expsyms_CXX; do
14748 old_archive_cmds_CXX | \
14749 old_archive_from_new_cmds_CXX | \
14750 archive_cmds_CXX | \
14751 archive_expsym_cmds_CXX | \
14752 module_cmds_CXX | \
14753 module_expsym_cmds_CXX | \
14754 old_archive_from_expsyms_cmds_CXX | \
14755 export_symbols_cmds_CXX | \
14756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14757 postinstall_cmds | postuninstall_cmds | \
14758 old_postinstall_cmds | old_postuninstall_cmds | \
14759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14760 # Double-quote double-evaled strings.
14761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14770 *'\$0 --fallback-echo"')
14771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14777 cat <<__EOF__ >> "$cfgfile"
14778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14782 # Shell to use when invoking shell scripts.
14785 # Whether or not to build shared libraries.
14786 build_libtool_libs=$enable_shared
14788 # Whether or not to build static libraries.
14789 build_old_libs=$enable_static
14791 # Whether or not to add -lc for building shared libraries.
14792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14794 # Whether or not to disallow shared libs when runtime libs are static
14795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14797 # Whether or not to optimize for fast installation.
14798 fast_install=$enable_fast_install
14801 host_alias=$host_alias
14805 # The build system.
14806 build_alias=$build_alias
14810 # An echo program that does not interpret backslashes.
14815 AR_FLAGS=$lt_AR_FLAGS
14820 # LTCC compiler flags.
14821 LTCFLAGS=$lt_LTCFLAGS
14823 # A language-specific compiler.
14824 CC=$lt_compiler_CXX
14826 # Is the compiler the GNU C compiler?
14832 # The linker used to build libraries.
14835 # Whether we need hard or soft links.
14838 # A BSD-compatible nm program.
14841 # A symbol stripping program
14844 # Used to examine libraries when file_magic_cmd begins "file"
14845 MAGIC_CMD=$MAGIC_CMD
14847 # Used on cygwin: DLL creation program.
14850 # Used on cygwin: object dumper.
14853 # Used on cygwin: assembler.
14856 # The name of the directory that contains temporary libtool files.
14859 # How to create reloadable object files.
14860 reload_flag=$lt_reload_flag
14861 reload_cmds=$lt_reload_cmds
14863 # How to pass a linker flag through the compiler.
14864 wl=$lt_lt_prog_compiler_wl_CXX
14866 # Object file suffix (normally "o").
14867 objext="$ac_objext"
14869 # Old archive suffix (normally "a").
14872 # Shared library suffix (normally ".so").
14873 shrext_cmds='$shrext_cmds'
14875 # Executable file suffix (normally "").
14878 # Additional compiler flags for building library objects.
14879 pic_flag=$lt_lt_prog_compiler_pic_CXX
14882 # What is the maximum length of a command?
14883 max_cmd_len=$lt_cv_sys_max_cmd_len
14885 # Does compiler simultaneously support -c and -o options?
14886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14888 # Must we lock files when doing compilation?
14889 need_locks=$lt_need_locks
14891 # Do we need the lib prefix for modules?
14892 need_lib_prefix=$need_lib_prefix
14894 # Do we need a version for libraries?
14895 need_version=$need_version
14897 # Whether dlopen is supported.
14898 dlopen_support=$enable_dlopen
14900 # Whether dlopen of programs is supported.
14901 dlopen_self=$enable_dlopen_self
14903 # Whether dlopen of statically linked programs is supported.
14904 dlopen_self_static=$enable_dlopen_self_static
14906 # Compiler flag to prevent dynamic linking.
14907 link_static_flag=$lt_lt_prog_compiler_static_CXX
14909 # Compiler flag to turn off builtin functions.
14910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14912 # Compiler flag to allow reflexive dlopens.
14913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14915 # Compiler flag to generate shared objects directly from archives.
14916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14918 # Compiler flag to generate thread-safe objects.
14919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14921 # Library versioning type.
14922 version_type=$version_type
14924 # Format of library name prefix.
14925 libname_spec=$lt_libname_spec
14927 # List of archive names. First name is the real one, the rest are links.
14928 # The last name is the one that the linker finds with -lNAME.
14929 library_names_spec=$lt_library_names_spec
14931 # The coded name of the library, if different from the real name.
14932 soname_spec=$lt_soname_spec
14934 # Commands used to build and install an old-style archive.
14936 old_archive_cmds=$lt_old_archive_cmds_CXX
14937 old_postinstall_cmds=$lt_old_postinstall_cmds
14938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14940 # Create an old-style archive from a shared archive.
14941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14943 # Create a temporary old-style archive to link instead of a shared archive.
14944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14946 # Commands used to build and install a shared archive.
14947 archive_cmds=$lt_archive_cmds_CXX
14948 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14949 postinstall_cmds=$lt_postinstall_cmds
14950 postuninstall_cmds=$lt_postuninstall_cmds
14952 # Commands used to build a loadable module (assumed same as above if empty)
14953 module_cmds=$lt_module_cmds_CXX
14954 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14956 # Commands to strip libraries.
14957 old_striplib=$lt_old_striplib
14958 striplib=$lt_striplib
14960 # Dependencies to place before the objects being linked to create a
14962 predep_objects=$lt_predep_objects_CXX
14964 # Dependencies to place after the objects being linked to create a
14966 postdep_objects=$lt_postdep_objects_CXX
14968 # Dependencies to place before the objects being linked to create a
14970 predeps=$lt_predeps_CXX
14972 # Dependencies to place after the objects being linked to create a
14974 postdeps=$lt_postdeps_CXX
14976 # The library search path used internally by the compiler when linking
14977 # a shared library.
14978 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14980 # Method to check whether dependent libraries are shared objects.
14981 deplibs_check_method=$lt_deplibs_check_method
14983 # Command to use when deplibs_check_method == file_magic.
14984 file_magic_cmd=$lt_file_magic_cmd
14986 # Flag that allows shared libraries with undefined symbols to be built.
14987 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14989 # Flag that forces no undefined symbols.
14990 no_undefined_flag=$lt_no_undefined_flag_CXX
14992 # Commands used to finish a libtool library installation in a directory.
14993 finish_cmds=$lt_finish_cmds
14995 # Same as above, but a single script fragment to be evaled but not shown.
14996 finish_eval=$lt_finish_eval
14998 # Take the output of nm and produce a listing of raw symbols and C names.
14999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15001 # Transform the output of nm in a proper C declaration
15002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15004 # Transform the output of nm in a C name address pair
15005 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15007 # This is the shared library runtime path variable.
15008 runpath_var=$runpath_var
15010 # This is the shared library path variable.
15011 shlibpath_var=$shlibpath_var
15013 # Is shlibpath searched before the hard-coded library search path?
15014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15016 # How to hardcode a shared library path into an executable.
15017 hardcode_action=$hardcode_action_CXX
15019 # Whether we should hardcode library paths into libraries.
15020 hardcode_into_libs=$hardcode_into_libs
15022 # Flag to hardcode \$libdir into a binary during linking.
15023 # This must work even if \$libdir does not exist.
15024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15026 # If ld is used when linking, flag to hardcode \$libdir into
15027 # a binary during linking. This must work even if \$libdir does
15029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15031 # Whether we need a single -rpath flag with a separated argument.
15032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15034 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15035 # resulting binary.
15036 hardcode_direct=$hardcode_direct_CXX
15038 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15039 # resulting binary.
15040 hardcode_minus_L=$hardcode_minus_L_CXX
15042 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15043 # the resulting binary.
15044 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15046 # Set to yes if building a shared library automatically hardcodes DIR into the library
15047 # and all subsequent libraries and executables linked against it.
15048 hardcode_automatic=$hardcode_automatic_CXX
15050 # Variables whose values should be saved in libtool wrapper scripts and
15051 # restored at relink time.
15052 variables_saved_for_relink="$variables_saved_for_relink"
15054 # Whether libtool must link a program against all its dependency libraries.
15055 link_all_deplibs=$link_all_deplibs_CXX
15057 # Compile-time system search path for libraries
15058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15060 # Run-time system search path for libraries
15061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15063 # Fix the shell variable \$srcfile for the compiler.
15064 fix_srcfile_path="$fix_srcfile_path_CXX"
15066 # Set to yes if exported symbols are required.
15067 always_export_symbols=$always_export_symbols_CXX
15069 # The commands to list exported symbols.
15070 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15072 # The commands to extract the exported symbol list from a shared archive.
15073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15075 # Symbols that should not be listed in the preloaded symbols.
15076 exclude_expsyms=$lt_exclude_expsyms_CXX
15078 # Symbols that must always be exported.
15079 include_expsyms=$lt_include_expsyms_CXX
15081 # ### END LIBTOOL TAG CONFIG: $tagname
15087 # If there is no Makefile yet, we rely on a make rule to execute
15088 # `config.status --recheck' to rerun these tests and create the
15089 # libtool script then.
15090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15091 if test -f "$ltmain_in"; then
15092 test -f Makefile && make "$ltmain"
15098 ac_cpp='$CPP $CPPFLAGS'
15099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15107 with_gnu_ldcxx=$with_gnu_ld
15108 with_gnu_ld=$lt_save_with_gnu_ld
15109 lt_cv_path_LDCXX=$lt_cv_path_LD
15110 lt_cv_path_LD=$lt_save_path_LD
15111 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15112 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15120 if test -n "$F77" && test "X$F77" != "Xno"; then
15123 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15124 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15125 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15128 archive_cmds_need_lc_F77=no
15129 allow_undefined_flag_F77=
15130 always_export_symbols_F77=no
15131 archive_expsym_cmds_F77=
15132 export_dynamic_flag_spec_F77=
15133 hardcode_direct_F77=no
15134 hardcode_libdir_flag_spec_F77=
15135 hardcode_libdir_flag_spec_ld_F77=
15136 hardcode_libdir_separator_F77=
15137 hardcode_minus_L_F77=no
15138 hardcode_automatic_F77=no
15140 module_expsym_cmds_F77=
15141 link_all_deplibs_F77=unknown
15142 old_archive_cmds_F77=$old_archive_cmds
15143 no_undefined_flag_F77=
15144 whole_archive_flag_spec_F77=
15145 enable_shared_with_static_runtimes_F77=no
15147 # Source file extension for f77 test sources.
15150 # Object file extension for compiled f77 test sources.
15154 # Code to be used in simple compile tests
15155 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15157 # Code to be used in simple link tests
15158 lt_simple_link_test_code=" program t\n end\n"
15160 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15162 # If no C compiler was specified, use CC.
15165 # If no C compiler flags were specified, use CFLAGS.
15166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15168 # Allow CC to be a program name with arguments.
15172 # save warnings/boilerplate of simple test code
15173 ac_outfile=conftest.$ac_objext
15174 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15176 _lt_compiler_boilerplate=`cat conftest.err`
15179 ac_outfile=conftest.$ac_objext
15180 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15182 _lt_linker_boilerplate=`cat conftest.err`
15186 # Allow CC to be a program name with arguments.
15191 for cc_temp in $compiler""; do
15193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15202 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15203 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15204 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15205 echo "${ECHO_T}$can_build_shared" >&6; }
15207 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15208 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15209 test "$can_build_shared" = "no" && enable_shared=no
15211 # On AIX, shared libraries and static libraries use the same namespace, and
15212 # are all built from PIC.
15215 test "$enable_shared" = yes && enable_static=no
15216 if test -n "$RANLIB"; then
15217 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15218 postinstall_cmds='$RANLIB $lib'
15222 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15223 test "$enable_shared" = yes && enable_static=no
15227 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15228 echo "${ECHO_T}$enable_shared" >&6; }
15230 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15231 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15232 # Make sure either enable_shared or enable_static is yes.
15233 test "$enable_shared" = yes || enable_static=yes
15234 { echo "$as_me:$LINENO: result: $enable_static" >&5
15235 echo "${ECHO_T}$enable_static" >&6; }
15240 lt_prog_compiler_wl_F77=
15241 lt_prog_compiler_pic_F77=
15242 lt_prog_compiler_static_F77=
15244 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15245 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15247 if test "$GCC" = yes; then
15248 lt_prog_compiler_wl_F77='-Wl,'
15249 lt_prog_compiler_static_F77='-static'
15253 # All AIX code is PIC.
15254 if test "$host_cpu" = ia64; then
15255 # AIX 5 now supports IA64 processor
15256 lt_prog_compiler_static_F77='-Bstatic'
15261 # FIXME: we need at least 68020 code to build shared libraries, but
15262 # adding the `-m68020' flag to GCC prevents building anything better,
15264 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15267 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15268 # PIC is the default for these OSes.
15271 mingw* | pw32* | os2*)
15272 # This hack is so that the source file can tell whether it is being
15273 # built for inclusion in a dll (and should export symbols for example).
15274 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15277 darwin* | rhapsody*)
15278 # PIC is the default on this platform
15279 # Common symbols not allowed in MH_DYLIB files
15280 lt_prog_compiler_pic_F77='-fno-common'
15284 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15285 # Instead, we relocate shared libraries at runtime.
15289 # Just because we use GCC doesn't mean we suddenly get shared libraries
15290 # on systems that don't support them.
15291 lt_prog_compiler_can_build_shared_F77=no
15296 if test -d /usr/nec; then
15297 lt_prog_compiler_pic_F77=-Kconform_pic
15302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15303 # not for PA HP-UX.
15309 lt_prog_compiler_pic_F77='-fPIC'
15315 lt_prog_compiler_pic_F77='-fPIC'
15319 # PORTME Check for flag to pass linker flags through the system compiler.
15322 lt_prog_compiler_wl_F77='-Wl,'
15323 if test "$host_cpu" = ia64; then
15324 # AIX 5 now supports IA64 processor
15325 lt_prog_compiler_static_F77='-Bstatic'
15327 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15331 # PIC is the default on this platform
15332 # Common symbols not allowed in MH_DYLIB files
15333 case $cc_basename in
15335 lt_prog_compiler_pic_F77='-qnocommon'
15336 lt_prog_compiler_wl_F77='-Wl,'
15341 mingw* | pw32* | os2*)
15342 # This hack is so that the source file can tell whether it is being
15343 # built for inclusion in a dll (and should export symbols for example).
15344 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15347 hpux9* | hpux10* | hpux11*)
15348 lt_prog_compiler_wl_F77='-Wl,'
15349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15350 # not for PA HP-UX.
15356 lt_prog_compiler_pic_F77='+Z'
15359 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15360 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15363 irix5* | irix6* | nonstopux*)
15364 lt_prog_compiler_wl_F77='-Wl,'
15365 # PIC (with -KPIC) is the default.
15366 lt_prog_compiler_static_F77='-non_shared'
15370 lt_prog_compiler_pic_F77='-KPIC'
15371 lt_prog_compiler_static_F77='-Bstatic'
15374 linux* | k*bsd*-gnu)
15375 case $cc_basename in
15377 lt_prog_compiler_wl_F77='-Wl,'
15378 lt_prog_compiler_pic_F77='-KPIC'
15379 lt_prog_compiler_static_F77='-static'
15381 pgcc* | pgf77* | pgf90* | pgf95*)
15382 # Portland Group compilers (*not* the Pentium gcc compiler,
15383 # which looks to be a dead project)
15384 lt_prog_compiler_wl_F77='-Wl,'
15385 lt_prog_compiler_pic_F77='-fpic'
15386 lt_prog_compiler_static_F77='-Bstatic'
15389 lt_prog_compiler_wl_F77='-Wl,'
15390 # All Alpha code is PIC.
15391 lt_prog_compiler_static_F77='-non_shared'
15396 osf3* | osf4* | osf5*)
15397 lt_prog_compiler_wl_F77='-Wl,'
15398 # All OSF/1 code is PIC.
15399 lt_prog_compiler_static_F77='-non_shared'
15403 lt_prog_compiler_pic_F77='-KPIC'
15404 lt_prog_compiler_static_F77='-Bstatic'
15405 case $cc_basename in
15406 f77* | f90* | f95*)
15407 lt_prog_compiler_wl_F77='-Qoption ld ';;
15409 lt_prog_compiler_wl_F77='-Wl,';;
15414 lt_prog_compiler_wl_F77='-Qoption ld '
15415 lt_prog_compiler_pic_F77='-PIC'
15416 lt_prog_compiler_static_F77='-Bstatic'
15419 sysv4 | sysv4.2uw2* | sysv4.3*)
15420 lt_prog_compiler_wl_F77='-Wl,'
15421 lt_prog_compiler_pic_F77='-KPIC'
15422 lt_prog_compiler_static_F77='-Bstatic'
15426 if test -d /usr/nec ;then
15427 lt_prog_compiler_pic_F77='-Kconform_pic'
15428 lt_prog_compiler_static_F77='-Bstatic'
15432 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15433 lt_prog_compiler_wl_F77='-Wl,'
15434 lt_prog_compiler_pic_F77='-KPIC'
15435 lt_prog_compiler_static_F77='-Bstatic'
15439 lt_prog_compiler_wl_F77='-Wl,'
15440 lt_prog_compiler_can_build_shared_F77=no
15444 lt_prog_compiler_pic_F77='-pic'
15445 lt_prog_compiler_static_F77='-Bstatic'
15449 lt_prog_compiler_can_build_shared_F77=no
15454 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15455 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15458 # Check to make sure the PIC flag actually works.
15460 if test -n "$lt_prog_compiler_pic_F77"; then
15462 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15464 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 lt_prog_compiler_pic_works_F77=no
15468 ac_outfile=conftest.$ac_objext
15469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15470 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15471 # Insert the option either (1) after the last *FLAGS variable, or
15472 # (2) before a word containing "conftest.", or (3) at the end.
15473 # Note that $ac_compile itself does not contain backslashes and begins
15474 # with a dollar sign (not a hyphen), so the echo should work correctly.
15475 # The option is referenced via a variable to avoid confusing sed.
15476 lt_compile=`echo "$ac_compile" | $SED \
15477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15479 -e 's:$: $lt_compiler_flag:'`
15480 (eval echo "\"\$as_me:15480: $lt_compile\"" >&5)
15481 (eval "$lt_compile" 2>conftest.err)
15483 cat conftest.err >&5
15484 echo "$as_me:15484: \$? = $ac_status" >&5
15485 if (exit $ac_status) && test -s "$ac_outfile"; then
15486 # The compiler can only warn and ignore the option if not recognized
15487 # So say no if there are warnings other than the usual output.
15488 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15491 lt_prog_compiler_pic_works_F77=yes
15497 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15498 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15500 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15501 case $lt_prog_compiler_pic_F77 in
15503 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15506 lt_prog_compiler_pic_F77=
15507 lt_prog_compiler_can_build_shared_F77=no
15512 # For platforms which do not support PIC, -DPIC is meaningless:
15514 lt_prog_compiler_pic_F77=
15517 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15522 # Check to make sure the static flag actually works.
15524 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15525 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15526 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15527 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 lt_prog_compiler_static_works_F77=no
15531 save_LDFLAGS="$LDFLAGS"
15532 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15533 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15534 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15535 # The linker can only warn and ignore the option if not recognized
15536 # So say no if there are warnings
15537 if test -s conftest.err; then
15538 # Append any errors to the config.log.
15539 cat conftest.err 1>&5
15540 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15542 if diff conftest.exp conftest.er2 >/dev/null; then
15543 lt_prog_compiler_static_works_F77=yes
15546 lt_prog_compiler_static_works_F77=yes
15550 LDFLAGS="$save_LDFLAGS"
15553 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15554 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15556 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15559 lt_prog_compiler_static_F77=
15563 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15564 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15565 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 lt_cv_prog_compiler_c_o_F77=no
15569 $rm -r conftest 2>/dev/null
15573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15575 lt_compiler_flag="-o out/conftest2.$ac_objext"
15576 # Insert the option either (1) after the last *FLAGS variable, or
15577 # (2) before a word containing "conftest.", or (3) at the end.
15578 # Note that $ac_compile itself does not contain backslashes and begins
15579 # with a dollar sign (not a hyphen), so the echo should work correctly.
15580 lt_compile=`echo "$ac_compile" | $SED \
15581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15583 -e 's:$: $lt_compiler_flag:'`
15584 (eval echo "\"\$as_me:15584: $lt_compile\"" >&5)
15585 (eval "$lt_compile" 2>out/conftest.err)
15587 cat out/conftest.err >&5
15588 echo "$as_me:15588: \$? = $ac_status" >&5
15589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15591 # The compiler can only warn and ignore the option if not recognized
15592 # So say no if there are warnings
15593 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15596 lt_cv_prog_compiler_c_o_F77=yes
15601 # SGI C++ compiler will create directory out/ii_files/ for
15602 # template instantiation
15603 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15604 $rm out/* && rmdir out
15610 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15611 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15614 hard_links="nottested"
15615 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15616 # do not overwrite the value of need_locks provided by the user
15617 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15618 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15623 ln conftest.a conftest.b 2>&5 || hard_links=no
15624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15625 { echo "$as_me:$LINENO: result: $hard_links" >&5
15626 echo "${ECHO_T}$hard_links" >&6; }
15627 if test "$hard_links" = no; then
15628 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15629 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15636 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15637 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15640 allow_undefined_flag_F77=
15641 enable_shared_with_static_runtimes_F77=no
15643 archive_expsym_cmds_F77=
15644 old_archive_From_new_cmds_F77=
15645 old_archive_from_expsyms_cmds_F77=
15646 export_dynamic_flag_spec_F77=
15647 whole_archive_flag_spec_F77=
15648 thread_safe_flag_spec_F77=
15649 hardcode_libdir_flag_spec_F77=
15650 hardcode_libdir_flag_spec_ld_F77=
15651 hardcode_libdir_separator_F77=
15652 hardcode_direct_F77=no
15653 hardcode_minus_L_F77=no
15654 hardcode_shlibpath_var_F77=unsupported
15655 link_all_deplibs_F77=unknown
15656 hardcode_automatic_F77=no
15658 module_expsym_cmds_F77=
15659 always_export_symbols_F77=no
15660 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15661 # include_expsyms should be a list of space-separated symbols to be *always*
15662 # included in the symbol list
15663 include_expsyms_F77=
15664 # exclude_expsyms can be an extended regexp of symbols to exclude
15665 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15666 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15667 # as well as any symbol that contains `d'.
15668 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15669 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15670 # platforms (ab)use it in PIC code, but their linkers get confused if
15671 # the symbol is explicitly referenced. Since portable code cannot
15672 # rely on this symbol name, it's probably fine to never include it in
15673 # preloaded symbol tables.
15674 extract_expsyms_cmds=
15675 # Just being paranoid about ensuring that cc_basename is set.
15676 for cc_temp in $compiler""; do
15678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15687 cygwin* | mingw* | pw32*)
15688 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15689 # When not using gcc, we currently assume that we are using
15690 # Microsoft Visual C++.
15691 if test "$GCC" != yes; then
15696 # we just hope/assume this is gcc and not c89 (= MSVC++)
15705 if test "$with_gnu_ld" = yes; then
15706 # If archive_cmds runs LD, not CC, wlarc should be empty
15709 # Set some defaults for GNU ld with shared library support. These
15710 # are reset later if shared libraries are not supported. Putting them
15711 # here allows them to be overridden if necessary.
15712 runpath_var=LD_RUN_PATH
15713 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15714 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15715 # ancient GNU ld didn't support --whole-archive et. al.
15716 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15717 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15719 whole_archive_flag_spec_F77=
15721 supports_anon_versioning=no
15722 case `$LD -v 2>/dev/null` in
15723 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15724 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15725 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15726 *\ 2.11.*) ;; # other 2.11 versions
15727 *) supports_anon_versioning=yes ;;
15730 # See if GNU ld supports shared libraries.
15732 aix3* | aix4* | aix5*)
15733 # On AIX/PPC, the GNU linker is very broken
15734 if test "$host_cpu" != ia64; then
15738 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15739 *** to be unable to reliably create shared libraries on AIX.
15740 *** Therefore, libtool is disabling shared libraries support. If you
15741 *** really care for shared libraries, you may want to modify your PATH
15742 *** so that a non-GNU linker is found, and then restart.
15749 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)'
15750 hardcode_libdir_flag_spec_F77='-L$libdir'
15751 hardcode_minus_L_F77=yes
15753 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15754 # that the semantics of dynamic libraries on AmigaOS, at least up
15755 # to version 4, is to share data among multiple programs linked
15756 # with the same dynamic library. Since this doesn't match the
15757 # behavior of shared libraries on other platforms, we can't use
15763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15764 allow_undefined_flag_F77=unsupported
15765 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15766 # support --undefined. This deserves some investigation. FIXME
15767 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15773 cygwin* | mingw* | pw32*)
15774 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15775 # as there is no search path for DLLs.
15776 hardcode_libdir_flag_spec_F77='-L$libdir'
15777 allow_undefined_flag_F77=unsupported
15778 always_export_symbols_F77=no
15779 enable_shared_with_static_runtimes_F77=yes
15780 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15782 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15783 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15784 # If the export-symbols file already is a .def file (1st line
15785 # is EXPORTS), use it as is; otherwise, prepend...
15786 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15787 cp $export_symbols $output_objdir/$soname.def;
15789 echo EXPORTS > $output_objdir/$soname.def;
15790 cat $export_symbols >> $output_objdir/$soname.def;
15792 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15799 hardcode_direct_F77=no
15800 hardcode_shlibpath_var_F77=no
15801 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15802 export_dynamic_flag_spec_F77='${wl}-E'
15803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15804 # Instead, shared libraries are loaded at an image base (0x10000000 by
15805 # default) and relocated if they conflict, which is a slow very memory
15806 # consuming and fragmenting process. To avoid this, we pick a random,
15807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15808 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15809 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'
15810 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'
15813 linux* | k*bsd*-gnu)
15814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15816 case $cc_basename,$host_cpu in
15817 pgcc*) # Portland Group C compiler
15818 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'
15819 tmp_addflag=' $pic_flag'
15821 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15822 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'
15823 tmp_addflag=' $pic_flag -Mnomain' ;;
15824 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15825 tmp_addflag=' -i_dynamic' ;;
15826 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15827 tmp_addflag=' -i_dynamic -nofor_main' ;;
15828 ifc* | ifort*) # Intel Fortran compiler
15829 tmp_addflag=' -nofor_main' ;;
15831 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833 if test $supports_anon_versioning = yes; then
15834 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15836 $echo "local: *; };" >> $output_objdir/$libname.ver~
15837 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15839 link_all_deplibs_F77=no
15845 netbsd* | netbsdelf*-gnu)
15846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15847 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15850 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15851 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15856 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15860 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15861 *** create shared libraries on Solaris systems. Therefore, libtool
15862 *** is disabling shared libraries support. We urge you to upgrade GNU
15863 *** binutils to release 2.9.1 or newer. Another option is to modify
15864 *** your PATH or compiler configuration so that the native linker is
15865 *** used, and then restart.
15868 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15869 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15870 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15877 case `$LD -v 2>&1` in
15878 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15882 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15883 *** reliably create shared libraries on SCO systems. Therefore, libtool
15884 *** is disabling shared libraries support. We urge you to upgrade GNU
15885 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15886 *** your PATH or compiler configuration so that the native linker is
15887 *** used, and then restart.
15892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15893 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15894 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15895 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15904 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15906 hardcode_direct_F77=yes
15907 hardcode_shlibpath_var_F77=no
15911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15912 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15913 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15920 if test "$ld_shlibs_F77" = no; then
15922 hardcode_libdir_flag_spec_F77=
15923 export_dynamic_flag_spec_F77=
15924 whole_archive_flag_spec_F77=
15927 # PORTME fill in a description of your system's linker (not GNU ld)
15930 allow_undefined_flag_F77=unsupported
15931 always_export_symbols_F77=yes
15932 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'
15933 # Note: this linker hardcodes the directories in LIBPATH if there
15934 # are no directories specified by -L.
15935 hardcode_minus_L_F77=yes
15936 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15937 # Neither direct hardcoding nor static linking is supported with a
15939 hardcode_direct_F77=unsupported
15944 if test "$host_cpu" = ia64; then
15945 # On IA64, the linker does run time linking by default, so we don't
15946 # have to do anything special.
15947 aix_use_runtimelinking=no
15948 exp_sym_flag='-Bexport'
15951 # If we're using GNU nm, then we don't want the "-C" option.
15952 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15953 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15954 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'
15956 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'
15958 aix_use_runtimelinking=no
15960 # Test if we are trying to use run time linking or normal
15961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15962 # need to do runtime linking.
15963 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15964 for ld_flag in $LDFLAGS; do
15965 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15966 aix_use_runtimelinking=yes
15973 exp_sym_flag='-bexport'
15974 no_entry_flag='-bnoentry'
15977 # When large executables or shared objects are built, AIX ld can
15978 # have problems creating the table of contents. If linking a library
15979 # or program results in "error TOC overflow" add -mminimal-toc to
15980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15983 archive_cmds_F77=''
15984 hardcode_direct_F77=yes
15985 hardcode_libdir_separator_F77=':'
15986 link_all_deplibs_F77=yes
15988 if test "$GCC" = yes; then
15989 case $host_os in aix4.[012]|aix4.[012].*)
15990 # We only want to do this on AIX 4.2 and lower, the check
15991 # below for broken collect2 doesn't work under 4.3+
15992 collect2name=`${CC} -print-prog-name=collect2`
15993 if test -f "$collect2name" && \
15994 strings "$collect2name" | grep resolve_lib_name >/dev/null
15996 # We have reworked collect2
15997 hardcode_direct_F77=yes
15999 # We have old collect2
16000 hardcode_direct_F77=unsupported
16001 # It fails to find uninstalled libraries when the uninstalled
16002 # path is not listed in the libpath. Setting hardcode_minus_L
16003 # to unsupported forces relinking
16004 hardcode_minus_L_F77=yes
16005 hardcode_libdir_flag_spec_F77='-L$libdir'
16006 hardcode_libdir_separator_F77=
16010 shared_flag='-shared'
16011 if test "$aix_use_runtimelinking" = yes; then
16012 shared_flag="$shared_flag "'${wl}-G'
16016 if test "$host_cpu" = ia64; then
16017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16018 # chokes on -Wl,-G. The following line is correct:
16021 if test "$aix_use_runtimelinking" = yes; then
16022 shared_flag='${wl}-G'
16024 shared_flag='${wl}-bM:SRE'
16029 # It seems that -bexpall does not export symbols beginning with
16030 # underscore (_), so it is better to generate a list of symbols to export.
16031 always_export_symbols_F77=yes
16032 if test "$aix_use_runtimelinking" = yes; then
16033 # Warning - without using the other runtime loading flags (-brtl),
16034 # -berok will link without error, but may produce a broken library.
16035 allow_undefined_flag_F77='-berok'
16036 # Determine the default libpath from the value encoded in an empty executable.
16037 cat >conftest.$ac_ext <<_ACEOF
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (ac_try="$ac_link"
16044 case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049 (eval "$ac_link") 2>conftest.er1
16051 grep -v '^ *+' conftest.er1 >conftest.err
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } && {
16056 test -z "$ac_f77_werror_flag" ||
16057 test ! -s conftest.err
16058 } && test -s conftest$ac_exeext &&
16059 $as_test_x conftest$ac_exeext; then
16061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16063 # Check for a 64-bit object if we didn't find anything.
16064 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; }
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16074 conftest$ac_exeext conftest.$ac_ext
16075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16077 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16078 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"
16080 if test "$host_cpu" = ia64; then
16081 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16082 allow_undefined_flag_F77="-z nodefs"
16083 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"
16085 # Determine the default libpath from the value encoded in an empty executable.
16086 cat >conftest.$ac_ext <<_ACEOF
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } && {
16105 test -z "$ac_f77_werror_flag" ||
16106 test ! -s conftest.err
16107 } && test -s conftest$ac_exeext &&
16108 $as_test_x conftest$ac_exeext; then
16110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16112 # Check for a 64-bit object if we didn't find anything.
16113 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; }
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16123 conftest$ac_exeext conftest.$ac_ext
16124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16126 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16127 # Warning - without using the other run time loading flags,
16128 # -berok will link without error, but may produce a broken library.
16129 no_undefined_flag_F77=' ${wl}-bernotok'
16130 allow_undefined_flag_F77=' ${wl}-berok'
16131 # Exported symbols can be pulled into shared objects from archives
16132 whole_archive_flag_spec_F77='$convenience'
16133 archive_cmds_need_lc_F77=yes
16134 # This is similar to how AIX traditionally builds its shared libraries.
16135 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'
16141 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)'
16142 hardcode_libdir_flag_spec_F77='-L$libdir'
16143 hardcode_minus_L_F77=yes
16144 # see comment about different semantics on the GNU ld section
16149 export_dynamic_flag_spec_F77=-rdynamic
16152 cygwin* | mingw* | pw32*)
16153 # When not using gcc, we currently assume that we are using
16154 # Microsoft Visual C++.
16155 # hardcode_libdir_flag_spec is actually meaningless, as there is
16156 # no search path for DLLs.
16157 hardcode_libdir_flag_spec_F77=' '
16158 allow_undefined_flag_F77=unsupported
16159 # Tell ltmain to make .lib files, not .a files.
16161 # Tell ltmain to make .dll files, not .so files.
16163 # FIXME: Setting linknames here is a bad hack.
16164 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16165 # The linker will automatically build a .lib file if we build a DLL.
16166 old_archive_From_new_cmds_F77='true'
16167 # FIXME: Should let the user specify the lib program.
16168 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16169 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16170 enable_shared_with_static_runtimes_F77=yes
16173 darwin* | rhapsody*)
16175 rhapsody* | darwin1.[012])
16176 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16179 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16180 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16182 case ${MACOSX_DEPLOYMENT_TARGET} in
16184 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16187 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16193 archive_cmds_need_lc_F77=no
16194 hardcode_direct_F77=no
16195 hardcode_automatic_F77=yes
16196 hardcode_shlibpath_var_F77=unsupported
16197 whole_archive_flag_spec_F77=''
16198 link_all_deplibs_F77=yes
16199 if test "$GCC" = yes ; then
16200 output_verbose_link_cmd='echo'
16201 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16202 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16204 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}'
16205 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}'
16207 case $cc_basename in
16209 output_verbose_link_cmd='echo'
16210 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16211 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16213 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}'
16214 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}'
16224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16225 hardcode_libdir_flag_spec_F77='-L$libdir'
16226 hardcode_shlibpath_var_F77=no
16233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16234 # support. Future versions do this automatically, but an explicit c++rt0.o
16235 # does not break anything, and helps significantly (at the cost of a little
16238 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16239 hardcode_libdir_flag_spec_F77='-R$libdir'
16240 hardcode_direct_F77=yes
16241 hardcode_shlibpath_var_F77=no
16244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16246 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16247 hardcode_direct_F77=yes
16248 hardcode_minus_L_F77=yes
16249 hardcode_shlibpath_var_F77=no
16252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16253 freebsd* | dragonfly*)
16254 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16255 hardcode_libdir_flag_spec_F77='-R$libdir'
16256 hardcode_direct_F77=yes
16257 hardcode_shlibpath_var_F77=no
16261 if test "$GCC" = yes; then
16262 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'
16264 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'
16266 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16267 hardcode_libdir_separator_F77=:
16268 hardcode_direct_F77=yes
16270 # hardcode_minus_L: Not really in the search PATH,
16271 # but as the default location of the library.
16272 hardcode_minus_L_F77=yes
16273 export_dynamic_flag_spec_F77='${wl}-E'
16277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16278 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16280 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16282 if test "$with_gnu_ld" = no; then
16283 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16284 hardcode_libdir_separator_F77=:
16286 hardcode_direct_F77=yes
16287 export_dynamic_flag_spec_F77='${wl}-E'
16289 # hardcode_minus_L: Not really in the search PATH,
16290 # but as the default location of the library.
16291 hardcode_minus_L_F77=yes
16296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16299 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16302 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16305 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16311 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16321 if test "$with_gnu_ld" = no; then
16322 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16323 hardcode_libdir_separator_F77=:
16327 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16328 hardcode_direct_F77=no
16329 hardcode_shlibpath_var_F77=no
16332 hardcode_direct_F77=yes
16333 export_dynamic_flag_spec_F77='${wl}-E'
16335 # hardcode_minus_L: Not really in the search PATH,
16336 # but as the default location of the library.
16337 hardcode_minus_L_F77=yes
16343 irix5* | irix6* | nonstopux*)
16344 if test "$GCC" = yes; then
16345 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'
16347 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'
16348 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16350 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16351 hardcode_libdir_separator_F77=:
16352 link_all_deplibs_F77=yes
16355 netbsd* | netbsdelf*-gnu)
16356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16357 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16359 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16361 hardcode_libdir_flag_spec_F77='-R$libdir'
16362 hardcode_direct_F77=yes
16363 hardcode_shlibpath_var_F77=no
16367 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_direct_F77=yes
16369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16370 hardcode_libdir_separator_F77=:
16371 hardcode_shlibpath_var_F77=no
16375 hardcode_direct_F77=yes
16376 hardcode_shlibpath_var_F77=no
16377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16378 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16380 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16381 export_dynamic_flag_spec_F77='${wl}-E'
16384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16386 hardcode_libdir_flag_spec_F77='-R$libdir'
16389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16397 hardcode_libdir_flag_spec_F77='-L$libdir'
16398 hardcode_minus_L_F77=yes
16399 allow_undefined_flag_F77=unsupported
16400 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'
16401 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16405 if test "$GCC" = yes; then
16406 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16407 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'
16409 allow_undefined_flag_F77=' -expect_unresolved \*'
16410 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'
16412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16413 hardcode_libdir_separator_F77=:
16416 osf4* | osf5*) # as osf3* with the addition of -msym flag
16417 if test "$GCC" = yes; then
16418 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16419 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'
16420 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16422 allow_undefined_flag_F77=' -expect_unresolved \*'
16423 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'
16424 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~
16425 $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'
16427 # Both c and cxx compiler support -rpath directly
16428 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16430 hardcode_libdir_separator_F77=:
16434 no_undefined_flag_F77=' -z text'
16435 if test "$GCC" = yes; then
16437 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16438 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16439 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16442 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16443 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16446 hardcode_libdir_flag_spec_F77='-R$libdir'
16447 hardcode_shlibpath_var_F77=no
16449 solaris2.[0-5] | solaris2.[0-5].*) ;;
16451 # The compiler driver will combine linker options so we
16452 # cannot just pass the convience library names through
16453 # without $wl, iff we do not link with $LD.
16454 # Luckily, gcc supports the same syntax we need for Sun Studio.
16455 # Supported since Solaris 2.6 (maybe 2.5.1?)
16458 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16460 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' ;;
16463 link_all_deplibs_F77=yes
16467 if test "x$host_vendor" = xsequent; then
16468 # Use $CC to link under sequent, because it throws in some extra .o
16469 # files that make .init and .fini sections work.
16470 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16472 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16474 hardcode_libdir_flag_spec_F77='-L$libdir'
16475 hardcode_direct_F77=yes
16476 hardcode_minus_L_F77=yes
16477 hardcode_shlibpath_var_F77=no
16481 case $host_vendor in
16483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16484 hardcode_direct_F77=yes # is this really true???
16487 ## LD is ld it makes a PLAMLIB
16488 ## CC just makes a GrossModule.
16489 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16490 reload_cmds_F77='$CC -r -o $output$reload_objs'
16491 hardcode_direct_F77=no
16494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16498 runpath_var='LD_RUN_PATH'
16499 hardcode_shlibpath_var_F77=no
16503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504 hardcode_shlibpath_var_F77=no
16505 export_dynamic_flag_spec_F77='-Bexport'
16509 if test -d /usr/nec; then
16510 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16511 hardcode_shlibpath_var_F77=no
16512 runpath_var=LD_RUN_PATH
16513 hardcode_runpath_var=yes
16518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16519 no_undefined_flag_F77='${wl}-z,text'
16520 archive_cmds_need_lc_F77=no
16521 hardcode_shlibpath_var_F77=no
16522 runpath_var='LD_RUN_PATH'
16524 if test "$GCC" = yes; then
16525 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16526 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16528 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16529 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16533 sysv5* | sco3.2v5* | sco5v6*)
16534 # Note: We can NOT use -z defs as we might desire, because we do not
16535 # link with -lc, and that would cause any symbols used from libc to
16536 # always be unresolved, which means just about no library would
16537 # ever link correctly. If we're not using GNU ld we use -z text
16538 # though, which does catch some bad symbols but isn't as heavy-handed
16540 no_undefined_flag_F77='${wl}-z,text'
16541 allow_undefined_flag_F77='${wl}-z,nodefs'
16542 archive_cmds_need_lc_F77=no
16543 hardcode_shlibpath_var_F77=no
16544 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16545 hardcode_libdir_separator_F77=':'
16546 link_all_deplibs_F77=yes
16547 export_dynamic_flag_spec_F77='${wl}-Bexport'
16548 runpath_var='LD_RUN_PATH'
16550 if test "$GCC" = yes; then
16551 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16552 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16554 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16560 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16561 hardcode_libdir_flag_spec_F77='-L$libdir'
16562 hardcode_shlibpath_var_F77=no
16571 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16572 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16573 test "$ld_shlibs_F77" = no && can_build_shared=no
16576 # Do we need to explicitly link libc?
16578 case "x$archive_cmds_need_lc_F77" in
16580 # Assume -lc should be added
16581 archive_cmds_need_lc_F77=yes
16583 if test "$enable_shared" = yes && test "$GCC" = yes; then
16584 case $archive_cmds_F77 in
16586 # FIXME: we may have to deal with multi-command sequences.
16589 # Test whether the compiler implicitly links with -lc since on some
16590 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16591 # to ld, don't add -lc before -lgcc.
16592 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16593 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16598 (eval $ac_compile) 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } 2>conftest.err; then
16604 libobjs=conftest.$ac_objext
16606 wl=$lt_prog_compiler_wl_F77
16607 pic_flag=$lt_prog_compiler_pic_F77
16613 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16614 allow_undefined_flag_F77=
16615 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16616 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }
16621 archive_cmds_need_lc_F77=no
16623 archive_cmds_need_lc_F77=yes
16625 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16627 cat conftest.err 1>&5
16630 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16631 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16638 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16639 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16640 library_names_spec=
16641 libname_spec='lib$name'
16645 postuninstall_cmds=
16649 shlibpath_overrides_runpath=unknown
16651 dynamic_linker="$host_os ld.so"
16652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16653 if test "$GCC" = yes; then
16654 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16655 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16656 # if the path contains ";" then we assume it to be the separator
16657 # otherwise default to the standard path separator (i.e. ":") - it is
16658 # assumed that no part of a normal pathname contains ";" but that should
16659 # okay in the real world where ";" in dirpaths is itself problematic.
16660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16667 need_lib_prefix=unknown
16668 hardcode_into_libs=no
16670 # when you set need_version to no, make sure it does not cause -set_version
16671 # flags to be left without arguments
16672 need_version=unknown
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16678 shlibpath_var=LIBPATH
16680 # AIX 3 has no versioning support, so we append a major version to the name.
16681 soname_spec='${libname}${release}${shared_ext}$major'
16688 hardcode_into_libs=yes
16689 if test "$host_cpu" = ia64; then
16690 # AIX 5 supports IA64
16691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16692 shlibpath_var=LD_LIBRARY_PATH
16694 # With GCC up to 2.95.x, collect2 would create an import file
16695 # for dependence libraries. The import file would start with
16696 # the line `#! .'. This would cause the generated library to
16697 # depend on `.', always an invalid library. This was fixed in
16698 # development snapshots of GCC prior to 3.0.
16700 aix4 | aix4.[01] | aix4.[01].*)
16701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16703 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16706 can_build_shared=no
16710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16711 # soname into executable. Probably we can add versioning support to
16712 # collect2, so additional links can be useful in future.
16713 if test "$aix_use_runtimelinking" = yes; then
16714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16715 # instead of lib<name>.a to let people know that these are not
16716 # typical AIX shared libraries.
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719 # We preserve .a as extension for shared libraries through AIX4.2
16720 # and later when we are not doing run time linking.
16721 library_names_spec='${libname}${release}.a $libname.a'
16722 soname_spec='${libname}${release}${shared_ext}$major'
16724 shlibpath_var=LIBPATH
16729 library_names_spec='$libname.ixlibrary $libname.a'
16730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16731 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'
16735 library_names_spec='${libname}${shared_ext}'
16736 dynamic_linker="$host_os ld.so"
16737 shlibpath_var=LIBRARY_PATH
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16746 shlibpath_var=LD_LIBRARY_PATH
16747 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16748 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16749 # the default ld.so.conf also contains /usr/contrib/lib and
16750 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16751 # libtool to hard-code these into programs
16754 cygwin* | mingw* | pw32*)
16755 version_type=windows
16760 case $GCC,$host_os in
16761 yes,cygwin* | yes,mingw* | yes,pw32*)
16762 library_names_spec='$libname.dll.a'
16763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16764 postinstall_cmds='base_file=`basename \${file}`~
16765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16766 dldir=$destdir/`dirname \$dlpath`~
16767 test -d \$dldir || mkdir -p \$dldir~
16768 $install_prog $dir/$dlname \$dldir/$dlname~
16769 chmod a+x \$dldir/$dlname'
16770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16771 dlpath=$dir/\$dldll~
16773 shlibpath_overrides_runpath=yes
16777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16779 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16782 # MinGW DLLs use traditional 'lib' prefix
16783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16785 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16786 # It is most probably a Windows format PATH printed by
16787 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16788 # path with ; separators, and with drive letters. We can handle the
16789 # drive letters (cygwin fileutils understands them), so leave them,
16790 # especially as we might pass files found there to a mingw objdump,
16791 # which wouldn't understand a cygwinified path. Ahh.
16792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16798 # pw32 DLLs use 'pw' prefix rather than 'lib'
16799 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16808 dynamic_linker='Win32 ld.exe'
16809 # FIXME: first we should search . and the directory the executable is in
16813 darwin* | rhapsody*)
16814 dynamic_linker="$host_os dyld"
16815 version_type=darwin
16818 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16819 soname_spec='${libname}${release}${major}$shared_ext'
16820 shlibpath_overrides_runpath=yes
16821 shlibpath_var=DYLD_LIBRARY_PATH
16822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16823 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16824 if test "$GCC" = yes; then
16825 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"`
16827 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16845 freebsd* | dragonfly*)
16846 # DragonFly does not have aout. When/if they implement a new
16847 # versioning mechanism, adjust this.
16848 if test -x /usr/bin/objformat; then
16849 objformat=`/usr/bin/objformat`
16852 freebsd[123]*) objformat=aout ;;
16853 *) objformat=elf ;;
16856 version_type=freebsd-$objformat
16857 case $version_type in
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16868 shlibpath_var=LD_LIBRARY_PATH
16871 shlibpath_overrides_runpath=yes
16873 freebsd3.[01]* | freebsdelf3.[01]*)
16874 shlibpath_overrides_runpath=yes
16875 hardcode_into_libs=yes
16877 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16878 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16879 shlibpath_overrides_runpath=no
16880 hardcode_into_libs=yes
16882 freebsd*) # from 4.6 on
16883 shlibpath_overrides_runpath=yes
16884 hardcode_into_libs=yes
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 hardcode_into_libs=yes
16899 hpux9* | hpux10* | hpux11*)
16900 # Give a soname corresponding to the major version so that dld.sl refuses to
16901 # link against other versions.
16908 hardcode_into_libs=yes
16909 dynamic_linker="$host_os dld.so"
16910 shlibpath_var=LD_LIBRARY_PATH
16911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 if test "X$HPUX_IA64_MODE" = X32; then
16915 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16917 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16923 hardcode_into_libs=yes
16924 dynamic_linker="$host_os dld.sl"
16925 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16934 dynamic_linker="$host_os dld.sl"
16935 shlibpath_var=SHLIB_PATH
16936 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 soname_spec='${libname}${release}${shared_ext}$major'
16941 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16942 postinstall_cmds='chmod 555 $lib'
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 shlibpath_overrides_runpath=no
16954 hardcode_into_libs=yes
16957 irix5* | irix6* | nonstopux*)
16959 nonstopux*) version_type=nonstopux ;;
16961 if test "$lt_cv_prog_gnu_ld" = yes; then
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16972 irix5* | nonstopux*)
16973 libsuff= shlibsuff=
16976 case $LD in # libtool.m4 will add one of these switches to LD
16977 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16978 libsuff= shlibsuff= libmagic=32-bit;;
16979 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16980 libsuff=32 shlibsuff=N32 libmagic=N32;;
16981 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16982 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16983 *) libsuff= shlibsuff= libmagic=never-match;;
16987 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16988 shlibpath_overrides_runpath=no
16989 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16990 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16991 hardcode_into_libs=yes
16994 # No shared lib support for Linux oldld, aout, or coff.
16995 linux*oldld* | linux*aout* | linux*coff*)
16999 # This must be Linux ELF.
17000 linux* | k*bsd*-gnu)
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17007 shlibpath_var=LD_LIBRARY_PATH
17008 shlibpath_overrides_runpath=no
17009 # This implies no fast_install, which is unacceptable.
17010 # Some rework will be needed to allow for fast_install
17011 # before this can be enabled.
17012 hardcode_into_libs=yes
17014 # Append ld.so.conf contents to the search path
17015 if test -f /etc/ld.so.conf; then
17016 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' ' '`
17017 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17020 # We used to test for /lib/ld.so.1 and disable shared libraries on
17021 # powerpc, because MkLinux only supported shared libraries with the
17022 # GNU dynamic linker. Since this was broken with cross compilers,
17023 # most powerpc-linux boxes support dynamic linking these days and
17024 # people can always --disable-shared, the test was removed, and we
17025 # assume the GNU/Linux dynamic linker is in use.
17026 dynamic_linker='GNU/Linux ld.so'
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 shlibpath_var=LD_LIBRARY_PATH
17036 shlibpath_overrides_runpath=no
17037 hardcode_into_libs=yes
17038 dynamic_linker='NetBSD ld.elf_so'
17045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17048 dynamic_linker='NetBSD (a.out) ld.so'
17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17051 soname_spec='${libname}${release}${shared_ext}$major'
17052 dynamic_linker='NetBSD ld.elf_so'
17054 shlibpath_var=LD_LIBRARY_PATH
17055 shlibpath_overrides_runpath=yes
17056 hardcode_into_libs=yes
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 shlibpath_var=LD_LIBRARY_PATH
17063 shlibpath_overrides_runpath=yes
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes
17078 sys_lib_dlsearch_path_spec="/usr/lib"
17080 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17082 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17083 *) need_version=no ;;
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17090 openbsd2.[89] | openbsd2.[89].*)
17091 shlibpath_overrides_runpath=no
17094 shlibpath_overrides_runpath=yes
17098 shlibpath_overrides_runpath=yes
17103 libname_spec='$name'
17106 library_names_spec='$libname${shared_ext} $libname.a'
17107 dynamic_linker='OS/2 ld.exe'
17108 shlibpath_var=LIBPATH
17111 osf3* | osf4* | osf5*)
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127 soname_spec='${libname}${release}${shared_ext}$major'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=yes
17130 hardcode_into_libs=yes
17131 # ldd complains unless libraries are executable
17132 postinstall_cmds='chmod +x $lib'
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17138 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17139 shlibpath_var=LD_LIBRARY_PATH
17140 shlibpath_overrides_runpath=yes
17141 if test "$with_gnu_ld" = yes; then
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 case $host_vendor in
17154 shlibpath_overrides_runpath=no
17156 export_dynamic_flag_spec='${wl}-Blargedynsym'
17157 runpath_var=LD_RUN_PATH
17165 shlibpath_overrides_runpath=no
17166 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17172 if test -d /usr/nec ;then
17174 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17175 soname_spec='$libname${shared_ext}.$major'
17176 shlibpath_var=LD_LIBRARY_PATH
17180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17181 version_type=freebsd-elf
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 hardcode_into_libs=yes
17188 if test "$with_gnu_ld" = yes; then
17189 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17190 shlibpath_overrides_runpath=no
17192 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17193 shlibpath_overrides_runpath=yes
17196 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17200 sys_lib_dlsearch_path_spec='/usr/lib'
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 shlibpath_var=LD_LIBRARY_PATH
17214 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17215 echo "${ECHO_T}$dynamic_linker" >&6; }
17216 test "$dynamic_linker" = no && can_build_shared=no
17218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17219 if test "$GCC" = yes; then
17220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17223 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17224 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17225 hardcode_action_F77=
17226 if test -n "$hardcode_libdir_flag_spec_F77" || \
17227 test -n "$runpath_var_F77" || \
17228 test "X$hardcode_automatic_F77" = "Xyes" ; then
17230 # We can hardcode non-existant directories.
17231 if test "$hardcode_direct_F77" != no &&
17232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17233 # have to relink, otherwise we might link with an installed library
17234 # when we should be linking with a yet-to-be-installed one
17235 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17236 test "$hardcode_minus_L_F77" != no; then
17237 # Linking always hardcodes the temporary library directory.
17238 hardcode_action_F77=relink
17240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17241 hardcode_action_F77=immediate
17244 # We cannot hardcode anything, or else we can only hardcode existing
17246 hardcode_action_F77=unsupported
17248 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17249 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17251 if test "$hardcode_action_F77" = relink; then
17252 # Fast installation is not supported
17253 enable_fast_install=no
17254 elif test "$shlibpath_overrides_runpath" = yes ||
17255 test "$enable_shared" = no; then
17256 # Fast installation is not necessary
17257 enable_fast_install=needless
17261 # The else clause should only fire when bootstrapping the
17262 # libtool distribution, otherwise you forgot to ship ltmain.sh
17263 # with your package, and you will get complaints that there are
17264 # no rules to generate ltmain.sh.
17265 if test -f "$ltmain"; then
17266 # See if we are running on zsh, and set the options which allow our commands through
17267 # without removal of \ escapes.
17268 if test -n "${ZSH_VERSION+set}" ; then
17269 setopt NO_GLOB_SUBST
17271 # Now quote all the things that may contain metacharacters while being
17272 # careful not to overquote the AC_SUBSTed values. We take copies of the
17273 # variables and quote the copies for generation of the libtool script.
17274 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17276 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17277 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17278 deplibs_check_method reload_flag reload_cmds need_locks \
17279 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17280 lt_cv_sys_global_symbol_to_c_name_address \
17281 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17282 old_postinstall_cmds old_postuninstall_cmds \
17286 lt_prog_compiler_wl_F77 \
17287 lt_prog_compiler_pic_F77 \
17288 lt_prog_compiler_static_F77 \
17289 lt_prog_compiler_no_builtin_flag_F77 \
17290 export_dynamic_flag_spec_F77 \
17291 thread_safe_flag_spec_F77 \
17292 whole_archive_flag_spec_F77 \
17293 enable_shared_with_static_runtimes_F77 \
17294 old_archive_cmds_F77 \
17295 old_archive_from_new_cmds_F77 \
17296 predep_objects_F77 \
17297 postdep_objects_F77 \
17300 compiler_lib_search_path_F77 \
17302 archive_expsym_cmds_F77 \
17303 postinstall_cmds_F77 \
17304 postuninstall_cmds_F77 \
17305 old_archive_from_expsyms_cmds_F77 \
17306 allow_undefined_flag_F77 \
17307 no_undefined_flag_F77 \
17308 export_symbols_cmds_F77 \
17309 hardcode_libdir_flag_spec_F77 \
17310 hardcode_libdir_flag_spec_ld_F77 \
17311 hardcode_libdir_separator_F77 \
17312 hardcode_automatic_F77 \
17314 module_expsym_cmds_F77 \
17315 lt_cv_prog_compiler_c_o_F77 \
17316 exclude_expsyms_F77 \
17317 include_expsyms_F77; do
17320 old_archive_cmds_F77 | \
17321 old_archive_from_new_cmds_F77 | \
17322 archive_cmds_F77 | \
17323 archive_expsym_cmds_F77 | \
17324 module_cmds_F77 | \
17325 module_expsym_cmds_F77 | \
17326 old_archive_from_expsyms_cmds_F77 | \
17327 export_symbols_cmds_F77 | \
17328 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17329 postinstall_cmds | postuninstall_cmds | \
17330 old_postinstall_cmds | old_postuninstall_cmds | \
17331 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17332 # Double-quote double-evaled strings.
17333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17342 *'\$0 --fallback-echo"')
17343 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17349 cat <<__EOF__ >> "$cfgfile"
17350 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17354 # Shell to use when invoking shell scripts.
17357 # Whether or not to build shared libraries.
17358 build_libtool_libs=$enable_shared
17360 # Whether or not to build static libraries.
17361 build_old_libs=$enable_static
17363 # Whether or not to add -lc for building shared libraries.
17364 build_libtool_need_lc=$archive_cmds_need_lc_F77
17366 # Whether or not to disallow shared libs when runtime libs are static
17367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17369 # Whether or not to optimize for fast installation.
17370 fast_install=$enable_fast_install
17373 host_alias=$host_alias
17377 # The build system.
17378 build_alias=$build_alias
17382 # An echo program that does not interpret backslashes.
17387 AR_FLAGS=$lt_AR_FLAGS
17392 # LTCC compiler flags.
17393 LTCFLAGS=$lt_LTCFLAGS
17395 # A language-specific compiler.
17396 CC=$lt_compiler_F77
17398 # Is the compiler the GNU C compiler?
17404 # The linker used to build libraries.
17407 # Whether we need hard or soft links.
17410 # A BSD-compatible nm program.
17413 # A symbol stripping program
17416 # Used to examine libraries when file_magic_cmd begins "file"
17417 MAGIC_CMD=$MAGIC_CMD
17419 # Used on cygwin: DLL creation program.
17422 # Used on cygwin: object dumper.
17425 # Used on cygwin: assembler.
17428 # The name of the directory that contains temporary libtool files.
17431 # How to create reloadable object files.
17432 reload_flag=$lt_reload_flag
17433 reload_cmds=$lt_reload_cmds
17435 # How to pass a linker flag through the compiler.
17436 wl=$lt_lt_prog_compiler_wl_F77
17438 # Object file suffix (normally "o").
17439 objext="$ac_objext"
17441 # Old archive suffix (normally "a").
17444 # Shared library suffix (normally ".so").
17445 shrext_cmds='$shrext_cmds'
17447 # Executable file suffix (normally "").
17450 # Additional compiler flags for building library objects.
17451 pic_flag=$lt_lt_prog_compiler_pic_F77
17454 # What is the maximum length of a command?
17455 max_cmd_len=$lt_cv_sys_max_cmd_len
17457 # Does compiler simultaneously support -c and -o options?
17458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17460 # Must we lock files when doing compilation?
17461 need_locks=$lt_need_locks
17463 # Do we need the lib prefix for modules?
17464 need_lib_prefix=$need_lib_prefix
17466 # Do we need a version for libraries?
17467 need_version=$need_version
17469 # Whether dlopen is supported.
17470 dlopen_support=$enable_dlopen
17472 # Whether dlopen of programs is supported.
17473 dlopen_self=$enable_dlopen_self
17475 # Whether dlopen of statically linked programs is supported.
17476 dlopen_self_static=$enable_dlopen_self_static
17478 # Compiler flag to prevent dynamic linking.
17479 link_static_flag=$lt_lt_prog_compiler_static_F77
17481 # Compiler flag to turn off builtin functions.
17482 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17484 # Compiler flag to allow reflexive dlopens.
17485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17487 # Compiler flag to generate shared objects directly from archives.
17488 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17490 # Compiler flag to generate thread-safe objects.
17491 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17493 # Library versioning type.
17494 version_type=$version_type
17496 # Format of library name prefix.
17497 libname_spec=$lt_libname_spec
17499 # List of archive names. First name is the real one, the rest are links.
17500 # The last name is the one that the linker finds with -lNAME.
17501 library_names_spec=$lt_library_names_spec
17503 # The coded name of the library, if different from the real name.
17504 soname_spec=$lt_soname_spec
17506 # Commands used to build and install an old-style archive.
17508 old_archive_cmds=$lt_old_archive_cmds_F77
17509 old_postinstall_cmds=$lt_old_postinstall_cmds
17510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17512 # Create an old-style archive from a shared archive.
17513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17515 # Create a temporary old-style archive to link instead of a shared archive.
17516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17518 # Commands used to build and install a shared archive.
17519 archive_cmds=$lt_archive_cmds_F77
17520 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17521 postinstall_cmds=$lt_postinstall_cmds
17522 postuninstall_cmds=$lt_postuninstall_cmds
17524 # Commands used to build a loadable module (assumed same as above if empty)
17525 module_cmds=$lt_module_cmds_F77
17526 module_expsym_cmds=$lt_module_expsym_cmds_F77
17528 # Commands to strip libraries.
17529 old_striplib=$lt_old_striplib
17530 striplib=$lt_striplib
17532 # Dependencies to place before the objects being linked to create a
17534 predep_objects=$lt_predep_objects_F77
17536 # Dependencies to place after the objects being linked to create a
17538 postdep_objects=$lt_postdep_objects_F77
17540 # Dependencies to place before the objects being linked to create a
17542 predeps=$lt_predeps_F77
17544 # Dependencies to place after the objects being linked to create a
17546 postdeps=$lt_postdeps_F77
17548 # The library search path used internally by the compiler when linking
17549 # a shared library.
17550 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17552 # Method to check whether dependent libraries are shared objects.
17553 deplibs_check_method=$lt_deplibs_check_method
17555 # Command to use when deplibs_check_method == file_magic.
17556 file_magic_cmd=$lt_file_magic_cmd
17558 # Flag that allows shared libraries with undefined symbols to be built.
17559 allow_undefined_flag=$lt_allow_undefined_flag_F77
17561 # Flag that forces no undefined symbols.
17562 no_undefined_flag=$lt_no_undefined_flag_F77
17564 # Commands used to finish a libtool library installation in a directory.
17565 finish_cmds=$lt_finish_cmds
17567 # Same as above, but a single script fragment to be evaled but not shown.
17568 finish_eval=$lt_finish_eval
17570 # Take the output of nm and produce a listing of raw symbols and C names.
17571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17573 # Transform the output of nm in a proper C declaration
17574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17576 # Transform the output of nm in a C name address pair
17577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17579 # This is the shared library runtime path variable.
17580 runpath_var=$runpath_var
17582 # This is the shared library path variable.
17583 shlibpath_var=$shlibpath_var
17585 # Is shlibpath searched before the hard-coded library search path?
17586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17588 # How to hardcode a shared library path into an executable.
17589 hardcode_action=$hardcode_action_F77
17591 # Whether we should hardcode library paths into libraries.
17592 hardcode_into_libs=$hardcode_into_libs
17594 # Flag to hardcode \$libdir into a binary during linking.
17595 # This must work even if \$libdir does not exist.
17596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17598 # If ld is used when linking, flag to hardcode \$libdir into
17599 # a binary during linking. This must work even if \$libdir does
17601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17603 # Whether we need a single -rpath flag with a separated argument.
17604 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17606 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17607 # resulting binary.
17608 hardcode_direct=$hardcode_direct_F77
17610 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17611 # resulting binary.
17612 hardcode_minus_L=$hardcode_minus_L_F77
17614 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17615 # the resulting binary.
17616 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17618 # Set to yes if building a shared library automatically hardcodes DIR into the library
17619 # and all subsequent libraries and executables linked against it.
17620 hardcode_automatic=$hardcode_automatic_F77
17622 # Variables whose values should be saved in libtool wrapper scripts and
17623 # restored at relink time.
17624 variables_saved_for_relink="$variables_saved_for_relink"
17626 # Whether libtool must link a program against all its dependency libraries.
17627 link_all_deplibs=$link_all_deplibs_F77
17629 # Compile-time system search path for libraries
17630 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17632 # Run-time system search path for libraries
17633 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17635 # Fix the shell variable \$srcfile for the compiler.
17636 fix_srcfile_path="$fix_srcfile_path_F77"
17638 # Set to yes if exported symbols are required.
17639 always_export_symbols=$always_export_symbols_F77
17641 # The commands to list exported symbols.
17642 export_symbols_cmds=$lt_export_symbols_cmds_F77
17644 # The commands to extract the exported symbol list from a shared archive.
17645 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17647 # Symbols that should not be listed in the preloaded symbols.
17648 exclude_expsyms=$lt_exclude_expsyms_F77
17650 # Symbols that must always be exported.
17651 include_expsyms=$lt_include_expsyms_F77
17653 # ### END LIBTOOL TAG CONFIG: $tagname
17659 # If there is no Makefile yet, we rely on a make rule to execute
17660 # `config.status --recheck' to rerun these tests and create the
17661 # libtool script then.
17662 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17663 if test -f "$ltmain_in"; then
17664 test -f Makefile && make "$ltmain"
17670 ac_cpp='$CPP $CPPFLAGS'
17671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17683 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17686 # Source file extension for Java test sources.
17689 # Object file extension for compiled Java test sources.
17693 # Code to be used in simple compile tests
17694 lt_simple_compile_test_code="class foo {}\n"
17696 # Code to be used in simple link tests
17697 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17699 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17701 # If no C compiler was specified, use CC.
17704 # If no C compiler flags were specified, use CFLAGS.
17705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17707 # Allow CC to be a program name with arguments.
17711 # save warnings/boilerplate of simple test code
17712 ac_outfile=conftest.$ac_objext
17713 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17714 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17715 _lt_compiler_boilerplate=`cat conftest.err`
17718 ac_outfile=conftest.$ac_objext
17719 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17720 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17721 _lt_linker_boilerplate=`cat conftest.err`
17725 # Allow CC to be a program name with arguments.
17730 for cc_temp in $compiler""; do
17732 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17733 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17738 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17741 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17742 archive_cmds_need_lc_GCJ=no
17744 old_archive_cmds_GCJ=$old_archive_cmds
17747 lt_prog_compiler_no_builtin_flag_GCJ=
17749 if test "$GCC" = yes; then
17750 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17753 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17754 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17755 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 lt_cv_prog_compiler_rtti_exceptions=no
17759 ac_outfile=conftest.$ac_objext
17760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17761 lt_compiler_flag="-fno-rtti -fno-exceptions"
17762 # Insert the option either (1) after the last *FLAGS variable, or
17763 # (2) before a word containing "conftest.", or (3) at the end.
17764 # Note that $ac_compile itself does not contain backslashes and begins
17765 # with a dollar sign (not a hyphen), so the echo should work correctly.
17766 # The option is referenced via a variable to avoid confusing sed.
17767 lt_compile=`echo "$ac_compile" | $SED \
17768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17770 -e 's:$: $lt_compiler_flag:'`
17771 (eval echo "\"\$as_me:17771: $lt_compile\"" >&5)
17772 (eval "$lt_compile" 2>conftest.err)
17774 cat conftest.err >&5
17775 echo "$as_me:17775: \$? = $ac_status" >&5
17776 if (exit $ac_status) && test -s "$ac_outfile"; then
17777 # The compiler can only warn and ignore the option if not recognized
17778 # So say no if there are warnings other than the usual output.
17779 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17782 lt_cv_prog_compiler_rtti_exceptions=yes
17788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17789 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17792 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17799 lt_prog_compiler_wl_GCJ=
17800 lt_prog_compiler_pic_GCJ=
17801 lt_prog_compiler_static_GCJ=
17803 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17804 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17806 if test "$GCC" = yes; then
17807 lt_prog_compiler_wl_GCJ='-Wl,'
17808 lt_prog_compiler_static_GCJ='-static'
17812 # All AIX code is PIC.
17813 if test "$host_cpu" = ia64; then
17814 # AIX 5 now supports IA64 processor
17815 lt_prog_compiler_static_GCJ='-Bstatic'
17820 # FIXME: we need at least 68020 code to build shared libraries, but
17821 # adding the `-m68020' flag to GCC prevents building anything better,
17823 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17826 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17827 # PIC is the default for these OSes.
17830 mingw* | pw32* | os2*)
17831 # This hack is so that the source file can tell whether it is being
17832 # built for inclusion in a dll (and should export symbols for example).
17833 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17836 darwin* | rhapsody*)
17837 # PIC is the default on this platform
17838 # Common symbols not allowed in MH_DYLIB files
17839 lt_prog_compiler_pic_GCJ='-fno-common'
17843 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17844 # Instead, we relocate shared libraries at runtime.
17848 # Just because we use GCC doesn't mean we suddenly get shared libraries
17849 # on systems that don't support them.
17850 lt_prog_compiler_can_build_shared_GCJ=no
17855 if test -d /usr/nec; then
17856 lt_prog_compiler_pic_GCJ=-Kconform_pic
17861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17862 # not for PA HP-UX.
17868 lt_prog_compiler_pic_GCJ='-fPIC'
17874 lt_prog_compiler_pic_GCJ='-fPIC'
17878 # PORTME Check for flag to pass linker flags through the system compiler.
17881 lt_prog_compiler_wl_GCJ='-Wl,'
17882 if test "$host_cpu" = ia64; then
17883 # AIX 5 now supports IA64 processor
17884 lt_prog_compiler_static_GCJ='-Bstatic'
17886 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17890 # PIC is the default on this platform
17891 # Common symbols not allowed in MH_DYLIB files
17892 case $cc_basename in
17894 lt_prog_compiler_pic_GCJ='-qnocommon'
17895 lt_prog_compiler_wl_GCJ='-Wl,'
17900 mingw* | pw32* | os2*)
17901 # This hack is so that the source file can tell whether it is being
17902 # built for inclusion in a dll (and should export symbols for example).
17903 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17906 hpux9* | hpux10* | hpux11*)
17907 lt_prog_compiler_wl_GCJ='-Wl,'
17908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17909 # not for PA HP-UX.
17915 lt_prog_compiler_pic_GCJ='+Z'
17918 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17919 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17922 irix5* | irix6* | nonstopux*)
17923 lt_prog_compiler_wl_GCJ='-Wl,'
17924 # PIC (with -KPIC) is the default.
17925 lt_prog_compiler_static_GCJ='-non_shared'
17929 lt_prog_compiler_pic_GCJ='-KPIC'
17930 lt_prog_compiler_static_GCJ='-Bstatic'
17933 linux* | k*bsd*-gnu)
17934 case $cc_basename in
17936 lt_prog_compiler_wl_GCJ='-Wl,'
17937 lt_prog_compiler_pic_GCJ='-KPIC'
17938 lt_prog_compiler_static_GCJ='-static'
17940 pgcc* | pgf77* | pgf90* | pgf95*)
17941 # Portland Group compilers (*not* the Pentium gcc compiler,
17942 # which looks to be a dead project)
17943 lt_prog_compiler_wl_GCJ='-Wl,'
17944 lt_prog_compiler_pic_GCJ='-fpic'
17945 lt_prog_compiler_static_GCJ='-Bstatic'
17948 lt_prog_compiler_wl_GCJ='-Wl,'
17949 # All Alpha code is PIC.
17950 lt_prog_compiler_static_GCJ='-non_shared'
17955 osf3* | osf4* | osf5*)
17956 lt_prog_compiler_wl_GCJ='-Wl,'
17957 # All OSF/1 code is PIC.
17958 lt_prog_compiler_static_GCJ='-non_shared'
17962 lt_prog_compiler_pic_GCJ='-KPIC'
17963 lt_prog_compiler_static_GCJ='-Bstatic'
17964 case $cc_basename in
17965 f77* | f90* | f95*)
17966 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17968 lt_prog_compiler_wl_GCJ='-Wl,';;
17973 lt_prog_compiler_wl_GCJ='-Qoption ld '
17974 lt_prog_compiler_pic_GCJ='-PIC'
17975 lt_prog_compiler_static_GCJ='-Bstatic'
17978 sysv4 | sysv4.2uw2* | sysv4.3*)
17979 lt_prog_compiler_wl_GCJ='-Wl,'
17980 lt_prog_compiler_pic_GCJ='-KPIC'
17981 lt_prog_compiler_static_GCJ='-Bstatic'
17985 if test -d /usr/nec ;then
17986 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17987 lt_prog_compiler_static_GCJ='-Bstatic'
17991 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17992 lt_prog_compiler_wl_GCJ='-Wl,'
17993 lt_prog_compiler_pic_GCJ='-KPIC'
17994 lt_prog_compiler_static_GCJ='-Bstatic'
17998 lt_prog_compiler_wl_GCJ='-Wl,'
17999 lt_prog_compiler_can_build_shared_GCJ=no
18003 lt_prog_compiler_pic_GCJ='-pic'
18004 lt_prog_compiler_static_GCJ='-Bstatic'
18008 lt_prog_compiler_can_build_shared_GCJ=no
18013 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18014 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18017 # Check to make sure the PIC flag actually works.
18019 if test -n "$lt_prog_compiler_pic_GCJ"; then
18021 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18022 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18023 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 lt_prog_compiler_pic_works_GCJ=no
18027 ac_outfile=conftest.$ac_objext
18028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18029 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18030 # Insert the option either (1) after the last *FLAGS variable, or
18031 # (2) before a word containing "conftest.", or (3) at the end.
18032 # Note that $ac_compile itself does not contain backslashes and begins
18033 # with a dollar sign (not a hyphen), so the echo should work correctly.
18034 # The option is referenced via a variable to avoid confusing sed.
18035 lt_compile=`echo "$ac_compile" | $SED \
18036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18038 -e 's:$: $lt_compiler_flag:'`
18039 (eval echo "\"\$as_me:18039: $lt_compile\"" >&5)
18040 (eval "$lt_compile" 2>conftest.err)
18042 cat conftest.err >&5
18043 echo "$as_me:18043: \$? = $ac_status" >&5
18044 if (exit $ac_status) && test -s "$ac_outfile"; then
18045 # The compiler can only warn and ignore the option if not recognized
18046 # So say no if there are warnings other than the usual output.
18047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18050 lt_prog_compiler_pic_works_GCJ=yes
18056 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18057 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18059 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18060 case $lt_prog_compiler_pic_GCJ in
18062 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18065 lt_prog_compiler_pic_GCJ=
18066 lt_prog_compiler_can_build_shared_GCJ=no
18071 # For platforms which do not support PIC, -DPIC is meaningless:
18073 lt_prog_compiler_pic_GCJ=
18076 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18081 # Check to make sure the static flag actually works.
18083 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18084 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18085 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18086 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 lt_prog_compiler_static_works_GCJ=no
18090 save_LDFLAGS="$LDFLAGS"
18091 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18092 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18093 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18094 # The linker can only warn and ignore the option if not recognized
18095 # So say no if there are warnings
18096 if test -s conftest.err; then
18097 # Append any errors to the config.log.
18098 cat conftest.err 1>&5
18099 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18101 if diff conftest.exp conftest.er2 >/dev/null; then
18102 lt_prog_compiler_static_works_GCJ=yes
18105 lt_prog_compiler_static_works_GCJ=yes
18109 LDFLAGS="$save_LDFLAGS"
18112 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18113 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18115 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18118 lt_prog_compiler_static_GCJ=
18122 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18123 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18124 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 lt_cv_prog_compiler_c_o_GCJ=no
18128 $rm -r conftest 2>/dev/null
18132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18134 lt_compiler_flag="-o out/conftest2.$ac_objext"
18135 # Insert the option either (1) after the last *FLAGS variable, or
18136 # (2) before a word containing "conftest.", or (3) at the end.
18137 # Note that $ac_compile itself does not contain backslashes and begins
18138 # with a dollar sign (not a hyphen), so the echo should work correctly.
18139 lt_compile=`echo "$ac_compile" | $SED \
18140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18142 -e 's:$: $lt_compiler_flag:'`
18143 (eval echo "\"\$as_me:18143: $lt_compile\"" >&5)
18144 (eval "$lt_compile" 2>out/conftest.err)
18146 cat out/conftest.err >&5
18147 echo "$as_me:18147: \$? = $ac_status" >&5
18148 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18150 # The compiler can only warn and ignore the option if not recognized
18151 # So say no if there are warnings
18152 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18153 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18154 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18155 lt_cv_prog_compiler_c_o_GCJ=yes
18160 # SGI C++ compiler will create directory out/ii_files/ for
18161 # template instantiation
18162 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18163 $rm out/* && rmdir out
18169 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18170 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18173 hard_links="nottested"
18174 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18175 # do not overwrite the value of need_locks provided by the user
18176 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18177 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18182 ln conftest.a conftest.b 2>&5 || hard_links=no
18183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18184 { echo "$as_me:$LINENO: result: $hard_links" >&5
18185 echo "${ECHO_T}$hard_links" >&6; }
18186 if test "$hard_links" = no; then
18187 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18188 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18195 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18196 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18199 allow_undefined_flag_GCJ=
18200 enable_shared_with_static_runtimes_GCJ=no
18202 archive_expsym_cmds_GCJ=
18203 old_archive_From_new_cmds_GCJ=
18204 old_archive_from_expsyms_cmds_GCJ=
18205 export_dynamic_flag_spec_GCJ=
18206 whole_archive_flag_spec_GCJ=
18207 thread_safe_flag_spec_GCJ=
18208 hardcode_libdir_flag_spec_GCJ=
18209 hardcode_libdir_flag_spec_ld_GCJ=
18210 hardcode_libdir_separator_GCJ=
18211 hardcode_direct_GCJ=no
18212 hardcode_minus_L_GCJ=no
18213 hardcode_shlibpath_var_GCJ=unsupported
18214 link_all_deplibs_GCJ=unknown
18215 hardcode_automatic_GCJ=no
18217 module_expsym_cmds_GCJ=
18218 always_export_symbols_GCJ=no
18219 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18220 # include_expsyms should be a list of space-separated symbols to be *always*
18221 # included in the symbol list
18222 include_expsyms_GCJ=
18223 # exclude_expsyms can be an extended regexp of symbols to exclude
18224 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18225 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18226 # as well as any symbol that contains `d'.
18227 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18228 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18229 # platforms (ab)use it in PIC code, but their linkers get confused if
18230 # the symbol is explicitly referenced. Since portable code cannot
18231 # rely on this symbol name, it's probably fine to never include it in
18232 # preloaded symbol tables.
18233 extract_expsyms_cmds=
18234 # Just being paranoid about ensuring that cc_basename is set.
18235 for cc_temp in $compiler""; do
18237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18246 cygwin* | mingw* | pw32*)
18247 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18248 # When not using gcc, we currently assume that we are using
18249 # Microsoft Visual C++.
18250 if test "$GCC" != yes; then
18255 # we just hope/assume this is gcc and not c89 (= MSVC++)
18264 if test "$with_gnu_ld" = yes; then
18265 # If archive_cmds runs LD, not CC, wlarc should be empty
18268 # Set some defaults for GNU ld with shared library support. These
18269 # are reset later if shared libraries are not supported. Putting them
18270 # here allows them to be overridden if necessary.
18271 runpath_var=LD_RUN_PATH
18272 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18273 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18274 # ancient GNU ld didn't support --whole-archive et. al.
18275 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18276 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18278 whole_archive_flag_spec_GCJ=
18280 supports_anon_versioning=no
18281 case `$LD -v 2>/dev/null` in
18282 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18283 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18284 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18285 *\ 2.11.*) ;; # other 2.11 versions
18286 *) supports_anon_versioning=yes ;;
18289 # See if GNU ld supports shared libraries.
18291 aix3* | aix4* | aix5*)
18292 # On AIX/PPC, the GNU linker is very broken
18293 if test "$host_cpu" != ia64; then
18297 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18298 *** to be unable to reliably create shared libraries on AIX.
18299 *** Therefore, libtool is disabling shared libraries support. If you
18300 *** really care for shared libraries, you may want to modify your PATH
18301 *** so that a non-GNU linker is found, and then restart.
18308 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)'
18309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18310 hardcode_minus_L_GCJ=yes
18312 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18313 # that the semantics of dynamic libraries on AmigaOS, at least up
18314 # to version 4, is to share data among multiple programs linked
18315 # with the same dynamic library. Since this doesn't match the
18316 # behavior of shared libraries on other platforms, we can't use
18322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18323 allow_undefined_flag_GCJ=unsupported
18324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18325 # support --undefined. This deserves some investigation. FIXME
18326 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18332 cygwin* | mingw* | pw32*)
18333 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18334 # as there is no search path for DLLs.
18335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18336 allow_undefined_flag_GCJ=unsupported
18337 always_export_symbols_GCJ=no
18338 enable_shared_with_static_runtimes_GCJ=yes
18339 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18341 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18342 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18343 # If the export-symbols file already is a .def file (1st line
18344 # is EXPORTS), use it as is; otherwise, prepend...
18345 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18346 cp $export_symbols $output_objdir/$soname.def;
18348 echo EXPORTS > $output_objdir/$soname.def;
18349 cat $export_symbols >> $output_objdir/$soname.def;
18351 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18358 hardcode_direct_GCJ=no
18359 hardcode_shlibpath_var_GCJ=no
18360 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18361 export_dynamic_flag_spec_GCJ='${wl}-E'
18362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18363 # Instead, shared libraries are loaded at an image base (0x10000000 by
18364 # default) and relocated if they conflict, which is a slow very memory
18365 # consuming and fragmenting process. To avoid this, we pick a random,
18366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18368 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'
18369 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'
18372 linux* | k*bsd*-gnu)
18373 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18375 case $cc_basename,$host_cpu in
18376 pgcc*) # Portland Group C compiler
18377 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'
18378 tmp_addflag=' $pic_flag'
18380 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18381 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'
18382 tmp_addflag=' $pic_flag -Mnomain' ;;
18383 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18384 tmp_addflag=' -i_dynamic' ;;
18385 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18386 tmp_addflag=' -i_dynamic -nofor_main' ;;
18387 ifc* | ifort*) # Intel Fortran compiler
18388 tmp_addflag=' -nofor_main' ;;
18390 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18392 if test $supports_anon_versioning = yes; then
18393 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18394 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18395 $echo "local: *; };" >> $output_objdir/$libname.ver~
18396 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18398 link_all_deplibs_GCJ=no
18404 netbsd* | netbsdelf*-gnu)
18405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18406 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18409 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18410 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18415 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18420 *** create shared libraries on Solaris systems. Therefore, libtool
18421 *** is disabling shared libraries support. We urge you to upgrade GNU
18422 *** binutils to release 2.9.1 or newer. Another option is to modify
18423 *** your PATH or compiler configuration so that the native linker is
18424 *** used, and then restart.
18427 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18428 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18429 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18436 case `$LD -v 2>&1` in
18437 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18441 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18442 *** reliably create shared libraries on SCO systems. Therefore, libtool
18443 *** is disabling shared libraries support. We urge you to upgrade GNU
18444 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18445 *** your PATH or compiler configuration so that the native linker is
18446 *** used, and then restart.
18451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18452 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18463 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18465 hardcode_direct_GCJ=yes
18466 hardcode_shlibpath_var_GCJ=no
18470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18471 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18472 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18479 if test "$ld_shlibs_GCJ" = no; then
18481 hardcode_libdir_flag_spec_GCJ=
18482 export_dynamic_flag_spec_GCJ=
18483 whole_archive_flag_spec_GCJ=
18486 # PORTME fill in a description of your system's linker (not GNU ld)
18489 allow_undefined_flag_GCJ=unsupported
18490 always_export_symbols_GCJ=yes
18491 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'
18492 # Note: this linker hardcodes the directories in LIBPATH if there
18493 # are no directories specified by -L.
18494 hardcode_minus_L_GCJ=yes
18495 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18496 # Neither direct hardcoding nor static linking is supported with a
18498 hardcode_direct_GCJ=unsupported
18503 if test "$host_cpu" = ia64; then
18504 # On IA64, the linker does run time linking by default, so we don't
18505 # have to do anything special.
18506 aix_use_runtimelinking=no
18507 exp_sym_flag='-Bexport'
18510 # If we're using GNU nm, then we don't want the "-C" option.
18511 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18512 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18513 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'
18515 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'
18517 aix_use_runtimelinking=no
18519 # Test if we are trying to use run time linking or normal
18520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18521 # need to do runtime linking.
18522 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18523 for ld_flag in $LDFLAGS; do
18524 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18525 aix_use_runtimelinking=yes
18532 exp_sym_flag='-bexport'
18533 no_entry_flag='-bnoentry'
18536 # When large executables or shared objects are built, AIX ld can
18537 # have problems creating the table of contents. If linking a library
18538 # or program results in "error TOC overflow" add -mminimal-toc to
18539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18542 archive_cmds_GCJ=''
18543 hardcode_direct_GCJ=yes
18544 hardcode_libdir_separator_GCJ=':'
18545 link_all_deplibs_GCJ=yes
18547 if test "$GCC" = yes; then
18548 case $host_os in aix4.[012]|aix4.[012].*)
18549 # We only want to do this on AIX 4.2 and lower, the check
18550 # below for broken collect2 doesn't work under 4.3+
18551 collect2name=`${CC} -print-prog-name=collect2`
18552 if test -f "$collect2name" && \
18553 strings "$collect2name" | grep resolve_lib_name >/dev/null
18555 # We have reworked collect2
18556 hardcode_direct_GCJ=yes
18558 # We have old collect2
18559 hardcode_direct_GCJ=unsupported
18560 # It fails to find uninstalled libraries when the uninstalled
18561 # path is not listed in the libpath. Setting hardcode_minus_L
18562 # to unsupported forces relinking
18563 hardcode_minus_L_GCJ=yes
18564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18565 hardcode_libdir_separator_GCJ=
18569 shared_flag='-shared'
18570 if test "$aix_use_runtimelinking" = yes; then
18571 shared_flag="$shared_flag "'${wl}-G'
18575 if test "$host_cpu" = ia64; then
18576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18577 # chokes on -Wl,-G. The following line is correct:
18580 if test "$aix_use_runtimelinking" = yes; then
18581 shared_flag='${wl}-G'
18583 shared_flag='${wl}-bM:SRE'
18588 # It seems that -bexpall does not export symbols beginning with
18589 # underscore (_), so it is better to generate a list of symbols to export.
18590 always_export_symbols_GCJ=yes
18591 if test "$aix_use_runtimelinking" = yes; then
18592 # Warning - without using the other runtime loading flags (-brtl),
18593 # -berok will link without error, but may produce a broken library.
18594 allow_undefined_flag_GCJ='-berok'
18595 # Determine the default libpath from the value encoded in an empty executable.
18596 cat >conftest.$ac_ext <<_ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_link") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest$ac_exeext &&
18628 $as_test_x conftest$ac_exeext; then
18630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18632 # Check for a 64-bit object if we didn't find anything.
18633 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; }
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18643 conftest$ac_exeext conftest.$ac_ext
18644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18646 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18647 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"
18649 if test "$host_cpu" = ia64; then
18650 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18651 allow_undefined_flag_GCJ="-z nodefs"
18652 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"
18654 # Determine the default libpath from the value encoded in an empty executable.
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18670 rm -f conftest.$ac_objext conftest$ac_exeext
18671 if { (ac_try="$ac_link"
18672 case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_link") 2>conftest.er1
18679 grep -v '^ *+' conftest.er1 >conftest.err
18681 cat conftest.err >&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } && {
18684 test -z "$ac_c_werror_flag" ||
18685 test ! -s conftest.err
18686 } && test -s conftest$ac_exeext &&
18687 $as_test_x conftest$ac_exeext; then
18689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18691 # Check for a 64-bit object if we didn't find anything.
18692 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; }
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18705 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18706 # Warning - without using the other run time loading flags,
18707 # -berok will link without error, but may produce a broken library.
18708 no_undefined_flag_GCJ=' ${wl}-bernotok'
18709 allow_undefined_flag_GCJ=' ${wl}-berok'
18710 # Exported symbols can be pulled into shared objects from archives
18711 whole_archive_flag_spec_GCJ='$convenience'
18712 archive_cmds_need_lc_GCJ=yes
18713 # This is similar to how AIX traditionally builds its shared libraries.
18714 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'
18720 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)'
18721 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18722 hardcode_minus_L_GCJ=yes
18723 # see comment about different semantics on the GNU ld section
18728 export_dynamic_flag_spec_GCJ=-rdynamic
18731 cygwin* | mingw* | pw32*)
18732 # When not using gcc, we currently assume that we are using
18733 # Microsoft Visual C++.
18734 # hardcode_libdir_flag_spec is actually meaningless, as there is
18735 # no search path for DLLs.
18736 hardcode_libdir_flag_spec_GCJ=' '
18737 allow_undefined_flag_GCJ=unsupported
18738 # Tell ltmain to make .lib files, not .a files.
18740 # Tell ltmain to make .dll files, not .so files.
18742 # FIXME: Setting linknames here is a bad hack.
18743 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18744 # The linker will automatically build a .lib file if we build a DLL.
18745 old_archive_From_new_cmds_GCJ='true'
18746 # FIXME: Should let the user specify the lib program.
18747 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18748 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18749 enable_shared_with_static_runtimes_GCJ=yes
18752 darwin* | rhapsody*)
18754 rhapsody* | darwin1.[012])
18755 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18758 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18759 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18761 case ${MACOSX_DEPLOYMENT_TARGET} in
18763 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18766 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18772 archive_cmds_need_lc_GCJ=no
18773 hardcode_direct_GCJ=no
18774 hardcode_automatic_GCJ=yes
18775 hardcode_shlibpath_var_GCJ=unsupported
18776 whole_archive_flag_spec_GCJ=''
18777 link_all_deplibs_GCJ=yes
18778 if test "$GCC" = yes ; then
18779 output_verbose_link_cmd='echo'
18780 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18781 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18782 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18783 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}'
18784 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}'
18786 case $cc_basename in
18788 output_verbose_link_cmd='echo'
18789 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18790 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18791 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18792 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}'
18793 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}'
18803 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18805 hardcode_shlibpath_var_GCJ=no
18812 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18813 # support. Future versions do this automatically, but an explicit c++rt0.o
18814 # does not break anything, and helps significantly (at the cost of a little
18817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18819 hardcode_direct_GCJ=yes
18820 hardcode_shlibpath_var_GCJ=no
18823 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18825 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18826 hardcode_direct_GCJ=yes
18827 hardcode_minus_L_GCJ=yes
18828 hardcode_shlibpath_var_GCJ=no
18831 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18832 freebsd* | dragonfly*)
18833 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18834 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18835 hardcode_direct_GCJ=yes
18836 hardcode_shlibpath_var_GCJ=no
18840 if test "$GCC" = yes; then
18841 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'
18843 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'
18845 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18846 hardcode_libdir_separator_GCJ=:
18847 hardcode_direct_GCJ=yes
18849 # hardcode_minus_L: Not really in the search PATH,
18850 # but as the default location of the library.
18851 hardcode_minus_L_GCJ=yes
18852 export_dynamic_flag_spec_GCJ='${wl}-E'
18856 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18857 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18859 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18861 if test "$with_gnu_ld" = no; then
18862 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18863 hardcode_libdir_separator_GCJ=:
18865 hardcode_direct_GCJ=yes
18866 export_dynamic_flag_spec_GCJ='${wl}-E'
18868 # hardcode_minus_L: Not really in the search PATH,
18869 # but as the default location of the library.
18870 hardcode_minus_L_GCJ=yes
18875 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18878 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18881 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18884 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18890 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18893 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18896 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18900 if test "$with_gnu_ld" = no; then
18901 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18902 hardcode_libdir_separator_GCJ=:
18906 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18907 hardcode_direct_GCJ=no
18908 hardcode_shlibpath_var_GCJ=no
18911 hardcode_direct_GCJ=yes
18912 export_dynamic_flag_spec_GCJ='${wl}-E'
18914 # hardcode_minus_L: Not really in the search PATH,
18915 # but as the default location of the library.
18916 hardcode_minus_L_GCJ=yes
18922 irix5* | irix6* | nonstopux*)
18923 if test "$GCC" = yes; then
18924 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'
18926 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'
18927 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18929 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18930 hardcode_libdir_separator_GCJ=:
18931 link_all_deplibs_GCJ=yes
18934 netbsd* | netbsdelf*-gnu)
18935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18936 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18938 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18941 hardcode_direct_GCJ=yes
18942 hardcode_shlibpath_var_GCJ=no
18946 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18947 hardcode_direct_GCJ=yes
18948 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18949 hardcode_libdir_separator_GCJ=:
18950 hardcode_shlibpath_var_GCJ=no
18954 hardcode_direct_GCJ=yes
18955 hardcode_shlibpath_var_GCJ=no
18956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18957 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18958 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18960 export_dynamic_flag_spec_GCJ='${wl}-E'
18963 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18968 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18977 hardcode_minus_L_GCJ=yes
18978 allow_undefined_flag_GCJ=unsupported
18979 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'
18980 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18984 if test "$GCC" = yes; then
18985 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18986 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'
18988 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18989 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'
18991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18992 hardcode_libdir_separator_GCJ=:
18995 osf4* | osf5*) # as osf3* with the addition of -msym flag
18996 if test "$GCC" = yes; then
18997 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18998 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'
18999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19001 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19002 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'
19003 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~
19004 $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'
19006 # Both c and cxx compiler support -rpath directly
19007 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19009 hardcode_libdir_separator_GCJ=:
19013 no_undefined_flag_GCJ=' -z text'
19014 if test "$GCC" = yes; then
19016 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19017 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19018 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19021 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19022 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19026 hardcode_shlibpath_var_GCJ=no
19028 solaris2.[0-5] | solaris2.[0-5].*) ;;
19030 # The compiler driver will combine linker options so we
19031 # cannot just pass the convience library names through
19032 # without $wl, iff we do not link with $LD.
19033 # Luckily, gcc supports the same syntax we need for Sun Studio.
19034 # Supported since Solaris 2.6 (maybe 2.5.1?)
19037 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19039 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' ;;
19042 link_all_deplibs_GCJ=yes
19046 if test "x$host_vendor" = xsequent; then
19047 # Use $CC to link under sequent, because it throws in some extra .o
19048 # files that make .init and .fini sections work.
19049 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19051 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19054 hardcode_direct_GCJ=yes
19055 hardcode_minus_L_GCJ=yes
19056 hardcode_shlibpath_var_GCJ=no
19060 case $host_vendor in
19062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19063 hardcode_direct_GCJ=yes # is this really true???
19066 ## LD is ld it makes a PLAMLIB
19067 ## CC just makes a GrossModule.
19068 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19069 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19070 hardcode_direct_GCJ=no
19073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19074 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19077 runpath_var='LD_RUN_PATH'
19078 hardcode_shlibpath_var_GCJ=no
19082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19083 hardcode_shlibpath_var_GCJ=no
19084 export_dynamic_flag_spec_GCJ='-Bexport'
19088 if test -d /usr/nec; then
19089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19090 hardcode_shlibpath_var_GCJ=no
19091 runpath_var=LD_RUN_PATH
19092 hardcode_runpath_var=yes
19097 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19098 no_undefined_flag_GCJ='${wl}-z,text'
19099 archive_cmds_need_lc_GCJ=no
19100 hardcode_shlibpath_var_GCJ=no
19101 runpath_var='LD_RUN_PATH'
19103 if test "$GCC" = yes; then
19104 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19105 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19107 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19108 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19112 sysv5* | sco3.2v5* | sco5v6*)
19113 # Note: We can NOT use -z defs as we might desire, because we do not
19114 # link with -lc, and that would cause any symbols used from libc to
19115 # always be unresolved, which means just about no library would
19116 # ever link correctly. If we're not using GNU ld we use -z text
19117 # though, which does catch some bad symbols but isn't as heavy-handed
19119 no_undefined_flag_GCJ='${wl}-z,text'
19120 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19121 archive_cmds_need_lc_GCJ=no
19122 hardcode_shlibpath_var_GCJ=no
19123 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19124 hardcode_libdir_separator_GCJ=':'
19125 link_all_deplibs_GCJ=yes
19126 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19127 runpath_var='LD_RUN_PATH'
19129 if test "$GCC" = yes; then
19130 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19131 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19133 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19134 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19141 hardcode_shlibpath_var_GCJ=no
19150 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19151 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19152 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19155 # Do we need to explicitly link libc?
19157 case "x$archive_cmds_need_lc_GCJ" in
19159 # Assume -lc should be added
19160 archive_cmds_need_lc_GCJ=yes
19162 if test "$enable_shared" = yes && test "$GCC" = yes; then
19163 case $archive_cmds_GCJ in
19165 # FIXME: we may have to deal with multi-command sequences.
19168 # Test whether the compiler implicitly links with -lc since on some
19169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19170 # to ld, don't add -lc before -lgcc.
19171 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19172 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177 (eval $ac_compile) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } 2>conftest.err; then
19183 libobjs=conftest.$ac_objext
19185 wl=$lt_prog_compiler_wl_GCJ
19186 pic_flag=$lt_prog_compiler_pic_GCJ
19192 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19193 allow_undefined_flag_GCJ=
19194 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19195 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }
19200 archive_cmds_need_lc_GCJ=no
19202 archive_cmds_need_lc_GCJ=yes
19204 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19206 cat conftest.err 1>&5
19209 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19210 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19217 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19219 library_names_spec=
19220 libname_spec='lib$name'
19224 postuninstall_cmds=
19228 shlibpath_overrides_runpath=unknown
19230 dynamic_linker="$host_os ld.so"
19231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19232 if test "$GCC" = yes; then
19233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19235 # if the path contains ";" then we assume it to be the separator
19236 # otherwise default to the standard path separator (i.e. ":") - it is
19237 # assumed that no part of a normal pathname contains ";" but that should
19238 # okay in the real world where ";" in dirpaths is itself problematic.
19239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19246 need_lib_prefix=unknown
19247 hardcode_into_libs=no
19249 # when you set need_version to no, make sure it does not cause -set_version
19250 # flags to be left without arguments
19251 need_version=unknown
19256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19257 shlibpath_var=LIBPATH
19259 # AIX 3 has no versioning support, so we append a major version to the name.
19260 soname_spec='${libname}${release}${shared_ext}$major'
19267 hardcode_into_libs=yes
19268 if test "$host_cpu" = ia64; then
19269 # AIX 5 supports IA64
19270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19271 shlibpath_var=LD_LIBRARY_PATH
19273 # With GCC up to 2.95.x, collect2 would create an import file
19274 # for dependence libraries. The import file would start with
19275 # the line `#! .'. This would cause the generated library to
19276 # depend on `.', always an invalid library. This was fixed in
19277 # development snapshots of GCC prior to 3.0.
19279 aix4 | aix4.[01] | aix4.[01].*)
19280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19285 can_build_shared=no
19289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19290 # soname into executable. Probably we can add versioning support to
19291 # collect2, so additional links can be useful in future.
19292 if test "$aix_use_runtimelinking" = yes; then
19293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19294 # instead of lib<name>.a to let people know that these are not
19295 # typical AIX shared libraries.
19296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19298 # We preserve .a as extension for shared libraries through AIX4.2
19299 # and later when we are not doing run time linking.
19300 library_names_spec='${libname}${release}.a $libname.a'
19301 soname_spec='${libname}${release}${shared_ext}$major'
19303 shlibpath_var=LIBPATH
19308 library_names_spec='$libname.ixlibrary $libname.a'
19309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19310 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'
19314 library_names_spec='${libname}${shared_ext}'
19315 dynamic_linker="$host_os ld.so"
19316 shlibpath_var=LIBRARY_PATH
19322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 soname_spec='${libname}${release}${shared_ext}$major'
19324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19325 shlibpath_var=LD_LIBRARY_PATH
19326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19328 # the default ld.so.conf also contains /usr/contrib/lib and
19329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19330 # libtool to hard-code these into programs
19333 cygwin* | mingw* | pw32*)
19334 version_type=windows
19339 case $GCC,$host_os in
19340 yes,cygwin* | yes,mingw* | yes,pw32*)
19341 library_names_spec='$libname.dll.a'
19342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19343 postinstall_cmds='base_file=`basename \${file}`~
19344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19345 dldir=$destdir/`dirname \$dlpath`~
19346 test -d \$dldir || mkdir -p \$dldir~
19347 $install_prog $dir/$dlname \$dldir/$dlname~
19348 chmod a+x \$dldir/$dlname'
19349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19350 dlpath=$dir/\$dldll~
19352 shlibpath_overrides_runpath=yes
19356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19361 # MinGW DLLs use traditional 'lib' prefix
19362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19365 # It is most probably a Windows format PATH printed by
19366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19367 # path with ; separators, and with drive letters. We can handle the
19368 # drive letters (cygwin fileutils understands them), so leave them,
19369 # especially as we might pass files found there to a mingw objdump,
19370 # which wouldn't understand a cygwinified path. Ahh.
19371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19377 # pw32 DLLs use 'pw' prefix rather than 'lib'
19378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19387 dynamic_linker='Win32 ld.exe'
19388 # FIXME: first we should search . and the directory the executable is in
19392 darwin* | rhapsody*)
19393 dynamic_linker="$host_os dyld"
19394 version_type=darwin
19397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19398 soname_spec='${libname}${release}${major}$shared_ext'
19399 shlibpath_overrides_runpath=yes
19400 shlibpath_var=DYLD_LIBRARY_PATH
19401 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19402 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19403 if test "$GCC" = yes; then
19404 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"`
19406 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19416 soname_spec='${libname}${release}${shared_ext}$major'
19417 shlibpath_var=LD_LIBRARY_PATH
19424 freebsd* | dragonfly*)
19425 # DragonFly does not have aout. When/if they implement a new
19426 # versioning mechanism, adjust this.
19427 if test -x /usr/bin/objformat; then
19428 objformat=`/usr/bin/objformat`
19431 freebsd[123]*) objformat=aout ;;
19432 *) objformat=elf ;;
19435 version_type=freebsd-$objformat
19436 case $version_type in
19438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19447 shlibpath_var=LD_LIBRARY_PATH
19450 shlibpath_overrides_runpath=yes
19452 freebsd3.[01]* | freebsdelf3.[01]*)
19453 shlibpath_overrides_runpath=yes
19454 hardcode_into_libs=yes
19456 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19457 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19458 shlibpath_overrides_runpath=no
19459 hardcode_into_libs=yes
19461 freebsd*) # from 4.6 on
19462 shlibpath_overrides_runpath=yes
19463 hardcode_into_libs=yes
19472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19473 soname_spec='${libname}${release}${shared_ext}$major'
19474 shlibpath_var=LD_LIBRARY_PATH
19475 hardcode_into_libs=yes
19478 hpux9* | hpux10* | hpux11*)
19479 # Give a soname corresponding to the major version so that dld.sl refuses to
19480 # link against other versions.
19487 hardcode_into_libs=yes
19488 dynamic_linker="$host_os dld.so"
19489 shlibpath_var=LD_LIBRARY_PATH
19490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19492 soname_spec='${libname}${release}${shared_ext}$major'
19493 if test "X$HPUX_IA64_MODE" = X32; then
19494 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19496 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19502 hardcode_into_libs=yes
19503 dynamic_linker="$host_os dld.sl"
19504 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19507 soname_spec='${libname}${release}${shared_ext}$major'
19508 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19513 dynamic_linker="$host_os dld.sl"
19514 shlibpath_var=SHLIB_PATH
19515 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19517 soname_spec='${libname}${release}${shared_ext}$major'
19520 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19521 postinstall_cmds='chmod 555 $lib'
19528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19529 soname_spec='${libname}${release}${shared_ext}$major'
19530 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19531 shlibpath_var=LD_LIBRARY_PATH
19532 shlibpath_overrides_runpath=no
19533 hardcode_into_libs=yes
19536 irix5* | irix6* | nonstopux*)
19538 nonstopux*) version_type=nonstopux ;;
19540 if test "$lt_cv_prog_gnu_ld" = yes; then
19548 soname_spec='${libname}${release}${shared_ext}$major'
19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19551 irix5* | nonstopux*)
19552 libsuff= shlibsuff=
19555 case $LD in # libtool.m4 will add one of these switches to LD
19556 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19557 libsuff= shlibsuff= libmagic=32-bit;;
19558 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19559 libsuff=32 shlibsuff=N32 libmagic=N32;;
19560 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19561 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19562 *) libsuff= shlibsuff= libmagic=never-match;;
19566 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19567 shlibpath_overrides_runpath=no
19568 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19569 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19570 hardcode_into_libs=yes
19573 # No shared lib support for Linux oldld, aout, or coff.
19574 linux*oldld* | linux*aout* | linux*coff*)
19578 # This must be Linux ELF.
19579 linux* | k*bsd*-gnu)
19583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19584 soname_spec='${libname}${release}${shared_ext}$major'
19585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19586 shlibpath_var=LD_LIBRARY_PATH
19587 shlibpath_overrides_runpath=no
19588 # This implies no fast_install, which is unacceptable.
19589 # Some rework will be needed to allow for fast_install
19590 # before this can be enabled.
19591 hardcode_into_libs=yes
19593 # Append ld.so.conf contents to the search path
19594 if test -f /etc/ld.so.conf; then
19595 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' ' '`
19596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19599 # We used to test for /lib/ld.so.1 and disable shared libraries on
19600 # powerpc, because MkLinux only supported shared libraries with the
19601 # GNU dynamic linker. Since this was broken with cross compilers,
19602 # most powerpc-linux boxes support dynamic linking these days and
19603 # people can always --disable-shared, the test was removed, and we
19604 # assume the GNU/Linux dynamic linker is in use.
19605 dynamic_linker='GNU/Linux ld.so'
19612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19613 soname_spec='${libname}${release}${shared_ext}$major'
19614 shlibpath_var=LD_LIBRARY_PATH
19615 shlibpath_overrides_runpath=no
19616 hardcode_into_libs=yes
19617 dynamic_linker='NetBSD ld.elf_so'
19624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19627 dynamic_linker='NetBSD (a.out) ld.so'
19629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19630 soname_spec='${libname}${release}${shared_ext}$major'
19631 dynamic_linker='NetBSD ld.elf_so'
19633 shlibpath_var=LD_LIBRARY_PATH
19634 shlibpath_overrides_runpath=yes
19635 hardcode_into_libs=yes
19640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19641 shlibpath_var=LD_LIBRARY_PATH
19642 shlibpath_overrides_runpath=yes
19649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19650 soname_spec='${libname}${release}${shared_ext}$major'
19651 shlibpath_var=LD_LIBRARY_PATH
19652 shlibpath_overrides_runpath=yes
19657 sys_lib_dlsearch_path_spec="/usr/lib"
19659 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19661 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19662 *) need_version=no ;;
19664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19666 shlibpath_var=LD_LIBRARY_PATH
19667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19669 openbsd2.[89] | openbsd2.[89].*)
19670 shlibpath_overrides_runpath=no
19673 shlibpath_overrides_runpath=yes
19677 shlibpath_overrides_runpath=yes
19682 libname_spec='$name'
19685 library_names_spec='$libname${shared_ext} $libname.a'
19686 dynamic_linker='OS/2 ld.exe'
19687 shlibpath_var=LIBPATH
19690 osf3* | osf4* | osf5*)
19694 soname_spec='${libname}${release}${shared_ext}$major'
19695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19696 shlibpath_var=LD_LIBRARY_PATH
19697 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19698 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19706 soname_spec='${libname}${release}${shared_ext}$major'
19707 shlibpath_var=LD_LIBRARY_PATH
19708 shlibpath_overrides_runpath=yes
19709 hardcode_into_libs=yes
19710 # ldd complains unless libraries are executable
19711 postinstall_cmds='chmod +x $lib'
19716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19718 shlibpath_var=LD_LIBRARY_PATH
19719 shlibpath_overrides_runpath=yes
19720 if test "$with_gnu_ld" = yes; then
19728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19729 soname_spec='${libname}${release}${shared_ext}$major'
19730 shlibpath_var=LD_LIBRARY_PATH
19731 case $host_vendor in
19733 shlibpath_overrides_runpath=no
19735 export_dynamic_flag_spec='${wl}-Blargedynsym'
19736 runpath_var=LD_RUN_PATH
19744 shlibpath_overrides_runpath=no
19745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19751 if test -d /usr/nec ;then
19753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19754 soname_spec='$libname${shared_ext}.$major'
19755 shlibpath_var=LD_LIBRARY_PATH
19759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19760 version_type=freebsd-elf
19763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19764 soname_spec='${libname}${release}${shared_ext}$major'
19765 shlibpath_var=LD_LIBRARY_PATH
19766 hardcode_into_libs=yes
19767 if test "$with_gnu_ld" = yes; then
19768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19769 shlibpath_overrides_runpath=no
19771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19772 shlibpath_overrides_runpath=yes
19775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19779 sys_lib_dlsearch_path_spec='/usr/lib'
19784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19785 soname_spec='${libname}${release}${shared_ext}$major'
19786 shlibpath_var=LD_LIBRARY_PATH
19793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19794 echo "${ECHO_T}$dynamic_linker" >&6; }
19795 test "$dynamic_linker" = no && can_build_shared=no
19797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19798 if test "$GCC" = yes; then
19799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19802 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19804 hardcode_action_GCJ=
19805 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19806 test -n "$runpath_var_GCJ" || \
19807 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19809 # We can hardcode non-existant directories.
19810 if test "$hardcode_direct_GCJ" != no &&
19811 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19812 # have to relink, otherwise we might link with an installed library
19813 # when we should be linking with a yet-to-be-installed one
19814 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19815 test "$hardcode_minus_L_GCJ" != no; then
19816 # Linking always hardcodes the temporary library directory.
19817 hardcode_action_GCJ=relink
19819 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19820 hardcode_action_GCJ=immediate
19823 # We cannot hardcode anything, or else we can only hardcode existing
19825 hardcode_action_GCJ=unsupported
19827 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19828 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19830 if test "$hardcode_action_GCJ" = relink; then
19831 # Fast installation is not supported
19832 enable_fast_install=no
19833 elif test "$shlibpath_overrides_runpath" = yes ||
19834 test "$enable_shared" = no; then
19835 # Fast installation is not necessary
19836 enable_fast_install=needless
19840 # The else clause should only fire when bootstrapping the
19841 # libtool distribution, otherwise you forgot to ship ltmain.sh
19842 # with your package, and you will get complaints that there are
19843 # no rules to generate ltmain.sh.
19844 if test -f "$ltmain"; then
19845 # See if we are running on zsh, and set the options which allow our commands through
19846 # without removal of \ escapes.
19847 if test -n "${ZSH_VERSION+set}" ; then
19848 setopt NO_GLOB_SUBST
19850 # Now quote all the things that may contain metacharacters while being
19851 # careful not to overquote the AC_SUBSTed values. We take copies of the
19852 # variables and quote the copies for generation of the libtool script.
19853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19857 deplibs_check_method reload_flag reload_cmds need_locks \
19858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19859 lt_cv_sys_global_symbol_to_c_name_address \
19860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19861 old_postinstall_cmds old_postuninstall_cmds \
19865 lt_prog_compiler_wl_GCJ \
19866 lt_prog_compiler_pic_GCJ \
19867 lt_prog_compiler_static_GCJ \
19868 lt_prog_compiler_no_builtin_flag_GCJ \
19869 export_dynamic_flag_spec_GCJ \
19870 thread_safe_flag_spec_GCJ \
19871 whole_archive_flag_spec_GCJ \
19872 enable_shared_with_static_runtimes_GCJ \
19873 old_archive_cmds_GCJ \
19874 old_archive_from_new_cmds_GCJ \
19875 predep_objects_GCJ \
19876 postdep_objects_GCJ \
19879 compiler_lib_search_path_GCJ \
19881 archive_expsym_cmds_GCJ \
19882 postinstall_cmds_GCJ \
19883 postuninstall_cmds_GCJ \
19884 old_archive_from_expsyms_cmds_GCJ \
19885 allow_undefined_flag_GCJ \
19886 no_undefined_flag_GCJ \
19887 export_symbols_cmds_GCJ \
19888 hardcode_libdir_flag_spec_GCJ \
19889 hardcode_libdir_flag_spec_ld_GCJ \
19890 hardcode_libdir_separator_GCJ \
19891 hardcode_automatic_GCJ \
19893 module_expsym_cmds_GCJ \
19894 lt_cv_prog_compiler_c_o_GCJ \
19895 exclude_expsyms_GCJ \
19896 include_expsyms_GCJ; do
19899 old_archive_cmds_GCJ | \
19900 old_archive_from_new_cmds_GCJ | \
19901 archive_cmds_GCJ | \
19902 archive_expsym_cmds_GCJ | \
19903 module_cmds_GCJ | \
19904 module_expsym_cmds_GCJ | \
19905 old_archive_from_expsyms_cmds_GCJ | \
19906 export_symbols_cmds_GCJ | \
19907 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19908 postinstall_cmds | postuninstall_cmds | \
19909 old_postinstall_cmds | old_postuninstall_cmds | \
19910 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19911 # Double-quote double-evaled strings.
19912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19921 *'\$0 --fallback-echo"')
19922 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19928 cat <<__EOF__ >> "$cfgfile"
19929 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19931 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19933 # Shell to use when invoking shell scripts.
19936 # Whether or not to build shared libraries.
19937 build_libtool_libs=$enable_shared
19939 # Whether or not to build static libraries.
19940 build_old_libs=$enable_static
19942 # Whether or not to add -lc for building shared libraries.
19943 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19945 # Whether or not to disallow shared libs when runtime libs are static
19946 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19948 # Whether or not to optimize for fast installation.
19949 fast_install=$enable_fast_install
19952 host_alias=$host_alias
19956 # The build system.
19957 build_alias=$build_alias
19961 # An echo program that does not interpret backslashes.
19966 AR_FLAGS=$lt_AR_FLAGS
19971 # LTCC compiler flags.
19972 LTCFLAGS=$lt_LTCFLAGS
19974 # A language-specific compiler.
19975 CC=$lt_compiler_GCJ
19977 # Is the compiler the GNU C compiler?
19983 # The linker used to build libraries.
19986 # Whether we need hard or soft links.
19989 # A BSD-compatible nm program.
19992 # A symbol stripping program
19995 # Used to examine libraries when file_magic_cmd begins "file"
19996 MAGIC_CMD=$MAGIC_CMD
19998 # Used on cygwin: DLL creation program.
20001 # Used on cygwin: object dumper.
20004 # Used on cygwin: assembler.
20007 # The name of the directory that contains temporary libtool files.
20010 # How to create reloadable object files.
20011 reload_flag=$lt_reload_flag
20012 reload_cmds=$lt_reload_cmds
20014 # How to pass a linker flag through the compiler.
20015 wl=$lt_lt_prog_compiler_wl_GCJ
20017 # Object file suffix (normally "o").
20018 objext="$ac_objext"
20020 # Old archive suffix (normally "a").
20023 # Shared library suffix (normally ".so").
20024 shrext_cmds='$shrext_cmds'
20026 # Executable file suffix (normally "").
20029 # Additional compiler flags for building library objects.
20030 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20033 # What is the maximum length of a command?
20034 max_cmd_len=$lt_cv_sys_max_cmd_len
20036 # Does compiler simultaneously support -c and -o options?
20037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20039 # Must we lock files when doing compilation?
20040 need_locks=$lt_need_locks
20042 # Do we need the lib prefix for modules?
20043 need_lib_prefix=$need_lib_prefix
20045 # Do we need a version for libraries?
20046 need_version=$need_version
20048 # Whether dlopen is supported.
20049 dlopen_support=$enable_dlopen
20051 # Whether dlopen of programs is supported.
20052 dlopen_self=$enable_dlopen_self
20054 # Whether dlopen of statically linked programs is supported.
20055 dlopen_self_static=$enable_dlopen_self_static
20057 # Compiler flag to prevent dynamic linking.
20058 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20060 # Compiler flag to turn off builtin functions.
20061 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20063 # Compiler flag to allow reflexive dlopens.
20064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20066 # Compiler flag to generate shared objects directly from archives.
20067 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20069 # Compiler flag to generate thread-safe objects.
20070 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20072 # Library versioning type.
20073 version_type=$version_type
20075 # Format of library name prefix.
20076 libname_spec=$lt_libname_spec
20078 # List of archive names. First name is the real one, the rest are links.
20079 # The last name is the one that the linker finds with -lNAME.
20080 library_names_spec=$lt_library_names_spec
20082 # The coded name of the library, if different from the real name.
20083 soname_spec=$lt_soname_spec
20085 # Commands used to build and install an old-style archive.
20087 old_archive_cmds=$lt_old_archive_cmds_GCJ
20088 old_postinstall_cmds=$lt_old_postinstall_cmds
20089 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20091 # Create an old-style archive from a shared archive.
20092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20094 # Create a temporary old-style archive to link instead of a shared archive.
20095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20097 # Commands used to build and install a shared archive.
20098 archive_cmds=$lt_archive_cmds_GCJ
20099 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20100 postinstall_cmds=$lt_postinstall_cmds
20101 postuninstall_cmds=$lt_postuninstall_cmds
20103 # Commands used to build a loadable module (assumed same as above if empty)
20104 module_cmds=$lt_module_cmds_GCJ
20105 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20107 # Commands to strip libraries.
20108 old_striplib=$lt_old_striplib
20109 striplib=$lt_striplib
20111 # Dependencies to place before the objects being linked to create a
20113 predep_objects=$lt_predep_objects_GCJ
20115 # Dependencies to place after the objects being linked to create a
20117 postdep_objects=$lt_postdep_objects_GCJ
20119 # Dependencies to place before the objects being linked to create a
20121 predeps=$lt_predeps_GCJ
20123 # Dependencies to place after the objects being linked to create a
20125 postdeps=$lt_postdeps_GCJ
20127 # The library search path used internally by the compiler when linking
20128 # a shared library.
20129 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20131 # Method to check whether dependent libraries are shared objects.
20132 deplibs_check_method=$lt_deplibs_check_method
20134 # Command to use when deplibs_check_method == file_magic.
20135 file_magic_cmd=$lt_file_magic_cmd
20137 # Flag that allows shared libraries with undefined symbols to be built.
20138 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20140 # Flag that forces no undefined symbols.
20141 no_undefined_flag=$lt_no_undefined_flag_GCJ
20143 # Commands used to finish a libtool library installation in a directory.
20144 finish_cmds=$lt_finish_cmds
20146 # Same as above, but a single script fragment to be evaled but not shown.
20147 finish_eval=$lt_finish_eval
20149 # Take the output of nm and produce a listing of raw symbols and C names.
20150 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20152 # Transform the output of nm in a proper C declaration
20153 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20155 # Transform the output of nm in a C name address pair
20156 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20158 # This is the shared library runtime path variable.
20159 runpath_var=$runpath_var
20161 # This is the shared library path variable.
20162 shlibpath_var=$shlibpath_var
20164 # Is shlibpath searched before the hard-coded library search path?
20165 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20167 # How to hardcode a shared library path into an executable.
20168 hardcode_action=$hardcode_action_GCJ
20170 # Whether we should hardcode library paths into libraries.
20171 hardcode_into_libs=$hardcode_into_libs
20173 # Flag to hardcode \$libdir into a binary during linking.
20174 # This must work even if \$libdir does not exist.
20175 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20177 # If ld is used when linking, flag to hardcode \$libdir into
20178 # a binary during linking. This must work even if \$libdir does
20180 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20182 # Whether we need a single -rpath flag with a separated argument.
20183 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20185 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20186 # resulting binary.
20187 hardcode_direct=$hardcode_direct_GCJ
20189 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20190 # resulting binary.
20191 hardcode_minus_L=$hardcode_minus_L_GCJ
20193 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20194 # the resulting binary.
20195 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20197 # Set to yes if building a shared library automatically hardcodes DIR into the library
20198 # and all subsequent libraries and executables linked against it.
20199 hardcode_automatic=$hardcode_automatic_GCJ
20201 # Variables whose values should be saved in libtool wrapper scripts and
20202 # restored at relink time.
20203 variables_saved_for_relink="$variables_saved_for_relink"
20205 # Whether libtool must link a program against all its dependency libraries.
20206 link_all_deplibs=$link_all_deplibs_GCJ
20208 # Compile-time system search path for libraries
20209 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20211 # Run-time system search path for libraries
20212 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20214 # Fix the shell variable \$srcfile for the compiler.
20215 fix_srcfile_path="$fix_srcfile_path_GCJ"
20217 # Set to yes if exported symbols are required.
20218 always_export_symbols=$always_export_symbols_GCJ
20220 # The commands to list exported symbols.
20221 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20223 # The commands to extract the exported symbol list from a shared archive.
20224 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20226 # Symbols that should not be listed in the preloaded symbols.
20227 exclude_expsyms=$lt_exclude_expsyms_GCJ
20229 # Symbols that must always be exported.
20230 include_expsyms=$lt_include_expsyms_GCJ
20232 # ### END LIBTOOL TAG CONFIG: $tagname
20238 # If there is no Makefile yet, we rely on a make rule to execute
20239 # `config.status --recheck' to rerun these tests and create the
20240 # libtool script then.
20241 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20242 if test -f "$ltmain_in"; then
20243 test -f Makefile && make "$ltmain"
20249 ac_cpp='$CPP $CPPFLAGS'
20250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20264 # Source file extension for RC test sources.
20267 # Object file extension for compiled RC test sources.
20271 # Code to be used in simple compile tests
20272 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20274 # Code to be used in simple link tests
20275 lt_simple_link_test_code="$lt_simple_compile_test_code"
20277 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20279 # If no C compiler was specified, use CC.
20282 # If no C compiler flags were specified, use CFLAGS.
20283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20285 # Allow CC to be a program name with arguments.
20289 # save warnings/boilerplate of simple test code
20290 ac_outfile=conftest.$ac_objext
20291 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20292 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20293 _lt_compiler_boilerplate=`cat conftest.err`
20296 ac_outfile=conftest.$ac_objext
20297 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20298 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20299 _lt_linker_boilerplate=`cat conftest.err`
20303 # Allow CC to be a program name with arguments.
20308 for cc_temp in $compiler""; do
20310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20318 lt_cv_prog_compiler_c_o_RC=yes
20320 # The else clause should only fire when bootstrapping the
20321 # libtool distribution, otherwise you forgot to ship ltmain.sh
20322 # with your package, and you will get complaints that there are
20323 # no rules to generate ltmain.sh.
20324 if test -f "$ltmain"; then
20325 # See if we are running on zsh, and set the options which allow our commands through
20326 # without removal of \ escapes.
20327 if test -n "${ZSH_VERSION+set}" ; then
20328 setopt NO_GLOB_SUBST
20330 # Now quote all the things that may contain metacharacters while being
20331 # careful not to overquote the AC_SUBSTed values. We take copies of the
20332 # variables and quote the copies for generation of the libtool script.
20333 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20335 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20336 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20337 deplibs_check_method reload_flag reload_cmds need_locks \
20338 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20339 lt_cv_sys_global_symbol_to_c_name_address \
20340 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20341 old_postinstall_cmds old_postuninstall_cmds \
20345 lt_prog_compiler_wl_RC \
20346 lt_prog_compiler_pic_RC \
20347 lt_prog_compiler_static_RC \
20348 lt_prog_compiler_no_builtin_flag_RC \
20349 export_dynamic_flag_spec_RC \
20350 thread_safe_flag_spec_RC \
20351 whole_archive_flag_spec_RC \
20352 enable_shared_with_static_runtimes_RC \
20353 old_archive_cmds_RC \
20354 old_archive_from_new_cmds_RC \
20355 predep_objects_RC \
20356 postdep_objects_RC \
20359 compiler_lib_search_path_RC \
20361 archive_expsym_cmds_RC \
20362 postinstall_cmds_RC \
20363 postuninstall_cmds_RC \
20364 old_archive_from_expsyms_cmds_RC \
20365 allow_undefined_flag_RC \
20366 no_undefined_flag_RC \
20367 export_symbols_cmds_RC \
20368 hardcode_libdir_flag_spec_RC \
20369 hardcode_libdir_flag_spec_ld_RC \
20370 hardcode_libdir_separator_RC \
20371 hardcode_automatic_RC \
20373 module_expsym_cmds_RC \
20374 lt_cv_prog_compiler_c_o_RC \
20375 exclude_expsyms_RC \
20376 include_expsyms_RC; do
20379 old_archive_cmds_RC | \
20380 old_archive_from_new_cmds_RC | \
20381 archive_cmds_RC | \
20382 archive_expsym_cmds_RC | \
20384 module_expsym_cmds_RC | \
20385 old_archive_from_expsyms_cmds_RC | \
20386 export_symbols_cmds_RC | \
20387 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20388 postinstall_cmds | postuninstall_cmds | \
20389 old_postinstall_cmds | old_postuninstall_cmds | \
20390 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20391 # Double-quote double-evaled strings.
20392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20395 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20401 *'\$0 --fallback-echo"')
20402 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20408 cat <<__EOF__ >> "$cfgfile"
20409 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20413 # Shell to use when invoking shell scripts.
20416 # Whether or not to build shared libraries.
20417 build_libtool_libs=$enable_shared
20419 # Whether or not to build static libraries.
20420 build_old_libs=$enable_static
20422 # Whether or not to add -lc for building shared libraries.
20423 build_libtool_need_lc=$archive_cmds_need_lc_RC
20425 # Whether or not to disallow shared libs when runtime libs are static
20426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20428 # Whether or not to optimize for fast installation.
20429 fast_install=$enable_fast_install
20432 host_alias=$host_alias
20436 # The build system.
20437 build_alias=$build_alias
20441 # An echo program that does not interpret backslashes.
20446 AR_FLAGS=$lt_AR_FLAGS
20451 # LTCC compiler flags.
20452 LTCFLAGS=$lt_LTCFLAGS
20454 # A language-specific compiler.
20457 # Is the compiler the GNU C compiler?
20463 # The linker used to build libraries.
20466 # Whether we need hard or soft links.
20469 # A BSD-compatible nm program.
20472 # A symbol stripping program
20475 # Used to examine libraries when file_magic_cmd begins "file"
20476 MAGIC_CMD=$MAGIC_CMD
20478 # Used on cygwin: DLL creation program.
20481 # Used on cygwin: object dumper.
20484 # Used on cygwin: assembler.
20487 # The name of the directory that contains temporary libtool files.
20490 # How to create reloadable object files.
20491 reload_flag=$lt_reload_flag
20492 reload_cmds=$lt_reload_cmds
20494 # How to pass a linker flag through the compiler.
20495 wl=$lt_lt_prog_compiler_wl_RC
20497 # Object file suffix (normally "o").
20498 objext="$ac_objext"
20500 # Old archive suffix (normally "a").
20503 # Shared library suffix (normally ".so").
20504 shrext_cmds='$shrext_cmds'
20506 # Executable file suffix (normally "").
20509 # Additional compiler flags for building library objects.
20510 pic_flag=$lt_lt_prog_compiler_pic_RC
20513 # What is the maximum length of a command?
20514 max_cmd_len=$lt_cv_sys_max_cmd_len
20516 # Does compiler simultaneously support -c and -o options?
20517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20519 # Must we lock files when doing compilation?
20520 need_locks=$lt_need_locks
20522 # Do we need the lib prefix for modules?
20523 need_lib_prefix=$need_lib_prefix
20525 # Do we need a version for libraries?
20526 need_version=$need_version
20528 # Whether dlopen is supported.
20529 dlopen_support=$enable_dlopen
20531 # Whether dlopen of programs is supported.
20532 dlopen_self=$enable_dlopen_self
20534 # Whether dlopen of statically linked programs is supported.
20535 dlopen_self_static=$enable_dlopen_self_static
20537 # Compiler flag to prevent dynamic linking.
20538 link_static_flag=$lt_lt_prog_compiler_static_RC
20540 # Compiler flag to turn off builtin functions.
20541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20543 # Compiler flag to allow reflexive dlopens.
20544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20546 # Compiler flag to generate shared objects directly from archives.
20547 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20549 # Compiler flag to generate thread-safe objects.
20550 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20552 # Library versioning type.
20553 version_type=$version_type
20555 # Format of library name prefix.
20556 libname_spec=$lt_libname_spec
20558 # List of archive names. First name is the real one, the rest are links.
20559 # The last name is the one that the linker finds with -lNAME.
20560 library_names_spec=$lt_library_names_spec
20562 # The coded name of the library, if different from the real name.
20563 soname_spec=$lt_soname_spec
20565 # Commands used to build and install an old-style archive.
20567 old_archive_cmds=$lt_old_archive_cmds_RC
20568 old_postinstall_cmds=$lt_old_postinstall_cmds
20569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20571 # Create an old-style archive from a shared archive.
20572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20574 # Create a temporary old-style archive to link instead of a shared archive.
20575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20577 # Commands used to build and install a shared archive.
20578 archive_cmds=$lt_archive_cmds_RC
20579 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20580 postinstall_cmds=$lt_postinstall_cmds
20581 postuninstall_cmds=$lt_postuninstall_cmds
20583 # Commands used to build a loadable module (assumed same as above if empty)
20584 module_cmds=$lt_module_cmds_RC
20585 module_expsym_cmds=$lt_module_expsym_cmds_RC
20587 # Commands to strip libraries.
20588 old_striplib=$lt_old_striplib
20589 striplib=$lt_striplib
20591 # Dependencies to place before the objects being linked to create a
20593 predep_objects=$lt_predep_objects_RC
20595 # Dependencies to place after the objects being linked to create a
20597 postdep_objects=$lt_postdep_objects_RC
20599 # Dependencies to place before the objects being linked to create a
20601 predeps=$lt_predeps_RC
20603 # Dependencies to place after the objects being linked to create a
20605 postdeps=$lt_postdeps_RC
20607 # The library search path used internally by the compiler when linking
20608 # a shared library.
20609 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20611 # Method to check whether dependent libraries are shared objects.
20612 deplibs_check_method=$lt_deplibs_check_method
20614 # Command to use when deplibs_check_method == file_magic.
20615 file_magic_cmd=$lt_file_magic_cmd
20617 # Flag that allows shared libraries with undefined symbols to be built.
20618 allow_undefined_flag=$lt_allow_undefined_flag_RC
20620 # Flag that forces no undefined symbols.
20621 no_undefined_flag=$lt_no_undefined_flag_RC
20623 # Commands used to finish a libtool library installation in a directory.
20624 finish_cmds=$lt_finish_cmds
20626 # Same as above, but a single script fragment to be evaled but not shown.
20627 finish_eval=$lt_finish_eval
20629 # Take the output of nm and produce a listing of raw symbols and C names.
20630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20632 # Transform the output of nm in a proper C declaration
20633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20635 # Transform the output of nm in a C name address pair
20636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20638 # This is the shared library runtime path variable.
20639 runpath_var=$runpath_var
20641 # This is the shared library path variable.
20642 shlibpath_var=$shlibpath_var
20644 # Is shlibpath searched before the hard-coded library search path?
20645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20647 # How to hardcode a shared library path into an executable.
20648 hardcode_action=$hardcode_action_RC
20650 # Whether we should hardcode library paths into libraries.
20651 hardcode_into_libs=$hardcode_into_libs
20653 # Flag to hardcode \$libdir into a binary during linking.
20654 # This must work even if \$libdir does not exist.
20655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20657 # If ld is used when linking, flag to hardcode \$libdir into
20658 # a binary during linking. This must work even if \$libdir does
20660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20662 # Whether we need a single -rpath flag with a separated argument.
20663 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20666 # resulting binary.
20667 hardcode_direct=$hardcode_direct_RC
20669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20670 # resulting binary.
20671 hardcode_minus_L=$hardcode_minus_L_RC
20673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20674 # the resulting binary.
20675 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20677 # Set to yes if building a shared library automatically hardcodes DIR into the library
20678 # and all subsequent libraries and executables linked against it.
20679 hardcode_automatic=$hardcode_automatic_RC
20681 # Variables whose values should be saved in libtool wrapper scripts and
20682 # restored at relink time.
20683 variables_saved_for_relink="$variables_saved_for_relink"
20685 # Whether libtool must link a program against all its dependency libraries.
20686 link_all_deplibs=$link_all_deplibs_RC
20688 # Compile-time system search path for libraries
20689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20691 # Run-time system search path for libraries
20692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20694 # Fix the shell variable \$srcfile for the compiler.
20695 fix_srcfile_path="$fix_srcfile_path_RC"
20697 # Set to yes if exported symbols are required.
20698 always_export_symbols=$always_export_symbols_RC
20700 # The commands to list exported symbols.
20701 export_symbols_cmds=$lt_export_symbols_cmds_RC
20703 # The commands to extract the exported symbol list from a shared archive.
20704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20706 # Symbols that should not be listed in the preloaded symbols.
20707 exclude_expsyms=$lt_exclude_expsyms_RC
20709 # Symbols that must always be exported.
20710 include_expsyms=$lt_include_expsyms_RC
20712 # ### END LIBTOOL TAG CONFIG: $tagname
20718 # If there is no Makefile yet, we rely on a make rule to execute
20719 # `config.status --recheck' to rerun these tests and create the
20720 # libtool script then.
20721 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20722 if test -f "$ltmain_in"; then
20723 test -f Makefile && make "$ltmain"
20729 ac_cpp='$CPP $CPPFLAGS'
20730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20739 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20740 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20741 { (exit 1); exit 1; }; }
20745 # Append the new tag name to the list of available tags.
20746 if test -n "$tagname" ; then
20747 available_tags="$available_tags $tagname"
20753 # Now substitute the updated list of available tags.
20754 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20755 mv "${ofile}T" "$ofile"
20759 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20760 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20761 { (exit 1); exit 1; }; }
20767 # This can be used to rebuild libtool when needed
20768 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20770 # Always use our own libtool.
20771 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20773 # Prevent multiple expansion
20794 if test "x$CC" != xcc; then
20795 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20796 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20798 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20799 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20801 set dummy $CC; ac_cc=`echo $2 |
20802 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20803 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20806 cat >conftest.$ac_ext <<_ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20821 # Make sure it works both with $CC and with simple cc.
20822 # We do the test twice because some compilers refuse to overwrite an
20823 # existing .o file with -o, though they will create one.
20824 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20826 if { (case "(($ac_try" in
20827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828 *) ac_try_echo=$ac_try;;
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831 (eval "$ac_try") 2>&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } &&
20835 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_try") 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); };
20845 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20846 if test "x$CC" != xcc; then
20847 # Test first that cc exists at all.
20848 if { ac_try='cc -c conftest.$ac_ext >&5'
20849 { (case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_try") 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20860 if { (case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_try") 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_try") 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); };
20882 # cc exists but doesn't like -o.
20883 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20888 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20890 rm -f core conftest*
20893 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20894 { echo "$as_me:$LINENO: result: yes" >&5
20895 echo "${ECHO_T}yes" >&6; }
20897 { echo "$as_me:$LINENO: result: no" >&5
20898 echo "${ECHO_T}no" >&6; }
20900 cat >>confdefs.h <<\_ACEOF
20901 #define NO_MINUS_C_MINUS_O 1
20906 # FIXME: we rely on the cache variable name because
20907 # there is no other way.
20909 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20910 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20911 # Losing compiler, so override with the script.
20912 # FIXME: It is wrong to rewrite CC.
20913 # But if we don't then we get into trouble of one sort or another.
20914 # A longer-term fix would be to have automake use am__CC in this case,
20915 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20916 CC="$am_aux_dir/compile $CC"
20921 if test "x$cross_compiling" = "xno"; then
20922 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20924 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20929 if test -n "$ac_tool_prefix"; then
20930 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20931 set dummy ${ac_tool_prefix}ar; ac_word=$2
20932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20934 if test "${ac_cv_prog_AR+set}" = set; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 if test -n "$AR"; then
20938 ac_cv_prog_AR="$AR" # Let the user override the test.
20940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20941 for as_dir in $PATH
20944 test -z "$as_dir" && as_dir=.
20945 for ac_exec_ext in '' $ac_executable_extensions; do
20946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20947 ac_cv_prog_AR="${ac_tool_prefix}ar"
20948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20958 if test -n "$AR"; then
20959 { echo "$as_me:$LINENO: result: $AR" >&5
20960 echo "${ECHO_T}$AR" >&6; }
20962 { echo "$as_me:$LINENO: result: no" >&5
20963 echo "${ECHO_T}no" >&6; }
20968 if test -z "$ac_cv_prog_AR"; then
20970 # Extract the first word of "ar", so it can be a program name with args.
20971 set dummy ar; ac_word=$2
20972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20974 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 if test -n "$ac_ct_AR"; then
20978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20981 for as_dir in $PATH
20984 test -z "$as_dir" && as_dir=.
20985 for ac_exec_ext in '' $ac_executable_extensions; do
20986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20987 ac_cv_prog_ac_ct_AR="ar"
20988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20997 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20998 if test -n "$ac_ct_AR"; then
20999 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21000 echo "${ECHO_T}$ac_ct_AR" >&6; }
21002 { echo "$as_me:$LINENO: result: no" >&5
21003 echo "${ECHO_T}no" >&6; }
21006 if test "x$ac_ct_AR" = x; then
21009 case $cross_compiling:$ac_tool_warned in
21011 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21012 whose name does not start with the host triplet. If you think this
21013 configuration is useful to you, please write to autoconf@gnu.org." >&5
21014 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21015 whose name does not start with the host triplet. If you think this
21016 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21017 ac_tool_warned=yes ;;
21022 AR="$ac_cv_prog_AR"
21025 if test -n "$ac_tool_prefix"; then
21026 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21027 set dummy ${ac_tool_prefix}ld; ac_word=$2
21028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21030 if test "${ac_cv_prog_LD+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 if test -n "$LD"; then
21034 ac_cv_prog_LD="$LD" # Let the user override the test.
21036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21037 for as_dir in $PATH
21040 test -z "$as_dir" && as_dir=.
21041 for ac_exec_ext in '' $ac_executable_extensions; do
21042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21043 ac_cv_prog_LD="${ac_tool_prefix}ld"
21044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21054 if test -n "$LD"; then
21055 { echo "$as_me:$LINENO: result: $LD" >&5
21056 echo "${ECHO_T}$LD" >&6; }
21058 { echo "$as_me:$LINENO: result: no" >&5
21059 echo "${ECHO_T}no" >&6; }
21064 if test -z "$ac_cv_prog_LD"; then
21066 # Extract the first word of "ld", so it can be a program name with args.
21067 set dummy ld; ac_word=$2
21068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21070 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 if test -n "$ac_ct_LD"; then
21074 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21077 for as_dir in $PATH
21080 test -z "$as_dir" && as_dir=.
21081 for ac_exec_ext in '' $ac_executable_extensions; do
21082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21083 ac_cv_prog_ac_ct_LD="ld"
21084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21093 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21094 if test -n "$ac_ct_LD"; then
21095 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21096 echo "${ECHO_T}$ac_ct_LD" >&6; }
21098 { echo "$as_me:$LINENO: result: no" >&5
21099 echo "${ECHO_T}no" >&6; }
21102 if test "x$ac_ct_LD" = x; then
21105 case $cross_compiling:$ac_tool_warned in
21107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21108 whose name does not start with the host triplet. If you think this
21109 configuration is useful to you, please write to autoconf@gnu.org." >&5
21110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21111 whose name does not start with the host triplet. If you think this
21112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21113 ac_tool_warned=yes ;;
21118 LD="$ac_cv_prog_LD"
21122 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21124 if test "${ac_cv_header_stdc+set}" = set; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 #include <stdlib.h>
21134 #include <stdarg.h>
21135 #include <string.h>
21146 rm -f conftest.$ac_objext
21147 if { (ac_try="$ac_compile"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_compile") 2>conftest.er1
21155 grep -v '^ *+' conftest.er1 >conftest.err
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } && {
21160 test -z "$ac_c_werror_flag" ||
21161 test ! -s conftest.err
21162 } && test -s conftest.$ac_objext; then
21163 ac_cv_header_stdc=yes
21165 echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21168 ac_cv_header_stdc=no
21171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 if test $ac_cv_header_stdc = yes; then
21174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21175 cat >conftest.$ac_ext <<_ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 #include <string.h>
21184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21185 $EGREP "memchr" >/dev/null 2>&1; then
21188 ac_cv_header_stdc=no
21194 if test $ac_cv_header_stdc = yes; then
21195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 #include <stdlib.h>
21205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21206 $EGREP "free" >/dev/null 2>&1; then
21209 ac_cv_header_stdc=no
21215 if test $ac_cv_header_stdc = yes; then
21216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21217 if test "$cross_compiling" = yes; then
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21227 #include <stdlib.h>
21228 #if ((' ' & 0x0FF) == 0x020)
21229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21232 # define ISLOWER(c) \
21233 (('a' <= (c) && (c) <= 'i') \
21234 || ('j' <= (c) && (c) <= 'r') \
21235 || ('s' <= (c) && (c) <= 'z'))
21236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21244 for (i = 0; i < 256; i++)
21245 if (XOR (islower (i), ISLOWER (i))
21246 || toupper (i) != TOUPPER (i))
21251 rm -f conftest$ac_exeext
21252 if { (ac_try="$ac_link"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_link") 2>&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21262 { (case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_try") 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21273 echo "$as_me: program exited with status $ac_status" >&5
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ( exit $ac_status )
21278 ac_cv_header_stdc=no
21280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21286 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21287 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21288 if test $ac_cv_header_stdc = yes; then
21290 cat >>confdefs.h <<\_ACEOF
21291 #define STDC_HEADERS 1
21297 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21298 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21299 if test "${knfsd_cv_glibc2+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21302 cat >conftest.$ac_ext <<_ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21309 #include <features.h>
21310 #if !defined(__GLIBC__)
21315 if { (ac_try="$ac_cpp conftest.$ac_ext"
21316 case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21323 grep -v '^ *+' conftest.er1 >conftest.err
21325 cat conftest.err >&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } >/dev/null && {
21328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21329 test ! -s conftest.err
21331 knfsd_cv_glibc2=yes
21333 echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21339 rm -f conftest.err conftest.$ac_ext
21342 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21343 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21344 if test $knfsd_cv_glibc2 = yes; then
21345 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21346 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21350 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21351 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21352 if test "${knfsd_cv_bsd_signals+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 if test "$cross_compiling" = yes; then
21358 *linux*) knfsd_cv_bsd_signals=no;;
21359 *bsd*) knfsd_cv_bsd_signals=yes;;
21360 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21361 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21362 { (exit 1); exit 1; }; };;
21366 cat >conftest.$ac_ext <<_ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h. */
21373 #include <signal.h>
21374 #include <unistd.h>
21375 #include <sys/wait.h>
21377 static int counter = 0;
21378 static RETSIGTYPE handler(int num) { counter++; }
21383 if ((s = fork()) < 0) return 1;
21385 if (wait(&s) < 0) return 1;
21386 return WIFSIGNALED(s)? 1 : 0;
21389 signal(SIGHUP, handler);
21390 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21391 return (counter == 2)? 0 : 1;
21395 rm -f conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_link") 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21406 { (case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_try") 2>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; }; then
21415 knfsd_cv_bsd_signals=yes
21417 echo "$as_me: program exited with status $ac_status" >&5
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ( exit $ac_status )
21422 knfsd_cv_bsd_signals=no
21424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21429 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21430 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21431 test $knfsd_cv_bsd_signals = yes &&
21432 cat >>confdefs.h <<\_ACEOF
21433 #define HAVE_BSD_SIGNALS 1
21438 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21439 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21440 if test "${ac_cv_func_gethostbyname+set}" = set; then
21441 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 cat >conftest.$ac_ext <<_ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21451 #define gethostbyname innocuous_gethostbyname
21453 /* System header to define __stub macros and hopefully few prototypes,
21454 which can conflict with char gethostbyname (); below.
21455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456 <limits.h> exists even on freestanding compilers. */
21459 # include <limits.h>
21461 # include <assert.h>
21464 #undef gethostbyname
21466 /* Override any GCC internal prototype to avoid an error.
21467 Use char because int might match the return type of a GCC
21468 builtin and then its argument prototype would still apply. */
21472 char gethostbyname ();
21473 /* The GNU C library defines this for functions which it implements
21474 to always fail with ENOSYS. Some functions are actually named
21475 something starting with __ and the normal name is an alias. */
21476 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21483 return gethostbyname ();
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (ac_try="$ac_link"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495 (eval "$ac_link") 2>conftest.er1
21497 grep -v '^ *+' conftest.er1 >conftest.err
21499 cat conftest.err >&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } && {
21502 test -z "$ac_c_werror_flag" ||
21503 test ! -s conftest.err
21504 } && test -s conftest$ac_exeext &&
21505 $as_test_x conftest$ac_exeext; then
21506 ac_cv_func_gethostbyname=yes
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 ac_cv_func_gethostbyname=no
21514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21515 conftest$ac_exeext conftest.$ac_ext
21517 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21518 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21519 if test $ac_cv_func_gethostbyname = yes; then
21522 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21523 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21524 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 ac_check_lib_save_LIBS=$LIBS
21529 cat >conftest.$ac_ext <<_ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21536 /* Override any GCC internal prototype to avoid an error.
21537 Use char because int might match the return type of a GCC
21538 builtin and then its argument prototype would still apply. */
21542 char gethostbyname ();
21546 return gethostbyname ();
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_link") 2>conftest.er1
21560 grep -v '^ *+' conftest.er1 >conftest.err
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } && {
21565 test -z "$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21567 } && test -s conftest$ac_exeext &&
21568 $as_test_x conftest$ac_exeext; then
21569 ac_cv_lib_nsl_gethostbyname=yes
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_cv_lib_nsl_gethostbyname=no
21577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21578 conftest$ac_exeext conftest.$ac_ext
21579 LIBS=$ac_check_lib_save_LIBS
21581 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21582 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21583 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21591 { echo "$as_me:$LINENO: checking for connect" >&5
21592 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21593 if test "${ac_cv_func_connect+set}" = set; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21604 #define connect innocuous_connect
21606 /* System header to define __stub macros and hopefully few prototypes,
21607 which can conflict with char connect (); below.
21608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21609 <limits.h> exists even on freestanding compilers. */
21612 # include <limits.h>
21614 # include <assert.h>
21619 /* Override any GCC internal prototype to avoid an error.
21620 Use char because int might match the return type of a GCC
21621 builtin and then its argument prototype would still apply. */
21626 /* The GNU C library defines this for functions which it implements
21627 to always fail with ENOSYS. Some functions are actually named
21628 something starting with __ and the normal name is an alias. */
21629 #if defined __stub_connect || defined __stub___connect
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648 (eval "$ac_link") 2>conftest.er1
21650 grep -v '^ *+' conftest.er1 >conftest.err
21652 cat conftest.err >&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && {
21655 test -z "$ac_c_werror_flag" ||
21656 test ! -s conftest.err
21657 } && test -s conftest$ac_exeext &&
21658 $as_test_x conftest$ac_exeext; then
21659 ac_cv_func_connect=yes
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 ac_cv_func_connect=no
21667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21668 conftest$ac_exeext conftest.$ac_ext
21670 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21671 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21672 if test $ac_cv_func_connect = yes; then
21675 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21676 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21677 if test "${ac_cv_lib_socket_connect+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 ac_check_lib_save_LIBS=$LIBS
21681 LIBS="-lsocket $LIBNSL $LIBS"
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21689 /* Override any GCC internal prototype to avoid an error.
21690 Use char because int might match the return type of a GCC
21691 builtin and then its argument prototype would still apply. */
21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_link") 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && {
21718 test -z "$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 } && test -s conftest$ac_exeext &&
21721 $as_test_x conftest$ac_exeext; then
21722 ac_cv_lib_socket_connect=yes
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21727 ac_cv_lib_socket_connect=no
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731 conftest$ac_exeext conftest.$ac_ext
21732 LIBS=$ac_check_lib_save_LIBS
21734 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21735 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21736 if test $ac_cv_lib_socket_connect = yes; then
21737 LIBSOCKET="-lsocket"
21739 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21740 echo "$as_me: error: Function 'socket' not found." >&2;}
21741 { (exit 1); exit 1; }; }
21747 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21748 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21749 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 ac_check_lib_save_LIBS=$LIBS
21753 LIBS="-lcrypt $LIBS"
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21761 /* Override any GCC internal prototype to avoid an error.
21762 Use char because int might match the return type of a GCC
21763 builtin and then its argument prototype would still apply. */
21776 rm -f conftest.$ac_objext conftest$ac_exeext
21777 if { (ac_try="$ac_link"
21778 case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_link") 2>conftest.er1
21785 grep -v '^ *+' conftest.er1 >conftest.err
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest$ac_exeext &&
21793 $as_test_x conftest$ac_exeext; then
21794 ac_cv_lib_crypt_crypt=yes
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_cv_lib_crypt_crypt=no
21802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21803 conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21806 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21807 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21808 if test $ac_cv_lib_crypt_crypt = yes; then
21812 if test "$enable_nfsv4" = yes; then
21813 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21814 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21815 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21818 ac_check_lib_save_LIBS=$LIBS
21819 LIBS="-levent $LIBS"
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21827 /* Override any GCC internal prototype to avoid an error.
21828 Use char because int might match the return type of a GCC
21829 builtin and then its argument prototype would still apply. */
21833 char event_dispatch ();
21837 return event_dispatch ();
21842 rm -f conftest.$ac_objext conftest$ac_exeext
21843 if { (ac_try="$ac_link"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_link") 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest$ac_exeext &&
21859 $as_test_x conftest$ac_exeext; then
21860 ac_cv_lib_event_event_dispatch=yes
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 ac_cv_lib_event_event_dispatch=no
21868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21869 conftest$ac_exeext conftest.$ac_ext
21870 LIBS=$ac_check_lib_save_LIBS
21872 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21873 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21874 if test $ac_cv_lib_event_event_dispatch = yes; then
21877 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21878 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21879 { (exit 1); exit 1; }; }
21882 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21883 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21884 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 ac_check_lib_save_LIBS=$LIBS
21888 LIBS="-lnfsidmap $LIBS"
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21896 /* Override any GCC internal prototype to avoid an error.
21897 Use char because int might match the return type of a GCC
21898 builtin and then its argument prototype would still apply. */
21902 char nfs4_init_name_mapping ();
21906 return nfs4_init_name_mapping ();
21911 rm -f conftest.$ac_objext conftest$ac_exeext
21912 if { (ac_try="$ac_link"
21913 case "(($ac_try" in
21914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915 *) ac_try_echo=$ac_try;;
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918 (eval "$ac_link") 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } && {
21925 test -z "$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21927 } && test -s conftest$ac_exeext &&
21928 $as_test_x conftest$ac_exeext; then
21929 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21938 conftest$ac_exeext conftest.$ac_ext
21939 LIBS=$ac_check_lib_save_LIBS
21941 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21942 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21943 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21946 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21947 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21948 { (exit 1); exit 1; }; }
21952 for ac_header in event.h
21954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 ac_res=`eval echo '${'$as_ac_Header'}'`
21962 { echo "$as_me:$LINENO: result: $ac_res" >&5
21963 echo "${ECHO_T}$ac_res" >&6; }
21965 # Is the header compilable?
21966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 $ac_includes_default
21975 #include <$ac_header>
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_compile") 2>conftest.er1
21986 grep -v '^ *+' conftest.er1 >conftest.err
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && {
21991 test -z "$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21993 } && test -s conftest.$ac_objext; then
21994 ac_header_compiler=yes
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 ac_header_compiler=no
22002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22004 echo "${ECHO_T}$ac_header_compiler" >&6; }
22006 # Is the header present?
22007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 #include <$ac_header>
22017 if { (ac_try="$ac_cpp conftest.$ac_ext"
22018 case "(($ac_try" in
22019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020 *) ac_try_echo=$ac_try;;
22022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22025 grep -v '^ *+' conftest.er1 >conftest.err
22027 cat conftest.err >&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } >/dev/null && {
22030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22031 test ! -s conftest.err
22033 ac_header_preproc=yes
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 ac_header_preproc=no
22041 rm -f conftest.err conftest.$ac_ext
22042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22043 echo "${ECHO_T}$ac_header_preproc" >&6; }
22045 # So? What about this header?
22046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22052 ac_header_preproc=yes
22055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22068 ## ------------------------------- ##
22069 ## Report this to nfs@lists.sf.net ##
22070 ## ------------------------------- ##
22072 ) | sed "s/^/$as_me: WARNING: /" >&2
22075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22080 eval "$as_ac_Header=\$ac_header_preproc"
22082 ac_res=`eval echo '${'$as_ac_Header'}'`
22083 { echo "$as_me:$LINENO: result: $ac_res" >&5
22084 echo "${ECHO_T}$ac_res" >&6; }
22087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22088 cat >>confdefs.h <<_ACEOF
22089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22093 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22094 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22095 { (exit 1); exit 1; }; }
22101 for ac_header in nfsidmap.h
22103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 ac_res=`eval echo '${'$as_ac_Header'}'`
22111 { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22114 # Is the header compilable?
22115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22124 #include <$ac_header>
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
22143 ac_header_compiler=yes
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_header_compiler=no
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22153 echo "${ECHO_T}$ac_header_compiler" >&6; }
22155 # Is the header present?
22156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 #include <$ac_header>
22166 if { (ac_try="$ac_cpp conftest.$ac_ext"
22167 case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1 >conftest.err
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } >/dev/null && {
22179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22182 ac_header_preproc=yes
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ac_header_preproc=no
22190 rm -f conftest.err conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22192 echo "${ECHO_T}$ac_header_preproc" >&6; }
22194 # So? What about this header?
22195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22201 ac_header_preproc=yes
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22217 ## ------------------------------- ##
22218 ## Report this to nfs@lists.sf.net ##
22219 ## ------------------------------- ##
22221 ) | sed "s/^/$as_me: WARNING: /" >&2
22224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22229 eval "$as_ac_Header=\$ac_header_preproc"
22231 ac_res=`eval echo '${'$as_ac_Header'}'`
22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22242 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22243 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22244 { (exit 1); exit 1; }; }
22249 if test "$enable_gss" = yes; then
22252 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22253 if test -n "$ac_tool_prefix"; then
22254 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22255 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22258 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 case $PKG_CONFIG in
22263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22267 for as_dir in $PATH
22270 test -z "$as_dir" && as_dir=.
22271 for ac_exec_ext in '' $ac_executable_extensions; do
22272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22273 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22284 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22285 if test -n "$PKG_CONFIG"; then
22286 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22287 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22289 { echo "$as_me:$LINENO: result: no" >&5
22290 echo "${ECHO_T}no" >&6; }
22295 if test -z "$ac_cv_path_PKG_CONFIG"; then
22296 ac_pt_PKG_CONFIG=$PKG_CONFIG
22297 # Extract the first word of "pkg-config", so it can be a program name with args.
22298 set dummy pkg-config; ac_word=$2
22299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22301 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 case $ac_pt_PKG_CONFIG in
22306 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22310 for as_dir in $PATH
22313 test -z "$as_dir" && as_dir=.
22314 for ac_exec_ext in '' $ac_executable_extensions; do
22315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22316 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22327 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22328 if test -n "$ac_pt_PKG_CONFIG"; then
22329 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22330 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22332 { echo "$as_me:$LINENO: result: no" >&5
22333 echo "${ECHO_T}no" >&6; }
22336 if test "x$ac_pt_PKG_CONFIG" = x; then
22339 case $cross_compiling:$ac_tool_warned in
22341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22342 whose name does not start with the host triplet. If you think this
22343 configuration is useful to you, please write to autoconf@gnu.org." >&5
22344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22345 whose name does not start with the host triplet. If you think this
22346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22347 ac_tool_warned=yes ;;
22349 PKG_CONFIG=$ac_pt_PKG_CONFIG
22352 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22356 if test -n "$PKG_CONFIG"; then
22357 _pkg_min_version=0.9.0
22358 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22359 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22360 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22361 { echo "$as_me:$LINENO: result: yes" >&5
22362 echo "${ECHO_T}yes" >&6; }
22364 { echo "$as_me:$LINENO: result: no" >&5
22365 echo "${ECHO_T}no" >&6; }
22372 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22373 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22375 if test -n "$PKG_CONFIG"; then
22376 if test -n "$RPCSECGSS_CFLAGS"; then
22377 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22379 if test -n "$PKG_CONFIG" && \
22380 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22381 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; then
22385 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22393 if test -n "$PKG_CONFIG"; then
22394 if test -n "$RPCSECGSS_LIBS"; then
22395 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22397 if test -n "$PKG_CONFIG" && \
22398 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22399 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; then
22403 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22414 if test $pkg_failed = yes; then
22416 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22417 _pkg_short_errors_supported=yes
22419 _pkg_short_errors_supported=no
22421 if test $_pkg_short_errors_supported = yes; then
22422 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22424 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22426 # Put the nasty error message in config.log where it belongs
22427 echo "$RPCSECGSS_PKG_ERRORS" >&5
22429 { echo "$as_me:$LINENO: result: no" >&5
22430 echo "${ECHO_T}no" >&6; }
22431 { { 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
22432 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;}
22433 { (exit 1); exit 1; }; }
22436 elif test $pkg_failed = untried; then
22437 { { 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
22438 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;}
22439 { (exit 1); exit 1; }; }
22443 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22444 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22445 { echo "$as_me:$LINENO: result: yes" >&5
22446 echo "${ECHO_T}yes" >&6; }
22451 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22452 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22454 if test -n "$PKG_CONFIG"; then
22455 if test -n "$GSSAPI_CFLAGS"; then
22456 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22458 if test -n "$PKG_CONFIG" && \
22459 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22460 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; then
22464 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.11" 2>/dev/null`
22472 if test -n "$PKG_CONFIG"; then
22473 if test -n "$GSSAPI_LIBS"; then
22474 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22476 if test -n "$PKG_CONFIG" && \
22477 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22478 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; then
22482 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.11" 2>/dev/null`
22493 if test $pkg_failed = yes; then
22495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22496 _pkg_short_errors_supported=yes
22498 _pkg_short_errors_supported=no
22500 if test $_pkg_short_errors_supported = yes; then
22501 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22503 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22505 # Put the nasty error message in config.log where it belongs
22506 echo "$GSSAPI_PKG_ERRORS" >&5
22508 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.11) were not met:
22512 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22513 installed software in a non-standard prefix.
22515 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22516 and GSSAPI_LIBS to avoid the need to call pkg-config.
22517 See the pkg-config man page for more details.
22519 echo "$as_me: error: Package requirements (libgssapi >= 0.11) were not met:
22523 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22524 installed software in a non-standard prefix.
22526 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22527 and GSSAPI_LIBS to avoid the need to call pkg-config.
22528 See the pkg-config man page for more details.
22530 { (exit 1); exit 1; }; }
22531 elif test $pkg_failed = untried; then
22532 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22533 is in your PATH or set the PKG_CONFIG environment variable to the full
22534 path to pkg-config.
22536 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22537 and GSSAPI_LIBS to avoid the need to call pkg-config.
22538 See the pkg-config man page for more details.
22540 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22541 See \`config.log' for more details." >&5
22542 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22543 is in your PATH or set the PKG_CONFIG environment variable to the full
22544 path to pkg-config.
22546 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22547 and GSSAPI_LIBS to avoid the need to call pkg-config.
22548 See the pkg-config man page for more details.
22550 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22551 See \`config.log' for more details." >&2;}
22552 { (exit 1); exit 1; }; }
22554 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22555 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22556 { echo "$as_me:$LINENO: result: yes" >&5
22557 echo "${ECHO_T}yes" >&6; }
22563 if test "$knfsd_cv_glibc2" = no; then
22564 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22565 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22566 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22567 echo $ECHO_N "(cached) $ECHO_C" >&6
22569 ac_check_lib_save_LIBS=$LIBS
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22578 /* Override any GCC internal prototype to avoid an error.
22579 Use char because int might match the return type of a GCC
22580 builtin and then its argument prototype would still apply. */
22593 rm -f conftest.$ac_objext conftest$ac_exeext
22594 if { (ac_try="$ac_link"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_link") 2>conftest.er1
22602 grep -v '^ *+' conftest.er1 >conftest.err
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } && {
22607 test -z "$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22609 } && test -s conftest$ac_exeext &&
22610 $as_test_x conftest$ac_exeext; then
22611 ac_cv_lib_bsd_daemon=yes
22613 echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 ac_cv_lib_bsd_daemon=no
22619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22620 conftest$ac_exeext conftest.$ac_ext
22621 LIBS=$ac_check_lib_save_LIBS
22623 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22624 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22625 if test $ac_cv_lib_bsd_daemon = yes; then
22631 if test "$choose_blkid" != no; then
22632 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22633 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22634 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 ac_check_lib_save_LIBS=$LIBS
22638 LIBS="-lblkid $LIBS"
22639 cat >conftest.$ac_ext <<_ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22646 /* Override any GCC internal prototype to avoid an error.
22647 Use char because int might match the return type of a GCC
22648 builtin and then its argument prototype would still apply. */
22652 char blkid_get_library_version ();
22656 return blkid_get_library_version ();
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_link") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest$ac_exeext &&
22678 $as_test_x conftest$ac_exeext; then
22679 ac_cv_lib_blkid_blkid_get_library_version=yes
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_cv_lib_blkid_blkid_get_library_version=no
22687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22688 conftest$ac_exeext conftest.$ac_ext
22689 LIBS=$ac_check_lib_save_LIBS
22691 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22692 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22693 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22696 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22697 echo "$as_me: error: libblkid needed" >&2;}
22698 { (exit 1); exit 1; }; }
22701 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22702 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22703 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22704 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22708 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22710 # Is the header compilable?
22711 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22712 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 $ac_includes_default
22720 #include <blkid/blkid.h>
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_compile") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest.$ac_objext; then
22739 ac_header_compiler=yes
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 ac_header_compiler=no
22747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22749 echo "${ECHO_T}$ac_header_compiler" >&6; }
22751 # Is the header present?
22752 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22753 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22754 cat >conftest.$ac_ext <<_ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h. */
22760 #include <blkid/blkid.h>
22762 if { (ac_try="$ac_cpp conftest.$ac_ext"
22763 case "(($ac_try" in
22764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765 *) ac_try_echo=$ac_try;;
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22770 grep -v '^ *+' conftest.er1 >conftest.err
22772 cat conftest.err >&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } >/dev/null && {
22775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22776 test ! -s conftest.err
22778 ac_header_preproc=yes
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 ac_header_preproc=no
22786 rm -f conftest.err conftest.$ac_ext
22787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22788 echo "${ECHO_T}$ac_header_preproc" >&6; }
22790 # So? What about this header?
22791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22793 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22794 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22795 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
22796 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
22797 ac_header_preproc=yes
22800 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
22801 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
22802 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
22803 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
22804 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
22805 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
22806 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
22807 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
22808 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
22809 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
22810 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
22811 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
22813 ## ------------------------------- ##
22814 ## Report this to nfs@lists.sf.net ##
22815 ## ------------------------------- ##
22817 ) | sed "s/^/$as_me: WARNING: /" >&2
22820 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22821 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22822 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22825 ac_cv_header_blkid_blkid_h=$ac_header_preproc
22827 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22828 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22831 if test $ac_cv_header_blkid_blkid_h = yes; then
22834 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
22835 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
22836 { (exit 1); exit 1; }; }
22841 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
22842 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
22843 if test "${libblkid_is_recent+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22849 if test "$cross_compiling" = yes; then
22850 libblkid_is_recent=unknown
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22859 #include <blkid/blkid.h>
22862 int vers = blkid_get_library_version(0, 0);
22863 return vers >= 140 ? 0 : 1;
22867 rm -f conftest$ac_exeext
22868 if { (ac_try="$ac_link"
22869 case "(($ac_try" in
22870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871 *) ac_try_echo=$ac_try;;
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874 (eval "$ac_link") 2>&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22878 { (case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_try") 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 libblkid_is_recent=yes
22889 echo "$as_me: program exited with status $ac_status" >&5
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ( exit $ac_status )
22894 libblkid_is_recent=no
22896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
22904 echo "${ECHO_T}$libblkid_is_recent" >&6; }
22906 if test $choose_blkid = yes; then
22908 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
22909 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
22911 if test $libblkid_is_recent = yes
22914 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
22915 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
22919 cat >>confdefs.h <<_ACEOF
22920 #define USE_BLKID $use_blkid
22929 if test "$enable_gss" = yes; then
22931 for ac_header in nfsidmap.h
22933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 ac_res=`eval echo '${'$as_ac_Header'}'`
22941 { echo "$as_me:$LINENO: result: $ac_res" >&5
22942 echo "${ECHO_T}$ac_res" >&6; }
22944 # Is the header compilable?
22945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 $ac_includes_default
22954 #include <$ac_header>
22956 rm -f conftest.$ac_objext
22957 if { (ac_try="$ac_compile"
22958 case "(($ac_try" in
22959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960 *) ac_try_echo=$ac_try;;
22962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22963 (eval "$ac_compile") 2>conftest.er1
22965 grep -v '^ *+' conftest.er1 >conftest.err
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } && {
22970 test -z "$ac_c_werror_flag" ||
22971 test ! -s conftest.err
22972 } && test -s conftest.$ac_objext; then
22973 ac_header_compiler=yes
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 ac_header_compiler=no
22981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22983 echo "${ECHO_T}$ac_header_compiler" >&6; }
22985 # Is the header present?
22986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22988 cat >conftest.$ac_ext <<_ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22994 #include <$ac_header>
22996 if { (ac_try="$ac_cpp conftest.$ac_ext"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } >/dev/null && {
23009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23012 ac_header_preproc=yes
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 ac_header_preproc=no
23020 rm -f conftest.err conftest.$ac_ext
23021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23022 echo "${ECHO_T}$ac_header_preproc" >&6; }
23024 # So? What about this header?
23025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23031 ac_header_preproc=yes
23034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23047 ## ------------------------------- ##
23048 ## Report this to nfs@lists.sf.net ##
23049 ## ------------------------------- ##
23051 ) | sed "s/^/$as_me: WARNING: /" >&2
23054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23059 eval "$as_ac_Header=\$ac_header_preproc"
23061 ac_res=`eval echo '${'$as_ac_Header'}'`
23062 { echo "$as_me:$LINENO: result: $ac_res" >&5
23063 echo "${ECHO_T}$ac_res" >&6; }
23066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23067 cat >>confdefs.h <<_ACEOF
23068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23072 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23073 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23074 { (exit 1); exit 1; }; }
23080 for ac_header in spkm3.h
23082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23089 ac_res=`eval echo '${'$as_ac_Header'}'`
23090 { echo "$as_me:$LINENO: result: $ac_res" >&5
23091 echo "${ECHO_T}$ac_res" >&6; }
23093 # Is the header compilable?
23094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 $ac_includes_default
23103 #include <$ac_header>
23105 rm -f conftest.$ac_objext
23106 if { (ac_try="$ac_compile"
23107 case "(($ac_try" in
23108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23109 *) ac_try_echo=$ac_try;;
23111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23112 (eval "$ac_compile") 2>conftest.er1
23114 grep -v '^ *+' conftest.er1 >conftest.err
23116 cat conftest.err >&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
23122 ac_header_compiler=yes
23124 echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ac_header_compiler=no
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23132 echo "${ECHO_T}$ac_header_compiler" >&6; }
23134 # Is the header present?
23135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 #include <$ac_header>
23145 if { (ac_try="$ac_cpp conftest.$ac_ext"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23153 grep -v '^ *+' conftest.er1 >conftest.err
23155 cat conftest.err >&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } >/dev/null && {
23158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23159 test ! -s conftest.err
23161 ac_header_preproc=yes
23163 echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 ac_header_preproc=no
23169 rm -f conftest.err conftest.$ac_ext
23170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23171 echo "${ECHO_T}$ac_header_preproc" >&6; }
23173 # So? What about this header?
23174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23180 ac_header_preproc=yes
23183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23196 ## ------------------------------- ##
23197 ## Report this to nfs@lists.sf.net ##
23198 ## ------------------------------- ##
23200 ) | sed "s/^/$as_me: WARNING: /" >&2
23203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23208 eval "$as_ac_Header=\$ac_header_preproc"
23210 ac_res=`eval echo '${'$as_ac_Header'}'`
23211 { echo "$as_me:$LINENO: result: $ac_res" >&5
23212 echo "${ECHO_T}$ac_res" >&6; }
23215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23216 cat >>confdefs.h <<_ACEOF
23217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23221 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23222 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23227 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23228 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23229 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 ac_check_lib_save_LIBS=$LIBS
23233 LIBS="-lnfsidmap $LIBS"
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23241 /* Override any GCC internal prototype to avoid an error.
23242 Use char because int might match the return type of a GCC
23243 builtin and then its argument prototype would still apply. */
23247 char nfs4_set_debug ();
23251 return nfs4_set_debug ();
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (ac_try="$ac_link"
23258 case "(($ac_try" in
23259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23260 *) ac_try_echo=$ac_try;;
23262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23263 (eval "$ac_link") 2>conftest.er1
23265 grep -v '^ *+' conftest.er1 >conftest.err
23267 cat conftest.err >&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); } && {
23270 test -z "$ac_c_werror_flag" ||
23271 test ! -s conftest.err
23272 } && test -s conftest$ac_exeext &&
23273 $as_test_x conftest$ac_exeext; then
23274 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23283 conftest$ac_exeext conftest.$ac_ext
23284 LIBS=$ac_check_lib_save_LIBS
23286 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23287 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23288 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23290 cat >>confdefs.h <<\_ACEOF
23291 #define HAVE_NFS4_SET_DEBUG 1
23298 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23299 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23301 # Check whether --with-krb5 was given.
23302 if test "${with_krb5+set}" = set; then
23303 withval=$with_krb5; case "$withval" in
23308 krb5_with="$withval"
23315 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23316 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23318 if test -f $dir/bin/krb5-config; then
23319 K5CONFIG=$dir/bin/krb5-config
23320 elif test -f "/usr/kerberos/bin/krb5-config"; then
23321 K5CONFIG="/usr/kerberos/bin/krb5-config"
23322 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23323 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23325 if test "$K5CONFIG" != ""; then
23326 KRBCFLAGS=`$K5CONFIG --cflags`
23327 KRBLIBS=`$K5CONFIG --libs gssapi`
23328 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23330 cat >>confdefs.h <<_ACEOF
23331 #define KRB5_VERSION $K5VERS
23334 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23335 \( -f $dir/lib/libgssapi_krb5.a -o \
23336 -f $dir/lib64/libgssapi_krb5.a -o \
23337 -f $dir/lib64/libgssapi_krb5.so -o \
23338 -f $dir/lib/libgssapi_krb5.so \) ; then
23340 cat >>confdefs.h <<\_ACEOF
23341 #define HAVE_KRB5 1
23345 if test $K5VERS -le 131; then
23347 cat >>confdefs.h <<\_ACEOF
23348 #define USE_GSS_KRB5_CCACHE_NAME 1
23352 gssapi_lib=gssapi_krb5
23354 elif test \( -f $dir/include/heim_err.h -o\
23355 -f $dir/include/heimdal/heim_err.h \) -a \
23356 -f $dir/lib/libroken.a; then
23358 cat >>confdefs.h <<\_ACEOF
23359 #define HAVE_HEIMDAL 1
23368 if test "x$KRBDIR" = "x"; then
23369 if test "x$krb5_with" = "x"; then
23370 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23371 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23372 { (exit 1); exit 1; }; }
23374 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23375 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23376 { (exit 1); exit 1; }; }
23379 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23380 echo "${ECHO_T}$KRBDIR" >&6; }
23382 echo "The current KRBDIR is $KRBDIR"
23383 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23384 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23386 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23389 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23392 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23393 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23394 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23395 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23396 echo $ECHO_N "(cached) $ECHO_C" >&6
23398 ac_check_lib_save_LIBS=$LIBS
23399 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23400 cat >conftest.$ac_ext <<_ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h. */
23407 /* Override any GCC internal prototype to avoid an error.
23408 Use char because int might match the return type of a GCC
23409 builtin and then its argument prototype would still apply. */
23413 char gss_krb5_export_lucid_sec_context ();
23417 return gss_krb5_export_lucid_sec_context ();
23422 rm -f conftest.$ac_objext conftest$ac_exeext
23423 if { (ac_try="$ac_link"
23424 case "(($ac_try" in
23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426 *) ac_try_echo=$ac_try;;
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429 (eval "$ac_link") 2>conftest.er1
23431 grep -v '^ *+' conftest.er1 >conftest.err
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } && {
23436 test -z "$ac_c_werror_flag" ||
23437 test ! -s conftest.err
23438 } && test -s conftest$ac_exeext &&
23439 $as_test_x conftest$ac_exeext; then
23440 eval "$as_ac_Lib=yes"
23442 echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23445 eval "$as_ac_Lib=no"
23448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23449 conftest$ac_exeext conftest.$ac_ext
23450 LIBS=$ac_check_lib_save_LIBS
23452 ac_res=`eval echo '${'$as_ac_Lib'}'`
23453 { echo "$as_me:$LINENO: result: $ac_res" >&5
23454 echo "${ECHO_T}$ac_res" >&6; }
23455 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23457 cat >>confdefs.h <<\_ACEOF
23458 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23463 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23464 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23465 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23466 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23469 ac_check_lib_save_LIBS=$LIBS
23470 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23471 cat >conftest.$ac_ext <<_ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h. */
23478 /* Override any GCC internal prototype to avoid an error.
23479 Use char because int might match the return type of a GCC
23480 builtin and then its argument prototype would still apply. */
23484 char gss_krb5_set_allowable_enctypes ();
23488 return gss_krb5_set_allowable_enctypes ();
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (ac_try="$ac_link"
23495 case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_link") 2>conftest.er1
23502 grep -v '^ *+' conftest.er1 >conftest.err
23504 cat conftest.err >&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } && {
23507 test -z "$ac_c_werror_flag" ||
23508 test ! -s conftest.err
23509 } && test -s conftest$ac_exeext &&
23510 $as_test_x conftest$ac_exeext; then
23511 eval "$as_ac_Lib=yes"
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 eval "$as_ac_Lib=no"
23519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23520 conftest$ac_exeext conftest.$ac_ext
23521 LIBS=$ac_check_lib_save_LIBS
23523 ac_res=`eval echo '${'$as_ac_Lib'}'`
23524 { echo "$as_me:$LINENO: result: $ac_res" >&5
23525 echo "${ECHO_T}$ac_res" >&6; }
23526 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23528 cat >>confdefs.h <<\_ACEOF
23529 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23534 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23535 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23536 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23537 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 ac_check_lib_save_LIBS=$LIBS
23541 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23542 cat >conftest.$ac_ext <<_ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23549 /* Override any GCC internal prototype to avoid an error.
23550 Use char because int might match the return type of a GCC
23551 builtin and then its argument prototype would still apply. */
23555 char gss_krb5_ccache_name ();
23559 return gss_krb5_ccache_name ();
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (ac_try="$ac_link"
23566 case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_link") 2>conftest.er1
23573 grep -v '^ *+' conftest.er1 >conftest.err
23575 cat conftest.err >&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } && {
23578 test -z "$ac_c_werror_flag" ||
23579 test ! -s conftest.err
23580 } && test -s conftest$ac_exeext &&
23581 $as_test_x conftest$ac_exeext; then
23582 eval "$as_ac_Lib=yes"
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 eval "$as_ac_Lib=no"
23590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23591 conftest$ac_exeext conftest.$ac_ext
23592 LIBS=$ac_check_lib_save_LIBS
23594 ac_res=`eval echo '${'$as_ac_Lib'}'`
23595 { echo "$as_me:$LINENO: result: $ac_res" >&5
23596 echo "${ECHO_T}$ac_res" >&6; }
23597 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23599 cat >>confdefs.h <<\_ACEOF
23600 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23606 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23607 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23608 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23609 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23610 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 ac_check_lib_save_LIBS=$LIBS
23613 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23614 cat >conftest.$ac_ext <<_ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23621 /* Override any GCC internal prototype to avoid an error.
23622 Use char because int might match the return type of a GCC
23623 builtin and then its argument prototype would still apply. */
23627 char krb5_get_error_message ();
23631 return krb5_get_error_message ();
23636 rm -f conftest.$ac_objext conftest$ac_exeext
23637 if { (ac_try="$ac_link"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_link") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext &&
23653 $as_test_x conftest$ac_exeext; then
23654 eval "$as_ac_Lib=yes"
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23659 eval "$as_ac_Lib=no"
23662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23663 conftest$ac_exeext conftest.$ac_ext
23664 LIBS=$ac_check_lib_save_LIBS
23666 ac_res=`eval echo '${'$as_ac_Lib'}'`
23667 { echo "$as_me:$LINENO: result: $ac_res" >&5
23668 echo "${ECHO_T}$ac_res" >&6; }
23669 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23671 cat >>confdefs.h <<\_ACEOF
23672 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23678 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23679 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23680 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23681 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23682 echo $ECHO_N "(cached) $ECHO_C" >&6
23684 ac_check_lib_save_LIBS=$LIBS
23685 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23686 cat >conftest.$ac_ext <<_ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23693 /* Override any GCC internal prototype to avoid an error.
23694 Use char because int might match the return type of a GCC
23695 builtin and then its argument prototype would still apply. */
23699 char krb5_get_init_creds_opt_set_addressless ();
23703 return krb5_get_init_creds_opt_set_addressless ();
23708 rm -f conftest.$ac_objext conftest$ac_exeext
23709 if { (ac_try="$ac_link"
23710 case "(($ac_try" in
23711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23712 *) ac_try_echo=$ac_try;;
23714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23715 (eval "$ac_link") 2>conftest.er1
23717 grep -v '^ *+' conftest.er1 >conftest.err
23719 cat conftest.err >&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } && {
23722 test -z "$ac_c_werror_flag" ||
23723 test ! -s conftest.err
23724 } && test -s conftest$ac_exeext &&
23725 $as_test_x conftest$ac_exeext; then
23726 eval "$as_ac_Lib=yes"
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23731 eval "$as_ac_Lib=no"
23734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23735 conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_check_lib_save_LIBS
23738 ac_res=`eval echo '${'$as_ac_Lib'}'`
23739 { echo "$as_me:$LINENO: result: $ac_res" >&5
23740 echo "${ECHO_T}$ac_res" >&6; }
23741 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23743 cat >>confdefs.h <<\_ACEOF
23744 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
23750 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23751 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23752 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23763 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23764 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23765 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23768 ac_check_lib_save_LIBS=$LIBS
23769 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23770 cat >conftest.$ac_ext <<_ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h. */
23777 /* Override any GCC internal prototype to avoid an error.
23778 Use char because int might match the return type of a GCC
23779 builtin and then its argument prototype would still apply. */
23783 char authgss_create_default ();
23787 return authgss_create_default ();
23792 rm -f conftest.$ac_objext conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_link") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1 >conftest.err
23803 cat conftest.err >&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest$ac_exeext &&
23809 $as_test_x conftest$ac_exeext; then
23810 ac_cv_lib_rpcsecgss_authgss_create_default=yes
23812 echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23815 ac_cv_lib_rpcsecgss_authgss_create_default=no
23818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23819 conftest$ac_exeext conftest.$ac_ext
23820 LIBS=$ac_check_lib_save_LIBS
23822 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23823 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23824 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23827 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23828 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23829 { (exit 1); exit 1; }; }
23832 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23833 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23834 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23835 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 ac_check_lib_save_LIBS=$LIBS
23838 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23839 cat >conftest.$ac_ext <<_ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h. */
23846 /* Override any GCC internal prototype to avoid an error.
23847 Use char because int might match the return type of a GCC
23848 builtin and then its argument prototype would still apply. */
23852 char authgss_set_debug_level ();
23856 return authgss_set_debug_level ();
23861 rm -f conftest.$ac_objext conftest$ac_exeext
23862 if { (ac_try="$ac_link"
23863 case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_link") 2>conftest.er1
23870 grep -v '^ *+' conftest.er1 >conftest.err
23872 cat conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } && {
23875 test -z "$ac_c_werror_flag" ||
23876 test ! -s conftest.err
23877 } && test -s conftest$ac_exeext &&
23878 $as_test_x conftest$ac_exeext; then
23879 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23884 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23888 conftest$ac_exeext conftest.$ac_ext
23889 LIBS=$ac_check_lib_save_LIBS
23891 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23892 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23893 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23895 cat >>confdefs.h <<\_ACEOF
23896 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23927 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23928 malloc.h memory.h netdb.h netinet/in.h paths.h \
23929 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23930 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23931 syslog.h unistd.h com_err.h et/com_err.h \
23934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23939 echo $ECHO_N "(cached) $ECHO_C" >&6
23941 ac_res=`eval echo '${'$as_ac_Header'}'`
23942 { echo "$as_me:$LINENO: result: $ac_res" >&5
23943 echo "${ECHO_T}$ac_res" >&6; }
23945 # Is the header compilable?
23946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23948 cat >conftest.$ac_ext <<_ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h. */
23954 $ac_includes_default
23955 #include <$ac_header>
23957 rm -f conftest.$ac_objext
23958 if { (ac_try="$ac_compile"
23959 case "(($ac_try" in
23960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961 *) ac_try_echo=$ac_try;;
23963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23964 (eval "$ac_compile") 2>conftest.er1
23966 grep -v '^ *+' conftest.er1 >conftest.err
23968 cat conftest.err >&5
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); } && {
23971 test -z "$ac_c_werror_flag" ||
23972 test ! -s conftest.err
23973 } && test -s conftest.$ac_objext; then
23974 ac_header_compiler=yes
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23979 ac_header_compiler=no
23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23984 echo "${ECHO_T}$ac_header_compiler" >&6; }
23986 # Is the header present?
23987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23989 cat >conftest.$ac_ext <<_ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23995 #include <$ac_header>
23997 if { (ac_try="$ac_cpp conftest.$ac_ext"
23998 case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24005 grep -v '^ *+' conftest.er1 >conftest.err
24007 cat conftest.err >&5
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } >/dev/null && {
24010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24011 test ! -s conftest.err
24013 ac_header_preproc=yes
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24018 ac_header_preproc=no
24021 rm -f conftest.err conftest.$ac_ext
24022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24023 echo "${ECHO_T}$ac_header_preproc" >&6; }
24025 # So? What about this header?
24026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24032 ac_header_preproc=yes
24035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24048 ## ------------------------------- ##
24049 ## Report this to nfs@lists.sf.net ##
24050 ## ------------------------------- ##
24052 ) | sed "s/^/$as_me: WARNING: /" >&2
24055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24058 echo $ECHO_N "(cached) $ECHO_C" >&6
24060 eval "$as_ac_Header=\$ac_header_preproc"
24062 ac_res=`eval echo '${'$as_ac_Header'}'`
24063 { echo "$as_me:$LINENO: result: $ac_res" >&5
24064 echo "${ECHO_T}$ac_res" >&6; }
24067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24068 cat >>confdefs.h <<_ACEOF
24069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24077 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24078 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24079 if test "${ac_cv_c_const+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24082 cat >conftest.$ac_ext <<_ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h. */
24092 /* FIXME: Include the comments suggested by Paul. */
24093 #ifndef __cplusplus
24094 /* Ultrix mips cc rejects this. */
24095 typedef int charset[2];
24097 /* SunOS 4.1.1 cc rejects this. */
24098 char const *const *pcpcc;
24100 /* NEC SVR4.0.2 mips cc rejects this. */
24101 struct point {int x, y;};
24102 static struct point const zero = {0,0};
24103 /* AIX XL C 1.02.0.0 rejects this.
24104 It does not let you subtract one const X* pointer from another in
24105 an arm of an if-expression whose if-part is not a constant
24107 const char *g = "string";
24108 pcpcc = &g + (g ? g-g : 0);
24109 /* HPUX 7.0 cc rejects these. */
24111 ppc = (char**) pcpcc;
24112 pcpcc = (char const *const *) ppc;
24113 { /* SCO 3.2v4 cc rejects this. */
24115 char const *s = 0 ? (char *) 0 : (char const *) 0;
24120 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24121 int x[] = {25, 17};
24122 const int *foo = &x[0];
24125 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24126 typedef const int *iptr;
24130 { /* AIX XL C 1.02.0.0 rejects this saying
24131 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24132 struct s { int j; const int *ap[3]; };
24133 struct s *b; b->j = 5;
24135 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24136 const int foo = 10;
24137 if (!foo) return 0;
24139 return !cs[0] && !zero.x;
24146 rm -f conftest.$ac_objext
24147 if { (ac_try="$ac_compile"
24148 case "(($ac_try" in
24149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150 *) ac_try_echo=$ac_try;;
24152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24153 (eval "$ac_compile") 2>conftest.er1
24155 grep -v '^ *+' conftest.er1 >conftest.err
24157 cat conftest.err >&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } && {
24160 test -z "$ac_c_werror_flag" ||
24161 test ! -s conftest.err
24162 } && test -s conftest.$ac_objext; then
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24173 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24174 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24175 if test $ac_cv_c_const = no; then
24177 cat >>confdefs.h <<\_ACEOF
24183 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24184 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24185 if test "${ac_cv_type_uid_t+set}" = set; then
24186 echo $ECHO_N "(cached) $ECHO_C" >&6
24188 cat >conftest.$ac_ext <<_ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24194 #include <sys/types.h>
24197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24198 $EGREP "uid_t" >/dev/null 2>&1; then
24199 ac_cv_type_uid_t=yes
24201 ac_cv_type_uid_t=no
24206 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24207 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24208 if test $ac_cv_type_uid_t = no; then
24210 cat >>confdefs.h <<\_ACEOF
24215 cat >>confdefs.h <<\_ACEOF
24221 { echo "$as_me:$LINENO: checking for inline" >&5
24222 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24223 if test "${ac_cv_c_inline+set}" = set; then
24224 echo $ECHO_N "(cached) $ECHO_C" >&6
24227 for ac_kw in inline __inline__ __inline; do
24228 cat >conftest.$ac_ext <<_ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h. */
24234 #ifndef __cplusplus
24236 static $ac_kw foo_t static_foo () {return 0; }
24237 $ac_kw foo_t foo () {return 0; }
24241 rm -f conftest.$ac_objext
24242 if { (ac_try="$ac_compile"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_compile") 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && {
24255 test -z "$ac_c_werror_flag" ||
24256 test ! -s conftest.err
24257 } && test -s conftest.$ac_objext; then
24258 ac_cv_c_inline=$ac_kw
24260 echo "$as_me: failed program was:" >&5
24261 sed 's/^/| /' conftest.$ac_ext >&5
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267 test "$ac_cv_c_inline" != no && break
24271 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24272 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24275 case $ac_cv_c_inline in
24278 case $ac_cv_c_inline in
24280 *) ac_val=$ac_cv_c_inline;;
24282 cat >>confdefs.h <<_ACEOF
24283 #ifndef __cplusplus
24284 #define inline $ac_val
24290 { echo "$as_me:$LINENO: checking for off_t" >&5
24291 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24292 if test "${ac_cv_type_off_t+set}" = set; then
24293 echo $ECHO_N "(cached) $ECHO_C" >&6
24295 cat >conftest.$ac_ext <<_ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 $ac_includes_default
24302 typedef off_t ac__type_new_;
24306 if ((ac__type_new_ *) 0)
24308 if (sizeof (ac__type_new_))
24314 rm -f conftest.$ac_objext
24315 if { (ac_try="$ac_compile"
24316 case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_compile") 2>conftest.er1
24323 grep -v '^ *+' conftest.er1 >conftest.err
24325 cat conftest.err >&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } && {
24328 test -z "$ac_c_werror_flag" ||
24329 test ! -s conftest.err
24330 } && test -s conftest.$ac_objext; then
24331 ac_cv_type_off_t=yes
24333 echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24336 ac_cv_type_off_t=no
24339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24341 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24342 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24343 if test $ac_cv_type_off_t = yes; then
24347 cat >>confdefs.h <<_ACEOF
24348 #define off_t long int
24353 { echo "$as_me:$LINENO: checking for pid_t" >&5
24354 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24355 if test "${ac_cv_type_pid_t+set}" = set; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24364 $ac_includes_default
24365 typedef pid_t ac__type_new_;
24369 if ((ac__type_new_ *) 0)
24371 if (sizeof (ac__type_new_))
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384 (eval "$ac_compile") 2>conftest.er1
24386 grep -v '^ *+' conftest.er1 >conftest.err
24388 cat conftest.err >&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } && {
24391 test -z "$ac_c_werror_flag" ||
24392 test ! -s conftest.err
24393 } && test -s conftest.$ac_objext; then
24394 ac_cv_type_pid_t=yes
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24399 ac_cv_type_pid_t=no
24402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24404 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24405 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24406 if test $ac_cv_type_pid_t = yes; then
24410 cat >>confdefs.h <<_ACEOF
24416 { echo "$as_me:$LINENO: checking for size_t" >&5
24417 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24418 if test "${ac_cv_type_size_t+set}" = set; then
24419 echo $ECHO_N "(cached) $ECHO_C" >&6
24421 cat >conftest.$ac_ext <<_ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24428 typedef size_t ac__type_new_;
24432 if ((ac__type_new_ *) 0)
24434 if (sizeof (ac__type_new_))
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447 (eval "$ac_compile") 2>conftest.er1
24449 grep -v '^ *+' conftest.er1 >conftest.err
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest.$ac_objext; then
24457 ac_cv_type_size_t=yes
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24462 ac_cv_type_size_t=no
24465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24468 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24469 if test $ac_cv_type_size_t = yes; then
24473 cat >>confdefs.h <<_ACEOF
24474 #define size_t unsigned int
24479 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24480 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24481 if test "${ac_cv_header_time+set}" = set; then
24482 echo $ECHO_N "(cached) $ECHO_C" >&6
24484 cat >conftest.$ac_ext <<_ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 #include <sys/types.h>
24491 #include <sys/time.h>
24497 if ((struct tm *) 0)
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } && {
24517 test -z "$ac_c_werror_flag" ||
24518 test ! -s conftest.err
24519 } && test -s conftest.$ac_objext; then
24520 ac_cv_header_time=yes
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 ac_cv_header_time=no
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24531 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24532 if test $ac_cv_header_time = yes; then
24534 cat >>confdefs.h <<\_ACEOF
24535 #define TIME_WITH_SYS_TIME 1
24540 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24541 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24542 if test "${ac_cv_struct_tm+set}" = set; then
24543 echo $ECHO_N "(cached) $ECHO_C" >&6
24545 cat >conftest.$ac_ext <<_ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 #include <sys/types.h>
24558 int *p = &tm.tm_sec;
24564 rm -f conftest.$ac_objext
24565 if { (ac_try="$ac_compile"
24566 case "(($ac_try" in
24567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568 *) ac_try_echo=$ac_try;;
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571 (eval "$ac_compile") 2>conftest.er1
24573 grep -v '^ *+' conftest.er1 >conftest.err
24575 cat conftest.err >&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); } && {
24578 test -z "$ac_c_werror_flag" ||
24579 test ! -s conftest.err
24580 } && test -s conftest.$ac_objext; then
24581 ac_cv_struct_tm=time.h
24583 echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24586 ac_cv_struct_tm=sys/time.h
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24592 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24593 if test $ac_cv_struct_tm = sys/time.h; then
24595 cat >>confdefs.h <<\_ACEOF
24596 #define TM_IN_SYS_TIME 1
24602 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24603 # for constant arguments. Useless!
24604 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24605 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24606 if test "${ac_cv_working_alloca_h+set}" = set; then
24607 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 cat >conftest.$ac_ext <<_ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h. */
24615 #include <alloca.h>
24619 char *p = (char *) alloca (2 * sizeof (int));
24625 rm -f conftest.$ac_objext conftest$ac_exeext
24626 if { (ac_try="$ac_link"
24627 case "(($ac_try" in
24628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24629 *) ac_try_echo=$ac_try;;
24631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24632 (eval "$ac_link") 2>conftest.er1
24634 grep -v '^ *+' conftest.er1 >conftest.err
24636 cat conftest.err >&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); } && {
24639 test -z "$ac_c_werror_flag" ||
24640 test ! -s conftest.err
24641 } && test -s conftest$ac_exeext &&
24642 $as_test_x conftest$ac_exeext; then
24643 ac_cv_working_alloca_h=yes
24645 echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24648 ac_cv_working_alloca_h=no
24651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24652 conftest$ac_exeext conftest.$ac_ext
24654 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24655 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24656 if test $ac_cv_working_alloca_h = yes; then
24658 cat >>confdefs.h <<\_ACEOF
24659 #define HAVE_ALLOCA_H 1
24664 { echo "$as_me:$LINENO: checking for alloca" >&5
24665 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24666 if test "${ac_cv_func_alloca_works+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24676 # define alloca __builtin_alloca
24679 # include <malloc.h>
24680 # define alloca _alloca
24682 # ifdef HAVE_ALLOCA_H
24683 # include <alloca.h>
24688 # ifndef alloca /* predefined by HP cc +Olibcalls */
24699 char *p = (char *) alloca (1);
24705 rm -f conftest.$ac_objext conftest$ac_exeext
24706 if { (ac_try="$ac_link"
24707 case "(($ac_try" in
24708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24709 *) ac_try_echo=$ac_try;;
24711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24712 (eval "$ac_link") 2>conftest.er1
24714 grep -v '^ *+' conftest.er1 >conftest.err
24716 cat conftest.err >&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } && {
24719 test -z "$ac_c_werror_flag" ||
24720 test ! -s conftest.err
24721 } && test -s conftest$ac_exeext &&
24722 $as_test_x conftest$ac_exeext; then
24723 ac_cv_func_alloca_works=yes
24725 echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24728 ac_cv_func_alloca_works=no
24731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24732 conftest$ac_exeext conftest.$ac_ext
24734 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24735 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24737 if test $ac_cv_func_alloca_works = yes; then
24739 cat >>confdefs.h <<\_ACEOF
24740 #define HAVE_ALLOCA 1
24744 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24745 # that cause trouble. Some versions do not even contain alloca or
24746 # contain a buggy version. If you still want to use their alloca,
24747 # use ar to extract alloca.o from them instead of compiling alloca.c.
24749 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24751 cat >>confdefs.h <<\_ACEOF
24756 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24757 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24758 if test "${ac_cv_os_cray+set}" = set; then
24759 echo $ECHO_N "(cached) $ECHO_C" >&6
24761 cat >conftest.$ac_ext <<_ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h. */
24767 #if defined CRAY && ! defined CRAY2
24774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24775 $EGREP "webecray" >/dev/null 2>&1; then
24783 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24784 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24785 if test $ac_cv_os_cray = yes; then
24786 for ac_func in _getb67 GETB67 getb67; do
24787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24791 echo $ECHO_N "(cached) $ECHO_C" >&6
24793 cat >conftest.$ac_ext <<_ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h. */
24799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24801 #define $ac_func innocuous_$ac_func
24803 /* System header to define __stub macros and hopefully few prototypes,
24804 which can conflict with char $ac_func (); below.
24805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24806 <limits.h> exists even on freestanding compilers. */
24809 # include <limits.h>
24811 # include <assert.h>
24816 /* Override any GCC internal prototype to avoid an error.
24817 Use char because int might match the return type of a GCC
24818 builtin and then its argument prototype would still apply. */
24823 /* The GNU C library defines this for functions which it implements
24824 to always fail with ENOSYS. Some functions are actually named
24825 something starting with __ and the normal name is an alias. */
24826 #if defined __stub_$ac_func || defined __stub___$ac_func
24833 return $ac_func ();
24838 rm -f conftest.$ac_objext conftest$ac_exeext
24839 if { (ac_try="$ac_link"
24840 case "(($ac_try" in
24841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842 *) ac_try_echo=$ac_try;;
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845 (eval "$ac_link") 2>conftest.er1
24847 grep -v '^ *+' conftest.er1 >conftest.err
24849 cat conftest.err >&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } && {
24852 test -z "$ac_c_werror_flag" ||
24853 test ! -s conftest.err
24854 } && test -s conftest$ac_exeext &&
24855 $as_test_x conftest$ac_exeext; then
24856 eval "$as_ac_var=yes"
24858 echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24861 eval "$as_ac_var=no"
24864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24865 conftest$ac_exeext conftest.$ac_ext
24867 ac_res=`eval echo '${'$as_ac_var'}'`
24868 { echo "$as_me:$LINENO: result: $ac_res" >&5
24869 echo "${ECHO_T}$ac_res" >&6; }
24870 if test `eval echo '${'$as_ac_var'}'` = yes; then
24872 cat >>confdefs.h <<_ACEOF
24873 #define CRAY_STACKSEG_END $ac_func
24882 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24883 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24884 if test "${ac_cv_c_stack_direction+set}" = set; then
24885 echo $ECHO_N "(cached) $ECHO_C" >&6
24887 if test "$cross_compiling" = yes; then
24888 ac_cv_c_stack_direction=0
24890 cat >conftest.$ac_ext <<_ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 $ac_includes_default
24898 find_stack_direction ()
24900 static char *addr = 0;
24905 return find_stack_direction ();
24908 return (&dummy > addr) ? 1 : -1;
24914 return find_stack_direction () < 0;
24917 rm -f conftest$ac_exeext
24918 if { (ac_try="$ac_link"
24919 case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_link") 2>&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24928 { (case "(($ac_try" in
24929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930 *) ac_try_echo=$ac_try;;
24932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933 (eval "$ac_try") 2>&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; }; then
24937 ac_cv_c_stack_direction=1
24939 echo "$as_me: program exited with status $ac_status" >&5
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ( exit $ac_status )
24944 ac_cv_c_stack_direction=-1
24946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24951 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24952 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24954 cat >>confdefs.h <<_ACEOF
24955 #define STACK_DIRECTION $ac_cv_c_stack_direction
24966 ac_header_dirent=no
24967 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24968 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24969 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24970 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
24974 cat >conftest.$ac_ext <<_ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h. */
24980 #include <sys/types.h>
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest.$ac_objext; then
25009 eval "$as_ac_Header=yes"
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 eval "$as_ac_Header=no"
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 ac_res=`eval echo '${'$as_ac_Header'}'`
25020 { echo "$as_me:$LINENO: result: $ac_res" >&5
25021 echo "${ECHO_T}$ac_res" >&6; }
25022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25023 cat >>confdefs.h <<_ACEOF
25024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25027 ac_header_dirent=$ac_hdr; break
25031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25032 if test $ac_header_dirent = dirent.h; then
25033 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25035 if test "${ac_cv_search_opendir+set}" = set; then
25036 echo $ECHO_N "(cached) $ECHO_C" >&6
25038 ac_func_search_save_LIBS=$LIBS
25039 cat >conftest.$ac_ext <<_ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25046 /* Override any GCC internal prototype to avoid an error.
25047 Use char because int might match the return type of a GCC
25048 builtin and then its argument prototype would still apply. */
25061 for ac_lib in '' dir; do
25062 if test -z "$ac_lib"; then
25063 ac_res="none required"
25066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25068 rm -f conftest.$ac_objext conftest$ac_exeext
25069 if { (ac_try="$ac_link"
25070 case "(($ac_try" in
25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072 *) ac_try_echo=$ac_try;;
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075 (eval "$ac_link") 2>conftest.er1
25077 grep -v '^ *+' conftest.er1 >conftest.err
25079 cat conftest.err >&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } && {
25082 test -z "$ac_c_werror_flag" ||
25083 test ! -s conftest.err
25084 } && test -s conftest$ac_exeext &&
25085 $as_test_x conftest$ac_exeext; then
25086 ac_cv_search_opendir=$ac_res
25088 echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25096 if test "${ac_cv_search_opendir+set}" = set; then
25100 if test "${ac_cv_search_opendir+set}" = set; then
25103 ac_cv_search_opendir=no
25105 rm conftest.$ac_ext
25106 LIBS=$ac_func_search_save_LIBS
25108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25110 ac_res=$ac_cv_search_opendir
25111 if test "$ac_res" != no; then
25112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25119 if test "${ac_cv_search_opendir+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 ac_func_search_save_LIBS=$LIBS
25123 cat >conftest.$ac_ext <<_ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25130 /* Override any GCC internal prototype to avoid an error.
25131 Use char because int might match the return type of a GCC
25132 builtin and then its argument prototype would still apply. */
25145 for ac_lib in '' x; do
25146 if test -z "$ac_lib"; then
25147 ac_res="none required"
25150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_link") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest$ac_exeext &&
25169 $as_test_x conftest$ac_exeext; then
25170 ac_cv_search_opendir=$ac_res
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25180 if test "${ac_cv_search_opendir+set}" = set; then
25184 if test "${ac_cv_search_opendir+set}" = set; then
25187 ac_cv_search_opendir=no
25189 rm conftest.$ac_ext
25190 LIBS=$ac_func_search_save_LIBS
25192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25194 ac_res=$ac_cv_search_opendir
25195 if test "$ac_res" != no; then
25196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25202 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25203 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25204 if test "${ac_cv_func_closedir_void+set}" = set; then
25205 echo $ECHO_N "(cached) $ECHO_C" >&6
25207 if test "$cross_compiling" = yes; then
25208 ac_cv_func_closedir_void=yes
25210 cat >conftest.$ac_ext <<_ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h. */
25216 $ac_includes_default
25217 #include <$ac_header_dirent>
25218 #ifndef __cplusplus
25225 return closedir (opendir (".")) != 0;
25230 rm -f conftest$ac_exeext
25231 if { (ac_try="$ac_link"
25232 case "(($ac_try" in
25233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25234 *) ac_try_echo=$ac_try;;
25236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25237 (eval "$ac_link") 2>&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25241 { (case "(($ac_try" in
25242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243 *) ac_try_echo=$ac_try;;
25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246 (eval "$ac_try") 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; }; then
25250 ac_cv_func_closedir_void=no
25252 echo "$as_me: program exited with status $ac_status" >&5
25253 echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25256 ( exit $ac_status )
25257 ac_cv_func_closedir_void=yes
25259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25264 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25265 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25266 if test $ac_cv_func_closedir_void = yes; then
25268 cat >>confdefs.h <<\_ACEOF
25269 #define CLOSEDIR_VOID 1
25274 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25275 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25276 if test "${ac_cv_lib_error_at_line+set}" = set; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25279 cat >conftest.$ac_ext <<_ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h. */
25289 error_at_line (0, 0, "", 0, "an error occurred");
25294 rm -f conftest.$ac_objext conftest$ac_exeext
25295 if { (ac_try="$ac_link"
25296 case "(($ac_try" in
25297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298 *) ac_try_echo=$ac_try;;
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301 (eval "$ac_link") 2>conftest.er1
25303 grep -v '^ *+' conftest.er1 >conftest.err
25305 cat conftest.err >&5
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } && {
25308 test -z "$ac_c_werror_flag" ||
25309 test ! -s conftest.err
25310 } && test -s conftest$ac_exeext &&
25311 $as_test_x conftest$ac_exeext; then
25312 ac_cv_lib_error_at_line=yes
25314 echo "$as_me: failed program was:" >&5
25315 sed 's/^/| /' conftest.$ac_ext >&5
25317 ac_cv_lib_error_at_line=no
25320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25321 conftest$ac_exeext conftest.$ac_ext
25323 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25324 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25325 if test $ac_cv_lib_error_at_line = no; then
25326 case " $LIBOBJS " in
25327 *" error.$ac_objext "* ) ;;
25328 *) LIBOBJS="$LIBOBJS error.$ac_objext"
25335 for ac_header in vfork.h
25337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
25344 ac_res=`eval echo '${'$as_ac_Header'}'`
25345 { echo "$as_me:$LINENO: result: $ac_res" >&5
25346 echo "${ECHO_T}$ac_res" >&6; }
25348 # Is the header compilable?
25349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25351 cat >conftest.$ac_ext <<_ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h. */
25357 $ac_includes_default
25358 #include <$ac_header>
25360 rm -f conftest.$ac_objext
25361 if { (ac_try="$ac_compile"
25362 case "(($ac_try" in
25363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25364 *) ac_try_echo=$ac_try;;
25366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25367 (eval "$ac_compile") 2>conftest.er1
25369 grep -v '^ *+' conftest.er1 >conftest.err
25371 cat conftest.err >&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); } && {
25374 test -z "$ac_c_werror_flag" ||
25375 test ! -s conftest.err
25376 } && test -s conftest.$ac_objext; then
25377 ac_header_compiler=yes
25379 echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25382 ac_header_compiler=no
25385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25387 echo "${ECHO_T}$ac_header_compiler" >&6; }
25389 # Is the header present?
25390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25392 cat >conftest.$ac_ext <<_ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h. */
25398 #include <$ac_header>
25400 if { (ac_try="$ac_cpp conftest.$ac_ext"
25401 case "(($ac_try" in
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403 *) ac_try_echo=$ac_try;;
25405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25408 grep -v '^ *+' conftest.er1 >conftest.err
25410 cat conftest.err >&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } >/dev/null && {
25413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25414 test ! -s conftest.err
25416 ac_header_preproc=yes
25418 echo "$as_me: failed program was:" >&5
25419 sed 's/^/| /' conftest.$ac_ext >&5
25421 ac_header_preproc=no
25424 rm -f conftest.err conftest.$ac_ext
25425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25426 echo "${ECHO_T}$ac_header_preproc" >&6; }
25428 # So? What about this header?
25429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25435 ac_header_preproc=yes
25438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25451 ## ------------------------------- ##
25452 ## Report this to nfs@lists.sf.net ##
25453 ## ------------------------------- ##
25455 ) | sed "s/^/$as_me: WARNING: /" >&2
25458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25461 echo $ECHO_N "(cached) $ECHO_C" >&6
25463 eval "$as_ac_Header=\$ac_header_preproc"
25465 ac_res=`eval echo '${'$as_ac_Header'}'`
25466 { echo "$as_me:$LINENO: result: $ac_res" >&5
25467 echo "${ECHO_T}$ac_res" >&6; }
25470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25471 cat >>confdefs.h <<_ACEOF
25472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25481 for ac_func in fork vfork
25483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25487 echo $ECHO_N "(cached) $ECHO_C" >&6
25489 cat >conftest.$ac_ext <<_ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h. */
25495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25497 #define $ac_func innocuous_$ac_func
25499 /* System header to define __stub macros and hopefully few prototypes,
25500 which can conflict with char $ac_func (); below.
25501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25502 <limits.h> exists even on freestanding compilers. */
25505 # include <limits.h>
25507 # include <assert.h>
25512 /* Override any GCC internal prototype to avoid an error.
25513 Use char because int might match the return type of a GCC
25514 builtin and then its argument prototype would still apply. */
25519 /* The GNU C library defines this for functions which it implements
25520 to always fail with ENOSYS. Some functions are actually named
25521 something starting with __ and the normal name is an alias. */
25522 #if defined __stub_$ac_func || defined __stub___$ac_func
25529 return $ac_func ();
25534 rm -f conftest.$ac_objext conftest$ac_exeext
25535 if { (ac_try="$ac_link"
25536 case "(($ac_try" in
25537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25538 *) ac_try_echo=$ac_try;;
25540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25541 (eval "$ac_link") 2>conftest.er1
25543 grep -v '^ *+' conftest.er1 >conftest.err
25545 cat conftest.err >&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } && {
25548 test -z "$ac_c_werror_flag" ||
25549 test ! -s conftest.err
25550 } && test -s conftest$ac_exeext &&
25551 $as_test_x conftest$ac_exeext; then
25552 eval "$as_ac_var=yes"
25554 echo "$as_me: failed program was:" >&5
25555 sed 's/^/| /' conftest.$ac_ext >&5
25557 eval "$as_ac_var=no"
25560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25561 conftest$ac_exeext conftest.$ac_ext
25563 ac_res=`eval echo '${'$as_ac_var'}'`
25564 { echo "$as_me:$LINENO: result: $ac_res" >&5
25565 echo "${ECHO_T}$ac_res" >&6; }
25566 if test `eval echo '${'$as_ac_var'}'` = yes; then
25567 cat >>confdefs.h <<_ACEOF
25568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25574 if test "x$ac_cv_func_fork" = xyes; then
25575 { echo "$as_me:$LINENO: checking for working fork" >&5
25576 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25577 if test "${ac_cv_func_fork_works+set}" = set; then
25578 echo $ECHO_N "(cached) $ECHO_C" >&6
25580 if test "$cross_compiling" = yes; then
25581 ac_cv_func_fork_works=cross
25583 cat >conftest.$ac_ext <<_ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h. */
25589 $ac_includes_default
25594 /* By Ruediger Kuhlmann. */
25595 return fork () < 0;
25601 rm -f conftest$ac_exeext
25602 if { (ac_try="$ac_link"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608 (eval "$ac_link") 2>&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25612 { (case "(($ac_try" in
25613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614 *) ac_try_echo=$ac_try;;
25616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617 (eval "$ac_try") 2>&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ac_cv_func_fork_works=yes
25623 echo "$as_me: program exited with status $ac_status" >&5
25624 echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25627 ( exit $ac_status )
25628 ac_cv_func_fork_works=no
25630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25635 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25636 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25639 ac_cv_func_fork_works=$ac_cv_func_fork
25641 if test "x$ac_cv_func_fork_works" = xcross; then
25643 *-*-amigaos* | *-*-msdosdjgpp*)
25644 # Override, as these systems have only a dummy fork() stub
25645 ac_cv_func_fork_works=no
25648 ac_cv_func_fork_works=yes
25651 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25652 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25654 ac_cv_func_vfork_works=$ac_cv_func_vfork
25655 if test "x$ac_cv_func_vfork" = xyes; then
25656 { echo "$as_me:$LINENO: checking for working vfork" >&5
25657 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25658 if test "${ac_cv_func_vfork_works+set}" = set; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25661 if test "$cross_compiling" = yes; then
25662 ac_cv_func_vfork_works=cross
25664 cat >conftest.$ac_ext <<_ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 /* Thanks to Paul Eggert for this test. */
25671 $ac_includes_default
25672 #include <sys/wait.h>
25673 #ifdef HAVE_VFORK_H
25674 # include <vfork.h>
25676 /* On some sparc systems, changes by the child to local and incoming
25677 argument registers are propagated back to the parent. The compiler
25678 is told about this with #include <vfork.h>, but some compilers
25679 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25680 static variable whose address is put into a register that is
25681 clobbered by the vfork. */
25684 sparc_address_test (int arg)
25686 sparc_address_test (arg) int arg;
25689 static pid_t child;
25707 pid_t parent = getpid ();
25710 sparc_address_test (0);
25715 /* Here is another test for sparc vfork register problems. This
25716 test uses lots of local variables, at least as many local
25717 variables as main has allocated so far including compiler
25718 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25719 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25720 reuse the register of parent for one of the local variables,
25721 since it will think that parent can't possibly be used any more
25722 in this routine. Assigning to the local variable will thus
25723 munge parent in the parent process. */
25725 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25726 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25727 /* Convince the compiler that p..p7 are live; otherwise, it might
25728 use the same hardware register for all 8 local variables. */
25729 if (p != p1 || p != p2 || p != p3 || p != p4
25730 || p != p5 || p != p6 || p != p7)
25733 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25734 from child file descriptors. If the child closes a descriptor
25735 before it execs or exits, this munges the parent's descriptor
25736 as well. Test for this by closing stdout in the child. */
25737 _exit(close(fileno(stdout)) != 0);
25742 while (wait(&status) != child)
25745 /* Was there some problem with vforking? */
25748 /* Did the child fail? (This shouldn't happen.) */
25751 /* Did the vfork/compiler bug occur? */
25752 || parent != getpid()
25754 /* Did the file descriptor bug occur? */
25755 || fstat(fileno(stdout), &st) != 0
25760 rm -f conftest$ac_exeext
25761 if { (ac_try="$ac_link"
25762 case "(($ac_try" in
25763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764 *) ac_try_echo=$ac_try;;
25766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25767 (eval "$ac_link") 2>&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25771 { (case "(($ac_try" in
25772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773 *) ac_try_echo=$ac_try;;
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776 (eval "$ac_try") 2>&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); }; }; then
25780 ac_cv_func_vfork_works=yes
25782 echo "$as_me: program exited with status $ac_status" >&5
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25786 ( exit $ac_status )
25787 ac_cv_func_vfork_works=no
25789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25794 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25795 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25798 if test "x$ac_cv_func_fork_works" = xcross; then
25799 ac_cv_func_vfork_works=$ac_cv_func_vfork
25800 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25801 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25804 if test "x$ac_cv_func_vfork_works" = xyes; then
25806 cat >>confdefs.h <<\_ACEOF
25807 #define HAVE_WORKING_VFORK 1
25812 cat >>confdefs.h <<\_ACEOF
25817 if test "x$ac_cv_func_fork_works" = xyes; then
25819 cat >>confdefs.h <<\_ACEOF
25820 #define HAVE_WORKING_FORK 1
25825 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25826 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25827 if test "${ac_cv_type_getgroups+set}" = set; then
25828 echo $ECHO_N "(cached) $ECHO_C" >&6
25830 if test "$cross_compiling" = yes; then
25831 ac_cv_type_getgroups=cross
25833 cat >conftest.$ac_ext <<_ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h. */
25839 /* Thanks to Mike Rendell for this test. */
25840 $ac_includes_default
25843 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25848 gid_t gidset[NGID];
25850 union { gid_t gval; long int lval; } val;
25853 for (i = 0; i < NGID; i++)
25854 gidset[i] = val.gval;
25855 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25857 /* Exit non-zero if getgroups seems to require an array of ints. This
25858 happens when gid_t is short int but getgroups modifies an array
25860 return n > 0 && gidset[n] != val.gval;
25863 rm -f conftest$ac_exeext
25864 if { (ac_try="$ac_link"
25865 case "(($ac_try" in
25866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867 *) ac_try_echo=$ac_try;;
25869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25870 (eval "$ac_link") 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25874 { (case "(($ac_try" in
25875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25876 *) ac_try_echo=$ac_try;;
25878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25879 (eval "$ac_try") 2>&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; }; then
25883 ac_cv_type_getgroups=gid_t
25885 echo "$as_me: program exited with status $ac_status" >&5
25886 echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25889 ( exit $ac_status )
25890 ac_cv_type_getgroups=int
25892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25896 if test $ac_cv_type_getgroups = cross; then
25897 cat >conftest.$ac_ext <<_ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 #include <unistd.h>
25906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25907 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25908 ac_cv_type_getgroups=gid_t
25910 ac_cv_type_getgroups=int
25916 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25917 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25919 cat >>confdefs.h <<_ACEOF
25920 #define GETGROUPS_T $ac_cv_type_getgroups
25924 { echo "$as_me:$LINENO: checking for getgroups" >&5
25925 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25926 if test "${ac_cv_func_getgroups+set}" = set; then
25927 echo $ECHO_N "(cached) $ECHO_C" >&6
25929 cat >conftest.$ac_ext <<_ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25935 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25937 #define getgroups innocuous_getgroups
25939 /* System header to define __stub macros and hopefully few prototypes,
25940 which can conflict with char getgroups (); below.
25941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25942 <limits.h> exists even on freestanding compilers. */
25945 # include <limits.h>
25947 # include <assert.h>
25952 /* Override any GCC internal prototype to avoid an error.
25953 Use char because int might match the return type of a GCC
25954 builtin and then its argument prototype would still apply. */
25959 /* The GNU C library defines this for functions which it implements
25960 to always fail with ENOSYS. Some functions are actually named
25961 something starting with __ and the normal name is an alias. */
25962 #if defined __stub_getgroups || defined __stub___getgroups
25969 return getgroups ();
25974 rm -f conftest.$ac_objext conftest$ac_exeext
25975 if { (ac_try="$ac_link"
25976 case "(($ac_try" in
25977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978 *) ac_try_echo=$ac_try;;
25980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25981 (eval "$ac_link") 2>conftest.er1
25983 grep -v '^ *+' conftest.er1 >conftest.err
25985 cat conftest.err >&5
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); } && {
25988 test -z "$ac_c_werror_flag" ||
25989 test ! -s conftest.err
25990 } && test -s conftest$ac_exeext &&
25991 $as_test_x conftest$ac_exeext; then
25992 ac_cv_func_getgroups=yes
25994 echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
25997 ac_cv_func_getgroups=no
26000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26001 conftest$ac_exeext conftest.$ac_ext
26003 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26004 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26007 # If we don't yet have getgroups, see if it's in -lbsd.
26008 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26010 if test $ac_cv_func_getgroups = no; then
26011 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26012 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26013 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26014 echo $ECHO_N "(cached) $ECHO_C" >&6
26016 ac_check_lib_save_LIBS=$LIBS
26018 cat >conftest.$ac_ext <<_ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h. */
26025 /* Override any GCC internal prototype to avoid an error.
26026 Use char because int might match the return type of a GCC
26027 builtin and then its argument prototype would still apply. */
26035 return getgroups ();
26040 rm -f conftest.$ac_objext conftest$ac_exeext
26041 if { (ac_try="$ac_link"
26042 case "(($ac_try" in
26043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044 *) ac_try_echo=$ac_try;;
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047 (eval "$ac_link") 2>conftest.er1
26049 grep -v '^ *+' conftest.er1 >conftest.err
26051 cat conftest.err >&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); } && {
26054 test -z "$ac_c_werror_flag" ||
26055 test ! -s conftest.err
26056 } && test -s conftest$ac_exeext &&
26057 $as_test_x conftest$ac_exeext; then
26058 ac_cv_lib_bsd_getgroups=yes
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26063 ac_cv_lib_bsd_getgroups=no
26066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26067 conftest$ac_exeext conftest.$ac_ext
26068 LIBS=$ac_check_lib_save_LIBS
26070 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26071 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26072 if test $ac_cv_lib_bsd_getgroups = yes; then
26073 GETGROUPS_LIB=-lbsd
26078 # Run the program to test the functionality of the system-supplied
26079 # getgroups function only if there is such a function.
26080 if test $ac_cv_func_getgroups = yes; then
26081 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26082 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26083 if test "${ac_cv_func_getgroups_works+set}" = set; then
26084 echo $ECHO_N "(cached) $ECHO_C" >&6
26086 if test "$cross_compiling" = yes; then
26087 ac_cv_func_getgroups_works=no
26089 cat >conftest.$ac_ext <<_ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095 $ac_includes_default
26099 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26100 return getgroups (0, 0) == -1;
26105 rm -f conftest$ac_exeext
26106 if { (ac_try="$ac_link"
26107 case "(($ac_try" in
26108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26109 *) ac_try_echo=$ac_try;;
26111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26112 (eval "$ac_link") 2>&5
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26116 { (case "(($ac_try" in
26117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118 *) ac_try_echo=$ac_try;;
26120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26121 (eval "$ac_try") 2>&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; }; then
26125 ac_cv_func_getgroups_works=yes
26127 echo "$as_me: program exited with status $ac_status" >&5
26128 echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26131 ( exit $ac_status )
26132 ac_cv_func_getgroups_works=no
26134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26140 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26141 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26142 if test $ac_cv_func_getgroups_works = yes; then
26144 cat >>confdefs.h <<\_ACEOF
26145 #define HAVE_GETGROUPS 1
26152 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26153 # -lseq on Dynix/PTX, -lgen on Unixware.
26154 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26155 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26156 if test "${ac_cv_search_getmntent+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 ac_func_search_save_LIBS=$LIBS
26160 cat >conftest.$ac_ext <<_ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h. */
26167 /* Override any GCC internal prototype to avoid an error.
26168 Use char because int might match the return type of a GCC
26169 builtin and then its argument prototype would still apply. */
26177 return getmntent ();
26182 for ac_lib in '' sun seq gen; do
26183 if test -z "$ac_lib"; then
26184 ac_res="none required"
26187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26189 rm -f conftest.$ac_objext conftest$ac_exeext
26190 if { (ac_try="$ac_link"
26191 case "(($ac_try" in
26192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193 *) ac_try_echo=$ac_try;;
26195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26196 (eval "$ac_link") 2>conftest.er1
26198 grep -v '^ *+' conftest.er1 >conftest.err
26200 cat conftest.err >&5
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); } && {
26203 test -z "$ac_c_werror_flag" ||
26204 test ! -s conftest.err
26205 } && test -s conftest$ac_exeext &&
26206 $as_test_x conftest$ac_exeext; then
26207 ac_cv_search_getmntent=$ac_res
26209 echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217 if test "${ac_cv_search_getmntent+set}" = set; then
26221 if test "${ac_cv_search_getmntent+set}" = set; then
26224 ac_cv_search_getmntent=no
26226 rm conftest.$ac_ext
26227 LIBS=$ac_func_search_save_LIBS
26229 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26230 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26231 ac_res=$ac_cv_search_getmntent
26232 if test "$ac_res" != no; then
26233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26234 ac_cv_func_getmntent=yes
26236 cat >>confdefs.h <<\_ACEOF
26237 #define HAVE_GETMNTENT 1
26241 ac_cv_func_getmntent=no
26245 if test $ac_cv_c_compiler_gnu = yes; then
26246 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26247 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26248 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26249 echo $ECHO_N "(cached) $ECHO_C" >&6
26251 ac_pattern="Autoconf.*'x'"
26252 cat >conftest.$ac_ext <<_ACEOF
26255 cat confdefs.h >>conftest.$ac_ext
26256 cat >>conftest.$ac_ext <<_ACEOF
26257 /* end confdefs.h. */
26261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26262 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26263 ac_cv_prog_gcc_traditional=yes
26265 ac_cv_prog_gcc_traditional=no
26270 if test $ac_cv_prog_gcc_traditional = no; then
26271 cat >conftest.$ac_ext <<_ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h. */
26277 #include <termio.h>
26280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26281 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26282 ac_cv_prog_gcc_traditional=yes
26288 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26289 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26290 if test $ac_cv_prog_gcc_traditional = yes; then
26291 CC="$CC -traditional"
26295 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26296 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26297 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26300 rm -f conftest.sym conftest.file
26301 echo >conftest.file
26302 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26303 if test "$cross_compiling" = yes; then
26304 ac_cv_func_lstat_dereferences_slashed_symlink=no
26306 cat >conftest.$ac_ext <<_ACEOF
26309 cat confdefs.h >>conftest.$ac_ext
26310 cat >>conftest.$ac_ext <<_ACEOF
26311 /* end confdefs.h. */
26312 $ac_includes_default
26317 /* Linux will dereference the symlink and fail.
26318 That is better in the sense that it means we will not
26319 have to compile and use the lstat wrapper. */
26320 return lstat ("conftest.sym/", &sbuf) == 0;
26325 rm -f conftest$ac_exeext
26326 if { (ac_try="$ac_link"
26327 case "(($ac_try" in
26328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26329 *) ac_try_echo=$ac_try;;
26331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26332 (eval "$ac_link") 2>&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26336 { (case "(($ac_try" in
26337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338 *) ac_try_echo=$ac_try;;
26340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341 (eval "$ac_try") 2>&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; }; then
26345 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26347 echo "$as_me: program exited with status $ac_status" >&5
26348 echo "$as_me: failed program was:" >&5
26349 sed 's/^/| /' conftest.$ac_ext >&5
26351 ( exit $ac_status )
26352 ac_cv_func_lstat_dereferences_slashed_symlink=no
26354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26359 # If the `ln -s' command failed, then we probably don't even
26360 # have an lstat function.
26361 ac_cv_func_lstat_dereferences_slashed_symlink=no
26363 rm -f conftest.sym conftest.file
26366 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26367 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26369 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26371 cat >>confdefs.h <<_ACEOF
26372 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26376 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26377 case " $LIBOBJS " in
26378 *" lstat.$ac_objext "* ) ;;
26379 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26385 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26386 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26387 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26388 echo $ECHO_N "(cached) $ECHO_C" >&6
26390 if test "$cross_compiling" = yes; then
26391 ac_cv_func_lstat_empty_string_bug=yes
26393 cat >conftest.$ac_ext <<_ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26399 $ac_includes_default
26404 return lstat ("", &sbuf) == 0;
26409 rm -f conftest$ac_exeext
26410 if { (ac_try="$ac_link"
26411 case "(($ac_try" in
26412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413 *) ac_try_echo=$ac_try;;
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416 (eval "$ac_link") 2>&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26420 { (case "(($ac_try" in
26421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425 (eval "$ac_try") 2>&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; }; then
26429 ac_cv_func_lstat_empty_string_bug=no
26431 echo "$as_me: program exited with status $ac_status" >&5
26432 echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26435 ( exit $ac_status )
26436 ac_cv_func_lstat_empty_string_bug=yes
26438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26443 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26444 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26445 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26446 case " $LIBOBJS " in
26447 *" lstat.$ac_objext "* ) ;;
26448 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26453 cat >>confdefs.h <<_ACEOF
26454 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26459 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26460 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26461 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26464 rm -f conftest.sym conftest.file
26465 echo >conftest.file
26466 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26467 if test "$cross_compiling" = yes; then
26468 ac_cv_func_lstat_dereferences_slashed_symlink=no
26470 cat >conftest.$ac_ext <<_ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h. */
26476 $ac_includes_default
26481 /* Linux will dereference the symlink and fail.
26482 That is better in the sense that it means we will not
26483 have to compile and use the lstat wrapper. */
26484 return lstat ("conftest.sym/", &sbuf) == 0;
26489 rm -f conftest$ac_exeext
26490 if { (ac_try="$ac_link"
26491 case "(($ac_try" in
26492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493 *) ac_try_echo=$ac_try;;
26495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496 (eval "$ac_link") 2>&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26500 { (case "(($ac_try" in
26501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502 *) ac_try_echo=$ac_try;;
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505 (eval "$ac_try") 2>&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; }; then
26509 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26511 echo "$as_me: program exited with status $ac_status" >&5
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 ( exit $ac_status )
26516 ac_cv_func_lstat_dereferences_slashed_symlink=no
26518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26523 # If the `ln -s' command failed, then we probably don't even
26524 # have an lstat function.
26525 ac_cv_func_lstat_dereferences_slashed_symlink=no
26527 rm -f conftest.sym conftest.file
26530 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26531 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26533 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26535 cat >>confdefs.h <<_ACEOF
26536 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26540 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26541 case " $LIBOBJS " in
26542 *" lstat.$ac_objext "* ) ;;
26543 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26549 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26550 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26551 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26554 cat >conftest.$ac_ext <<_ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h. */
26560 #include <sys/types.h>
26564 return makedev(0, 0);
26569 rm -f conftest.$ac_objext conftest$ac_exeext
26570 if { (ac_try="$ac_link"
26571 case "(($ac_try" in
26572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573 *) ac_try_echo=$ac_try;;
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576 (eval "$ac_link") 2>conftest.er1
26578 grep -v '^ *+' conftest.er1 >conftest.err
26580 cat conftest.err >&5
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } && {
26583 test -z "$ac_c_werror_flag" ||
26584 test ! -s conftest.err
26585 } && test -s conftest$ac_exeext &&
26586 $as_test_x conftest$ac_exeext; then
26587 ac_cv_header_sys_types_h_makedev=yes
26589 echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 ac_cv_header_sys_types_h_makedev=no
26595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26596 conftest$ac_exeext conftest.$ac_ext
26599 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26600 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26602 if test $ac_cv_header_sys_types_h_makedev = no; then
26603 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26604 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26605 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26606 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26609 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26610 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26612 # Is the header compilable?
26613 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26614 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26615 cat >conftest.$ac_ext <<_ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h. */
26621 $ac_includes_default
26622 #include <sys/mkdev.h>
26624 rm -f conftest.$ac_objext
26625 if { (ac_try="$ac_compile"
26626 case "(($ac_try" in
26627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628 *) ac_try_echo=$ac_try;;
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631 (eval "$ac_compile") 2>conftest.er1
26633 grep -v '^ *+' conftest.er1 >conftest.err
26635 cat conftest.err >&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } && {
26638 test -z "$ac_c_werror_flag" ||
26639 test ! -s conftest.err
26640 } && test -s conftest.$ac_objext; then
26641 ac_header_compiler=yes
26643 echo "$as_me: failed program was:" >&5
26644 sed 's/^/| /' conftest.$ac_ext >&5
26646 ac_header_compiler=no
26649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26651 echo "${ECHO_T}$ac_header_compiler" >&6; }
26653 # Is the header present?
26654 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26655 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26656 cat >conftest.$ac_ext <<_ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h. */
26662 #include <sys/mkdev.h>
26664 if { (ac_try="$ac_cpp conftest.$ac_ext"
26665 case "(($ac_try" in
26666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667 *) ac_try_echo=$ac_try;;
26669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26672 grep -v '^ *+' conftest.er1 >conftest.err
26674 cat conftest.err >&5
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } >/dev/null && {
26677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26678 test ! -s conftest.err
26680 ac_header_preproc=yes
26682 echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26685 ac_header_preproc=no
26688 rm -f conftest.err conftest.$ac_ext
26689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26690 echo "${ECHO_T}$ac_header_preproc" >&6; }
26692 # So? What about this header?
26693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26695 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26696 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26697 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26698 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26699 ac_header_preproc=yes
26702 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26703 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26704 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26705 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26706 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26707 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26708 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26709 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26710 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26711 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26712 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26713 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26715 ## ------------------------------- ##
26716 ## Report this to nfs@lists.sf.net ##
26717 ## ------------------------------- ##
26719 ) | sed "s/^/$as_me: WARNING: /" >&2
26722 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26723 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26724 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26729 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26730 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26733 if test $ac_cv_header_sys_mkdev_h = yes; then
26735 cat >>confdefs.h <<\_ACEOF
26736 #define MAJOR_IN_MKDEV 1
26743 if test $ac_cv_header_sys_mkdev_h = no; then
26744 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26745 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26746 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26747 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26751 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26753 # Is the header compilable?
26754 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26755 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26756 cat >conftest.$ac_ext <<_ACEOF
26759 cat confdefs.h >>conftest.$ac_ext
26760 cat >>conftest.$ac_ext <<_ACEOF
26761 /* end confdefs.h. */
26762 $ac_includes_default
26763 #include <sys/sysmacros.h>
26765 rm -f conftest.$ac_objext
26766 if { (ac_try="$ac_compile"
26767 case "(($ac_try" in
26768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769 *) ac_try_echo=$ac_try;;
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772 (eval "$ac_compile") 2>conftest.er1
26774 grep -v '^ *+' conftest.er1 >conftest.err
26776 cat conftest.err >&5
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } && {
26779 test -z "$ac_c_werror_flag" ||
26780 test ! -s conftest.err
26781 } && test -s conftest.$ac_objext; then
26782 ac_header_compiler=yes
26784 echo "$as_me: failed program was:" >&5
26785 sed 's/^/| /' conftest.$ac_ext >&5
26787 ac_header_compiler=no
26790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26792 echo "${ECHO_T}$ac_header_compiler" >&6; }
26794 # Is the header present?
26795 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26796 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26797 cat >conftest.$ac_ext <<_ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h. */
26803 #include <sys/sysmacros.h>
26805 if { (ac_try="$ac_cpp conftest.$ac_ext"
26806 case "(($ac_try" in
26807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808 *) ac_try_echo=$ac_try;;
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26813 grep -v '^ *+' conftest.er1 >conftest.err
26815 cat conftest.err >&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } >/dev/null && {
26818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26819 test ! -s conftest.err
26821 ac_header_preproc=yes
26823 echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26826 ac_header_preproc=no
26829 rm -f conftest.err conftest.$ac_ext
26830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26831 echo "${ECHO_T}$ac_header_preproc" >&6; }
26833 # So? What about this header?
26834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26836 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26837 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26838 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26839 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26840 ac_header_preproc=yes
26843 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26844 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26845 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
26846 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
26847 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26848 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26849 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
26850 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
26851 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26852 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26853 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26854 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26856 ## ------------------------------- ##
26857 ## Report this to nfs@lists.sf.net ##
26858 ## ------------------------------- ##
26860 ) | sed "s/^/$as_me: WARNING: /" >&2
26863 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26864 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26865 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26868 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26871 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26874 if test $ac_cv_header_sys_sysmacros_h = yes; then
26876 cat >>confdefs.h <<\_ACEOF
26877 #define MAJOR_IN_SYSMACROS 1
26887 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26888 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26889 if test "${ac_cv_func_memcmp_working+set}" = set; then
26890 echo $ECHO_N "(cached) $ECHO_C" >&6
26892 if test "$cross_compiling" = yes; then
26893 ac_cv_func_memcmp_working=no
26895 cat >conftest.$ac_ext <<_ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h. */
26901 $ac_includes_default
26906 /* Some versions of memcmp are not 8-bit clean. */
26907 char c0 = '\100', c1 = '\200', c2 = '\201';
26908 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26911 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26912 or more and with at least one buffer not starting on a 4-byte boundary.
26913 William Lewis provided this test program. */
26918 for (i = 0; i < 4; i++)
26922 strcpy (a, "--------01111111");
26923 strcpy (b, "--------10000000");
26924 if (memcmp (a, b, 16) >= 0)
26934 rm -f conftest$ac_exeext
26935 if { (ac_try="$ac_link"
26936 case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_link") 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26945 { (case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_try") 2>&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; }; then
26954 ac_cv_func_memcmp_working=yes
26956 echo "$as_me: program exited with status $ac_status" >&5
26957 echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26960 ( exit $ac_status )
26961 ac_cv_func_memcmp_working=no
26963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26968 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26969 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26970 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26971 *" memcmp.$ac_objext "* ) ;;
26972 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26980 for ac_header in sys/select.h sys/socket.h
26982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26987 echo $ECHO_N "(cached) $ECHO_C" >&6
26989 ac_res=`eval echo '${'$as_ac_Header'}'`
26990 { echo "$as_me:$LINENO: result: $ac_res" >&5
26991 echo "${ECHO_T}$ac_res" >&6; }
26993 # Is the header compilable?
26994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26996 cat >conftest.$ac_ext <<_ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h. */
27002 $ac_includes_default
27003 #include <$ac_header>
27005 rm -f conftest.$ac_objext
27006 if { (ac_try="$ac_compile"
27007 case "(($ac_try" in
27008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27009 *) ac_try_echo=$ac_try;;
27011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27012 (eval "$ac_compile") 2>conftest.er1
27014 grep -v '^ *+' conftest.er1 >conftest.err
27016 cat conftest.err >&5
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } && {
27019 test -z "$ac_c_werror_flag" ||
27020 test ! -s conftest.err
27021 } && test -s conftest.$ac_objext; then
27022 ac_header_compiler=yes
27024 echo "$as_me: failed program was:" >&5
27025 sed 's/^/| /' conftest.$ac_ext >&5
27027 ac_header_compiler=no
27030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27032 echo "${ECHO_T}$ac_header_compiler" >&6; }
27034 # Is the header present?
27035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27037 cat >conftest.$ac_ext <<_ACEOF
27040 cat confdefs.h >>conftest.$ac_ext
27041 cat >>conftest.$ac_ext <<_ACEOF
27042 /* end confdefs.h. */
27043 #include <$ac_header>
27045 if { (ac_try="$ac_cpp conftest.$ac_ext"
27046 case "(($ac_try" in
27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048 *) ac_try_echo=$ac_try;;
27050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27053 grep -v '^ *+' conftest.er1 >conftest.err
27055 cat conftest.err >&5
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); } >/dev/null && {
27058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27059 test ! -s conftest.err
27061 ac_header_preproc=yes
27063 echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27066 ac_header_preproc=no
27069 rm -f conftest.err conftest.$ac_ext
27070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27071 echo "${ECHO_T}$ac_header_preproc" >&6; }
27073 # So? What about this header?
27074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27080 ac_header_preproc=yes
27083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27096 ## ------------------------------- ##
27097 ## Report this to nfs@lists.sf.net ##
27098 ## ------------------------------- ##
27100 ) | sed "s/^/$as_me: WARNING: /" >&2
27103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27108 eval "$as_ac_Header=\$ac_header_preproc"
27110 ac_res=`eval echo '${'$as_ac_Header'}'`
27111 { echo "$as_me:$LINENO: result: $ac_res" >&5
27112 echo "${ECHO_T}$ac_res" >&6; }
27115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27116 cat >>confdefs.h <<_ACEOF
27117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27124 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27125 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27126 if test "${ac_cv_func_select_args+set}" = set; then
27127 echo $ECHO_N "(cached) $ECHO_C" >&6
27129 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27130 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27131 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27132 cat >conftest.$ac_ext <<_ACEOF
27135 cat confdefs.h >>conftest.$ac_ext
27136 cat >>conftest.$ac_ext <<_ACEOF
27137 /* end confdefs.h. */
27138 $ac_includes_default
27139 #ifdef HAVE_SYS_SELECT_H
27140 # include <sys/select.h>
27142 #ifdef HAVE_SYS_SOCKET_H
27143 # include <sys/socket.h>
27149 extern int select ($ac_arg1,
27150 $ac_arg234, $ac_arg234, $ac_arg234,
27156 rm -f conftest.$ac_objext
27157 if { (ac_try="$ac_compile"
27158 case "(($ac_try" in
27159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160 *) ac_try_echo=$ac_try;;
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163 (eval "$ac_compile") 2>conftest.er1
27165 grep -v '^ *+' conftest.er1 >conftest.err
27167 cat conftest.err >&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } && {
27170 test -z "$ac_c_werror_flag" ||
27171 test ! -s conftest.err
27172 } && test -s conftest.$ac_objext; then
27173 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27175 echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27185 # Provide a safe default value.
27186 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27189 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27190 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27191 ac_save_IFS=$IFS; IFS=','
27192 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27196 cat >>confdefs.h <<_ACEOF
27197 #define SELECT_TYPE_ARG1 $1
27201 cat >>confdefs.h <<_ACEOF
27202 #define SELECT_TYPE_ARG234 ($2)
27206 cat >>confdefs.h <<_ACEOF
27207 #define SELECT_TYPE_ARG5 ($3)
27212 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27213 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27214 if test "${ac_cv_type_signal+set}" = set; then
27215 echo $ECHO_N "(cached) $ECHO_C" >&6
27217 cat >conftest.$ac_ext <<_ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h. */
27223 #include <sys/types.h>
27224 #include <signal.h>
27229 return *(signal (0, 0)) (0) == 1;
27234 rm -f conftest.$ac_objext
27235 if { (ac_try="$ac_compile"
27236 case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241 (eval "$ac_compile") 2>conftest.er1
27243 grep -v '^ *+' conftest.er1 >conftest.err
27245 cat conftest.err >&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } && {
27248 test -z "$ac_c_werror_flag" ||
27249 test ! -s conftest.err
27250 } && test -s conftest.$ac_objext; then
27251 ac_cv_type_signal=int
27253 echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27256 ac_cv_type_signal=void
27259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27261 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27262 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27264 cat >>confdefs.h <<_ACEOF
27265 #define RETSIGTYPE $ac_cv_type_signal
27269 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27270 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27271 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27272 echo $ECHO_N "(cached) $ECHO_C" >&6
27274 if test "$cross_compiling" = yes; then
27275 ac_cv_func_stat_empty_string_bug=yes
27277 cat >conftest.$ac_ext <<_ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h. */
27283 $ac_includes_default
27288 return stat ("", &sbuf) == 0;
27293 rm -f conftest$ac_exeext
27294 if { (ac_try="$ac_link"
27295 case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_link") 2>&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27304 { (case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_try") 2>&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; }; then
27313 ac_cv_func_stat_empty_string_bug=no
27315 echo "$as_me: program exited with status $ac_status" >&5
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ( exit $ac_status )
27320 ac_cv_func_stat_empty_string_bug=yes
27322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27327 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27328 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27329 if test $ac_cv_func_stat_empty_string_bug = yes; then
27330 case " $LIBOBJS " in
27331 *" stat.$ac_objext "* ) ;;
27332 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27337 cat >>confdefs.h <<_ACEOF
27338 #define HAVE_STAT_EMPTY_STRING_BUG 1
27344 for ac_func in vprintf
27346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27350 echo $ECHO_N "(cached) $ECHO_C" >&6
27352 cat >conftest.$ac_ext <<_ACEOF
27355 cat confdefs.h >>conftest.$ac_ext
27356 cat >>conftest.$ac_ext <<_ACEOF
27357 /* end confdefs.h. */
27358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27360 #define $ac_func innocuous_$ac_func
27362 /* System header to define __stub macros and hopefully few prototypes,
27363 which can conflict with char $ac_func (); below.
27364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27365 <limits.h> exists even on freestanding compilers. */
27368 # include <limits.h>
27370 # include <assert.h>
27375 /* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
27382 /* The GNU C library defines this for functions which it implements
27383 to always fail with ENOSYS. Some functions are actually named
27384 something starting with __ and the normal name is an alias. */
27385 #if defined __stub_$ac_func || defined __stub___$ac_func
27392 return $ac_func ();
27397 rm -f conftest.$ac_objext conftest$ac_exeext
27398 if { (ac_try="$ac_link"
27399 case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_link") 2>conftest.er1
27406 grep -v '^ *+' conftest.er1 >conftest.err
27408 cat conftest.err >&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); } && {
27411 test -z "$ac_c_werror_flag" ||
27412 test ! -s conftest.err
27413 } && test -s conftest$ac_exeext &&
27414 $as_test_x conftest$ac_exeext; then
27415 eval "$as_ac_var=yes"
27417 echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27420 eval "$as_ac_var=no"
27423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27424 conftest$ac_exeext conftest.$ac_ext
27426 ac_res=`eval echo '${'$as_ac_var'}'`
27427 { echo "$as_me:$LINENO: result: $ac_res" >&5
27428 echo "${ECHO_T}$ac_res" >&6; }
27429 if test `eval echo '${'$as_ac_var'}'` = yes; then
27430 cat >>confdefs.h <<_ACEOF
27431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27434 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27435 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27436 if test "${ac_cv_func__doprnt+set}" = set; then
27437 echo $ECHO_N "(cached) $ECHO_C" >&6
27439 cat >conftest.$ac_ext <<_ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h. */
27445 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27447 #define _doprnt innocuous__doprnt
27449 /* System header to define __stub macros and hopefully few prototypes,
27450 which can conflict with char _doprnt (); below.
27451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27452 <limits.h> exists even on freestanding compilers. */
27455 # include <limits.h>
27457 # include <assert.h>
27462 /* Override any GCC internal prototype to avoid an error.
27463 Use char because int might match the return type of a GCC
27464 builtin and then its argument prototype would still apply. */
27469 /* The GNU C library defines this for functions which it implements
27470 to always fail with ENOSYS. Some functions are actually named
27471 something starting with __ and the normal name is an alias. */
27472 #if defined __stub__doprnt || defined __stub____doprnt
27484 rm -f conftest.$ac_objext conftest$ac_exeext
27485 if { (ac_try="$ac_link"
27486 case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_link") 2>conftest.er1
27493 grep -v '^ *+' conftest.er1 >conftest.err
27495 cat conftest.err >&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); } && {
27498 test -z "$ac_c_werror_flag" ||
27499 test ! -s conftest.err
27500 } && test -s conftest$ac_exeext &&
27501 $as_test_x conftest$ac_exeext; then
27502 ac_cv_func__doprnt=yes
27504 echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27507 ac_cv_func__doprnt=no
27510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27511 conftest$ac_exeext conftest.$ac_ext
27513 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27514 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27515 if test $ac_cv_func__doprnt = yes; then
27517 cat >>confdefs.h <<\_ACEOF
27518 #define HAVE_DOPRNT 1
27556 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27557 gethostbyaddr gethostbyname gethostname getmntent \
27558 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27559 realpath rmdir select socket strcasecmp strchr strdup \
27560 strerror strrchr strtol strtoul sigprocmask
27562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27566 echo $ECHO_N "(cached) $ECHO_C" >&6
27568 cat >conftest.$ac_ext <<_ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h. */
27574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27576 #define $ac_func innocuous_$ac_func
27578 /* System header to define __stub macros and hopefully few prototypes,
27579 which can conflict with char $ac_func (); below.
27580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27581 <limits.h> exists even on freestanding compilers. */
27584 # include <limits.h>
27586 # include <assert.h>
27591 /* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27598 /* The GNU C library defines this for functions which it implements
27599 to always fail with ENOSYS. Some functions are actually named
27600 something starting with __ and the normal name is an alias. */
27601 #if defined __stub_$ac_func || defined __stub___$ac_func
27608 return $ac_func ();
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_link") 2>conftest.er1
27622 grep -v '^ *+' conftest.er1 >conftest.err
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } && {
27627 test -z "$ac_c_werror_flag" ||
27628 test ! -s conftest.err
27629 } && test -s conftest$ac_exeext &&
27630 $as_test_x conftest$ac_exeext; then
27631 eval "$as_ac_var=yes"
27633 echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27636 eval "$as_ac_var=no"
27639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27640 conftest$ac_exeext conftest.$ac_ext
27642 ac_res=`eval echo '${'$as_ac_var'}'`
27643 { echo "$as_me:$LINENO: result: $ac_res" >&5
27644 echo "${ECHO_T}$ac_res" >&6; }
27645 if test `eval echo '${'$as_ac_var'}'` = yes; then
27646 cat >>confdefs.h <<_ACEOF
27647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27655 { echo "$as_me:$LINENO: checking for short" >&5
27656 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27657 if test "${ac_cv_type_short+set}" = set; then
27658 echo $ECHO_N "(cached) $ECHO_C" >&6
27660 cat >conftest.$ac_ext <<_ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h. */
27666 $ac_includes_default
27667 typedef short ac__type_new_;
27671 if ((ac__type_new_ *) 0)
27673 if (sizeof (ac__type_new_))
27679 rm -f conftest.$ac_objext
27680 if { (ac_try="$ac_compile"
27681 case "(($ac_try" in
27682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683 *) ac_try_echo=$ac_try;;
27685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27686 (eval "$ac_compile") 2>conftest.er1
27688 grep -v '^ *+' conftest.er1 >conftest.err
27690 cat conftest.err >&5
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } && {
27693 test -z "$ac_c_werror_flag" ||
27694 test ! -s conftest.err
27695 } && test -s conftest.$ac_objext; then
27696 ac_cv_type_short=yes
27698 echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27701 ac_cv_type_short=no
27704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27706 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27707 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27709 # The cast to long int works around a bug in the HP C Compiler
27710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27712 # This bug is HP SR number 8606223364.
27713 { echo "$as_me:$LINENO: checking size of short" >&5
27714 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27715 if test "${ac_cv_sizeof_short+set}" = set; then
27716 echo $ECHO_N "(cached) $ECHO_C" >&6
27718 if test "$cross_compiling" = yes; then
27719 # Depending upon the size, compute the lo and hi bounds.
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27726 $ac_includes_default
27727 typedef short ac__type_sizeof_;
27731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27738 rm -f conftest.$ac_objext
27739 if { (ac_try="$ac_compile"
27740 case "(($ac_try" in
27741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742 *) ac_try_echo=$ac_try;;
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745 (eval "$ac_compile") 2>conftest.er1
27747 grep -v '^ *+' conftest.er1 >conftest.err
27749 cat conftest.err >&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); } && {
27752 test -z "$ac_c_werror_flag" ||
27753 test ! -s conftest.err
27754 } && test -s conftest.$ac_objext; then
27757 cat >conftest.$ac_ext <<_ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h. */
27763 $ac_includes_default
27764 typedef short ac__type_sizeof_;
27768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27775 rm -f conftest.$ac_objext
27776 if { (ac_try="$ac_compile"
27777 case "(($ac_try" in
27778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779 *) ac_try_echo=$ac_try;;
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782 (eval "$ac_compile") 2>conftest.er1
27784 grep -v '^ *+' conftest.er1 >conftest.err
27786 cat conftest.err >&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } && {
27789 test -z "$ac_c_werror_flag" ||
27790 test ! -s conftest.err
27791 } && test -s conftest.$ac_objext; then
27792 ac_hi=$ac_mid; break
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27797 ac_lo=`expr $ac_mid + 1`
27798 if test $ac_lo -le $ac_mid; then
27802 ac_mid=`expr 2 '*' $ac_mid + 1`
27805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808 echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27811 cat >conftest.$ac_ext <<_ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h. */
27817 $ac_includes_default
27818 typedef short ac__type_sizeof_;
27822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27829 rm -f conftest.$ac_objext
27830 if { (ac_try="$ac_compile"
27831 case "(($ac_try" in
27832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833 *) ac_try_echo=$ac_try;;
27835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836 (eval "$ac_compile") 2>conftest.er1
27838 grep -v '^ *+' conftest.er1 >conftest.err
27840 cat conftest.err >&5
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); } && {
27843 test -z "$ac_c_werror_flag" ||
27844 test ! -s conftest.err
27845 } && test -s conftest.$ac_objext; then
27848 cat >conftest.$ac_ext <<_ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27854 $ac_includes_default
27855 typedef short ac__type_sizeof_;
27859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27866 rm -f conftest.$ac_objext
27867 if { (ac_try="$ac_compile"
27868 case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_compile") 2>conftest.er1
27875 grep -v '^ *+' conftest.er1 >conftest.err
27877 cat conftest.err >&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } && {
27880 test -z "$ac_c_werror_flag" ||
27881 test ! -s conftest.err
27882 } && test -s conftest.$ac_objext; then
27883 ac_lo=$ac_mid; break
27885 echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.$ac_ext >&5
27888 ac_hi=`expr '(' $ac_mid ')' - 1`
27889 if test $ac_mid -le $ac_hi; then
27893 ac_mid=`expr 2 '*' $ac_mid`
27896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27909 # Binary search between lo and hi bounds.
27910 while test "x$ac_lo" != "x$ac_hi"; do
27911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27912 cat >conftest.$ac_ext <<_ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h. */
27918 $ac_includes_default
27919 typedef short ac__type_sizeof_;
27923 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27930 rm -f conftest.$ac_objext
27931 if { (ac_try="$ac_compile"
27932 case "(($ac_try" in
27933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934 *) ac_try_echo=$ac_try;;
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937 (eval "$ac_compile") 2>conftest.er1
27939 grep -v '^ *+' conftest.er1 >conftest.err
27941 cat conftest.err >&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } && {
27944 test -z "$ac_c_werror_flag" ||
27945 test ! -s conftest.err
27946 } && test -s conftest.$ac_objext; then
27949 echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27952 ac_lo=`expr '(' $ac_mid ')' + 1`
27955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27958 ?*) ac_cv_sizeof_short=$ac_lo;;
27959 '') if test "$ac_cv_type_short" = yes; then
27960 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27961 See \`config.log' for more details." >&5
27962 echo "$as_me: error: cannot compute sizeof (short)
27963 See \`config.log' for more details." >&2;}
27964 { (exit 77); exit 77; }; }
27966 ac_cv_sizeof_short=0
27970 cat >conftest.$ac_ext <<_ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h. */
27976 $ac_includes_default
27977 typedef short ac__type_sizeof_;
27978 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27979 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27981 #include <stdlib.h>
27986 FILE *f = fopen ("conftest.val", "w");
27989 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27991 long int i = longval ();
27992 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27994 fprintf (f, "%ld\n", i);
27998 unsigned long int i = ulongval ();
27999 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28001 fprintf (f, "%lu\n", i);
28003 return ferror (f) || fclose (f) != 0;
28009 rm -f conftest$ac_exeext
28010 if { (ac_try="$ac_link"
28011 case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_link") 2>&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28020 { (case "(($ac_try" in
28021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28022 *) ac_try_echo=$ac_try;;
28024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28025 (eval "$ac_try") 2>&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); }; }; then
28029 ac_cv_sizeof_short=`cat conftest.val`
28031 echo "$as_me: program exited with status $ac_status" >&5
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28035 ( exit $ac_status )
28036 if test "$ac_cv_type_short" = yes; then
28037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28038 See \`config.log' for more details." >&5
28039 echo "$as_me: error: cannot compute sizeof (short)
28040 See \`config.log' for more details." >&2;}
28041 { (exit 77); exit 77; }; }
28043 ac_cv_sizeof_short=0
28046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28050 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28051 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28055 cat >>confdefs.h <<_ACEOF
28056 #define SIZEOF_SHORT $ac_cv_sizeof_short
28060 { echo "$as_me:$LINENO: checking for int" >&5
28061 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28062 if test "${ac_cv_type_int+set}" = set; then
28063 echo $ECHO_N "(cached) $ECHO_C" >&6
28065 cat >conftest.$ac_ext <<_ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h. */
28071 $ac_includes_default
28072 typedef int ac__type_new_;
28076 if ((ac__type_new_ *) 0)
28078 if (sizeof (ac__type_new_))
28084 rm -f conftest.$ac_objext
28085 if { (ac_try="$ac_compile"
28086 case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_compile") 2>conftest.er1
28093 grep -v '^ *+' conftest.er1 >conftest.err
28095 cat conftest.err >&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); } && {
28098 test -z "$ac_c_werror_flag" ||
28099 test ! -s conftest.err
28100 } && test -s conftest.$ac_objext; then
28103 echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28111 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28112 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28114 # The cast to long int works around a bug in the HP C Compiler
28115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28117 # This bug is HP SR number 8606223364.
28118 { echo "$as_me:$LINENO: checking size of int" >&5
28119 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28120 if test "${ac_cv_sizeof_int+set}" = set; then
28121 echo $ECHO_N "(cached) $ECHO_C" >&6
28123 if test "$cross_compiling" = yes; then
28124 # Depending upon the size, compute the lo and hi bounds.
28125 cat >conftest.$ac_ext <<_ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h. */
28131 $ac_includes_default
28132 typedef int ac__type_sizeof_;
28136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28143 rm -f conftest.$ac_objext
28144 if { (ac_try="$ac_compile"
28145 case "(($ac_try" in
28146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28147 *) ac_try_echo=$ac_try;;
28149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28150 (eval "$ac_compile") 2>conftest.er1
28152 grep -v '^ *+' conftest.er1 >conftest.err
28154 cat conftest.err >&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } && {
28157 test -z "$ac_c_werror_flag" ||
28158 test ! -s conftest.err
28159 } && test -s conftest.$ac_objext; then
28162 cat >conftest.$ac_ext <<_ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h. */
28168 $ac_includes_default
28169 typedef int ac__type_sizeof_;
28173 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28180 rm -f conftest.$ac_objext
28181 if { (ac_try="$ac_compile"
28182 case "(($ac_try" in
28183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184 *) ac_try_echo=$ac_try;;
28186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187 (eval "$ac_compile") 2>conftest.er1
28189 grep -v '^ *+' conftest.er1 >conftest.err
28191 cat conftest.err >&5
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); } && {
28194 test -z "$ac_c_werror_flag" ||
28195 test ! -s conftest.err
28196 } && test -s conftest.$ac_objext; then
28197 ac_hi=$ac_mid; break
28199 echo "$as_me: failed program was:" >&5
28200 sed 's/^/| /' conftest.$ac_ext >&5
28202 ac_lo=`expr $ac_mid + 1`
28203 if test $ac_lo -le $ac_mid; then
28207 ac_mid=`expr 2 '*' $ac_mid + 1`
28210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28213 echo "$as_me: failed program was:" >&5
28214 sed 's/^/| /' conftest.$ac_ext >&5
28216 cat >conftest.$ac_ext <<_ACEOF
28219 cat confdefs.h >>conftest.$ac_ext
28220 cat >>conftest.$ac_ext <<_ACEOF
28221 /* end confdefs.h. */
28222 $ac_includes_default
28223 typedef int ac__type_sizeof_;
28227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28234 rm -f conftest.$ac_objext
28235 if { (ac_try="$ac_compile"
28236 case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241 (eval "$ac_compile") 2>conftest.er1
28243 grep -v '^ *+' conftest.er1 >conftest.err
28245 cat conftest.err >&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); } && {
28248 test -z "$ac_c_werror_flag" ||
28249 test ! -s conftest.err
28250 } && test -s conftest.$ac_objext; then
28253 cat >conftest.$ac_ext <<_ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28259 $ac_includes_default
28260 typedef int ac__type_sizeof_;
28264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28271 rm -f conftest.$ac_objext
28272 if { (ac_try="$ac_compile"
28273 case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_compile") 2>conftest.er1
28280 grep -v '^ *+' conftest.er1 >conftest.err
28282 cat conftest.err >&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); } && {
28285 test -z "$ac_c_werror_flag" ||
28286 test ! -s conftest.err
28287 } && test -s conftest.$ac_objext; then
28288 ac_lo=$ac_mid; break
28290 echo "$as_me: failed program was:" >&5
28291 sed 's/^/| /' conftest.$ac_ext >&5
28293 ac_hi=`expr '(' $ac_mid ')' - 1`
28294 if test $ac_mid -le $ac_hi; then
28298 ac_mid=`expr 2 '*' $ac_mid`
28301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28304 echo "$as_me: failed program was:" >&5
28305 sed 's/^/| /' conftest.$ac_ext >&5
28310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28314 # Binary search between lo and hi bounds.
28315 while test "x$ac_lo" != "x$ac_hi"; do
28316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28317 cat >conftest.$ac_ext <<_ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h. */
28323 $ac_includes_default
28324 typedef int ac__type_sizeof_;
28328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28335 rm -f conftest.$ac_objext
28336 if { (ac_try="$ac_compile"
28337 case "(($ac_try" in
28338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339 *) ac_try_echo=$ac_try;;
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342 (eval "$ac_compile") 2>conftest.er1
28344 grep -v '^ *+' conftest.er1 >conftest.err
28346 cat conftest.err >&5
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); } && {
28349 test -z "$ac_c_werror_flag" ||
28350 test ! -s conftest.err
28351 } && test -s conftest.$ac_objext; then
28354 echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28357 ac_lo=`expr '(' $ac_mid ')' + 1`
28360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28363 ?*) ac_cv_sizeof_int=$ac_lo;;
28364 '') if test "$ac_cv_type_int" = yes; then
28365 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28366 See \`config.log' for more details." >&5
28367 echo "$as_me: error: cannot compute sizeof (int)
28368 See \`config.log' for more details." >&2;}
28369 { (exit 77); exit 77; }; }
28375 cat >conftest.$ac_ext <<_ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h. */
28381 $ac_includes_default
28382 typedef int ac__type_sizeof_;
28383 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28384 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28386 #include <stdlib.h>
28391 FILE *f = fopen ("conftest.val", "w");
28394 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28396 long int i = longval ();
28397 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28399 fprintf (f, "%ld\n", i);
28403 unsigned long int i = ulongval ();
28404 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28406 fprintf (f, "%lu\n", i);
28408 return ferror (f) || fclose (f) != 0;
28414 rm -f conftest$ac_exeext
28415 if { (ac_try="$ac_link"
28416 case "(($ac_try" in
28417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418 *) ac_try_echo=$ac_try;;
28420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421 (eval "$ac_link") 2>&5
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28425 { (case "(($ac_try" in
28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427 *) ac_try_echo=$ac_try;;
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430 (eval "$ac_try") 2>&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_cv_sizeof_int=`cat conftest.val`
28436 echo "$as_me: program exited with status $ac_status" >&5
28437 echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28440 ( exit $ac_status )
28441 if test "$ac_cv_type_int" = yes; then
28442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28443 See \`config.log' for more details." >&5
28444 echo "$as_me: error: cannot compute sizeof (int)
28445 See \`config.log' for more details." >&2;}
28446 { (exit 77); exit 77; }; }
28451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28456 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28460 cat >>confdefs.h <<_ACEOF
28461 #define SIZEOF_INT $ac_cv_sizeof_int
28465 { echo "$as_me:$LINENO: checking for long" >&5
28466 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28467 if test "${ac_cv_type_long+set}" = set; then
28468 echo $ECHO_N "(cached) $ECHO_C" >&6
28470 cat >conftest.$ac_ext <<_ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h. */
28476 $ac_includes_default
28477 typedef long ac__type_new_;
28481 if ((ac__type_new_ *) 0)
28483 if (sizeof (ac__type_new_))
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493 *) ac_try_echo=$ac_try;;
28495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28496 (eval "$ac_compile") 2>conftest.er1
28498 grep -v '^ *+' conftest.er1 >conftest.err
28500 cat conftest.err >&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); } && {
28503 test -z "$ac_c_werror_flag" ||
28504 test ! -s conftest.err
28505 } && test -s conftest.$ac_objext; then
28506 ac_cv_type_long=yes
28508 echo "$as_me: failed program was:" >&5
28509 sed 's/^/| /' conftest.$ac_ext >&5
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28517 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28519 # The cast to long int works around a bug in the HP C Compiler
28520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28522 # This bug is HP SR number 8606223364.
28523 { echo "$as_me:$LINENO: checking size of long" >&5
28524 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28525 if test "${ac_cv_sizeof_long+set}" = set; then
28526 echo $ECHO_N "(cached) $ECHO_C" >&6
28528 if test "$cross_compiling" = yes; then
28529 # Depending upon the size, compute the lo and hi bounds.
28530 cat >conftest.$ac_ext <<_ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28536 $ac_includes_default
28537 typedef long ac__type_sizeof_;
28541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28548 rm -f conftest.$ac_objext
28549 if { (ac_try="$ac_compile"
28550 case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555 (eval "$ac_compile") 2>conftest.er1
28557 grep -v '^ *+' conftest.er1 >conftest.err
28559 cat conftest.err >&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } && {
28562 test -z "$ac_c_werror_flag" ||
28563 test ! -s conftest.err
28564 } && test -s conftest.$ac_objext; then
28567 cat >conftest.$ac_ext <<_ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h. */
28573 $ac_includes_default
28574 typedef long ac__type_sizeof_;
28578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28585 rm -f conftest.$ac_objext
28586 if { (ac_try="$ac_compile"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_compile") 2>conftest.er1
28594 grep -v '^ *+' conftest.er1 >conftest.err
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } && {
28599 test -z "$ac_c_werror_flag" ||
28600 test ! -s conftest.err
28601 } && test -s conftest.$ac_objext; then
28602 ac_hi=$ac_mid; break
28604 echo "$as_me: failed program was:" >&5
28605 sed 's/^/| /' conftest.$ac_ext >&5
28607 ac_lo=`expr $ac_mid + 1`
28608 if test $ac_lo -le $ac_mid; then
28612 ac_mid=`expr 2 '*' $ac_mid + 1`
28615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28618 echo "$as_me: failed program was:" >&5
28619 sed 's/^/| /' conftest.$ac_ext >&5
28621 cat >conftest.$ac_ext <<_ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h. */
28627 $ac_includes_default
28628 typedef long ac__type_sizeof_;
28632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28639 rm -f conftest.$ac_objext
28640 if { (ac_try="$ac_compile"
28641 case "(($ac_try" in
28642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28643 *) ac_try_echo=$ac_try;;
28645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28646 (eval "$ac_compile") 2>conftest.er1
28648 grep -v '^ *+' conftest.er1 >conftest.err
28650 cat conftest.err >&5
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); } && {
28653 test -z "$ac_c_werror_flag" ||
28654 test ! -s conftest.err
28655 } && test -s conftest.$ac_objext; then
28658 cat >conftest.$ac_ext <<_ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h. */
28664 $ac_includes_default
28665 typedef long ac__type_sizeof_;
28669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28676 rm -f conftest.$ac_objext
28677 if { (ac_try="$ac_compile"
28678 case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_compile") 2>conftest.er1
28685 grep -v '^ *+' conftest.er1 >conftest.err
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } && {
28690 test -z "$ac_c_werror_flag" ||
28691 test ! -s conftest.err
28692 } && test -s conftest.$ac_objext; then
28693 ac_lo=$ac_mid; break
28695 echo "$as_me: failed program was:" >&5
28696 sed 's/^/| /' conftest.$ac_ext >&5
28698 ac_hi=`expr '(' $ac_mid ')' - 1`
28699 if test $ac_mid -le $ac_hi; then
28703 ac_mid=`expr 2 '*' $ac_mid`
28706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28709 echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28719 # Binary search between lo and hi bounds.
28720 while test "x$ac_lo" != "x$ac_hi"; do
28721 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28722 cat >conftest.$ac_ext <<_ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h. */
28728 $ac_includes_default
28729 typedef long ac__type_sizeof_;
28733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28740 rm -f conftest.$ac_objext
28741 if { (ac_try="$ac_compile"
28742 case "(($ac_try" in
28743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28744 *) ac_try_echo=$ac_try;;
28746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28747 (eval "$ac_compile") 2>conftest.er1
28749 grep -v '^ *+' conftest.er1 >conftest.err
28751 cat conftest.err >&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); } && {
28754 test -z "$ac_c_werror_flag" ||
28755 test ! -s conftest.err
28756 } && test -s conftest.$ac_objext; then
28759 echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28762 ac_lo=`expr '(' $ac_mid ')' + 1`
28765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28768 ?*) ac_cv_sizeof_long=$ac_lo;;
28769 '') if test "$ac_cv_type_long" = yes; then
28770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28771 See \`config.log' for more details." >&5
28772 echo "$as_me: error: cannot compute sizeof (long)
28773 See \`config.log' for more details." >&2;}
28774 { (exit 77); exit 77; }; }
28776 ac_cv_sizeof_long=0
28780 cat >conftest.$ac_ext <<_ACEOF
28783 cat confdefs.h >>conftest.$ac_ext
28784 cat >>conftest.$ac_ext <<_ACEOF
28785 /* end confdefs.h. */
28786 $ac_includes_default
28787 typedef long ac__type_sizeof_;
28788 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28789 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28791 #include <stdlib.h>
28796 FILE *f = fopen ("conftest.val", "w");
28799 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28801 long int i = longval ();
28802 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28804 fprintf (f, "%ld\n", i);
28808 unsigned long int i = ulongval ();
28809 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28811 fprintf (f, "%lu\n", i);
28813 return ferror (f) || fclose (f) != 0;
28819 rm -f conftest$ac_exeext
28820 if { (ac_try="$ac_link"
28821 case "(($ac_try" in
28822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823 *) ac_try_echo=$ac_try;;
28825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826 (eval "$ac_link") 2>&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28830 { (case "(($ac_try" in
28831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832 *) ac_try_echo=$ac_try;;
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835 (eval "$ac_try") 2>&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; }; then
28839 ac_cv_sizeof_long=`cat conftest.val`
28841 echo "$as_me: program exited with status $ac_status" >&5
28842 echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28845 ( exit $ac_status )
28846 if test "$ac_cv_type_long" = yes; then
28847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28848 See \`config.log' for more details." >&5
28849 echo "$as_me: error: cannot compute sizeof (long)
28850 See \`config.log' for more details." >&2;}
28851 { (exit 77); exit 77; }; }
28853 ac_cv_sizeof_long=0
28856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28860 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28861 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28865 cat >>confdefs.h <<_ACEOF
28866 #define SIZEOF_LONG $ac_cv_sizeof_long
28870 { echo "$as_me:$LINENO: checking for size_t" >&5
28871 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28872 if test "${ac_cv_type_size_t+set}" = set; then
28873 echo $ECHO_N "(cached) $ECHO_C" >&6
28875 cat >conftest.$ac_ext <<_ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h. */
28881 $ac_includes_default
28882 typedef size_t ac__type_new_;
28886 if ((ac__type_new_ *) 0)
28888 if (sizeof (ac__type_new_))
28894 rm -f conftest.$ac_objext
28895 if { (ac_try="$ac_compile"
28896 case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_compile") 2>conftest.er1
28903 grep -v '^ *+' conftest.er1 >conftest.err
28905 cat conftest.err >&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); } && {
28908 test -z "$ac_c_werror_flag" ||
28909 test ! -s conftest.err
28910 } && test -s conftest.$ac_objext; then
28911 ac_cv_type_size_t=yes
28913 echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28916 ac_cv_type_size_t=no
28919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28921 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28922 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28924 # The cast to long int works around a bug in the HP C Compiler
28925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28927 # This bug is HP SR number 8606223364.
28928 { echo "$as_me:$LINENO: checking size of size_t" >&5
28929 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28930 if test "${ac_cv_sizeof_size_t+set}" = set; then
28931 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 if test "$cross_compiling" = yes; then
28934 # Depending upon the size, compute the lo and hi bounds.
28935 cat >conftest.$ac_ext <<_ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h. */
28941 $ac_includes_default
28942 typedef size_t ac__type_sizeof_;
28946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28953 rm -f conftest.$ac_objext
28954 if { (ac_try="$ac_compile"
28955 case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_compile") 2>conftest.er1
28962 grep -v '^ *+' conftest.er1 >conftest.err
28964 cat conftest.err >&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } && {
28967 test -z "$ac_c_werror_flag" ||
28968 test ! -s conftest.err
28969 } && test -s conftest.$ac_objext; then
28972 cat >conftest.$ac_ext <<_ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28978 $ac_includes_default
28979 typedef size_t ac__type_sizeof_;
28983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28990 rm -f conftest.$ac_objext
28991 if { (ac_try="$ac_compile"
28992 case "(($ac_try" in
28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994 *) ac_try_echo=$ac_try;;
28996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997 (eval "$ac_compile") 2>conftest.er1
28999 grep -v '^ *+' conftest.er1 >conftest.err
29001 cat conftest.err >&5
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); } && {
29004 test -z "$ac_c_werror_flag" ||
29005 test ! -s conftest.err
29006 } && test -s conftest.$ac_objext; then
29007 ac_hi=$ac_mid; break
29009 echo "$as_me: failed program was:" >&5
29010 sed 's/^/| /' conftest.$ac_ext >&5
29012 ac_lo=`expr $ac_mid + 1`
29013 if test $ac_lo -le $ac_mid; then
29017 ac_mid=`expr 2 '*' $ac_mid + 1`
29020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29023 echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 cat >conftest.$ac_ext <<_ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h. */
29032 $ac_includes_default
29033 typedef size_t ac__type_sizeof_;
29037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29044 rm -f conftest.$ac_objext
29045 if { (ac_try="$ac_compile"
29046 case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_compile") 2>conftest.er1
29053 grep -v '^ *+' conftest.er1 >conftest.err
29055 cat conftest.err >&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } && {
29058 test -z "$ac_c_werror_flag" ||
29059 test ! -s conftest.err
29060 } && test -s conftest.$ac_objext; then
29063 cat >conftest.$ac_ext <<_ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h. */
29069 $ac_includes_default
29070 typedef size_t ac__type_sizeof_;
29074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29081 rm -f conftest.$ac_objext
29082 if { (ac_try="$ac_compile"
29083 case "(($ac_try" in
29084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085 *) ac_try_echo=$ac_try;;
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_compile") 2>conftest.er1
29090 grep -v '^ *+' conftest.er1 >conftest.err
29092 cat conftest.err >&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } && {
29095 test -z "$ac_c_werror_flag" ||
29096 test ! -s conftest.err
29097 } && test -s conftest.$ac_objext; then
29098 ac_lo=$ac_mid; break
29100 echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29103 ac_hi=`expr '(' $ac_mid ')' - 1`
29104 if test $ac_mid -le $ac_hi; then
29108 ac_mid=`expr 2 '*' $ac_mid`
29111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29114 echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29124 # Binary search between lo and hi bounds.
29125 while test "x$ac_lo" != "x$ac_hi"; do
29126 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29127 cat >conftest.$ac_ext <<_ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29133 $ac_includes_default
29134 typedef size_t ac__type_sizeof_;
29138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29145 rm -f conftest.$ac_objext
29146 if { (ac_try="$ac_compile"
29147 case "(($ac_try" in
29148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29149 *) ac_try_echo=$ac_try;;
29151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29152 (eval "$ac_compile") 2>conftest.er1
29154 grep -v '^ *+' conftest.er1 >conftest.err
29156 cat conftest.err >&5
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); } && {
29159 test -z "$ac_c_werror_flag" ||
29160 test ! -s conftest.err
29161 } && test -s conftest.$ac_objext; then
29164 echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29167 ac_lo=`expr '(' $ac_mid ')' + 1`
29170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29174 '') if test "$ac_cv_type_size_t" = yes; then
29175 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29176 See \`config.log' for more details." >&5
29177 echo "$as_me: error: cannot compute sizeof (size_t)
29178 See \`config.log' for more details." >&2;}
29179 { (exit 77); exit 77; }; }
29181 ac_cv_sizeof_size_t=0
29185 cat >conftest.$ac_ext <<_ACEOF
29188 cat confdefs.h >>conftest.$ac_ext
29189 cat >>conftest.$ac_ext <<_ACEOF
29190 /* end confdefs.h. */
29191 $ac_includes_default
29192 typedef size_t ac__type_sizeof_;
29193 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29194 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29196 #include <stdlib.h>
29201 FILE *f = fopen ("conftest.val", "w");
29204 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29206 long int i = longval ();
29207 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29209 fprintf (f, "%ld\n", i);
29213 unsigned long int i = ulongval ();
29214 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29216 fprintf (f, "%lu\n", i);
29218 return ferror (f) || fclose (f) != 0;
29224 rm -f conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_link") 2>&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29235 { (case "(($ac_try" in
29236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29237 *) ac_try_echo=$ac_try;;
29239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29240 (eval "$ac_try") 2>&5
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); }; }; then
29244 ac_cv_sizeof_size_t=`cat conftest.val`
29246 echo "$as_me: program exited with status $ac_status" >&5
29247 echo "$as_me: failed program was:" >&5
29248 sed 's/^/| /' conftest.$ac_ext >&5
29250 ( exit $ac_status )
29251 if test "$ac_cv_type_size_t" = yes; then
29252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29253 See \`config.log' for more details." >&5
29254 echo "$as_me: error: cannot compute sizeof (size_t)
29255 See \`config.log' for more details." >&2;}
29256 { (exit 77); exit 77; }; }
29258 ac_cv_sizeof_size_t=0
29261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29265 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29266 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29270 cat >>confdefs.h <<_ACEOF
29271 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29275 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29276 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29277 if test "${ac_cv_type_socklen_t+set}" = set; then
29278 echo $ECHO_N "(cached) $ECHO_C" >&6
29280 cat >conftest.$ac_ext <<_ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h. */
29286 $ac_includes_default
29287 typedef socklen_t ac__type_new_;
29291 if ((ac__type_new_ *) 0)
29293 if (sizeof (ac__type_new_))
29299 rm -f conftest.$ac_objext
29300 if { (ac_try="$ac_compile"
29301 case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_compile") 2>conftest.er1
29308 grep -v '^ *+' conftest.er1 >conftest.err
29310 cat conftest.err >&5
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } && {
29313 test -z "$ac_c_werror_flag" ||
29314 test ! -s conftest.err
29315 } && test -s conftest.$ac_objext; then
29316 ac_cv_type_socklen_t=yes
29318 echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29321 ac_cv_type_socklen_t=no
29324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29326 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29327 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29329 # The cast to long int works around a bug in the HP C Compiler
29330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29332 # This bug is HP SR number 8606223364.
29333 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29334 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29335 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29336 echo $ECHO_N "(cached) $ECHO_C" >&6
29338 if test "$cross_compiling" = yes; then
29339 # Depending upon the size, compute the lo and hi bounds.
29340 cat >conftest.$ac_ext <<_ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h. */
29346 $ac_includes_default
29347 typedef socklen_t ac__type_sizeof_;
29351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29358 rm -f conftest.$ac_objext
29359 if { (ac_try="$ac_compile"
29360 case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_compile") 2>conftest.er1
29367 grep -v '^ *+' conftest.er1 >conftest.err
29369 cat conftest.err >&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } && {
29372 test -z "$ac_c_werror_flag" ||
29373 test ! -s conftest.err
29374 } && test -s conftest.$ac_objext; then
29377 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29383 $ac_includes_default
29384 typedef socklen_t ac__type_sizeof_;
29388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29395 rm -f conftest.$ac_objext
29396 if { (ac_try="$ac_compile"
29397 case "(($ac_try" in
29398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399 *) ac_try_echo=$ac_try;;
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402 (eval "$ac_compile") 2>conftest.er1
29404 grep -v '^ *+' conftest.er1 >conftest.err
29406 cat conftest.err >&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } && {
29409 test -z "$ac_c_werror_flag" ||
29410 test ! -s conftest.err
29411 } && test -s conftest.$ac_objext; then
29412 ac_hi=$ac_mid; break
29414 echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29417 ac_lo=`expr $ac_mid + 1`
29418 if test $ac_lo -le $ac_mid; then
29422 ac_mid=`expr 2 '*' $ac_mid + 1`
29425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29428 echo "$as_me: failed program was:" >&5
29429 sed 's/^/| /' conftest.$ac_ext >&5
29431 cat >conftest.$ac_ext <<_ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h. */
29437 $ac_includes_default
29438 typedef socklen_t ac__type_sizeof_;
29442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29449 rm -f conftest.$ac_objext
29450 if { (ac_try="$ac_compile"
29451 case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_compile") 2>conftest.er1
29458 grep -v '^ *+' conftest.er1 >conftest.err
29460 cat conftest.err >&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); } && {
29463 test -z "$ac_c_werror_flag" ||
29464 test ! -s conftest.err
29465 } && test -s conftest.$ac_objext; then
29468 cat >conftest.$ac_ext <<_ACEOF
29471 cat confdefs.h >>conftest.$ac_ext
29472 cat >>conftest.$ac_ext <<_ACEOF
29473 /* end confdefs.h. */
29474 $ac_includes_default
29475 typedef socklen_t ac__type_sizeof_;
29479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29486 rm -f conftest.$ac_objext
29487 if { (ac_try="$ac_compile"
29488 case "(($ac_try" in
29489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 *) ac_try_echo=$ac_try;;
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_compile") 2>conftest.er1
29495 grep -v '^ *+' conftest.er1 >conftest.err
29497 cat conftest.err >&5
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); } && {
29500 test -z "$ac_c_werror_flag" ||
29501 test ! -s conftest.err
29502 } && test -s conftest.$ac_objext; then
29503 ac_lo=$ac_mid; break
29505 echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29508 ac_hi=`expr '(' $ac_mid ')' - 1`
29509 if test $ac_mid -le $ac_hi; then
29513 ac_mid=`expr 2 '*' $ac_mid`
29516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29519 echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29529 # Binary search between lo and hi bounds.
29530 while test "x$ac_lo" != "x$ac_hi"; do
29531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29532 cat >conftest.$ac_ext <<_ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h. */
29538 $ac_includes_default
29539 typedef socklen_t ac__type_sizeof_;
29543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29550 rm -f conftest.$ac_objext
29551 if { (ac_try="$ac_compile"
29552 case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_compile") 2>conftest.er1
29559 grep -v '^ *+' conftest.er1 >conftest.err
29561 cat conftest.err >&5
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); } && {
29564 test -z "$ac_c_werror_flag" ||
29565 test ! -s conftest.err
29566 } && test -s conftest.$ac_objext; then
29569 echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29572 ac_lo=`expr '(' $ac_mid ')' + 1`
29575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29578 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29579 '') if test "$ac_cv_type_socklen_t" = yes; then
29580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29581 See \`config.log' for more details." >&5
29582 echo "$as_me: error: cannot compute sizeof (socklen_t)
29583 See \`config.log' for more details." >&2;}
29584 { (exit 77); exit 77; }; }
29586 ac_cv_sizeof_socklen_t=0
29590 cat >conftest.$ac_ext <<_ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h. */
29596 $ac_includes_default
29597 typedef socklen_t ac__type_sizeof_;
29598 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29599 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29601 #include <stdlib.h>
29606 FILE *f = fopen ("conftest.val", "w");
29609 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29611 long int i = longval ();
29612 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29614 fprintf (f, "%ld\n", i);
29618 unsigned long int i = ulongval ();
29619 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29621 fprintf (f, "%lu\n", i);
29623 return ferror (f) || fclose (f) != 0;
29629 rm -f conftest$ac_exeext
29630 if { (ac_try="$ac_link"
29631 case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_link") 2>&5
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29640 { (case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_try") 2>&5
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); }; }; then
29649 ac_cv_sizeof_socklen_t=`cat conftest.val`
29651 echo "$as_me: program exited with status $ac_status" >&5
29652 echo "$as_me: failed program was:" >&5
29653 sed 's/^/| /' conftest.$ac_ext >&5
29655 ( exit $ac_status )
29656 if test "$ac_cv_type_socklen_t" = yes; then
29657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29658 See \`config.log' for more details." >&5
29659 echo "$as_me: error: cannot compute sizeof (socklen_t)
29660 See \`config.log' for more details." >&2;}
29661 { (exit 77); exit 77; }; }
29663 ac_cv_sizeof_socklen_t=0
29666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29670 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29671 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29675 cat >>confdefs.h <<_ACEOF
29676 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29683 cat >>confdefs.h <<_ACEOF
29684 #define NFS_STATEDIR "$statedir"
29688 if test "x$cross_compiling" = "xno"; then
29689 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29690 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29691 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29692 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29694 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29695 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29696 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29697 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29712 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29717 my_am_cflags="-Wall $ARCHFLAGS -pipe"
29719 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29721 AM_CFLAGS="$my_am_cflags"
29724 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29725 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29728 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
29730 cat >confcache <<\_ACEOF
29731 # This file is a shell script that caches the results of configure
29732 # tests run on this system so they can be shared between configure
29733 # scripts and configure runs, see configure's option --config-cache.
29734 # It is not useful on other systems. If it contains results you don't
29735 # want to keep, you may remove or edit it.
29737 # config.status only pays attention to the cache file if you give it
29738 # the --recheck option to rerun configure.
29740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29742 # following values.
29746 # The following way of writing the cache mishandles newlines in values,
29747 # but we know of no workaround that is simple, portable, and efficient.
29748 # So, we kill variables containing newlines.
29749 # Ultrix sh set writes to stderr and can't be redirected directly,
29750 # and sets the high bit in the cache file unless we assign to the vars.
29752 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29753 eval ac_val=\$$ac_var
29757 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29761 _ | IFS | as_nl) ;; #(
29762 *) $as_unset $ac_var ;;
29768 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29769 *${as_nl}ac_space=\ *)
29770 # `set' does not quote correctly, so add quotes (double-quote
29771 # substitution turns \\\\ into \\, and sed turns \\ into \).
29774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29777 # `set' quotes correctly as required by POSIX, so do not add quotes.
29778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29789 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29791 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29792 if test -w "$cache_file"; then
29793 test "x$cache_file" != "x/dev/null" &&
29794 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29795 echo "$as_me: updating cache $cache_file" >&6;}
29796 cat confcache >$cache_file
29798 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29799 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29804 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29805 # Let make expand exec_prefix.
29806 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29808 DEFS=-DHAVE_CONFIG_H
29812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29813 # 1. Remove the extension, and $U if already installed.
29814 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29815 ac_i=`echo "$ac_i" | sed "$ac_script"`
29816 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29817 # will be set to the directory where LIBOBJS objects are built.
29818 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29819 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29821 LIBOBJS=$ac_libobjs
29823 LTLIBOBJS=$ac_ltlibobjs
29826 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29827 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29828 Usually this means the macro was only invoked conditionally." >&5
29829 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29830 Usually this means the macro was only invoked conditionally." >&2;}
29831 { (exit 1); exit 1; }; }
29833 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29834 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29835 Usually this means the macro was only invoked conditionally." >&5
29836 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29837 Usually this means the macro was only invoked conditionally." >&2;}
29838 { (exit 1); exit 1; }; }
29840 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29841 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29842 Usually this means the macro was only invoked conditionally." >&5
29843 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29844 Usually this means the macro was only invoked conditionally." >&2;}
29845 { (exit 1); exit 1; }; }
29847 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
29848 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
29849 Usually this means the macro was only invoked conditionally." >&5
29850 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
29851 Usually this means the macro was only invoked conditionally." >&2;}
29852 { (exit 1); exit 1; }; }
29854 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29855 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29856 Usually this means the macro was only invoked conditionally." >&5
29857 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29858 Usually this means the macro was only invoked conditionally." >&2;}
29859 { (exit 1); exit 1; }; }
29861 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29862 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29863 Usually this means the macro was only invoked conditionally." >&5
29864 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29865 Usually this means the macro was only invoked conditionally." >&2;}
29866 { (exit 1); exit 1; }; }
29868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29869 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29870 Usually this means the macro was only invoked conditionally." >&5
29871 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29872 Usually this means the macro was only invoked conditionally." >&2;}
29873 { (exit 1); exit 1; }; }
29875 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29876 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29877 Usually this means the macro was only invoked conditionally." >&5
29878 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29879 Usually this means the macro was only invoked conditionally." >&2;}
29880 { (exit 1); exit 1; }; }
29882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29883 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29884 Usually this means the macro was only invoked conditionally." >&5
29885 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29886 Usually this means the macro was only invoked conditionally." >&2;}
29887 { (exit 1); exit 1; }; }
29890 : ${CONFIG_STATUS=./config.status}
29891 ac_clean_files_save=$ac_clean_files
29892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29893 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29894 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29895 cat >$CONFIG_STATUS <<_ACEOF
29897 # Generated by $as_me.
29898 # Run this file to recreate the current configuration.
29899 # Compiler output produced by configure, useful for debugging
29900 # configure, is in config.log if it exists.
29903 ac_cs_recheck=false
29905 SHELL=\${CONFIG_SHELL-$SHELL}
29908 cat >>$CONFIG_STATUS <<\_ACEOF
29909 ## --------------------- ##
29910 ## M4sh Initialization. ##
29911 ## --------------------- ##
29913 # Be more Bourne compatible
29914 DUALCASE=1; export DUALCASE # for MKS sh
29915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29918 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29919 # is contrary to our usage. Disable this feature.
29920 alias -g '${1+"$@"}'='"$@"'
29921 setopt NO_GLOB_SUBST
29923 case `(set -o) 2>/dev/null` in
29924 *posix*) set -o posix ;;
29933 # Avoid depending upon Character Ranges.
29934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29937 as_cr_digits='0123456789'
29938 as_cr_alnum=$as_cr_Letters$as_cr_digits
29940 # The user is always right.
29941 if test "${PATH_SEPARATOR+set}" != set; then
29942 echo "#! /bin/sh" >conf$$.sh
29943 echo "exit 0" >>conf$$.sh
29945 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29953 # Support unset when possible.
29954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29962 # We need space, tab and new line, in precisely that order. Quoting is
29963 # there to prevent editors from complaining about space-tab.
29964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29965 # splitting by setting IFS to empty value.)
29970 # Find who we are. Look in the path if we contain no directory separator.
29972 *[\\/]* ) as_myself=$0 ;;
29973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29974 for as_dir in $PATH
29977 test -z "$as_dir" && as_dir=.
29978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29984 # We did not find ourselves, most probably we were run as `sh COMMAND'
29985 # in which case we are not to be found in the path.
29986 if test "x$as_myself" = x; then
29989 if test ! -f "$as_myself"; then
29990 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29991 { (exit 1); exit 1; }
29994 # Work around bugs in pre-3.0 UWIN ksh.
29995 for as_var in ENV MAIL MAILPATH
29996 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30004 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30005 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30006 LC_TELEPHONE LC_TIME
30008 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30009 eval $as_var=C; export $as_var
30011 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30015 # Required to use basename.
30016 if expr a : '\(a\)' >/dev/null 2>&1 &&
30017 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30024 as_basename=basename
30030 # Name of the executable.
30031 as_me=`$as_basename -- "$0" ||
30032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30033 X"$0" : 'X\(//\)$' \| \
30034 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30036 sed '/^.*\/\([^/][^/]*\)\/*$/{
30055 as_lineno_1=$LINENO
30056 as_lineno_2=$LINENO
30057 test "x$as_lineno_1" != "x$as_lineno_2" &&
30058 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30060 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30061 # uniformly replaced by the line number. The first 'sed' inserts a
30062 # line-number line after each line using $LINENO; the second 'sed'
30063 # does the real work. The second script uses 'N' to pair each
30064 # line-number line with the line containing $LINENO, and appends
30065 # trailing '-' during substitution so that $LINENO is not a special
30066 # case at line end.
30067 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30068 # scripts with optimization help from Paolo Bonzini. Blame Lee
30069 # E. McMahon (1931-1989) for sed's syntax. :-)
30081 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30084 ' >$as_me.lineno &&
30085 chmod +x "$as_me.lineno" ||
30086 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30087 { (exit 1); exit 1; }; }
30089 # Don't try to exec as it changes $[0], causing all sort of problems
30090 # (the dirname of $[0] is not the place where we might find the
30091 # original and so on. Autoconf is especially sensitive to this).
30092 . "./$as_me.lineno"
30093 # Exit status is that of the last command.
30098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30104 ECHO_C= ECHO_N= ECHO_T=
30105 case `echo -n x` in
30107 case `echo 'x\c'` in
30108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30115 if expr a : '\(a\)' >/dev/null 2>&1 &&
30116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30122 rm -f conf$$ conf$$.exe conf$$.file
30123 if test -d conf$$.dir; then
30124 rm -f conf$$.dir/conf$$.file
30130 if ln -s conf$$.file conf$$ 2>/dev/null; then
30132 # ... but there are two gotchas:
30133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30135 # In both cases, we have to default to `cp -p'.
30136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30138 elif ln conf$$.file conf$$ 2>/dev/null; then
30143 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30144 rmdir conf$$.dir 2>/dev/null
30146 if mkdir -p . 2>/dev/null; then
30149 test -d ./-p && rmdir ./-p
30153 if test -x / >/dev/null 2>&1; then
30154 as_test_x='test -x'
30156 if ls -dL / >/dev/null 2>&1; then
30163 if test -d "$1"; then
30169 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30170 ???[sx]*):;;*)false;;esac;fi
30174 as_executable_p=$as_test_x
30176 # Sed expression to map a string onto a valid CPP name.
30177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30179 # Sed expression to map a string onto a valid variable name.
30180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30185 # Save the log message, to keep $[0] and so on meaningful, and to
30186 # report actual input values of CONFIG_FILES etc. instead of their
30187 # values after options handling.
30189 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30190 generated by GNU Autoconf 2.61. Invocation command line was
30192 CONFIG_FILES = $CONFIG_FILES
30193 CONFIG_HEADERS = $CONFIG_HEADERS
30194 CONFIG_LINKS = $CONFIG_LINKS
30195 CONFIG_COMMANDS = $CONFIG_COMMANDS
30198 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30203 cat >>$CONFIG_STATUS <<_ACEOF
30204 # Files that config.status was made for.
30205 config_files="$ac_config_files"
30206 config_headers="$ac_config_headers"
30207 config_commands="$ac_config_commands"
30211 cat >>$CONFIG_STATUS <<\_ACEOF
30213 \`$as_me' instantiates files from templates according to the
30214 current configuration.
30216 Usage: $0 [OPTIONS] [FILE]...
30218 -h, --help print this help, then exit
30219 -V, --version print version number and configuration settings, then exit
30220 -q, --quiet do not print progress messages
30221 -d, --debug don't remove temporary files
30222 --recheck update $as_me by reconfiguring in the same conditions
30223 --file=FILE[:TEMPLATE]
30224 instantiate the configuration file FILE
30225 --header=FILE[:TEMPLATE]
30226 instantiate the configuration header FILE
30228 Configuration files:
30231 Configuration headers:
30234 Configuration commands:
30237 Report bugs to <bug-autoconf@gnu.org>."
30240 cat >>$CONFIG_STATUS <<_ACEOF
30242 linux nfs-utils config.status 1.1.0
30243 configured by $0, generated by GNU Autoconf 2.61,
30244 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30246 Copyright (C) 2006 Free Software Foundation, Inc.
30247 This config.status script is free software; the Free Software Foundation
30248 gives unlimited permission to copy, distribute and modify it."
30256 cat >>$CONFIG_STATUS <<\_ACEOF
30257 # If no file are specified by the user, then we need to provide default
30258 # value. By we need to know if files were specified by the user.
30264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30276 # Handling of the options.
30277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30280 echo "$ac_cs_version"; exit ;;
30281 --debug | --debu | --deb | --de | --d | -d )
30283 --file | --fil | --fi | --f )
30285 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30286 ac_need_defaults=false;;
30287 --header | --heade | --head | --hea )
30289 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30290 ac_need_defaults=false;;
30292 # Conflict between --help and --header
30293 { echo "$as_me: error: ambiguous option: $1
30294 Try \`$0 --help' for more information." >&2
30295 { (exit 1); exit 1; }; };;
30296 --help | --hel | -h )
30297 echo "$ac_cs_usage"; exit ;;
30298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30302 # This is an error.
30303 -*) { echo "$as_me: error: unrecognized option: $1
30304 Try \`$0 --help' for more information." >&2
30305 { (exit 1); exit 1; }; } ;;
30307 *) ac_config_targets="$ac_config_targets $1"
30308 ac_need_defaults=false ;;
30314 ac_configure_extra_args=
30316 if $ac_cs_silent; then
30318 ac_configure_extra_args="$ac_configure_extra_args --silent"
30322 cat >>$CONFIG_STATUS <<_ACEOF
30323 if \$ac_cs_recheck; then
30324 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30325 CONFIG_SHELL=$SHELL
30326 export CONFIG_SHELL
30327 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30331 cat >>$CONFIG_STATUS <<\_ACEOF
30335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30336 ## Running $as_me. ##
30342 cat >>$CONFIG_STATUS <<_ACEOF
30346 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30350 cat >>$CONFIG_STATUS <<\_ACEOF
30352 # Handling of arguments.
30353 for ac_config_target in $ac_config_targets
30355 case $ac_config_target in
30356 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30357 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30358 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30359 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30360 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30361 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30362 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30363 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30364 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30365 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30366 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30367 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30368 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30369 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30370 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30371 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30372 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30373 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30374 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30375 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30376 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30377 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30378 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30379 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30380 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30381 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30382 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30383 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30385 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30386 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30387 { (exit 1); exit 1; }; };;
30392 # If the user did not use the arguments to specify the items to instantiate,
30393 # then the envvar interface is used. Set only those that are not.
30394 # We use the long form for the default assignment because of an extremely
30395 # bizarre bug on SunOS 4.1.3.
30396 if $ac_need_defaults; then
30397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30402 # Have a temporary directory for convenience. Make it in the build tree
30403 # simply because there is no reason against having it here, and in addition,
30404 # creating and moving files from /tmp can sometimes cause problems.
30405 # Hook for its removal unless debugging.
30406 # Note that there is a small window in which the directory will not be cleaned:
30407 # after its creation but before its name has been assigned to `$tmp'.
30411 trap 'exit_status=$?
30412 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30414 trap '{ (exit 1); exit 1; }' 1 2 13 15
30416 # Create a (secure) tmp directory for tmp files.
30419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30420 test -n "$tmp" && test -d "$tmp"
30423 tmp=./conf$$-$RANDOM
30424 (umask 077 && mkdir "$tmp")
30427 echo "$me: cannot create a temporary directory in ." >&2
30428 { (exit 1); exit 1; }
30432 # Set up the sed scripts for CONFIG_FILES section.
30435 # No need to generate the scripts if there are no CONFIG_FILES.
30436 # This happens for instance when ./config.status config.h
30437 if test -n "$CONFIG_FILES"; then
30444 for ac_last_try in false false false false false :; do
30445 cat >conf$$subs.sed <<_ACEOF
30446 SHELL!$SHELL$ac_delim
30447 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30448 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30449 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30450 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30451 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30452 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30453 exec_prefix!$exec_prefix$ac_delim
30454 prefix!$prefix$ac_delim
30455 program_transform_name!$program_transform_name$ac_delim
30456 bindir!$bindir$ac_delim
30457 sbindir!$sbindir$ac_delim
30458 libexecdir!$libexecdir$ac_delim
30459 datarootdir!$datarootdir$ac_delim
30460 datadir!$datadir$ac_delim
30461 sysconfdir!$sysconfdir$ac_delim
30462 sharedstatedir!$sharedstatedir$ac_delim
30463 localstatedir!$localstatedir$ac_delim
30464 includedir!$includedir$ac_delim
30465 oldincludedir!$oldincludedir$ac_delim
30466 docdir!$docdir$ac_delim
30467 infodir!$infodir$ac_delim
30468 htmldir!$htmldir$ac_delim
30469 dvidir!$dvidir$ac_delim
30470 pdfdir!$pdfdir$ac_delim
30471 psdir!$psdir$ac_delim
30472 libdir!$libdir$ac_delim
30473 localedir!$localedir$ac_delim
30474 mandir!$mandir$ac_delim
30475 DEFS!$DEFS$ac_delim
30476 ECHO_C!$ECHO_C$ac_delim
30477 ECHO_N!$ECHO_N$ac_delim
30478 ECHO_T!$ECHO_T$ac_delim
30479 LIBS!$LIBS$ac_delim
30480 build_alias!$build_alias$ac_delim
30481 host_alias!$host_alias$ac_delim
30482 target_alias!$target_alias$ac_delim
30483 build!$build$ac_delim
30484 build_cpu!$build_cpu$ac_delim
30485 build_vendor!$build_vendor$ac_delim
30486 build_os!$build_os$ac_delim
30487 host!$host$ac_delim
30488 host_cpu!$host_cpu$ac_delim
30489 host_vendor!$host_vendor$ac_delim
30490 host_os!$host_os$ac_delim
30491 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30492 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30493 INSTALL_DATA!$INSTALL_DATA$ac_delim
30494 am__isrc!$am__isrc$ac_delim
30495 CYGPATH_W!$CYGPATH_W$ac_delim
30496 PACKAGE!$PACKAGE$ac_delim
30497 VERSION!$VERSION$ac_delim
30498 ACLOCAL!$ACLOCAL$ac_delim
30499 AUTOCONF!$AUTOCONF$ac_delim
30500 AUTOMAKE!$AUTOMAKE$ac_delim
30501 AUTOHEADER!$AUTOHEADER$ac_delim
30502 MAKEINFO!$MAKEINFO$ac_delim
30503 install_sh!$install_sh$ac_delim
30504 STRIP!$STRIP$ac_delim
30505 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30506 mkdir_p!$mkdir_p$ac_delim
30508 SET_MAKE!$SET_MAKE$ac_delim
30509 am__leading_dot!$am__leading_dot$ac_delim
30510 AMTAR!$AMTAR$ac_delim
30511 am__tar!$am__tar$ac_delim
30512 am__untar!$am__untar$ac_delim
30513 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30514 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30515 MAINT!$MAINT$ac_delim
30516 RELEASE!$RELEASE$ac_delim
30517 statedir!$statedir$ac_delim
30518 statduser!$statduser$ac_delim
30519 startstatd!$startstatd$ac_delim
30520 enable_nfsv3!$enable_nfsv3$ac_delim
30521 IDMAPD!$IDMAPD$ac_delim
30522 enable_nfsv4!$enable_nfsv4$ac_delim
30523 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30524 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30525 GSSD!$GSSD$ac_delim
30526 SVCGSSD!$SVCGSSD$ac_delim
30527 enable_gss!$enable_gss$ac_delim
30528 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30529 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30530 kprefix!$kprefix$ac_delim
30531 secure_statd!$secure_statd$ac_delim
30532 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30533 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30534 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30535 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30536 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30538 CFLAGS!$CFLAGS$ac_delim
30539 LDFLAGS!$LDFLAGS$ac_delim
30540 CPPFLAGS!$CPPFLAGS$ac_delim
30541 ac_ct_CC!$ac_ct_CC$ac_delim
30542 EXEEXT!$EXEEXT$ac_delim
30545 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30547 elif $ac_last_try; then
30548 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30549 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30550 { (exit 1); exit 1; }; }
30552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30556 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30557 if test -n "$ac_eof"; then
30558 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30559 ac_eof=`expr $ac_eof + 1`
30562 cat >>$CONFIG_STATUS <<_ACEOF
30563 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30567 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30568 s/^/s,@/; s/!/@,|#_!!_#|/
30571 s/'"$ac_delim"'$/,g/; t
30573 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30574 ' >>$CONFIG_STATUS <conf$$subs.sed
30575 rm -f conf$$subs.sed
30576 cat >>$CONFIG_STATUS <<_ACEOF
30582 for ac_last_try in false false false false false :; do
30583 cat >conf$$subs.sed <<_ACEOF
30584 OBJEXT!$OBJEXT$ac_delim
30585 DEPDIR!$DEPDIR$ac_delim
30586 am__include!$am__include$ac_delim
30587 am__quote!$am__quote$ac_delim
30588 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30589 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30590 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30591 CCDEPMODE!$CCDEPMODE$ac_delim
30592 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30593 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30594 LIBWRAP!$LIBWRAP$ac_delim
30595 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30596 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30598 CXXFLAGS!$CXXFLAGS$ac_delim
30599 ac_ct_CXX!$ac_ct_CXX$ac_delim
30600 CXXDEPMODE!$CXXDEPMODE$ac_delim
30601 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30602 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30604 LN_S!$LN_S$ac_delim
30605 GREP!$GREP$ac_delim
30606 EGREP!$EGREP$ac_delim
30607 ECHO!$ECHO$ac_delim
30609 RANLIB!$RANLIB$ac_delim
30610 CXXCPP!$CXXCPP$ac_delim
30612 FFLAGS!$FFLAGS$ac_delim
30613 ac_ct_F77!$ac_ct_F77$ac_delim
30614 LIBTOOL!$LIBTOOL$ac_delim
30615 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30617 LIBNSL!$LIBNSL$ac_delim
30618 PKG_CONFIG!$PKG_CONFIG$ac_delim
30619 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30620 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30621 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30622 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30623 LIBSOCKET!$LIBSOCKET$ac_delim
30624 LIBCRYPT!$LIBCRYPT$ac_delim
30625 LIBBSD!$LIBBSD$ac_delim
30626 LIBBLKID!$LIBBLKID$ac_delim
30627 KRBDIR!$KRBDIR$ac_delim
30628 KRBLIBS!$KRBLIBS$ac_delim
30629 KRBCFLAGS!$KRBCFLAGS$ac_delim
30630 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30631 K5VERS!$K5VERS$ac_delim
30632 ALLOCA!$ALLOCA$ac_delim
30633 LIBOBJS!$LIBOBJS$ac_delim
30634 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30635 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30636 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30637 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30638 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30639 AM_CFLAGS!$AM_CFLAGS$ac_delim
30640 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30641 LTLIBOBJS!$LTLIBOBJS$ac_delim
30644 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30646 elif $ac_last_try; then
30647 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30649 { (exit 1); exit 1; }; }
30651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30655 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30656 if test -n "$ac_eof"; then
30657 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30658 ac_eof=`expr $ac_eof + 1`
30661 cat >>$CONFIG_STATUS <<_ACEOF
30662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30667 s/^/s,@/; s/!/@,|#_!!_#|/
30670 s/'"$ac_delim"'$/,g/; t
30672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30673 ' >>$CONFIG_STATUS <conf$$subs.sed
30674 rm -f conf$$subs.sed
30675 cat >>$CONFIG_STATUS <<_ACEOF
30682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30684 # trailing colons and then remove the whole line if VPATH becomes empty
30685 # (actually we leave an empty line to preserve line numbers).
30686 if test "x$srcdir" = x.; then
30687 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30688 s/:*\$(srcdir):*/:/
30689 s/:*\${srcdir}:*/:/
30691 s/^\([^=]*=[ ]*\):*/\1/
30697 cat >>$CONFIG_STATUS <<\_ACEOF
30698 fi # test -n "$CONFIG_FILES"
30701 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30704 :[FHLC]) ac_mode=$ac_tag; continue;;
30706 case $ac_mode$ac_tag in
30708 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30709 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30710 { (exit 1); exit 1; }; };;
30711 :[FH]-) ac_tag=-:-;;
30712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30729 -) ac_f="$tmp/stdin";;
30730 *) # Look for the file first in the build tree, then in the source tree
30731 # (if the path is not absolute). The absolute path cannot be DOS-style,
30732 # because $ac_f cannot contain `:'.
30736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30738 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30739 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30740 { (exit 1); exit 1; }; };;
30742 ac_file_inputs="$ac_file_inputs $ac_f"
30745 # Let's still pretend it is `configure' which instantiates (i.e., don't
30746 # use $as_me), people would be surprised to read:
30747 # /* config.h. Generated by config.status. */
30748 configure_input="Generated from "`IFS=:
30749 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30750 if test x"$ac_file" != x-; then
30751 configure_input="$ac_file. $configure_input"
30752 { echo "$as_me:$LINENO: creating $ac_file" >&5
30753 echo "$as_me: creating $ac_file" >&6;}
30757 *:-:* | *:-) cat >"$tmp/stdin";;
30762 ac_dir=`$as_dirname -- "$ac_file" ||
30763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30764 X"$ac_file" : 'X\(//\)[^/]' \| \
30765 X"$ac_file" : 'X\(//\)$' \| \
30766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30772 /^X\(\/\/\)[^/].*/{
30787 -*) as_dir=./$as_dir;;
30789 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30793 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30794 *) as_qdir=$as_dir;;
30796 as_dirs="'$as_qdir' $as_dirs"
30797 as_dir=`$as_dirname -- "$as_dir" ||
30798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30799 X"$as_dir" : 'X\(//\)[^/]' \| \
30800 X"$as_dir" : 'X\(//\)$' \| \
30801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30807 /^X\(\/\/\)[^/].*/{
30820 test -d "$as_dir" && break
30822 test -z "$as_dirs" || eval "mkdir $as_dirs"
30823 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30824 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30825 { (exit 1); exit 1; }; }; }
30829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30832 # A ".." for each directory in $ac_dir_suffix.
30833 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30834 case $ac_top_builddir_sub in
30835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30839 ac_abs_top_builddir=$ac_pwd
30840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30841 # for backward compatibility:
30842 ac_top_builddir=$ac_top_build_prefix
30845 .) # We are building in place.
30847 ac_top_srcdir=$ac_top_builddir_sub
30848 ac_abs_top_srcdir=$ac_pwd ;;
30849 [\\/]* | ?:[\\/]* ) # Absolute name.
30850 ac_srcdir=$srcdir$ac_dir_suffix;
30851 ac_top_srcdir=$srcdir
30852 ac_abs_top_srcdir=$srcdir ;;
30853 *) # Relative name.
30854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30855 ac_top_srcdir=$ac_top_build_prefix$srcdir
30856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30871 ac_MKDIR_P=$MKDIR_P
30873 [\\/$]* | ?:[\\/]* ) ;;
30874 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30878 cat >>$CONFIG_STATUS <<\_ACEOF
30879 # If the template does not know about datarootdir, expand it.
30880 # FIXME: This hack should be removed a few years after 2.60.
30881 ac_datarootdir_hack=; ac_datarootdir_seen=
30883 case `sed -n '/datarootdir/ {
30892 ' $ac_file_inputs` in
30893 *datarootdir*) ac_datarootdir_seen=yes;;
30894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30895 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30896 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30898 cat >>$CONFIG_STATUS <<_ACEOF
30899 ac_datarootdir_hack='
30900 s&@datadir@&$datadir&g
30901 s&@docdir@&$docdir&g
30902 s&@infodir@&$infodir&g
30903 s&@localedir@&$localedir&g
30904 s&@mandir@&$mandir&g
30905 s&\\\${datarootdir}&$datarootdir&g' ;;
30909 # Neutralize VPATH when `$srcdir' = `.'.
30910 # Shell code in configure.ac might set extrasub.
30911 # FIXME: do we really want to maintain this feature?
30912 cat >>$CONFIG_STATUS <<_ACEOF
30916 cat >>$CONFIG_STATUS <<\_ACEOF
30918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30919 s&@configure_input@&$configure_input&;t t
30920 s&@top_builddir@&$ac_top_builddir_sub&;t t
30921 s&@srcdir@&$ac_srcdir&;t t
30922 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30923 s&@top_srcdir@&$ac_top_srcdir&;t t
30924 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30925 s&@builddir@&$ac_builddir&;t t
30926 s&@abs_builddir@&$ac_abs_builddir&;t t
30927 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30928 s&@INSTALL@&$ac_INSTALL&;t t
30929 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30930 $ac_datarootdir_hack
30931 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30934 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30936 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30937 which seems to be undefined. Please make sure it is defined." >&5
30938 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30939 which seems to be undefined. Please make sure it is defined." >&2;}
30943 -) cat "$tmp/out"; rm -f "$tmp/out";;
30944 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30953 # Transform confdefs.h into a sed script `conftest.defines', that
30954 # substitutes the proper values into config.h.in to produce config.h.
30955 rm -f conftest.defines conftest.tail
30956 # First, append a space to every undef/define line, to ease matching.
30957 echo 's/$/ /' >conftest.defines
30958 # Then, protect against being on the right side of a sed subst, or in
30959 # an unquoted here document, in config.status. If some macros were
30960 # called several times there might be several #defines for the same
30961 # symbol, which is useless. But do not sort them, since the last
30962 # AC_DEFINE must be honored.
30963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30964 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30965 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30966 # PARAMS is the parameter list in the macro definition--in most cases, it's
30967 # just an empty string.
30968 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30969 ac_dB='\\)[ (].*,\\1define\\2'
30977 s/^[ ]*#[ ]*define[ ][ ]*//
30982 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30983 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30984 ' >>conftest.defines
30986 # Remove the space that was appended to ease matching.
30987 # Then replace #undef with comments. This is necessary, for
30988 # example, in the case of _POSIX_SOURCE, which is predefined and required
30989 # on some systems where configure will not decide to define it.
30990 # (The regexp can be short, since the line contains either #define or #undef.)
30992 s,^[ #]*u.*,/* & */,' >>conftest.defines
30994 # Break up conftest.defines:
30995 ac_max_sed_lines=50
30997 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30998 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30999 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31001 ac_in='$ac_file_inputs'
31002 ac_out='"$tmp/out1"'
31003 ac_nxt='"$tmp/out2"'
31007 # Write a here document:
31008 cat >>$CONFIG_STATUS <<_ACEOF
31009 # First, check the format of the line:
31010 cat >"\$tmp/defines.sed" <<\\CEOF
31011 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31012 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31016 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31018 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31019 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31020 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31021 grep . conftest.tail >/dev/null || break
31022 rm -f conftest.defines
31023 mv conftest.tail conftest.defines
31025 rm -f conftest.defines conftest.tail
31027 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31028 cat >>$CONFIG_STATUS <<\_ACEOF
31029 if test x"$ac_file" != x-; then
31030 echo "/* $configure_input */" >"$tmp/config.h"
31031 cat "$ac_result" >>"$tmp/config.h"
31032 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31033 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31034 echo "$as_me: $ac_file is unchanged" >&6;}
31037 mv "$tmp/config.h" $ac_file
31040 echo "/* $configure_input */"
31044 # Compute $ac_file's index in $config_headers.
31046 for _am_header in $config_headers :; do
31047 case $_am_header in
31048 $ac_file | $ac_file:* )
31051 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31054 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31055 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31056 X$ac_file : 'X\(//\)[^/]' \| \
31057 X$ac_file : 'X\(//\)$' \| \
31058 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31064 /^X\(\/\/\)[^/].*/{
31076 s/.*/./; q'`/stamp-h$_am_stamp_count
31079 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31080 echo "$as_me: executing $ac_file commands" >&6;}
31085 case $ac_file$ac_mode in
31086 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31087 # Strip MF so we end up with the name of the file.
31088 mf=`echo "$mf" | sed -e 's/:.*$//'`
31089 # Check whether this is an Automake generated Makefile or not.
31090 # We used to match only the files named `Makefile.in', but
31091 # some people rename them; so instead we look at the file content.
31092 # Grep'ing the first line is not enough: some people post-process
31093 # each Makefile.in and add a new line on top of each file to say so.
31094 # Grep'ing the whole file is not good either: AIX grep has a line
31095 # limit of 2048, but all sed's we know have understand at least 4000.
31096 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
31097 dirpart=`$as_dirname -- "$mf" ||
31098 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31099 X"$mf" : 'X\(//\)[^/]' \| \
31100 X"$mf" : 'X\(//\)$' \| \
31101 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31107 /^X\(\/\/\)[^/].*/{
31123 # Extract the definition of DEPDIR, am__include, and am__quote
31124 # from the Makefile without running `make'.
31125 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31126 test -z "$DEPDIR" && continue
31127 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31128 test -z "am__include" && continue
31129 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31130 # When using ansi2knr, U may be empty or an underscore; expand it
31131 U=`sed -n 's/^U = //p' < "$mf"`
31132 # Find all dependency output files, they are included files with
31133 # $(DEPDIR) in their names. We invoke sed twice because it is the
31134 # simplest approach to changing $(DEPDIR) to its actual value in the
31136 for file in `sed -n "
31137 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31138 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31139 # Make sure the directory exists.
31140 test -f "$dirpart/$file" && continue
31141 fdir=`$as_dirname -- "$file" ||
31142 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31143 X"$file" : 'X\(//\)[^/]' \| \
31144 X"$file" : 'X\(//\)$' \| \
31145 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31151 /^X\(\/\/\)[^/].*/{
31164 { as_dir=$dirpart/$fdir
31166 -*) as_dir=./$as_dir;;
31168 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31172 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31173 *) as_qdir=$as_dir;;
31175 as_dirs="'$as_qdir' $as_dirs"
31176 as_dir=`$as_dirname -- "$as_dir" ||
31177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31178 X"$as_dir" : 'X\(//\)[^/]' \| \
31179 X"$as_dir" : 'X\(//\)$' \| \
31180 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31186 /^X\(\/\/\)[^/].*/{
31199 test -d "$as_dir" && break
31201 test -z "$as_dirs" || eval "mkdir $as_dirs"
31202 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31203 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31204 { (exit 1); exit 1; }; }; }
31205 # echo "creating $dirpart/$file"
31206 echo '# dummy' > "$dirpart/$file"
31215 { (exit 0); exit 0; }
31217 chmod +x $CONFIG_STATUS
31218 ac_clean_files=$ac_clean_files_save
31221 # configure is writing to config.log, and then calls config.status.
31222 # config.status does its own redirection, appending to config.log.
31223 # Unfortunately, on DOS this fails, as config.log is still kept open
31224 # by configure, so config.status won't be able to write to it; its
31225 # output is simply discarded. So we exec the FD to /dev/null,
31226 # effectively closing config.log, so it can be properly (re)opened and
31227 # appended to by config.status. When coming back to configure, we
31228 # need to make the FD available again.
31229 if test "$no_create" != yes; then
31231 ac_config_status_args=
31232 test "$silent" = yes &&
31233 ac_config_status_args="$ac_config_status_args --quiet"
31235 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31238 # would make configure fail if this is the last instruction.
31239 $ac_cs_success || { (exit 1); exit 1; }