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
831 INSTALL_STRIP_PROGRAM
840 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=yes@:>@
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 GSSGLUE, overriding pkg-config
1589 linker flags for GSSGLUE, overriding pkg-config
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to <nfs@lists.sf.net>.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" || continue
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1622 .) # We are building in place.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1646 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1655 linux nfs-utils configure 1.1.0
1656 generated by GNU Autoconf 2.61
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1669 It was created by linux nfs-utils $as_me 1.1.0, which was
1670 generated by GNU Autoconf 2.61. Invocation command line was
1678 @%:@@%:@ --------- @%:@@%:@
1679 @%:@@%:@ Platform. @%:@@%:@
1680 @%:@@%:@ --------- @%:@@%:@
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 echo "PATH: $as_dir"
1715 @%:@@%:@ ----------- @%:@@%:@
1716 @%:@@%:@ Core tests. @%:@@%:@
1717 @%:@@%:@ ----------- @%:@@%:@
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_must_keep_next=false
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1741 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759 -* ) ac_must_keep_next=true ;;
1762 ac_configure_args="$ac_configure_args '$ac_arg'"
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1781 @%:@@%:@ ---------------- @%:@@%:@
1782 @%:@@%:@ Cache variables. @%:@@%:@
1783 @%:@@%:@ ---------------- @%:@@%:@
1786 # The following way of writing the cache mishandles newlines in values,
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1793 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1794 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1797 _ | IFS | as_nl) ;; #(
1798 *) $as_unset $ac_var ;;
1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 @%:@@%:@ ----------------- @%:@@%:@
1819 @%:@@%:@ Output variables. @%:@@%:@
1820 @%:@@%:@ ----------------- @%:@@%:@
1823 for ac_var in $ac_subst_vars
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 echo "$ac_var='\''$ac_val'\''"
1833 if test -n "$ac_subst_files"; then
1835 @%:@@%:@ ------------------- @%:@@%:@
1836 @%:@@%:@ File substitutions. @%:@@%:@
1837 @%:@@%:@ ------------------- @%:@@%:@
1840 for ac_var in $ac_subst_files
1842 eval ac_val=\$$ac_var
1844 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 echo "$ac_var='\''$ac_val'\''"
1851 if test -s confdefs.h; then
1853 @%:@@%:@ ----------- @%:@@%:@
1854 @%:@@%:@ confdefs.h. @%:@@%:@
1855 @%:@@%:@ ----------- @%:@@%:@
1861 test "$ac_signal" != 0 &&
1862 echo "$as_me: caught signal $ac_signal"
1863 echo "$as_me: exit $exit_status"
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869 for ac_signal in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest* confdefs.h
1877 # Predefined preprocessor variables.
1879 cat >>confdefs.h <<_ACEOF
1880 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1884 cat >>confdefs.h <<_ACEOF
1885 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889 cat >>confdefs.h <<_ACEOF
1890 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1894 cat >>confdefs.h <<_ACEOF
1895 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1899 cat >>confdefs.h <<_ACEOF
1900 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer explicitly selected file to automatically selected ones.
1906 if test -n "$CONFIG_SITE"; then
1907 set x "$CONFIG_SITE"
1908 elif test "x$prefix" != xNONE; then
1909 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1911 set x "$ac_default_prefix/share/config.site" \
1912 "$ac_default_prefix/etc/config.site"
1917 if test -r "$ac_site_file"; then
1918 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1925 if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 echo "$as_me: loading cache $cache_file" >&6;}
1932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933 *) . "./$cache_file";;
1937 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 echo "$as_me: creating cache $cache_file" >&6;}
1942 # Check that the precious variables saved in the cache have kept the same
1944 ac_cache_corrupted=false
1945 for ac_var in $ac_precious_vars; do
1946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1947 eval ac_new_set=\$ac_env_${ac_var}_set
1948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1949 eval ac_new_val=\$ac_env_${ac_var}_value
1950 case $ac_old_set,$ac_new_set in
1952 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1953 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1954 ac_cache_corrupted=: ;;
1956 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1957 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1958 ac_cache_corrupted=: ;;
1961 if test "x$ac_old_val" != "x$ac_new_val"; then
1962 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1963 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1964 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1965 echo "$as_me: former value: $ac_old_val" >&2;}
1966 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1967 echo "$as_me: current value: $ac_new_val" >&2;}
1968 ac_cache_corrupted=:
1971 # Pass precious variables to config.status.
1972 if test "$ac_new_set" = set; then
1974 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1975 *) ac_arg=$ac_var=$ac_new_val ;;
1977 case " $ac_configure_args " in
1978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1979 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1983 if $ac_cache_corrupted; then
1984 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988 { (exit 1); exit 1; }; }
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2024 if test -f "$ac_dir/install-sh"; then
2026 ac_install_sh="$ac_aux_dir/install-sh -c"
2028 elif test -f "$ac_dir/install.sh"; then
2030 ac_install_sh="$ac_aux_dir/install.sh -c"
2032 elif test -f "$ac_dir/shtool"; then
2034 ac_install_sh="$ac_aux_dir/shtool install -c"
2038 if test -z "$ac_aux_dir"; then
2039 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2040 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2041 { (exit 1); exit 1; }; }
2044 # These three variables are undocumented and unsupported,
2045 # and are intended to be withdrawn in a future Autoconf release.
2046 # They can cause serious problems if a builder's source tree is in a directory
2047 # whose full name contains unusual characters.
2048 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2049 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2050 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2053 # Make sure we can run config.sub.
2054 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2055 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057 { (exit 1); exit 1; }; }
2059 { echo "$as_me:$LINENO: checking build system type" >&5
2060 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2061 if test "${ac_cv_build+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 ac_build_alias=$build_alias
2065 test "x$ac_build_alias" = x &&
2066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067 test "x$ac_build_alias" = x &&
2068 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070 { (exit 1); exit 1; }; }
2071 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078 echo "${ECHO_T}$ac_cv_build" >&6; }
2079 case $ac_cv_build in
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082 echo "$as_me: error: invalid value of canonical build" >&2;}
2083 { (exit 1); exit 1; }; };;
2086 ac_save_IFS=$IFS; IFS='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2099 { echo "$as_me:$LINENO: checking host system type" >&5
2100 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_host+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test "x$host_alias" = x; then
2105 ac_cv_host=$ac_cv_build
2107 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115 echo "${ECHO_T}$ac_cv_host" >&6; }
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119 echo "$as_me: error: invalid value of canonical host" >&2;}
2120 { (exit 1); exit 1; }; };;
2123 ac_save_IFS=$IFS; IFS='-'
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2133 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2137 am__api_version="1.9"
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 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2290 # We used to keeping the `.' as first argument, in order to
2291 # allow $(mkdir_p) to be used without argument. As in
2292 # $(mkdir_p) $(somedir)
2293 # where $(somedir) is conditionally defined. However this is wrong
2295 # 1. if the package is installed by a user who cannot write `.'
2296 # make install will fail,
2297 # 2. the above comment should most certainly read
2298 # $(mkdir_p) $(DESTDIR)$(somedir)
2299 # so it does not work when $(somedir) is undefined and
2300 # $(DESTDIR) is not.
2301 # To support the latter case, we have to write
2302 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2303 # so the `.' trick is pointless.
2304 mkdir_p='mkdir -p --'
2306 # On NextStep and OpenStep, the `mkdir' command does not
2307 # recognize any option. It will interpret all options as
2308 # directories to create, and then abort because `.' already
2310 for d in ./-p ./--version;
2312 test -d $d && rmdir $d
2314 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2315 if test -f "$ac_aux_dir/mkinstalldirs"; then
2316 mkdir_p='$(mkinstalldirs)'
2318 mkdir_p='$(install_sh) -d'
2322 for ac_prog in gawk mawk nawk awk
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_AWK+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test -n "$AWK"; then
2332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_AWK="$ac_prog"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 if test -n "$AWK"; then
2353 { echo "$as_me:$LINENO: result: $AWK" >&5
2354 echo "${ECHO_T}$AWK" >&6; }
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2361 test -n "$AWK" && break
2364 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2366 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.make <<\_ACEOF
2373 @echo '@@@%%%=$(MAKE)=@@@%%%'
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2378 eval ac_cv_prog_make_${ac_make}_set=yes;;
2380 eval ac_cv_prog_make_${ac_make}_set=no;;
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385 { echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6; }
2389 { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391 SET_MAKE="MAKE=${MAKE-make}"
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2401 rmdir .tst 2>/dev/null
2403 # test to see if srcdir already configured
2404 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2405 test -f $srcdir/config.status; then
2406 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408 { (exit 1); exit 1; }; }
2411 # test whether we have cygpath
2412 if test -z "$CYGPATH_W"; then
2413 if (cygpath --version) >/dev/null 2>/dev/null; then
2414 CYGPATH_W='cygpath -w'
2421 # Define the identity of the package.
2426 cat >>confdefs.h <<_ACEOF
2427 @%:@define PACKAGE "$PACKAGE"
2431 cat >>confdefs.h <<_ACEOF
2432 @%:@define VERSION "$VERSION"
2435 # Some tools Automake needs.
2437 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2440 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2443 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2446 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2449 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2451 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2453 # Installed binaries are usually stripped using `strip' when the user
2454 # run `make install-strip'. However `strip' might not be the right
2455 # tool to use in cross-compilation environments, therefore Automake
2456 # will honor the `STRIP' environment variable to overrule this program.
2457 if test "$cross_compiling" != no; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}strip; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_STRIP+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$STRIP"; then
2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 STRIP=$ac_cv_prog_STRIP
2487 if test -n "$STRIP"; then
2488 { echo "$as_me:$LINENO: result: $STRIP" >&5
2489 echo "${ECHO_T}$STRIP" >&6; }
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2497 if test -z "$ac_cv_prog_STRIP"; then
2499 # Extract the first word of "strip", so it can be a program name with args.
2500 set dummy strip; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$ac_ct_STRIP"; then
2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_ac_ct_STRIP="strip"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527 if test -n "$ac_ct_STRIP"; then
2528 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2529 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2535 if test "x$ac_ct_STRIP" = x; then
2538 case $cross_compiling:$ac_tool_warned in
2540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2541 whose name does not start with the host triplet. If you think this
2542 configuration is useful to you, please write to autoconf@gnu.org." >&5
2543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet. If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2546 ac_tool_warned=yes ;;
2551 STRIP="$ac_cv_prog_STRIP"
2555 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2557 # We need awk for the "check" target. The system "awk" is bad on
2559 # Always define AMTAR for backward compatibility.
2561 AMTAR=${AMTAR-"${am_missing_run}tar"}
2563 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2571 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2572 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2573 # Check whether --enable-maintainer-mode was given.
2574 if test "${enable_maintainer_mode+set}" = set; then
2575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2577 USE_MAINTAINER_MODE=no
2580 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2581 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2584 if test $USE_MAINTAINER_MODE = yes; then
2585 MAINTAINER_MODE_TRUE=
2586 MAINTAINER_MODE_FALSE='#'
2588 MAINTAINER_MODE_TRUE='#'
2589 MAINTAINER_MODE_FALSE=
2592 MAINT=$MAINTAINER_MODE_TRUE
2597 # Check whether --with-release was given.
2598 if test "${with_release+set}" = set; then
2599 withval=$with_release; RELEASE=$withval
2606 # Check whether --with-statedir was given.
2607 if test "${with_statedir+set}" = set; then
2608 withval=$with_statedir; statedir=$withval
2610 statedir=/var/lib/nfs
2615 # Check whether --with-statduser was given.
2616 if test "${with_statduser+set}" = set; then
2617 withval=$with_statduser; statduser=$withval
2619 if test "x$cross_compiling" = "xno"; then
2620 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2632 # Check whether --with-start-statd was given.
2633 if test "${with_start_statd+set}" = set; then
2634 withval=$with_start_statd; startstatd=$withval
2636 startstatd=/usr/sbin/start-statd
2642 cat >>confdefs.h <<_ACEOF
2643 @%:@define START_STATD "$startstatd"
2646 # Check whether --enable-nfsv3 was given.
2647 if test "${enable_nfsv3+set}" = set; then
2648 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2653 if test "$enable_nfsv3" = yes; then
2655 cat >>confdefs.h <<\_ACEOF
2656 @%:@define NFS3_SUPPORTED 1
2663 # Check whether --enable-nfsv4 was given.
2664 if test "${enable_nfsv4+set}" = set; then
2665 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2670 if test "$enable_nfsv4" = yes; then
2672 cat >>confdefs.h <<\_ACEOF
2673 @%:@define NFS4_SUPPORTED 1
2685 if test "$enable_nfsv4" = "yes"; then
2687 CONFIG_NFSV4_FALSE='#'
2689 CONFIG_NFSV4_TRUE='#'
2693 # Check whether --enable-gss was given.
2694 if test "${enable_gss+set}" = set; then
2695 enableval=$enable_gss; enable_gss=$enableval
2700 if test "$enable_gss" = yes; then
2702 cat >>confdefs.h <<\_ACEOF
2703 @%:@define GSS_SUPPORTED 1
2718 if test "$enable_gss" = "yes"; then
2720 CONFIG_GSS_FALSE='#'
2726 # Check whether --enable-kprefix was given.
2727 if test "${enable_kprefix+set}" = set; then
2728 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2734 # Check whether --enable-secure-statd was given.
2735 if test "${enable_secure_statd+set}" = set; then
2736 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2741 if test "$secure_statd" = yes; then
2743 cat >>confdefs.h <<\_ACEOF
2744 @%:@define RESTRICTED_STATD 1
2750 # Check whether --with-rpcgen was given.
2751 if test "${with_rpcgen+set}" = set; then
2752 withval=$with_rpcgen; rpcgen_path=$withval
2758 if test "$rpcgen_path" == "yes"; then
2759 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2760 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2761 elif test "$rpcgen_path" != "internal"; then
2762 RPCGEN_PATH=$rpcgen_path
2767 if test "$RPCGEN_PATH" == ""; then
2769 CONFIG_RPCGEN_FALSE='#'
2771 CONFIG_RPCGEN_TRUE='#'
2772 CONFIG_RPCGEN_FALSE=
2775 # Check whether --enable-uuid was given.
2776 if test "${enable_uuid+set}" = set; then
2777 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2779 choose_blkid=default
2782 # Check whether --enable-mount was given.
2783 if test "${enable_mount+set}" = set; then
2784 enableval=$enable_mount; enable_mount=$enableval
2791 if test "$enable_mount" = "yes"; then
2793 CONFIG_MOUNT_FALSE='#'
2795 CONFIG_MOUNT_TRUE='#'
2800 # Check whether user wants TCP wrappers support
2801 DEPDIR="${am__leading_dot}deps"
2803 ac_config_commands="$ac_config_commands depfiles"
2806 am_make=${MAKE-make}
2807 cat > confinc << 'END'
2812 # If we don't find an include directive, just comment out the code.
2813 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2814 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2818 # First try GNU make style include.
2819 echo "include confinc" > confmf
2820 # We grep out `Entering directory' and `Leaving directory'
2821 # messages which can occur if `w' ends up in MAKEFLAGS.
2822 # In particular we don't look at `^make:' because GNU make might
2823 # be invoked under some other name (usually "gmake"), in which
2824 # case it prints its new name instead of `make'.
2825 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2830 # Now try BSD make style include.
2831 if test "$am__include" = "#"; then
2832 echo '.include "confinc"' > confmf
2833 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2834 am__include=.include
2841 { echo "$as_me:$LINENO: result: $_am_result" >&5
2842 echo "${ECHO_T}$_am_result" >&6; }
2843 rm -f confinc confmf
2845 # Check whether --enable-dependency-tracking was given.
2846 if test "${enable_dependency_tracking+set}" = set; then
2847 enableval=$enable_dependency_tracking;
2850 if test "x$enable_dependency_tracking" != xno; then
2851 am_depcomp="$ac_aux_dir/depcomp"
2856 if test "x$enable_dependency_tracking" != xno; then
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 if test -n "$CC"; then
2901 { echo "$as_me:$LINENO: result: $CC" >&5
2902 echo "${ECHO_T}$CC" >&6; }
2904 { echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6; }
2910 if test -z "$ac_cv_prog_CC"; then
2912 # Extract the first word of "gcc", so it can be a program name with args.
2913 set dummy gcc; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$ac_ct_CC"; then
2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_ac_ct_CC="gcc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940 if test -n "$ac_ct_CC"; then
2941 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2942 echo "${ECHO_T}$ac_ct_CC" >&6; }
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2948 if test "x$ac_ct_CC" = x; then
2951 case $cross_compiling:$ac_tool_warned in
2953 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet. If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&5
2956 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2957 whose name does not start with the host triplet. If you think this
2958 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2959 ac_tool_warned=yes ;;
2967 if test -z "$CC"; then
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}cc; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_CC="${ac_tool_prefix}cc"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test -n "$CC"; then
2998 { echo "$as_me:$LINENO: result: $CC" >&5
2999 echo "${ECHO_T}$CC" >&6; }
3001 { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3008 if test -z "$CC"; then
3009 # Extract the first word of "cc", so it can be a program name with args.
3010 set dummy cc; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3028 ac_prog_rejected=yes
3032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 if test $ac_prog_rejected = yes; then
3040 # We found a bogon in the path, so make sure we never use it.
3041 set dummy $ac_cv_prog_CC
3043 if test $@%:@ != 0; then
3044 # We chose a different compiler from the bogus one.
3045 # However, it has the same basename, so the bogon will be chosen
3046 # first if we set CC to just the basename; use the full file name.
3048 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3054 if test -n "$CC"; then
3055 { echo "$as_me:$LINENO: result: $CC" >&5
3056 echo "${ECHO_T}$CC" >&6; }
3058 { echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6; }
3064 if test -z "$CC"; then
3065 if test -n "$ac_tool_prefix"; then
3066 for ac_prog in cl.exe
3068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_CC+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 if test -n "$CC"; then
3097 { echo "$as_me:$LINENO: result: $CC" >&5
3098 echo "${ECHO_T}$CC" >&6; }
3100 { echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6; }
3105 test -n "$CC" && break
3108 if test -z "$CC"; then
3110 for ac_prog in cl.exe
3112 # Extract the first word of "$ac_prog", so it can be a program name with args.
3113 set dummy $ac_prog; ac_word=$2
3114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 if test -n "$ac_ct_CC"; then
3120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_ac_ct_CC="$ac_prog"
3130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3140 if test -n "$ac_ct_CC"; then
3141 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3142 echo "${ECHO_T}$ac_ct_CC" >&6; }
3144 { echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6; }
3149 test -n "$ac_ct_CC" && break
3152 if test "x$ac_ct_CC" = x; then
3155 case $cross_compiling:$ac_tool_warned in
3157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet. If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&5
3160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3161 whose name does not start with the host triplet. If you think this
3162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3163 ac_tool_warned=yes ;;
3172 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details." >&2;}
3176 { (exit 1); exit 1; }; }
3178 # Provide some information about the compiler.
3179 echo "$as_me:$LINENO: checking for C compiler version" >&5
3180 ac_compiler=`set X $ac_compile; echo $2`
3181 { (ac_try="$ac_compiler --version >&5"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compiler --version >&5") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }
3191 { (ac_try="$ac_compiler -v >&5"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compiler -v >&5") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3201 { (ac_try="$ac_compiler -V >&5"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compiler -V >&5") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3212 cat >conftest.$ac_ext <<_ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3227 ac_clean_files_save=$ac_clean_files
3228 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3229 # Try to create an executable without -o first, disregard a.out.
3230 # It will help us diagnose broken compilers, and finding out an intuition
3232 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3233 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3234 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3236 # List of possible output files, starting from the most likely.
3237 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3238 # only as a last resort. b.out is created by i960 compilers.
3239 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3241 # The IRIX 6 linker writes into existing files which may not be
3242 # executable, retaining their permissions. Remove them first so a
3243 # subsequent execution test works.
3245 for ac_file in $ac_files
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3249 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 if { (ac_try="$ac_link_default"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_link_default") 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; then
3264 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3265 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3266 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3267 # so that the user can short-circuit this test for compilers unknown to
3269 for ac_file in $ac_files ''
3271 test -f "$ac_file" || continue
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3276 # We found the default executable, but exeext='' is most
3280 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 # We set ac_cv_exeext here because the later test for it is not
3285 # safe: cross compilers may not add the suffix if given an `-o'
3286 # argument, so we may need to know it at that point already.
3287 # Even if this section looks crufty: it has the advantage of
3294 test "$ac_cv_exeext" = no && ac_cv_exeext=
3300 { echo "$as_me:$LINENO: result: $ac_file" >&5
3301 echo "${ECHO_T}$ac_file" >&6; }
3302 if test -z "$ac_file"; then
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: C compiler cannot create executables
3309 See \`config.log' for more details." >&2;}
3310 { (exit 77); exit 77; }; }
3313 ac_exeext=$ac_cv_exeext
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3318 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3319 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3320 # If not cross compiling, check that we can run a simple program.
3321 if test "$cross_compiling" != yes; then
3322 if { ac_try='./$ac_file'
3323 { (case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_try") 2>&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; }; then
3334 if test "$cross_compiling" = maybe; then
3337 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3338 If you meant to cross compile, use \`--host'.
3339 See \`config.log' for more details." >&5
3340 echo "$as_me: error: cannot run C compiled programs.
3341 If you meant to cross compile, use \`--host'.
3342 See \`config.log' for more details." >&2;}
3343 { (exit 1); exit 1; }; }
3347 { echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6; }
3350 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3351 ac_clean_files=$ac_clean_files_save
3352 # Check that the compiler produces executables we can run. If not, either
3353 # the compiler is broken, or we cross compile.
3354 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3355 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3356 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3357 echo "${ECHO_T}$cross_compiling" >&6; }
3359 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3360 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3361 if { (ac_try="$ac_link"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_link") 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; then
3371 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3372 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3373 # work properly (i.e., refer to `conftest.exe'), while it won't with
3375 for ac_file in conftest.exe conftest conftest.*; do
3376 test -f "$ac_file" || continue
3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3386 See \`config.log' for more details." >&5
3387 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3388 See \`config.log' for more details." >&2;}
3389 { (exit 1); exit 1; }; }
3392 rm -f conftest$ac_cv_exeext
3393 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3394 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3396 rm -f conftest.$ac_ext
3397 EXEEXT=$ac_cv_exeext
3399 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3400 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3401 if test "${ac_cv_objext+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3419 rm -f conftest.o conftest.obj
3420 if { (ac_try="$ac_compile"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_compile") 2>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; then
3430 for ac_file in conftest.o conftest.obj conftest.*; do
3431 test -f "$ac_file" || continue;
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3451 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3452 echo "${ECHO_T}$ac_cv_objext" >&6; }
3453 OBJEXT=$ac_cv_objext
3455 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3507 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3508 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3509 GCC=`test $ac_compiler_gnu = yes && echo yes`
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3513 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_cc_g+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_save_c_werror_flag=$ac_c_werror_flag
3518 ac_c_werror_flag=yes
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3559 cat >conftest.$ac_ext <<_ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && {
3588 test -z "$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_c_werror_flag=$ac_save_c_werror_flag
3647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3649 if test "$ac_test_CFLAGS" = set; then
3650 CFLAGS=$ac_save_CFLAGS
3651 elif test $ac_cv_prog_cc_g = yes; then
3652 if test "$GCC" = yes; then
3658 if test "$GCC" = yes; then
3664 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3665 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3666 if test "${ac_cv_prog_cc_c89+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 ac_cv_prog_cc_c89=no
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3679 #include <sys/types.h>
3680 #include <sys/stat.h>
3681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3682 struct buf { int x; };
3683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684 static char *e (p, i)
3690 static char *f (char * (*g) (char **, int), char **p, ...)
3695 s = g (p, va_arg (v,int));
3700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3701 function prototypes and stuff, but not '\xHH' hex character constants.
3702 These don't provoke an error unfortunately, instead are silently treated
3703 as 'x'. The following induces an error, until -std is added to get
3704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3705 array size at least. It's necessary to write '\x00'==0 to get something
3706 that's true only with -std. */
3707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3709 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3710 inside strings and character constants. */
3712 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3714 int test (int i, double x);
3715 struct s1 {int (*f) (int a);};
3716 struct s2 {int (*f) (double a);};
3717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3723 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3729 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731 CC="$ac_save_CC $ac_arg"
3732 rm -f conftest.$ac_objext
3733 if { (ac_try="$ac_compile"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_compile") 2>conftest.er1
3741 grep -v '^ *+' conftest.er1 >conftest.err
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } && {
3746 test -z "$ac_c_werror_flag" ||
3747 test ! -s conftest.err
3748 } && test -s conftest.$ac_objext; then
3749 ac_cv_prog_cc_c89=$ac_arg
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3757 rm -f core conftest.err conftest.$ac_objext
3758 test "x$ac_cv_prog_cc_c89" != "xno" && break
3760 rm -f conftest.$ac_ext
3765 case "x$ac_cv_prog_cc_c89" in
3767 { echo "$as_me:$LINENO: result: none needed" >&5
3768 echo "${ECHO_T}none needed" >&6; } ;;
3770 { echo "$as_me:$LINENO: result: unsupported" >&5
3771 echo "${ECHO_T}unsupported" >&6; } ;;
3773 CC="$CC $ac_cv_prog_cc_c89"
3774 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3775 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 depcc="$CC" am_compiler_list=
3787 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3788 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3789 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793 # We make a subdir and do the tests there. Otherwise we can end up
3794 # making bogus files that we don't know about and never remove. For
3795 # instance it was reported that on HP-UX the gcc test will end up
3796 # making a dummy file named `D' -- because `-MD' means `put the output
3799 # Copy depcomp to subdir because otherwise we won't find it if we're
3800 # using a relative directory.
3801 cp "$am_depcomp" conftest.dir
3803 # We will build objects and dependencies in a subdirectory because
3804 # it helps to detect inapplicable dependency modes. For instance
3805 # both Tru64's cc and ICC support -MD to output dependencies as a
3806 # side effect of compilation, but ICC will put the dependencies in
3807 # the current directory while Tru64 will put them in the object
3811 am_cv_CC_dependencies_compiler_type=none
3812 if test "$am_compiler_list" = ""; then
3813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3815 for depmode in $am_compiler_list; do
3816 # Setup a source with many dependencies, because some compilers
3817 # like to wrap large dependency lists on column 80 (with \), and
3818 # we should not choose a depcomp mode which is confused by this.
3820 # We need to recreate these files for each test, as the compiler may
3821 # overwrite some of them when testing with obscure command lines.
3822 # This happens at least with the AIX C compiler.
3824 for i in 1 2 3 4 5 6; do
3825 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827 # Solaris 8's {/usr,}/bin/sh.
3828 touch sub/conftst$i.h
3830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834 # after this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested
3836 if test "x$enable_dependency_tracking" = xyes; then
3844 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845 # mode. It turns out that the SunPro C++ compiler does not properly
3846 # handle `-M -o', and we need to detect this.
3847 if depmode=$depmode \
3848 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3849 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3851 >/dev/null 2>conftest.err &&
3852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3853 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3855 # icc doesn't choke on unknown options, it will just issue warnings
3856 # or remarks (even with -Werror). So we grep stderr for any message
3857 # that says an option was ignored or not supported.
3858 # When given -MP, icc 7.0 and 7.1 complain thusly:
3859 # icc: Command line warning: ignoring option '-M'; no argument required
3860 # The diagnosis changed in icc 8.0:
3861 # icc: Command line remark: option '-MP' not supported
3862 if (grep 'ignoring option' conftest.err ||
3863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3864 am_cv_CC_dependencies_compiler_type=$depmode
3873 am_cv_CC_dependencies_compiler_type=none
3877 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3878 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3879 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884 test "x$enable_dependency_tracking" != xno \
3885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3887 am__fastdepCC_FALSE='#'
3889 am__fastdepCC_TRUE='#'
3890 am__fastdepCC_FALSE=
3898 # Check whether --with-tcp-wrappers was given.
3899 if test "${with_tcp_wrappers+set}" = set; then
3900 withval=$with_tcp_wrappers; with_tcpw=$withval
3905 if test "x$with_tcpw" != "xno" ; then
3907 saved_LDFLAGS="$LDFLAGS"
3908 saved_CPPFLAGS="$CPPFLAGS"
3909 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3910 if test -d "${with_tcpw}/lib"; then
3911 if test -n "${need_dash_r}"; then
3912 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3914 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3917 if test -n "${need_dash_r}"; then
3918 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3920 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3923 if test -d "${with_tcpw}/include"; then
3924 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3926 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3930 LIBS="$LIBWRAP $LIBS"
3931 { echo "$as_me:$LINENO: checking for libwrap" >&5
3932 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3941 int deny_severity = 0, allow_severity = 0;
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (ac_try="$ac_link"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_link") 2>conftest.er1
3960 grep -v '^ *+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_c_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest$ac_exeext &&
3968 $as_test_x conftest$ac_exeext; then
3970 { echo "$as_me:$LINENO: result: yes" >&5
3971 echo "${ECHO_T}yes" >&6; }
3974 cat >>confdefs.h <<\_ACEOF
3975 @%:@define LIBWRAP 1
3979 cat >>confdefs.h <<\_ACEOF
3980 @%:@define HAVE_LIBWRAP 1
3984 cat >>confdefs.h <<\_ACEOF
3985 @%:@define HAVE_TCP_WRAPPER 1
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3995 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3996 echo "$as_me: error: *** libwrap missing" >&2;}
3997 { (exit 1); exit 1; }; }
4002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4003 conftest$ac_exeext conftest.$ac_ext
4011 # Arrange for large-file support
4012 # Check whether --enable-largefile was given.
4013 if test "${enable_largefile+set}" = set; then
4014 enableval=$enable_largefile;
4017 if test "$enable_largefile" != no; then
4019 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4020 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4021 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 ac_cv_sys_largefile_CC=no
4025 if test "$GCC" != yes; then
4028 # IRIX 6.2 and later do not support large files by default,
4029 # so use the C compiler's -n32 option if that helps.
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 @%:@include <sys/types.h>
4037 /* Check that off_t can represent 2**63 - 1 correctly.
4038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4039 since some C++ compilers masquerading as C compilers
4040 incorrectly reject 9223372036854775807. */
4041 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4043 && LARGE_OFF_T % 2147483647 == 1)
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && {
4067 test -z "$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 } && test -s conftest.$ac_objext; then
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4078 rm -f core conftest.err conftest.$ac_objext
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4097 ac_cv_sys_largefile_CC=' -n32'; break
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4105 rm -f core conftest.err conftest.$ac_objext
4109 rm -f conftest.$ac_ext
4112 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4113 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4114 if test "$ac_cv_sys_largefile_CC" != no; then
4115 CC=$CC$ac_cv_sys_largefile_CC
4118 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4119 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4120 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4130 @%:@include <sys/types.h>
4131 /* Check that off_t can represent 2**63 - 1 correctly.
4132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4133 since some C++ compilers masquerading as C compilers
4134 incorrectly reject 9223372036854775807. */
4135 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4137 && LARGE_OFF_T % 2147483647 == 1)
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_compile") 2>conftest.er1
4156 grep -v '^ *+' conftest.er1 >conftest.err
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } && {
4161 test -z "$ac_c_werror_flag" ||
4162 test ! -s conftest.err
4163 } && test -s conftest.$ac_objext; then
4164 ac_cv_sys_file_offset_bits=no; break
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 cat >conftest.$ac_ext <<_ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 @%:@define _FILE_OFFSET_BITS 64
4180 @%:@include <sys/types.h>
4181 /* Check that off_t can represent 2**63 - 1 correctly.
4182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4183 since some C++ compilers masquerading as C compilers
4184 incorrectly reject 9223372036854775807. */
4185 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4187 && LARGE_OFF_T % 2147483647 == 1)
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_compile") 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } && {
4211 test -z "$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 } && test -s conftest.$ac_objext; then
4214 ac_cv_sys_file_offset_bits=64; break
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 ac_cv_sys_file_offset_bits=unknown
4227 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4228 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4229 case $ac_cv_sys_file_offset_bits in #(
4232 cat >>confdefs.h <<_ACEOF
4233 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4238 if test $ac_cv_sys_file_offset_bits = unknown; then
4239 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4240 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4241 if test "${ac_cv_sys_large_files+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 @%:@include <sys/types.h>
4252 /* Check that off_t can represent 2**63 - 1 correctly.
4253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4254 since some C++ compilers masquerading as C compilers
4255 incorrectly reject 9223372036854775807. */
4256 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4258 && LARGE_OFF_T % 2147483647 == 1)
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_compile") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest.$ac_objext; then
4285 ac_cv_sys_large_files=no; break
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 @%:@define _LARGE_FILES 1
4301 @%:@include <sys/types.h>
4302 /* Check that off_t can represent 2**63 - 1 correctly.
4303 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4304 since some C++ compilers masquerading as C compilers
4305 incorrectly reject 9223372036854775807. */
4306 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4307 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4308 && LARGE_OFF_T % 2147483647 == 1)
4318 rm -f conftest.$ac_objext
4319 if { (ac_try="$ac_compile"
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_compile") 2>conftest.er1
4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && {
4332 test -z "$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 } && test -s conftest.$ac_objext; then
4335 ac_cv_sys_large_files=1; break
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_cv_sys_large_files=unknown
4348 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4349 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4350 case $ac_cv_sys_large_files in #(
4353 cat >>confdefs.h <<_ACEOF
4354 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4364 ac_config_headers="$ac_config_headers support/include/config.h"
4367 # Checks for programs.
4369 ac_cpp='$CXXCPP $CPPFLAGS'
4370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4373 if test -z "$CXX"; then
4374 if test -n "$CCC"; then
4377 if test -n "$ac_tool_prefix"; then
4378 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_CXX+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 if test -n "$CXX"; then
4388 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 if test -n "$CXX"; then
4409 { echo "$as_me:$LINENO: result: $CXX" >&5
4410 echo "${ECHO_T}$CXX" >&6; }
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4417 test -n "$CXX" && break
4420 if test -z "$CXX"; then
4422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4424 # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy $ac_prog; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 if test -n "$ac_ct_CXX"; then
4432 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441 ac_cv_prog_ac_ct_CXX="$ac_prog"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4452 if test -n "$ac_ct_CXX"; then
4453 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4454 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4456 { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4461 test -n "$ac_ct_CXX" && break
4464 if test "x$ac_ct_CXX" = x; then
4467 case $cross_compiling:$ac_tool_warned in
4469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4470 whose name does not start with the host triplet. If you think this
4471 configuration is useful to you, please write to autoconf@gnu.org." >&5
4472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4473 whose name does not start with the host triplet. If you think this
4474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4475 ac_tool_warned=yes ;;
4483 # Provide some information about the compiler.
4484 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4485 ac_compiler=`set X $ac_compile; echo $2`
4486 { (ac_try="$ac_compiler --version >&5"
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_compiler --version >&5") 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }
4496 { (ac_try="$ac_compiler -v >&5"
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_compiler -v >&5") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }
4506 { (ac_try="$ac_compiler -V >&5"
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_compiler -V >&5") 2>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }
4517 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4518 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_compile") 2>conftest.er1
4549 grep -v '^ *+' conftest.er1 >conftest.err
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } && {
4554 test -z "$ac_cxx_werror_flag" ||
4555 test ! -s conftest.err
4556 } && test -s conftest.$ac_objext; then
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4569 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4570 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4571 GXX=`test $ac_compiler_gnu = yes && echo yes`
4572 ac_test_CXXFLAGS=${CXXFLAGS+set}
4573 ac_save_CXXFLAGS=$CXXFLAGS
4574 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4575 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4576 if test "${ac_cv_prog_cxx_g+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4580 ac_cxx_werror_flag=yes
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4598 rm -f conftest.$ac_objext
4599 if { (ac_try="$ac_compile"
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_compile") 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && {
4612 test -z "$ac_cxx_werror_flag" ||
4613 test ! -s conftest.err
4614 } && test -s conftest.$ac_objext; then
4615 ac_cv_prog_cxx_g=yes
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4621 cat >conftest.$ac_ext <<_ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_cxx_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4684 grep -v '^ *+' conftest.er1 >conftest.err
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_cxx_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_cv_prog_cxx_g=yes
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4709 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4710 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4711 if test "$ac_test_CXXFLAGS" = set; then
4712 CXXFLAGS=$ac_save_CXXFLAGS
4713 elif test $ac_cv_prog_cxx_g = yes; then
4714 if test "$GXX" = yes; then
4720 if test "$GXX" = yes; then
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732 depcc="$CXX" am_compiler_list=
4734 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4735 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4736 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4740 # We make a subdir and do the tests there. Otherwise we can end up
4741 # making bogus files that we don't know about and never remove. For
4742 # instance it was reported that on HP-UX the gcc test will end up
4743 # making a dummy file named `D' -- because `-MD' means `put the output
4746 # Copy depcomp to subdir because otherwise we won't find it if we're
4747 # using a relative directory.
4748 cp "$am_depcomp" conftest.dir
4750 # We will build objects and dependencies in a subdirectory because
4751 # it helps to detect inapplicable dependency modes. For instance
4752 # both Tru64's cc and ICC support -MD to output dependencies as a
4753 # side effect of compilation, but ICC will put the dependencies in
4754 # the current directory while Tru64 will put them in the object
4758 am_cv_CXX_dependencies_compiler_type=none
4759 if test "$am_compiler_list" = ""; then
4760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4762 for depmode in $am_compiler_list; do
4763 # Setup a source with many dependencies, because some compilers
4764 # like to wrap large dependency lists on column 80 (with \), and
4765 # we should not choose a depcomp mode which is confused by this.
4767 # We need to recreate these files for each test, as the compiler may
4768 # overwrite some of them when testing with obscure command lines.
4769 # This happens at least with the AIX C compiler.
4771 for i in 1 2 3 4 5 6; do
4772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4774 # Solaris 8's {/usr,}/bin/sh.
4775 touch sub/conftst$i.h
4777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4781 # after this tag, mechanisms are not by side-effect, so they'll
4782 # only be used when explicitly requested
4783 if test "x$enable_dependency_tracking" = xyes; then
4791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4792 # mode. It turns out that the SunPro C++ compiler does not properly
4793 # handle `-M -o', and we need to detect this.
4794 if depmode=$depmode \
4795 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4797 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4798 >/dev/null 2>conftest.err &&
4799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4802 # icc doesn't choke on unknown options, it will just issue warnings
4803 # or remarks (even with -Werror). So we grep stderr for any message
4804 # that says an option was ignored or not supported.
4805 # When given -MP, icc 7.0 and 7.1 complain thusly:
4806 # icc: Command line warning: ignoring option '-M'; no argument required
4807 # The diagnosis changed in icc 8.0:
4808 # icc: Command line remark: option '-MP' not supported
4809 if (grep 'ignoring option' conftest.err ||
4810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4811 am_cv_CXX_dependencies_compiler_type=$depmode
4820 am_cv_CXX_dependencies_compiler_type=none
4824 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4825 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4826 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4831 test "x$enable_dependency_tracking" != xno \
4832 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4833 am__fastdepCXX_TRUE=
4834 am__fastdepCXX_FALSE='#'
4836 am__fastdepCXX_TRUE='#'
4837 am__fastdepCXX_FALSE=
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 if test -n "$ac_tool_prefix"; then
4847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_prog_CC+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 if test -n "$CC"; then
4855 ac_cv_prog_CC="$CC" # Let the user override the test.
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 if test -n "$CC"; then
4876 { echo "$as_me:$LINENO: result: $CC" >&5
4877 echo "${ECHO_T}$CC" >&6; }
4879 { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4885 if test -z "$ac_cv_prog_CC"; then
4887 # Extract the first word of "gcc", so it can be a program name with args.
4888 set dummy gcc; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 if test -n "$ac_ct_CC"; then
4895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_ac_ct_CC="gcc"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4915 if test -n "$ac_ct_CC"; then
4916 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4917 echo "${ECHO_T}$ac_ct_CC" >&6; }
4919 { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4923 if test "x$ac_ct_CC" = x; then
4926 case $cross_compiling:$ac_tool_warned in
4928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4929 whose name does not start with the host triplet. If you think this
4930 configuration is useful to you, please write to autoconf@gnu.org." >&5
4931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4932 whose name does not start with the host triplet. If you think this
4933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4934 ac_tool_warned=yes ;;
4942 if test -z "$CC"; then
4943 if test -n "$ac_tool_prefix"; then
4944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4945 set dummy ${ac_tool_prefix}cc; ac_word=$2
4946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4948 if test "${ac_cv_prog_CC+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 if test -n "$CC"; then
4952 ac_cv_prog_CC="$CC" # Let the user override the test.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_CC="${ac_tool_prefix}cc"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 if test -n "$CC"; then
4973 { echo "$as_me:$LINENO: result: $CC" >&5
4974 echo "${ECHO_T}$CC" >&6; }
4976 { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4983 if test -z "$CC"; then
4984 # Extract the first word of "cc", so it can be a program name with args.
4985 set dummy cc; ac_word=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_prog_CC+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test -n "$CC"; then
4992 ac_cv_prog_CC="$CC" # Let the user override the test.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5003 ac_prog_rejected=yes
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 if test $ac_prog_rejected = yes; then
5015 # We found a bogon in the path, so make sure we never use it.
5016 set dummy $ac_cv_prog_CC
5018 if test $@%:@ != 0; then
5019 # We chose a different compiler from the bogus one.
5020 # However, it has the same basename, so the bogon will be chosen
5021 # first if we set CC to just the basename; use the full file name.
5023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5029 if test -n "$CC"; then
5030 { echo "$as_me:$LINENO: result: $CC" >&5
5031 echo "${ECHO_T}$CC" >&6; }
5033 { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5039 if test -z "$CC"; then
5040 if test -n "$ac_tool_prefix"; then
5041 for ac_prog in cl.exe
5043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_prog_CC+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 if test -n "$CC"; then
5051 ac_cv_prog_CC="$CC" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 if test -n "$CC"; then
5072 { echo "$as_me:$LINENO: result: $CC" >&5
5073 echo "${ECHO_T}$CC" >&6; }
5075 { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5080 test -n "$CC" && break
5083 if test -z "$CC"; then
5085 for ac_prog in cl.exe
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 if test -n "$ac_ct_CC"; then
5095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_ac_ct_CC="$ac_prog"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5115 if test -n "$ac_ct_CC"; then
5116 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5117 echo "${ECHO_T}$ac_ct_CC" >&6; }
5119 { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5124 test -n "$ac_ct_CC" && break
5127 if test "x$ac_ct_CC" = x; then
5130 case $cross_compiling:$ac_tool_warned in
5132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5133 whose name does not start with the host triplet. If you think this
5134 configuration is useful to you, please write to autoconf@gnu.org." >&5
5135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5136 whose name does not start with the host triplet. If you think this
5137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5138 ac_tool_warned=yes ;;
5147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: no acceptable C compiler found in \$PATH
5150 See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; }
5153 # Provide some information about the compiler.
5154 echo "$as_me:$LINENO: checking for C compiler version" >&5
5155 ac_compiler=`set X $ac_compile; echo $2`
5156 { (ac_try="$ac_compiler --version >&5"
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_compiler --version >&5") 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }
5166 { (ac_try="$ac_compiler -v >&5"
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_compiler -v >&5") 2>&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }
5176 { (ac_try="$ac_compiler -V >&5"
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_compiler -V >&5") 2>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }
5187 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5188 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5189 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5210 rm -f conftest.$ac_objext
5211 if { (ac_try="$ac_compile"
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_compile") 2>conftest.er1
5219 grep -v '^ *+' conftest.er1 >conftest.err
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } && {
5224 test -z "$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 } && test -s conftest.$ac_objext; then
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5239 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5240 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5241 GCC=`test $ac_compiler_gnu = yes && echo yes`
5242 ac_test_CFLAGS=${CFLAGS+set}
5243 ac_save_CFLAGS=$CFLAGS
5244 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5245 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5246 if test "${ac_cv_prog_cc_g+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 ac_save_c_werror_flag=$ac_c_werror_flag
5250 ac_c_werror_flag=yes
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5268 rm -f conftest.$ac_objext
5269 if { (ac_try="$ac_compile"
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_compile") 2>conftest.er1
5277 grep -v '^ *+' conftest.er1 >conftest.err
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } && {
5282 test -z "$ac_c_werror_flag" ||
5283 test ! -s conftest.err
5284 } && test -s conftest.$ac_objext; then
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5306 rm -f conftest.$ac_objext
5307 if { (ac_try="$ac_compile"
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compile") 2>conftest.er1
5315 grep -v '^ *+' conftest.er1 >conftest.err
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest.$ac_objext; then
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_c_werror_flag=$ac_save_c_werror_flag
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5345 rm -f conftest.$ac_objext
5346 if { (ac_try="$ac_compile"
5348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349 *) ac_try_echo=$ac_try;;
5351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5352 (eval "$ac_compile") 2>conftest.er1
5354 grep -v '^ *+' conftest.er1 >conftest.err
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } && {
5359 test -z "$ac_c_werror_flag" ||
5360 test ! -s conftest.err
5361 } && test -s conftest.$ac_objext; then
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 ac_c_werror_flag=$ac_save_c_werror_flag
5379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5380 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5381 if test "$ac_test_CFLAGS" = set; then
5382 CFLAGS=$ac_save_CFLAGS
5383 elif test $ac_cv_prog_cc_g = yes; then
5384 if test "$GCC" = yes; then
5390 if test "$GCC" = yes; then
5396 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5397 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5398 if test "${ac_cv_prog_cc_c89+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 ac_cv_prog_cc_c89=no
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5411 #include <sys/types.h>
5412 #include <sys/stat.h>
5413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5414 struct buf { int x; };
5415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5416 static char *e (p, i)
5422 static char *f (char * (*g) (char **, int), char **p, ...)
5427 s = g (p, va_arg (v,int));
5432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5433 function prototypes and stuff, but not '\xHH' hex character constants.
5434 These don't provoke an error unfortunately, instead are silently treated
5435 as 'x'. The following induces an error, until -std is added to get
5436 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5437 array size at least. It's necessary to write '\x00'==0 to get something
5438 that's true only with -std. */
5439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5442 inside strings and character constants. */
5444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5446 int test (int i, double x);
5447 struct s1 {int (*f) (int a);};
5448 struct s2 {int (*f) (double a);};
5449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5461 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5463 CC="$ac_save_CC $ac_arg"
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_cv_prog_cc_c89=$ac_arg
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5489 rm -f core conftest.err conftest.$ac_objext
5490 test "x$ac_cv_prog_cc_c89" != "xno" && break
5492 rm -f conftest.$ac_ext
5497 case "x$ac_cv_prog_cc_c89" in
5499 { echo "$as_me:$LINENO: result: none needed" >&5
5500 echo "${ECHO_T}none needed" >&6; } ;;
5502 { echo "$as_me:$LINENO: result: unsupported" >&5
5503 echo "${ECHO_T}unsupported" >&6; } ;;
5505 CC="$CC $ac_cv_prog_cc_c89"
5506 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5507 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517 depcc="$CC" am_compiler_list=
5519 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5520 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5521 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5525 # We make a subdir and do the tests there. Otherwise we can end up
5526 # making bogus files that we don't know about and never remove. For
5527 # instance it was reported that on HP-UX the gcc test will end up
5528 # making a dummy file named `D' -- because `-MD' means `put the output
5531 # Copy depcomp to subdir because otherwise we won't find it if we're
5532 # using a relative directory.
5533 cp "$am_depcomp" conftest.dir
5535 # We will build objects and dependencies in a subdirectory because
5536 # it helps to detect inapplicable dependency modes. For instance
5537 # both Tru64's cc and ICC support -MD to output dependencies as a
5538 # side effect of compilation, but ICC will put the dependencies in
5539 # the current directory while Tru64 will put them in the object
5543 am_cv_CC_dependencies_compiler_type=none
5544 if test "$am_compiler_list" = ""; then
5545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5547 for depmode in $am_compiler_list; do
5548 # Setup a source with many dependencies, because some compilers
5549 # like to wrap large dependency lists on column 80 (with \), and
5550 # we should not choose a depcomp mode which is confused by this.
5552 # We need to recreate these files for each test, as the compiler may
5553 # overwrite some of them when testing with obscure command lines.
5554 # This happens at least with the AIX C compiler.
5556 for i in 1 2 3 4 5 6; do
5557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5558 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5559 # Solaris 8's {/usr,}/bin/sh.
5560 touch sub/conftst$i.h
5562 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5566 # after this tag, mechanisms are not by side-effect, so they'll
5567 # only be used when explicitly requested
5568 if test "x$enable_dependency_tracking" = xyes; then
5576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5577 # mode. It turns out that the SunPro C++ compiler does not properly
5578 # handle `-M -o', and we need to detect this.
5579 if depmode=$depmode \
5580 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5582 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5583 >/dev/null 2>conftest.err &&
5584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5585 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5587 # icc doesn't choke on unknown options, it will just issue warnings
5588 # or remarks (even with -Werror). So we grep stderr for any message
5589 # that says an option was ignored or not supported.
5590 # When given -MP, icc 7.0 and 7.1 complain thusly:
5591 # icc: Command line warning: ignoring option '-M'; no argument required
5592 # The diagnosis changed in icc 8.0:
5593 # icc: Command line remark: option '-MP' not supported
5594 if (grep 'ignoring option' conftest.err ||
5595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5596 am_cv_CC_dependencies_compiler_type=$depmode
5605 am_cv_CC_dependencies_compiler_type=none
5609 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5610 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5611 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5616 test "x$enable_dependency_tracking" != xno \
5617 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5619 am__fastdepCC_FALSE='#'
5621 am__fastdepCC_TRUE='#'
5622 am__fastdepCC_FALSE=
5627 ac_cpp='$CPP $CPPFLAGS'
5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5632 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5633 # On Suns, sometimes $CPP names a directory.
5634 if test -n "$CPP" && test -d "$CPP"; then
5637 if test -z "$CPP"; then
5638 if test "${ac_cv_prog_CPP+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 # Double quotes because CPP needs to be expanded
5642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5645 for ac_c_preproc_warn_flag in '' yes
5647 # Use a header file that comes with gcc, so configuring glibc
5648 # with a fresh cross-compiler works.
5649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650 # <limits.h> exists even on freestanding compilers.
5651 # On the NeXT, cc -E runs the code through the compiler's parser,
5652 # not just through cpp. "Syntax error" is here to catch this case.
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5660 @%:@ include <limits.h>
5662 @%:@ include <assert.h>
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5674 grep -v '^ *+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } >/dev/null && {
5679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 # Broken: fails on valid input.
5691 rm -f conftest.err conftest.$ac_ext
5693 # OK, works on sane cases. Now check whether nonexistent headers
5694 # can be detected and how.
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 @%:@include <ac_nonexistent.h>
5703 if { (ac_try="$ac_cpp conftest.$ac_ext"
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev/null && {
5716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5719 # Broken: success on invalid input.
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 # Passes both tests.
5730 rm -f conftest.err conftest.$ac_ext
5733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5734 rm -f conftest.err conftest.$ac_ext
5735 if $ac_preproc_ok; then
5747 { echo "$as_me:$LINENO: result: $CPP" >&5
5748 echo "${ECHO_T}$CPP" >&6; }
5750 for ac_c_preproc_warn_flag in '' yes
5752 # Use a header file that comes with gcc, so configuring glibc
5753 # with a fresh cross-compiler works.
5754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755 # <limits.h> exists even on freestanding compilers.
5756 # On the NeXT, cc -E runs the code through the compiler's parser,
5757 # not just through cpp. "Syntax error" is here to catch this case.
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5765 @%:@ include <limits.h>
5767 @%:@ include <assert.h>
5771 if { (ac_try="$ac_cpp conftest.$ac_ext"
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5779 grep -v '^ *+' conftest.er1 >conftest.err
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } >/dev/null && {
5784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5785 test ! -s conftest.err
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 # Broken: fails on valid input.
5796 rm -f conftest.err conftest.$ac_ext
5798 # OK, works on sane cases. Now check whether nonexistent headers
5799 # can be detected and how.
5800 cat >conftest.$ac_ext <<_ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 @%:@include <ac_nonexistent.h>
5808 if { (ac_try="$ac_cpp conftest.$ac_ext"
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1 >conftest.err
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } >/dev/null && {
5821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5824 # Broken: success on invalid input.
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 # Passes both tests.
5835 rm -f conftest.err conftest.$ac_ext
5838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5839 rm -f conftest.err conftest.$ac_ext
5840 if $ac_preproc_ok; then
5843 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5844 See \`config.log' for more details." >&5
5845 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5846 See \`config.log' for more details." >&2;}
5847 { (exit 1); exit 1; }; }
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856 # Find a good install program. We prefer a C program (faster),
5857 # so one script is as good as another. But avoid the broken or
5858 # incompatible versions:
5859 # SysV /etc/install, /usr/sbin/install
5860 # SunOS /usr/etc/install
5861 # IRIX /sbin/install
5863 # AmigaOS /C/install, which installs bootblocks on floppy discs
5864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5867 # OS/2's system install, which has a completely different semantic
5868 # ./install, which can be erroneously created by make from ./install.sh.
5869 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5870 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5871 if test -z "$INSTALL"; then
5872 if test "${ac_cv_path_install+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 test -z "$as_dir" && as_dir=.
5880 # Account for people who put trailing slashes in PATH elements.
5882 ./ | .// | /cC/* | \
5883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5884 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5887 # OSF1 and SCO ODT 3.0 have their own names for install.
5888 # Don't use installbsd from OSF since it installs stuff as root
5890 for ac_prog in ginstall scoinst install; do
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5893 if test $ac_prog = install &&
5894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5895 # AIX install. It has an incompatible calling convention.
5897 elif test $ac_prog = install &&
5898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5899 # program-specific install script used by HP pwplus--don't use.
5902 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5915 if test "${ac_cv_path_install+set}" = set; then
5916 INSTALL=$ac_cv_path_install
5918 # As a last resort, use the slow shell script. Don't cache a
5919 # value for INSTALL within a source directory, because that will
5920 # break other packages using the cache if that directory is
5921 # removed, or if the value is a relative name.
5922 INSTALL=$ac_install_sh
5925 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5926 echo "${ECHO_T}$INSTALL" >&6; }
5928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5929 # It thinks the first close brace ends the variable substitution.
5930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5936 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5937 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5939 if test "$LN_S" = "ln -s"; then
5940 { echo "$as_me:$LINENO: result: yes" >&5
5941 echo "${ECHO_T}yes" >&6; }
5943 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5944 echo "${ECHO_T}no, using $LN_S" >&6; }
5947 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5948 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5949 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 cat >conftest.make <<\_ACEOF
5956 @echo '@@@%%%=$(MAKE)=@@@%%%'
5958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5961 eval ac_cv_prog_make_${ac_make}_set=yes;;
5963 eval ac_cv_prog_make_${ac_make}_set=no;;
5967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5968 { echo "$as_me:$LINENO: result: yes" >&5
5969 echo "${ECHO_T}yes" >&6; }
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974 SET_MAKE="MAKE=${MAKE-make}"
5977 # Check whether --enable-shared was given.
5978 if test "${enable_shared+set}" = set; then
5979 enableval=$enable_shared; p=${PACKAGE-default}
5981 yes) enable_shared=yes ;;
5982 no) enable_shared=no ;;
5985 # Look at the argument we got. We use all the common list separators.
5986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5987 for pkg in $enableval; do
5989 if test "X$pkg" = "X$p"; then
6001 # Check whether --enable-static was given.
6002 if test "${enable_static+set}" = set; then
6003 enableval=$enable_static; p=${PACKAGE-default}
6005 yes) enable_static=yes ;;
6006 no) enable_static=no ;;
6009 # Look at the argument we got. We use all the common list separators.
6010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6011 for pkg in $enableval; do
6013 if test "X$pkg" = "X$p"; then
6025 # Check whether --enable-fast-install was given.
6026 if test "${enable_fast_install+set}" = set; then
6027 enableval=$enable_fast_install; p=${PACKAGE-default}
6029 yes) enable_fast_install=yes ;;
6030 no) enable_fast_install=no ;;
6032 enable_fast_install=no
6033 # Look at the argument we got. We use all the common list separators.
6034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6035 for pkg in $enableval; do
6037 if test "X$pkg" = "X$p"; then
6038 enable_fast_install=yes
6045 enable_fast_install=yes
6049 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6050 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6051 if test "${lt_cv_path_SED+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 # Loop through the user's path and test for sed and gsed.
6055 # Then use that list of sed's as ones to test for truncation.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for lt_ac_prog in sed gsed; do
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6064 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6072 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6073 # along with /bin/sed that truncates output.
6074 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6075 test ! -f $lt_ac_sed && continue
6076 cat /dev/null > conftest.in
6078 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6079 # Check for GNU sed and select it if it is found.
6080 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6081 lt_cv_path_SED=$lt_ac_sed
6085 cat conftest.in conftest.in >conftest.tmp
6086 mv conftest.tmp conftest.in
6087 cp conftest.in conftest.nl
6089 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6090 cmp -s conftest.out conftest.nl || break
6091 # 10000 chars as input seems more than enough
6092 test $lt_ac_count -gt 10 && break
6093 lt_ac_count=`expr $lt_ac_count + 1`
6094 if test $lt_ac_count -gt $lt_ac_max; then
6095 lt_ac_max=$lt_ac_count
6096 lt_cv_path_SED=$lt_ac_sed
6105 { echo "$as_me:$LINENO: result: $SED" >&5
6106 echo "${ECHO_T}$SED" >&6; }
6108 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6109 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6110 if test "${ac_cv_path_GREP+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 # Extract the first word of "grep ggrep" to use in msg output
6114 if test -z "$GREP"; then
6115 set dummy grep ggrep; ac_prog_name=$2
6116 if test "${ac_cv_path_GREP+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 ac_path_GREP_found=false
6120 # Loop through the user's path and test for each of PROGNAME-LIST
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6125 test -z "$as_dir" && as_dir=.
6126 for ac_prog in grep ggrep; do
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6129 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6130 # Check for GNU ac_path_GREP and select it if it is found.
6131 # Check for GNU $ac_path_GREP
6132 case `"$ac_path_GREP" --version 2>&1` in
6134 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6137 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6140 cat "conftest.in" "conftest.in" >"conftest.tmp"
6141 mv "conftest.tmp" "conftest.in"
6142 cp "conftest.in" "conftest.nl"
6143 echo 'GREP' >> "conftest.nl"
6144 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6146 ac_count=`expr $ac_count + 1`
6147 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6148 # Best one so far, save it but keep looking for a better one
6149 ac_cv_path_GREP="$ac_path_GREP"
6150 ac_path_GREP_max=$ac_count
6152 # 10*(2^10) chars as input seems more than enough
6153 test $ac_count -gt 10 && break
6155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6159 $ac_path_GREP_found && break 3
6169 GREP="$ac_cv_path_GREP"
6170 if test -z "$GREP"; then
6171 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6172 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6173 { (exit 1); exit 1; }; }
6177 ac_cv_path_GREP=$GREP
6182 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6183 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6184 GREP="$ac_cv_path_GREP"
6187 { echo "$as_me:$LINENO: checking for egrep" >&5
6188 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_EGREP+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6193 then ac_cv_path_EGREP="$GREP -E"
6195 # Extract the first word of "egrep" to use in msg output
6196 if test -z "$EGREP"; then
6197 set dummy egrep; ac_prog_name=$2
6198 if test "${ac_cv_path_EGREP+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 ac_path_EGREP_found=false
6202 # Loop through the user's path and test for each of PROGNAME-LIST
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6207 test -z "$as_dir" && as_dir=.
6208 for ac_prog in egrep; do
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6211 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6212 # Check for GNU ac_path_EGREP and select it if it is found.
6213 # Check for GNU $ac_path_EGREP
6214 case `"$ac_path_EGREP" --version 2>&1` in
6216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6219 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6222 cat "conftest.in" "conftest.in" >"conftest.tmp"
6223 mv "conftest.tmp" "conftest.in"
6224 cp "conftest.in" "conftest.nl"
6225 echo 'EGREP' >> "conftest.nl"
6226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6228 ac_count=`expr $ac_count + 1`
6229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6230 # Best one so far, save it but keep looking for a better one
6231 ac_cv_path_EGREP="$ac_path_EGREP"
6232 ac_path_EGREP_max=$ac_count
6234 # 10*(2^10) chars as input seems more than enough
6235 test $ac_count -gt 10 && break
6237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6241 $ac_path_EGREP_found && break 3
6251 EGREP="$ac_cv_path_EGREP"
6252 if test -z "$EGREP"; then
6253 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6254 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6255 { (exit 1); exit 1; }; }
6259 ac_cv_path_EGREP=$EGREP
6265 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6266 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6267 EGREP="$ac_cv_path_EGREP"
6271 # Check whether --with-gnu-ld was given.
6272 if test "${with_gnu_ld+set}" = set; then
6273 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6279 if test "$GCC" = yes; then
6280 # Check if gcc -print-prog-name=ld gives a path.
6281 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6282 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6285 # gcc leaves a trailing carriage return which upsets mingw
6286 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6288 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6291 # Accept absolute paths.
6293 re_direlt='/[^/][^/]*/\.\./'
6294 # Canonicalize the pathname of ld
6295 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6296 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6297 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6299 test -z "$LD" && LD="$ac_prog"
6302 # If it fails, then pretend we aren't using GCC.
6306 # If it is relative, then search for the first ld in PATH.
6310 elif test "$with_gnu_ld" = yes; then
6311 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6312 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6314 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6315 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6317 if test "${lt_cv_path_LD+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 if test -z "$LD"; then
6321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6322 for ac_dir in $PATH; do
6324 test -z "$ac_dir" && ac_dir=.
6325 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6326 lt_cv_path_LD="$ac_dir/$ac_prog"
6327 # Check to see if the program is GNU ld. I'd rather use --version,
6328 # but apparently some variants of GNU ld only accept -v.
6329 # Break only if it was the GNU/non-GNU ld that we prefer.
6330 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6331 *GNU* | *'with BFD'*)
6332 test "$with_gnu_ld" != no && break
6335 test "$with_gnu_ld" != yes && break
6342 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6347 if test -n "$LD"; then
6348 { echo "$as_me:$LINENO: result: $LD" >&5
6349 echo "${ECHO_T}$LD" >&6; }
6351 { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6354 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6355 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6356 { (exit 1); exit 1; }; }
6357 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6358 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6359 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6363 case `$LD -v 2>&1 </dev/null` in
6364 *GNU* | *'with BFD'*)
6365 lt_cv_prog_gnu_ld=yes
6368 lt_cv_prog_gnu_ld=no
6372 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6373 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6374 with_gnu_ld=$lt_cv_prog_gnu_ld
6377 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6378 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6379 if test "${lt_cv_ld_reload_flag+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 lt_cv_ld_reload_flag='-r'
6384 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6385 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6386 reload_flag=$lt_cv_ld_reload_flag
6387 case $reload_flag in
6389 *) reload_flag=" $reload_flag" ;;
6391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6394 if test "$GCC" = yes; then
6395 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6402 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6403 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6404 if test "${lt_cv_path_NM+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 if test -n "$NM"; then
6408 # Let the user override the test.
6411 lt_nm_to_check="${ac_tool_prefix}nm"
6412 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6413 lt_nm_to_check="$lt_nm_to_check nm"
6415 for lt_tmp_nm in $lt_nm_to_check; do
6416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6417 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6419 test -z "$ac_dir" && ac_dir=.
6420 tmp_nm="$ac_dir/$lt_tmp_nm"
6421 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6422 # Check to see if the nm accepts a BSD-compat flag.
6423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6424 # nm: unknown option "B" ignored
6425 # Tru64's nm complains that /dev/null is an invalid object file
6426 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6427 */dev/null* | *'Invalid file or object type'*)
6428 lt_cv_path_NM="$tmp_nm -B"
6432 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6434 lt_cv_path_NM="$tmp_nm -p"
6438 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6439 continue # so that we can try to find one that supports BSD flags
6448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6451 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6452 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6455 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6456 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6457 if test "${lt_cv_deplibs_check_method+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 lt_cv_file_magic_cmd='$MAGIC_CMD'
6461 lt_cv_file_magic_test_file=
6462 lt_cv_deplibs_check_method='unknown'
6463 # Need to set the preceding variable on all platforms that support
6464 # interlibrary dependencies.
6465 # 'none' -- dependencies not supported.
6466 # `unknown' -- same as none, but documents that we really don't know.
6467 # 'pass_all' -- all dependencies passed with no checks.
6468 # 'test_compile' -- check by making test program.
6469 # 'file_magic [[regex]]' -- check by looking for files in library path
6470 # which responds to the $file_magic_cmd with a given extended regex.
6471 # If you have `file' or equivalent on your system and you're not sure
6472 # whether `pass_all' will *always* work, you probably want this one.
6476 lt_cv_deplibs_check_method=pass_all
6480 lt_cv_deplibs_check_method=pass_all
6484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6485 lt_cv_file_magic_cmd='/usr/bin/file -L'
6486 lt_cv_file_magic_test_file=/shlib/libc.so
6490 # func_win32_libid is a shell function defined in ltmain.sh
6491 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6492 lt_cv_file_magic_cmd='func_win32_libid'
6496 # Base MSYS/MinGW do not provide the 'file' command needed by
6497 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6498 # unless we find 'file', for example because we are cross-compiling.
6499 if ( file / ) >/dev/null 2>&1; then
6500 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6501 lt_cv_file_magic_cmd='func_win32_libid'
6503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6504 lt_cv_file_magic_cmd='$OBJDUMP -f'
6508 darwin* | rhapsody*)
6509 lt_cv_deplibs_check_method=pass_all
6512 freebsd* | dragonfly*)
6513 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6516 # Not sure whether the presence of OpenBSD here was a mistake.
6517 # Let's accept both of them until this is cleared up.
6518 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6519 lt_cv_file_magic_cmd=/usr/bin/file
6520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6524 lt_cv_deplibs_check_method=pass_all
6529 lt_cv_deplibs_check_method=pass_all
6532 hpux10.20* | hpux11*)
6533 lt_cv_file_magic_cmd=/usr/bin/file
6536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6537 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6540 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]'
6541 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6551 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6555 irix5* | irix6* | nonstopux*)
6557 *-32|*"-32 ") libmagic=32-bit;;
6558 *-n32|*"-n32 ") libmagic=N32;;
6559 *-64|*"-64 ") libmagic=64-bit;;
6560 *) libmagic=never-match;;
6562 lt_cv_deplibs_check_method=pass_all
6565 # This must be Linux ELF.
6566 linux* | k*bsd*-gnu)
6567 lt_cv_deplibs_check_method=pass_all
6570 netbsd* | netbsdelf*-gnu)
6571 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6580 lt_cv_file_magic_cmd=/usr/bin/file
6581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6585 lt_cv_deplibs_check_method=unknown
6589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6596 osf3* | osf4* | osf5*)
6597 lt_cv_deplibs_check_method=pass_all
6601 lt_cv_deplibs_check_method=pass_all
6605 lt_cv_deplibs_check_method=pass_all
6609 case $host_vendor in
6611 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]'
6612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6615 lt_cv_deplibs_check_method=pass_all
6618 lt_cv_file_magic_cmd='/bin/file'
6619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6622 lt_cv_file_magic_cmd='/bin/file'
6623 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6624 lt_cv_file_magic_test_file=/lib/libc.so
6627 lt_cv_deplibs_check_method=pass_all
6630 lt_cv_deplibs_check_method=pass_all
6635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6636 lt_cv_deplibs_check_method=pass_all
6641 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6642 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6643 file_magic_cmd=$lt_cv_file_magic_cmd
6644 deplibs_check_method=$lt_cv_deplibs_check_method
6645 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6650 # If no C compiler was specified, use CC.
6653 # If no C compiler flags were specified, use CFLAGS.
6654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6656 # Allow CC to be a program name with arguments.
6659 # Check whether --enable-libtool-lock was given.
6660 if test "${enable_libtool_lock+set}" = set; then
6661 enableval=$enable_libtool_lock;
6664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6666 # Some flags need to be propagated to the compiler or linker for good
6670 # Find out which ABI we are using.
6671 echo 'int i;' > conftest.$ac_ext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; then
6677 case `/usr/bin/file conftest.$ac_objext` in
6689 # Find out which ABI we are using.
6690 echo '#line __oline__ "configure"' > conftest.$ac_ext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692 (eval $ac_compile) 2>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; then
6696 if test "$lt_cv_prog_gnu_ld" = yes; then
6697 case `/usr/bin/file conftest.$ac_objext` in
6699 LD="${LD-ld} -melf32bsmip"
6702 LD="${LD-ld} -melf32bmipn32"
6705 LD="${LD-ld} -melf64bmip"
6709 case `/usr/bin/file conftest.$ac_objext` in
6725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6726 s390*-*linux*|sparc*-*linux*)
6727 # Find out which ABI we are using.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 (eval $ac_compile) 2>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; then
6734 case `/usr/bin/file conftest.o` in
6737 x86_64-*kfreebsd*-gnu)
6738 LD="${LD-ld} -m elf_i386_fbsd"
6741 LD="${LD-ld} -m elf_i386"
6743 ppc64-*linux*|powerpc64-*linux*)
6744 LD="${LD-ld} -m elf32ppclinux"
6747 LD="${LD-ld} -m elf_s390"
6750 LD="${LD-ld} -m elf32_sparc"
6756 x86_64-*kfreebsd*-gnu)
6757 LD="${LD-ld} -m elf_x86_64_fbsd"
6760 LD="${LD-ld} -m elf_x86_64"
6762 ppc*-*linux*|powerpc*-*linux*)
6763 LD="${LD-ld} -m elf64ppc"
6766 LD="${LD-ld} -m elf64_s390"
6769 LD="${LD-ld} -m elf64_sparc"
6779 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6780 SAVE_CFLAGS="$CFLAGS"
6781 CFLAGS="$CFLAGS -belf"
6782 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6783 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6784 if test "${lt_cv_cc_needs_belf+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 ac_cpp='$CPP $CPPFLAGS'
6789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6793 cat >conftest.$ac_ext <<_ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6808 rm -f conftest.$ac_objext conftest$ac_exeext
6809 if { (ac_try="$ac_link"
6811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812 *) ac_try_echo=$ac_try;;
6814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815 (eval "$ac_link") 2>conftest.er1
6817 grep -v '^ *+' conftest.er1 >conftest.err
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest$ac_exeext &&
6825 $as_test_x conftest$ac_exeext; then
6826 lt_cv_cc_needs_belf=yes
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 lt_cv_cc_needs_belf=no
6834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6835 conftest$ac_exeext conftest.$ac_ext
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6843 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6844 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6845 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6846 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6847 CFLAGS="$SAVE_CFLAGS"
6851 # Find out which ABI we are using.
6852 echo 'int i;' > conftest.$ac_ext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; then
6858 case `/usr/bin/file conftest.o` in
6860 case $lt_cv_prog_gnu_ld in
6861 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6862 *) LD="${LD-ld} -64" ;;
6873 need_locks="$enable_libtool_lock"
6877 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6878 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6879 if test "${ac_cv_header_stdc+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 cat >conftest.$ac_ext <<_ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6901 rm -f conftest.$ac_objext
6902 if { (ac_try="$ac_compile"
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_compile") 2>conftest.er1
6910 grep -v '^ *+' conftest.er1 >conftest.err
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest.$ac_objext; then
6918 ac_cv_header_stdc=yes
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ac_cv_header_stdc=no
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 if test $ac_cv_header_stdc = yes; then
6929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6940 $EGREP "memchr" >/dev/null 2>&1; then
6943 ac_cv_header_stdc=no
6949 if test $ac_cv_header_stdc = yes; then
6950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6951 cat >conftest.$ac_ext <<_ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6961 $EGREP "free" >/dev/null 2>&1; then
6964 ac_cv_header_stdc=no
6970 if test $ac_cv_header_stdc = yes; then
6971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6972 if test "$cross_compiling" = yes; then
6975 cat >conftest.$ac_ext <<_ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6983 #if ((' ' & 0x0FF) == 0x020)
6984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6987 # define ISLOWER(c) \
6988 (('a' <= (c) && (c) <= 'i') \
6989 || ('j' <= (c) && (c) <= 'r') \
6990 || ('s' <= (c) && (c) <= 'z'))
6991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6999 for (i = 0; i < 256; i++)
7000 if (XOR (islower (i), ISLOWER (i))
7001 || toupper (i) != TOUPPER (i))
7006 rm -f conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_link") 2>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7017 { (case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_try") 2>&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7028 echo "$as_me: program exited with status $ac_status" >&5
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_cv_header_stdc=no
7035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7043 if test $ac_cv_header_stdc = yes; then
7045 cat >>confdefs.h <<\_ACEOF
7046 @%:@define STDC_HEADERS 1
7051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7062 inttypes.h stdint.h unistd.h
7064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 $ac_includes_default
7078 @%:@include <$ac_header>
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7097 eval "$as_ac_Header=yes"
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 eval "$as_ac_Header=no"
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 ac_res=`eval echo '${'$as_ac_Header'}'`
7108 { echo "$as_me:$LINENO: result: $ac_res" >&5
7109 echo "${ECHO_T}$ac_res" >&6; }
7110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7111 cat >>confdefs.h <<_ACEOF
7112 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7121 for ac_header in dlfcn.h
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_res=`eval echo '${'$as_ac_Header'}'`
7131 { echo "$as_me:$LINENO: result: $ac_res" >&5
7132 echo "${ECHO_T}$ac_res" >&6; }
7134 # Is the header compilable?
7135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7137 cat >conftest.$ac_ext <<_ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 $ac_includes_default
7144 @%:@include <$ac_header>
7146 rm -f conftest.$ac_objext
7147 if { (ac_try="$ac_compile"
7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153 (eval "$ac_compile") 2>conftest.er1
7155 grep -v '^ *+' conftest.er1 >conftest.err
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } && {
7160 test -z "$ac_c_werror_flag" ||
7161 test ! -s conftest.err
7162 } && test -s conftest.$ac_objext; then
7163 ac_header_compiler=yes
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_header_compiler=no
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7173 echo "${ECHO_T}$ac_header_compiler" >&6; }
7175 # Is the header present?
7176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7178 cat >conftest.$ac_ext <<_ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 @%:@include <$ac_header>
7186 if { (ac_try="$ac_cpp conftest.$ac_ext"
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7194 grep -v '^ *+' conftest.er1 >conftest.err
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } >/dev/null && {
7199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7200 test ! -s conftest.err
7202 ac_header_preproc=yes
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 ac_header_preproc=no
7210 rm -f conftest.err conftest.$ac_ext
7211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 echo "${ECHO_T}$ac_header_preproc" >&6; }
7214 # So? What about this header?
7215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7221 ac_header_preproc=yes
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7237 @%:@@%:@ ------------------------------- @%:@@%:@
7238 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
7239 @%:@@%:@ ------------------------------- @%:@@%:@
7241 ) | sed "s/^/$as_me: WARNING: /" >&2
7244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 eval "$as_ac_Header=\$ac_header_preproc"
7251 ac_res=`eval echo '${'$as_ac_Header'}'`
7252 { echo "$as_me:$LINENO: result: $ac_res" >&5
7253 echo "${ECHO_T}$ac_res" >&6; }
7256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7257 cat >>confdefs.h <<_ACEOF
7258 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7268 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7269 (test "X$CXX" != "Xg++"))) ; then
7271 ac_cpp='$CXXCPP $CPPFLAGS'
7272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7275 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7276 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7277 if test -z "$CXXCPP"; then
7278 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 # Double quotes because CXXCPP needs to be expanded
7282 for CXXCPP in "$CXX -E" "/lib/cpp"
7285 for ac_cxx_preproc_warn_flag in '' yes
7287 # Use a header file that comes with gcc, so configuring glibc
7288 # with a fresh cross-compiler works.
7289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7290 # <limits.h> exists even on freestanding compilers.
7291 # On the NeXT, cc -E runs the code through the compiler's parser,
7292 # not just through cpp. "Syntax error" is here to catch this case.
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7300 @%:@ include <limits.h>
7302 @%:@ include <assert.h>
7306 if { (ac_try="$ac_cpp conftest.$ac_ext"
7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7314 grep -v '^ *+' conftest.er1 >conftest.err
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } >/dev/null && {
7319 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7320 test ! -s conftest.err
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7327 # Broken: fails on valid input.
7331 rm -f conftest.err conftest.$ac_ext
7333 # OK, works on sane cases. Now check whether nonexistent headers
7334 # can be detected and how.
7335 cat >conftest.$ac_ext <<_ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 @%:@include <ac_nonexistent.h>
7343 if { (ac_try="$ac_cpp conftest.$ac_ext"
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } >/dev/null && {
7356 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7357 test ! -s conftest.err
7359 # Broken: success on invalid input.
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 # Passes both tests.
7370 rm -f conftest.err conftest.$ac_ext
7373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7374 rm -f conftest.err conftest.$ac_ext
7375 if $ac_preproc_ok; then
7380 ac_cv_prog_CXXCPP=$CXXCPP
7383 CXXCPP=$ac_cv_prog_CXXCPP
7385 ac_cv_prog_CXXCPP=$CXXCPP
7387 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7388 echo "${ECHO_T}$CXXCPP" >&6; }
7390 for ac_cxx_preproc_warn_flag in '' yes
7392 # Use a header file that comes with gcc, so configuring glibc
7393 # with a fresh cross-compiler works.
7394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7395 # <limits.h> exists even on freestanding compilers.
7396 # On the NeXT, cc -E runs the code through the compiler's parser,
7397 # not just through cpp. "Syntax error" is here to catch this case.
7398 cat >conftest.$ac_ext <<_ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7405 @%:@ include <limits.h>
7407 @%:@ include <assert.h>
7411 if { (ac_try="$ac_cpp conftest.$ac_ext"
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7419 grep -v '^ *+' conftest.er1 >conftest.err
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } >/dev/null && {
7424 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7425 test ! -s conftest.err
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 # Broken: fails on valid input.
7436 rm -f conftest.err conftest.$ac_ext
7438 # OK, works on sane cases. Now check whether nonexistent headers
7439 # can be detected and how.
7440 cat >conftest.$ac_ext <<_ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 @%:@include <ac_nonexistent.h>
7448 if { (ac_try="$ac_cpp conftest.$ac_ext"
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } >/dev/null && {
7461 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7462 test ! -s conftest.err
7464 # Broken: success on invalid input.
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 # Passes both tests.
7475 rm -f conftest.err conftest.$ac_ext
7478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7479 rm -f conftest.err conftest.$ac_ext
7480 if $ac_preproc_ok; then
7483 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7484 See \`config.log' for more details." >&5
7485 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7486 See \`config.log' for more details." >&2;}
7487 { (exit 1); exit 1; }; }
7491 ac_cpp='$CXXCPP $CPPFLAGS'
7492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7500 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7501 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7503 if test -n "$ac_tool_prefix"; then
7504 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
7506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_prog_F77+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 if test -n "$F77"; then
7514 ac_cv_prog_F77="$F77" # Let the user override the test.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 if test -n "$F77"; then
7535 { echo "$as_me:$LINENO: result: $F77" >&5
7536 echo "${ECHO_T}$F77" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 test -n "$F77" && break
7546 if test -z "$F77"; then
7548 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
7550 # Extract the first word of "$ac_prog", so it can be a program name with args.
7551 set dummy $ac_prog; ac_word=$2
7552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7554 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 if test -n "$ac_ct_F77"; then
7558 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_ac_ct_F77="$ac_prog"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7578 if test -n "$ac_ct_F77"; then
7579 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7580 echo "${ECHO_T}$ac_ct_F77" >&6; }
7582 { echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6; }
7587 test -n "$ac_ct_F77" && break
7590 if test "x$ac_ct_F77" = x; then
7593 case $cross_compiling:$ac_tool_warned in
7595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7596 whose name does not start with the host triplet. If you think this
7597 configuration is useful to you, please write to autoconf@gnu.org." >&5
7598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7599 whose name does not start with the host triplet. If you think this
7600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7601 ac_tool_warned=yes ;;
7608 # Provide some information about the compiler.
7609 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7610 ac_compiler=`set X $ac_compile; echo $2`
7611 { (ac_try="$ac_compiler --version >&5"
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_compiler --version >&5") 2>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }
7621 { (ac_try="$ac_compiler -v >&5"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_compiler -v >&5") 2>&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }
7631 { (ac_try="$ac_compiler -V >&5"
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637 (eval "$ac_compiler -V >&5") 2>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }
7643 # If we don't use `.F' as extension, the preprocessor is not run on the
7644 # input file. (Note that this only needs to work for GNU compilers.)
7647 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7648 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7649 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7669 grep -v '^ *+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_f77_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.$ac_objext; then
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7689 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7690 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7692 ac_test_FFLAGS=${FFLAGS+set}
7693 ac_save_FFLAGS=$FFLAGS
7695 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7696 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7697 if test "${ac_cv_prog_f77_g+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 cat >conftest.$ac_ext <<_ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713 (eval "$ac_compile") 2>conftest.er1
7715 grep -v '^ *+' conftest.er1 >conftest.err
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } && {
7720 test -z "$ac_f77_werror_flag" ||
7721 test ! -s conftest.err
7722 } && test -s conftest.$ac_objext; then
7723 ac_cv_prog_f77_g=yes
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7735 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7736 if test "$ac_test_FFLAGS" = set; then
7737 FFLAGS=$ac_save_FFLAGS
7738 elif test $ac_cv_prog_f77_g = yes; then
7739 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7745 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7752 G77=`test $ac_compiler_gnu = yes && echo yes`
7754 ac_cpp='$CPP $CPPFLAGS'
7755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7761 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7763 # find the maximum length of command line arguments
7764 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7765 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7766 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 # On DJGPP, this test can blow up pretty badly due to problems in libc
7775 # (any single argument exceeding 2000 bytes causes a buffer overrun
7776 # during glob expansion). Even if it were fixed, the result of this
7777 # check would be larger than it should be.
7778 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7782 # Under GNU Hurd, this test is not required because there is
7783 # no limit to the length of command line arguments.
7784 # Libtool will interpret -1 as no limit whatsoever
7785 lt_cv_sys_max_cmd_len=-1;
7789 # On Win9x/ME, this test blows up -- it succeeds, but takes
7790 # about 5 minutes as the teststring grows exponentially.
7791 # Worse, since 9x/ME are not pre-emptively multitasking,
7792 # you end up with a "frozen" computer, even though with patience
7793 # the test eventually succeeds (with a max line length of 256k).
7794 # Instead, let's just punt: use the minimum linelength reported by
7795 # all of the supported platforms: 8192 (on NT/2K/XP).
7796 lt_cv_sys_max_cmd_len=8192;
7800 # On AmigaOS with pdksh, this test takes hours, literally.
7801 # So we just punt and use a minimum line length of 8192.
7802 lt_cv_sys_max_cmd_len=8192;
7805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7806 # This has been around since 386BSD, at least. Likely further.
7807 if test -x /sbin/sysctl; then
7808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7809 elif test -x /usr/sbin/sysctl; then
7810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7814 # And add a safety zone
7815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7821 lt_cv_sys_max_cmd_len=196608
7825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7827 # nice to cause kernel panics so lets avoid the loop below.
7828 # First set a reasonable default.
7829 lt_cv_sys_max_cmd_len=16384
7831 if test -x /sbin/sysconfig; then
7832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7833 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7838 lt_cv_sys_max_cmd_len=102400
7840 sysv5* | sco5v6* | sysv4.2uw2*)
7841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7842 if test -n "$kargmax"; then
7843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7845 lt_cv_sys_max_cmd_len=32768
7849 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7850 if test -n "$lt_cv_sys_max_cmd_len"; then
7851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7854 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7855 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7856 = "XX$teststring") >/dev/null 2>&1 &&
7857 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7858 lt_cv_sys_max_cmd_len=$new_result &&
7859 test $i != 17 # 1/2 MB should be enough
7862 teststring=$teststring$teststring
7865 # Add a significant safety factor because C++ compilers can tack on massive
7866 # amounts of additional arguments before passing them to the linker.
7867 # It appears as though 1/2 is a usable value.
7868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7875 if test -n $lt_cv_sys_max_cmd_len ; then
7876 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7877 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7879 { echo "$as_me:$LINENO: result: none" >&5
7880 echo "${ECHO_T}none" >&6; }
7887 # Check for command to grab the raw symbol name followed by C symbol from nm.
7888 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7889 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7890 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 # These are sane defaults that work on at least a few old systems.
7895 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7897 # Character class describing NM global symbol codes.
7898 symcode='[BCDEGRST]'
7900 # Regexp to match symbols that can be accessed directly from C.
7901 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7903 # Transform an extracted symbol line into a proper C declaration
7904 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7906 # Transform an extracted symbol line into symbol name and symbol address
7907 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'"
7909 # Define system-specific variables.
7914 cygwin* | mingw* | pw32*)
7915 symcode='[ABCDGISTW]'
7917 hpux*) # Its linker distinguishes data from code symbols
7918 if test "$host_cpu" = ia64; then
7919 symcode='[ABCDEGRST]'
7921 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7922 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'"
7924 linux* | k*bsd*-gnu)
7925 if test "$host_cpu" = ia64; then
7926 symcode='[ABCDGIRSTW]'
7927 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7928 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7932 symcode='[BCDEGRST]'
7935 symcode='[BCDEGQRST]'
7946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7954 # Handle CRLF in mingw tool chain
7958 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7962 # If we're using GNU nm, then use its standard symbol codes.
7963 case `$NM -V 2>&1` in
7964 *GNU* | *'with BFD'*)
7965 symcode='[ABCDGIRSTW]' ;;
7968 # Try without a prefix undercore, then with it.
7969 for ac_symprfx in "" "_"; do
7971 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7972 symxfrm="\\1 $ac_symprfx\\2 \\2"
7974 # Write the raw and C identifiers.
7975 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7977 # Check to see that the pipe works correctly.
7981 cat > conftest.$ac_ext <<EOF
7986 void nm_test_func(){}
7990 int main(){nm_test_var='a';nm_test_func();return(0);}
7993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994 (eval $ac_compile) 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; then
7998 # Now try to grab the symbols.
8000 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8001 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } && test -s "$nlist"; then
8005 # Try sorting and uniquifying the output.
8006 if sort "$nlist" | uniq > "$nlist"T; then
8007 mv -f "$nlist"T "$nlist"
8012 # Make sure that we snagged all the symbols we need.
8013 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8014 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8015 cat <<EOF > conftest.$ac_ext
8021 # Now generate the symbol file.
8022 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8024 cat <<EOF >> conftest.$ac_ext
8025 #if defined (__STDC__) && __STDC__
8026 # define lt_ptr_t void *
8028 # define lt_ptr_t char *
8032 /* The mapping between symbol names and symbols. */
8037 lt_preloaded_symbols[] =
8040 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8041 cat <<\EOF >> conftest.$ac_ext
8049 # Now try linking the two files.
8050 mv conftest.$ac_objext conftstm.$ac_objext
8051 lt_save_LIBS="$LIBS"
8052 lt_save_CFLAGS="$CFLAGS"
8053 LIBS="conftstm.$ac_objext"
8054 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8056 (eval $ac_link) 2>&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8062 LIBS="$lt_save_LIBS"
8063 CFLAGS="$lt_save_CFLAGS"
8065 echo "cannot find nm_test_func in $nlist" >&5
8068 echo "cannot find nm_test_var in $nlist" >&5
8071 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8074 echo "$progname: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8077 rm -f conftest* conftst*
8079 # Do not use the global_symbol_pipe unless it works.
8080 if test "$pipe_works" = yes; then
8083 lt_cv_sys_global_symbol_pipe=
8089 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8090 lt_cv_sys_global_symbol_to_cdecl=
8092 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8093 { echo "$as_me:$LINENO: result: failed" >&5
8094 echo "${ECHO_T}failed" >&6; }
8096 { echo "$as_me:$LINENO: result: ok" >&5
8097 echo "${ECHO_T}ok" >&6; }
8100 { echo "$as_me:$LINENO: checking for objdir" >&5
8101 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8102 if test "${lt_cv_objdir+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 rm -f .libs 2>/dev/null
8106 mkdir .libs 2>/dev/null
8107 if test -d .libs; then
8110 # MS-DOS does not allow filenames that begin with a dot.
8113 rmdir .libs 2>/dev/null
8115 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8116 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8117 objdir=$lt_cv_objdir
8125 # AIX sometimes has problems with the GCC collect2 program. For some
8126 # reason, if we set the COLLECT_NAMES environment variable, the problems
8127 # vanish in a puff of smoke.
8128 if test "X${COLLECT_NAMES+set}" != Xset; then
8130 export COLLECT_NAMES
8135 # Sed substitution that helps us do robust quoting. It backslashifies
8136 # metacharacters that are still active within double-quoted strings.
8137 Xsed='sed -e 1s/^X//'
8138 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8140 # Same as above, but do not quote variable references.
8141 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8143 # Sed substitution to delay expansion of an escaped shell variable in a
8144 # double_quote_subst'ed string.
8145 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8147 # Sed substitution to avoid accidental globbing in evaled expressions
8148 no_glob_subst='s/\*/\\\*/g'
8154 default_ofile=libtool
8155 can_build_shared=yes
8157 # All known linkers require a `.a' archive for static linking (except MSVC,
8158 # which needs '.lib').
8160 ltmain="$ac_aux_dir/ltmain.sh"
8161 ofile="$default_ofile"
8162 with_gnu_ld="$lt_cv_prog_gnu_ld"
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}ar; ac_word=$2
8167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8169 if test "${ac_cv_prog_AR+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 if test -n "$AR"; then
8173 ac_cv_prog_AR="$AR" # Let the user override the test.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_prog_AR="${ac_tool_prefix}ar"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 if test -n "$AR"; then
8194 { echo "$as_me:$LINENO: result: $AR" >&5
8195 echo "${ECHO_T}$AR" >&6; }
8197 { echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6; }
8203 if test -z "$ac_cv_prog_AR"; then
8205 # Extract the first word of "ar", so it can be a program name with args.
8206 set dummy ar; ac_word=$2
8207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8209 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 if test -n "$ac_ct_AR"; then
8213 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_prog_ac_ct_AR="ar"
8223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8233 if test -n "$ac_ct_AR"; then
8234 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8235 echo "${ECHO_T}$ac_ct_AR" >&6; }
8237 { echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6; }
8241 if test "x$ac_ct_AR" = x; then
8244 case $cross_compiling:$ac_tool_warned in
8246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8247 whose name does not start with the host triplet. If you think this
8248 configuration is useful to you, please write to autoconf@gnu.org." >&5
8249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8250 whose name does not start with the host triplet. If you think this
8251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8252 ac_tool_warned=yes ;;
8260 if test -n "$ac_tool_prefix"; then
8261 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265 if test "${ac_cv_prog_RANLIB+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 if test -n "$RANLIB"; then
8269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 RANLIB=$ac_cv_prog_RANLIB
8289 if test -n "$RANLIB"; then
8290 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8291 echo "${ECHO_T}$RANLIB" >&6; }
8293 { echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6; }
8299 if test -z "$ac_cv_prog_RANLIB"; then
8300 ac_ct_RANLIB=$RANLIB
8301 # Extract the first word of "ranlib", so it can be a program name with args.
8302 set dummy ranlib; ac_word=$2
8303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8305 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 if test -n "$ac_ct_RANLIB"; then
8309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318 ac_cv_prog_ac_ct_RANLIB="ranlib"
8319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8329 if test -n "$ac_ct_RANLIB"; then
8330 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8331 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8333 { echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6; }
8337 if test "x$ac_ct_RANLIB" = x; then
8340 case $cross_compiling:$ac_tool_warned in
8342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8343 whose name does not start with the host triplet. If you think this
8344 configuration is useful to you, please write to autoconf@gnu.org." >&5
8345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8346 whose name does not start with the host triplet. If you think this
8347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8348 ac_tool_warned=yes ;;
8350 RANLIB=$ac_ct_RANLIB
8353 RANLIB="$ac_cv_prog_RANLIB"
8356 if test -n "$ac_tool_prefix"; then
8357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8358 set dummy ${ac_tool_prefix}strip; ac_word=$2
8359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361 if test "${ac_cv_prog_STRIP+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 if test -n "$STRIP"; then
8365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 STRIP=$ac_cv_prog_STRIP
8385 if test -n "$STRIP"; then
8386 { echo "$as_me:$LINENO: result: $STRIP" >&5
8387 echo "${ECHO_T}$STRIP" >&6; }
8389 { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8395 if test -z "$ac_cv_prog_STRIP"; then
8397 # Extract the first word of "strip", so it can be a program name with args.
8398 set dummy strip; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 if test -n "$ac_ct_STRIP"; then
8405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_ac_ct_STRIP="strip"
8415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8425 if test -n "$ac_ct_STRIP"; then
8426 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8427 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8429 { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8433 if test "x$ac_ct_STRIP" = x; then
8436 case $cross_compiling:$ac_tool_warned in
8438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8439 whose name does not start with the host triplet. If you think this
8440 configuration is useful to you, please write to autoconf@gnu.org." >&5
8441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8442 whose name does not start with the host triplet. If you think this
8443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8444 ac_tool_warned=yes ;;
8449 STRIP="$ac_cv_prog_STRIP"
8454 old_CFLAGS="$CFLAGS"
8456 # Set sane defaults for various variables
8457 test -z "$AR" && AR=ar
8458 test -z "$AR_FLAGS" && AR_FLAGS=cru
8459 test -z "$AS" && AS=as
8460 test -z "$CC" && CC=cc
8461 test -z "$LTCC" && LTCC=$CC
8462 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8463 test -z "$DLLTOOL" && DLLTOOL=dlltool
8464 test -z "$LD" && LD=ld
8465 test -z "$LN_S" && LN_S="ln -s"
8466 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8467 test -z "$NM" && NM=nm
8468 test -z "$SED" && SED=sed
8469 test -z "$OBJDUMP" && OBJDUMP=objdump
8470 test -z "$RANLIB" && RANLIB=:
8471 test -z "$STRIP" && STRIP=:
8472 test -z "$ac_objext" && ac_objext=o
8474 # Determine commands to create old-style static archives.
8475 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8476 old_postinstall_cmds='chmod 644 $oldlib'
8477 old_postuninstall_cmds=
8479 if test -n "$RANLIB"; then
8482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8488 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8491 for cc_temp in $compiler""; do
8493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8499 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8502 # Only perform the check for file, if the check method requires it
8503 case $deplibs_check_method in
8505 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8506 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8507 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8516 lt_save_MAGIC_CMD="$MAGIC_CMD"
8517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8519 for ac_dir in $ac_dummy; do
8521 test -z "$ac_dir" && ac_dir=.
8522 if test -f $ac_dir/${ac_tool_prefix}file; then
8523 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8524 if test -n "$file_magic_test_file"; then
8525 case $deplibs_check_method in
8527 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8530 $EGREP "$file_magic_regex" > /dev/null; then
8535 *** Warning: the command libtool uses to detect shared libraries,
8536 *** $file_magic_cmd, produces output that libtool cannot recognize.
8537 *** The result is that libtool may fail to recognize shared libraries
8538 *** as such. This will affect the creation of libtool libraries that
8539 *** depend on shared libraries, but programs linked with such libtool
8540 *** libraries will work regardless of this problem. Nevertheless, you
8541 *** may want to report the problem to your system manager and/or to
8542 *** bug-libtool@gnu.org
8552 MAGIC_CMD="$lt_save_MAGIC_CMD"
8557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558 if test -n "$MAGIC_CMD"; then
8559 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8560 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8562 { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8566 if test -z "$lt_cv_path_MAGIC_CMD"; then
8567 if test -n "$ac_tool_prefix"; then
8568 { echo "$as_me:$LINENO: checking for file" >&5
8569 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8570 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8578 lt_save_MAGIC_CMD="$MAGIC_CMD"
8579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8581 for ac_dir in $ac_dummy; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/file; then
8585 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8586 if test -n "$file_magic_test_file"; then
8587 case $deplibs_check_method in
8589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8592 $EGREP "$file_magic_regex" > /dev/null; then
8597 *** Warning: the command libtool uses to detect shared libraries,
8598 *** $file_magic_cmd, produces output that libtool cannot recognize.
8599 *** The result is that libtool may fail to recognize shared libraries
8600 *** as such. This will affect the creation of libtool libraries that
8601 *** depend on shared libraries, but programs linked with such libtool
8602 *** libraries will work regardless of this problem. Nevertheless, you
8603 *** may want to report the problem to your system manager and/or to
8604 *** bug-libtool@gnu.org
8614 MAGIC_CMD="$lt_save_MAGIC_CMD"
8619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8620 if test -n "$MAGIC_CMD"; then
8621 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8622 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8624 { echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6; }
8640 # Check whether --enable-libtool-lock was given.
8641 if test "${enable_libtool_lock+set}" = set; then
8642 enableval=$enable_libtool_lock;
8645 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8648 # Check whether --with-pic was given.
8649 if test "${with_pic+set}" = set; then
8650 withval=$with_pic; pic_mode="$withval"
8655 test -z "$pic_mode" && pic_mode=default
8657 # Use C for the default configuration in the libtool script
8661 ac_cpp='$CPP $CPPFLAGS'
8662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8667 # Source file extension for C test sources.
8670 # Object file extension for compiled C test sources.
8674 # Code to be used in simple compile tests
8675 lt_simple_compile_test_code="int some_variable = 0;"
8677 # Code to be used in simple link tests
8678 lt_simple_link_test_code='int main(){return(0);}'
8681 # If no C compiler was specified, use CC.
8684 # If no C compiler flags were specified, use CFLAGS.
8685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8687 # Allow CC to be a program name with arguments.
8691 # save warnings/boilerplate of simple test code
8692 ac_outfile=conftest.$ac_objext
8693 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8695 _lt_compiler_boilerplate=`cat conftest.err`
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8701 _lt_linker_boilerplate=`cat conftest.err`
8706 ## There is no encapsulation within the following macros, do not change
8707 ## the running order or otherwise move them around unless you know exactly
8708 ## what you are doing...
8710 lt_prog_compiler_no_builtin_flag=
8712 if test "$GCC" = yes; then
8713 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8716 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8717 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8718 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 lt_cv_prog_compiler_rtti_exceptions=no
8722 ac_outfile=conftest.$ac_objext
8723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8724 lt_compiler_flag="-fno-rtti -fno-exceptions"
8725 # Insert the option either (1) after the last *FLAGS variable, or
8726 # (2) before a word containing "conftest.", or (3) at the end.
8727 # Note that $ac_compile itself does not contain backslashes and begins
8728 # with a dollar sign (not a hyphen), so the echo should work correctly.
8729 # The option is referenced via a variable to avoid confusing sed.
8730 lt_compile=`echo "$ac_compile" | $SED \
8731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8733 -e 's:$: $lt_compiler_flag:'`
8734 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8735 (eval "$lt_compile" 2>conftest.err)
8737 cat conftest.err >&5
8738 echo "$as_me:__oline__: \$? = $ac_status" >&5
8739 if (exit $ac_status) && test -s "$ac_outfile"; then
8740 # The compiler can only warn and ignore the option if not recognized
8741 # So say no if there are warnings other than the usual output.
8742 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8745 lt_cv_prog_compiler_rtti_exceptions=yes
8751 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8752 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8754 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8755 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8762 lt_prog_compiler_wl=
8763 lt_prog_compiler_pic=
8764 lt_prog_compiler_static=
8766 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8767 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8769 if test "$GCC" = yes; then
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_static='-static'
8775 # All AIX code is PIC.
8776 if test "$host_cpu" = ia64; then
8777 # AIX 5 now supports IA64 processor
8778 lt_prog_compiler_static='-Bstatic'
8783 # FIXME: we need at least 68020 code to build shared libraries, but
8784 # adding the `-m68020' flag to GCC prevents building anything better,
8786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8789 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8790 # PIC is the default for these OSes.
8793 mingw* | cygwin* | pw32* | os2*)
8794 # This hack is so that the source file can tell whether it is being
8795 # built for inclusion in a dll (and should export symbols for example).
8796 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8797 # (--disable-auto-import) libraries
8798 lt_prog_compiler_pic='-DDLL_EXPORT'
8801 darwin* | rhapsody*)
8802 # PIC is the default on this platform
8803 # Common symbols not allowed in MH_DYLIB files
8804 lt_prog_compiler_pic='-fno-common'
8808 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8809 # Instead, we relocate shared libraries at runtime.
8813 # Just because we use GCC doesn't mean we suddenly get shared libraries
8814 # on systems that don't support them.
8815 lt_prog_compiler_can_build_shared=no
8820 if test -d /usr/nec; then
8821 lt_prog_compiler_pic=-Kconform_pic
8826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8833 lt_prog_compiler_pic='-fPIC'
8839 lt_prog_compiler_pic='-fPIC'
8843 # PORTME Check for flag to pass linker flags through the system compiler.
8846 lt_prog_compiler_wl='-Wl,'
8847 if test "$host_cpu" = ia64; then
8848 # AIX 5 now supports IA64 processor
8849 lt_prog_compiler_static='-Bstatic'
8851 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8855 # PIC is the default on this platform
8856 # Common symbols not allowed in MH_DYLIB files
8857 case $cc_basename in
8859 lt_prog_compiler_pic='-qnocommon'
8860 lt_prog_compiler_wl='-Wl,'
8865 mingw* | cygwin* | pw32* | os2*)
8866 # This hack is so that the source file can tell whether it is being
8867 # built for inclusion in a dll (and should export symbols for example).
8868 lt_prog_compiler_pic='-DDLL_EXPORT'
8871 hpux9* | hpux10* | hpux11*)
8872 lt_prog_compiler_wl='-Wl,'
8873 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8880 lt_prog_compiler_pic='+Z'
8883 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8884 lt_prog_compiler_static='${wl}-a ${wl}archive'
8887 irix5* | irix6* | nonstopux*)
8888 lt_prog_compiler_wl='-Wl,'
8889 # PIC (with -KPIC) is the default.
8890 lt_prog_compiler_static='-non_shared'
8894 lt_prog_compiler_pic='-KPIC'
8895 lt_prog_compiler_static='-Bstatic'
8898 linux* | k*bsd*-gnu)
8899 case $cc_basename in
8901 lt_prog_compiler_wl='-Wl,'
8902 lt_prog_compiler_pic='-KPIC'
8903 lt_prog_compiler_static='-static'
8905 pgcc* | pgf77* | pgf90* | pgf95*)
8906 # Portland Group compilers (*not* the Pentium gcc compiler,
8907 # which looks to be a dead project)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-fpic'
8910 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_wl='-Wl,'
8914 # All Alpha code is PIC.
8915 lt_prog_compiler_static='-non_shared'
8918 case `$CC -V 2>&1 | sed 5q` in
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 lt_prog_compiler_wl='-Wl,'
8926 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8927 lt_prog_compiler_pic='-KPIC'
8928 lt_prog_compiler_static='-Bstatic'
8929 lt_prog_compiler_wl=''
8936 osf3* | osf4* | osf5*)
8937 lt_prog_compiler_wl='-Wl,'
8938 # All OSF/1 code is PIC.
8939 lt_prog_compiler_static='-non_shared'
8943 lt_prog_compiler_static='-non_shared'
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8949 case $cc_basename in
8951 lt_prog_compiler_wl='-Qoption ld ';;
8953 lt_prog_compiler_wl='-Wl,';;
8958 lt_prog_compiler_wl='-Qoption ld '
8959 lt_prog_compiler_pic='-PIC'
8960 lt_prog_compiler_static='-Bstatic'
8963 sysv4 | sysv4.2uw2* | sysv4.3*)
8964 lt_prog_compiler_wl='-Wl,'
8965 lt_prog_compiler_pic='-KPIC'
8966 lt_prog_compiler_static='-Bstatic'
8970 if test -d /usr/nec ;then
8971 lt_prog_compiler_pic='-Kconform_pic'
8972 lt_prog_compiler_static='-Bstatic'
8976 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8977 lt_prog_compiler_wl='-Wl,'
8978 lt_prog_compiler_pic='-KPIC'
8979 lt_prog_compiler_static='-Bstatic'
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_can_build_shared=no
8988 lt_prog_compiler_pic='-pic'
8989 lt_prog_compiler_static='-Bstatic'
8993 lt_prog_compiler_can_build_shared=no
8998 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8999 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9002 # Check to make sure the PIC flag actually works.
9004 if test -n "$lt_prog_compiler_pic"; then
9006 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9007 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9008 if test "${lt_prog_compiler_pic_works+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 lt_prog_compiler_pic_works=no
9012 ac_outfile=conftest.$ac_objext
9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9014 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9015 # Insert the option either (1) after the last *FLAGS variable, or
9016 # (2) before a word containing "conftest.", or (3) at the end.
9017 # Note that $ac_compile itself does not contain backslashes and begins
9018 # with a dollar sign (not a hyphen), so the echo should work correctly.
9019 # The option is referenced via a variable to avoid confusing sed.
9020 lt_compile=`echo "$ac_compile" | $SED \
9021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9023 -e 's:$: $lt_compiler_flag:'`
9024 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9025 (eval "$lt_compile" 2>conftest.err)
9027 cat conftest.err >&5
9028 echo "$as_me:__oline__: \$? = $ac_status" >&5
9029 if (exit $ac_status) && test -s "$ac_outfile"; then
9030 # The compiler can only warn and ignore the option if not recognized
9031 # So say no if there are warnings other than the usual output.
9032 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9035 lt_prog_compiler_pic_works=yes
9041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9042 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9044 if test x"$lt_prog_compiler_pic_works" = xyes; then
9045 case $lt_prog_compiler_pic in
9047 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9050 lt_prog_compiler_pic=
9051 lt_prog_compiler_can_build_shared=no
9056 # For platforms which do not support PIC, -DPIC is meaningless:
9058 lt_prog_compiler_pic=
9061 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9066 # Check to make sure the static flag actually works.
9068 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9069 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9070 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9071 if test "${lt_prog_compiler_static_works+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 lt_prog_compiler_static_works=no
9075 save_LDFLAGS="$LDFLAGS"
9076 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9077 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9078 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9079 # The linker can only warn and ignore the option if not recognized
9080 # So say no if there are warnings
9081 if test -s conftest.err; then
9082 # Append any errors to the config.log.
9083 cat conftest.err 1>&5
9084 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086 if diff conftest.exp conftest.er2 >/dev/null; then
9087 lt_prog_compiler_static_works=yes
9090 lt_prog_compiler_static_works=yes
9094 LDFLAGS="$save_LDFLAGS"
9097 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9098 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9100 if test x"$lt_prog_compiler_static_works" = xyes; then
9103 lt_prog_compiler_static=
9107 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9108 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9109 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 lt_cv_prog_compiler_c_o=no
9113 $rm -r conftest 2>/dev/null
9117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9119 lt_compiler_flag="-o out/conftest2.$ac_objext"
9120 # Insert the option either (1) after the last *FLAGS variable, or
9121 # (2) before a word containing "conftest.", or (3) at the end.
9122 # Note that $ac_compile itself does not contain backslashes and begins
9123 # with a dollar sign (not a hyphen), so the echo should work correctly.
9124 lt_compile=`echo "$ac_compile" | $SED \
9125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9127 -e 's:$: $lt_compiler_flag:'`
9128 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9129 (eval "$lt_compile" 2>out/conftest.err)
9131 cat out/conftest.err >&5
9132 echo "$as_me:__oline__: \$? = $ac_status" >&5
9133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9135 # The compiler can only warn and ignore the option if not recognized
9136 # So say no if there are warnings
9137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9140 lt_cv_prog_compiler_c_o=yes
9145 # SGI C++ compiler will create directory out/ii_files/ for
9146 # template instantiation
9147 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9148 $rm out/* && rmdir out
9154 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9155 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9158 hard_links="nottested"
9159 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9160 # do not overwrite the value of need_locks provided by the user
9161 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9162 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9165 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9167 ln conftest.a conftest.b 2>&5 || hard_links=no
9168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9169 { echo "$as_me:$LINENO: result: $hard_links" >&5
9170 echo "${ECHO_T}$hard_links" >&6; }
9171 if test "$hard_links" = no; then
9172 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9173 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9180 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9181 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9184 allow_undefined_flag=
9185 enable_shared_with_static_runtimes=no
9187 archive_expsym_cmds=
9188 old_archive_From_new_cmds=
9189 old_archive_from_expsyms_cmds=
9190 export_dynamic_flag_spec=
9191 whole_archive_flag_spec=
9192 thread_safe_flag_spec=
9193 hardcode_libdir_flag_spec=
9194 hardcode_libdir_flag_spec_ld=
9195 hardcode_libdir_separator=
9198 hardcode_shlibpath_var=unsupported
9199 link_all_deplibs=unknown
9200 hardcode_automatic=no
9203 always_export_symbols=no
9204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9205 # include_expsyms should be a list of space-separated symbols to be *always*
9206 # included in the symbol list
9208 # exclude_expsyms can be an extended regexp of symbols to exclude
9209 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9210 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9211 # as well as any symbol that contains `d'.
9212 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9213 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9214 # platforms (ab)use it in PIC code, but their linkers get confused if
9215 # the symbol is explicitly referenced. Since portable code cannot
9216 # rely on this symbol name, it's probably fine to never include it in
9217 # preloaded symbol tables.
9218 extract_expsyms_cmds=
9219 # Just being paranoid about ensuring that cc_basename is set.
9220 for cc_temp in $compiler""; do
9222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9231 cygwin* | mingw* | pw32*)
9232 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9233 # When not using gcc, we currently assume that we are using
9234 # Microsoft Visual C++.
9235 if test "$GCC" != yes; then
9240 # we just hope/assume this is gcc and not c89 (= MSVC++)
9249 if test "$with_gnu_ld" = yes; then
9250 # If archive_cmds runs LD, not CC, wlarc should be empty
9253 # Set some defaults for GNU ld with shared library support. These
9254 # are reset later if shared libraries are not supported. Putting them
9255 # here allows them to be overridden if necessary.
9256 runpath_var=LD_RUN_PATH
9257 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9258 export_dynamic_flag_spec='${wl}--export-dynamic'
9259 # ancient GNU ld didn't support --whole-archive et. al.
9260 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9261 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9263 whole_archive_flag_spec=
9265 supports_anon_versioning=no
9266 case `$LD -v 2>/dev/null` in
9267 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9268 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9269 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9270 *\ 2.11.*) ;; # other 2.11 versions
9271 *) supports_anon_versioning=yes ;;
9274 # See if GNU ld supports shared libraries.
9276 aix3* | aix4* | aix5*)
9277 # On AIX/PPC, the GNU linker is very broken
9278 if test "$host_cpu" != ia64; then
9282 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9283 *** to be unable to reliably create shared libraries on AIX.
9284 *** Therefore, libtool is disabling shared libraries support. If you
9285 *** really care for shared libraries, you may want to modify your PATH
9286 *** so that a non-GNU linker is found, and then restart.
9293 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)'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_minus_L=yes
9297 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9298 # that the semantics of dynamic libraries on AmigaOS, at least up
9299 # to version 4, is to share data among multiple programs linked
9300 # with the same dynamic library. Since this doesn't match the
9301 # behavior of shared libraries on other platforms, we can't use
9307 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9308 allow_undefined_flag=unsupported
9309 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9310 # support --undefined. This deserves some investigation. FIXME
9311 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 cygwin* | mingw* | pw32*)
9318 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9319 # as there is no search path for DLLs.
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 allow_undefined_flag=unsupported
9322 always_export_symbols=no
9323 enable_shared_with_static_runtimes=yes
9324 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9326 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9328 # If the export-symbols file already is a .def file (1st line
9329 # is EXPORTS), use it as is; otherwise, prepend...
9330 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9331 cp $export_symbols $output_objdir/$soname.def;
9333 echo EXPORTS > $output_objdir/$soname.def;
9334 cat $export_symbols >> $output_objdir/$soname.def;
9336 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9344 hardcode_shlibpath_var=no
9345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9346 export_dynamic_flag_spec='${wl}-E'
9347 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9348 # Instead, shared libraries are loaded at an image base (0x10000000 by
9349 # default) and relocated if they conflict, which is a slow very memory
9350 # consuming and fragmenting process. To avoid this, we pick a random,
9351 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9352 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9354 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'
9357 gnu* | linux* | k*bsd*-gnu)
9358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9360 case $cc_basename,$host_cpu in
9361 pgcc*) # Portland Group C compiler
9362 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'
9363 tmp_addflag=' $pic_flag'
9365 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9366 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'
9367 tmp_addflag=' $pic_flag -Mnomain' ;;
9368 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9369 tmp_addflag=' -i_dynamic' ;;
9370 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9371 tmp_addflag=' -i_dynamic -nofor_main' ;;
9372 ifc* | ifort*) # Intel Fortran compiler
9373 tmp_addflag=' -nofor_main' ;;
9375 case `$CC -V 2>&1 | sed 5q` in
9376 *Sun\ C*) # Sun C 5.9
9377 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9378 tmp_sharedflag='-G' ;;
9379 *Sun\ F*) # Sun Fortran 8.3
9380 tmp_sharedflag='-G' ;;
9382 tmp_sharedflag='-shared' ;;
9384 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386 if test $supports_anon_versioning = yes; then
9387 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9389 $echo "local: *; };" >> $output_objdir/$libname.ver~
9390 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9398 netbsd* | netbsdelf*-gnu)
9399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9400 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9409 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9413 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9414 *** create shared libraries on Solaris systems. Therefore, libtool
9415 *** is disabling shared libraries support. We urge you to upgrade GNU
9416 *** binutils to release 2.9.1 or newer. Another option is to modify
9417 *** your PATH or compiler configuration so that the native linker is
9418 *** used, and then restart.
9421 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9430 case `$LD -v 2>&1` in
9431 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9435 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9436 *** reliably create shared libraries on SCO systems. Therefore, libtool
9437 *** is disabling shared libraries support. We urge you to upgrade GNU
9438 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9439 *** your PATH or compiler configuration so that the native linker is
9440 *** used, and then restart.
9445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9446 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9457 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_shlibpath_var=no
9464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9473 if test "$ld_shlibs" = no; then
9475 hardcode_libdir_flag_spec=
9476 export_dynamic_flag_spec=
9477 whole_archive_flag_spec=
9480 # PORTME fill in a description of your system's linker (not GNU ld)
9483 allow_undefined_flag=unsupported
9484 always_export_symbols=yes
9485 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'
9486 # Note: this linker hardcodes the directories in LIBPATH if there
9487 # are no directories specified by -L.
9488 hardcode_minus_L=yes
9489 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9490 # Neither direct hardcoding nor static linking is supported with a
9492 hardcode_direct=unsupported
9497 if test "$host_cpu" = ia64; then
9498 # On IA64, the linker does run time linking by default, so we don't
9499 # have to do anything special.
9500 aix_use_runtimelinking=no
9501 exp_sym_flag='-Bexport'
9504 # If we're using GNU nm, then we don't want the "-C" option.
9505 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9506 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9507 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'
9509 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'
9511 aix_use_runtimelinking=no
9513 # Test if we are trying to use run time linking or normal
9514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9515 # need to do runtime linking.
9516 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9517 for ld_flag in $LDFLAGS; do
9518 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9519 aix_use_runtimelinking=yes
9526 exp_sym_flag='-bexport'
9527 no_entry_flag='-bnoentry'
9530 # When large executables or shared objects are built, AIX ld can
9531 # have problems creating the table of contents. If linking a library
9532 # or program results in "error TOC overflow" add -mminimal-toc to
9533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9538 hardcode_libdir_separator=':'
9539 link_all_deplibs=yes
9541 if test "$GCC" = yes; then
9542 case $host_os in aix4.[012]|aix4.[012].*)
9543 # We only want to do this on AIX 4.2 and lower, the check
9544 # below for broken collect2 doesn't work under 4.3+
9545 collect2name=`${CC} -print-prog-name=collect2`
9546 if test -f "$collect2name" && \
9547 strings "$collect2name" | grep resolve_lib_name >/dev/null
9549 # We have reworked collect2
9552 # We have old collect2
9553 hardcode_direct=unsupported
9554 # It fails to find uninstalled libraries when the uninstalled
9555 # path is not listed in the libpath. Setting hardcode_minus_L
9556 # to unsupported forces relinking
9557 hardcode_minus_L=yes
9558 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_libdir_separator=
9563 shared_flag='-shared'
9564 if test "$aix_use_runtimelinking" = yes; then
9565 shared_flag="$shared_flag "'${wl}-G'
9569 if test "$host_cpu" = ia64; then
9570 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9571 # chokes on -Wl,-G. The following line is correct:
9574 if test "$aix_use_runtimelinking" = yes; then
9575 shared_flag='${wl}-G'
9577 shared_flag='${wl}-bM:SRE'
9582 # It seems that -bexpall does not export symbols beginning with
9583 # underscore (_), so it is better to generate a list of symbols to export.
9584 always_export_symbols=yes
9585 if test "$aix_use_runtimelinking" = yes; then
9586 # Warning - without using the other runtime loading flags (-brtl),
9587 # -berok will link without error, but may produce a broken library.
9588 allow_undefined_flag='-berok'
9589 # Determine the default libpath from the value encoded in an empty executable.
9590 cat >conftest.$ac_ext <<_ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9605 rm -f conftest.$ac_objext conftest$ac_exeext
9606 if { (ac_try="$ac_link"
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_link") 2>conftest.er1
9614 grep -v '^ *+' conftest.er1 >conftest.err
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest$ac_exeext &&
9622 $as_test_x conftest$ac_exeext; then
9624 lt_aix_libpath_sed='
9625 /Import File Strings/,/^$/ {
9631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9632 # Check for a 64-bit object if we didn't find anything.
9633 if test -z "$aix_libpath"; then
9634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644 conftest$ac_exeext conftest.$ac_ext
9645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9647 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9648 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"
9650 if test "$host_cpu" = ia64; then
9651 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9652 allow_undefined_flag="-z nodefs"
9653 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"
9655 # Determine the default libpath from the value encoded in an empty executable.
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (ac_try="$ac_link"
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_link") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest$ac_exeext &&
9688 $as_test_x conftest$ac_exeext; then
9690 lt_aix_libpath_sed='
9691 /Import File Strings/,/^$/ {
9697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9698 # Check for a 64-bit object if we didn't find anything.
9699 if test -z "$aix_libpath"; then
9700 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710 conftest$ac_exeext conftest.$ac_ext
9711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714 # Warning - without using the other run time loading flags,
9715 # -berok will link without error, but may produce a broken library.
9716 no_undefined_flag=' ${wl}-bernotok'
9717 allow_undefined_flag=' ${wl}-berok'
9718 # Exported symbols can be pulled into shared objects from archives
9719 whole_archive_flag_spec='$convenience'
9720 archive_cmds_need_lc=yes
9721 # This is similar to how AIX traditionally builds its shared libraries.
9722 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'
9728 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)'
9729 hardcode_libdir_flag_spec='-L$libdir'
9730 hardcode_minus_L=yes
9731 # see comment about different semantics on the GNU ld section
9736 export_dynamic_flag_spec=-rdynamic
9739 cygwin* | mingw* | pw32*)
9740 # When not using gcc, we currently assume that we are using
9741 # Microsoft Visual C++.
9742 # hardcode_libdir_flag_spec is actually meaningless, as there is
9743 # no search path for DLLs.
9744 hardcode_libdir_flag_spec=' '
9745 allow_undefined_flag=unsupported
9746 # Tell ltmain to make .lib files, not .a files.
9748 # Tell ltmain to make .dll files, not .so files.
9750 # FIXME: Setting linknames here is a bad hack.
9751 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9752 # The linker will automatically build a .lib file if we build a DLL.
9753 old_archive_From_new_cmds='true'
9754 # FIXME: Should let the user specify the lib program.
9755 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9756 fix_srcfile_path='`cygpath -w "$srcfile"`'
9757 enable_shared_with_static_runtimes=yes
9760 darwin* | rhapsody*)
9762 rhapsody* | darwin1.[012])
9763 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9766 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9767 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9769 case ${MACOSX_DEPLOYMENT_TARGET} in
9771 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9774 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9780 archive_cmds_need_lc=no
9782 hardcode_automatic=yes
9783 hardcode_shlibpath_var=unsupported
9784 whole_archive_flag_spec=''
9785 link_all_deplibs=yes
9786 if test "$GCC" = yes ; then
9787 output_verbose_link_cmd='echo'
9788 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9789 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9790 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9791 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}'
9792 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}'
9794 case $cc_basename in
9796 output_verbose_link_cmd='echo'
9797 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9798 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9800 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9801 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}'
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_libdir_flag_spec='-L$libdir'
9813 hardcode_shlibpath_var=no
9820 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9821 # support. Future versions do this automatically, but an explicit c++rt0.o
9822 # does not break anything, and helps significantly (at the cost of a little
9825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9826 hardcode_libdir_flag_spec='-R$libdir'
9828 hardcode_shlibpath_var=no
9831 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_minus_L=yes
9836 hardcode_shlibpath_var=no
9839 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9840 freebsd* | dragonfly*)
9841 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9842 hardcode_libdir_flag_spec='-R$libdir'
9844 hardcode_shlibpath_var=no
9848 if test "$GCC" = yes; then
9849 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'
9851 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'
9853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9854 hardcode_libdir_separator=:
9857 # hardcode_minus_L: Not really in the search PATH,
9858 # but as the default location of the library.
9859 hardcode_minus_L=yes
9860 export_dynamic_flag_spec='${wl}-E'
9864 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9865 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9869 if test "$with_gnu_ld" = no; then
9870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9871 hardcode_libdir_separator=:
9874 export_dynamic_flag_spec='${wl}-E'
9876 # hardcode_minus_L: Not really in the search PATH,
9877 # but as the default location of the library.
9878 hardcode_minus_L=yes
9883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9886 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9898 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9908 if test "$with_gnu_ld" = no; then
9909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9910 hardcode_libdir_separator=:
9914 hardcode_libdir_flag_spec_ld='+b $libdir'
9916 hardcode_shlibpath_var=no
9920 export_dynamic_flag_spec='${wl}-E'
9922 # hardcode_minus_L: Not really in the search PATH,
9923 # but as the default location of the library.
9924 hardcode_minus_L=yes
9930 irix5* | irix6* | nonstopux*)
9931 if test "$GCC" = yes; then
9932 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'
9934 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'
9935 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938 hardcode_libdir_separator=:
9939 link_all_deplibs=yes
9942 netbsd* | netbsdelf*-gnu)
9943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9946 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9948 hardcode_libdir_flag_spec='-R$libdir'
9950 hardcode_shlibpath_var=no
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957 hardcode_libdir_separator=:
9958 hardcode_shlibpath_var=no
9962 if test -f /usr/libexec/ld.so; then
9964 hardcode_shlibpath_var=no
9965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9968 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9969 export_dynamic_flag_spec='${wl}-E'
9972 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9973 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_libdir_flag_spec='-R$libdir'
9977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9978 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9988 hardcode_libdir_flag_spec='-L$libdir'
9989 hardcode_minus_L=yes
9990 allow_undefined_flag=unsupported
9991 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'
9992 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9996 if test "$GCC" = yes; then
9997 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9998 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'
10000 allow_undefined_flag=' -expect_unresolved \*'
10001 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'
10003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10004 hardcode_libdir_separator=:
10007 osf4* | osf5*) # as osf3* with the addition of -msym flag
10008 if test "$GCC" = yes; then
10009 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10010 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'
10011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013 allow_undefined_flag=' -expect_unresolved \*'
10014 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'
10015 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10016 $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'
10018 # Both c and cxx compiler support -rpath directly
10019 hardcode_libdir_flag_spec='-rpath $libdir'
10021 hardcode_libdir_separator=:
10025 no_undefined_flag=' -z text'
10026 if test "$GCC" = yes; then
10028 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10029 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10030 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10037 hardcode_libdir_flag_spec='-R$libdir'
10038 hardcode_shlibpath_var=no
10040 solaris2.[0-5] | solaris2.[0-5].*) ;;
10042 # The compiler driver will combine and reorder linker options,
10043 # but understands `-z linker_flag'. GCC discards it without `$wl',
10044 # but is careful enough not to reorder.
10045 # Supported since Solaris 2.6 (maybe 2.5.1?)
10046 if test "$GCC" = yes; then
10047 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10049 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10053 link_all_deplibs=yes
10057 if test "x$host_vendor" = xsequent; then
10058 # Use $CC to link under sequent, because it throws in some extra .o
10059 # files that make .init and .fini sections work.
10060 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_libdir_flag_spec='-L$libdir'
10065 hardcode_direct=yes
10066 hardcode_minus_L=yes
10067 hardcode_shlibpath_var=no
10071 case $host_vendor in
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_direct=yes # is this really true???
10077 ## LD is ld it makes a PLAMLIB
10078 ## CC just makes a GrossModule.
10079 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10080 reload_cmds='$CC -r -o $output$reload_objs'
10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10088 runpath_var='LD_RUN_PATH'
10089 hardcode_shlibpath_var=no
10093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_shlibpath_var=no
10095 export_dynamic_flag_spec='-Bexport'
10099 if test -d /usr/nec; then
10100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_shlibpath_var=no
10102 runpath_var=LD_RUN_PATH
10103 hardcode_runpath_var=yes
10108 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10109 no_undefined_flag='${wl}-z,text'
10110 archive_cmds_need_lc=no
10111 hardcode_shlibpath_var=no
10112 runpath_var='LD_RUN_PATH'
10114 if test "$GCC" = yes; then
10115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 sysv5* | sco3.2v5* | sco5v6*)
10124 # Note: We can NOT use -z defs as we might desire, because we do not
10125 # link with -lc, and that would cause any symbols used from libc to
10126 # always be unresolved, which means just about no library would
10127 # ever link correctly. If we're not using GNU ld we use -z text
10128 # though, which does catch some bad symbols but isn't as heavy-handed
10130 no_undefined_flag='${wl}-z,text'
10131 allow_undefined_flag='${wl}-z,nodefs'
10132 archive_cmds_need_lc=no
10133 hardcode_shlibpath_var=no
10134 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10135 hardcode_libdir_separator=':'
10136 link_all_deplibs=yes
10137 export_dynamic_flag_spec='${wl}-Bexport'
10138 runpath_var='LD_RUN_PATH'
10140 if test "$GCC" = yes; then
10141 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_libdir_flag_spec='-L$libdir'
10152 hardcode_shlibpath_var=no
10161 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10162 echo "${ECHO_T}$ld_shlibs" >&6; }
10163 test "$ld_shlibs" = no && can_build_shared=no
10166 # Do we need to explicitly link libc?
10168 case "x$archive_cmds_need_lc" in
10170 # Assume -lc should be added
10171 archive_cmds_need_lc=yes
10173 if test "$enable_shared" = yes && test "$GCC" = yes; then
10174 case $archive_cmds in
10176 # FIXME: we may have to deal with multi-command sequences.
10179 # Test whether the compiler implicitly links with -lc since on some
10180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10181 # to ld, don't add -lc before -lgcc.
10182 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188 (eval $ac_compile) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } 2>conftest.err; then
10194 libobjs=conftest.$ac_objext
10196 wl=$lt_prog_compiler_wl
10197 pic_flag=$lt_prog_compiler_pic
10203 lt_save_allow_undefined_flag=$allow_undefined_flag
10204 allow_undefined_flag=
10205 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10206 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }
10211 archive_cmds_need_lc=no
10213 archive_cmds_need_lc=yes
10215 allow_undefined_flag=$lt_save_allow_undefined_flag
10217 cat conftest.err 1>&5
10220 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10221 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10228 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10230 library_names_spec=
10231 libname_spec='lib$name'
10235 postuninstall_cmds=
10239 shlibpath_overrides_runpath=unknown
10241 dynamic_linker="$host_os ld.so"
10242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10244 if test "$GCC" = yes; then
10246 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10247 *) lt_awk_arg="/^libraries:/" ;;
10249 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10250 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10251 # if the path contains ";" then we assume it to be the separator
10252 # otherwise default to the standard path separator (i.e. ":") - it is
10253 # assumed that no part of a normal pathname contains ";" but that should
10254 # okay in the real world where ";" in dirpaths is itself problematic.
10255 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10257 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10259 # Ok, now we have the path, separated by spaces, we can step through it
10260 # and add multilib dir if necessary.
10261 lt_tmp_lt_search_path_spec=
10262 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10263 for lt_sys_path in $lt_search_path_spec; do
10264 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10267 test -d "$lt_sys_path" && \
10268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10271 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10272 BEGIN {RS=" "; FS="/|\n";} {
10275 for (lt_i = NF; lt_i > 0; lt_i--) {
10276 if ($lt_i != "" && $lt_i != ".") {
10277 if ($lt_i == "..") {
10280 if (lt_count == 0) {
10281 lt_foo="/" $lt_i lt_foo;
10288 if (lt_foo != "") { lt_freq[lt_foo]++; }
10289 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10291 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10295 need_lib_prefix=unknown
10296 hardcode_into_libs=no
10298 # when you set need_version to no, make sure it does not cause -set_version
10299 # flags to be left without arguments
10300 need_version=unknown
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10306 shlibpath_var=LIBPATH
10308 # AIX 3 has no versioning support, so we append a major version to the name.
10309 soname_spec='${libname}${release}${shared_ext}$major'
10316 hardcode_into_libs=yes
10317 if test "$host_cpu" = ia64; then
10318 # AIX 5 supports IA64
10319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10320 shlibpath_var=LD_LIBRARY_PATH
10322 # With GCC up to 2.95.x, collect2 would create an import file
10323 # for dependence libraries. The import file would start with
10324 # the line `#! .'. This would cause the generated library to
10325 # depend on `.', always an invalid library. This was fixed in
10326 # development snapshots of GCC prior to 3.0.
10328 aix4 | aix4.[01] | aix4.[01].*)
10329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10331 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10334 can_build_shared=no
10338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10339 # soname into executable. Probably we can add versioning support to
10340 # collect2, so additional links can be useful in future.
10341 if test "$aix_use_runtimelinking" = yes; then
10342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10343 # instead of lib<name>.a to let people know that these are not
10344 # typical AIX shared libraries.
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 # We preserve .a as extension for shared libraries through AIX4.2
10348 # and later when we are not doing run time linking.
10349 library_names_spec='${libname}${release}.a $libname.a'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LIBPATH
10357 library_names_spec='$libname.ixlibrary $libname.a'
10358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10359 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'
10363 library_names_spec='${libname}${shared_ext}'
10364 dynamic_linker="$host_os ld.so"
10365 shlibpath_var=LIBRARY_PATH
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10376 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10377 # the default ld.so.conf also contains /usr/contrib/lib and
10378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10379 # libtool to hard-code these into programs
10382 cygwin* | mingw* | pw32*)
10383 version_type=windows
10388 case $GCC,$host_os in
10389 yes,cygwin* | yes,mingw* | yes,pw32*)
10390 library_names_spec='$libname.dll.a'
10391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10392 postinstall_cmds='base_file=`basename \${file}`~
10393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10394 dldir=$destdir/`dirname \$dlpath`~
10395 test -d \$dldir || mkdir -p \$dldir~
10396 $install_prog $dir/$dlname \$dldir/$dlname~
10397 chmod a+x \$dldir/$dlname'
10398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10399 dlpath=$dir/\$dldll~
10401 shlibpath_overrides_runpath=yes
10405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10407 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10410 # MinGW DLLs use traditional 'lib' prefix
10411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10413 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10414 # It is most probably a Windows format PATH printed by
10415 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10416 # path with ; separators, and with drive letters. We can handle the
10417 # drive letters (cygwin fileutils understands them), so leave them,
10418 # especially as we might pass files found there to a mingw objdump,
10419 # which wouldn't understand a cygwinified path. Ahh.
10420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10426 # pw32 DLLs use 'pw' prefix rather than 'lib'
10427 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10433 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10436 dynamic_linker='Win32 ld.exe'
10437 # FIXME: first we should search . and the directory the executable is in
10441 darwin* | rhapsody*)
10442 dynamic_linker="$host_os dyld"
10443 version_type=darwin
10446 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10447 soname_spec='${libname}${release}${major}$shared_ext'
10448 shlibpath_overrides_runpath=yes
10449 shlibpath_var=DYLD_LIBRARY_PATH
10450 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10452 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10453 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 shlibpath_var=LD_LIBRARY_PATH
10469 freebsd* | dragonfly*)
10470 # DragonFly does not have aout. When/if they implement a new
10471 # versioning mechanism, adjust this.
10472 if test -x /usr/bin/objformat; then
10473 objformat=`/usr/bin/objformat`
10476 freebsd[123]*) objformat=aout ;;
10477 *) objformat=elf ;;
10480 version_type=freebsd-$objformat
10481 case $version_type in
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10492 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=yes
10497 freebsd3.[01]* | freebsdelf3.[01]*)
10498 shlibpath_overrides_runpath=yes
10499 hardcode_into_libs=yes
10501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10503 shlibpath_overrides_runpath=no
10504 hardcode_into_libs=yes
10506 *) # from 4.6 on, and DragonFly
10507 shlibpath_overrides_runpath=yes
10508 hardcode_into_libs=yes
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 hardcode_into_libs=yes
10523 hpux9* | hpux10* | hpux11*)
10524 # Give a soname corresponding to the major version so that dld.sl refuses to
10525 # link against other versions.
10532 hardcode_into_libs=yes
10533 dynamic_linker="$host_os dld.so"
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 if test "X$HPUX_IA64_MODE" = X32; then
10539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10547 hardcode_into_libs=yes
10548 dynamic_linker="$host_os dld.sl"
10549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10558 dynamic_linker="$host_os dld.sl"
10559 shlibpath_var=SHLIB_PATH
10560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 soname_spec='${libname}${release}${shared_ext}$major'
10565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10566 postinstall_cmds='chmod 555 $lib'
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=no
10578 hardcode_into_libs=yes
10581 irix5* | irix6* | nonstopux*)
10583 nonstopux*) version_type=nonstopux ;;
10585 if test "$lt_cv_prog_gnu_ld" = yes; then
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10596 irix5* | nonstopux*)
10597 libsuff= shlibsuff=
10600 case $LD in # libtool.m4 will add one of these switches to LD
10601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10602 libsuff= shlibsuff= libmagic=32-bit;;
10603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10604 libsuff=32 shlibsuff=N32 libmagic=N32;;
10605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10607 *) libsuff= shlibsuff= libmagic=never-match;;
10611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10612 shlibpath_overrides_runpath=no
10613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10615 hardcode_into_libs=yes
10618 # No shared lib support for Linux oldld, aout, or coff.
10619 linux*oldld* | linux*aout* | linux*coff*)
10623 # This must be Linux ELF.
10624 linux* | k*bsd*-gnu)
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=no
10633 # This implies no fast_install, which is unacceptable.
10634 # Some rework will be needed to allow for fast_install
10635 # before this can be enabled.
10636 hardcode_into_libs=yes
10638 # Append ld.so.conf contents to the search path
10639 if test -f /etc/ld.so.conf; then
10640 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10644 # We used to test for /lib/ld.so.1 and disable shared libraries on
10645 # powerpc, because MkLinux only supported shared libraries with the
10646 # GNU dynamic linker. Since this was broken with cross compilers,
10647 # most powerpc-linux boxes support dynamic linking these days and
10648 # people can always --disable-shared, the test was removed, and we
10649 # assume the GNU/Linux dynamic linker is in use.
10650 dynamic_linker='GNU/Linux ld.so'
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 shlibpath_overrides_runpath=no
10661 hardcode_into_libs=yes
10662 dynamic_linker='NetBSD ld.elf_so'
10669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10672 dynamic_linker='NetBSD (a.out) ld.so'
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 dynamic_linker='NetBSD ld.elf_so'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath=yes
10680 hardcode_into_libs=yes
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=yes
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=yes
10702 sys_lib_dlsearch_path_spec="/usr/lib"
10704 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10706 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10707 *) need_version=no ;;
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10714 openbsd2.[89] | openbsd2.[89].*)
10715 shlibpath_overrides_runpath=no
10718 shlibpath_overrides_runpath=yes
10722 shlibpath_overrides_runpath=yes
10727 libname_spec='$name'
10730 library_names_spec='$libname${shared_ext} $libname.a'
10731 dynamic_linker='OS/2 ld.exe'
10732 shlibpath_var=LIBPATH
10735 osf3* | osf4* | osf5*)
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10743 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 shlibpath_overrides_runpath=yes
10758 hardcode_into_libs=yes
10759 # ldd complains unless libraries are executable
10760 postinstall_cmds='chmod +x $lib'
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10766 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes
10769 if test "$with_gnu_ld" = yes; then
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 shlibpath_var=LD_LIBRARY_PATH
10780 case $host_vendor in
10782 shlibpath_overrides_runpath=no
10784 export_dynamic_flag_spec='${wl}-Blargedynsym'
10785 runpath_var=LD_RUN_PATH
10793 shlibpath_overrides_runpath=no
10794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10800 if test -d /usr/nec ;then
10802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10803 soname_spec='$libname${shared_ext}.$major'
10804 shlibpath_var=LD_LIBRARY_PATH
10808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10809 version_type=freebsd-elf
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 hardcode_into_libs=yes
10816 if test "$with_gnu_ld" = yes; then
10817 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10818 shlibpath_overrides_runpath=no
10820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10821 shlibpath_overrides_runpath=yes
10824 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10828 sys_lib_dlsearch_path_spec='/usr/lib'
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 shlibpath_var=LD_LIBRARY_PATH
10842 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10843 echo "${ECHO_T}$dynamic_linker" >&6; }
10844 test "$dynamic_linker" = no && can_build_shared=no
10846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10847 if test "$GCC" = yes; then
10848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10851 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10852 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10854 if test -n "$hardcode_libdir_flag_spec" || \
10855 test -n "$runpath_var" || \
10856 test "X$hardcode_automatic" = "Xyes" ; then
10858 # We can hardcode non-existant directories.
10859 if test "$hardcode_direct" != no &&
10860 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10861 # have to relink, otherwise we might link with an installed library
10862 # when we should be linking with a yet-to-be-installed one
10863 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10864 test "$hardcode_minus_L" != no; then
10865 # Linking always hardcodes the temporary library directory.
10866 hardcode_action=relink
10868 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10869 hardcode_action=immediate
10872 # We cannot hardcode anything, or else we can only hardcode existing
10874 hardcode_action=unsupported
10876 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10877 echo "${ECHO_T}$hardcode_action" >&6; }
10879 if test "$hardcode_action" = relink; then
10880 # Fast installation is not supported
10881 enable_fast_install=no
10882 elif test "$shlibpath_overrides_runpath" = yes ||
10883 test "$enable_shared" = no; then
10884 # Fast installation is not necessary
10885 enable_fast_install=needless
10890 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10891 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10892 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10893 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10894 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10895 { echo "$as_me:$LINENO: result: yes" >&5
10896 echo "${ECHO_T}yes" >&6; }
10898 # FIXME - insert some real tests, host_os isn't really good enough
10901 if test -n "$STRIP" ; then
10902 striplib="$STRIP -x"
10903 old_striplib="$STRIP -S"
10904 { echo "$as_me:$LINENO: result: yes" >&5
10905 echo "${ECHO_T}yes" >&6; }
10907 { echo "$as_me:$LINENO: result: no" >&5
10908 echo "${ECHO_T}no" >&6; }
10912 { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10918 if test "x$enable_dlopen" != xyes; then
10919 enable_dlopen=unknown
10920 enable_dlopen_self=unknown
10921 enable_dlopen_self_static=unknown
10928 lt_cv_dlopen="load_add_on"
10930 lt_cv_dlopen_self=yes
10934 lt_cv_dlopen="LoadLibrary"
10939 lt_cv_dlopen="dlopen"
10944 # if libdl is installed we need to link against it
10945 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10946 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 ac_check_lib_save_LIBS=$LIBS
10952 cat >conftest.$ac_ext <<_ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_c_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest$ac_exeext &&
10991 $as_test_x conftest$ac_exeext; then
10992 ac_cv_lib_dl_dlopen=yes
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 ac_cv_lib_dl_dlopen=no
11000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11001 conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
11004 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11005 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11006 if test $ac_cv_lib_dl_dlopen = yes; then
11007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11010 lt_cv_dlopen="dyld"
11012 lt_cv_dlopen_self=yes
11019 { echo "$as_me:$LINENO: checking for shl_load" >&5
11020 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11021 if test "${ac_cv_func_shl_load+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 cat >conftest.$ac_ext <<_ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11032 #define shl_load innocuous_shl_load
11034 /* System header to define __stub macros and hopefully few prototypes,
11035 which can conflict with char shl_load (); below.
11036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11037 <limits.h> exists even on freestanding compilers. */
11040 # include <limits.h>
11042 # include <assert.h>
11047 /* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11054 /* The GNU C library defines this for functions which it implements
11055 to always fail with ENOSYS. Some functions are actually named
11056 something starting with __ and the normal name is an alias. */
11057 #if defined __stub_shl_load || defined __stub___shl_load
11064 return shl_load ();
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (ac_try="$ac_link"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_link") 2>conftest.er1
11078 grep -v '^ *+' conftest.er1 >conftest.err
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest$ac_exeext &&
11086 $as_test_x conftest$ac_exeext; then
11087 ac_cv_func_shl_load=yes
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 ac_cv_func_shl_load=no
11095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11096 conftest$ac_exeext conftest.$ac_ext
11098 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11099 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11100 if test $ac_cv_func_shl_load = yes; then
11101 lt_cv_dlopen="shl_load"
11103 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11104 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11105 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 ac_check_lib_save_LIBS=$LIBS
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11127 return shl_load ();
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_link") 2>conftest.er1
11141 grep -v '^ *+' conftest.er1 >conftest.err
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } && {
11146 test -z "$ac_c_werror_flag" ||
11147 test ! -s conftest.err
11148 } && test -s conftest$ac_exeext &&
11149 $as_test_x conftest$ac_exeext; then
11150 ac_cv_lib_dld_shl_load=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_lib_dld_shl_load=no
11158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11159 conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11162 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11163 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11164 if test $ac_cv_lib_dld_shl_load = yes; then
11165 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11167 { echo "$as_me:$LINENO: checking for dlopen" >&5
11168 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11169 if test "${ac_cv_func_dlopen+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11180 #define dlopen innocuous_dlopen
11182 /* System header to define __stub macros and hopefully few prototypes,
11183 which can conflict with char dlopen (); below.
11184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11185 <limits.h> exists even on freestanding compilers. */
11188 # include <limits.h>
11190 # include <assert.h>
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11202 /* The GNU C library defines this for functions which it implements
11203 to always fail with ENOSYS. Some functions are actually named
11204 something starting with __ and the normal name is an alias. */
11205 #if defined __stub_dlopen || defined __stub___dlopen
11217 rm -f conftest.$ac_objext conftest$ac_exeext
11218 if { (ac_try="$ac_link"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_link") 2>conftest.er1
11226 grep -v '^ *+' conftest.er1 >conftest.err
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest$ac_exeext &&
11234 $as_test_x conftest$ac_exeext; then
11235 ac_cv_func_dlopen=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_cv_func_dlopen=no
11243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11244 conftest$ac_exeext conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11247 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11248 if test $ac_cv_func_dlopen = yes; then
11249 lt_cv_dlopen="dlopen"
11251 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11252 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11253 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 ac_check_lib_save_LIBS=$LIBS
11258 cat >conftest.$ac_ext <<_ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11265 /* Override any GCC internal prototype to avoid an error.
11266 Use char because int might match the return type of a GCC
11267 builtin and then its argument prototype would still apply. */
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (ac_try="$ac_link"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_link") 2>conftest.er1
11289 grep -v '^ *+' conftest.er1 >conftest.err
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest$ac_exeext &&
11297 $as_test_x conftest$ac_exeext; then
11298 ac_cv_lib_dl_dlopen=yes
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_cv_lib_dl_dlopen=no
11306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11310 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11312 if test $ac_cv_lib_dl_dlopen = yes; then
11313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11315 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11316 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11317 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-lsvld $LIBS"
11322 cat >conftest.$ac_ext <<_ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (ac_try="$ac_link"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_link") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1 >conftest.err
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest$ac_exeext &&
11361 $as_test_x conftest$ac_exeext; then
11362 ac_cv_lib_svld_dlopen=yes
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_cv_lib_svld_dlopen=no
11370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11374 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11375 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11376 if test $ac_cv_lib_svld_dlopen = yes; then
11377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11379 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11380 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11381 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 ac_check_lib_save_LIBS=$LIBS
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11403 return dld_link ();
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (ac_try="$ac_link"
11410 case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_link") 2>conftest.er1
11417 grep -v '^ *+' conftest.er1 >conftest.err
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && {
11422 test -z "$ac_c_werror_flag" ||
11423 test ! -s conftest.err
11424 } && test -s conftest$ac_exeext &&
11425 $as_test_x conftest$ac_exeext; then
11426 ac_cv_lib_dld_dld_link=yes
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11431 ac_cv_lib_dld_dld_link=no
11434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11435 conftest$ac_exeext conftest.$ac_ext
11436 LIBS=$ac_check_lib_save_LIBS
11438 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11439 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11440 if test $ac_cv_lib_dld_dld_link = yes; then
11441 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11462 if test "x$lt_cv_dlopen" != xno; then
11468 case $lt_cv_dlopen in
11470 save_CPPFLAGS="$CPPFLAGS"
11471 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11473 save_LDFLAGS="$LDFLAGS"
11474 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11477 LIBS="$lt_cv_dlopen_libs $LIBS"
11479 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11480 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11481 if test "${lt_cv_dlopen_self+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 if test "$cross_compiling" = yes; then :
11485 lt_cv_dlopen_self=cross
11487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11488 lt_status=$lt_dlunknown
11489 cat > conftest.$ac_ext <<EOF
11490 #line __oline__ "configure"
11491 #include "confdefs.h"
11500 # define LT_DLGLOBAL RTLD_GLOBAL
11503 # define LT_DLGLOBAL DL_GLOBAL
11505 # define LT_DLGLOBAL 0
11509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11510 find out it does not work in some platform. */
11511 #ifndef LT_DLLAZY_OR_NOW
11513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11516 # define LT_DLLAZY_OR_NOW DL_LAZY
11519 # define LT_DLLAZY_OR_NOW RTLD_NOW
11522 # define LT_DLLAZY_OR_NOW DL_NOW
11524 # define LT_DLLAZY_OR_NOW 0
11532 extern "C" void exit (int);
11535 void fnord() { int i=42;}
11538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11539 int status = $lt_dlunknown;
11543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11544 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11545 /* dlclose (self); */
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11558 (./conftest; exit; ) >&5 2>/dev/null
11560 case x$lt_status in
11561 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11562 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11563 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11566 # compilation failed
11567 lt_cv_dlopen_self=no
11574 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11575 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11577 if test "x$lt_cv_dlopen_self" = xyes; then
11578 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11579 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11580 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11581 if test "${lt_cv_dlopen_self_static+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 if test "$cross_compiling" = yes; then :
11585 lt_cv_dlopen_self_static=cross
11587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11588 lt_status=$lt_dlunknown
11589 cat > conftest.$ac_ext <<EOF
11590 #line __oline__ "configure"
11591 #include "confdefs.h"
11600 # define LT_DLGLOBAL RTLD_GLOBAL
11603 # define LT_DLGLOBAL DL_GLOBAL
11605 # define LT_DLGLOBAL 0
11609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11610 find out it does not work in some platform. */
11611 #ifndef LT_DLLAZY_OR_NOW
11613 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11616 # define LT_DLLAZY_OR_NOW DL_LAZY
11619 # define LT_DLLAZY_OR_NOW RTLD_NOW
11622 # define LT_DLLAZY_OR_NOW DL_NOW
11624 # define LT_DLLAZY_OR_NOW 0
11632 extern "C" void exit (int);
11635 void fnord() { int i=42;}
11638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11639 int status = $lt_dlunknown;
11643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11644 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11645 /* dlclose (self); */
11653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654 (eval $ac_link) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11658 (./conftest; exit; ) >&5 2>/dev/null
11660 case x$lt_status in
11661 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11662 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11663 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11666 # compilation failed
11667 lt_cv_dlopen_self_static=no
11674 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11675 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11678 CPPFLAGS="$save_CPPFLAGS"
11679 LDFLAGS="$save_LDFLAGS"
11684 case $lt_cv_dlopen_self in
11685 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11686 *) enable_dlopen_self=unknown ;;
11689 case $lt_cv_dlopen_self_static in
11690 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11691 *) enable_dlopen_self_static=unknown ;;
11696 # Report which library types will actually be built
11697 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11698 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11699 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11700 echo "${ECHO_T}$can_build_shared" >&6; }
11702 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11703 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11704 test "$can_build_shared" = "no" && enable_shared=no
11706 # On AIX, shared libraries and static libraries use the same namespace, and
11707 # are all built from PIC.
11710 test "$enable_shared" = yes && enable_static=no
11711 if test -n "$RANLIB"; then
11712 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11713 postinstall_cmds='$RANLIB $lib'
11718 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11719 test "$enable_shared" = yes && enable_static=no
11723 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11724 echo "${ECHO_T}$enable_shared" >&6; }
11726 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11727 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11728 # Make sure either enable_shared or enable_static is yes.
11729 test "$enable_shared" = yes || enable_static=yes
11730 { echo "$as_me:$LINENO: result: $enable_static" >&5
11731 echo "${ECHO_T}$enable_static" >&6; }
11733 # The else clause should only fire when bootstrapping the
11734 # libtool distribution, otherwise you forgot to ship ltmain.sh
11735 # with your package, and you will get complaints that there are
11736 # no rules to generate ltmain.sh.
11737 if test -f "$ltmain"; then
11738 # See if we are running on zsh, and set the options which allow our commands through
11739 # without removal of \ escapes.
11740 if test -n "${ZSH_VERSION+set}" ; then
11741 setopt NO_GLOB_SUBST
11743 # Now quote all the things that may contain metacharacters while being
11744 # careful not to overquote the AC_SUBSTed values. We take copies of the
11745 # variables and quote the copies for generation of the libtool script.
11746 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11748 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11749 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11750 deplibs_check_method reload_flag reload_cmds need_locks \
11751 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11752 lt_cv_sys_global_symbol_to_c_name_address \
11753 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11754 old_postinstall_cmds old_postuninstall_cmds \
11758 lt_prog_compiler_wl \
11759 lt_prog_compiler_pic \
11760 lt_prog_compiler_static \
11761 lt_prog_compiler_no_builtin_flag \
11762 export_dynamic_flag_spec \
11763 thread_safe_flag_spec \
11764 whole_archive_flag_spec \
11765 enable_shared_with_static_runtimes \
11767 old_archive_from_new_cmds \
11772 compiler_lib_search_path \
11774 archive_expsym_cmds \
11776 postuninstall_cmds \
11777 old_archive_from_expsyms_cmds \
11778 allow_undefined_flag \
11779 no_undefined_flag \
11780 export_symbols_cmds \
11781 hardcode_libdir_flag_spec \
11782 hardcode_libdir_flag_spec_ld \
11783 hardcode_libdir_separator \
11784 hardcode_automatic \
11786 module_expsym_cmds \
11787 lt_cv_prog_compiler_c_o \
11790 include_expsyms; do
11793 old_archive_cmds | \
11794 old_archive_from_new_cmds | \
11796 archive_expsym_cmds | \
11798 module_expsym_cmds | \
11799 old_archive_from_expsyms_cmds | \
11800 export_symbols_cmds | \
11801 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11802 postinstall_cmds | postuninstall_cmds | \
11803 old_postinstall_cmds | old_postuninstall_cmds | \
11804 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11805 # Double-quote double-evaled strings.
11806 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11809 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11815 *'\$0 --fallback-echo"')
11816 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11820 cfgfile="${ofile}T"
11821 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11823 { echo "$as_me:$LINENO: creating $ofile" >&5
11824 echo "$as_me: creating $ofile" >&6;}
11826 cat <<__EOF__ >> "$cfgfile"
11829 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11830 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11831 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11833 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11834 # Free Software Foundation, Inc.
11836 # This file is part of GNU Libtool:
11837 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11839 # This program is free software; you can redistribute it and/or modify
11840 # it under the terms of the GNU General Public License as published by
11841 # the Free Software Foundation; either version 2 of the License, or
11842 # (at your option) any later version.
11844 # This program is distributed in the hope that it will be useful, but
11845 # WITHOUT ANY WARRANTY; without even the implied warranty of
11846 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11847 # General Public License for more details.
11849 # You should have received a copy of the GNU General Public License
11850 # along with this program; if not, write to the Free Software
11851 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11853 # As a special exception to the GNU General Public License, if you
11854 # distribute this file as part of a program that contains a
11855 # configuration script generated by Autoconf, you may include it under
11856 # the same distribution terms that you use for the rest of that program.
11858 # A sed program that does not truncate output.
11861 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11862 Xsed="$SED -e 1s/^X//"
11864 # The HP-UX ksh and POSIX shell print the target directory to stdout
11865 # if CDPATH is set.
11866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11868 # The names of the tagged configurations supported by this script.
11871 # ### BEGIN LIBTOOL CONFIG
11873 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11875 # Shell to use when invoking shell scripts.
11878 # Whether or not to build shared libraries.
11879 build_libtool_libs=$enable_shared
11881 # Whether or not to build static libraries.
11882 build_old_libs=$enable_static
11884 # Whether or not to add -lc for building shared libraries.
11885 build_libtool_need_lc=$archive_cmds_need_lc
11887 # Whether or not to disallow shared libs when runtime libs are static
11888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11890 # Whether or not to optimize for fast installation.
11891 fast_install=$enable_fast_install
11894 host_alias=$host_alias
11898 # The build system.
11899 build_alias=$build_alias
11903 # An echo program that does not interpret backslashes.
11908 AR_FLAGS=$lt_AR_FLAGS
11913 # LTCC compiler flags.
11914 LTCFLAGS=$lt_LTCFLAGS
11916 # A language-specific compiler.
11919 # Is the compiler the GNU C compiler?
11925 # The linker used to build libraries.
11928 # Whether we need hard or soft links.
11931 # A BSD-compatible nm program.
11934 # A symbol stripping program
11937 # Used to examine libraries when file_magic_cmd begins "file"
11938 MAGIC_CMD=$MAGIC_CMD
11940 # Used on cygwin: DLL creation program.
11943 # Used on cygwin: object dumper.
11946 # Used on cygwin: assembler.
11949 # The name of the directory that contains temporary libtool files.
11952 # How to create reloadable object files.
11953 reload_flag=$lt_reload_flag
11954 reload_cmds=$lt_reload_cmds
11956 # How to pass a linker flag through the compiler.
11957 wl=$lt_lt_prog_compiler_wl
11959 # Object file suffix (normally "o").
11960 objext="$ac_objext"
11962 # Old archive suffix (normally "a").
11965 # Shared library suffix (normally ".so").
11966 shrext_cmds='$shrext_cmds'
11968 # Executable file suffix (normally "").
11971 # Additional compiler flags for building library objects.
11972 pic_flag=$lt_lt_prog_compiler_pic
11975 # What is the maximum length of a command?
11976 max_cmd_len=$lt_cv_sys_max_cmd_len
11978 # Does compiler simultaneously support -c and -o options?
11979 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11981 # Must we lock files when doing compilation?
11982 need_locks=$lt_need_locks
11984 # Do we need the lib prefix for modules?
11985 need_lib_prefix=$need_lib_prefix
11987 # Do we need a version for libraries?
11988 need_version=$need_version
11990 # Whether dlopen is supported.
11991 dlopen_support=$enable_dlopen
11993 # Whether dlopen of programs is supported.
11994 dlopen_self=$enable_dlopen_self
11996 # Whether dlopen of statically linked programs is supported.
11997 dlopen_self_static=$enable_dlopen_self_static
11999 # Compiler flag to prevent dynamic linking.
12000 link_static_flag=$lt_lt_prog_compiler_static
12002 # Compiler flag to turn off builtin functions.
12003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12005 # Compiler flag to allow reflexive dlopens.
12006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12008 # Compiler flag to generate shared objects directly from archives.
12009 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12011 # Compiler flag to generate thread-safe objects.
12012 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12014 # Library versioning type.
12015 version_type=$version_type
12017 # Format of library name prefix.
12018 libname_spec=$lt_libname_spec
12020 # List of archive names. First name is the real one, the rest are links.
12021 # The last name is the one that the linker finds with -lNAME.
12022 library_names_spec=$lt_library_names_spec
12024 # The coded name of the library, if different from the real name.
12025 soname_spec=$lt_soname_spec
12027 # Commands used to build and install an old-style archive.
12029 old_archive_cmds=$lt_old_archive_cmds
12030 old_postinstall_cmds=$lt_old_postinstall_cmds
12031 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12033 # Create an old-style archive from a shared archive.
12034 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12036 # Create a temporary old-style archive to link instead of a shared archive.
12037 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12039 # Commands used to build and install a shared archive.
12040 archive_cmds=$lt_archive_cmds
12041 archive_expsym_cmds=$lt_archive_expsym_cmds
12042 postinstall_cmds=$lt_postinstall_cmds
12043 postuninstall_cmds=$lt_postuninstall_cmds
12045 # Commands used to build a loadable module (assumed same as above if empty)
12046 module_cmds=$lt_module_cmds
12047 module_expsym_cmds=$lt_module_expsym_cmds
12049 # Commands to strip libraries.
12050 old_striplib=$lt_old_striplib
12051 striplib=$lt_striplib
12053 # Dependencies to place before the objects being linked to create a
12055 predep_objects=$lt_predep_objects
12057 # Dependencies to place after the objects being linked to create a
12059 postdep_objects=$lt_postdep_objects
12061 # Dependencies to place before the objects being linked to create a
12063 predeps=$lt_predeps
12065 # Dependencies to place after the objects being linked to create a
12067 postdeps=$lt_postdeps
12069 # The library search path used internally by the compiler when linking
12070 # a shared library.
12071 compiler_lib_search_path=$lt_compiler_lib_search_path
12073 # Method to check whether dependent libraries are shared objects.
12074 deplibs_check_method=$lt_deplibs_check_method
12076 # Command to use when deplibs_check_method == file_magic.
12077 file_magic_cmd=$lt_file_magic_cmd
12079 # Flag that allows shared libraries with undefined symbols to be built.
12080 allow_undefined_flag=$lt_allow_undefined_flag
12082 # Flag that forces no undefined symbols.
12083 no_undefined_flag=$lt_no_undefined_flag
12085 # Commands used to finish a libtool library installation in a directory.
12086 finish_cmds=$lt_finish_cmds
12088 # Same as above, but a single script fragment to be evaled but not shown.
12089 finish_eval=$lt_finish_eval
12091 # Take the output of nm and produce a listing of raw symbols and C names.
12092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12094 # Transform the output of nm in a proper C declaration
12095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12097 # Transform the output of nm in a C name address pair
12098 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12100 # This is the shared library runtime path variable.
12101 runpath_var=$runpath_var
12103 # This is the shared library path variable.
12104 shlibpath_var=$shlibpath_var
12106 # Is shlibpath searched before the hard-coded library search path?
12107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12109 # How to hardcode a shared library path into an executable.
12110 hardcode_action=$hardcode_action
12112 # Whether we should hardcode library paths into libraries.
12113 hardcode_into_libs=$hardcode_into_libs
12115 # Flag to hardcode \$libdir into a binary during linking.
12116 # This must work even if \$libdir does not exist.
12117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12119 # If ld is used when linking, flag to hardcode \$libdir into
12120 # a binary during linking. This must work even if \$libdir does
12122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12124 # Whether we need a single -rpath flag with a separated argument.
12125 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12127 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12128 # resulting binary.
12129 hardcode_direct=$hardcode_direct
12131 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12132 # resulting binary.
12133 hardcode_minus_L=$hardcode_minus_L
12135 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12136 # the resulting binary.
12137 hardcode_shlibpath_var=$hardcode_shlibpath_var
12139 # Set to yes if building a shared library automatically hardcodes DIR into the library
12140 # and all subsequent libraries and executables linked against it.
12141 hardcode_automatic=$hardcode_automatic
12143 # Variables whose values should be saved in libtool wrapper scripts and
12144 # restored at relink time.
12145 variables_saved_for_relink="$variables_saved_for_relink"
12147 # Whether libtool must link a program against all its dependency libraries.
12148 link_all_deplibs=$link_all_deplibs
12150 # Compile-time system search path for libraries
12151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12153 # Run-time system search path for libraries
12154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12156 # Fix the shell variable \$srcfile for the compiler.
12157 fix_srcfile_path=$lt_fix_srcfile_path
12159 # Set to yes if exported symbols are required.
12160 always_export_symbols=$always_export_symbols
12162 # The commands to list exported symbols.
12163 export_symbols_cmds=$lt_export_symbols_cmds
12165 # The commands to extract the exported symbol list from a shared archive.
12166 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12168 # Symbols that should not be listed in the preloaded symbols.
12169 exclude_expsyms=$lt_exclude_expsyms
12171 # Symbols that must always be exported.
12172 include_expsyms=$lt_include_expsyms
12174 # ### END LIBTOOL CONFIG
12181 cat <<\EOF >> "$cfgfile"
12183 # AIX sometimes has problems with the GCC collect2 program. For some
12184 # reason, if we set the COLLECT_NAMES environment variable, the problems
12185 # vanish in a puff of smoke.
12186 if test "X${COLLECT_NAMES+set}" != Xset; then
12188 export COLLECT_NAMES
12194 # We use sed instead of cat because bash on DJGPP gets confused if
12195 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12196 # text mode, it properly converts lines to CR/LF. This bash problem
12197 # is reportedly fixed, but why not run on old versions too?
12198 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12200 mv -f "$cfgfile" "$ofile" || \
12201 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12205 # If there is no Makefile yet, we rely on a make rule to execute
12206 # `config.status --recheck' to rerun these tests and create the
12207 # libtool script then.
12208 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12209 if test -f "$ltmain_in"; then
12210 test -f Makefile && make "$ltmain"
12216 ac_cpp='$CPP $CPPFLAGS'
12217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12224 # Check whether --with-tags was given.
12225 if test "${with_tags+set}" = set; then
12226 withval=$with_tags; tagnames="$withval"
12230 if test -f "$ltmain" && test -n "$tagnames"; then
12231 if test ! -f "${ofile}"; then
12232 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12233 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12236 if test -z "$LTCC"; then
12237 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12238 if test -z "$LTCC"; then
12239 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12240 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12243 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12246 if test -z "$LTCFLAGS"; then
12247 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12250 # Extract list of available tagged configurations in $ofile.
12251 # Note that this assumes the entire list is on one line.
12252 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12255 for tagname in $tagnames; do
12257 # Check whether tagname contains only valid characters
12258 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12260 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12261 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12262 { (exit 1); exit 1; }; }
12266 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12268 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12269 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12270 { (exit 1); exit 1; }; }
12273 # Update the list of available tags.
12274 if test -n "$tagname"; then
12275 echo appending configuration tag \"$tagname\" to $ofile
12279 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12280 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12281 (test "X$CXX" != "Xg++"))) ; then
12283 ac_cpp='$CXXCPP $CPPFLAGS'
12284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12291 archive_cmds_need_lc_CXX=no
12292 allow_undefined_flag_CXX=
12293 always_export_symbols_CXX=no
12294 archive_expsym_cmds_CXX=
12295 export_dynamic_flag_spec_CXX=
12296 hardcode_direct_CXX=no
12297 hardcode_libdir_flag_spec_CXX=
12298 hardcode_libdir_flag_spec_ld_CXX=
12299 hardcode_libdir_separator_CXX=
12300 hardcode_minus_L_CXX=no
12301 hardcode_shlibpath_var_CXX=unsupported
12302 hardcode_automatic_CXX=no
12304 module_expsym_cmds_CXX=
12305 link_all_deplibs_CXX=unknown
12306 old_archive_cmds_CXX=$old_archive_cmds
12307 no_undefined_flag_CXX=
12308 whole_archive_flag_spec_CXX=
12309 enable_shared_with_static_runtimes_CXX=no
12311 # Dependencies to place before and after the object being linked:
12312 predep_objects_CXX=
12313 postdep_objects_CXX=
12316 compiler_lib_search_path_CXX=
12318 # Source file extension for C++ test sources.
12321 # Object file extension for compiled C++ test sources.
12325 # Code to be used in simple compile tests
12326 lt_simple_compile_test_code="int some_variable = 0;"
12328 # Code to be used in simple link tests
12329 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12331 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12333 # If no C compiler was specified, use CC.
12336 # If no C compiler flags were specified, use CFLAGS.
12337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12339 # Allow CC to be a program name with arguments.
12343 # save warnings/boilerplate of simple test code
12344 ac_outfile=conftest.$ac_objext
12345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12347 _lt_compiler_boilerplate=`cat conftest.err`
12350 ac_outfile=conftest.$ac_objext
12351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12353 _lt_linker_boilerplate=`cat conftest.err`
12357 # Allow CC to be a program name with arguments.
12362 lt_save_with_gnu_ld=$with_gnu_ld
12363 lt_save_path_LD=$lt_cv_path_LD
12364 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12365 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12367 $as_unset lt_cv_prog_gnu_ld
12369 if test -n "${lt_cv_path_LDCXX+set}"; then
12370 lt_cv_path_LD=$lt_cv_path_LDCXX
12372 $as_unset lt_cv_path_LD
12374 test -z "${LDCXX+set}" || LD=$LDCXX
12378 for cc_temp in $compiler""; do
12380 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12381 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12389 # We don't want -fno-exception wen compiling C++ code, so set the
12390 # no_builtin_flag separately
12391 if test "$GXX" = yes; then
12392 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12394 lt_prog_compiler_no_builtin_flag_CXX=
12397 if test "$GXX" = yes; then
12398 # Set up default GNU C++ configuration
12401 # Check whether --with-gnu-ld was given.
12402 if test "${with_gnu_ld+set}" = set; then
12403 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12409 if test "$GCC" = yes; then
12410 # Check if gcc -print-prog-name=ld gives a path.
12411 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12412 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12415 # gcc leaves a trailing carriage return which upsets mingw
12416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12421 # Accept absolute paths.
12423 re_direlt='/[^/][^/]*/\.\./'
12424 # Canonicalize the pathname of ld
12425 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12426 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12427 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12429 test -z "$LD" && LD="$ac_prog"
12432 # If it fails, then pretend we aren't using GCC.
12436 # If it is relative, then search for the first ld in PATH.
12437 with_gnu_ld=unknown
12440 elif test "$with_gnu_ld" = yes; then
12441 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12444 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12447 if test "${lt_cv_path_LD+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 if test -z "$LD"; then
12451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12452 for ac_dir in $PATH; do
12454 test -z "$ac_dir" && ac_dir=.
12455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12456 lt_cv_path_LD="$ac_dir/$ac_prog"
12457 # Check to see if the program is GNU ld. I'd rather use --version,
12458 # but apparently some variants of GNU ld only accept -v.
12459 # Break only if it was the GNU/non-GNU ld that we prefer.
12460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12461 *GNU* | *'with BFD'*)
12462 test "$with_gnu_ld" != no && break
12465 test "$with_gnu_ld" != yes && break
12472 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12476 LD="$lt_cv_path_LD"
12477 if test -n "$LD"; then
12478 { echo "$as_me:$LINENO: result: $LD" >&5
12479 echo "${ECHO_T}$LD" >&6; }
12481 { echo "$as_me:$LINENO: result: no" >&5
12482 echo "${ECHO_T}no" >&6; }
12484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12486 { (exit 1); exit 1; }; }
12487 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12489 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12493 case `$LD -v 2>&1 </dev/null` in
12494 *GNU* | *'with BFD'*)
12495 lt_cv_prog_gnu_ld=yes
12498 lt_cv_prog_gnu_ld=no
12502 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12503 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12504 with_gnu_ld=$lt_cv_prog_gnu_ld
12508 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12509 # archiving commands below assume that GNU ld is being used.
12510 if test "$with_gnu_ld" = yes; then
12511 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12512 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'
12514 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12517 # If archive_cmds runs LD, not CC, wlarc should be empty
12518 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12519 # investigate it a little bit more. (MM)
12522 # ancient GNU ld didn't support --whole-archive et. al.
12523 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12524 grep 'no-whole-archive' > /dev/null; then
12525 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12527 whole_archive_flag_spec_CXX=
12533 # A generic and very simple default shared library creation
12534 # command for GNU C++ for the case where it uses the native
12535 # linker, instead of GNU ld. If possible, this setting should
12536 # overridden to take advantage of the native linker features on
12537 # the platform it is being used on.
12538 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12541 # Commands to make compiler produce verbose output that lists
12542 # what "hidden" libraries, object files and flags are used when
12543 # linking a shared library.
12544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12552 # PORTME: fill in a description of your system's C++ link characteristics
12553 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12558 # FIXME: insert proper C++ library support
12562 if test "$host_cpu" = ia64; then
12563 # On IA64, the linker does run time linking by default, so we don't
12564 # have to do anything special.
12565 aix_use_runtimelinking=no
12566 exp_sym_flag='-Bexport'
12569 aix_use_runtimelinking=no
12571 # Test if we are trying to use run time linking or normal
12572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12573 # need to do runtime linking.
12574 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12575 for ld_flag in $LDFLAGS; do
12578 aix_use_runtimelinking=yes
12586 exp_sym_flag='-bexport'
12587 no_entry_flag='-bnoentry'
12590 # When large executables or shared objects are built, AIX ld can
12591 # have problems creating the table of contents. If linking a library
12592 # or program results in "error TOC overflow" add -mminimal-toc to
12593 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12594 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12596 archive_cmds_CXX=''
12597 hardcode_direct_CXX=yes
12598 hardcode_libdir_separator_CXX=':'
12599 link_all_deplibs_CXX=yes
12601 if test "$GXX" = yes; then
12602 case $host_os in aix4.[012]|aix4.[012].*)
12603 # We only want to do this on AIX 4.2 and lower, the check
12604 # below for broken collect2 doesn't work under 4.3+
12605 collect2name=`${CC} -print-prog-name=collect2`
12606 if test -f "$collect2name" && \
12607 strings "$collect2name" | grep resolve_lib_name >/dev/null
12609 # We have reworked collect2
12612 # We have old collect2
12613 hardcode_direct_CXX=unsupported
12614 # It fails to find uninstalled libraries when the uninstalled
12615 # path is not listed in the libpath. Setting hardcode_minus_L
12616 # to unsupported forces relinking
12617 hardcode_minus_L_CXX=yes
12618 hardcode_libdir_flag_spec_CXX='-L$libdir'
12619 hardcode_libdir_separator_CXX=
12623 shared_flag='-shared'
12624 if test "$aix_use_runtimelinking" = yes; then
12625 shared_flag="$shared_flag "'${wl}-G'
12629 if test "$host_cpu" = ia64; then
12630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12631 # chokes on -Wl,-G. The following line is correct:
12634 if test "$aix_use_runtimelinking" = yes; then
12635 shared_flag='${wl}-G'
12637 shared_flag='${wl}-bM:SRE'
12642 # It seems that -bexpall does not export symbols beginning with
12643 # underscore (_), so it is better to generate a list of symbols to export.
12644 always_export_symbols_CXX=yes
12645 if test "$aix_use_runtimelinking" = yes; then
12646 # Warning - without using the other runtime loading flags (-brtl),
12647 # -berok will link without error, but may produce a broken library.
12648 allow_undefined_flag_CXX='-berok'
12649 # Determine the default libpath from the value encoded in an empty executable.
12650 cat >conftest.$ac_ext <<_ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_link") 2>conftest.er1
12674 grep -v '^ *+' conftest.er1 >conftest.err
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_cxx_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest$ac_exeext &&
12682 $as_test_x conftest$ac_exeext; then
12684 lt_aix_libpath_sed='
12685 /Import File Strings/,/^$/ {
12691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12692 # Check for a 64-bit object if we didn't find anything.
12693 if test -z "$aix_libpath"; then
12694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12704 conftest$ac_exeext conftest.$ac_ext
12705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12707 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12709 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"
12711 if test "$host_cpu" = ia64; then
12712 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12713 allow_undefined_flag_CXX="-z nodefs"
12714 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"
12716 # Determine the default libpath from the value encoded in an empty executable.
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12732 rm -f conftest.$ac_objext conftest$ac_exeext
12733 if { (ac_try="$ac_link"
12734 case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_link") 2>conftest.er1
12741 grep -v '^ *+' conftest.er1 >conftest.err
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_cxx_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest$ac_exeext &&
12749 $as_test_x conftest$ac_exeext; then
12751 lt_aix_libpath_sed='
12752 /Import File Strings/,/^$/ {
12758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12759 # Check for a 64-bit object if we didn't find anything.
12760 if test -z "$aix_libpath"; then
12761 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12771 conftest$ac_exeext conftest.$ac_ext
12772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12774 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12775 # Warning - without using the other run time loading flags,
12776 # -berok will link without error, but may produce a broken library.
12777 no_undefined_flag_CXX=' ${wl}-bernotok'
12778 allow_undefined_flag_CXX=' ${wl}-berok'
12779 # Exported symbols can be pulled into shared objects from archives
12780 whole_archive_flag_spec_CXX='$convenience'
12781 archive_cmds_need_lc_CXX=yes
12782 # This is similar to how AIX traditionally builds its shared libraries.
12783 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'
12789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12790 allow_undefined_flag_CXX=unsupported
12791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12792 # support --undefined. This deserves some investigation. FIXME
12793 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12800 case $cc_basename in
12802 # FIXME: insert proper C++ library support
12808 cygwin* | mingw* | pw32*)
12809 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12810 # as there is no search path for DLLs.
12811 hardcode_libdir_flag_spec_CXX='-L$libdir'
12812 allow_undefined_flag_CXX=unsupported
12813 always_export_symbols_CXX=no
12814 enable_shared_with_static_runtimes_CXX=yes
12816 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12817 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'
12818 # If the export-symbols file already is a .def file (1st line
12819 # is EXPORTS), use it as is; otherwise, prepend...
12820 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12821 cp $export_symbols $output_objdir/$soname.def;
12823 echo EXPORTS > $output_objdir/$soname.def;
12824 cat $export_symbols >> $output_objdir/$soname.def;
12826 $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'
12831 darwin* | rhapsody*)
12833 rhapsody* | darwin1.[012])
12834 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12837 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12838 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12840 case ${MACOSX_DEPLOYMENT_TARGET} in
12842 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12845 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12851 archive_cmds_need_lc_CXX=no
12852 hardcode_direct_CXX=no
12853 hardcode_automatic_CXX=yes
12854 hardcode_shlibpath_var_CXX=unsupported
12855 whole_archive_flag_spec_CXX=''
12856 link_all_deplibs_CXX=yes
12858 if test "$GXX" = yes ; then
12859 lt_int_apple_cc_single_mod=no
12860 output_verbose_link_cmd='echo'
12861 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12862 lt_int_apple_cc_single_mod=yes
12864 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12865 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12867 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'
12869 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12871 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12872 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}'
12874 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}'
12876 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}'
12878 case $cc_basename in
12880 output_verbose_link_cmd='echo'
12881 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12882 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12884 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12885 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}'
12895 case $cc_basename in
12897 # FIXME: insert proper C++ library support
12901 # Green Hills C++ Compiler
12902 # FIXME: insert proper C++ library support
12906 # FIXME: insert proper C++ library support
12912 # C++ shared libraries reported to be fairly broken before switch to ELF
12916 archive_cmds_need_lc_CXX=no
12918 freebsd* | dragonfly*)
12919 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12926 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12927 hardcode_libdir_separator_CXX=:
12928 export_dynamic_flag_spec_CXX='${wl}-E'
12929 hardcode_direct_CXX=yes
12930 hardcode_minus_L_CXX=yes # Not in the search PATH,
12931 # but as the default
12932 # location of the library.
12934 case $cc_basename in
12936 # FIXME: insert proper C++ library support
12940 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'
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12945 # There doesn't appear to be a way to prevent this compiler from
12946 # explicitly linking system object files so we need to strip them
12947 # from the output so that they don't get included in the library
12949 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'
12952 if test "$GXX" = yes; then
12953 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'
12955 # FIXME: insert proper C++ library support
12962 if test $with_gnu_ld = no; then
12963 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12964 hardcode_libdir_separator_CXX=:
12969 export_dynamic_flag_spec_CXX='${wl}-E'
12975 hardcode_direct_CXX=no
12976 hardcode_shlibpath_var_CXX=no
12979 hardcode_direct_CXX=yes
12980 hardcode_minus_L_CXX=yes # Not in the search PATH,
12981 # but as the default
12982 # location of the library.
12986 case $cc_basename in
12988 # FIXME: insert proper C++ library support
12994 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12997 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13000 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13003 # Commands to make compiler produce verbose output that lists
13004 # what "hidden" libraries, object files and flags are used when
13005 # linking a shared library.
13007 # There doesn't appear to be a way to prevent this compiler from
13008 # explicitly linking system object files so we need to strip them
13009 # from the output so that they don't get included in the library
13011 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'
13014 if test "$GXX" = yes; then
13015 if test $with_gnu_ld = no; then
13018 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13021 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024 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'
13029 # FIXME: insert proper C++ library support
13036 hardcode_direct_CXX=no
13037 hardcode_shlibpath_var_CXX=no
13038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13039 export_dynamic_flag_spec_CXX='${wl}-E'
13040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13041 # Instead, shared libraries are loaded at an image base (0x10000000 by
13042 # default) and relocated if they conflict, which is a slow very memory
13043 # consuming and fragmenting process. To avoid this, we pick a random,
13044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13046 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'
13047 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'
13050 case $cc_basename in
13053 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'
13055 # Archives containing C++ object files must be created using
13056 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13057 # necessary to make sure instantiated templates are included
13059 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13062 if test "$GXX" = yes; then
13063 if test "$with_gnu_ld" = no; then
13064 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'
13066 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'
13069 link_all_deplibs_CXX=yes
13072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13073 hardcode_libdir_separator_CXX=:
13075 linux* | k*bsd*-gnu)
13076 case $cc_basename in
13078 # Kuck and Associates, Inc. (KAI) C++ Compiler
13080 # KCC will only create a shared library if the output file
13081 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13082 # to its proper name (with version) after linking.
13083 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'
13084 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'
13085 # Commands to make compiler produce verbose output that lists
13086 # what "hidden" libraries, object files and flags are used when
13087 # linking a shared library.
13089 # There doesn't appear to be a way to prevent this compiler from
13090 # explicitly linking system object files so we need to strip them
13091 # from the output so that they don't get included in the library
13093 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'
13095 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13098 # Archives containing C++ object files must be created using
13099 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13100 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13105 # version 8.0 and above of icpc choke on multiply defined symbols
13106 # if we add $predep_objects and $postdep_objects, however 7.1 and
13107 # earlier do not add the objects themselves.
13108 case `$CC -V 2>&1` in
13110 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13111 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'
13113 *) # Version 8.0 or newer
13116 ia64*) tmp_idyn=' -i_dynamic';;
13118 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13119 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'
13122 archive_cmds_need_lc_CXX=no
13123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13125 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13128 # Portland Group C++ compiler
13129 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13130 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'
13132 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13134 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'
13138 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13139 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'
13141 runpath_var=LD_RUN_PATH
13142 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13143 hardcode_libdir_separator_CXX=:
13145 # Commands to make compiler produce verbose output that lists
13146 # what "hidden" libraries, object files and flags are used when
13147 # linking a shared library.
13149 # There doesn't appear to be a way to prevent this compiler from
13150 # explicitly linking system object files so we need to strip them
13151 # from the output so that they don't get included in the library
13153 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'
13156 case `$CC -V 2>&1 | sed 5q` in
13159 no_undefined_flag_CXX=' -zdefs'
13160 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13161 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13162 hardcode_libdir_flag_spec_CXX='-R$libdir'
13163 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13165 # Not sure whether something based on
13166 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13168 output_verbose_link_cmd='echo'
13170 # Archives containing C++ object files must be created using
13171 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13172 # necessary to make sure instantiated templates are included
13174 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13181 # FIXME: insert proper C++ library support
13185 # FIXME: insert proper C++ library support
13189 case $cc_basename in
13191 # FIXME: insert proper C++ library support
13195 # FIXME: insert proper C++ library support
13200 netbsd* | netbsdelf*-gnu)
13201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13202 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13204 hardcode_libdir_flag_spec_CXX='-R$libdir'
13205 hardcode_direct_CXX=yes
13206 hardcode_shlibpath_var_CXX=no
13208 # Workaround some broken pre-1.5 toolchains
13209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13212 # C++ shared libraries are fairly broken
13216 if test -f /usr/libexec/ld.so; then
13217 hardcode_direct_CXX=yes
13218 hardcode_shlibpath_var_CXX=no
13219 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13222 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13223 export_dynamic_flag_spec_CXX='${wl}-E'
13224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13226 output_verbose_link_cmd='echo'
13232 case $cc_basename in
13234 # Kuck and Associates, Inc. (KAI) C++ Compiler
13236 # KCC will only create a shared library if the output file
13237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13238 # to its proper name (with version) after linking.
13239 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'
13241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13242 hardcode_libdir_separator_CXX=:
13244 # Archives containing C++ object files must be created using
13245 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13246 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13250 # Rational C++ 2.4.1
13251 # FIXME: insert proper C++ library support
13255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13256 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'
13258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13259 hardcode_libdir_separator_CXX=:
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13269 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'
13272 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13274 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'
13276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13277 hardcode_libdir_separator_CXX=:
13279 # Commands to make compiler produce verbose output that lists
13280 # what "hidden" libraries, object files and flags are used when
13281 # linking a shared library.
13282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13285 # FIXME: insert proper C++ library support
13292 case $cc_basename in
13294 # Kuck and Associates, Inc. (KAI) C++ Compiler
13296 # KCC will only create a shared library if the output file
13297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13298 # to its proper name (with version) after linking.
13299 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'
13301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13302 hardcode_libdir_separator_CXX=:
13304 # Archives containing C++ object files must be created using
13305 # the KAI C++ compiler.
13306 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13309 # Rational C++ 2.4.1
13310 # FIXME: insert proper C++ library support
13314 allow_undefined_flag_CXX=' -expect_unresolved \*'
13315 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'
13316 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13317 echo "-hidden">> $lib.exp~
13318 $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~
13321 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13322 hardcode_libdir_separator_CXX=:
13324 # Commands to make compiler produce verbose output that lists
13325 # what "hidden" libraries, object files and flags are used when
13326 # linking a shared library.
13328 # There doesn't appear to be a way to prevent this compiler from
13329 # explicitly linking system object files so we need to strip them
13330 # from the output so that they don't get included in the library
13332 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'
13335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13336 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13337 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'
13339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_CXX=:
13342 # Commands to make compiler produce verbose output that lists
13343 # what "hidden" libraries, object files and flags are used when
13344 # linking a shared library.
13345 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13348 # FIXME: insert proper C++ library support
13355 # FIXME: insert proper C++ library support
13359 case $cc_basename in
13362 # FIXME: insert proper C++ library support
13367 # FIXME: insert proper C++ library support
13371 # FIXME: insert proper C++ library support
13377 case $cc_basename in
13379 # Sun C++ 4.2, 5.x and Centerline C++
13380 archive_cmds_need_lc_CXX=yes
13381 no_undefined_flag_CXX=' -zdefs'
13382 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13383 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13384 $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'
13386 hardcode_libdir_flag_spec_CXX='-R$libdir'
13387 hardcode_shlibpath_var_CXX=no
13389 solaris2.[0-5] | solaris2.[0-5].*) ;;
13391 # The compiler driver will combine and reorder linker options,
13392 # but understands `-z linker_flag'.
13393 # Supported since Solaris 2.6 (maybe 2.5.1?)
13394 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13397 link_all_deplibs_CXX=yes
13399 output_verbose_link_cmd='echo'
13401 # Archives containing C++ object files must be created using
13402 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13403 # necessary to make sure instantiated templates are included
13405 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13408 # Green Hills C++ Compiler
13409 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13411 # The C++ compiler must be used to create the archive.
13412 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13415 # GNU C++ compiler with Solaris linker
13416 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13417 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13418 if $CC --version | grep -v '^2\.7' > /dev/null; then
13419 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13420 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13421 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13423 # Commands to make compiler produce verbose output that lists
13424 # what "hidden" libraries, object files and flags are used when
13425 # linking a shared library.
13426 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13428 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13430 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13431 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13432 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13434 # Commands to make compiler produce verbose output that lists
13435 # what "hidden" libraries, object files and flags are used when
13436 # linking a shared library.
13437 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13440 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13442 solaris2.[0-5] | solaris2.[0-5].*) ;;
13444 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13451 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13452 no_undefined_flag_CXX='${wl}-z,text'
13453 archive_cmds_need_lc_CXX=no
13454 hardcode_shlibpath_var_CXX=no
13455 runpath_var='LD_RUN_PATH'
13457 case $cc_basename in
13459 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468 sysv5* | sco3.2v5* | sco5v6*)
13469 # Note: We can NOT use -z defs as we might desire, because we do not
13470 # link with -lc, and that would cause any symbols used from libc to
13471 # always be unresolved, which means just about no library would
13472 # ever link correctly. If we're not using GNU ld we use -z text
13473 # though, which does catch some bad symbols but isn't as heavy-handed
13475 # For security reasons, it is highly recommended that you always
13476 # use absolute paths for naming shared libraries, and exclude the
13477 # DT_RUNPATH tag from executables and libraries. But doing so
13478 # requires that you compile everything twice, which is a pain.
13479 # So that behaviour is only enabled if SCOABSPATH is set to a
13480 # non-empty value in the environment. Most likely only useful for
13481 # creating official distributions of packages.
13482 # This is a hack until libtool officially supports absolute path
13483 # names for shared libraries.
13484 no_undefined_flag_CXX='${wl}-z,text'
13485 allow_undefined_flag_CXX='${wl}-z,nodefs'
13486 archive_cmds_need_lc_CXX=no
13487 hardcode_shlibpath_var_CXX=no
13488 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13489 hardcode_libdir_separator_CXX=':'
13490 link_all_deplibs_CXX=yes
13491 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13492 runpath_var='LD_RUN_PATH'
13494 case $cc_basename in
13496 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13500 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13506 case $cc_basename in
13508 # NonStop-UX NCC 3.20
13509 # FIXME: insert proper C++ library support
13513 # FIXME: insert proper C++ library support
13519 # FIXME: insert proper C++ library support
13523 # FIXME: insert proper C++ library support
13527 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13528 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13529 test "$ld_shlibs_CXX" = no && can_build_shared=no
13535 ## There is no encapsulation within the following macros, do not change
13536 ## the running order or otherwise move them around unless you know exactly
13537 ## what you are doing...
13539 cat > conftest.$ac_ext <<EOF
13543 Foo (void) { a = 0; }
13549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; then
13554 # Parse the compiler output and extract the necessary
13555 # objects, libraries and library flags.
13557 # Sentinel used to keep track of whether or not we are before
13558 # the conftest object file.
13559 pre_test_object_deps_done=no
13561 # The `*' in the case matches for architectures that use `case' in
13562 # $output_verbose_cmd can trigger glob expansion during the loop
13563 # eval without this substitution.
13564 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13566 for p in `eval $output_verbose_link_cmd`; do
13570 # Some compilers place space between "-{L,R}" and the path.
13571 # Remove the space.
13572 if test $p = "-L" \
13573 || test $p = "-R"; then
13580 if test "$pre_test_object_deps_done" = no; then
13583 # Internal compiler library paths should come after those
13584 # provided the user. The postdeps already come after the
13585 # user supplied libs so there is no need to process them.
13586 if test -z "$compiler_lib_search_path_CXX"; then
13587 compiler_lib_search_path_CXX="${prev}${p}"
13589 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13592 # The "-l" case would never come before the object being
13593 # linked, so don't bother handling this case.
13596 if test -z "$postdeps_CXX"; then
13597 postdeps_CXX="${prev}${p}"
13599 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13605 # This assumes that the test object file only shows up
13606 # once in the compiler output.
13607 if test "$p" = "conftest.$objext"; then
13608 pre_test_object_deps_done=yes
13612 if test "$pre_test_object_deps_done" = no; then
13613 if test -z "$predep_objects_CXX"; then
13614 predep_objects_CXX="$p"
13616 predep_objects_CXX="$predep_objects_CXX $p"
13619 if test -z "$postdep_objects_CXX"; then
13620 postdep_objects_CXX="$p"
13622 postdep_objects_CXX="$postdep_objects_CXX $p"
13627 *) ;; # Ignore the rest.
13635 echo "libtool.m4: error: problem compiling CXX test program"
13638 $rm -f confest.$objext
13640 # PORTME: override above test on systems where it is broken
13643 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13644 # hack all around it, let's just trust "g++" to DTRT.
13645 predep_objects_CXX=
13646 postdep_objects_CXX=
13651 case `$CC -V 2>&1 | sed 5q` in
13655 # The more standards-conforming stlport4 library is
13656 # incompatible with the Cstd library. Avoid specifying
13657 # it if it's in CXXFLAGS. Ignore libCrun as
13658 # -library=stlport4 depends on it.
13659 case " $CXX $CXXFLAGS " in
13660 *" -library=stlport4 "*)
13661 solaris_use_stlport4=yes
13664 if test "$solaris_use_stlport4" != yes; then
13665 postdeps_CXX='-library=Cstd -library=Crun'
13672 case $cc_basename in
13674 # The more standards-conforming stlport4 library is
13675 # incompatible with the Cstd library. Avoid specifying
13676 # it if it's in CXXFLAGS. Ignore libCrun as
13677 # -library=stlport4 depends on it.
13678 case " $CXX $CXXFLAGS " in
13679 *" -library=stlport4 "*)
13680 solaris_use_stlport4=yes
13684 # Adding this requires a known-good setup of shared libraries for
13685 # Sun compiler versions before 5.6, else PIC objects from an old
13686 # archive will be linked into the output, leading to subtle bugs.
13687 if test "$solaris_use_stlport4" != yes; then
13688 postdeps_CXX='-library=Cstd -library=Crun'
13696 case " $postdeps_CXX " in
13697 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13700 lt_prog_compiler_wl_CXX=
13701 lt_prog_compiler_pic_CXX=
13702 lt_prog_compiler_static_CXX=
13704 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13705 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13707 # C++ specific cases for pic, static, wl, etc.
13708 if test "$GXX" = yes; then
13709 lt_prog_compiler_wl_CXX='-Wl,'
13710 lt_prog_compiler_static_CXX='-static'
13714 # All AIX code is PIC.
13715 if test "$host_cpu" = ia64; then
13716 # AIX 5 now supports IA64 processor
13717 lt_prog_compiler_static_CXX='-Bstatic'
13721 # FIXME: we need at least 68020 code to build shared libraries, but
13722 # adding the `-m68020' flag to GCC prevents building anything better,
13724 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13726 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13727 # PIC is the default for these OSes.
13729 mingw* | cygwin* | os2* | pw32*)
13730 # This hack is so that the source file can tell whether it is being
13731 # built for inclusion in a dll (and should export symbols for example).
13732 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13733 # (--disable-auto-import) libraries
13734 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13736 darwin* | rhapsody*)
13737 # PIC is the default on this platform
13738 # Common symbols not allowed in MH_DYLIB files
13739 lt_prog_compiler_pic_CXX='-fno-common'
13742 # DJGPP does not support shared libraries at all
13743 lt_prog_compiler_pic_CXX=
13746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13747 # Instead, we relocate shared libraries at runtime.
13750 if test -d /usr/nec; then
13751 lt_prog_compiler_pic_CXX=-Kconform_pic
13755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13756 # not for PA HP-UX.
13761 lt_prog_compiler_pic_CXX='-fPIC'
13766 lt_prog_compiler_pic_CXX='-fPIC'
13772 # All AIX code is PIC.
13773 if test "$host_cpu" = ia64; then
13774 # AIX 5 now supports IA64 processor
13775 lt_prog_compiler_static_CXX='-Bstatic'
13777 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13781 case $cc_basename in
13783 # Green Hills C++ Compiler
13784 # _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"
13789 # PIC is the default on this platform
13790 # Common symbols not allowed in MH_DYLIB files
13791 case $cc_basename in
13793 lt_prog_compiler_pic_CXX='-qnocommon'
13794 lt_prog_compiler_wl_CXX='-Wl,'
13799 case $cc_basename in
13801 lt_prog_compiler_pic_CXX='-KPIC'
13804 # Green Hills C++ Compiler
13805 lt_prog_compiler_pic_CXX='-pic'
13811 freebsd* | dragonfly*)
13812 # FreeBSD uses GNU C++
13814 hpux9* | hpux10* | hpux11*)
13815 case $cc_basename in
13817 lt_prog_compiler_wl_CXX='-Wl,'
13818 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13819 if test "$host_cpu" != ia64; then
13820 lt_prog_compiler_pic_CXX='+Z'
13824 lt_prog_compiler_wl_CXX='-Wl,'
13825 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13831 lt_prog_compiler_pic_CXX='+Z'
13840 # This is c89, which is MS Visual C++ (no shared libs)
13841 # Anyone wants to do a port?
13843 irix5* | irix6* | nonstopux*)
13844 case $cc_basename in
13846 lt_prog_compiler_wl_CXX='-Wl,'
13847 lt_prog_compiler_static_CXX='-non_shared'
13848 # CC pic flag -KPIC is the default.
13854 linux* | k*bsd*-gnu)
13855 case $cc_basename in
13858 lt_prog_compiler_wl_CXX='--backend -Wl,'
13859 lt_prog_compiler_pic_CXX='-fPIC'
13863 lt_prog_compiler_wl_CXX='-Wl,'
13864 lt_prog_compiler_pic_CXX='-KPIC'
13865 lt_prog_compiler_static_CXX='-static'
13868 # Portland Group C++ compiler.
13869 lt_prog_compiler_wl_CXX='-Wl,'
13870 lt_prog_compiler_pic_CXX='-fpic'
13871 lt_prog_compiler_static_CXX='-Bstatic'
13875 # Make sure the PIC flag is empty. It appears that all Alpha
13876 # Linux and Compaq Tru64 Unix objects are PIC.
13877 lt_prog_compiler_pic_CXX=
13878 lt_prog_compiler_static_CXX='-non_shared'
13881 case `$CC -V 2>&1 | sed 5q` in
13884 lt_prog_compiler_pic_CXX='-KPIC'
13885 lt_prog_compiler_static_CXX='-Bstatic'
13886 lt_prog_compiler_wl_CXX='-Qoption ld '
13897 case $cc_basename in
13899 lt_prog_compiler_pic_CXX='-W c,exportall'
13905 netbsd* | netbsdelf*-gnu)
13907 osf3* | osf4* | osf5*)
13908 case $cc_basename in
13910 lt_prog_compiler_wl_CXX='--backend -Wl,'
13913 # Rational C++ 2.4.1
13914 lt_prog_compiler_pic_CXX='-pic'
13917 # Digital/Compaq C++
13918 lt_prog_compiler_wl_CXX='-Wl,'
13919 # Make sure the PIC flag is empty. It appears that all Alpha
13920 # Linux and Compaq Tru64 Unix objects are PIC.
13921 lt_prog_compiler_pic_CXX=
13922 lt_prog_compiler_static_CXX='-non_shared'
13931 case $cc_basename in
13933 # Sun C++ 4.2, 5.x and Centerline C++
13934 lt_prog_compiler_pic_CXX='-KPIC'
13935 lt_prog_compiler_static_CXX='-Bstatic'
13936 lt_prog_compiler_wl_CXX='-Qoption ld '
13939 # Green Hills C++ Compiler
13940 lt_prog_compiler_pic_CXX='-PIC'
13947 case $cc_basename in
13950 lt_prog_compiler_pic_CXX='-pic'
13951 lt_prog_compiler_static_CXX='-Bstatic'
13955 lt_prog_compiler_pic_CXX='-pic'
13962 case $cc_basename in
13964 # NonStop-UX NCC 3.20
13965 lt_prog_compiler_pic_CXX='-KPIC'
13971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13972 case $cc_basename in
13974 lt_prog_compiler_wl_CXX='-Wl,'
13975 lt_prog_compiler_pic_CXX='-KPIC'
13976 lt_prog_compiler_static_CXX='-Bstatic'
13983 lt_prog_compiler_can_build_shared_CXX=no
13988 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13989 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13992 # Check to make sure the PIC flag actually works.
13994 if test -n "$lt_prog_compiler_pic_CXX"; then
13996 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13997 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13998 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 lt_prog_compiler_pic_works_CXX=no
14002 ac_outfile=conftest.$ac_objext
14003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14004 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14005 # Insert the option either (1) after the last *FLAGS variable, or
14006 # (2) before a word containing "conftest.", or (3) at the end.
14007 # Note that $ac_compile itself does not contain backslashes and begins
14008 # with a dollar sign (not a hyphen), so the echo should work correctly.
14009 # The option is referenced via a variable to avoid confusing sed.
14010 lt_compile=`echo "$ac_compile" | $SED \
14011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14013 -e 's:$: $lt_compiler_flag:'`
14014 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14015 (eval "$lt_compile" 2>conftest.err)
14017 cat conftest.err >&5
14018 echo "$as_me:__oline__: \$? = $ac_status" >&5
14019 if (exit $ac_status) && test -s "$ac_outfile"; then
14020 # The compiler can only warn and ignore the option if not recognized
14021 # So say no if there are warnings other than the usual output.
14022 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14024 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14025 lt_prog_compiler_pic_works_CXX=yes
14031 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14032 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14034 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14035 case $lt_prog_compiler_pic_CXX in
14037 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14040 lt_prog_compiler_pic_CXX=
14041 lt_prog_compiler_can_build_shared_CXX=no
14046 # For platforms which do not support PIC, -DPIC is meaningless:
14048 lt_prog_compiler_pic_CXX=
14051 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14056 # Check to make sure the static flag actually works.
14058 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14059 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14060 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14061 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 lt_prog_compiler_static_works_CXX=no
14065 save_LDFLAGS="$LDFLAGS"
14066 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14067 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14068 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14069 # The linker can only warn and ignore the option if not recognized
14070 # So say no if there are warnings
14071 if test -s conftest.err; then
14072 # Append any errors to the config.log.
14073 cat conftest.err 1>&5
14074 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14076 if diff conftest.exp conftest.er2 >/dev/null; then
14077 lt_prog_compiler_static_works_CXX=yes
14080 lt_prog_compiler_static_works_CXX=yes
14084 LDFLAGS="$save_LDFLAGS"
14087 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14088 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14090 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14093 lt_prog_compiler_static_CXX=
14097 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14098 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14099 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 lt_cv_prog_compiler_c_o_CXX=no
14103 $rm -r conftest 2>/dev/null
14107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14109 lt_compiler_flag="-o out/conftest2.$ac_objext"
14110 # Insert the option either (1) after the last *FLAGS variable, or
14111 # (2) before a word containing "conftest.", or (3) at the end.
14112 # Note that $ac_compile itself does not contain backslashes and begins
14113 # with a dollar sign (not a hyphen), so the echo should work correctly.
14114 lt_compile=`echo "$ac_compile" | $SED \
14115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117 -e 's:$: $lt_compiler_flag:'`
14118 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14119 (eval "$lt_compile" 2>out/conftest.err)
14121 cat out/conftest.err >&5
14122 echo "$as_me:__oline__: \$? = $ac_status" >&5
14123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14125 # The compiler can only warn and ignore the option if not recognized
14126 # So say no if there are warnings
14127 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14130 lt_cv_prog_compiler_c_o_CXX=yes
14135 # SGI C++ compiler will create directory out/ii_files/ for
14136 # template instantiation
14137 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14138 $rm out/* && rmdir out
14144 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14145 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14148 hard_links="nottested"
14149 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14150 # do not overwrite the value of need_locks provided by the user
14151 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14152 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14157 ln conftest.a conftest.b 2>&5 || hard_links=no
14158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14159 { echo "$as_me:$LINENO: result: $hard_links" >&5
14160 echo "${ECHO_T}$hard_links" >&6; }
14161 if test "$hard_links" = no; then
14162 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14163 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14170 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14171 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14173 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14176 # If we're using GNU nm, then we don't want the "-C" option.
14177 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14178 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14179 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'
14181 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'
14185 export_symbols_cmds_CXX="$ltdll_cmds"
14188 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'
14190 linux* | k*bsd*-gnu)
14191 link_all_deplibs_CXX=no
14194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14198 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14199 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14200 test "$ld_shlibs_CXX" = no && can_build_shared=no
14203 # Do we need to explicitly link libc?
14205 case "x$archive_cmds_need_lc_CXX" in
14207 # Assume -lc should be added
14208 archive_cmds_need_lc_CXX=yes
14210 if test "$enable_shared" = yes && test "$GCC" = yes; then
14211 case $archive_cmds_CXX in
14213 # FIXME: we may have to deal with multi-command sequences.
14216 # Test whether the compiler implicitly links with -lc since on some
14217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14218 # to ld, don't add -lc before -lgcc.
14219 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225 (eval $ac_compile) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } 2>conftest.err; then
14231 libobjs=conftest.$ac_objext
14233 wl=$lt_prog_compiler_wl_CXX
14234 pic_flag=$lt_prog_compiler_pic_CXX
14240 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14241 allow_undefined_flag_CXX=
14242 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14243 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }
14248 archive_cmds_need_lc_CXX=no
14250 archive_cmds_need_lc_CXX=yes
14252 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14254 cat conftest.err 1>&5
14257 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14258 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14265 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14266 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14267 library_names_spec=
14268 libname_spec='lib$name'
14272 postuninstall_cmds=
14276 shlibpath_overrides_runpath=unknown
14278 dynamic_linker="$host_os ld.so"
14279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14281 need_lib_prefix=unknown
14282 hardcode_into_libs=no
14284 # when you set need_version to no, make sure it does not cause -set_version
14285 # flags to be left without arguments
14286 need_version=unknown
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14292 shlibpath_var=LIBPATH
14294 # AIX 3 has no versioning support, so we append a major version to the name.
14295 soname_spec='${libname}${release}${shared_ext}$major'
14302 hardcode_into_libs=yes
14303 if test "$host_cpu" = ia64; then
14304 # AIX 5 supports IA64
14305 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14306 shlibpath_var=LD_LIBRARY_PATH
14308 # With GCC up to 2.95.x, collect2 would create an import file
14309 # for dependence libraries. The import file would start with
14310 # the line `#! .'. This would cause the generated library to
14311 # depend on `.', always an invalid library. This was fixed in
14312 # development snapshots of GCC prior to 3.0.
14314 aix4 | aix4.[01] | aix4.[01].*)
14315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14317 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14320 can_build_shared=no
14324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14325 # soname into executable. Probably we can add versioning support to
14326 # collect2, so additional links can be useful in future.
14327 if test "$aix_use_runtimelinking" = yes; then
14328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14329 # instead of lib<name>.a to let people know that these are not
14330 # typical AIX shared libraries.
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333 # We preserve .a as extension for shared libraries through AIX4.2
14334 # and later when we are not doing run time linking.
14335 library_names_spec='${libname}${release}.a $libname.a'
14336 soname_spec='${libname}${release}${shared_ext}$major'
14338 shlibpath_var=LIBPATH
14343 library_names_spec='$libname.ixlibrary $libname.a'
14344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14345 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'
14349 library_names_spec='${libname}${shared_ext}'
14350 dynamic_linker="$host_os ld.so"
14351 shlibpath_var=LIBRARY_PATH
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358 soname_spec='${libname}${release}${shared_ext}$major'
14359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14360 shlibpath_var=LD_LIBRARY_PATH
14361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14363 # the default ld.so.conf also contains /usr/contrib/lib and
14364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14365 # libtool to hard-code these into programs
14368 cygwin* | mingw* | pw32*)
14369 version_type=windows
14374 case $GCC,$host_os in
14375 yes,cygwin* | yes,mingw* | yes,pw32*)
14376 library_names_spec='$libname.dll.a'
14377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14378 postinstall_cmds='base_file=`basename \${file}`~
14379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14380 dldir=$destdir/`dirname \$dlpath`~
14381 test -d \$dldir || mkdir -p \$dldir~
14382 $install_prog $dir/$dlname \$dldir/$dlname~
14383 chmod a+x \$dldir/$dlname'
14384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14385 dlpath=$dir/\$dldll~
14387 shlibpath_overrides_runpath=yes
14391 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14392 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14393 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14396 # MinGW DLLs use traditional 'lib' prefix
14397 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14398 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14399 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14400 # It is most probably a Windows format PATH printed by
14401 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14402 # path with ; separators, and with drive letters. We can handle the
14403 # drive letters (cygwin fileutils understands them), so leave them,
14404 # especially as we might pass files found there to a mingw objdump,
14405 # which wouldn't understand a cygwinified path. Ahh.
14406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14412 # pw32 DLLs use 'pw' prefix rather than 'lib'
14413 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14419 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14422 dynamic_linker='Win32 ld.exe'
14423 # FIXME: first we should search . and the directory the executable is in
14427 darwin* | rhapsody*)
14428 dynamic_linker="$host_os dyld"
14429 version_type=darwin
14432 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14433 soname_spec='${libname}${release}${major}$shared_ext'
14434 shlibpath_overrides_runpath=yes
14435 shlibpath_var=DYLD_LIBRARY_PATH
14436 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 shlibpath_var=LD_LIBRARY_PATH
14454 freebsd* | dragonfly*)
14455 # DragonFly does not have aout. When/if they implement a new
14456 # versioning mechanism, adjust this.
14457 if test -x /usr/bin/objformat; then
14458 objformat=`/usr/bin/objformat`
14461 freebsd[123]*) objformat=aout ;;
14462 *) objformat=elf ;;
14465 version_type=freebsd-$objformat
14466 case $version_type in
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14477 shlibpath_var=LD_LIBRARY_PATH
14480 shlibpath_overrides_runpath=yes
14482 freebsd3.[01]* | freebsdelf3.[01]*)
14483 shlibpath_overrides_runpath=yes
14484 hardcode_into_libs=yes
14486 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14487 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14488 shlibpath_overrides_runpath=no
14489 hardcode_into_libs=yes
14491 *) # from 4.6 on, and DragonFly
14492 shlibpath_overrides_runpath=yes
14493 hardcode_into_libs=yes
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 hardcode_into_libs=yes
14508 hpux9* | hpux10* | hpux11*)
14509 # Give a soname corresponding to the major version so that dld.sl refuses to
14510 # link against other versions.
14517 hardcode_into_libs=yes
14518 dynamic_linker="$host_os dld.so"
14519 shlibpath_var=LD_LIBRARY_PATH
14520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 if test "X$HPUX_IA64_MODE" = X32; then
14524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14532 hardcode_into_libs=yes
14533 dynamic_linker="$host_os dld.sl"
14534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537 soname_spec='${libname}${release}${shared_ext}$major'
14538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14543 dynamic_linker="$host_os dld.sl"
14544 shlibpath_var=SHLIB_PATH
14545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14550 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14551 postinstall_cmds='chmod 555 $lib'
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=no
14563 hardcode_into_libs=yes
14566 irix5* | irix6* | nonstopux*)
14568 nonstopux*) version_type=nonstopux ;;
14570 if test "$lt_cv_prog_gnu_ld" = yes; then
14578 soname_spec='${libname}${release}${shared_ext}$major'
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14581 irix5* | nonstopux*)
14582 libsuff= shlibsuff=
14585 case $LD in # libtool.m4 will add one of these switches to LD
14586 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14587 libsuff= shlibsuff= libmagic=32-bit;;
14588 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14589 libsuff=32 shlibsuff=N32 libmagic=N32;;
14590 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14591 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14592 *) libsuff= shlibsuff= libmagic=never-match;;
14596 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14597 shlibpath_overrides_runpath=no
14598 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14599 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14600 hardcode_into_libs=yes
14603 # No shared lib support for Linux oldld, aout, or coff.
14604 linux*oldld* | linux*aout* | linux*coff*)
14608 # This must be Linux ELF.
14609 linux* | k*bsd*-gnu)
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=no
14618 # This implies no fast_install, which is unacceptable.
14619 # Some rework will be needed to allow for fast_install
14620 # before this can be enabled.
14621 hardcode_into_libs=yes
14623 # Append ld.so.conf contents to the search path
14624 if test -f /etc/ld.so.conf; then
14625 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14629 # We used to test for /lib/ld.so.1 and disable shared libraries on
14630 # powerpc, because MkLinux only supported shared libraries with the
14631 # GNU dynamic linker. Since this was broken with cross compilers,
14632 # most powerpc-linux boxes support dynamic linking these days and
14633 # people can always --disable-shared, the test was removed, and we
14634 # assume the GNU/Linux dynamic linker is in use.
14635 dynamic_linker='GNU/Linux ld.so'
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=no
14646 hardcode_into_libs=yes
14647 dynamic_linker='NetBSD ld.elf_so'
14654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657 dynamic_linker='NetBSD (a.out) ld.so'
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 dynamic_linker='NetBSD ld.elf_so'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=yes
14665 hardcode_into_libs=yes
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14687 sys_lib_dlsearch_path_spec="/usr/lib"
14689 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14691 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14692 *) need_version=no ;;
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14699 openbsd2.[89] | openbsd2.[89].*)
14700 shlibpath_overrides_runpath=no
14703 shlibpath_overrides_runpath=yes
14707 shlibpath_overrides_runpath=yes
14712 libname_spec='$name'
14715 library_names_spec='$libname${shared_ext} $libname.a'
14716 dynamic_linker='OS/2 ld.exe'
14717 shlibpath_var=LIBPATH
14720 osf3* | osf4* | osf5*)
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740 soname_spec='${libname}${release}${shared_ext}$major'
14741 shlibpath_var=LD_LIBRARY_PATH
14742 shlibpath_overrides_runpath=yes
14743 hardcode_into_libs=yes
14744 # ldd complains unless libraries are executable
14745 postinstall_cmds='chmod +x $lib'
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 shlibpath_overrides_runpath=yes
14754 if test "$with_gnu_ld" = yes; then
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 case $host_vendor in
14767 shlibpath_overrides_runpath=no
14769 export_dynamic_flag_spec='${wl}-Blargedynsym'
14770 runpath_var=LD_RUN_PATH
14778 shlibpath_overrides_runpath=no
14779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14785 if test -d /usr/nec ;then
14787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14788 soname_spec='$libname${shared_ext}.$major'
14789 shlibpath_var=LD_LIBRARY_PATH
14793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14794 version_type=freebsd-elf
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14798 soname_spec='${libname}${release}${shared_ext}$major'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 hardcode_into_libs=yes
14801 if test "$with_gnu_ld" = yes; then
14802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14803 shlibpath_overrides_runpath=no
14805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14806 shlibpath_overrides_runpath=yes
14809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14813 sys_lib_dlsearch_path_spec='/usr/lib'
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14827 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14828 echo "${ECHO_T}$dynamic_linker" >&6; }
14829 test "$dynamic_linker" = no && can_build_shared=no
14831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14832 if test "$GCC" = yes; then
14833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14836 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14837 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14838 hardcode_action_CXX=
14839 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14840 test -n "$runpath_var_CXX" || \
14841 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14843 # We can hardcode non-existant directories.
14844 if test "$hardcode_direct_CXX" != no &&
14845 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14846 # have to relink, otherwise we might link with an installed library
14847 # when we should be linking with a yet-to-be-installed one
14848 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14849 test "$hardcode_minus_L_CXX" != no; then
14850 # Linking always hardcodes the temporary library directory.
14851 hardcode_action_CXX=relink
14853 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14854 hardcode_action_CXX=immediate
14857 # We cannot hardcode anything, or else we can only hardcode existing
14859 hardcode_action_CXX=unsupported
14861 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14862 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14864 if test "$hardcode_action_CXX" = relink; then
14865 # Fast installation is not supported
14866 enable_fast_install=no
14867 elif test "$shlibpath_overrides_runpath" = yes ||
14868 test "$enable_shared" = no; then
14869 # Fast installation is not necessary
14870 enable_fast_install=needless
14874 # The else clause should only fire when bootstrapping the
14875 # libtool distribution, otherwise you forgot to ship ltmain.sh
14876 # with your package, and you will get complaints that there are
14877 # no rules to generate ltmain.sh.
14878 if test -f "$ltmain"; then
14879 # See if we are running on zsh, and set the options which allow our commands through
14880 # without removal of \ escapes.
14881 if test -n "${ZSH_VERSION+set}" ; then
14882 setopt NO_GLOB_SUBST
14884 # Now quote all the things that may contain metacharacters while being
14885 # careful not to overquote the AC_SUBSTed values. We take copies of the
14886 # variables and quote the copies for generation of the libtool script.
14887 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14889 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14890 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14891 deplibs_check_method reload_flag reload_cmds need_locks \
14892 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14893 lt_cv_sys_global_symbol_to_c_name_address \
14894 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14895 old_postinstall_cmds old_postuninstall_cmds \
14899 lt_prog_compiler_wl_CXX \
14900 lt_prog_compiler_pic_CXX \
14901 lt_prog_compiler_static_CXX \
14902 lt_prog_compiler_no_builtin_flag_CXX \
14903 export_dynamic_flag_spec_CXX \
14904 thread_safe_flag_spec_CXX \
14905 whole_archive_flag_spec_CXX \
14906 enable_shared_with_static_runtimes_CXX \
14907 old_archive_cmds_CXX \
14908 old_archive_from_new_cmds_CXX \
14909 predep_objects_CXX \
14910 postdep_objects_CXX \
14913 compiler_lib_search_path_CXX \
14915 archive_expsym_cmds_CXX \
14916 postinstall_cmds_CXX \
14917 postuninstall_cmds_CXX \
14918 old_archive_from_expsyms_cmds_CXX \
14919 allow_undefined_flag_CXX \
14920 no_undefined_flag_CXX \
14921 export_symbols_cmds_CXX \
14922 hardcode_libdir_flag_spec_CXX \
14923 hardcode_libdir_flag_spec_ld_CXX \
14924 hardcode_libdir_separator_CXX \
14925 hardcode_automatic_CXX \
14927 module_expsym_cmds_CXX \
14928 lt_cv_prog_compiler_c_o_CXX \
14929 fix_srcfile_path_CXX \
14930 exclude_expsyms_CXX \
14931 include_expsyms_CXX; do
14934 old_archive_cmds_CXX | \
14935 old_archive_from_new_cmds_CXX | \
14936 archive_cmds_CXX | \
14937 archive_expsym_cmds_CXX | \
14938 module_cmds_CXX | \
14939 module_expsym_cmds_CXX | \
14940 old_archive_from_expsyms_cmds_CXX | \
14941 export_symbols_cmds_CXX | \
14942 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14943 postinstall_cmds | postuninstall_cmds | \
14944 old_postinstall_cmds | old_postuninstall_cmds | \
14945 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14946 # Double-quote double-evaled strings.
14947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14956 *'\$0 --fallback-echo"')
14957 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14963 cat <<__EOF__ >> "$cfgfile"
14964 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14966 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14968 # Shell to use when invoking shell scripts.
14971 # Whether or not to build shared libraries.
14972 build_libtool_libs=$enable_shared
14974 # Whether or not to build static libraries.
14975 build_old_libs=$enable_static
14977 # Whether or not to add -lc for building shared libraries.
14978 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14980 # Whether or not to disallow shared libs when runtime libs are static
14981 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14983 # Whether or not to optimize for fast installation.
14984 fast_install=$enable_fast_install
14987 host_alias=$host_alias
14991 # The build system.
14992 build_alias=$build_alias
14996 # An echo program that does not interpret backslashes.
15001 AR_FLAGS=$lt_AR_FLAGS
15006 # LTCC compiler flags.
15007 LTCFLAGS=$lt_LTCFLAGS
15009 # A language-specific compiler.
15010 CC=$lt_compiler_CXX
15012 # Is the compiler the GNU C compiler?
15018 # The linker used to build libraries.
15021 # Whether we need hard or soft links.
15024 # A BSD-compatible nm program.
15027 # A symbol stripping program
15030 # Used to examine libraries when file_magic_cmd begins "file"
15031 MAGIC_CMD=$MAGIC_CMD
15033 # Used on cygwin: DLL creation program.
15036 # Used on cygwin: object dumper.
15039 # Used on cygwin: assembler.
15042 # The name of the directory that contains temporary libtool files.
15045 # How to create reloadable object files.
15046 reload_flag=$lt_reload_flag
15047 reload_cmds=$lt_reload_cmds
15049 # How to pass a linker flag through the compiler.
15050 wl=$lt_lt_prog_compiler_wl_CXX
15052 # Object file suffix (normally "o").
15053 objext="$ac_objext"
15055 # Old archive suffix (normally "a").
15058 # Shared library suffix (normally ".so").
15059 shrext_cmds='$shrext_cmds'
15061 # Executable file suffix (normally "").
15064 # Additional compiler flags for building library objects.
15065 pic_flag=$lt_lt_prog_compiler_pic_CXX
15068 # What is the maximum length of a command?
15069 max_cmd_len=$lt_cv_sys_max_cmd_len
15071 # Does compiler simultaneously support -c and -o options?
15072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15074 # Must we lock files when doing compilation?
15075 need_locks=$lt_need_locks
15077 # Do we need the lib prefix for modules?
15078 need_lib_prefix=$need_lib_prefix
15080 # Do we need a version for libraries?
15081 need_version=$need_version
15083 # Whether dlopen is supported.
15084 dlopen_support=$enable_dlopen
15086 # Whether dlopen of programs is supported.
15087 dlopen_self=$enable_dlopen_self
15089 # Whether dlopen of statically linked programs is supported.
15090 dlopen_self_static=$enable_dlopen_self_static
15092 # Compiler flag to prevent dynamic linking.
15093 link_static_flag=$lt_lt_prog_compiler_static_CXX
15095 # Compiler flag to turn off builtin functions.
15096 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15098 # Compiler flag to allow reflexive dlopens.
15099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15101 # Compiler flag to generate shared objects directly from archives.
15102 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15104 # Compiler flag to generate thread-safe objects.
15105 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15107 # Library versioning type.
15108 version_type=$version_type
15110 # Format of library name prefix.
15111 libname_spec=$lt_libname_spec
15113 # List of archive names. First name is the real one, the rest are links.
15114 # The last name is the one that the linker finds with -lNAME.
15115 library_names_spec=$lt_library_names_spec
15117 # The coded name of the library, if different from the real name.
15118 soname_spec=$lt_soname_spec
15120 # Commands used to build and install an old-style archive.
15122 old_archive_cmds=$lt_old_archive_cmds_CXX
15123 old_postinstall_cmds=$lt_old_postinstall_cmds
15124 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15126 # Create an old-style archive from a shared archive.
15127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15129 # Create a temporary old-style archive to link instead of a shared archive.
15130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15132 # Commands used to build and install a shared archive.
15133 archive_cmds=$lt_archive_cmds_CXX
15134 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15135 postinstall_cmds=$lt_postinstall_cmds
15136 postuninstall_cmds=$lt_postuninstall_cmds
15138 # Commands used to build a loadable module (assumed same as above if empty)
15139 module_cmds=$lt_module_cmds_CXX
15140 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15142 # Commands to strip libraries.
15143 old_striplib=$lt_old_striplib
15144 striplib=$lt_striplib
15146 # Dependencies to place before the objects being linked to create a
15148 predep_objects=$lt_predep_objects_CXX
15150 # Dependencies to place after the objects being linked to create a
15152 postdep_objects=$lt_postdep_objects_CXX
15154 # Dependencies to place before the objects being linked to create a
15156 predeps=$lt_predeps_CXX
15158 # Dependencies to place after the objects being linked to create a
15160 postdeps=$lt_postdeps_CXX
15162 # The library search path used internally by the compiler when linking
15163 # a shared library.
15164 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15166 # Method to check whether dependent libraries are shared objects.
15167 deplibs_check_method=$lt_deplibs_check_method
15169 # Command to use when deplibs_check_method == file_magic.
15170 file_magic_cmd=$lt_file_magic_cmd
15172 # Flag that allows shared libraries with undefined symbols to be built.
15173 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15175 # Flag that forces no undefined symbols.
15176 no_undefined_flag=$lt_no_undefined_flag_CXX
15178 # Commands used to finish a libtool library installation in a directory.
15179 finish_cmds=$lt_finish_cmds
15181 # Same as above, but a single script fragment to be evaled but not shown.
15182 finish_eval=$lt_finish_eval
15184 # Take the output of nm and produce a listing of raw symbols and C names.
15185 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15187 # Transform the output of nm in a proper C declaration
15188 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15190 # Transform the output of nm in a C name address pair
15191 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15193 # This is the shared library runtime path variable.
15194 runpath_var=$runpath_var
15196 # This is the shared library path variable.
15197 shlibpath_var=$shlibpath_var
15199 # Is shlibpath searched before the hard-coded library search path?
15200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15202 # How to hardcode a shared library path into an executable.
15203 hardcode_action=$hardcode_action_CXX
15205 # Whether we should hardcode library paths into libraries.
15206 hardcode_into_libs=$hardcode_into_libs
15208 # Flag to hardcode \$libdir into a binary during linking.
15209 # This must work even if \$libdir does not exist.
15210 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15212 # If ld is used when linking, flag to hardcode \$libdir into
15213 # a binary during linking. This must work even if \$libdir does
15215 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15217 # Whether we need a single -rpath flag with a separated argument.
15218 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15220 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15221 # resulting binary.
15222 hardcode_direct=$hardcode_direct_CXX
15224 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15225 # resulting binary.
15226 hardcode_minus_L=$hardcode_minus_L_CXX
15228 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15229 # the resulting binary.
15230 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15232 # Set to yes if building a shared library automatically hardcodes DIR into the library
15233 # and all subsequent libraries and executables linked against it.
15234 hardcode_automatic=$hardcode_automatic_CXX
15236 # Variables whose values should be saved in libtool wrapper scripts and
15237 # restored at relink time.
15238 variables_saved_for_relink="$variables_saved_for_relink"
15240 # Whether libtool must link a program against all its dependency libraries.
15241 link_all_deplibs=$link_all_deplibs_CXX
15243 # Compile-time system search path for libraries
15244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15246 # Run-time system search path for libraries
15247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15249 # Fix the shell variable \$srcfile for the compiler.
15250 fix_srcfile_path=$lt_fix_srcfile_path
15252 # Set to yes if exported symbols are required.
15253 always_export_symbols=$always_export_symbols_CXX
15255 # The commands to list exported symbols.
15256 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15258 # The commands to extract the exported symbol list from a shared archive.
15259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15261 # Symbols that should not be listed in the preloaded symbols.
15262 exclude_expsyms=$lt_exclude_expsyms_CXX
15264 # Symbols that must always be exported.
15265 include_expsyms=$lt_include_expsyms_CXX
15267 # ### END LIBTOOL TAG CONFIG: $tagname
15273 # If there is no Makefile yet, we rely on a make rule to execute
15274 # `config.status --recheck' to rerun these tests and create the
15275 # libtool script then.
15276 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15277 if test -f "$ltmain_in"; then
15278 test -f Makefile && make "$ltmain"
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15293 with_gnu_ldcxx=$with_gnu_ld
15294 with_gnu_ld=$lt_save_with_gnu_ld
15295 lt_cv_path_LDCXX=$lt_cv_path_LD
15296 lt_cv_path_LD=$lt_save_path_LD
15297 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15298 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15306 if test -n "$F77" && test "X$F77" != "Xno"; then
15309 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15310 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15314 archive_cmds_need_lc_F77=no
15315 allow_undefined_flag_F77=
15316 always_export_symbols_F77=no
15317 archive_expsym_cmds_F77=
15318 export_dynamic_flag_spec_F77=
15319 hardcode_direct_F77=no
15320 hardcode_libdir_flag_spec_F77=
15321 hardcode_libdir_flag_spec_ld_F77=
15322 hardcode_libdir_separator_F77=
15323 hardcode_minus_L_F77=no
15324 hardcode_automatic_F77=no
15326 module_expsym_cmds_F77=
15327 link_all_deplibs_F77=unknown
15328 old_archive_cmds_F77=$old_archive_cmds
15329 no_undefined_flag_F77=
15330 whole_archive_flag_spec_F77=
15331 enable_shared_with_static_runtimes_F77=no
15333 # Source file extension for f77 test sources.
15336 # Object file extension for compiled f77 test sources.
15340 # Code to be used in simple compile tests
15341 lt_simple_compile_test_code="\
15347 # Code to be used in simple link tests
15348 lt_simple_link_test_code="\
15353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15355 # If no C compiler was specified, use CC.
15358 # If no C compiler flags were specified, use CFLAGS.
15359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15361 # Allow CC to be a program name with arguments.
15365 # save warnings/boilerplate of simple test code
15366 ac_outfile=conftest.$ac_objext
15367 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15369 _lt_compiler_boilerplate=`cat conftest.err`
15372 ac_outfile=conftest.$ac_objext
15373 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15375 _lt_linker_boilerplate=`cat conftest.err`
15379 # Allow CC to be a program name with arguments.
15384 for cc_temp in $compiler""; do
15386 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15387 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15392 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15395 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15396 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15397 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15398 echo "${ECHO_T}$can_build_shared" >&6; }
15400 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15401 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15402 test "$can_build_shared" = "no" && enable_shared=no
15404 # On AIX, shared libraries and static libraries use the same namespace, and
15405 # are all built from PIC.
15408 test "$enable_shared" = yes && enable_static=no
15409 if test -n "$RANLIB"; then
15410 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15411 postinstall_cmds='$RANLIB $lib'
15415 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15416 test "$enable_shared" = yes && enable_static=no
15420 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15421 echo "${ECHO_T}$enable_shared" >&6; }
15423 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15424 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15425 # Make sure either enable_shared or enable_static is yes.
15426 test "$enable_shared" = yes || enable_static=yes
15427 { echo "$as_me:$LINENO: result: $enable_static" >&5
15428 echo "${ECHO_T}$enable_static" >&6; }
15433 lt_prog_compiler_wl_F77=
15434 lt_prog_compiler_pic_F77=
15435 lt_prog_compiler_static_F77=
15437 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15438 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15440 if test "$GCC" = yes; then
15441 lt_prog_compiler_wl_F77='-Wl,'
15442 lt_prog_compiler_static_F77='-static'
15446 # All AIX code is PIC.
15447 if test "$host_cpu" = ia64; then
15448 # AIX 5 now supports IA64 processor
15449 lt_prog_compiler_static_F77='-Bstatic'
15454 # FIXME: we need at least 68020 code to build shared libraries, but
15455 # adding the `-m68020' flag to GCC prevents building anything better,
15457 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15460 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15461 # PIC is the default for these OSes.
15464 mingw* | cygwin* | pw32* | os2*)
15465 # This hack is so that the source file can tell whether it is being
15466 # built for inclusion in a dll (and should export symbols for example).
15467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15468 # (--disable-auto-import) libraries
15469 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15472 darwin* | rhapsody*)
15473 # PIC is the default on this platform
15474 # Common symbols not allowed in MH_DYLIB files
15475 lt_prog_compiler_pic_F77='-fno-common'
15479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15480 # Instead, we relocate shared libraries at runtime.
15484 # Just because we use GCC doesn't mean we suddenly get shared libraries
15485 # on systems that don't support them.
15486 lt_prog_compiler_can_build_shared_F77=no
15491 if test -d /usr/nec; then
15492 lt_prog_compiler_pic_F77=-Kconform_pic
15497 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15498 # not for PA HP-UX.
15504 lt_prog_compiler_pic_F77='-fPIC'
15510 lt_prog_compiler_pic_F77='-fPIC'
15514 # PORTME Check for flag to pass linker flags through the system compiler.
15517 lt_prog_compiler_wl_F77='-Wl,'
15518 if test "$host_cpu" = ia64; then
15519 # AIX 5 now supports IA64 processor
15520 lt_prog_compiler_static_F77='-Bstatic'
15522 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15526 # PIC is the default on this platform
15527 # Common symbols not allowed in MH_DYLIB files
15528 case $cc_basename in
15530 lt_prog_compiler_pic_F77='-qnocommon'
15531 lt_prog_compiler_wl_F77='-Wl,'
15536 mingw* | cygwin* | pw32* | os2*)
15537 # This hack is so that the source file can tell whether it is being
15538 # built for inclusion in a dll (and should export symbols for example).
15539 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15542 hpux9* | hpux10* | hpux11*)
15543 lt_prog_compiler_wl_F77='-Wl,'
15544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15545 # not for PA HP-UX.
15551 lt_prog_compiler_pic_F77='+Z'
15554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15555 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15558 irix5* | irix6* | nonstopux*)
15559 lt_prog_compiler_wl_F77='-Wl,'
15560 # PIC (with -KPIC) is the default.
15561 lt_prog_compiler_static_F77='-non_shared'
15565 lt_prog_compiler_pic_F77='-KPIC'
15566 lt_prog_compiler_static_F77='-Bstatic'
15569 linux* | k*bsd*-gnu)
15570 case $cc_basename in
15572 lt_prog_compiler_wl_F77='-Wl,'
15573 lt_prog_compiler_pic_F77='-KPIC'
15574 lt_prog_compiler_static_F77='-static'
15576 pgcc* | pgf77* | pgf90* | pgf95*)
15577 # Portland Group compilers (*not* the Pentium gcc compiler,
15578 # which looks to be a dead project)
15579 lt_prog_compiler_wl_F77='-Wl,'
15580 lt_prog_compiler_pic_F77='-fpic'
15581 lt_prog_compiler_static_F77='-Bstatic'
15584 lt_prog_compiler_wl_F77='-Wl,'
15585 # All Alpha code is PIC.
15586 lt_prog_compiler_static_F77='-non_shared'
15589 case `$CC -V 2>&1 | sed 5q` in
15592 lt_prog_compiler_pic_F77='-KPIC'
15593 lt_prog_compiler_static_F77='-Bstatic'
15594 lt_prog_compiler_wl_F77='-Wl,'
15597 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15598 lt_prog_compiler_pic_F77='-KPIC'
15599 lt_prog_compiler_static_F77='-Bstatic'
15600 lt_prog_compiler_wl_F77=''
15607 osf3* | osf4* | osf5*)
15608 lt_prog_compiler_wl_F77='-Wl,'
15609 # All OSF/1 code is PIC.
15610 lt_prog_compiler_static_F77='-non_shared'
15614 lt_prog_compiler_static_F77='-non_shared'
15618 lt_prog_compiler_pic_F77='-KPIC'
15619 lt_prog_compiler_static_F77='-Bstatic'
15620 case $cc_basename in
15621 f77* | f90* | f95*)
15622 lt_prog_compiler_wl_F77='-Qoption ld ';;
15624 lt_prog_compiler_wl_F77='-Wl,';;
15629 lt_prog_compiler_wl_F77='-Qoption ld '
15630 lt_prog_compiler_pic_F77='-PIC'
15631 lt_prog_compiler_static_F77='-Bstatic'
15634 sysv4 | sysv4.2uw2* | sysv4.3*)
15635 lt_prog_compiler_wl_F77='-Wl,'
15636 lt_prog_compiler_pic_F77='-KPIC'
15637 lt_prog_compiler_static_F77='-Bstatic'
15641 if test -d /usr/nec ;then
15642 lt_prog_compiler_pic_F77='-Kconform_pic'
15643 lt_prog_compiler_static_F77='-Bstatic'
15647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15648 lt_prog_compiler_wl_F77='-Wl,'
15649 lt_prog_compiler_pic_F77='-KPIC'
15650 lt_prog_compiler_static_F77='-Bstatic'
15654 lt_prog_compiler_wl_F77='-Wl,'
15655 lt_prog_compiler_can_build_shared_F77=no
15659 lt_prog_compiler_pic_F77='-pic'
15660 lt_prog_compiler_static_F77='-Bstatic'
15664 lt_prog_compiler_can_build_shared_F77=no
15669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15670 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15673 # Check to make sure the PIC flag actually works.
15675 if test -n "$lt_prog_compiler_pic_F77"; then
15677 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15678 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15679 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 lt_prog_compiler_pic_works_F77=no
15683 ac_outfile=conftest.$ac_objext
15684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15685 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15686 # Insert the option either (1) after the last *FLAGS variable, or
15687 # (2) before a word containing "conftest.", or (3) at the end.
15688 # Note that $ac_compile itself does not contain backslashes and begins
15689 # with a dollar sign (not a hyphen), so the echo should work correctly.
15690 # The option is referenced via a variable to avoid confusing sed.
15691 lt_compile=`echo "$ac_compile" | $SED \
15692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15694 -e 's:$: $lt_compiler_flag:'`
15695 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15696 (eval "$lt_compile" 2>conftest.err)
15698 cat conftest.err >&5
15699 echo "$as_me:__oline__: \$? = $ac_status" >&5
15700 if (exit $ac_status) && test -s "$ac_outfile"; then
15701 # The compiler can only warn and ignore the option if not recognized
15702 # So say no if there are warnings other than the usual output.
15703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15706 lt_prog_compiler_pic_works_F77=yes
15712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15713 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15715 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15716 case $lt_prog_compiler_pic_F77 in
15718 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15721 lt_prog_compiler_pic_F77=
15722 lt_prog_compiler_can_build_shared_F77=no
15727 # For platforms which do not support PIC, -DPIC is meaningless:
15729 lt_prog_compiler_pic_F77=
15732 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15737 # Check to make sure the static flag actually works.
15739 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15740 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15741 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15742 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 lt_prog_compiler_static_works_F77=no
15746 save_LDFLAGS="$LDFLAGS"
15747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15750 # The linker can only warn and ignore the option if not recognized
15751 # So say no if there are warnings
15752 if test -s conftest.err; then
15753 # Append any errors to the config.log.
15754 cat conftest.err 1>&5
15755 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15757 if diff conftest.exp conftest.er2 >/dev/null; then
15758 lt_prog_compiler_static_works_F77=yes
15761 lt_prog_compiler_static_works_F77=yes
15765 LDFLAGS="$save_LDFLAGS"
15768 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15769 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15771 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15774 lt_prog_compiler_static_F77=
15778 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15780 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 lt_cv_prog_compiler_c_o_F77=no
15784 $rm -r conftest 2>/dev/null
15788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15790 lt_compiler_flag="-o out/conftest2.$ac_objext"
15791 # Insert the option either (1) after the last *FLAGS variable, or
15792 # (2) before a word containing "conftest.", or (3) at the end.
15793 # Note that $ac_compile itself does not contain backslashes and begins
15794 # with a dollar sign (not a hyphen), so the echo should work correctly.
15795 lt_compile=`echo "$ac_compile" | $SED \
15796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798 -e 's:$: $lt_compiler_flag:'`
15799 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15800 (eval "$lt_compile" 2>out/conftest.err)
15802 cat out/conftest.err >&5
15803 echo "$as_me:__oline__: \$? = $ac_status" >&5
15804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15806 # The compiler can only warn and ignore the option if not recognized
15807 # So say no if there are warnings
15808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15811 lt_cv_prog_compiler_c_o_F77=yes
15816 # SGI C++ compiler will create directory out/ii_files/ for
15817 # template instantiation
15818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15819 $rm out/* && rmdir out
15825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15829 hard_links="nottested"
15830 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15831 # do not overwrite the value of need_locks provided by the user
15832 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15838 ln conftest.a conftest.b 2>&5 || hard_links=no
15839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15840 { echo "$as_me:$LINENO: result: $hard_links" >&5
15841 echo "${ECHO_T}$hard_links" >&6; }
15842 if test "$hard_links" = no; then
15843 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15855 allow_undefined_flag_F77=
15856 enable_shared_with_static_runtimes_F77=no
15858 archive_expsym_cmds_F77=
15859 old_archive_From_new_cmds_F77=
15860 old_archive_from_expsyms_cmds_F77=
15861 export_dynamic_flag_spec_F77=
15862 whole_archive_flag_spec_F77=
15863 thread_safe_flag_spec_F77=
15864 hardcode_libdir_flag_spec_F77=
15865 hardcode_libdir_flag_spec_ld_F77=
15866 hardcode_libdir_separator_F77=
15867 hardcode_direct_F77=no
15868 hardcode_minus_L_F77=no
15869 hardcode_shlibpath_var_F77=unsupported
15870 link_all_deplibs_F77=unknown
15871 hardcode_automatic_F77=no
15873 module_expsym_cmds_F77=
15874 always_export_symbols_F77=no
15875 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15876 # include_expsyms should be a list of space-separated symbols to be *always*
15877 # included in the symbol list
15878 include_expsyms_F77=
15879 # exclude_expsyms can be an extended regexp of symbols to exclude
15880 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15882 # as well as any symbol that contains `d'.
15883 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15885 # platforms (ab)use it in PIC code, but their linkers get confused if
15886 # the symbol is explicitly referenced. Since portable code cannot
15887 # rely on this symbol name, it's probably fine to never include it in
15888 # preloaded symbol tables.
15889 extract_expsyms_cmds=
15890 # Just being paranoid about ensuring that cc_basename is set.
15891 for cc_temp in $compiler""; do
15893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15902 cygwin* | mingw* | pw32*)
15903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15904 # When not using gcc, we currently assume that we are using
15905 # Microsoft Visual C++.
15906 if test "$GCC" != yes; then
15911 # we just hope/assume this is gcc and not c89 (= MSVC++)
15920 if test "$with_gnu_ld" = yes; then
15921 # If archive_cmds runs LD, not CC, wlarc should be empty
15924 # Set some defaults for GNU ld with shared library support. These
15925 # are reset later if shared libraries are not supported. Putting them
15926 # here allows them to be overridden if necessary.
15927 runpath_var=LD_RUN_PATH
15928 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15929 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15930 # ancient GNU ld didn't support --whole-archive et. al.
15931 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15932 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15934 whole_archive_flag_spec_F77=
15936 supports_anon_versioning=no
15937 case `$LD -v 2>/dev/null` in
15938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15941 *\ 2.11.*) ;; # other 2.11 versions
15942 *) supports_anon_versioning=yes ;;
15945 # See if GNU ld supports shared libraries.
15947 aix3* | aix4* | aix5*)
15948 # On AIX/PPC, the GNU linker is very broken
15949 if test "$host_cpu" != ia64; then
15953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15954 *** to be unable to reliably create shared libraries on AIX.
15955 *** Therefore, libtool is disabling shared libraries support. If you
15956 *** really care for shared libraries, you may want to modify your PATH
15957 *** so that a non-GNU linker is found, and then restart.
15964 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)'
15965 hardcode_libdir_flag_spec_F77='-L$libdir'
15966 hardcode_minus_L_F77=yes
15968 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15969 # that the semantics of dynamic libraries on AmigaOS, at least up
15970 # to version 4, is to share data among multiple programs linked
15971 # with the same dynamic library. Since this doesn't match the
15972 # behavior of shared libraries on other platforms, we can't use
15978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15979 allow_undefined_flag_F77=unsupported
15980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15981 # support --undefined. This deserves some investigation. FIXME
15982 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15988 cygwin* | mingw* | pw32*)
15989 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15990 # as there is no search path for DLLs.
15991 hardcode_libdir_flag_spec_F77='-L$libdir'
15992 allow_undefined_flag_F77=unsupported
15993 always_export_symbols_F77=no
15994 enable_shared_with_static_runtimes_F77=yes
15995 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15997 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15998 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15999 # If the export-symbols file already is a .def file (1st line
16000 # is EXPORTS), use it as is; otherwise, prepend...
16001 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16002 cp $export_symbols $output_objdir/$soname.def;
16004 echo EXPORTS > $output_objdir/$soname.def;
16005 cat $export_symbols >> $output_objdir/$soname.def;
16007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16014 hardcode_direct_F77=no
16015 hardcode_shlibpath_var_F77=no
16016 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16017 export_dynamic_flag_spec_F77='${wl}-E'
16018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16019 # Instead, shared libraries are loaded at an image base (0x10000000 by
16020 # default) and relocated if they conflict, which is a slow very memory
16021 # consuming and fragmenting process. To avoid this, we pick a random,
16022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16024 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'
16025 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'
16028 gnu* | linux* | k*bsd*-gnu)
16029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16031 case $cc_basename,$host_cpu in
16032 pgcc*) # Portland Group C compiler
16033 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'
16034 tmp_addflag=' $pic_flag'
16036 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16037 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'
16038 tmp_addflag=' $pic_flag -Mnomain' ;;
16039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16040 tmp_addflag=' -i_dynamic' ;;
16041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16042 tmp_addflag=' -i_dynamic -nofor_main' ;;
16043 ifc* | ifort*) # Intel Fortran compiler
16044 tmp_addflag=' -nofor_main' ;;
16046 case `$CC -V 2>&1 | sed 5q` in
16047 *Sun\ C*) # Sun C 5.9
16048 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16049 tmp_sharedflag='-G' ;;
16050 *Sun\ F*) # Sun Fortran 8.3
16051 tmp_sharedflag='-G' ;;
16053 tmp_sharedflag='-shared' ;;
16055 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16057 if test $supports_anon_versioning = yes; then
16058 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16060 $echo "local: *; };" >> $output_objdir/$libname.ver~
16061 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16063 link_all_deplibs_F77=no
16069 netbsd* | netbsdelf*-gnu)
16070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16071 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16074 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16080 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16085 *** create shared libraries on Solaris systems. Therefore, libtool
16086 *** is disabling shared libraries support. We urge you to upgrade GNU
16087 *** binutils to release 2.9.1 or newer. Another option is to modify
16088 *** your PATH or compiler configuration so that the native linker is
16089 *** used, and then restart.
16092 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16093 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16094 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16101 case `$LD -v 2>&1` in
16102 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16106 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16107 *** reliably create shared libraries on SCO systems. Therefore, libtool
16108 *** is disabling shared libraries support. We urge you to upgrade GNU
16109 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16110 *** your PATH or compiler configuration so that the native linker is
16111 *** used, and then restart.
16116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16117 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16119 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16128 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16130 hardcode_direct_F77=yes
16131 hardcode_shlibpath_var_F77=no
16135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16136 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16144 if test "$ld_shlibs_F77" = no; then
16146 hardcode_libdir_flag_spec_F77=
16147 export_dynamic_flag_spec_F77=
16148 whole_archive_flag_spec_F77=
16151 # PORTME fill in a description of your system's linker (not GNU ld)
16154 allow_undefined_flag_F77=unsupported
16155 always_export_symbols_F77=yes
16156 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'
16157 # Note: this linker hardcodes the directories in LIBPATH if there
16158 # are no directories specified by -L.
16159 hardcode_minus_L_F77=yes
16160 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16161 # Neither direct hardcoding nor static linking is supported with a
16163 hardcode_direct_F77=unsupported
16168 if test "$host_cpu" = ia64; then
16169 # On IA64, the linker does run time linking by default, so we don't
16170 # have to do anything special.
16171 aix_use_runtimelinking=no
16172 exp_sym_flag='-Bexport'
16175 # If we're using GNU nm, then we don't want the "-C" option.
16176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16178 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'
16180 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'
16182 aix_use_runtimelinking=no
16184 # Test if we are trying to use run time linking or normal
16185 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16186 # need to do runtime linking.
16187 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16188 for ld_flag in $LDFLAGS; do
16189 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16190 aix_use_runtimelinking=yes
16197 exp_sym_flag='-bexport'
16198 no_entry_flag='-bnoentry'
16201 # When large executables or shared objects are built, AIX ld can
16202 # have problems creating the table of contents. If linking a library
16203 # or program results in "error TOC overflow" add -mminimal-toc to
16204 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16205 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16207 archive_cmds_F77=''
16208 hardcode_direct_F77=yes
16209 hardcode_libdir_separator_F77=':'
16210 link_all_deplibs_F77=yes
16212 if test "$GCC" = yes; then
16213 case $host_os in aix4.[012]|aix4.[012].*)
16214 # We only want to do this on AIX 4.2 and lower, the check
16215 # below for broken collect2 doesn't work under 4.3+
16216 collect2name=`${CC} -print-prog-name=collect2`
16217 if test -f "$collect2name" && \
16218 strings "$collect2name" | grep resolve_lib_name >/dev/null
16220 # We have reworked collect2
16223 # We have old collect2
16224 hardcode_direct_F77=unsupported
16225 # It fails to find uninstalled libraries when the uninstalled
16226 # path is not listed in the libpath. Setting hardcode_minus_L
16227 # to unsupported forces relinking
16228 hardcode_minus_L_F77=yes
16229 hardcode_libdir_flag_spec_F77='-L$libdir'
16230 hardcode_libdir_separator_F77=
16234 shared_flag='-shared'
16235 if test "$aix_use_runtimelinking" = yes; then
16236 shared_flag="$shared_flag "'${wl}-G'
16240 if test "$host_cpu" = ia64; then
16241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16242 # chokes on -Wl,-G. The following line is correct:
16245 if test "$aix_use_runtimelinking" = yes; then
16246 shared_flag='${wl}-G'
16248 shared_flag='${wl}-bM:SRE'
16253 # It seems that -bexpall does not export symbols beginning with
16254 # underscore (_), so it is better to generate a list of symbols to export.
16255 always_export_symbols_F77=yes
16256 if test "$aix_use_runtimelinking" = yes; then
16257 # Warning - without using the other runtime loading flags (-brtl),
16258 # -berok will link without error, but may produce a broken library.
16259 allow_undefined_flag_F77='-berok'
16260 # Determine the default libpath from the value encoded in an empty executable.
16261 cat >conftest.$ac_ext <<_ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (ac_try="$ac_link"
16268 case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_link") 2>conftest.er1
16275 grep -v '^ *+' conftest.er1 >conftest.err
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && {
16280 test -z "$ac_f77_werror_flag" ||
16281 test ! -s conftest.err
16282 } && test -s conftest$ac_exeext &&
16283 $as_test_x conftest$ac_exeext; then
16285 lt_aix_libpath_sed='
16286 /Import File Strings/,/^$/ {
16292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16293 # Check for a 64-bit object if we didn't find anything.
16294 if test -z "$aix_libpath"; then
16295 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16305 conftest$ac_exeext conftest.$ac_ext
16306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16308 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16309 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"
16311 if test "$host_cpu" = ia64; then
16312 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16313 allow_undefined_flag_F77="-z nodefs"
16314 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"
16316 # Determine the default libpath from the value encoded in an empty executable.
16317 cat >conftest.$ac_ext <<_ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_link") 2>conftest.er1
16331 grep -v '^ *+' conftest.er1 >conftest.err
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } && {
16336 test -z "$ac_f77_werror_flag" ||
16337 test ! -s conftest.err
16338 } && test -s conftest$ac_exeext &&
16339 $as_test_x conftest$ac_exeext; then
16341 lt_aix_libpath_sed='
16342 /Import File Strings/,/^$/ {
16348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16349 # Check for a 64-bit object if we didn't find anything.
16350 if test -z "$aix_libpath"; then
16351 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16361 conftest$ac_exeext conftest.$ac_ext
16362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16364 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16365 # Warning - without using the other run time loading flags,
16366 # -berok will link without error, but may produce a broken library.
16367 no_undefined_flag_F77=' ${wl}-bernotok'
16368 allow_undefined_flag_F77=' ${wl}-berok'
16369 # Exported symbols can be pulled into shared objects from archives
16370 whole_archive_flag_spec_F77='$convenience'
16371 archive_cmds_need_lc_F77=yes
16372 # This is similar to how AIX traditionally builds its shared libraries.
16373 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'
16379 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)'
16380 hardcode_libdir_flag_spec_F77='-L$libdir'
16381 hardcode_minus_L_F77=yes
16382 # see comment about different semantics on the GNU ld section
16387 export_dynamic_flag_spec_F77=-rdynamic
16390 cygwin* | mingw* | pw32*)
16391 # When not using gcc, we currently assume that we are using
16392 # Microsoft Visual C++.
16393 # hardcode_libdir_flag_spec is actually meaningless, as there is
16394 # no search path for DLLs.
16395 hardcode_libdir_flag_spec_F77=' '
16396 allow_undefined_flag_F77=unsupported
16397 # Tell ltmain to make .lib files, not .a files.
16399 # Tell ltmain to make .dll files, not .so files.
16401 # FIXME: Setting linknames here is a bad hack.
16402 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16403 # The linker will automatically build a .lib file if we build a DLL.
16404 old_archive_From_new_cmds_F77='true'
16405 # FIXME: Should let the user specify the lib program.
16406 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16407 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16408 enable_shared_with_static_runtimes_F77=yes
16411 darwin* | rhapsody*)
16413 rhapsody* | darwin1.[012])
16414 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16417 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16418 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16420 case ${MACOSX_DEPLOYMENT_TARGET} in
16422 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16425 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16431 archive_cmds_need_lc_F77=no
16432 hardcode_direct_F77=no
16433 hardcode_automatic_F77=yes
16434 hardcode_shlibpath_var_F77=unsupported
16435 whole_archive_flag_spec_F77=''
16436 link_all_deplibs_F77=yes
16437 if test "$GCC" = yes ; then
16438 output_verbose_link_cmd='echo'
16439 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16440 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16442 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}'
16443 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}'
16445 case $cc_basename in
16447 output_verbose_link_cmd='echo'
16448 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16449 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16451 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16452 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}'
16462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_libdir_flag_spec_F77='-L$libdir'
16464 hardcode_shlibpath_var_F77=no
16471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16472 # support. Future versions do this automatically, but an explicit c++rt0.o
16473 # does not break anything, and helps significantly (at the cost of a little
16476 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16477 hardcode_libdir_flag_spec_F77='-R$libdir'
16478 hardcode_direct_F77=yes
16479 hardcode_shlibpath_var_F77=no
16482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16484 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16485 hardcode_direct_F77=yes
16486 hardcode_minus_L_F77=yes
16487 hardcode_shlibpath_var_F77=no
16490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16491 freebsd* | dragonfly*)
16492 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16493 hardcode_libdir_flag_spec_F77='-R$libdir'
16494 hardcode_direct_F77=yes
16495 hardcode_shlibpath_var_F77=no
16499 if test "$GCC" = yes; then
16500 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'
16502 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'
16504 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16505 hardcode_libdir_separator_F77=:
16506 hardcode_direct_F77=yes
16508 # hardcode_minus_L: Not really in the search PATH,
16509 # but as the default location of the library.
16510 hardcode_minus_L_F77=yes
16511 export_dynamic_flag_spec_F77='${wl}-E'
16515 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16516 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16520 if test "$with_gnu_ld" = no; then
16521 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16522 hardcode_libdir_separator_F77=:
16524 hardcode_direct_F77=yes
16525 export_dynamic_flag_spec_F77='${wl}-E'
16527 # hardcode_minus_L: Not really in the search PATH,
16528 # but as the default location of the library.
16529 hardcode_minus_L_F77=yes
16534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16537 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16549 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16552 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16559 if test "$with_gnu_ld" = no; then
16560 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16561 hardcode_libdir_separator_F77=:
16565 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16566 hardcode_direct_F77=no
16567 hardcode_shlibpath_var_F77=no
16570 hardcode_direct_F77=yes
16571 export_dynamic_flag_spec_F77='${wl}-E'
16573 # hardcode_minus_L: Not really in the search PATH,
16574 # but as the default location of the library.
16575 hardcode_minus_L_F77=yes
16581 irix5* | irix6* | nonstopux*)
16582 if test "$GCC" = yes; then
16583 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'
16585 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'
16586 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16588 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16589 hardcode_libdir_separator_F77=:
16590 link_all_deplibs_F77=yes
16593 netbsd* | netbsdelf*-gnu)
16594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16597 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16599 hardcode_libdir_flag_spec_F77='-R$libdir'
16600 hardcode_direct_F77=yes
16601 hardcode_shlibpath_var_F77=no
16605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_direct_F77=yes
16607 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16608 hardcode_libdir_separator_F77=:
16609 hardcode_shlibpath_var_F77=no
16613 if test -f /usr/libexec/ld.so; then
16614 hardcode_direct_F77=yes
16615 hardcode_shlibpath_var_F77=no
16616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16617 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16618 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16619 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16620 export_dynamic_flag_spec_F77='${wl}-E'
16623 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16624 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_libdir_flag_spec_F77='-R$libdir'
16628 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16629 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16639 hardcode_libdir_flag_spec_F77='-L$libdir'
16640 hardcode_minus_L_F77=yes
16641 allow_undefined_flag_F77=unsupported
16642 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'
16643 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16647 if test "$GCC" = yes; then
16648 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16649 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'
16651 allow_undefined_flag_F77=' -expect_unresolved \*'
16652 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'
16654 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16655 hardcode_libdir_separator_F77=:
16658 osf4* | osf5*) # as osf3* with the addition of -msym flag
16659 if test "$GCC" = yes; then
16660 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16661 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'
16662 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16664 allow_undefined_flag_F77=' -expect_unresolved \*'
16665 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'
16666 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~
16667 $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'
16669 # Both c and cxx compiler support -rpath directly
16670 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16672 hardcode_libdir_separator_F77=:
16676 no_undefined_flag_F77=' -z text'
16677 if test "$GCC" = yes; then
16679 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16681 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16684 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16685 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16686 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16688 hardcode_libdir_flag_spec_F77='-R$libdir'
16689 hardcode_shlibpath_var_F77=no
16691 solaris2.[0-5] | solaris2.[0-5].*) ;;
16693 # The compiler driver will combine and reorder linker options,
16694 # but understands `-z linker_flag'. GCC discards it without `$wl',
16695 # but is careful enough not to reorder.
16696 # Supported since Solaris 2.6 (maybe 2.5.1?)
16697 if test "$GCC" = yes; then
16698 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16700 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16704 link_all_deplibs_F77=yes
16708 if test "x$host_vendor" = xsequent; then
16709 # Use $CC to link under sequent, because it throws in some extra .o
16710 # files that make .init and .fini sections work.
16711 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16713 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16715 hardcode_libdir_flag_spec_F77='-L$libdir'
16716 hardcode_direct_F77=yes
16717 hardcode_minus_L_F77=yes
16718 hardcode_shlibpath_var_F77=no
16722 case $host_vendor in
16724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725 hardcode_direct_F77=yes # is this really true???
16728 ## LD is ld it makes a PLAMLIB
16729 ## CC just makes a GrossModule.
16730 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16731 reload_cmds_F77='$CC -r -o $output$reload_objs'
16732 hardcode_direct_F77=no
16735 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16739 runpath_var='LD_RUN_PATH'
16740 hardcode_shlibpath_var_F77=no
16744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16745 hardcode_shlibpath_var_F77=no
16746 export_dynamic_flag_spec_F77='-Bexport'
16750 if test -d /usr/nec; then
16751 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16752 hardcode_shlibpath_var_F77=no
16753 runpath_var=LD_RUN_PATH
16754 hardcode_runpath_var=yes
16759 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16760 no_undefined_flag_F77='${wl}-z,text'
16761 archive_cmds_need_lc_F77=no
16762 hardcode_shlibpath_var_F77=no
16763 runpath_var='LD_RUN_PATH'
16765 if test "$GCC" = yes; then
16766 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16774 sysv5* | sco3.2v5* | sco5v6*)
16775 # Note: We can NOT use -z defs as we might desire, because we do not
16776 # link with -lc, and that would cause any symbols used from libc to
16777 # always be unresolved, which means just about no library would
16778 # ever link correctly. If we're not using GNU ld we use -z text
16779 # though, which does catch some bad symbols but isn't as heavy-handed
16781 no_undefined_flag_F77='${wl}-z,text'
16782 allow_undefined_flag_F77='${wl}-z,nodefs'
16783 archive_cmds_need_lc_F77=no
16784 hardcode_shlibpath_var_F77=no
16785 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16786 hardcode_libdir_separator_F77=':'
16787 link_all_deplibs_F77=yes
16788 export_dynamic_flag_spec_F77='${wl}-Bexport'
16789 runpath_var='LD_RUN_PATH'
16791 if test "$GCC" = yes; then
16792 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16796 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16802 hardcode_libdir_flag_spec_F77='-L$libdir'
16803 hardcode_shlibpath_var_F77=no
16812 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16813 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16814 test "$ld_shlibs_F77" = no && can_build_shared=no
16817 # Do we need to explicitly link libc?
16819 case "x$archive_cmds_need_lc_F77" in
16821 # Assume -lc should be added
16822 archive_cmds_need_lc_F77=yes
16824 if test "$enable_shared" = yes && test "$GCC" = yes; then
16825 case $archive_cmds_F77 in
16827 # FIXME: we may have to deal with multi-command sequences.
16830 # Test whether the compiler implicitly links with -lc since on some
16831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16832 # to ld, don't add -lc before -lgcc.
16833 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16834 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } 2>conftest.err; then
16845 libobjs=conftest.$ac_objext
16847 wl=$lt_prog_compiler_wl_F77
16848 pic_flag=$lt_prog_compiler_pic_F77
16854 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16855 allow_undefined_flag_F77=
16856 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16857 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }
16862 archive_cmds_need_lc_F77=no
16864 archive_cmds_need_lc_F77=yes
16866 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16868 cat conftest.err 1>&5
16871 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16872 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16879 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16880 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16881 library_names_spec=
16882 libname_spec='lib$name'
16886 postuninstall_cmds=
16890 shlibpath_overrides_runpath=unknown
16892 dynamic_linker="$host_os ld.so"
16893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16895 need_lib_prefix=unknown
16896 hardcode_into_libs=no
16898 # when you set need_version to no, make sure it does not cause -set_version
16899 # flags to be left without arguments
16900 need_version=unknown
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16906 shlibpath_var=LIBPATH
16908 # AIX 3 has no versioning support, so we append a major version to the name.
16909 soname_spec='${libname}${release}${shared_ext}$major'
16916 hardcode_into_libs=yes
16917 if test "$host_cpu" = ia64; then
16918 # AIX 5 supports IA64
16919 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16920 shlibpath_var=LD_LIBRARY_PATH
16922 # With GCC up to 2.95.x, collect2 would create an import file
16923 # for dependence libraries. The import file would start with
16924 # the line `#! .'. This would cause the generated library to
16925 # depend on `.', always an invalid library. This was fixed in
16926 # development snapshots of GCC prior to 3.0.
16928 aix4 | aix4.[01] | aix4.[01].*)
16929 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16931 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16934 can_build_shared=no
16938 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16939 # soname into executable. Probably we can add versioning support to
16940 # collect2, so additional links can be useful in future.
16941 if test "$aix_use_runtimelinking" = yes; then
16942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16943 # instead of lib<name>.a to let people know that these are not
16944 # typical AIX shared libraries.
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 # We preserve .a as extension for shared libraries through AIX4.2
16948 # and later when we are not doing run time linking.
16949 library_names_spec='${libname}${release}.a $libname.a'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16952 shlibpath_var=LIBPATH
16957 library_names_spec='$libname.ixlibrary $libname.a'
16958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959 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'
16963 library_names_spec='${libname}${shared_ext}'
16964 dynamic_linker="$host_os ld.so"
16965 shlibpath_var=LIBRARY_PATH
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972 soname_spec='${libname}${release}${shared_ext}$major'
16973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16974 shlibpath_var=LD_LIBRARY_PATH
16975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16977 # the default ld.so.conf also contains /usr/contrib/lib and
16978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16979 # libtool to hard-code these into programs
16982 cygwin* | mingw* | pw32*)
16983 version_type=windows
16988 case $GCC,$host_os in
16989 yes,cygwin* | yes,mingw* | yes,pw32*)
16990 library_names_spec='$libname.dll.a'
16991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16992 postinstall_cmds='base_file=`basename \${file}`~
16993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16994 dldir=$destdir/`dirname \$dlpath`~
16995 test -d \$dldir || mkdir -p \$dldir~
16996 $install_prog $dir/$dlname \$dldir/$dlname~
16997 chmod a+x \$dldir/$dlname'
16998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16999 dlpath=$dir/\$dldll~
17001 shlibpath_overrides_runpath=yes
17005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17010 # MinGW DLLs use traditional 'lib' prefix
17011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17014 # It is most probably a Windows format PATH printed by
17015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17016 # path with ; separators, and with drive letters. We can handle the
17017 # drive letters (cygwin fileutils understands them), so leave them,
17018 # especially as we might pass files found there to a mingw objdump,
17019 # which wouldn't understand a cygwinified path. Ahh.
17020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17026 # pw32 DLLs use 'pw' prefix rather than 'lib'
17027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17036 dynamic_linker='Win32 ld.exe'
17037 # FIXME: first we should search . and the directory the executable is in
17041 darwin* | rhapsody*)
17042 dynamic_linker="$host_os dyld"
17043 version_type=darwin
17046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17047 soname_spec='${libname}${release}${major}$shared_ext'
17048 shlibpath_overrides_runpath=yes
17049 shlibpath_var=DYLD_LIBRARY_PATH
17050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17060 soname_spec='${libname}${release}${shared_ext}$major'
17061 shlibpath_var=LD_LIBRARY_PATH
17068 freebsd* | dragonfly*)
17069 # DragonFly does not have aout. When/if they implement a new
17070 # versioning mechanism, adjust this.
17071 if test -x /usr/bin/objformat; then
17072 objformat=`/usr/bin/objformat`
17075 freebsd[123]*) objformat=aout ;;
17076 *) objformat=elf ;;
17079 version_type=freebsd-$objformat
17080 case $version_type in
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17091 shlibpath_var=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath=yes
17096 freebsd3.[01]* | freebsdelf3.[01]*)
17097 shlibpath_overrides_runpath=yes
17098 hardcode_into_libs=yes
17100 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17101 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17102 shlibpath_overrides_runpath=no
17103 hardcode_into_libs=yes
17105 *) # from 4.6 on, and DragonFly
17106 shlibpath_overrides_runpath=yes
17107 hardcode_into_libs=yes
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17117 soname_spec='${libname}${release}${shared_ext}$major'
17118 shlibpath_var=LD_LIBRARY_PATH
17119 hardcode_into_libs=yes
17122 hpux9* | hpux10* | hpux11*)
17123 # Give a soname corresponding to the major version so that dld.sl refuses to
17124 # link against other versions.
17131 hardcode_into_libs=yes
17132 dynamic_linker="$host_os dld.so"
17133 shlibpath_var=LD_LIBRARY_PATH
17134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 if test "X$HPUX_IA64_MODE" = X32; then
17138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17146 hardcode_into_libs=yes
17147 dynamic_linker="$host_os dld.sl"
17148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17157 dynamic_linker="$host_os dld.sl"
17158 shlibpath_var=SHLIB_PATH
17159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17164 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17165 postinstall_cmds='chmod 555 $lib'
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 shlibpath_overrides_runpath=no
17177 hardcode_into_libs=yes
17180 irix5* | irix6* | nonstopux*)
17182 nonstopux*) version_type=nonstopux ;;
17184 if test "$lt_cv_prog_gnu_ld" = yes; then
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17195 irix5* | nonstopux*)
17196 libsuff= shlibsuff=
17199 case $LD in # libtool.m4 will add one of these switches to LD
17200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17201 libsuff= shlibsuff= libmagic=32-bit;;
17202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17203 libsuff=32 shlibsuff=N32 libmagic=N32;;
17204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17205 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17206 *) libsuff= shlibsuff= libmagic=never-match;;
17210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17211 shlibpath_overrides_runpath=no
17212 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17213 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17214 hardcode_into_libs=yes
17217 # No shared lib support for Linux oldld, aout, or coff.
17218 linux*oldld* | linux*aout* | linux*coff*)
17222 # This must be Linux ELF.
17223 linux* | k*bsd*-gnu)
17227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17228 soname_spec='${libname}${release}${shared_ext}$major'
17229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=no
17232 # This implies no fast_install, which is unacceptable.
17233 # Some rework will be needed to allow for fast_install
17234 # before this can be enabled.
17235 hardcode_into_libs=yes
17237 # Append ld.so.conf contents to the search path
17238 if test -f /etc/ld.so.conf; then
17239 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17240 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17243 # We used to test for /lib/ld.so.1 and disable shared libraries on
17244 # powerpc, because MkLinux only supported shared libraries with the
17245 # GNU dynamic linker. Since this was broken with cross compilers,
17246 # most powerpc-linux boxes support dynamic linking these days and
17247 # people can always --disable-shared, the test was removed, and we
17248 # assume the GNU/Linux dynamic linker is in use.
17249 dynamic_linker='GNU/Linux ld.so'
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 shlibpath_overrides_runpath=no
17260 hardcode_into_libs=yes
17261 dynamic_linker='NetBSD ld.elf_so'
17268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17271 dynamic_linker='NetBSD (a.out) ld.so'
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 dynamic_linker='NetBSD ld.elf_so'
17277 shlibpath_var=LD_LIBRARY_PATH
17278 shlibpath_overrides_runpath=yes
17279 hardcode_into_libs=yes
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 shlibpath_overrides_runpath=yes
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294 soname_spec='${libname}${release}${shared_ext}$major'
17295 shlibpath_var=LD_LIBRARY_PATH
17296 shlibpath_overrides_runpath=yes
17301 sys_lib_dlsearch_path_spec="/usr/lib"
17303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17306 *) need_version=no ;;
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17310 shlibpath_var=LD_LIBRARY_PATH
17311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17313 openbsd2.[89] | openbsd2.[89].*)
17314 shlibpath_overrides_runpath=no
17317 shlibpath_overrides_runpath=yes
17321 shlibpath_overrides_runpath=yes
17326 libname_spec='$name'
17329 library_names_spec='$libname${shared_ext} $libname.a'
17330 dynamic_linker='OS/2 ld.exe'
17331 shlibpath_var=LIBPATH
17334 osf3* | osf4* | osf5*)
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 shlibpath_var=LD_LIBRARY_PATH
17341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath=yes
17357 hardcode_into_libs=yes
17358 # ldd complains unless libraries are executable
17359 postinstall_cmds='chmod +x $lib'
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=yes
17368 if test "$with_gnu_ld" = yes; then
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 case $host_vendor in
17381 shlibpath_overrides_runpath=no
17383 export_dynamic_flag_spec='${wl}-Blargedynsym'
17384 runpath_var=LD_RUN_PATH
17392 shlibpath_overrides_runpath=no
17393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17399 if test -d /usr/nec ;then
17401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17402 soname_spec='$libname${shared_ext}.$major'
17403 shlibpath_var=LD_LIBRARY_PATH
17407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17408 version_type=freebsd-elf
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 shlibpath_var=LD_LIBRARY_PATH
17414 hardcode_into_libs=yes
17415 if test "$with_gnu_ld" = yes; then
17416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17417 shlibpath_overrides_runpath=no
17419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17420 shlibpath_overrides_runpath=yes
17423 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17427 sys_lib_dlsearch_path_spec='/usr/lib'
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17433 soname_spec='${libname}${release}${shared_ext}$major'
17434 shlibpath_var=LD_LIBRARY_PATH
17441 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17442 echo "${ECHO_T}$dynamic_linker" >&6; }
17443 test "$dynamic_linker" = no && can_build_shared=no
17445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17446 if test "$GCC" = yes; then
17447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17450 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17452 hardcode_action_F77=
17453 if test -n "$hardcode_libdir_flag_spec_F77" || \
17454 test -n "$runpath_var_F77" || \
17455 test "X$hardcode_automatic_F77" = "Xyes" ; then
17457 # We can hardcode non-existant directories.
17458 if test "$hardcode_direct_F77" != no &&
17459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17460 # have to relink, otherwise we might link with an installed library
17461 # when we should be linking with a yet-to-be-installed one
17462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17463 test "$hardcode_minus_L_F77" != no; then
17464 # Linking always hardcodes the temporary library directory.
17465 hardcode_action_F77=relink
17467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17468 hardcode_action_F77=immediate
17471 # We cannot hardcode anything, or else we can only hardcode existing
17473 hardcode_action_F77=unsupported
17475 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17476 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17478 if test "$hardcode_action_F77" = relink; then
17479 # Fast installation is not supported
17480 enable_fast_install=no
17481 elif test "$shlibpath_overrides_runpath" = yes ||
17482 test "$enable_shared" = no; then
17483 # Fast installation is not necessary
17484 enable_fast_install=needless
17488 # The else clause should only fire when bootstrapping the
17489 # libtool distribution, otherwise you forgot to ship ltmain.sh
17490 # with your package, and you will get complaints that there are
17491 # no rules to generate ltmain.sh.
17492 if test -f "$ltmain"; then
17493 # See if we are running on zsh, and set the options which allow our commands through
17494 # without removal of \ escapes.
17495 if test -n "${ZSH_VERSION+set}" ; then
17496 setopt NO_GLOB_SUBST
17498 # Now quote all the things that may contain metacharacters while being
17499 # careful not to overquote the AC_SUBSTed values. We take copies of the
17500 # variables and quote the copies for generation of the libtool script.
17501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17505 deplibs_check_method reload_flag reload_cmds need_locks \
17506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17507 lt_cv_sys_global_symbol_to_c_name_address \
17508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17509 old_postinstall_cmds old_postuninstall_cmds \
17513 lt_prog_compiler_wl_F77 \
17514 lt_prog_compiler_pic_F77 \
17515 lt_prog_compiler_static_F77 \
17516 lt_prog_compiler_no_builtin_flag_F77 \
17517 export_dynamic_flag_spec_F77 \
17518 thread_safe_flag_spec_F77 \
17519 whole_archive_flag_spec_F77 \
17520 enable_shared_with_static_runtimes_F77 \
17521 old_archive_cmds_F77 \
17522 old_archive_from_new_cmds_F77 \
17523 predep_objects_F77 \
17524 postdep_objects_F77 \
17527 compiler_lib_search_path_F77 \
17529 archive_expsym_cmds_F77 \
17530 postinstall_cmds_F77 \
17531 postuninstall_cmds_F77 \
17532 old_archive_from_expsyms_cmds_F77 \
17533 allow_undefined_flag_F77 \
17534 no_undefined_flag_F77 \
17535 export_symbols_cmds_F77 \
17536 hardcode_libdir_flag_spec_F77 \
17537 hardcode_libdir_flag_spec_ld_F77 \
17538 hardcode_libdir_separator_F77 \
17539 hardcode_automatic_F77 \
17541 module_expsym_cmds_F77 \
17542 lt_cv_prog_compiler_c_o_F77 \
17543 fix_srcfile_path_F77 \
17544 exclude_expsyms_F77 \
17545 include_expsyms_F77; do
17548 old_archive_cmds_F77 | \
17549 old_archive_from_new_cmds_F77 | \
17550 archive_cmds_F77 | \
17551 archive_expsym_cmds_F77 | \
17552 module_cmds_F77 | \
17553 module_expsym_cmds_F77 | \
17554 old_archive_from_expsyms_cmds_F77 | \
17555 export_symbols_cmds_F77 | \
17556 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17557 postinstall_cmds | postuninstall_cmds | \
17558 old_postinstall_cmds | old_postuninstall_cmds | \
17559 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17560 # Double-quote double-evaled strings.
17561 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17570 *'\$0 --fallback-echo"')
17571 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17577 cat <<__EOF__ >> "$cfgfile"
17578 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17580 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17582 # Shell to use when invoking shell scripts.
17585 # Whether or not to build shared libraries.
17586 build_libtool_libs=$enable_shared
17588 # Whether or not to build static libraries.
17589 build_old_libs=$enable_static
17591 # Whether or not to add -lc for building shared libraries.
17592 build_libtool_need_lc=$archive_cmds_need_lc_F77
17594 # Whether or not to disallow shared libs when runtime libs are static
17595 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17597 # Whether or not to optimize for fast installation.
17598 fast_install=$enable_fast_install
17601 host_alias=$host_alias
17605 # The build system.
17606 build_alias=$build_alias
17610 # An echo program that does not interpret backslashes.
17615 AR_FLAGS=$lt_AR_FLAGS
17620 # LTCC compiler flags.
17621 LTCFLAGS=$lt_LTCFLAGS
17623 # A language-specific compiler.
17624 CC=$lt_compiler_F77
17626 # Is the compiler the GNU C compiler?
17632 # The linker used to build libraries.
17635 # Whether we need hard or soft links.
17638 # A BSD-compatible nm program.
17641 # A symbol stripping program
17644 # Used to examine libraries when file_magic_cmd begins "file"
17645 MAGIC_CMD=$MAGIC_CMD
17647 # Used on cygwin: DLL creation program.
17650 # Used on cygwin: object dumper.
17653 # Used on cygwin: assembler.
17656 # The name of the directory that contains temporary libtool files.
17659 # How to create reloadable object files.
17660 reload_flag=$lt_reload_flag
17661 reload_cmds=$lt_reload_cmds
17663 # How to pass a linker flag through the compiler.
17664 wl=$lt_lt_prog_compiler_wl_F77
17666 # Object file suffix (normally "o").
17667 objext="$ac_objext"
17669 # Old archive suffix (normally "a").
17672 # Shared library suffix (normally ".so").
17673 shrext_cmds='$shrext_cmds'
17675 # Executable file suffix (normally "").
17678 # Additional compiler flags for building library objects.
17679 pic_flag=$lt_lt_prog_compiler_pic_F77
17682 # What is the maximum length of a command?
17683 max_cmd_len=$lt_cv_sys_max_cmd_len
17685 # Does compiler simultaneously support -c and -o options?
17686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17688 # Must we lock files when doing compilation?
17689 need_locks=$lt_need_locks
17691 # Do we need the lib prefix for modules?
17692 need_lib_prefix=$need_lib_prefix
17694 # Do we need a version for libraries?
17695 need_version=$need_version
17697 # Whether dlopen is supported.
17698 dlopen_support=$enable_dlopen
17700 # Whether dlopen of programs is supported.
17701 dlopen_self=$enable_dlopen_self
17703 # Whether dlopen of statically linked programs is supported.
17704 dlopen_self_static=$enable_dlopen_self_static
17706 # Compiler flag to prevent dynamic linking.
17707 link_static_flag=$lt_lt_prog_compiler_static_F77
17709 # Compiler flag to turn off builtin functions.
17710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17712 # Compiler flag to allow reflexive dlopens.
17713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17715 # Compiler flag to generate shared objects directly from archives.
17716 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17718 # Compiler flag to generate thread-safe objects.
17719 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17721 # Library versioning type.
17722 version_type=$version_type
17724 # Format of library name prefix.
17725 libname_spec=$lt_libname_spec
17727 # List of archive names. First name is the real one, the rest are links.
17728 # The last name is the one that the linker finds with -lNAME.
17729 library_names_spec=$lt_library_names_spec
17731 # The coded name of the library, if different from the real name.
17732 soname_spec=$lt_soname_spec
17734 # Commands used to build and install an old-style archive.
17736 old_archive_cmds=$lt_old_archive_cmds_F77
17737 old_postinstall_cmds=$lt_old_postinstall_cmds
17738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17740 # Create an old-style archive from a shared archive.
17741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17743 # Create a temporary old-style archive to link instead of a shared archive.
17744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17746 # Commands used to build and install a shared archive.
17747 archive_cmds=$lt_archive_cmds_F77
17748 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17749 postinstall_cmds=$lt_postinstall_cmds
17750 postuninstall_cmds=$lt_postuninstall_cmds
17752 # Commands used to build a loadable module (assumed same as above if empty)
17753 module_cmds=$lt_module_cmds_F77
17754 module_expsym_cmds=$lt_module_expsym_cmds_F77
17756 # Commands to strip libraries.
17757 old_striplib=$lt_old_striplib
17758 striplib=$lt_striplib
17760 # Dependencies to place before the objects being linked to create a
17762 predep_objects=$lt_predep_objects_F77
17764 # Dependencies to place after the objects being linked to create a
17766 postdep_objects=$lt_postdep_objects_F77
17768 # Dependencies to place before the objects being linked to create a
17770 predeps=$lt_predeps_F77
17772 # Dependencies to place after the objects being linked to create a
17774 postdeps=$lt_postdeps_F77
17776 # The library search path used internally by the compiler when linking
17777 # a shared library.
17778 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17780 # Method to check whether dependent libraries are shared objects.
17781 deplibs_check_method=$lt_deplibs_check_method
17783 # Command to use when deplibs_check_method == file_magic.
17784 file_magic_cmd=$lt_file_magic_cmd
17786 # Flag that allows shared libraries with undefined symbols to be built.
17787 allow_undefined_flag=$lt_allow_undefined_flag_F77
17789 # Flag that forces no undefined symbols.
17790 no_undefined_flag=$lt_no_undefined_flag_F77
17792 # Commands used to finish a libtool library installation in a directory.
17793 finish_cmds=$lt_finish_cmds
17795 # Same as above, but a single script fragment to be evaled but not shown.
17796 finish_eval=$lt_finish_eval
17798 # Take the output of nm and produce a listing of raw symbols and C names.
17799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17801 # Transform the output of nm in a proper C declaration
17802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17804 # Transform the output of nm in a C name address pair
17805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17807 # This is the shared library runtime path variable.
17808 runpath_var=$runpath_var
17810 # This is the shared library path variable.
17811 shlibpath_var=$shlibpath_var
17813 # Is shlibpath searched before the hard-coded library search path?
17814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17816 # How to hardcode a shared library path into an executable.
17817 hardcode_action=$hardcode_action_F77
17819 # Whether we should hardcode library paths into libraries.
17820 hardcode_into_libs=$hardcode_into_libs
17822 # Flag to hardcode \$libdir into a binary during linking.
17823 # This must work even if \$libdir does not exist.
17824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17826 # If ld is used when linking, flag to hardcode \$libdir into
17827 # a binary during linking. This must work even if \$libdir does
17829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17831 # Whether we need a single -rpath flag with a separated argument.
17832 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17835 # resulting binary.
17836 hardcode_direct=$hardcode_direct_F77
17838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17839 # resulting binary.
17840 hardcode_minus_L=$hardcode_minus_L_F77
17842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17843 # the resulting binary.
17844 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17846 # Set to yes if building a shared library automatically hardcodes DIR into the library
17847 # and all subsequent libraries and executables linked against it.
17848 hardcode_automatic=$hardcode_automatic_F77
17850 # Variables whose values should be saved in libtool wrapper scripts and
17851 # restored at relink time.
17852 variables_saved_for_relink="$variables_saved_for_relink"
17854 # Whether libtool must link a program against all its dependency libraries.
17855 link_all_deplibs=$link_all_deplibs_F77
17857 # Compile-time system search path for libraries
17858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17860 # Run-time system search path for libraries
17861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17863 # Fix the shell variable \$srcfile for the compiler.
17864 fix_srcfile_path=$lt_fix_srcfile_path
17866 # Set to yes if exported symbols are required.
17867 always_export_symbols=$always_export_symbols_F77
17869 # The commands to list exported symbols.
17870 export_symbols_cmds=$lt_export_symbols_cmds_F77
17872 # The commands to extract the exported symbol list from a shared archive.
17873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17875 # Symbols that should not be listed in the preloaded symbols.
17876 exclude_expsyms=$lt_exclude_expsyms_F77
17878 # Symbols that must always be exported.
17879 include_expsyms=$lt_include_expsyms_F77
17881 # ### END LIBTOOL TAG CONFIG: $tagname
17887 # If there is no Makefile yet, we rely on a make rule to execute
17888 # `config.status --recheck' to rerun these tests and create the
17889 # libtool script then.
17890 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17891 if test -f "$ltmain_in"; then
17892 test -f Makefile && make "$ltmain"
17898 ac_cpp='$CPP $CPPFLAGS'
17899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17911 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17914 # Source file extension for Java test sources.
17917 # Object file extension for compiled Java test sources.
17921 # Code to be used in simple compile tests
17922 lt_simple_compile_test_code="class foo {}"
17924 # Code to be used in simple link tests
17925 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17927 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17929 # If no C compiler was specified, use CC.
17932 # If no C compiler flags were specified, use CFLAGS.
17933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17935 # Allow CC to be a program name with arguments.
17939 # save warnings/boilerplate of simple test code
17940 ac_outfile=conftest.$ac_objext
17941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17943 _lt_compiler_boilerplate=`cat conftest.err`
17946 ac_outfile=conftest.$ac_objext
17947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17949 _lt_linker_boilerplate=`cat conftest.err`
17953 # Allow CC to be a program name with arguments.
17958 for cc_temp in $compiler""; do
17960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17969 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17970 archive_cmds_need_lc_GCJ=no
17972 old_archive_cmds_GCJ=$old_archive_cmds
17975 ## There is no encapsulation within the following macros, do not change
17976 ## the running order or otherwise move them around unless you know exactly
17977 ## what you are doing...
17979 lt_prog_compiler_no_builtin_flag_GCJ=
17981 if test "$GCC" = yes; then
17982 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17985 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17986 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17987 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 lt_cv_prog_compiler_rtti_exceptions=no
17991 ac_outfile=conftest.$ac_objext
17992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17993 lt_compiler_flag="-fno-rtti -fno-exceptions"
17994 # Insert the option either (1) after the last *FLAGS variable, or
17995 # (2) before a word containing "conftest.", or (3) at the end.
17996 # Note that $ac_compile itself does not contain backslashes and begins
17997 # with a dollar sign (not a hyphen), so the echo should work correctly.
17998 # The option is referenced via a variable to avoid confusing sed.
17999 lt_compile=`echo "$ac_compile" | $SED \
18000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18002 -e 's:$: $lt_compiler_flag:'`
18003 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18004 (eval "$lt_compile" 2>conftest.err)
18006 cat conftest.err >&5
18007 echo "$as_me:__oline__: \$? = $ac_status" >&5
18008 if (exit $ac_status) && test -s "$ac_outfile"; then
18009 # The compiler can only warn and ignore the option if not recognized
18010 # So say no if there are warnings other than the usual output.
18011 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18014 lt_cv_prog_compiler_rtti_exceptions=yes
18020 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18021 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18023 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18024 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18031 lt_prog_compiler_wl_GCJ=
18032 lt_prog_compiler_pic_GCJ=
18033 lt_prog_compiler_static_GCJ=
18035 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18036 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18038 if test "$GCC" = yes; then
18039 lt_prog_compiler_wl_GCJ='-Wl,'
18040 lt_prog_compiler_static_GCJ='-static'
18044 # All AIX code is PIC.
18045 if test "$host_cpu" = ia64; then
18046 # AIX 5 now supports IA64 processor
18047 lt_prog_compiler_static_GCJ='-Bstatic'
18052 # FIXME: we need at least 68020 code to build shared libraries, but
18053 # adding the `-m68020' flag to GCC prevents building anything better,
18055 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18059 # PIC is the default for these OSes.
18062 mingw* | cygwin* | pw32* | os2*)
18063 # This hack is so that the source file can tell whether it is being
18064 # built for inclusion in a dll (and should export symbols for example).
18065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18066 # (--disable-auto-import) libraries
18067 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18070 darwin* | rhapsody*)
18071 # PIC is the default on this platform
18072 # Common symbols not allowed in MH_DYLIB files
18073 lt_prog_compiler_pic_GCJ='-fno-common'
18077 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18078 # Instead, we relocate shared libraries at runtime.
18082 # Just because we use GCC doesn't mean we suddenly get shared libraries
18083 # on systems that don't support them.
18084 lt_prog_compiler_can_build_shared_GCJ=no
18089 if test -d /usr/nec; then
18090 lt_prog_compiler_pic_GCJ=-Kconform_pic
18095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18096 # not for PA HP-UX.
18102 lt_prog_compiler_pic_GCJ='-fPIC'
18108 lt_prog_compiler_pic_GCJ='-fPIC'
18112 # PORTME Check for flag to pass linker flags through the system compiler.
18115 lt_prog_compiler_wl_GCJ='-Wl,'
18116 if test "$host_cpu" = ia64; then
18117 # AIX 5 now supports IA64 processor
18118 lt_prog_compiler_static_GCJ='-Bstatic'
18120 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18124 # PIC is the default on this platform
18125 # Common symbols not allowed in MH_DYLIB files
18126 case $cc_basename in
18128 lt_prog_compiler_pic_GCJ='-qnocommon'
18129 lt_prog_compiler_wl_GCJ='-Wl,'
18134 mingw* | cygwin* | pw32* | os2*)
18135 # This hack is so that the source file can tell whether it is being
18136 # built for inclusion in a dll (and should export symbols for example).
18137 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18140 hpux9* | hpux10* | hpux11*)
18141 lt_prog_compiler_wl_GCJ='-Wl,'
18142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18143 # not for PA HP-UX.
18149 lt_prog_compiler_pic_GCJ='+Z'
18152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18153 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18156 irix5* | irix6* | nonstopux*)
18157 lt_prog_compiler_wl_GCJ='-Wl,'
18158 # PIC (with -KPIC) is the default.
18159 lt_prog_compiler_static_GCJ='-non_shared'
18163 lt_prog_compiler_pic_GCJ='-KPIC'
18164 lt_prog_compiler_static_GCJ='-Bstatic'
18167 linux* | k*bsd*-gnu)
18168 case $cc_basename in
18170 lt_prog_compiler_wl_GCJ='-Wl,'
18171 lt_prog_compiler_pic_GCJ='-KPIC'
18172 lt_prog_compiler_static_GCJ='-static'
18174 pgcc* | pgf77* | pgf90* | pgf95*)
18175 # Portland Group compilers (*not* the Pentium gcc compiler,
18176 # which looks to be a dead project)
18177 lt_prog_compiler_wl_GCJ='-Wl,'
18178 lt_prog_compiler_pic_GCJ='-fpic'
18179 lt_prog_compiler_static_GCJ='-Bstatic'
18182 lt_prog_compiler_wl_GCJ='-Wl,'
18183 # All Alpha code is PIC.
18184 lt_prog_compiler_static_GCJ='-non_shared'
18187 case `$CC -V 2>&1 | sed 5q` in
18190 lt_prog_compiler_pic_GCJ='-KPIC'
18191 lt_prog_compiler_static_GCJ='-Bstatic'
18192 lt_prog_compiler_wl_GCJ='-Wl,'
18195 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18196 lt_prog_compiler_pic_GCJ='-KPIC'
18197 lt_prog_compiler_static_GCJ='-Bstatic'
18198 lt_prog_compiler_wl_GCJ=''
18205 osf3* | osf4* | osf5*)
18206 lt_prog_compiler_wl_GCJ='-Wl,'
18207 # All OSF/1 code is PIC.
18208 lt_prog_compiler_static_GCJ='-non_shared'
18212 lt_prog_compiler_static_GCJ='-non_shared'
18216 lt_prog_compiler_pic_GCJ='-KPIC'
18217 lt_prog_compiler_static_GCJ='-Bstatic'
18218 case $cc_basename in
18219 f77* | f90* | f95*)
18220 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18222 lt_prog_compiler_wl_GCJ='-Wl,';;
18227 lt_prog_compiler_wl_GCJ='-Qoption ld '
18228 lt_prog_compiler_pic_GCJ='-PIC'
18229 lt_prog_compiler_static_GCJ='-Bstatic'
18232 sysv4 | sysv4.2uw2* | sysv4.3*)
18233 lt_prog_compiler_wl_GCJ='-Wl,'
18234 lt_prog_compiler_pic_GCJ='-KPIC'
18235 lt_prog_compiler_static_GCJ='-Bstatic'
18239 if test -d /usr/nec ;then
18240 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18241 lt_prog_compiler_static_GCJ='-Bstatic'
18245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18246 lt_prog_compiler_wl_GCJ='-Wl,'
18247 lt_prog_compiler_pic_GCJ='-KPIC'
18248 lt_prog_compiler_static_GCJ='-Bstatic'
18252 lt_prog_compiler_wl_GCJ='-Wl,'
18253 lt_prog_compiler_can_build_shared_GCJ=no
18257 lt_prog_compiler_pic_GCJ='-pic'
18258 lt_prog_compiler_static_GCJ='-Bstatic'
18262 lt_prog_compiler_can_build_shared_GCJ=no
18267 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18268 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18271 # Check to make sure the PIC flag actually works.
18273 if test -n "$lt_prog_compiler_pic_GCJ"; then
18275 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18276 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18277 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 lt_prog_compiler_pic_works_GCJ=no
18281 ac_outfile=conftest.$ac_objext
18282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18283 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18284 # Insert the option either (1) after the last *FLAGS variable, or
18285 # (2) before a word containing "conftest.", or (3) at the end.
18286 # Note that $ac_compile itself does not contain backslashes and begins
18287 # with a dollar sign (not a hyphen), so the echo should work correctly.
18288 # The option is referenced via a variable to avoid confusing sed.
18289 lt_compile=`echo "$ac_compile" | $SED \
18290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18292 -e 's:$: $lt_compiler_flag:'`
18293 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18294 (eval "$lt_compile" 2>conftest.err)
18296 cat conftest.err >&5
18297 echo "$as_me:__oline__: \$? = $ac_status" >&5
18298 if (exit $ac_status) && test -s "$ac_outfile"; then
18299 # The compiler can only warn and ignore the option if not recognized
18300 # So say no if there are warnings other than the usual output.
18301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18304 lt_prog_compiler_pic_works_GCJ=yes
18310 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18311 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18313 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18314 case $lt_prog_compiler_pic_GCJ in
18316 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18319 lt_prog_compiler_pic_GCJ=
18320 lt_prog_compiler_can_build_shared_GCJ=no
18325 # For platforms which do not support PIC, -DPIC is meaningless:
18327 lt_prog_compiler_pic_GCJ=
18330 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18335 # Check to make sure the static flag actually works.
18337 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18338 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18339 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18340 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 lt_prog_compiler_static_works_GCJ=no
18344 save_LDFLAGS="$LDFLAGS"
18345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18348 # The linker can only warn and ignore the option if not recognized
18349 # So say no if there are warnings
18350 if test -s conftest.err; then
18351 # Append any errors to the config.log.
18352 cat conftest.err 1>&5
18353 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18355 if diff conftest.exp conftest.er2 >/dev/null; then
18356 lt_prog_compiler_static_works_GCJ=yes
18359 lt_prog_compiler_static_works_GCJ=yes
18363 LDFLAGS="$save_LDFLAGS"
18366 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18367 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18369 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18372 lt_prog_compiler_static_GCJ=
18376 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18377 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18378 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 lt_cv_prog_compiler_c_o_GCJ=no
18382 $rm -r conftest 2>/dev/null
18386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18388 lt_compiler_flag="-o out/conftest2.$ac_objext"
18389 # Insert the option either (1) after the last *FLAGS variable, or
18390 # (2) before a word containing "conftest.", or (3) at the end.
18391 # Note that $ac_compile itself does not contain backslashes and begins
18392 # with a dollar sign (not a hyphen), so the echo should work correctly.
18393 lt_compile=`echo "$ac_compile" | $SED \
18394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18396 -e 's:$: $lt_compiler_flag:'`
18397 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18398 (eval "$lt_compile" 2>out/conftest.err)
18400 cat out/conftest.err >&5
18401 echo "$as_me:__oline__: \$? = $ac_status" >&5
18402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18404 # The compiler can only warn and ignore the option if not recognized
18405 # So say no if there are warnings
18406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18409 lt_cv_prog_compiler_c_o_GCJ=yes
18414 # SGI C++ compiler will create directory out/ii_files/ for
18415 # template instantiation
18416 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18417 $rm out/* && rmdir out
18423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18424 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18427 hard_links="nottested"
18428 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18429 # do not overwrite the value of need_locks provided by the user
18430 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18431 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18436 ln conftest.a conftest.b 2>&5 || hard_links=no
18437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18438 { echo "$as_me:$LINENO: result: $hard_links" >&5
18439 echo "${ECHO_T}$hard_links" >&6; }
18440 if test "$hard_links" = no; then
18441 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18442 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18449 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18450 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18453 allow_undefined_flag_GCJ=
18454 enable_shared_with_static_runtimes_GCJ=no
18456 archive_expsym_cmds_GCJ=
18457 old_archive_From_new_cmds_GCJ=
18458 old_archive_from_expsyms_cmds_GCJ=
18459 export_dynamic_flag_spec_GCJ=
18460 whole_archive_flag_spec_GCJ=
18461 thread_safe_flag_spec_GCJ=
18462 hardcode_libdir_flag_spec_GCJ=
18463 hardcode_libdir_flag_spec_ld_GCJ=
18464 hardcode_libdir_separator_GCJ=
18465 hardcode_direct_GCJ=no
18466 hardcode_minus_L_GCJ=no
18467 hardcode_shlibpath_var_GCJ=unsupported
18468 link_all_deplibs_GCJ=unknown
18469 hardcode_automatic_GCJ=no
18471 module_expsym_cmds_GCJ=
18472 always_export_symbols_GCJ=no
18473 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18474 # include_expsyms should be a list of space-separated symbols to be *always*
18475 # included in the symbol list
18476 include_expsyms_GCJ=
18477 # exclude_expsyms can be an extended regexp of symbols to exclude
18478 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18479 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18480 # as well as any symbol that contains `d'.
18481 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18482 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18483 # platforms (ab)use it in PIC code, but their linkers get confused if
18484 # the symbol is explicitly referenced. Since portable code cannot
18485 # rely on this symbol name, it's probably fine to never include it in
18486 # preloaded symbol tables.
18487 extract_expsyms_cmds=
18488 # Just being paranoid about ensuring that cc_basename is set.
18489 for cc_temp in $compiler""; do
18491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18500 cygwin* | mingw* | pw32*)
18501 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18502 # When not using gcc, we currently assume that we are using
18503 # Microsoft Visual C++.
18504 if test "$GCC" != yes; then
18509 # we just hope/assume this is gcc and not c89 (= MSVC++)
18518 if test "$with_gnu_ld" = yes; then
18519 # If archive_cmds runs LD, not CC, wlarc should be empty
18522 # Set some defaults for GNU ld with shared library support. These
18523 # are reset later if shared libraries are not supported. Putting them
18524 # here allows them to be overridden if necessary.
18525 runpath_var=LD_RUN_PATH
18526 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18527 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18528 # ancient GNU ld didn't support --whole-archive et. al.
18529 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18530 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18532 whole_archive_flag_spec_GCJ=
18534 supports_anon_versioning=no
18535 case `$LD -v 2>/dev/null` in
18536 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18539 *\ 2.11.*) ;; # other 2.11 versions
18540 *) supports_anon_versioning=yes ;;
18543 # See if GNU ld supports shared libraries.
18545 aix3* | aix4* | aix5*)
18546 # On AIX/PPC, the GNU linker is very broken
18547 if test "$host_cpu" != ia64; then
18551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18552 *** to be unable to reliably create shared libraries on AIX.
18553 *** Therefore, libtool is disabling shared libraries support. If you
18554 *** really care for shared libraries, you may want to modify your PATH
18555 *** so that a non-GNU linker is found, and then restart.
18562 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)'
18563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18564 hardcode_minus_L_GCJ=yes
18566 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18567 # that the semantics of dynamic libraries on AmigaOS, at least up
18568 # to version 4, is to share data among multiple programs linked
18569 # with the same dynamic library. Since this doesn't match the
18570 # behavior of shared libraries on other platforms, we can't use
18576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18577 allow_undefined_flag_GCJ=unsupported
18578 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18579 # support --undefined. This deserves some investigation. FIXME
18580 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18586 cygwin* | mingw* | pw32*)
18587 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18588 # as there is no search path for DLLs.
18589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18590 allow_undefined_flag_GCJ=unsupported
18591 always_export_symbols_GCJ=no
18592 enable_shared_with_static_runtimes_GCJ=yes
18593 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18595 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18597 # If the export-symbols file already is a .def file (1st line
18598 # is EXPORTS), use it as is; otherwise, prepend...
18599 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18600 cp $export_symbols $output_objdir/$soname.def;
18602 echo EXPORTS > $output_objdir/$soname.def;
18603 cat $export_symbols >> $output_objdir/$soname.def;
18605 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18612 hardcode_direct_GCJ=no
18613 hardcode_shlibpath_var_GCJ=no
18614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18615 export_dynamic_flag_spec_GCJ='${wl}-E'
18616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18617 # Instead, shared libraries are loaded at an image base (0x10000000 by
18618 # default) and relocated if they conflict, which is a slow very memory
18619 # consuming and fragmenting process. To avoid this, we pick a random,
18620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18621 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18622 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'
18623 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'
18626 gnu* | linux* | k*bsd*-gnu)
18627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18629 case $cc_basename,$host_cpu in
18630 pgcc*) # Portland Group C compiler
18631 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'
18632 tmp_addflag=' $pic_flag'
18634 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18635 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'
18636 tmp_addflag=' $pic_flag -Mnomain' ;;
18637 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18638 tmp_addflag=' -i_dynamic' ;;
18639 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18640 tmp_addflag=' -i_dynamic -nofor_main' ;;
18641 ifc* | ifort*) # Intel Fortran compiler
18642 tmp_addflag=' -nofor_main' ;;
18644 case `$CC -V 2>&1 | sed 5q` in
18645 *Sun\ C*) # Sun C 5.9
18646 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18647 tmp_sharedflag='-G' ;;
18648 *Sun\ F*) # Sun Fortran 8.3
18649 tmp_sharedflag='-G' ;;
18651 tmp_sharedflag='-shared' ;;
18653 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 if test $supports_anon_versioning = yes; then
18656 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18658 $echo "local: *; };" >> $output_objdir/$libname.ver~
18659 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18661 link_all_deplibs_GCJ=no
18667 netbsd* | netbsdelf*-gnu)
18668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18669 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18678 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18683 *** create shared libraries on Solaris systems. Therefore, libtool
18684 *** is disabling shared libraries support. We urge you to upgrade GNU
18685 *** binutils to release 2.9.1 or newer. Another option is to modify
18686 *** your PATH or compiler configuration so that the native linker is
18687 *** used, and then restart.
18690 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18699 case `$LD -v 2>&1` in
18700 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18704 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18705 *** reliably create shared libraries on SCO systems. Therefore, libtool
18706 *** is disabling shared libraries support. We urge you to upgrade GNU
18707 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18708 *** your PATH or compiler configuration so that the native linker is
18709 *** used, and then restart.
18714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18715 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18716 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18717 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18726 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18728 hardcode_direct_GCJ=yes
18729 hardcode_shlibpath_var_GCJ=no
18733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18734 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18735 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18742 if test "$ld_shlibs_GCJ" = no; then
18744 hardcode_libdir_flag_spec_GCJ=
18745 export_dynamic_flag_spec_GCJ=
18746 whole_archive_flag_spec_GCJ=
18749 # PORTME fill in a description of your system's linker (not GNU ld)
18752 allow_undefined_flag_GCJ=unsupported
18753 always_export_symbols_GCJ=yes
18754 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'
18755 # Note: this linker hardcodes the directories in LIBPATH if there
18756 # are no directories specified by -L.
18757 hardcode_minus_L_GCJ=yes
18758 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18759 # Neither direct hardcoding nor static linking is supported with a
18761 hardcode_direct_GCJ=unsupported
18766 if test "$host_cpu" = ia64; then
18767 # On IA64, the linker does run time linking by default, so we don't
18768 # have to do anything special.
18769 aix_use_runtimelinking=no
18770 exp_sym_flag='-Bexport'
18773 # If we're using GNU nm, then we don't want the "-C" option.
18774 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18775 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18776 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'
18778 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'
18780 aix_use_runtimelinking=no
18782 # Test if we are trying to use run time linking or normal
18783 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18784 # need to do runtime linking.
18785 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18786 for ld_flag in $LDFLAGS; do
18787 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18788 aix_use_runtimelinking=yes
18795 exp_sym_flag='-bexport'
18796 no_entry_flag='-bnoentry'
18799 # When large executables or shared objects are built, AIX ld can
18800 # have problems creating the table of contents. If linking a library
18801 # or program results in "error TOC overflow" add -mminimal-toc to
18802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18805 archive_cmds_GCJ=''
18806 hardcode_direct_GCJ=yes
18807 hardcode_libdir_separator_GCJ=':'
18808 link_all_deplibs_GCJ=yes
18810 if test "$GCC" = yes; then
18811 case $host_os in aix4.[012]|aix4.[012].*)
18812 # We only want to do this on AIX 4.2 and lower, the check
18813 # below for broken collect2 doesn't work under 4.3+
18814 collect2name=`${CC} -print-prog-name=collect2`
18815 if test -f "$collect2name" && \
18816 strings "$collect2name" | grep resolve_lib_name >/dev/null
18818 # We have reworked collect2
18821 # We have old collect2
18822 hardcode_direct_GCJ=unsupported
18823 # It fails to find uninstalled libraries when the uninstalled
18824 # path is not listed in the libpath. Setting hardcode_minus_L
18825 # to unsupported forces relinking
18826 hardcode_minus_L_GCJ=yes
18827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18828 hardcode_libdir_separator_GCJ=
18832 shared_flag='-shared'
18833 if test "$aix_use_runtimelinking" = yes; then
18834 shared_flag="$shared_flag "'${wl}-G'
18838 if test "$host_cpu" = ia64; then
18839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18840 # chokes on -Wl,-G. The following line is correct:
18843 if test "$aix_use_runtimelinking" = yes; then
18844 shared_flag='${wl}-G'
18846 shared_flag='${wl}-bM:SRE'
18851 # It seems that -bexpall does not export symbols beginning with
18852 # underscore (_), so it is better to generate a list of symbols to export.
18853 always_export_symbols_GCJ=yes
18854 if test "$aix_use_runtimelinking" = yes; then
18855 # Warning - without using the other runtime loading flags (-brtl),
18856 # -berok will link without error, but may produce a broken library.
18857 allow_undefined_flag_GCJ='-berok'
18858 # Determine the default libpath from the value encoded in an empty executable.
18859 cat >conftest.$ac_ext <<_ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18874 rm -f conftest.$ac_objext conftest$ac_exeext
18875 if { (ac_try="$ac_link"
18876 case "(($ac_try" in
18877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_link") 2>conftest.er1
18883 grep -v '^ *+' conftest.er1 >conftest.err
18885 cat conftest.err >&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } && {
18888 test -z "$ac_c_werror_flag" ||
18889 test ! -s conftest.err
18890 } && test -s conftest$ac_exeext &&
18891 $as_test_x conftest$ac_exeext; then
18893 lt_aix_libpath_sed='
18894 /Import File Strings/,/^$/ {
18900 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18901 # Check for a 64-bit object if we didn't find anything.
18902 if test -z "$aix_libpath"; then
18903 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18913 conftest$ac_exeext conftest.$ac_ext
18914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18916 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18917 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"
18919 if test "$host_cpu" = ia64; then
18920 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18921 allow_undefined_flag_GCJ="-z nodefs"
18922 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"
18924 # Determine the default libpath from the value encoded in an empty executable.
18925 cat >conftest.$ac_ext <<_ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18940 rm -f conftest.$ac_objext conftest$ac_exeext
18941 if { (ac_try="$ac_link"
18942 case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_link") 2>conftest.er1
18949 grep -v '^ *+' conftest.er1 >conftest.err
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } && {
18954 test -z "$ac_c_werror_flag" ||
18955 test ! -s conftest.err
18956 } && test -s conftest$ac_exeext &&
18957 $as_test_x conftest$ac_exeext; then
18959 lt_aix_libpath_sed='
18960 /Import File Strings/,/^$/ {
18966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18967 # Check for a 64-bit object if we didn't find anything.
18968 if test -z "$aix_libpath"; then
18969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18979 conftest$ac_exeext conftest.$ac_ext
18980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18982 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18983 # Warning - without using the other run time loading flags,
18984 # -berok will link without error, but may produce a broken library.
18985 no_undefined_flag_GCJ=' ${wl}-bernotok'
18986 allow_undefined_flag_GCJ=' ${wl}-berok'
18987 # Exported symbols can be pulled into shared objects from archives
18988 whole_archive_flag_spec_GCJ='$convenience'
18989 archive_cmds_need_lc_GCJ=yes
18990 # This is similar to how AIX traditionally builds its shared libraries.
18991 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'
18997 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)'
18998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18999 hardcode_minus_L_GCJ=yes
19000 # see comment about different semantics on the GNU ld section
19005 export_dynamic_flag_spec_GCJ=-rdynamic
19008 cygwin* | mingw* | pw32*)
19009 # When not using gcc, we currently assume that we are using
19010 # Microsoft Visual C++.
19011 # hardcode_libdir_flag_spec is actually meaningless, as there is
19012 # no search path for DLLs.
19013 hardcode_libdir_flag_spec_GCJ=' '
19014 allow_undefined_flag_GCJ=unsupported
19015 # Tell ltmain to make .lib files, not .a files.
19017 # Tell ltmain to make .dll files, not .so files.
19019 # FIXME: Setting linknames here is a bad hack.
19020 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19021 # The linker will automatically build a .lib file if we build a DLL.
19022 old_archive_From_new_cmds_GCJ='true'
19023 # FIXME: Should let the user specify the lib program.
19024 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19025 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19026 enable_shared_with_static_runtimes_GCJ=yes
19029 darwin* | rhapsody*)
19031 rhapsody* | darwin1.[012])
19032 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19035 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19036 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19038 case ${MACOSX_DEPLOYMENT_TARGET} in
19040 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19043 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19049 archive_cmds_need_lc_GCJ=no
19050 hardcode_direct_GCJ=no
19051 hardcode_automatic_GCJ=yes
19052 hardcode_shlibpath_var_GCJ=unsupported
19053 whole_archive_flag_spec_GCJ=''
19054 link_all_deplibs_GCJ=yes
19055 if test "$GCC" = yes ; then
19056 output_verbose_link_cmd='echo'
19057 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19058 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19060 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}'
19061 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}'
19063 case $cc_basename in
19065 output_verbose_link_cmd='echo'
19066 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19067 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19068 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19069 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19070 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}'
19080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19081 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19082 hardcode_shlibpath_var_GCJ=no
19089 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19090 # support. Future versions do this automatically, but an explicit c++rt0.o
19091 # does not break anything, and helps significantly (at the cost of a little
19094 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19095 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19096 hardcode_direct_GCJ=yes
19097 hardcode_shlibpath_var_GCJ=no
19100 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19102 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19103 hardcode_direct_GCJ=yes
19104 hardcode_minus_L_GCJ=yes
19105 hardcode_shlibpath_var_GCJ=no
19108 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19109 freebsd* | dragonfly*)
19110 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19111 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19112 hardcode_direct_GCJ=yes
19113 hardcode_shlibpath_var_GCJ=no
19117 if test "$GCC" = yes; then
19118 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'
19120 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'
19122 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19123 hardcode_libdir_separator_GCJ=:
19124 hardcode_direct_GCJ=yes
19126 # hardcode_minus_L: Not really in the search PATH,
19127 # but as the default location of the library.
19128 hardcode_minus_L_GCJ=yes
19129 export_dynamic_flag_spec_GCJ='${wl}-E'
19133 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19134 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19136 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19138 if test "$with_gnu_ld" = no; then
19139 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19140 hardcode_libdir_separator_GCJ=:
19142 hardcode_direct_GCJ=yes
19143 export_dynamic_flag_spec_GCJ='${wl}-E'
19145 # hardcode_minus_L: Not really in the search PATH,
19146 # but as the default location of the library.
19147 hardcode_minus_L_GCJ=yes
19152 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19155 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19158 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19161 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19167 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19170 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19173 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19177 if test "$with_gnu_ld" = no; then
19178 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19179 hardcode_libdir_separator_GCJ=:
19183 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19184 hardcode_direct_GCJ=no
19185 hardcode_shlibpath_var_GCJ=no
19188 hardcode_direct_GCJ=yes
19189 export_dynamic_flag_spec_GCJ='${wl}-E'
19191 # hardcode_minus_L: Not really in the search PATH,
19192 # but as the default location of the library.
19193 hardcode_minus_L_GCJ=yes
19199 irix5* | irix6* | nonstopux*)
19200 if test "$GCC" = yes; then
19201 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'
19203 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'
19204 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19206 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19207 hardcode_libdir_separator_GCJ=:
19208 link_all_deplibs_GCJ=yes
19211 netbsd* | netbsdelf*-gnu)
19212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19213 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19215 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19217 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19218 hardcode_direct_GCJ=yes
19219 hardcode_shlibpath_var_GCJ=no
19223 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19224 hardcode_direct_GCJ=yes
19225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19226 hardcode_libdir_separator_GCJ=:
19227 hardcode_shlibpath_var_GCJ=no
19231 if test -f /usr/libexec/ld.so; then
19232 hardcode_direct_GCJ=yes
19233 hardcode_shlibpath_var_GCJ=no
19234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19235 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19236 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19237 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19238 export_dynamic_flag_spec_GCJ='${wl}-E'
19241 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19242 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19243 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19246 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19247 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19257 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19258 hardcode_minus_L_GCJ=yes
19259 allow_undefined_flag_GCJ=unsupported
19260 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'
19261 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19265 if test "$GCC" = yes; then
19266 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19267 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'
19269 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19270 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'
19272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19273 hardcode_libdir_separator_GCJ=:
19276 osf4* | osf5*) # as osf3* with the addition of -msym flag
19277 if test "$GCC" = yes; then
19278 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19279 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'
19280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19282 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19283 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'
19284 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~
19285 $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'
19287 # Both c and cxx compiler support -rpath directly
19288 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19290 hardcode_libdir_separator_GCJ=:
19294 no_undefined_flag_GCJ=' -z text'
19295 if test "$GCC" = yes; then
19297 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19298 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19299 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19302 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19303 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19306 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19307 hardcode_shlibpath_var_GCJ=no
19309 solaris2.[0-5] | solaris2.[0-5].*) ;;
19311 # The compiler driver will combine and reorder linker options,
19312 # but understands `-z linker_flag'. GCC discards it without `$wl',
19313 # but is careful enough not to reorder.
19314 # Supported since Solaris 2.6 (maybe 2.5.1?)
19315 if test "$GCC" = yes; then
19316 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19318 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19322 link_all_deplibs_GCJ=yes
19326 if test "x$host_vendor" = xsequent; then
19327 # Use $CC to link under sequent, because it throws in some extra .o
19328 # files that make .init and .fini sections work.
19329 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19331 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19333 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19334 hardcode_direct_GCJ=yes
19335 hardcode_minus_L_GCJ=yes
19336 hardcode_shlibpath_var_GCJ=no
19340 case $host_vendor in
19342 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19343 hardcode_direct_GCJ=yes # is this really true???
19346 ## LD is ld it makes a PLAMLIB
19347 ## CC just makes a GrossModule.
19348 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19349 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19350 hardcode_direct_GCJ=no
19353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19354 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19357 runpath_var='LD_RUN_PATH'
19358 hardcode_shlibpath_var_GCJ=no
19362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19363 hardcode_shlibpath_var_GCJ=no
19364 export_dynamic_flag_spec_GCJ='-Bexport'
19368 if test -d /usr/nec; then
19369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19370 hardcode_shlibpath_var_GCJ=no
19371 runpath_var=LD_RUN_PATH
19372 hardcode_runpath_var=yes
19377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19378 no_undefined_flag_GCJ='${wl}-z,text'
19379 archive_cmds_need_lc_GCJ=no
19380 hardcode_shlibpath_var_GCJ=no
19381 runpath_var='LD_RUN_PATH'
19383 if test "$GCC" = yes; then
19384 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19385 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19387 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19388 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19392 sysv5* | sco3.2v5* | sco5v6*)
19393 # Note: We can NOT use -z defs as we might desire, because we do not
19394 # link with -lc, and that would cause any symbols used from libc to
19395 # always be unresolved, which means just about no library would
19396 # ever link correctly. If we're not using GNU ld we use -z text
19397 # though, which does catch some bad symbols but isn't as heavy-handed
19399 no_undefined_flag_GCJ='${wl}-z,text'
19400 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19401 archive_cmds_need_lc_GCJ=no
19402 hardcode_shlibpath_var_GCJ=no
19403 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19404 hardcode_libdir_separator_GCJ=':'
19405 link_all_deplibs_GCJ=yes
19406 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19407 runpath_var='LD_RUN_PATH'
19409 if test "$GCC" = yes; then
19410 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19411 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19413 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19414 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19419 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19421 hardcode_shlibpath_var_GCJ=no
19430 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19431 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19432 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19435 # Do we need to explicitly link libc?
19437 case "x$archive_cmds_need_lc_GCJ" in
19439 # Assume -lc should be added
19440 archive_cmds_need_lc_GCJ=yes
19442 if test "$enable_shared" = yes && test "$GCC" = yes; then
19443 case $archive_cmds_GCJ in
19445 # FIXME: we may have to deal with multi-command sequences.
19448 # Test whether the compiler implicitly links with -lc since on some
19449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19450 # to ld, don't add -lc before -lgcc.
19451 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19452 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } 2>conftest.err; then
19463 libobjs=conftest.$ac_objext
19465 wl=$lt_prog_compiler_wl_GCJ
19466 pic_flag=$lt_prog_compiler_pic_GCJ
19472 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19473 allow_undefined_flag_GCJ=
19474 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19475 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }
19480 archive_cmds_need_lc_GCJ=no
19482 archive_cmds_need_lc_GCJ=yes
19484 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19486 cat conftest.err 1>&5
19489 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19490 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19497 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19498 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19499 library_names_spec=
19500 libname_spec='lib$name'
19504 postuninstall_cmds=
19508 shlibpath_overrides_runpath=unknown
19510 dynamic_linker="$host_os ld.so"
19511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19513 need_lib_prefix=unknown
19514 hardcode_into_libs=no
19516 # when you set need_version to no, make sure it does not cause -set_version
19517 # flags to be left without arguments
19518 need_version=unknown
19523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19524 shlibpath_var=LIBPATH
19526 # AIX 3 has no versioning support, so we append a major version to the name.
19527 soname_spec='${libname}${release}${shared_ext}$major'
19534 hardcode_into_libs=yes
19535 if test "$host_cpu" = ia64; then
19536 # AIX 5 supports IA64
19537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19538 shlibpath_var=LD_LIBRARY_PATH
19540 # With GCC up to 2.95.x, collect2 would create an import file
19541 # for dependence libraries. The import file would start with
19542 # the line `#! .'. This would cause the generated library to
19543 # depend on `.', always an invalid library. This was fixed in
19544 # development snapshots of GCC prior to 3.0.
19546 aix4 | aix4.[01] | aix4.[01].*)
19547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19549 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19552 can_build_shared=no
19556 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19557 # soname into executable. Probably we can add versioning support to
19558 # collect2, so additional links can be useful in future.
19559 if test "$aix_use_runtimelinking" = yes; then
19560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19561 # instead of lib<name>.a to let people know that these are not
19562 # typical AIX shared libraries.
19563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19565 # We preserve .a as extension for shared libraries through AIX4.2
19566 # and later when we are not doing run time linking.
19567 library_names_spec='${libname}${release}.a $libname.a'
19568 soname_spec='${libname}${release}${shared_ext}$major'
19570 shlibpath_var=LIBPATH
19575 library_names_spec='$libname.ixlibrary $libname.a'
19576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19577 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'
19581 library_names_spec='${libname}${shared_ext}'
19582 dynamic_linker="$host_os ld.so"
19583 shlibpath_var=LIBRARY_PATH
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590 soname_spec='${libname}${release}${shared_ext}$major'
19591 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19592 shlibpath_var=LD_LIBRARY_PATH
19593 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19594 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19595 # the default ld.so.conf also contains /usr/contrib/lib and
19596 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19597 # libtool to hard-code these into programs
19600 cygwin* | mingw* | pw32*)
19601 version_type=windows
19606 case $GCC,$host_os in
19607 yes,cygwin* | yes,mingw* | yes,pw32*)
19608 library_names_spec='$libname.dll.a'
19609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19610 postinstall_cmds='base_file=`basename \${file}`~
19611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19612 dldir=$destdir/`dirname \$dlpath`~
19613 test -d \$dldir || mkdir -p \$dldir~
19614 $install_prog $dir/$dlname \$dldir/$dlname~
19615 chmod a+x \$dldir/$dlname'
19616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19617 dlpath=$dir/\$dldll~
19619 shlibpath_overrides_runpath=yes
19623 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19624 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19625 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19628 # MinGW DLLs use traditional 'lib' prefix
19629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19631 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19632 # It is most probably a Windows format PATH printed by
19633 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19634 # path with ; separators, and with drive letters. We can handle the
19635 # drive letters (cygwin fileutils understands them), so leave them,
19636 # especially as we might pass files found there to a mingw objdump,
19637 # which wouldn't understand a cygwinified path. Ahh.
19638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19644 # pw32 DLLs use 'pw' prefix rather than 'lib'
19645 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19651 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19654 dynamic_linker='Win32 ld.exe'
19655 # FIXME: first we should search . and the directory the executable is in
19659 darwin* | rhapsody*)
19660 dynamic_linker="$host_os dyld"
19661 version_type=darwin
19664 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19665 soname_spec='${libname}${release}${major}$shared_ext'
19666 shlibpath_overrides_runpath=yes
19667 shlibpath_var=DYLD_LIBRARY_PATH
19668 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19678 soname_spec='${libname}${release}${shared_ext}$major'
19679 shlibpath_var=LD_LIBRARY_PATH
19686 freebsd* | dragonfly*)
19687 # DragonFly does not have aout. When/if they implement a new
19688 # versioning mechanism, adjust this.
19689 if test -x /usr/bin/objformat; then
19690 objformat=`/usr/bin/objformat`
19693 freebsd[123]*) objformat=aout ;;
19694 *) objformat=elf ;;
19697 version_type=freebsd-$objformat
19698 case $version_type in
19700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19709 shlibpath_var=LD_LIBRARY_PATH
19712 shlibpath_overrides_runpath=yes
19714 freebsd3.[01]* | freebsdelf3.[01]*)
19715 shlibpath_overrides_runpath=yes
19716 hardcode_into_libs=yes
19718 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19719 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19720 shlibpath_overrides_runpath=no
19721 hardcode_into_libs=yes
19723 *) # from 4.6 on, and DragonFly
19724 shlibpath_overrides_runpath=yes
19725 hardcode_into_libs=yes
19734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19735 soname_spec='${libname}${release}${shared_ext}$major'
19736 shlibpath_var=LD_LIBRARY_PATH
19737 hardcode_into_libs=yes
19740 hpux9* | hpux10* | hpux11*)
19741 # Give a soname corresponding to the major version so that dld.sl refuses to
19742 # link against other versions.
19749 hardcode_into_libs=yes
19750 dynamic_linker="$host_os dld.so"
19751 shlibpath_var=LD_LIBRARY_PATH
19752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19754 soname_spec='${libname}${release}${shared_ext}$major'
19755 if test "X$HPUX_IA64_MODE" = X32; then
19756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19764 hardcode_into_libs=yes
19765 dynamic_linker="$host_os dld.sl"
19766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19769 soname_spec='${libname}${release}${shared_ext}$major'
19770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19775 dynamic_linker="$host_os dld.sl"
19776 shlibpath_var=SHLIB_PATH
19777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19779 soname_spec='${libname}${release}${shared_ext}$major'
19782 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19783 postinstall_cmds='chmod 555 $lib'
19790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19791 soname_spec='${libname}${release}${shared_ext}$major'
19792 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19793 shlibpath_var=LD_LIBRARY_PATH
19794 shlibpath_overrides_runpath=no
19795 hardcode_into_libs=yes
19798 irix5* | irix6* | nonstopux*)
19800 nonstopux*) version_type=nonstopux ;;
19802 if test "$lt_cv_prog_gnu_ld" = yes; then
19810 soname_spec='${libname}${release}${shared_ext}$major'
19811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19813 irix5* | nonstopux*)
19814 libsuff= shlibsuff=
19817 case $LD in # libtool.m4 will add one of these switches to LD
19818 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19819 libsuff= shlibsuff= libmagic=32-bit;;
19820 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19821 libsuff=32 shlibsuff=N32 libmagic=N32;;
19822 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19823 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19824 *) libsuff= shlibsuff= libmagic=never-match;;
19828 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19829 shlibpath_overrides_runpath=no
19830 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19831 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19832 hardcode_into_libs=yes
19835 # No shared lib support for Linux oldld, aout, or coff.
19836 linux*oldld* | linux*aout* | linux*coff*)
19840 # This must be Linux ELF.
19841 linux* | k*bsd*-gnu)
19845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19846 soname_spec='${libname}${release}${shared_ext}$major'
19847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19848 shlibpath_var=LD_LIBRARY_PATH
19849 shlibpath_overrides_runpath=no
19850 # This implies no fast_install, which is unacceptable.
19851 # Some rework will be needed to allow for fast_install
19852 # before this can be enabled.
19853 hardcode_into_libs=yes
19855 # Append ld.so.conf contents to the search path
19856 if test -f /etc/ld.so.conf; then
19857 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19858 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19861 # We used to test for /lib/ld.so.1 and disable shared libraries on
19862 # powerpc, because MkLinux only supported shared libraries with the
19863 # GNU dynamic linker. Since this was broken with cross compilers,
19864 # most powerpc-linux boxes support dynamic linking these days and
19865 # people can always --disable-shared, the test was removed, and we
19866 # assume the GNU/Linux dynamic linker is in use.
19867 dynamic_linker='GNU/Linux ld.so'
19874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19875 soname_spec='${libname}${release}${shared_ext}$major'
19876 shlibpath_var=LD_LIBRARY_PATH
19877 shlibpath_overrides_runpath=no
19878 hardcode_into_libs=yes
19879 dynamic_linker='NetBSD ld.elf_so'
19886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19889 dynamic_linker='NetBSD (a.out) ld.so'
19891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19892 soname_spec='${libname}${release}${shared_ext}$major'
19893 dynamic_linker='NetBSD ld.elf_so'
19895 shlibpath_var=LD_LIBRARY_PATH
19896 shlibpath_overrides_runpath=yes
19897 hardcode_into_libs=yes
19902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19903 shlibpath_var=LD_LIBRARY_PATH
19904 shlibpath_overrides_runpath=yes
19911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19912 soname_spec='${libname}${release}${shared_ext}$major'
19913 shlibpath_var=LD_LIBRARY_PATH
19914 shlibpath_overrides_runpath=yes
19919 sys_lib_dlsearch_path_spec="/usr/lib"
19921 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19923 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19924 *) need_version=no ;;
19926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19928 shlibpath_var=LD_LIBRARY_PATH
19929 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19931 openbsd2.[89] | openbsd2.[89].*)
19932 shlibpath_overrides_runpath=no
19935 shlibpath_overrides_runpath=yes
19939 shlibpath_overrides_runpath=yes
19944 libname_spec='$name'
19947 library_names_spec='$libname${shared_ext} $libname.a'
19948 dynamic_linker='OS/2 ld.exe'
19949 shlibpath_var=LIBPATH
19952 osf3* | osf4* | osf5*)
19956 soname_spec='${libname}${release}${shared_ext}$major'
19957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19958 shlibpath_var=LD_LIBRARY_PATH
19959 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19960 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19972 soname_spec='${libname}${release}${shared_ext}$major'
19973 shlibpath_var=LD_LIBRARY_PATH
19974 shlibpath_overrides_runpath=yes
19975 hardcode_into_libs=yes
19976 # ldd complains unless libraries are executable
19977 postinstall_cmds='chmod +x $lib'
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19984 shlibpath_var=LD_LIBRARY_PATH
19985 shlibpath_overrides_runpath=yes
19986 if test "$with_gnu_ld" = yes; then
19994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19995 soname_spec='${libname}${release}${shared_ext}$major'
19996 shlibpath_var=LD_LIBRARY_PATH
19997 case $host_vendor in
19999 shlibpath_overrides_runpath=no
20001 export_dynamic_flag_spec='${wl}-Blargedynsym'
20002 runpath_var=LD_RUN_PATH
20010 shlibpath_overrides_runpath=no
20011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20017 if test -d /usr/nec ;then
20019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20020 soname_spec='$libname${shared_ext}.$major'
20021 shlibpath_var=LD_LIBRARY_PATH
20025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20026 version_type=freebsd-elf
20029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20030 soname_spec='${libname}${release}${shared_ext}$major'
20031 shlibpath_var=LD_LIBRARY_PATH
20032 hardcode_into_libs=yes
20033 if test "$with_gnu_ld" = yes; then
20034 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20035 shlibpath_overrides_runpath=no
20037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20038 shlibpath_overrides_runpath=yes
20041 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20045 sys_lib_dlsearch_path_spec='/usr/lib'
20050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20051 soname_spec='${libname}${release}${shared_ext}$major'
20052 shlibpath_var=LD_LIBRARY_PATH
20059 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20060 echo "${ECHO_T}$dynamic_linker" >&6; }
20061 test "$dynamic_linker" = no && can_build_shared=no
20063 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20064 if test "$GCC" = yes; then
20065 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20068 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20070 hardcode_action_GCJ=
20071 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20072 test -n "$runpath_var_GCJ" || \
20073 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20075 # We can hardcode non-existant directories.
20076 if test "$hardcode_direct_GCJ" != no &&
20077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20078 # have to relink, otherwise we might link with an installed library
20079 # when we should be linking with a yet-to-be-installed one
20080 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20081 test "$hardcode_minus_L_GCJ" != no; then
20082 # Linking always hardcodes the temporary library directory.
20083 hardcode_action_GCJ=relink
20085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20086 hardcode_action_GCJ=immediate
20089 # We cannot hardcode anything, or else we can only hardcode existing
20091 hardcode_action_GCJ=unsupported
20093 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20094 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20096 if test "$hardcode_action_GCJ" = relink; then
20097 # Fast installation is not supported
20098 enable_fast_install=no
20099 elif test "$shlibpath_overrides_runpath" = yes ||
20100 test "$enable_shared" = no; then
20101 # Fast installation is not necessary
20102 enable_fast_install=needless
20106 # The else clause should only fire when bootstrapping the
20107 # libtool distribution, otherwise you forgot to ship ltmain.sh
20108 # with your package, and you will get complaints that there are
20109 # no rules to generate ltmain.sh.
20110 if test -f "$ltmain"; then
20111 # See if we are running on zsh, and set the options which allow our commands through
20112 # without removal of \ escapes.
20113 if test -n "${ZSH_VERSION+set}" ; then
20114 setopt NO_GLOB_SUBST
20116 # Now quote all the things that may contain metacharacters while being
20117 # careful not to overquote the AC_SUBSTed values. We take copies of the
20118 # variables and quote the copies for generation of the libtool script.
20119 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20121 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20122 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20123 deplibs_check_method reload_flag reload_cmds need_locks \
20124 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20125 lt_cv_sys_global_symbol_to_c_name_address \
20126 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20127 old_postinstall_cmds old_postuninstall_cmds \
20131 lt_prog_compiler_wl_GCJ \
20132 lt_prog_compiler_pic_GCJ \
20133 lt_prog_compiler_static_GCJ \
20134 lt_prog_compiler_no_builtin_flag_GCJ \
20135 export_dynamic_flag_spec_GCJ \
20136 thread_safe_flag_spec_GCJ \
20137 whole_archive_flag_spec_GCJ \
20138 enable_shared_with_static_runtimes_GCJ \
20139 old_archive_cmds_GCJ \
20140 old_archive_from_new_cmds_GCJ \
20141 predep_objects_GCJ \
20142 postdep_objects_GCJ \
20145 compiler_lib_search_path_GCJ \
20147 archive_expsym_cmds_GCJ \
20148 postinstall_cmds_GCJ \
20149 postuninstall_cmds_GCJ \
20150 old_archive_from_expsyms_cmds_GCJ \
20151 allow_undefined_flag_GCJ \
20152 no_undefined_flag_GCJ \
20153 export_symbols_cmds_GCJ \
20154 hardcode_libdir_flag_spec_GCJ \
20155 hardcode_libdir_flag_spec_ld_GCJ \
20156 hardcode_libdir_separator_GCJ \
20157 hardcode_automatic_GCJ \
20159 module_expsym_cmds_GCJ \
20160 lt_cv_prog_compiler_c_o_GCJ \
20161 fix_srcfile_path_GCJ \
20162 exclude_expsyms_GCJ \
20163 include_expsyms_GCJ; do
20166 old_archive_cmds_GCJ | \
20167 old_archive_from_new_cmds_GCJ | \
20168 archive_cmds_GCJ | \
20169 archive_expsym_cmds_GCJ | \
20170 module_cmds_GCJ | \
20171 module_expsym_cmds_GCJ | \
20172 old_archive_from_expsyms_cmds_GCJ | \
20173 export_symbols_cmds_GCJ | \
20174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20175 postinstall_cmds | postuninstall_cmds | \
20176 old_postinstall_cmds | old_postuninstall_cmds | \
20177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20178 # Double-quote double-evaled strings.
20179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20188 *'\$0 --fallback-echo"')
20189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20195 cat <<__EOF__ >> "$cfgfile"
20196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20200 # Shell to use when invoking shell scripts.
20203 # Whether or not to build shared libraries.
20204 build_libtool_libs=$enable_shared
20206 # Whether or not to build static libraries.
20207 build_old_libs=$enable_static
20209 # Whether or not to add -lc for building shared libraries.
20210 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20212 # Whether or not to disallow shared libs when runtime libs are static
20213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20215 # Whether or not to optimize for fast installation.
20216 fast_install=$enable_fast_install
20219 host_alias=$host_alias
20223 # The build system.
20224 build_alias=$build_alias
20228 # An echo program that does not interpret backslashes.
20233 AR_FLAGS=$lt_AR_FLAGS
20238 # LTCC compiler flags.
20239 LTCFLAGS=$lt_LTCFLAGS
20241 # A language-specific compiler.
20242 CC=$lt_compiler_GCJ
20244 # Is the compiler the GNU C compiler?
20250 # The linker used to build libraries.
20253 # Whether we need hard or soft links.
20256 # A BSD-compatible nm program.
20259 # A symbol stripping program
20262 # Used to examine libraries when file_magic_cmd begins "file"
20263 MAGIC_CMD=$MAGIC_CMD
20265 # Used on cygwin: DLL creation program.
20268 # Used on cygwin: object dumper.
20271 # Used on cygwin: assembler.
20274 # The name of the directory that contains temporary libtool files.
20277 # How to create reloadable object files.
20278 reload_flag=$lt_reload_flag
20279 reload_cmds=$lt_reload_cmds
20281 # How to pass a linker flag through the compiler.
20282 wl=$lt_lt_prog_compiler_wl_GCJ
20284 # Object file suffix (normally "o").
20285 objext="$ac_objext"
20287 # Old archive suffix (normally "a").
20290 # Shared library suffix (normally ".so").
20291 shrext_cmds='$shrext_cmds'
20293 # Executable file suffix (normally "").
20296 # Additional compiler flags for building library objects.
20297 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20300 # What is the maximum length of a command?
20301 max_cmd_len=$lt_cv_sys_max_cmd_len
20303 # Does compiler simultaneously support -c and -o options?
20304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20306 # Must we lock files when doing compilation?
20307 need_locks=$lt_need_locks
20309 # Do we need the lib prefix for modules?
20310 need_lib_prefix=$need_lib_prefix
20312 # Do we need a version for libraries?
20313 need_version=$need_version
20315 # Whether dlopen is supported.
20316 dlopen_support=$enable_dlopen
20318 # Whether dlopen of programs is supported.
20319 dlopen_self=$enable_dlopen_self
20321 # Whether dlopen of statically linked programs is supported.
20322 dlopen_self_static=$enable_dlopen_self_static
20324 # Compiler flag to prevent dynamic linking.
20325 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20327 # Compiler flag to turn off builtin functions.
20328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20330 # Compiler flag to allow reflexive dlopens.
20331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20333 # Compiler flag to generate shared objects directly from archives.
20334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20336 # Compiler flag to generate thread-safe objects.
20337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20339 # Library versioning type.
20340 version_type=$version_type
20342 # Format of library name prefix.
20343 libname_spec=$lt_libname_spec
20345 # List of archive names. First name is the real one, the rest are links.
20346 # The last name is the one that the linker finds with -lNAME.
20347 library_names_spec=$lt_library_names_spec
20349 # The coded name of the library, if different from the real name.
20350 soname_spec=$lt_soname_spec
20352 # Commands used to build and install an old-style archive.
20354 old_archive_cmds=$lt_old_archive_cmds_GCJ
20355 old_postinstall_cmds=$lt_old_postinstall_cmds
20356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20358 # Create an old-style archive from a shared archive.
20359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20361 # Create a temporary old-style archive to link instead of a shared archive.
20362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20364 # Commands used to build and install a shared archive.
20365 archive_cmds=$lt_archive_cmds_GCJ
20366 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20367 postinstall_cmds=$lt_postinstall_cmds
20368 postuninstall_cmds=$lt_postuninstall_cmds
20370 # Commands used to build a loadable module (assumed same as above if empty)
20371 module_cmds=$lt_module_cmds_GCJ
20372 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20374 # Commands to strip libraries.
20375 old_striplib=$lt_old_striplib
20376 striplib=$lt_striplib
20378 # Dependencies to place before the objects being linked to create a
20380 predep_objects=$lt_predep_objects_GCJ
20382 # Dependencies to place after the objects being linked to create a
20384 postdep_objects=$lt_postdep_objects_GCJ
20386 # Dependencies to place before the objects being linked to create a
20388 predeps=$lt_predeps_GCJ
20390 # Dependencies to place after the objects being linked to create a
20392 postdeps=$lt_postdeps_GCJ
20394 # The library search path used internally by the compiler when linking
20395 # a shared library.
20396 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20398 # Method to check whether dependent libraries are shared objects.
20399 deplibs_check_method=$lt_deplibs_check_method
20401 # Command to use when deplibs_check_method == file_magic.
20402 file_magic_cmd=$lt_file_magic_cmd
20404 # Flag that allows shared libraries with undefined symbols to be built.
20405 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20407 # Flag that forces no undefined symbols.
20408 no_undefined_flag=$lt_no_undefined_flag_GCJ
20410 # Commands used to finish a libtool library installation in a directory.
20411 finish_cmds=$lt_finish_cmds
20413 # Same as above, but a single script fragment to be evaled but not shown.
20414 finish_eval=$lt_finish_eval
20416 # Take the output of nm and produce a listing of raw symbols and C names.
20417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20419 # Transform the output of nm in a proper C declaration
20420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20422 # Transform the output of nm in a C name address pair
20423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20425 # This is the shared library runtime path variable.
20426 runpath_var=$runpath_var
20428 # This is the shared library path variable.
20429 shlibpath_var=$shlibpath_var
20431 # Is shlibpath searched before the hard-coded library search path?
20432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20434 # How to hardcode a shared library path into an executable.
20435 hardcode_action=$hardcode_action_GCJ
20437 # Whether we should hardcode library paths into libraries.
20438 hardcode_into_libs=$hardcode_into_libs
20440 # Flag to hardcode \$libdir into a binary during linking.
20441 # This must work even if \$libdir does not exist.
20442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20444 # If ld is used when linking, flag to hardcode \$libdir into
20445 # a binary during linking. This must work even if \$libdir does
20447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20449 # Whether we need a single -rpath flag with a separated argument.
20450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20453 # resulting binary.
20454 hardcode_direct=$hardcode_direct_GCJ
20456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20457 # resulting binary.
20458 hardcode_minus_L=$hardcode_minus_L_GCJ
20460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20461 # the resulting binary.
20462 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20464 # Set to yes if building a shared library automatically hardcodes DIR into the library
20465 # and all subsequent libraries and executables linked against it.
20466 hardcode_automatic=$hardcode_automatic_GCJ
20468 # Variables whose values should be saved in libtool wrapper scripts and
20469 # restored at relink time.
20470 variables_saved_for_relink="$variables_saved_for_relink"
20472 # Whether libtool must link a program against all its dependency libraries.
20473 link_all_deplibs=$link_all_deplibs_GCJ
20475 # Compile-time system search path for libraries
20476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20478 # Run-time system search path for libraries
20479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20481 # Fix the shell variable \$srcfile for the compiler.
20482 fix_srcfile_path=$lt_fix_srcfile_path
20484 # Set to yes if exported symbols are required.
20485 always_export_symbols=$always_export_symbols_GCJ
20487 # The commands to list exported symbols.
20488 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20490 # The commands to extract the exported symbol list from a shared archive.
20491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20493 # Symbols that should not be listed in the preloaded symbols.
20494 exclude_expsyms=$lt_exclude_expsyms_GCJ
20496 # Symbols that must always be exported.
20497 include_expsyms=$lt_include_expsyms_GCJ
20499 # ### END LIBTOOL TAG CONFIG: $tagname
20505 # If there is no Makefile yet, we rely on a make rule to execute
20506 # `config.status --recheck' to rerun these tests and create the
20507 # libtool script then.
20508 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20509 if test -f "$ltmain_in"; then
20510 test -f Makefile && make "$ltmain"
20516 ac_cpp='$CPP $CPPFLAGS'
20517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20531 # Source file extension for RC test sources.
20534 # Object file extension for compiled RC test sources.
20538 # Code to be used in simple compile tests
20539 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20541 # Code to be used in simple link tests
20542 lt_simple_link_test_code="$lt_simple_compile_test_code"
20544 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20546 # If no C compiler was specified, use CC.
20549 # If no C compiler flags were specified, use CFLAGS.
20550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20552 # Allow CC to be a program name with arguments.
20556 # save warnings/boilerplate of simple test code
20557 ac_outfile=conftest.$ac_objext
20558 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20560 _lt_compiler_boilerplate=`cat conftest.err`
20563 ac_outfile=conftest.$ac_objext
20564 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20566 _lt_linker_boilerplate=`cat conftest.err`
20570 # Allow CC to be a program name with arguments.
20575 for cc_temp in $compiler""; do
20577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20583 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20585 lt_cv_prog_compiler_c_o_RC=yes
20587 # The else clause should only fire when bootstrapping the
20588 # libtool distribution, otherwise you forgot to ship ltmain.sh
20589 # with your package, and you will get complaints that there are
20590 # no rules to generate ltmain.sh.
20591 if test -f "$ltmain"; then
20592 # See if we are running on zsh, and set the options which allow our commands through
20593 # without removal of \ escapes.
20594 if test -n "${ZSH_VERSION+set}" ; then
20595 setopt NO_GLOB_SUBST
20597 # Now quote all the things that may contain metacharacters while being
20598 # careful not to overquote the AC_SUBSTed values. We take copies of the
20599 # variables and quote the copies for generation of the libtool script.
20600 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20602 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20603 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20604 deplibs_check_method reload_flag reload_cmds need_locks \
20605 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20606 lt_cv_sys_global_symbol_to_c_name_address \
20607 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20608 old_postinstall_cmds old_postuninstall_cmds \
20612 lt_prog_compiler_wl_RC \
20613 lt_prog_compiler_pic_RC \
20614 lt_prog_compiler_static_RC \
20615 lt_prog_compiler_no_builtin_flag_RC \
20616 export_dynamic_flag_spec_RC \
20617 thread_safe_flag_spec_RC \
20618 whole_archive_flag_spec_RC \
20619 enable_shared_with_static_runtimes_RC \
20620 old_archive_cmds_RC \
20621 old_archive_from_new_cmds_RC \
20622 predep_objects_RC \
20623 postdep_objects_RC \
20626 compiler_lib_search_path_RC \
20628 archive_expsym_cmds_RC \
20629 postinstall_cmds_RC \
20630 postuninstall_cmds_RC \
20631 old_archive_from_expsyms_cmds_RC \
20632 allow_undefined_flag_RC \
20633 no_undefined_flag_RC \
20634 export_symbols_cmds_RC \
20635 hardcode_libdir_flag_spec_RC \
20636 hardcode_libdir_flag_spec_ld_RC \
20637 hardcode_libdir_separator_RC \
20638 hardcode_automatic_RC \
20640 module_expsym_cmds_RC \
20641 lt_cv_prog_compiler_c_o_RC \
20642 fix_srcfile_path_RC \
20643 exclude_expsyms_RC \
20644 include_expsyms_RC; do
20647 old_archive_cmds_RC | \
20648 old_archive_from_new_cmds_RC | \
20649 archive_cmds_RC | \
20650 archive_expsym_cmds_RC | \
20652 module_expsym_cmds_RC | \
20653 old_archive_from_expsyms_cmds_RC | \
20654 export_symbols_cmds_RC | \
20655 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20656 postinstall_cmds | postuninstall_cmds | \
20657 old_postinstall_cmds | old_postuninstall_cmds | \
20658 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20659 # Double-quote double-evaled strings.
20660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20663 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20669 *'\$0 --fallback-echo"')
20670 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20676 cat <<__EOF__ >> "$cfgfile"
20677 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20681 # Shell to use when invoking shell scripts.
20684 # Whether or not to build shared libraries.
20685 build_libtool_libs=$enable_shared
20687 # Whether or not to build static libraries.
20688 build_old_libs=$enable_static
20690 # Whether or not to add -lc for building shared libraries.
20691 build_libtool_need_lc=$archive_cmds_need_lc_RC
20693 # Whether or not to disallow shared libs when runtime libs are static
20694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20696 # Whether or not to optimize for fast installation.
20697 fast_install=$enable_fast_install
20700 host_alias=$host_alias
20704 # The build system.
20705 build_alias=$build_alias
20709 # An echo program that does not interpret backslashes.
20714 AR_FLAGS=$lt_AR_FLAGS
20719 # LTCC compiler flags.
20720 LTCFLAGS=$lt_LTCFLAGS
20722 # A language-specific compiler.
20725 # Is the compiler the GNU C compiler?
20731 # The linker used to build libraries.
20734 # Whether we need hard or soft links.
20737 # A BSD-compatible nm program.
20740 # A symbol stripping program
20743 # Used to examine libraries when file_magic_cmd begins "file"
20744 MAGIC_CMD=$MAGIC_CMD
20746 # Used on cygwin: DLL creation program.
20749 # Used on cygwin: object dumper.
20752 # Used on cygwin: assembler.
20755 # The name of the directory that contains temporary libtool files.
20758 # How to create reloadable object files.
20759 reload_flag=$lt_reload_flag
20760 reload_cmds=$lt_reload_cmds
20762 # How to pass a linker flag through the compiler.
20763 wl=$lt_lt_prog_compiler_wl_RC
20765 # Object file suffix (normally "o").
20766 objext="$ac_objext"
20768 # Old archive suffix (normally "a").
20771 # Shared library suffix (normally ".so").
20772 shrext_cmds='$shrext_cmds'
20774 # Executable file suffix (normally "").
20777 # Additional compiler flags for building library objects.
20778 pic_flag=$lt_lt_prog_compiler_pic_RC
20781 # What is the maximum length of a command?
20782 max_cmd_len=$lt_cv_sys_max_cmd_len
20784 # Does compiler simultaneously support -c and -o options?
20785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20787 # Must we lock files when doing compilation?
20788 need_locks=$lt_need_locks
20790 # Do we need the lib prefix for modules?
20791 need_lib_prefix=$need_lib_prefix
20793 # Do we need a version for libraries?
20794 need_version=$need_version
20796 # Whether dlopen is supported.
20797 dlopen_support=$enable_dlopen
20799 # Whether dlopen of programs is supported.
20800 dlopen_self=$enable_dlopen_self
20802 # Whether dlopen of statically linked programs is supported.
20803 dlopen_self_static=$enable_dlopen_self_static
20805 # Compiler flag to prevent dynamic linking.
20806 link_static_flag=$lt_lt_prog_compiler_static_RC
20808 # Compiler flag to turn off builtin functions.
20809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20811 # Compiler flag to allow reflexive dlopens.
20812 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20814 # Compiler flag to generate shared objects directly from archives.
20815 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20817 # Compiler flag to generate thread-safe objects.
20818 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20820 # Library versioning type.
20821 version_type=$version_type
20823 # Format of library name prefix.
20824 libname_spec=$lt_libname_spec
20826 # List of archive names. First name is the real one, the rest are links.
20827 # The last name is the one that the linker finds with -lNAME.
20828 library_names_spec=$lt_library_names_spec
20830 # The coded name of the library, if different from the real name.
20831 soname_spec=$lt_soname_spec
20833 # Commands used to build and install an old-style archive.
20835 old_archive_cmds=$lt_old_archive_cmds_RC
20836 old_postinstall_cmds=$lt_old_postinstall_cmds
20837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20839 # Create an old-style archive from a shared archive.
20840 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20842 # Create a temporary old-style archive to link instead of a shared archive.
20843 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20845 # Commands used to build and install a shared archive.
20846 archive_cmds=$lt_archive_cmds_RC
20847 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20848 postinstall_cmds=$lt_postinstall_cmds
20849 postuninstall_cmds=$lt_postuninstall_cmds
20851 # Commands used to build a loadable module (assumed same as above if empty)
20852 module_cmds=$lt_module_cmds_RC
20853 module_expsym_cmds=$lt_module_expsym_cmds_RC
20855 # Commands to strip libraries.
20856 old_striplib=$lt_old_striplib
20857 striplib=$lt_striplib
20859 # Dependencies to place before the objects being linked to create a
20861 predep_objects=$lt_predep_objects_RC
20863 # Dependencies to place after the objects being linked to create a
20865 postdep_objects=$lt_postdep_objects_RC
20867 # Dependencies to place before the objects being linked to create a
20869 predeps=$lt_predeps_RC
20871 # Dependencies to place after the objects being linked to create a
20873 postdeps=$lt_postdeps_RC
20875 # The library search path used internally by the compiler when linking
20876 # a shared library.
20877 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20879 # Method to check whether dependent libraries are shared objects.
20880 deplibs_check_method=$lt_deplibs_check_method
20882 # Command to use when deplibs_check_method == file_magic.
20883 file_magic_cmd=$lt_file_magic_cmd
20885 # Flag that allows shared libraries with undefined symbols to be built.
20886 allow_undefined_flag=$lt_allow_undefined_flag_RC
20888 # Flag that forces no undefined symbols.
20889 no_undefined_flag=$lt_no_undefined_flag_RC
20891 # Commands used to finish a libtool library installation in a directory.
20892 finish_cmds=$lt_finish_cmds
20894 # Same as above, but a single script fragment to be evaled but not shown.
20895 finish_eval=$lt_finish_eval
20897 # Take the output of nm and produce a listing of raw symbols and C names.
20898 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20900 # Transform the output of nm in a proper C declaration
20901 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20903 # Transform the output of nm in a C name address pair
20904 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20906 # This is the shared library runtime path variable.
20907 runpath_var=$runpath_var
20909 # This is the shared library path variable.
20910 shlibpath_var=$shlibpath_var
20912 # Is shlibpath searched before the hard-coded library search path?
20913 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20915 # How to hardcode a shared library path into an executable.
20916 hardcode_action=$hardcode_action_RC
20918 # Whether we should hardcode library paths into libraries.
20919 hardcode_into_libs=$hardcode_into_libs
20921 # Flag to hardcode \$libdir into a binary during linking.
20922 # This must work even if \$libdir does not exist.
20923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20925 # If ld is used when linking, flag to hardcode \$libdir into
20926 # a binary during linking. This must work even if \$libdir does
20928 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20930 # Whether we need a single -rpath flag with a separated argument.
20931 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20933 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20934 # resulting binary.
20935 hardcode_direct=$hardcode_direct_RC
20937 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20938 # resulting binary.
20939 hardcode_minus_L=$hardcode_minus_L_RC
20941 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20942 # the resulting binary.
20943 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20945 # Set to yes if building a shared library automatically hardcodes DIR into the library
20946 # and all subsequent libraries and executables linked against it.
20947 hardcode_automatic=$hardcode_automatic_RC
20949 # Variables whose values should be saved in libtool wrapper scripts and
20950 # restored at relink time.
20951 variables_saved_for_relink="$variables_saved_for_relink"
20953 # Whether libtool must link a program against all its dependency libraries.
20954 link_all_deplibs=$link_all_deplibs_RC
20956 # Compile-time system search path for libraries
20957 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20959 # Run-time system search path for libraries
20960 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20962 # Fix the shell variable \$srcfile for the compiler.
20963 fix_srcfile_path=$lt_fix_srcfile_path
20965 # Set to yes if exported symbols are required.
20966 always_export_symbols=$always_export_symbols_RC
20968 # The commands to list exported symbols.
20969 export_symbols_cmds=$lt_export_symbols_cmds_RC
20971 # The commands to extract the exported symbol list from a shared archive.
20972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20974 # Symbols that should not be listed in the preloaded symbols.
20975 exclude_expsyms=$lt_exclude_expsyms_RC
20977 # Symbols that must always be exported.
20978 include_expsyms=$lt_include_expsyms_RC
20980 # ### END LIBTOOL TAG CONFIG: $tagname
20986 # If there is no Makefile yet, we rely on a make rule to execute
20987 # `config.status --recheck' to rerun these tests and create the
20988 # libtool script then.
20989 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20990 if test -f "$ltmain_in"; then
20991 test -f Makefile && make "$ltmain"
20997 ac_cpp='$CPP $CPPFLAGS'
20998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21007 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21008 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21009 { (exit 1); exit 1; }; }
21013 # Append the new tag name to the list of available tags.
21014 if test -n "$tagname" ; then
21015 available_tags="$available_tags $tagname"
21021 # Now substitute the updated list of available tags.
21022 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21023 mv "${ofile}T" "$ofile"
21027 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21028 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21029 { (exit 1); exit 1; }; }
21035 # This can be used to rebuild libtool when needed
21036 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21038 # Always use our own libtool.
21039 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21041 # Prevent multiple expansion
21062 if test "x$CC" != xcc; then
21063 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21064 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21066 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21067 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21069 set dummy $CC; ac_cc=`echo $2 |
21070 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21071 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21089 # Make sure it works both with $CC and with simple cc.
21090 # We do the test twice because some compilers refuse to overwrite an
21091 # existing .o file with -o, though they will create one.
21092 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21094 if { (case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_try") 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_try") 2>&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); };
21113 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21114 if test "x$CC" != xcc; then
21115 # Test first that cc exists at all.
21116 if { ac_try='cc -c conftest.$ac_ext >&5'
21117 { (case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_try") 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21128 if { (case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_try") 2>&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_try") 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); };
21150 # cc exists but doesn't like -o.
21151 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21156 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21158 rm -f core conftest*
21161 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21162 { echo "$as_me:$LINENO: result: yes" >&5
21163 echo "${ECHO_T}yes" >&6; }
21165 { echo "$as_me:$LINENO: result: no" >&5
21166 echo "${ECHO_T}no" >&6; }
21168 cat >>confdefs.h <<\_ACEOF
21169 @%:@define NO_MINUS_C_MINUS_O 1
21174 # FIXME: we rely on the cache variable name because
21175 # there is no other way.
21177 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21178 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21179 # Losing compiler, so override with the script.
21180 # FIXME: It is wrong to rewrite CC.
21181 # But if we don't then we get into trouble of one sort or another.
21182 # A longer-term fix would be to have automake use am__CC in this case,
21183 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21184 CC="$am_aux_dir/compile $CC"
21188 if test "x$cross_compiling" = "xno"; then
21189 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21191 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21196 if test -n "$ac_tool_prefix"; then
21197 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21198 set dummy ${ac_tool_prefix}ar; ac_word=$2
21199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21201 if test "${ac_cv_prog_AR+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 if test -n "$AR"; then
21205 ac_cv_prog_AR="$AR" # Let the user override the test.
21207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21208 for as_dir in $PATH
21211 test -z "$as_dir" && as_dir=.
21212 for ac_exec_ext in '' $ac_executable_extensions; do
21213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21214 ac_cv_prog_AR="${ac_tool_prefix}ar"
21215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21225 if test -n "$AR"; then
21226 { echo "$as_me:$LINENO: result: $AR" >&5
21227 echo "${ECHO_T}$AR" >&6; }
21229 { echo "$as_me:$LINENO: result: no" >&5
21230 echo "${ECHO_T}no" >&6; }
21235 if test -z "$ac_cv_prog_AR"; then
21237 # Extract the first word of "ar", so it can be a program name with args.
21238 set dummy ar; ac_word=$2
21239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21241 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 if test -n "$ac_ct_AR"; then
21245 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21248 for as_dir in $PATH
21251 test -z "$as_dir" && as_dir=.
21252 for ac_exec_ext in '' $ac_executable_extensions; do
21253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21254 ac_cv_prog_ac_ct_AR="ar"
21255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21264 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21265 if test -n "$ac_ct_AR"; then
21266 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21267 echo "${ECHO_T}$ac_ct_AR" >&6; }
21269 { echo "$as_me:$LINENO: result: no" >&5
21270 echo "${ECHO_T}no" >&6; }
21273 if test "x$ac_ct_AR" = x; then
21276 case $cross_compiling:$ac_tool_warned in
21278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21279 whose name does not start with the host triplet. If you think this
21280 configuration is useful to you, please write to autoconf@gnu.org." >&5
21281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21282 whose name does not start with the host triplet. If you think this
21283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21284 ac_tool_warned=yes ;;
21289 AR="$ac_cv_prog_AR"
21292 if test -n "$ac_tool_prefix"; then
21293 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21294 set dummy ${ac_tool_prefix}ld; ac_word=$2
21295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21297 if test "${ac_cv_prog_LD+set}" = set; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 if test -n "$LD"; then
21301 ac_cv_prog_LD="$LD" # Let the user override the test.
21303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21304 for as_dir in $PATH
21307 test -z "$as_dir" && as_dir=.
21308 for ac_exec_ext in '' $ac_executable_extensions; do
21309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21310 ac_cv_prog_LD="${ac_tool_prefix}ld"
21311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21321 if test -n "$LD"; then
21322 { echo "$as_me:$LINENO: result: $LD" >&5
21323 echo "${ECHO_T}$LD" >&6; }
21325 { echo "$as_me:$LINENO: result: no" >&5
21326 echo "${ECHO_T}no" >&6; }
21331 if test -z "$ac_cv_prog_LD"; then
21333 # Extract the first word of "ld", so it can be a program name with args.
21334 set dummy ld; ac_word=$2
21335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21337 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21340 if test -n "$ac_ct_LD"; then
21341 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21344 for as_dir in $PATH
21347 test -z "$as_dir" && as_dir=.
21348 for ac_exec_ext in '' $ac_executable_extensions; do
21349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21350 ac_cv_prog_ac_ct_LD="ld"
21351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21360 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21361 if test -n "$ac_ct_LD"; then
21362 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21363 echo "${ECHO_T}$ac_ct_LD" >&6; }
21365 { echo "$as_me:$LINENO: result: no" >&5
21366 echo "${ECHO_T}no" >&6; }
21369 if test "x$ac_ct_LD" = x; then
21372 case $cross_compiling:$ac_tool_warned in
21374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21375 whose name does not start with the host triplet. If you think this
21376 configuration is useful to you, please write to autoconf@gnu.org." >&5
21377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21378 whose name does not start with the host triplet. If you think this
21379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21380 ac_tool_warned=yes ;;
21385 LD="$ac_cv_prog_LD"
21389 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21390 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21391 if test "${ac_cv_header_stdc+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 #include <stdlib.h>
21401 #include <stdarg.h>
21402 #include <string.h>
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21422 grep -v '^ *+' conftest.er1 >conftest.err
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } && {
21427 test -z "$ac_c_werror_flag" ||
21428 test ! -s conftest.err
21429 } && test -s conftest.$ac_objext; then
21430 ac_cv_header_stdc=yes
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_cv_header_stdc=no
21438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440 if test $ac_cv_header_stdc = yes; then
21441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <string.h>
21451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21452 $EGREP "memchr" >/dev/null 2>&1; then
21455 ac_cv_header_stdc=no
21461 if test $ac_cv_header_stdc = yes; then
21462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21463 cat >conftest.$ac_ext <<_ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <stdlib.h>
21472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21473 $EGREP "free" >/dev/null 2>&1; then
21476 ac_cv_header_stdc=no
21482 if test $ac_cv_header_stdc = yes; then
21483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21484 if test "$cross_compiling" = yes; then
21487 cat >conftest.$ac_ext <<_ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21494 #include <stdlib.h>
21495 #if ((' ' & 0x0FF) == 0x020)
21496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21499 # define ISLOWER(c) \
21500 (('a' <= (c) && (c) <= 'i') \
21501 || ('j' <= (c) && (c) <= 'r') \
21502 || ('s' <= (c) && (c) <= 'z'))
21503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21511 for (i = 0; i < 256; i++)
21512 if (XOR (islower (i), ISLOWER (i))
21513 || toupper (i) != TOUPPER (i))
21518 rm -f conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_link") 2>&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21529 { (case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_try") 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21540 echo "$as_me: program exited with status $ac_status" >&5
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ( exit $ac_status )
21545 ac_cv_header_stdc=no
21547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21553 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21554 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21555 if test $ac_cv_header_stdc = yes; then
21557 cat >>confdefs.h <<\_ACEOF
21558 @%:@define STDC_HEADERS 1
21564 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21565 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21566 if test "${knfsd_cv_glibc2+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21576 #include <features.h>
21577 #if !defined(__GLIBC__)
21582 if { (ac_try="$ac_cpp conftest.$ac_ext"
21583 case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21590 grep -v '^ *+' conftest.er1 >conftest.err
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev/null && {
21595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21596 test ! -s conftest.err
21598 knfsd_cv_glibc2=yes
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21606 rm -f conftest.err conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21610 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21611 if test $knfsd_cv_glibc2 = yes; then
21612 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21613 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21617 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21618 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21619 if test "${knfsd_cv_bsd_signals+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21622 if test "$cross_compiling" = yes; then
21625 *linux*) knfsd_cv_bsd_signals=no;;
21626 *bsd*) knfsd_cv_bsd_signals=yes;;
21627 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21628 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21629 { (exit 1); exit 1; }; };;
21633 cat >conftest.$ac_ext <<_ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21640 #include <signal.h>
21641 #include <unistd.h>
21642 #include <sys/wait.h>
21644 static int counter = 0;
21645 static RETSIGTYPE handler(int num) { counter++; }
21650 if ((s = fork()) < 0) return 1;
21652 if (wait(&s) < 0) return 1;
21653 return WIFSIGNALED(s)? 1 : 0;
21656 signal(SIGHUP, handler);
21657 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21658 return (counter == 2)? 0 : 1;
21662 rm -f conftest$ac_exeext
21663 if { (ac_try="$ac_link"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_link") 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21673 { (case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_try") 2>&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; }; then
21682 knfsd_cv_bsd_signals=yes
21684 echo "$as_me: program exited with status $ac_status" >&5
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ( exit $ac_status )
21689 knfsd_cv_bsd_signals=no
21691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21696 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21697 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21698 test $knfsd_cv_bsd_signals = yes &&
21699 cat >>confdefs.h <<\_ACEOF
21700 @%:@define HAVE_BSD_SIGNALS 1
21705 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21706 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21707 if test "${ac_cv_func_gethostbyname+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21718 #define gethostbyname innocuous_gethostbyname
21720 /* System header to define __stub macros and hopefully few prototypes,
21721 which can conflict with char gethostbyname (); below.
21722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21723 <limits.h> exists even on freestanding compilers. */
21726 # include <limits.h>
21728 # include <assert.h>
21731 #undef gethostbyname
21733 /* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21739 char gethostbyname ();
21740 /* The GNU C library defines this for functions which it implements
21741 to always fail with ENOSYS. Some functions are actually named
21742 something starting with __ and the normal name is an alias. */
21743 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21750 return gethostbyname ();
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756 if { (ac_try="$ac_link"
21757 case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_link") 2>conftest.er1
21764 grep -v '^ *+' conftest.er1 >conftest.err
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } && {
21769 test -z "$ac_c_werror_flag" ||
21770 test ! -s conftest.err
21771 } && test -s conftest$ac_exeext &&
21772 $as_test_x conftest$ac_exeext; then
21773 ac_cv_func_gethostbyname=yes
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 ac_cv_func_gethostbyname=no
21781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21782 conftest$ac_exeext conftest.$ac_ext
21784 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21785 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21786 if test $ac_cv_func_gethostbyname = yes; then
21789 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21790 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21791 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 ac_check_lib_save_LIBS=$LIBS
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21803 /* Override any GCC internal prototype to avoid an error.
21804 Use char because int might match the return type of a GCC
21805 builtin and then its argument prototype would still apply. */
21809 char gethostbyname ();
21813 return gethostbyname ();
21818 rm -f conftest.$ac_objext conftest$ac_exeext
21819 if { (ac_try="$ac_link"
21820 case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_link") 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && {
21832 test -z "$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21834 } && test -s conftest$ac_exeext &&
21835 $as_test_x conftest$ac_exeext; then
21836 ac_cv_lib_nsl_gethostbyname=yes
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21841 ac_cv_lib_nsl_gethostbyname=no
21844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21845 conftest$ac_exeext conftest.$ac_ext
21846 LIBS=$ac_check_lib_save_LIBS
21848 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21849 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21850 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21858 { echo "$as_me:$LINENO: checking for connect" >&5
21859 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21860 if test "${ac_cv_func_connect+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21871 #define connect innocuous_connect
21873 /* System header to define __stub macros and hopefully few prototypes,
21874 which can conflict with char connect (); below.
21875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21876 <limits.h> exists even on freestanding compilers. */
21879 # include <limits.h>
21881 # include <assert.h>
21886 /* Override any GCC internal prototype to avoid an error.
21887 Use char because int might match the return type of a GCC
21888 builtin and then its argument prototype would still apply. */
21893 /* The GNU C library defines this for functions which it implements
21894 to always fail with ENOSYS. Some functions are actually named
21895 something starting with __ and the normal name is an alias. */
21896 #if defined __stub_connect || defined __stub___connect
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_link") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest$ac_exeext &&
21925 $as_test_x conftest$ac_exeext; then
21926 ac_cv_func_connect=yes
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 ac_cv_func_connect=no
21934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21935 conftest$ac_exeext conftest.$ac_ext
21937 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21938 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21939 if test $ac_cv_func_connect = yes; then
21942 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21943 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21944 if test "${ac_cv_lib_socket_connect+set}" = set; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 ac_check_lib_save_LIBS=$LIBS
21948 LIBS="-lsocket $LIBNSL $LIBS"
21949 cat >conftest.$ac_ext <<_ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21956 /* Override any GCC internal prototype to avoid an error.
21957 Use char because int might match the return type of a GCC
21958 builtin and then its argument prototype would still apply. */
21971 rm -f conftest.$ac_objext conftest$ac_exeext
21972 if { (ac_try="$ac_link"
21973 case "(($ac_try" in
21974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975 *) ac_try_echo=$ac_try;;
21977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978 (eval "$ac_link") 2>conftest.er1
21980 grep -v '^ *+' conftest.er1 >conftest.err
21982 cat conftest.err >&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } && {
21985 test -z "$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21987 } && test -s conftest$ac_exeext &&
21988 $as_test_x conftest$ac_exeext; then
21989 ac_cv_lib_socket_connect=yes
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 ac_cv_lib_socket_connect=no
21997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21998 conftest$ac_exeext conftest.$ac_ext
21999 LIBS=$ac_check_lib_save_LIBS
22001 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22002 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22003 if test $ac_cv_lib_socket_connect = yes; then
22004 LIBSOCKET="-lsocket"
22006 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
22007 echo "$as_me: error: Function 'socket' not found." >&2;}
22008 { (exit 1); exit 1; }; }
22014 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22015 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22016 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 ac_check_lib_save_LIBS=$LIBS
22020 LIBS="-lcrypt $LIBS"
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22028 /* Override any GCC internal prototype to avoid an error.
22029 Use char because int might match the return type of a GCC
22030 builtin and then its argument prototype would still apply. */
22043 rm -f conftest.$ac_objext conftest$ac_exeext
22044 if { (ac_try="$ac_link"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_link") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest$ac_exeext &&
22060 $as_test_x conftest$ac_exeext; then
22061 ac_cv_lib_crypt_crypt=yes
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ac_cv_lib_crypt_crypt=no
22069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22070 conftest$ac_exeext conftest.$ac_ext
22071 LIBS=$ac_check_lib_save_LIBS
22073 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22074 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22075 if test $ac_cv_lib_crypt_crypt = yes; then
22079 if test "$enable_nfsv4" = yes; then
22080 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22081 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22082 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 ac_check_lib_save_LIBS=$LIBS
22086 LIBS="-levent $LIBS"
22087 cat >conftest.$ac_ext <<_ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h. */
22094 /* Override any GCC internal prototype to avoid an error.
22095 Use char because int might match the return type of a GCC
22096 builtin and then its argument prototype would still apply. */
22100 char event_dispatch ();
22104 return event_dispatch ();
22109 rm -f conftest.$ac_objext conftest$ac_exeext
22110 if { (ac_try="$ac_link"
22111 case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_link") 2>conftest.er1
22118 grep -v '^ *+' conftest.er1 >conftest.err
22120 cat conftest.err >&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } && {
22123 test -z "$ac_c_werror_flag" ||
22124 test ! -s conftest.err
22125 } && test -s conftest$ac_exeext &&
22126 $as_test_x conftest$ac_exeext; then
22127 ac_cv_lib_event_event_dispatch=yes
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_cv_lib_event_event_dispatch=no
22135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22136 conftest$ac_exeext conftest.$ac_ext
22137 LIBS=$ac_check_lib_save_LIBS
22139 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22140 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22141 if test $ac_cv_lib_event_event_dispatch = yes; then
22144 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22145 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22146 { (exit 1); exit 1; }; }
22149 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22150 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22151 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 ac_check_lib_save_LIBS=$LIBS
22155 LIBS="-lnfsidmap $LIBS"
22156 cat >conftest.$ac_ext <<_ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22163 /* Override any GCC internal prototype to avoid an error.
22164 Use char because int might match the return type of a GCC
22165 builtin and then its argument prototype would still apply. */
22169 char nfs4_init_name_mapping ();
22173 return nfs4_init_name_mapping ();
22178 rm -f conftest.$ac_objext conftest$ac_exeext
22179 if { (ac_try="$ac_link"
22180 case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_link") 2>conftest.er1
22187 grep -v '^ *+' conftest.er1 >conftest.err
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } && {
22192 test -z "$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22194 } && test -s conftest$ac_exeext &&
22195 $as_test_x conftest$ac_exeext; then
22196 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22198 echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22201 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22205 conftest$ac_exeext conftest.$ac_ext
22206 LIBS=$ac_check_lib_save_LIBS
22208 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22209 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22210 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22213 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22214 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22215 { (exit 1); exit 1; }; }
22219 for ac_header in event.h
22221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 ac_res=`eval echo '${'$as_ac_Header'}'`
22229 { echo "$as_me:$LINENO: result: $ac_res" >&5
22230 echo "${ECHO_T}$ac_res" >&6; }
22232 # Is the header compilable?
22233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22235 cat >conftest.$ac_ext <<_ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 $ac_includes_default
22242 @%:@include <$ac_header>
22244 rm -f conftest.$ac_objext
22245 if { (ac_try="$ac_compile"
22246 case "(($ac_try" in
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_compile") 2>conftest.er1
22253 grep -v '^ *+' conftest.er1 >conftest.err
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } && {
22258 test -z "$ac_c_werror_flag" ||
22259 test ! -s conftest.err
22260 } && test -s conftest.$ac_objext; then
22261 ac_header_compiler=yes
22263 echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 ac_header_compiler=no
22269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22271 echo "${ECHO_T}$ac_header_compiler" >&6; }
22273 # Is the header present?
22274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22276 cat >conftest.$ac_ext <<_ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22282 @%:@include <$ac_header>
22284 if { (ac_try="$ac_cpp conftest.$ac_ext"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22292 grep -v '^ *+' conftest.er1 >conftest.err
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } >/dev/null && {
22297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22300 ac_header_preproc=yes
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22305 ac_header_preproc=no
22308 rm -f conftest.err conftest.$ac_ext
22309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22310 echo "${ECHO_T}$ac_header_preproc" >&6; }
22312 # So? What about this header?
22313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22319 ac_header_preproc=yes
22322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22335 @%:@@%:@ ------------------------------- @%:@@%:@
22336 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22337 @%:@@%:@ ------------------------------- @%:@@%:@
22339 ) | sed "s/^/$as_me: WARNING: /" >&2
22342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 eval "$as_ac_Header=\$ac_header_preproc"
22349 ac_res=`eval echo '${'$as_ac_Header'}'`
22350 { echo "$as_me:$LINENO: result: $ac_res" >&5
22351 echo "${ECHO_T}$ac_res" >&6; }
22354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22355 cat >>confdefs.h <<_ACEOF
22356 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22360 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22361 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22362 { (exit 1); exit 1; }; }
22368 for ac_header in nfsidmap.h
22370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 ac_res=`eval echo '${'$as_ac_Header'}'`
22378 { echo "$as_me:$LINENO: result: $ac_res" >&5
22379 echo "${ECHO_T}$ac_res" >&6; }
22381 # Is the header compilable?
22382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22390 $ac_includes_default
22391 @%:@include <$ac_header>
22393 rm -f conftest.$ac_objext
22394 if { (ac_try="$ac_compile"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_compile") 2>conftest.er1
22402 grep -v '^ *+' conftest.er1 >conftest.err
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } && {
22407 test -z "$ac_c_werror_flag" ||
22408 test ! -s conftest.err
22409 } && test -s conftest.$ac_objext; then
22410 ac_header_compiler=yes
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ac_header_compiler=no
22418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22420 echo "${ECHO_T}$ac_header_compiler" >&6; }
22422 # Is the header present?
22423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 @%:@include <$ac_header>
22433 if { (ac_try="$ac_cpp conftest.$ac_ext"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22441 grep -v '^ *+' conftest.er1 >conftest.err
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } >/dev/null && {
22446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22449 ac_header_preproc=yes
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ac_header_preproc=no
22457 rm -f conftest.err conftest.$ac_ext
22458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22459 echo "${ECHO_T}$ac_header_preproc" >&6; }
22461 # So? What about this header?
22462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22468 ac_header_preproc=yes
22471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22484 @%:@@%:@ ------------------------------- @%:@@%:@
22485 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22486 @%:@@%:@ ------------------------------- @%:@@%:@
22488 ) | sed "s/^/$as_me: WARNING: /" >&2
22491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 eval "$as_ac_Header=\$ac_header_preproc"
22498 ac_res=`eval echo '${'$as_ac_Header'}'`
22499 { echo "$as_me:$LINENO: result: $ac_res" >&5
22500 echo "${ECHO_T}$ac_res" >&6; }
22503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22504 cat >>confdefs.h <<_ACEOF
22505 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22509 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22510 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22511 { (exit 1); exit 1; }; }
22516 if test "$enable_gss" = yes; then
22519 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22520 if test -n "$ac_tool_prefix"; then
22521 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22522 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22525 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 case $PKG_CONFIG in
22530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22534 for as_dir in $PATH
22537 test -z "$as_dir" && as_dir=.
22538 for ac_exec_ext in '' $ac_executable_extensions; do
22539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22540 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22552 if test -n "$PKG_CONFIG"; then
22553 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22554 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22556 { echo "$as_me:$LINENO: result: no" >&5
22557 echo "${ECHO_T}no" >&6; }
22562 if test -z "$ac_cv_path_PKG_CONFIG"; then
22563 ac_pt_PKG_CONFIG=$PKG_CONFIG
22564 # Extract the first word of "pkg-config", so it can be a program name with args.
22565 set dummy pkg-config; ac_word=$2
22566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22568 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 case $ac_pt_PKG_CONFIG in
22573 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22577 for as_dir in $PATH
22580 test -z "$as_dir" && as_dir=.
22581 for ac_exec_ext in '' $ac_executable_extensions; do
22582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22583 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22594 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22595 if test -n "$ac_pt_PKG_CONFIG"; then
22596 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22597 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22599 { echo "$as_me:$LINENO: result: no" >&5
22600 echo "${ECHO_T}no" >&6; }
22603 if test "x$ac_pt_PKG_CONFIG" = x; then
22606 case $cross_compiling:$ac_tool_warned in
22608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22609 whose name does not start with the host triplet. If you think this
22610 configuration is useful to you, please write to autoconf@gnu.org." >&5
22611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22612 whose name does not start with the host triplet. If you think this
22613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22614 ac_tool_warned=yes ;;
22616 PKG_CONFIG=$ac_pt_PKG_CONFIG
22619 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22623 if test -n "$PKG_CONFIG"; then
22624 _pkg_min_version=0.9.0
22625 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22626 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22627 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22628 { echo "$as_me:$LINENO: result: yes" >&5
22629 echo "${ECHO_T}yes" >&6; }
22631 { echo "$as_me:$LINENO: result: no" >&5
22632 echo "${ECHO_T}no" >&6; }
22639 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22640 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22642 if test -n "$PKG_CONFIG"; then
22643 if test -n "$RPCSECGSS_CFLAGS"; then
22644 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22646 if test -n "$PKG_CONFIG" && \
22647 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22648 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; then
22652 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22660 if test -n "$PKG_CONFIG"; then
22661 if test -n "$RPCSECGSS_LIBS"; then
22662 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22664 if test -n "$PKG_CONFIG" && \
22665 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22666 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; then
22670 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22681 if test $pkg_failed = yes; then
22683 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22684 _pkg_short_errors_supported=yes
22686 _pkg_short_errors_supported=no
22688 if test $_pkg_short_errors_supported = yes; then
22689 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22691 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22693 # Put the nasty error message in config.log where it belongs
22694 echo "$RPCSECGSS_PKG_ERRORS" >&5
22696 { echo "$as_me:$LINENO: result: no" >&5
22697 echo "${ECHO_T}no" >&6; }
22698 { { 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
22699 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;}
22700 { (exit 1); exit 1; }; }
22703 elif test $pkg_failed = untried; then
22704 { { 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
22705 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;}
22706 { (exit 1); exit 1; }; }
22710 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22711 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22712 { echo "$as_me:$LINENO: result: yes" >&5
22713 echo "${ECHO_T}yes" >&6; }
22718 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22719 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22721 if test -n "$PKG_CONFIG"; then
22722 if test -n "$GSSGLUE_CFLAGS"; then
22723 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22725 if test -n "$PKG_CONFIG" && \
22726 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22727 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; then
22731 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22739 if test -n "$PKG_CONFIG"; then
22740 if test -n "$GSSGLUE_LIBS"; then
22741 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22743 if test -n "$PKG_CONFIG" && \
22744 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22745 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; then
22749 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22760 if test $pkg_failed = yes; then
22762 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22763 _pkg_short_errors_supported=yes
22765 _pkg_short_errors_supported=no
22767 if test $_pkg_short_errors_supported = yes; then
22768 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22770 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22772 # Put the nasty error message in config.log where it belongs
22773 echo "$GSSGLUE_PKG_ERRORS" >&5
22775 { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22777 $GSSGLUE_PKG_ERRORS
22779 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22780 installed software in a non-standard prefix.
22782 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22783 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22784 See the pkg-config man page for more details.
22786 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22788 $GSSGLUE_PKG_ERRORS
22790 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22791 installed software in a non-standard prefix.
22793 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22794 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22795 See the pkg-config man page for more details.
22797 { (exit 1); exit 1; }; }
22798 elif test $pkg_failed = untried; then
22799 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22800 is in your PATH or set the PKG_CONFIG environment variable to the full
22801 path to pkg-config.
22803 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22804 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22805 See the pkg-config man page for more details.
22807 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22808 See \`config.log' for more details." >&5
22809 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22810 is in your PATH or set the PKG_CONFIG environment variable to the full
22811 path to pkg-config.
22813 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22814 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22815 See the pkg-config man page for more details.
22817 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22818 See \`config.log' for more details." >&2;}
22819 { (exit 1); exit 1; }; }
22821 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22822 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22823 { echo "$as_me:$LINENO: result: yes" >&5
22824 echo "${ECHO_T}yes" >&6; }
22830 if test "$knfsd_cv_glibc2" = no; then
22831 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22832 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22833 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
22836 ac_check_lib_save_LIBS=$LIBS
22838 cat >conftest.$ac_ext <<_ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h. */
22845 /* Override any GCC internal prototype to avoid an error.
22846 Use char because int might match the return type of a GCC
22847 builtin and then its argument prototype would still apply. */
22860 rm -f conftest.$ac_objext conftest$ac_exeext
22861 if { (ac_try="$ac_link"
22862 case "(($ac_try" in
22863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864 *) ac_try_echo=$ac_try;;
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867 (eval "$ac_link") 2>conftest.er1
22869 grep -v '^ *+' conftest.er1 >conftest.err
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } && {
22874 test -z "$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22876 } && test -s conftest$ac_exeext &&
22877 $as_test_x conftest$ac_exeext; then
22878 ac_cv_lib_bsd_daemon=yes
22880 echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22883 ac_cv_lib_bsd_daemon=no
22886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22887 conftest$ac_exeext conftest.$ac_ext
22888 LIBS=$ac_check_lib_save_LIBS
22890 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22891 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22892 if test $ac_cv_lib_bsd_daemon = yes; then
22898 if test "$choose_blkid" != no; then
22899 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22900 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22901 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22904 ac_check_lib_save_LIBS=$LIBS
22905 LIBS="-lblkid $LIBS"
22906 cat >conftest.$ac_ext <<_ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22913 /* Override any GCC internal prototype to avoid an error.
22914 Use char because int might match the return type of a GCC
22915 builtin and then its argument prototype would still apply. */
22919 char blkid_get_library_version ();
22923 return blkid_get_library_version ();
22928 rm -f conftest.$ac_objext conftest$ac_exeext
22929 if { (ac_try="$ac_link"
22930 case "(($ac_try" in
22931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932 *) ac_try_echo=$ac_try;;
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935 (eval "$ac_link") 2>conftest.er1
22937 grep -v '^ *+' conftest.er1 >conftest.err
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } && {
22942 test -z "$ac_c_werror_flag" ||
22943 test ! -s conftest.err
22944 } && test -s conftest$ac_exeext &&
22945 $as_test_x conftest$ac_exeext; then
22946 ac_cv_lib_blkid_blkid_get_library_version=yes
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22951 ac_cv_lib_blkid_blkid_get_library_version=no
22954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22955 conftest$ac_exeext conftest.$ac_ext
22956 LIBS=$ac_check_lib_save_LIBS
22958 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22959 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22960 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22963 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22964 echo "$as_me: error: libblkid needed" >&2;}
22965 { (exit 1); exit 1; }; }
22968 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22969 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22970 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22971 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22975 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22977 # Is the header compilable?
22978 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22979 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 $ac_includes_default
22987 @%:@include <blkid/blkid.h>
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_compile") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest.$ac_objext; then
23006 ac_header_compiler=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_header_compiler=no
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23016 echo "${ECHO_T}$ac_header_compiler" >&6; }
23018 # Is the header present?
23019 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23020 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 @%:@include <blkid/blkid.h>
23029 if { (ac_try="$ac_cpp conftest.$ac_ext"
23030 case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } >/dev/null && {
23042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23043 test ! -s conftest.err
23045 ac_header_preproc=yes
23047 echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23050 ac_header_preproc=no
23053 rm -f conftest.err conftest.$ac_ext
23054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23055 echo "${ECHO_T}$ac_header_preproc" >&6; }
23057 # So? What about this header?
23058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23060 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23061 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23063 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23064 ac_header_preproc=yes
23067 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23068 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23069 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
23070 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
23071 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23072 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23073 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
23074 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23075 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23076 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23077 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23078 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23080 @%:@@%:@ ------------------------------- @%:@@%:@
23081 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23082 @%:@@%:@ ------------------------------- @%:@@%:@
23084 ) | sed "s/^/$as_me: WARNING: /" >&2
23087 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23088 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23089 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
23092 ac_cv_header_blkid_blkid_h=$ac_header_preproc
23094 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23095 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23098 if test $ac_cv_header_blkid_blkid_h = yes; then
23101 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23102 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23103 { (exit 1); exit 1; }; }
23108 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23109 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23110 if test "${libblkid_is_recent+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23116 if test "$cross_compiling" = yes; then
23117 libblkid_is_recent=unknown
23119 cat >conftest.$ac_ext <<_ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23126 #include <blkid/blkid.h>
23129 int vers = blkid_get_library_version(0, 0);
23130 return vers >= 140 ? 0 : 1;
23134 rm -f conftest$ac_exeext
23135 if { (ac_try="$ac_link"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_link") 2>&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23145 { (case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_try") 2>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 libblkid_is_recent=yes
23156 echo "$as_me: program exited with status $ac_status" >&5
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ( exit $ac_status )
23161 libblkid_is_recent=no
23163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23170 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23171 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23173 if test $choose_blkid = yes; then
23175 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23176 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23178 if test $libblkid_is_recent = yes
23181 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23182 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23186 cat >>confdefs.h <<_ACEOF
23187 @%:@define USE_BLKID $use_blkid
23196 if test "$enable_gss" = yes; then
23198 for ac_header in nfsidmap.h
23200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23207 ac_res=`eval echo '${'$as_ac_Header'}'`
23208 { echo "$as_me:$LINENO: result: $ac_res" >&5
23209 echo "${ECHO_T}$ac_res" >&6; }
23211 # Is the header compilable?
23212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 $ac_includes_default
23221 @%:@include <$ac_header>
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23232 grep -v '^ *+' conftest.er1 >conftest.err
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_header_compiler=yes
23242 echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 ac_header_compiler=no
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23250 echo "${ECHO_T}$ac_header_compiler" >&6; }
23252 # Is the header present?
23253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23255 cat >conftest.$ac_ext <<_ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h. */
23261 @%:@include <$ac_header>
23263 if { (ac_try="$ac_cpp conftest.$ac_ext"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23271 grep -v '^ *+' conftest.er1 >conftest.err
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } >/dev/null && {
23276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23279 ac_header_preproc=yes
23281 echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23284 ac_header_preproc=no
23287 rm -f conftest.err conftest.$ac_ext
23288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23289 echo "${ECHO_T}$ac_header_preproc" >&6; }
23291 # So? What about this header?
23292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23298 ac_header_preproc=yes
23301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23314 @%:@@%:@ ------------------------------- @%:@@%:@
23315 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23316 @%:@@%:@ ------------------------------- @%:@@%:@
23318 ) | sed "s/^/$as_me: WARNING: /" >&2
23321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23326 eval "$as_ac_Header=\$ac_header_preproc"
23328 ac_res=`eval echo '${'$as_ac_Header'}'`
23329 { echo "$as_me:$LINENO: result: $ac_res" >&5
23330 echo "${ECHO_T}$ac_res" >&6; }
23333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23334 cat >>confdefs.h <<_ACEOF
23335 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23339 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23340 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23341 { (exit 1); exit 1; }; }
23347 for ac_header in spkm3.h
23349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23354 echo $ECHO_N "(cached) $ECHO_C" >&6
23356 ac_res=`eval echo '${'$as_ac_Header'}'`
23357 { echo "$as_me:$LINENO: result: $ac_res" >&5
23358 echo "${ECHO_T}$ac_res" >&6; }
23360 # Is the header compilable?
23361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23363 cat >conftest.$ac_ext <<_ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h. */
23369 $ac_includes_default
23370 @%:@include <$ac_header>
23372 rm -f conftest.$ac_objext
23373 if { (ac_try="$ac_compile"
23374 case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379 (eval "$ac_compile") 2>conftest.er1
23381 grep -v '^ *+' conftest.er1 >conftest.err
23383 cat conftest.err >&5
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } && {
23386 test -z "$ac_c_werror_flag" ||
23387 test ! -s conftest.err
23388 } && test -s conftest.$ac_objext; then
23389 ac_header_compiler=yes
23391 echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_header_compiler=no
23397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23399 echo "${ECHO_T}$ac_header_compiler" >&6; }
23401 # Is the header present?
23402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23404 cat >conftest.$ac_ext <<_ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23410 @%:@include <$ac_header>
23412 if { (ac_try="$ac_cpp conftest.$ac_ext"
23413 case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23420 grep -v '^ *+' conftest.er1 >conftest.err
23422 cat conftest.err >&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } >/dev/null && {
23425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23426 test ! -s conftest.err
23428 ac_header_preproc=yes
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ac_header_preproc=no
23436 rm -f conftest.err conftest.$ac_ext
23437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23438 echo "${ECHO_T}$ac_header_preproc" >&6; }
23440 # So? What about this header?
23441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23447 ac_header_preproc=yes
23450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23463 @%:@@%:@ ------------------------------- @%:@@%:@
23464 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23465 @%:@@%:@ ------------------------------- @%:@@%:@
23467 ) | sed "s/^/$as_me: WARNING: /" >&2
23470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23473 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 eval "$as_ac_Header=\$ac_header_preproc"
23477 ac_res=`eval echo '${'$as_ac_Header'}'`
23478 { echo "$as_me:$LINENO: result: $ac_res" >&5
23479 echo "${ECHO_T}$ac_res" >&6; }
23482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23483 cat >>confdefs.h <<_ACEOF
23484 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23488 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23489 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23494 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23495 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23496 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23499 ac_check_lib_save_LIBS=$LIBS
23500 LIBS="-lnfsidmap $LIBS"
23501 cat >conftest.$ac_ext <<_ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23508 /* Override any GCC internal prototype to avoid an error.
23509 Use char because int might match the return type of a GCC
23510 builtin and then its argument prototype would still apply. */
23514 char nfs4_set_debug ();
23518 return nfs4_set_debug ();
23523 rm -f conftest.$ac_objext conftest$ac_exeext
23524 if { (ac_try="$ac_link"
23525 case "(($ac_try" in
23526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527 *) ac_try_echo=$ac_try;;
23529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23530 (eval "$ac_link") 2>conftest.er1
23532 grep -v '^ *+' conftest.er1 >conftest.err
23534 cat conftest.err >&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } && {
23537 test -z "$ac_c_werror_flag" ||
23538 test ! -s conftest.err
23539 } && test -s conftest$ac_exeext &&
23540 $as_test_x conftest$ac_exeext; then
23541 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23543 echo "$as_me: failed program was:" >&5
23544 sed 's/^/| /' conftest.$ac_ext >&5
23546 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23550 conftest$ac_exeext conftest.$ac_ext
23551 LIBS=$ac_check_lib_save_LIBS
23553 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23554 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23555 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23557 cat >>confdefs.h <<\_ACEOF
23558 @%:@define HAVE_NFS4_SET_DEBUG 1
23565 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23566 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23568 # Check whether --with-krb5 was given.
23569 if test "${with_krb5+set}" = set; then
23570 withval=$with_krb5; case "$withval" in
23575 krb5_with="$withval"
23582 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23583 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23585 if test -f $dir/bin/krb5-config; then
23586 K5CONFIG=$dir/bin/krb5-config
23587 elif test -f "/usr/kerberos/bin/krb5-config"; then
23588 K5CONFIG="/usr/kerberos/bin/krb5-config"
23589 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23590 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23592 if test "$K5CONFIG" != ""; then
23593 KRBCFLAGS=`$K5CONFIG --cflags`
23594 KRBLIBS=`$K5CONFIG --libs gssapi`
23595 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23597 cat >>confdefs.h <<_ACEOF
23598 @%:@define KRB5_VERSION $K5VERS
23601 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23602 \( -f $dir/lib/libgssapi_krb5.a -o \
23603 -f $dir/lib64/libgssapi_krb5.a -o \
23604 -f $dir/lib64/libgssapi_krb5.so -o \
23605 -f $dir/lib/libgssapi_krb5.so \) ; then
23607 cat >>confdefs.h <<\_ACEOF
23608 @%:@define HAVE_KRB5 1
23612 if test $K5VERS -le 131; then
23614 cat >>confdefs.h <<\_ACEOF
23615 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
23619 gssapi_lib=gssapi_krb5
23621 elif test \( -f $dir/include/heim_err.h -o\
23622 -f $dir/include/heimdal/heim_err.h \) -a \
23623 -f $dir/lib/libroken.a; then
23625 cat >>confdefs.h <<\_ACEOF
23626 @%:@define HAVE_HEIMDAL 1
23635 if test "x$KRBDIR" = "x"; then
23636 if test "x$krb5_with" = "x"; then
23637 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23638 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23639 { (exit 1); exit 1; }; }
23641 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23642 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23643 { (exit 1); exit 1; }; }
23646 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23647 echo "${ECHO_T}$KRBDIR" >&6; }
23649 echo "The current KRBDIR is $KRBDIR"
23650 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23651 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23653 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23656 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23659 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23660 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23661 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23662 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23663 echo $ECHO_N "(cached) $ECHO_C" >&6
23665 ac_check_lib_save_LIBS=$LIBS
23666 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23667 cat >conftest.$ac_ext <<_ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23674 /* Override any GCC internal prototype to avoid an error.
23675 Use char because int might match the return type of a GCC
23676 builtin and then its argument prototype would still apply. */
23680 char gss_krb5_export_lucid_sec_context ();
23684 return gss_krb5_export_lucid_sec_context ();
23689 rm -f conftest.$ac_objext conftest$ac_exeext
23690 if { (ac_try="$ac_link"
23691 case "(($ac_try" in
23692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693 *) ac_try_echo=$ac_try;;
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696 (eval "$ac_link") 2>conftest.er1
23698 grep -v '^ *+' conftest.er1 >conftest.err
23700 cat conftest.err >&5
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } && {
23703 test -z "$ac_c_werror_flag" ||
23704 test ! -s conftest.err
23705 } && test -s conftest$ac_exeext &&
23706 $as_test_x conftest$ac_exeext; then
23707 eval "$as_ac_Lib=yes"
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23712 eval "$as_ac_Lib=no"
23715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23716 conftest$ac_exeext conftest.$ac_ext
23717 LIBS=$ac_check_lib_save_LIBS
23719 ac_res=`eval echo '${'$as_ac_Lib'}'`
23720 { echo "$as_me:$LINENO: result: $ac_res" >&5
23721 echo "${ECHO_T}$ac_res" >&6; }
23722 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23724 cat >>confdefs.h <<\_ACEOF
23725 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23730 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23731 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23732 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23733 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 ac_check_lib_save_LIBS=$LIBS
23737 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23738 cat >conftest.$ac_ext <<_ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h. */
23745 /* Override any GCC internal prototype to avoid an error.
23746 Use char because int might match the return type of a GCC
23747 builtin and then its argument prototype would still apply. */
23751 char gss_krb5_set_allowable_enctypes ();
23755 return gss_krb5_set_allowable_enctypes ();
23760 rm -f conftest.$ac_objext conftest$ac_exeext
23761 if { (ac_try="$ac_link"
23762 case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_link") 2>conftest.er1
23769 grep -v '^ *+' conftest.er1 >conftest.err
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && {
23774 test -z "$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 } && test -s conftest$ac_exeext &&
23777 $as_test_x conftest$ac_exeext; then
23778 eval "$as_ac_Lib=yes"
23780 echo "$as_me: failed program was:" >&5
23781 sed 's/^/| /' conftest.$ac_ext >&5
23783 eval "$as_ac_Lib=no"
23786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23787 conftest$ac_exeext conftest.$ac_ext
23788 LIBS=$ac_check_lib_save_LIBS
23790 ac_res=`eval echo '${'$as_ac_Lib'}'`
23791 { echo "$as_me:$LINENO: result: $ac_res" >&5
23792 echo "${ECHO_T}$ac_res" >&6; }
23793 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23795 cat >>confdefs.h <<\_ACEOF
23796 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23801 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23802 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23803 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23804 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 ac_check_lib_save_LIBS=$LIBS
23808 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23816 /* Override any GCC internal prototype to avoid an error.
23817 Use char because int might match the return type of a GCC
23818 builtin and then its argument prototype would still apply. */
23822 char gss_krb5_ccache_name ();
23826 return gss_krb5_ccache_name ();
23831 rm -f conftest.$ac_objext conftest$ac_exeext
23832 if { (ac_try="$ac_link"
23833 case "(($ac_try" in
23834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835 *) ac_try_echo=$ac_try;;
23837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838 (eval "$ac_link") 2>conftest.er1
23840 grep -v '^ *+' conftest.er1 >conftest.err
23842 cat conftest.err >&5
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } && {
23845 test -z "$ac_c_werror_flag" ||
23846 test ! -s conftest.err
23847 } && test -s conftest$ac_exeext &&
23848 $as_test_x conftest$ac_exeext; then
23849 eval "$as_ac_Lib=yes"
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23854 eval "$as_ac_Lib=no"
23857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23858 conftest$ac_exeext conftest.$ac_ext
23859 LIBS=$ac_check_lib_save_LIBS
23861 ac_res=`eval echo '${'$as_ac_Lib'}'`
23862 { echo "$as_me:$LINENO: result: $ac_res" >&5
23863 echo "${ECHO_T}$ac_res" >&6; }
23864 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23866 cat >>confdefs.h <<\_ACEOF
23867 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23873 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23874 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23875 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23876 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23877 echo $ECHO_N "(cached) $ECHO_C" >&6
23879 ac_check_lib_save_LIBS=$LIBS
23880 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23881 cat >conftest.$ac_ext <<_ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h. */
23888 /* Override any GCC internal prototype to avoid an error.
23889 Use char because int might match the return type of a GCC
23890 builtin and then its argument prototype would still apply. */
23894 char krb5_get_error_message ();
23898 return krb5_get_error_message ();
23903 rm -f conftest.$ac_objext conftest$ac_exeext
23904 if { (ac_try="$ac_link"
23905 case "(($ac_try" in
23906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907 *) ac_try_echo=$ac_try;;
23909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23910 (eval "$ac_link") 2>conftest.er1
23912 grep -v '^ *+' conftest.er1 >conftest.err
23914 cat conftest.err >&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } && {
23917 test -z "$ac_c_werror_flag" ||
23918 test ! -s conftest.err
23919 } && test -s conftest$ac_exeext &&
23920 $as_test_x conftest$ac_exeext; then
23921 eval "$as_ac_Lib=yes"
23923 echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23926 eval "$as_ac_Lib=no"
23929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23930 conftest$ac_exeext conftest.$ac_ext
23931 LIBS=$ac_check_lib_save_LIBS
23933 ac_res=`eval echo '${'$as_ac_Lib'}'`
23934 { echo "$as_me:$LINENO: result: $ac_res" >&5
23935 echo "${ECHO_T}$ac_res" >&6; }
23936 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23938 cat >>confdefs.h <<\_ACEOF
23939 @%:@define HAVE_KRB5_GET_ERROR_MESSAGE 1
23945 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23946 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23947 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23948 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23949 echo $ECHO_N "(cached) $ECHO_C" >&6
23951 ac_check_lib_save_LIBS=$LIBS
23952 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23960 /* Override any GCC internal prototype to avoid an error.
23961 Use char because int might match the return type of a GCC
23962 builtin and then its argument prototype would still apply. */
23966 char krb5_get_init_creds_opt_set_addressless ();
23970 return krb5_get_init_creds_opt_set_addressless ();
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (ac_try="$ac_link"
23977 case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_link") 2>conftest.er1
23984 grep -v '^ *+' conftest.er1 >conftest.err
23986 cat conftest.err >&5
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); } && {
23989 test -z "$ac_c_werror_flag" ||
23990 test ! -s conftest.err
23991 } && test -s conftest$ac_exeext &&
23992 $as_test_x conftest$ac_exeext; then
23993 eval "$as_ac_Lib=yes"
23995 echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23998 eval "$as_ac_Lib=no"
24001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24002 conftest$ac_exeext conftest.$ac_ext
24003 LIBS=$ac_check_lib_save_LIBS
24005 ac_res=`eval echo '${'$as_ac_Lib'}'`
24006 { echo "$as_me:$LINENO: result: $ac_res" >&5
24007 echo "${ECHO_T}$ac_res" >&6; }
24008 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24010 cat >>confdefs.h <<\_ACEOF
24011 @%:@define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24017 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24018 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24019 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24030 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24031 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24032 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24035 ac_check_lib_save_LIBS=$LIBS
24036 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24037 cat >conftest.$ac_ext <<_ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24044 /* Override any GCC internal prototype to avoid an error.
24045 Use char because int might match the return type of a GCC
24046 builtin and then its argument prototype would still apply. */
24050 char authgss_create_default ();
24054 return authgss_create_default ();
24059 rm -f conftest.$ac_objext conftest$ac_exeext
24060 if { (ac_try="$ac_link"
24061 case "(($ac_try" in
24062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063 *) ac_try_echo=$ac_try;;
24065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066 (eval "$ac_link") 2>conftest.er1
24068 grep -v '^ *+' conftest.er1 >conftest.err
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } && {
24073 test -z "$ac_c_werror_flag" ||
24074 test ! -s conftest.err
24075 } && test -s conftest$ac_exeext &&
24076 $as_test_x conftest$ac_exeext; then
24077 ac_cv_lib_rpcsecgss_authgss_create_default=yes
24079 echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24082 ac_cv_lib_rpcsecgss_authgss_create_default=no
24085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24086 conftest$ac_exeext conftest.$ac_ext
24087 LIBS=$ac_check_lib_save_LIBS
24089 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24090 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24091 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24094 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24095 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24096 { (exit 1); exit 1; }; }
24099 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24100 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24101 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24102 echo $ECHO_N "(cached) $ECHO_C" >&6
24104 ac_check_lib_save_LIBS=$LIBS
24105 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24106 cat >conftest.$ac_ext <<_ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h. */
24113 /* Override any GCC internal prototype to avoid an error.
24114 Use char because int might match the return type of a GCC
24115 builtin and then its argument prototype would still apply. */
24119 char authgss_set_debug_level ();
24123 return authgss_set_debug_level ();
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (ac_try="$ac_link"
24130 case "(($ac_try" in
24131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132 *) ac_try_echo=$ac_try;;
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135 (eval "$ac_link") 2>conftest.er1
24137 grep -v '^ *+' conftest.er1 >conftest.err
24139 cat conftest.err >&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } && {
24142 test -z "$ac_c_werror_flag" ||
24143 test ! -s conftest.err
24144 } && test -s conftest$ac_exeext &&
24145 $as_test_x conftest$ac_exeext; then
24146 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24148 echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24151 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24155 conftest$ac_exeext conftest.$ac_ext
24156 LIBS=$ac_check_lib_save_LIBS
24158 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24159 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24160 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24162 cat >>confdefs.h <<\_ACEOF
24163 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24194 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24195 malloc.h memory.h netdb.h netinet/in.h paths.h \
24196 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24197 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24198 syslog.h unistd.h com_err.h et/com_err.h \
24201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24206 echo $ECHO_N "(cached) $ECHO_C" >&6
24208 ac_res=`eval echo '${'$as_ac_Header'}'`
24209 { echo "$as_me:$LINENO: result: $ac_res" >&5
24210 echo "${ECHO_T}$ac_res" >&6; }
24212 # Is the header compilable?
24213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24215 cat >conftest.$ac_ext <<_ACEOF
24218 cat confdefs.h >>conftest.$ac_ext
24219 cat >>conftest.$ac_ext <<_ACEOF
24220 /* end confdefs.h. */
24221 $ac_includes_default
24222 @%:@include <$ac_header>
24224 rm -f conftest.$ac_objext
24225 if { (ac_try="$ac_compile"
24226 case "(($ac_try" in
24227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 *) ac_try_echo=$ac_try;;
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 (eval "$ac_compile") 2>conftest.er1
24233 grep -v '^ *+' conftest.er1 >conftest.err
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } && {
24238 test -z "$ac_c_werror_flag" ||
24239 test ! -s conftest.err
24240 } && test -s conftest.$ac_objext; then
24241 ac_header_compiler=yes
24243 echo "$as_me: failed program was:" >&5
24244 sed 's/^/| /' conftest.$ac_ext >&5
24246 ac_header_compiler=no
24249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24251 echo "${ECHO_T}$ac_header_compiler" >&6; }
24253 # Is the header present?
24254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24256 cat >conftest.$ac_ext <<_ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h. */
24262 @%:@include <$ac_header>
24264 if { (ac_try="$ac_cpp conftest.$ac_ext"
24265 case "(($ac_try" in
24266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267 *) ac_try_echo=$ac_try;;
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24272 grep -v '^ *+' conftest.er1 >conftest.err
24274 cat conftest.err >&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } >/dev/null && {
24277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24278 test ! -s conftest.err
24280 ac_header_preproc=yes
24282 echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.$ac_ext >&5
24285 ac_header_preproc=no
24288 rm -f conftest.err conftest.$ac_ext
24289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24290 echo "${ECHO_T}$ac_header_preproc" >&6; }
24292 # So? What about this header?
24293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24299 ac_header_preproc=yes
24302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24315 @%:@@%:@ ------------------------------- @%:@@%:@
24316 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24317 @%:@@%:@ ------------------------------- @%:@@%:@
24319 ) | sed "s/^/$as_me: WARNING: /" >&2
24322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 eval "$as_ac_Header=\$ac_header_preproc"
24329 ac_res=`eval echo '${'$as_ac_Header'}'`
24330 { echo "$as_me:$LINENO: result: $ac_res" >&5
24331 echo "${ECHO_T}$ac_res" >&6; }
24334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24335 cat >>confdefs.h <<_ACEOF
24336 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24344 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24345 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24346 if test "${ac_cv_c_const+set}" = set; then
24347 echo $ECHO_N "(cached) $ECHO_C" >&6
24349 cat >conftest.$ac_ext <<_ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24359 /* FIXME: Include the comments suggested by Paul. */
24360 #ifndef __cplusplus
24361 /* Ultrix mips cc rejects this. */
24362 typedef int charset[2];
24364 /* SunOS 4.1.1 cc rejects this. */
24365 char const *const *pcpcc;
24367 /* NEC SVR4.0.2 mips cc rejects this. */
24368 struct point {int x, y;};
24369 static struct point const zero = {0,0};
24370 /* AIX XL C 1.02.0.0 rejects this.
24371 It does not let you subtract one const X* pointer from another in
24372 an arm of an if-expression whose if-part is not a constant
24374 const char *g = "string";
24375 pcpcc = &g + (g ? g-g : 0);
24376 /* HPUX 7.0 cc rejects these. */
24378 ppc = (char**) pcpcc;
24379 pcpcc = (char const *const *) ppc;
24380 { /* SCO 3.2v4 cc rejects this. */
24382 char const *s = 0 ? (char *) 0 : (char const *) 0;
24387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24388 int x[] = {25, 17};
24389 const int *foo = &x[0];
24392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24393 typedef const int *iptr;
24397 { /* AIX XL C 1.02.0.0 rejects this saying
24398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24399 struct s { int j; const int *ap[3]; };
24400 struct s *b; b->j = 5;
24402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24403 const int foo = 10;
24404 if (!foo) return 0;
24406 return !cs[0] && !zero.x;
24413 rm -f conftest.$ac_objext
24414 if { (ac_try="$ac_compile"
24415 case "(($ac_try" in
24416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417 *) ac_try_echo=$ac_try;;
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420 (eval "$ac_compile") 2>conftest.er1
24422 grep -v '^ *+' conftest.er1 >conftest.err
24424 cat conftest.err >&5
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } && {
24427 test -z "$ac_c_werror_flag" ||
24428 test ! -s conftest.err
24429 } && test -s conftest.$ac_objext; then
24432 echo "$as_me: failed program was:" >&5
24433 sed 's/^/| /' conftest.$ac_ext >&5
24438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24440 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24441 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24442 if test $ac_cv_c_const = no; then
24444 cat >>confdefs.h <<\_ACEOF
24450 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24451 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24452 if test "${ac_cv_type_uid_t+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24455 cat >conftest.$ac_ext <<_ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h. */
24461 #include <sys/types.h>
24464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24465 $EGREP "uid_t" >/dev/null 2>&1; then
24466 ac_cv_type_uid_t=yes
24468 ac_cv_type_uid_t=no
24473 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24474 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24475 if test $ac_cv_type_uid_t = no; then
24477 cat >>confdefs.h <<\_ACEOF
24478 @%:@define uid_t int
24482 cat >>confdefs.h <<\_ACEOF
24483 @%:@define gid_t int
24488 { echo "$as_me:$LINENO: checking for inline" >&5
24489 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24490 if test "${ac_cv_c_inline+set}" = set; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
24494 for ac_kw in inline __inline__ __inline; do
24495 cat >conftest.$ac_ext <<_ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 #ifndef __cplusplus
24503 static $ac_kw foo_t static_foo () {return 0; }
24504 $ac_kw foo_t foo () {return 0; }
24508 rm -f conftest.$ac_objext
24509 if { (ac_try="$ac_compile"
24510 case "(($ac_try" in
24511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24512 *) ac_try_echo=$ac_try;;
24514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24515 (eval "$ac_compile") 2>conftest.er1
24517 grep -v '^ *+' conftest.er1 >conftest.err
24519 cat conftest.err >&5
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); } && {
24522 test -z "$ac_c_werror_flag" ||
24523 test ! -s conftest.err
24524 } && test -s conftest.$ac_objext; then
24525 ac_cv_c_inline=$ac_kw
24527 echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24534 test "$ac_cv_c_inline" != no && break
24538 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24539 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24542 case $ac_cv_c_inline in
24545 case $ac_cv_c_inline in
24547 *) ac_val=$ac_cv_c_inline;;
24549 cat >>confdefs.h <<_ACEOF
24550 #ifndef __cplusplus
24551 #define inline $ac_val
24557 { echo "$as_me:$LINENO: checking for off_t" >&5
24558 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24559 if test "${ac_cv_type_off_t+set}" = set; then
24560 echo $ECHO_N "(cached) $ECHO_C" >&6
24562 cat >conftest.$ac_ext <<_ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 $ac_includes_default
24569 typedef off_t ac__type_new_;
24573 if ((ac__type_new_ *) 0)
24575 if (sizeof (ac__type_new_))
24581 rm -f conftest.$ac_objext
24582 if { (ac_try="$ac_compile"
24583 case "(($ac_try" in
24584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585 *) ac_try_echo=$ac_try;;
24587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588 (eval "$ac_compile") 2>conftest.er1
24590 grep -v '^ *+' conftest.er1 >conftest.err
24592 cat conftest.err >&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } && {
24595 test -z "$ac_c_werror_flag" ||
24596 test ! -s conftest.err
24597 } && test -s conftest.$ac_objext; then
24598 ac_cv_type_off_t=yes
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24603 ac_cv_type_off_t=no
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24608 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24609 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24610 if test $ac_cv_type_off_t = yes; then
24614 cat >>confdefs.h <<_ACEOF
24615 @%:@define off_t long int
24620 { echo "$as_me:$LINENO: checking for pid_t" >&5
24621 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24622 if test "${ac_cv_type_pid_t+set}" = set; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24625 cat >conftest.$ac_ext <<_ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24631 $ac_includes_default
24632 typedef pid_t ac__type_new_;
24636 if ((ac__type_new_ *) 0)
24638 if (sizeof (ac__type_new_))
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_compile") 2>conftest.er1
24653 grep -v '^ *+' conftest.er1 >conftest.err
24655 cat conftest.err >&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); } && {
24658 test -z "$ac_c_werror_flag" ||
24659 test ! -s conftest.err
24660 } && test -s conftest.$ac_objext; then
24661 ac_cv_type_pid_t=yes
24663 echo "$as_me: failed program was:" >&5
24664 sed 's/^/| /' conftest.$ac_ext >&5
24666 ac_cv_type_pid_t=no
24669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24672 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24673 if test $ac_cv_type_pid_t = yes; then
24677 cat >>confdefs.h <<_ACEOF
24678 @%:@define pid_t int
24683 { echo "$as_me:$LINENO: checking for size_t" >&5
24684 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24685 if test "${ac_cv_type_size_t+set}" = set; then
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
24688 cat >conftest.$ac_ext <<_ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 $ac_includes_default
24695 typedef size_t ac__type_new_;
24699 if ((ac__type_new_ *) 0)
24701 if (sizeof (ac__type_new_))
24707 rm -f conftest.$ac_objext
24708 if { (ac_try="$ac_compile"
24709 case "(($ac_try" in
24710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711 *) ac_try_echo=$ac_try;;
24713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24714 (eval "$ac_compile") 2>conftest.er1
24716 grep -v '^ *+' conftest.er1 >conftest.err
24718 cat conftest.err >&5
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); } && {
24721 test -z "$ac_c_werror_flag" ||
24722 test ! -s conftest.err
24723 } && test -s conftest.$ac_objext; then
24724 ac_cv_type_size_t=yes
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24729 ac_cv_type_size_t=no
24732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24734 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24735 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24736 if test $ac_cv_type_size_t = yes; then
24740 cat >>confdefs.h <<_ACEOF
24741 @%:@define size_t unsigned int
24746 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24747 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24748 if test "${ac_cv_header_time+set}" = set; then
24749 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 #include <sys/types.h>
24758 #include <sys/time.h>
24764 if ((struct tm *) 0)
24770 rm -f conftest.$ac_objext
24771 if { (ac_try="$ac_compile"
24772 case "(($ac_try" in
24773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774 *) ac_try_echo=$ac_try;;
24776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777 (eval "$ac_compile") 2>conftest.er1
24779 grep -v '^ *+' conftest.er1 >conftest.err
24781 cat conftest.err >&5
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } && {
24784 test -z "$ac_c_werror_flag" ||
24785 test ! -s conftest.err
24786 } && test -s conftest.$ac_objext; then
24787 ac_cv_header_time=yes
24789 echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24792 ac_cv_header_time=no
24795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24797 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24798 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24799 if test $ac_cv_header_time = yes; then
24801 cat >>confdefs.h <<\_ACEOF
24802 @%:@define TIME_WITH_SYS_TIME 1
24807 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24809 if test "${ac_cv_struct_tm+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24812 cat >conftest.$ac_ext <<_ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24818 #include <sys/types.h>
24825 int *p = &tm.tm_sec;
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835 *) ac_try_echo=$ac_try;;
24837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838 (eval "$ac_compile") 2>conftest.er1
24840 grep -v '^ *+' conftest.er1 >conftest.err
24842 cat conftest.err >&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } && {
24845 test -z "$ac_c_werror_flag" ||
24846 test ! -s conftest.err
24847 } && test -s conftest.$ac_objext; then
24848 ac_cv_struct_tm=time.h
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24853 ac_cv_struct_tm=sys/time.h
24856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24858 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24859 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24860 if test $ac_cv_struct_tm = sys/time.h; then
24862 cat >>confdefs.h <<\_ACEOF
24863 @%:@define TM_IN_SYS_TIME 1
24869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24870 # for constant arguments. Useless!
24871 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24873 if test "${ac_cv_working_alloca_h+set}" = set; then
24874 echo $ECHO_N "(cached) $ECHO_C" >&6
24876 cat >conftest.$ac_ext <<_ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h. */
24882 @%:@include <alloca.h>
24886 char *p = (char *) alloca (2 * sizeof (int));
24892 rm -f conftest.$ac_objext conftest$ac_exeext
24893 if { (ac_try="$ac_link"
24894 case "(($ac_try" in
24895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896 *) ac_try_echo=$ac_try;;
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899 (eval "$ac_link") 2>conftest.er1
24901 grep -v '^ *+' conftest.er1 >conftest.err
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } && {
24906 test -z "$ac_c_werror_flag" ||
24907 test ! -s conftest.err
24908 } && test -s conftest$ac_exeext &&
24909 $as_test_x conftest$ac_exeext; then
24910 ac_cv_working_alloca_h=yes
24912 echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24915 ac_cv_working_alloca_h=no
24918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24919 conftest$ac_exeext conftest.$ac_ext
24921 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24922 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24923 if test $ac_cv_working_alloca_h = yes; then
24925 cat >>confdefs.h <<\_ACEOF
24926 @%:@define HAVE_ALLOCA_H 1
24931 { echo "$as_me:$LINENO: checking for alloca" >&5
24932 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24933 if test "${ac_cv_func_alloca_works+set}" = set; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 cat >conftest.$ac_ext <<_ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24943 # define alloca __builtin_alloca
24946 # include <malloc.h>
24947 # define alloca _alloca
24949 # ifdef HAVE_ALLOCA_H
24950 # include <alloca.h>
24955 # ifndef alloca /* predefined by HP cc +Olibcalls */
24966 char *p = (char *) alloca (1);
24972 rm -f conftest.$ac_objext conftest$ac_exeext
24973 if { (ac_try="$ac_link"
24974 case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979 (eval "$ac_link") 2>conftest.er1
24981 grep -v '^ *+' conftest.er1 >conftest.err
24983 cat conftest.err >&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); } && {
24986 test -z "$ac_c_werror_flag" ||
24987 test ! -s conftest.err
24988 } && test -s conftest$ac_exeext &&
24989 $as_test_x conftest$ac_exeext; then
24990 ac_cv_func_alloca_works=yes
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24995 ac_cv_func_alloca_works=no
24998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24999 conftest$ac_exeext conftest.$ac_ext
25001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25004 if test $ac_cv_func_alloca_works = yes; then
25006 cat >>confdefs.h <<\_ACEOF
25007 @%:@define HAVE_ALLOCA 1
25011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25012 # that cause trouble. Some versions do not even contain alloca or
25013 # contain a buggy version. If you still want to use their alloca,
25014 # use ar to extract alloca.o from them instead of compiling alloca.c.
25016 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25018 cat >>confdefs.h <<\_ACEOF
25019 @%:@define C_ALLOCA 1
25023 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25025 if test "${ac_cv_os_cray+set}" = set; then
25026 echo $ECHO_N "(cached) $ECHO_C" >&6
25028 cat >conftest.$ac_ext <<_ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h. */
25034 #if defined CRAY && ! defined CRAY2
25041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25042 $EGREP "webecray" >/dev/null 2>&1; then
25050 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25052 if test $ac_cv_os_cray = yes; then
25053 for ac_func in _getb67 GETB67 getb67; do
25054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25060 cat >conftest.$ac_ext <<_ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h. */
25066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25068 #define $ac_func innocuous_$ac_func
25070 /* System header to define __stub macros and hopefully few prototypes,
25071 which can conflict with char $ac_func (); below.
25072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25073 <limits.h> exists even on freestanding compilers. */
25076 # include <limits.h>
25078 # include <assert.h>
25083 /* Override any GCC internal prototype to avoid an error.
25084 Use char because int might match the return type of a GCC
25085 builtin and then its argument prototype would still apply. */
25090 /* The GNU C library defines this for functions which it implements
25091 to always fail with ENOSYS. Some functions are actually named
25092 something starting with __ and the normal name is an alias. */
25093 #if defined __stub_$ac_func || defined __stub___$ac_func
25100 return $ac_func ();
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (ac_try="$ac_link"
25107 case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112 (eval "$ac_link") 2>conftest.er1
25114 grep -v '^ *+' conftest.er1 >conftest.err
25116 cat conftest.err >&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); } && {
25119 test -z "$ac_c_werror_flag" ||
25120 test ! -s conftest.err
25121 } && test -s conftest$ac_exeext &&
25122 $as_test_x conftest$ac_exeext; then
25123 eval "$as_ac_var=yes"
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25128 eval "$as_ac_var=no"
25131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25132 conftest$ac_exeext conftest.$ac_ext
25134 ac_res=`eval echo '${'$as_ac_var'}'`
25135 { echo "$as_me:$LINENO: result: $ac_res" >&5
25136 echo "${ECHO_T}$ac_res" >&6; }
25137 if test `eval echo '${'$as_ac_var'}'` = yes; then
25139 cat >>confdefs.h <<_ACEOF
25140 @%:@define CRAY_STACKSEG_END $ac_func
25149 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25150 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25151 if test "${ac_cv_c_stack_direction+set}" = set; then
25152 echo $ECHO_N "(cached) $ECHO_C" >&6
25154 if test "$cross_compiling" = yes; then
25155 ac_cv_c_stack_direction=0
25157 cat >conftest.$ac_ext <<_ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25163 $ac_includes_default
25165 find_stack_direction ()
25167 static char *addr = 0;
25172 return find_stack_direction ();
25175 return (&dummy > addr) ? 1 : -1;
25181 return find_stack_direction () < 0;
25184 rm -f conftest$ac_exeext
25185 if { (ac_try="$ac_link"
25186 case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191 (eval "$ac_link") 2>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25195 { (case "(($ac_try" in
25196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197 *) ac_try_echo=$ac_try;;
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200 (eval "$ac_try") 2>&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; }; then
25204 ac_cv_c_stack_direction=1
25206 echo "$as_me: program exited with status $ac_status" >&5
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25210 ( exit $ac_status )
25211 ac_cv_c_stack_direction=-1
25213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25218 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25219 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25221 cat >>confdefs.h <<_ACEOF
25222 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
25233 ac_header_dirent=no
25234 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25235 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25236 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25237 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25239 echo $ECHO_N "(cached) $ECHO_C" >&6
25241 cat >conftest.$ac_ext <<_ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h. */
25247 #include <sys/types.h>
25259 rm -f conftest.$ac_objext
25260 if { (ac_try="$ac_compile"
25261 case "(($ac_try" in
25262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263 *) ac_try_echo=$ac_try;;
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266 (eval "$ac_compile") 2>conftest.er1
25268 grep -v '^ *+' conftest.er1 >conftest.err
25270 cat conftest.err >&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); } && {
25273 test -z "$ac_c_werror_flag" ||
25274 test ! -s conftest.err
25275 } && test -s conftest.$ac_objext; then
25276 eval "$as_ac_Header=yes"
25278 echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25281 eval "$as_ac_Header=no"
25284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286 ac_res=`eval echo '${'$as_ac_Header'}'`
25287 { echo "$as_me:$LINENO: result: $ac_res" >&5
25288 echo "${ECHO_T}$ac_res" >&6; }
25289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25290 cat >>confdefs.h <<_ACEOF
25291 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25294 ac_header_dirent=$ac_hdr; break
25298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25299 if test $ac_header_dirent = dirent.h; then
25300 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25302 if test "${ac_cv_search_opendir+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 ac_func_search_save_LIBS=$LIBS
25306 cat >conftest.$ac_ext <<_ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25313 /* Override any GCC internal prototype to avoid an error.
25314 Use char because int might match the return type of a GCC
25315 builtin and then its argument prototype would still apply. */
25328 for ac_lib in '' dir; do
25329 if test -z "$ac_lib"; then
25330 ac_res="none required"
25333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25335 rm -f conftest.$ac_objext conftest$ac_exeext
25336 if { (ac_try="$ac_link"
25337 case "(($ac_try" in
25338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339 *) ac_try_echo=$ac_try;;
25341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25342 (eval "$ac_link") 2>conftest.er1
25344 grep -v '^ *+' conftest.er1 >conftest.err
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } && {
25349 test -z "$ac_c_werror_flag" ||
25350 test ! -s conftest.err
25351 } && test -s conftest$ac_exeext &&
25352 $as_test_x conftest$ac_exeext; then
25353 ac_cv_search_opendir=$ac_res
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25363 if test "${ac_cv_search_opendir+set}" = set; then
25367 if test "${ac_cv_search_opendir+set}" = set; then
25370 ac_cv_search_opendir=no
25372 rm conftest.$ac_ext
25373 LIBS=$ac_func_search_save_LIBS
25375 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25377 ac_res=$ac_cv_search_opendir
25378 if test "$ac_res" != no; then
25379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25384 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25386 if test "${ac_cv_search_opendir+set}" = set; then
25387 echo $ECHO_N "(cached) $ECHO_C" >&6
25389 ac_func_search_save_LIBS=$LIBS
25390 cat >conftest.$ac_ext <<_ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h. */
25397 /* Override any GCC internal prototype to avoid an error.
25398 Use char because int might match the return type of a GCC
25399 builtin and then its argument prototype would still apply. */
25412 for ac_lib in '' x; do
25413 if test -z "$ac_lib"; then
25414 ac_res="none required"
25417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25419 rm -f conftest.$ac_objext conftest$ac_exeext
25420 if { (ac_try="$ac_link"
25421 case "(($ac_try" in
25422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423 *) ac_try_echo=$ac_try;;
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426 (eval "$ac_link") 2>conftest.er1
25428 grep -v '^ *+' conftest.er1 >conftest.err
25430 cat conftest.err >&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } && {
25433 test -z "$ac_c_werror_flag" ||
25434 test ! -s conftest.err
25435 } && test -s conftest$ac_exeext &&
25436 $as_test_x conftest$ac_exeext; then
25437 ac_cv_search_opendir=$ac_res
25439 echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25447 if test "${ac_cv_search_opendir+set}" = set; then
25451 if test "${ac_cv_search_opendir+set}" = set; then
25454 ac_cv_search_opendir=no
25456 rm conftest.$ac_ext
25457 LIBS=$ac_func_search_save_LIBS
25459 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25461 ac_res=$ac_cv_search_opendir
25462 if test "$ac_res" != no; then
25463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25469 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25470 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25471 if test "${ac_cv_func_closedir_void+set}" = set; then
25472 echo $ECHO_N "(cached) $ECHO_C" >&6
25474 if test "$cross_compiling" = yes; then
25475 ac_cv_func_closedir_void=yes
25477 cat >conftest.$ac_ext <<_ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h. */
25483 $ac_includes_default
25484 #include <$ac_header_dirent>
25485 #ifndef __cplusplus
25492 return closedir (opendir (".")) != 0;
25497 rm -f conftest$ac_exeext
25498 if { (ac_try="$ac_link"
25499 case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_link") 2>&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25508 { (case "(($ac_try" in
25509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25510 *) ac_try_echo=$ac_try;;
25512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25513 (eval "$ac_try") 2>&5
25515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); }; }; then
25517 ac_cv_func_closedir_void=no
25519 echo "$as_me: program exited with status $ac_status" >&5
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25523 ( exit $ac_status )
25524 ac_cv_func_closedir_void=yes
25526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25531 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25532 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25533 if test $ac_cv_func_closedir_void = yes; then
25535 cat >>confdefs.h <<\_ACEOF
25536 @%:@define CLOSEDIR_VOID 1
25541 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25542 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25543 if test "${ac_cv_lib_error_at_line+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25546 cat >conftest.$ac_ext <<_ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25556 error_at_line (0, 0, "", 0, "an error occurred");
25561 rm -f conftest.$ac_objext conftest$ac_exeext
25562 if { (ac_try="$ac_link"
25563 case "(($ac_try" in
25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565 *) ac_try_echo=$ac_try;;
25567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25568 (eval "$ac_link") 2>conftest.er1
25570 grep -v '^ *+' conftest.er1 >conftest.err
25572 cat conftest.err >&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); } && {
25575 test -z "$ac_c_werror_flag" ||
25576 test ! -s conftest.err
25577 } && test -s conftest$ac_exeext &&
25578 $as_test_x conftest$ac_exeext; then
25579 ac_cv_lib_error_at_line=yes
25581 echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25584 ac_cv_lib_error_at_line=no
25587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25588 conftest$ac_exeext conftest.$ac_ext
25590 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25591 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25592 if test $ac_cv_lib_error_at_line = no; then
25593 case " $LIB@&t@OBJS " in
25594 *" error.$ac_objext "* ) ;;
25595 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25602 for ac_header in vfork.h
25604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25609 echo $ECHO_N "(cached) $ECHO_C" >&6
25611 ac_res=`eval echo '${'$as_ac_Header'}'`
25612 { echo "$as_me:$LINENO: result: $ac_res" >&5
25613 echo "${ECHO_T}$ac_res" >&6; }
25615 # Is the header compilable?
25616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25618 cat >conftest.$ac_ext <<_ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h. */
25624 $ac_includes_default
25625 @%:@include <$ac_header>
25627 rm -f conftest.$ac_objext
25628 if { (ac_try="$ac_compile"
25629 case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634 (eval "$ac_compile") 2>conftest.er1
25636 grep -v '^ *+' conftest.er1 >conftest.err
25638 cat conftest.err >&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); } && {
25641 test -z "$ac_c_werror_flag" ||
25642 test ! -s conftest.err
25643 } && test -s conftest.$ac_objext; then
25644 ac_header_compiler=yes
25646 echo "$as_me: failed program was:" >&5
25647 sed 's/^/| /' conftest.$ac_ext >&5
25649 ac_header_compiler=no
25652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25654 echo "${ECHO_T}$ac_header_compiler" >&6; }
25656 # Is the header present?
25657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25659 cat >conftest.$ac_ext <<_ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h. */
25665 @%:@include <$ac_header>
25667 if { (ac_try="$ac_cpp conftest.$ac_ext"
25668 case "(($ac_try" in
25669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670 *) ac_try_echo=$ac_try;;
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25675 grep -v '^ *+' conftest.er1 >conftest.err
25677 cat conftest.err >&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } >/dev/null && {
25680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25681 test ! -s conftest.err
25683 ac_header_preproc=yes
25685 echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25688 ac_header_preproc=no
25691 rm -f conftest.err conftest.$ac_ext
25692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25693 echo "${ECHO_T}$ac_header_preproc" >&6; }
25695 # So? What about this header?
25696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25702 ac_header_preproc=yes
25705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25718 @%:@@%:@ ------------------------------- @%:@@%:@
25719 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25720 @%:@@%:@ ------------------------------- @%:@@%:@
25722 ) | sed "s/^/$as_me: WARNING: /" >&2
25725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25728 echo $ECHO_N "(cached) $ECHO_C" >&6
25730 eval "$as_ac_Header=\$ac_header_preproc"
25732 ac_res=`eval echo '${'$as_ac_Header'}'`
25733 { echo "$as_me:$LINENO: result: $ac_res" >&5
25734 echo "${ECHO_T}$ac_res" >&6; }
25737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25738 cat >>confdefs.h <<_ACEOF
25739 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25748 for ac_func in fork vfork
25750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
25756 cat >conftest.$ac_ext <<_ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h. */
25762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25764 #define $ac_func innocuous_$ac_func
25766 /* System header to define __stub macros and hopefully few prototypes,
25767 which can conflict with char $ac_func (); below.
25768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25769 <limits.h> exists even on freestanding compilers. */
25772 # include <limits.h>
25774 # include <assert.h>
25779 /* Override any GCC internal prototype to avoid an error.
25780 Use char because int might match the return type of a GCC
25781 builtin and then its argument prototype would still apply. */
25786 /* The GNU C library defines this for functions which it implements
25787 to always fail with ENOSYS. Some functions are actually named
25788 something starting with __ and the normal name is an alias. */
25789 #if defined __stub_$ac_func || defined __stub___$ac_func
25796 return $ac_func ();
25801 rm -f conftest.$ac_objext conftest$ac_exeext
25802 if { (ac_try="$ac_link"
25803 case "(($ac_try" in
25804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25805 *) ac_try_echo=$ac_try;;
25807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25808 (eval "$ac_link") 2>conftest.er1
25810 grep -v '^ *+' conftest.er1 >conftest.err
25812 cat conftest.err >&5
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } && {
25815 test -z "$ac_c_werror_flag" ||
25816 test ! -s conftest.err
25817 } && test -s conftest$ac_exeext &&
25818 $as_test_x conftest$ac_exeext; then
25819 eval "$as_ac_var=yes"
25821 echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25824 eval "$as_ac_var=no"
25827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25828 conftest$ac_exeext conftest.$ac_ext
25830 ac_res=`eval echo '${'$as_ac_var'}'`
25831 { echo "$as_me:$LINENO: result: $ac_res" >&5
25832 echo "${ECHO_T}$ac_res" >&6; }
25833 if test `eval echo '${'$as_ac_var'}'` = yes; then
25834 cat >>confdefs.h <<_ACEOF
25835 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25841 if test "x$ac_cv_func_fork" = xyes; then
25842 { echo "$as_me:$LINENO: checking for working fork" >&5
25843 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25844 if test "${ac_cv_func_fork_works+set}" = set; then
25845 echo $ECHO_N "(cached) $ECHO_C" >&6
25847 if test "$cross_compiling" = yes; then
25848 ac_cv_func_fork_works=cross
25850 cat >conftest.$ac_ext <<_ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h. */
25856 $ac_includes_default
25861 /* By Ruediger Kuhlmann. */
25862 return fork () < 0;
25868 rm -f conftest$ac_exeext
25869 if { (ac_try="$ac_link"
25870 case "(($ac_try" in
25871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25872 *) ac_try_echo=$ac_try;;
25874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25875 (eval "$ac_link") 2>&5
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25879 { (case "(($ac_try" in
25880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881 *) ac_try_echo=$ac_try;;
25883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25884 (eval "$ac_try") 2>&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; }; then
25888 ac_cv_func_fork_works=yes
25890 echo "$as_me: program exited with status $ac_status" >&5
25891 echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25894 ( exit $ac_status )
25895 ac_cv_func_fork_works=no
25897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25902 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25903 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25906 ac_cv_func_fork_works=$ac_cv_func_fork
25908 if test "x$ac_cv_func_fork_works" = xcross; then
25910 *-*-amigaos* | *-*-msdosdjgpp*)
25911 # Override, as these systems have only a dummy fork() stub
25912 ac_cv_func_fork_works=no
25915 ac_cv_func_fork_works=yes
25918 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25919 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25921 ac_cv_func_vfork_works=$ac_cv_func_vfork
25922 if test "x$ac_cv_func_vfork" = xyes; then
25923 { echo "$as_me:$LINENO: checking for working vfork" >&5
25924 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25925 if test "${ac_cv_func_vfork_works+set}" = set; then
25926 echo $ECHO_N "(cached) $ECHO_C" >&6
25928 if test "$cross_compiling" = yes; then
25929 ac_cv_func_vfork_works=cross
25931 cat >conftest.$ac_ext <<_ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h. */
25937 /* Thanks to Paul Eggert for this test. */
25938 $ac_includes_default
25939 #include <sys/wait.h>
25940 #ifdef HAVE_VFORK_H
25941 # include <vfork.h>
25943 /* On some sparc systems, changes by the child to local and incoming
25944 argument registers are propagated back to the parent. The compiler
25945 is told about this with #include <vfork.h>, but some compilers
25946 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25947 static variable whose address is put into a register that is
25948 clobbered by the vfork. */
25951 sparc_address_test (int arg)
25953 sparc_address_test (arg) int arg;
25956 static pid_t child;
25974 pid_t parent = getpid ();
25977 sparc_address_test (0);
25982 /* Here is another test for sparc vfork register problems. This
25983 test uses lots of local variables, at least as many local
25984 variables as main has allocated so far including compiler
25985 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25986 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25987 reuse the register of parent for one of the local variables,
25988 since it will think that parent can't possibly be used any more
25989 in this routine. Assigning to the local variable will thus
25990 munge parent in the parent process. */
25992 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25993 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25994 /* Convince the compiler that p..p7 are live; otherwise, it might
25995 use the same hardware register for all 8 local variables. */
25996 if (p != p1 || p != p2 || p != p3 || p != p4
25997 || p != p5 || p != p6 || p != p7)
26000 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26001 from child file descriptors. If the child closes a descriptor
26002 before it execs or exits, this munges the parent's descriptor
26003 as well. Test for this by closing stdout in the child. */
26004 _exit(close(fileno(stdout)) != 0);
26009 while (wait(&status) != child)
26012 /* Was there some problem with vforking? */
26015 /* Did the child fail? (This shouldn't happen.) */
26018 /* Did the vfork/compiler bug occur? */
26019 || parent != getpid()
26021 /* Did the file descriptor bug occur? */
26022 || fstat(fileno(stdout), &st) != 0
26027 rm -f conftest$ac_exeext
26028 if { (ac_try="$ac_link"
26029 case "(($ac_try" in
26030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031 *) ac_try_echo=$ac_try;;
26033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26034 (eval "$ac_link") 2>&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26038 { (case "(($ac_try" in
26039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040 *) ac_try_echo=$ac_try;;
26042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043 (eval "$ac_try") 2>&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 ac_cv_func_vfork_works=yes
26049 echo "$as_me: program exited with status $ac_status" >&5
26050 echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26053 ( exit $ac_status )
26054 ac_cv_func_vfork_works=no
26056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26061 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26062 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26065 if test "x$ac_cv_func_fork_works" = xcross; then
26066 ac_cv_func_vfork_works=$ac_cv_func_vfork
26067 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26068 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26071 if test "x$ac_cv_func_vfork_works" = xyes; then
26073 cat >>confdefs.h <<\_ACEOF
26074 @%:@define HAVE_WORKING_VFORK 1
26079 cat >>confdefs.h <<\_ACEOF
26080 @%:@define vfork fork
26084 if test "x$ac_cv_func_fork_works" = xyes; then
26086 cat >>confdefs.h <<\_ACEOF
26087 @%:@define HAVE_WORKING_FORK 1
26092 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26093 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26094 if test "${ac_cv_type_getgroups+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26097 if test "$cross_compiling" = yes; then
26098 ac_cv_type_getgroups=cross
26100 cat >conftest.$ac_ext <<_ACEOF
26103 cat confdefs.h >>conftest.$ac_ext
26104 cat >>conftest.$ac_ext <<_ACEOF
26105 /* end confdefs.h. */
26106 /* Thanks to Mike Rendell for this test. */
26107 $ac_includes_default
26110 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26115 gid_t gidset[NGID];
26117 union { gid_t gval; long int lval; } val;
26120 for (i = 0; i < NGID; i++)
26121 gidset[i] = val.gval;
26122 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26124 /* Exit non-zero if getgroups seems to require an array of ints. This
26125 happens when gid_t is short int but getgroups modifies an array
26127 return n > 0 && gidset[n] != val.gval;
26130 rm -f conftest$ac_exeext
26131 if { (ac_try="$ac_link"
26132 case "(($ac_try" in
26133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26134 *) ac_try_echo=$ac_try;;
26136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26137 (eval "$ac_link") 2>&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26141 { (case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_try") 2>&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); }; }; then
26150 ac_cv_type_getgroups=gid_t
26152 echo "$as_me: program exited with status $ac_status" >&5
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26156 ( exit $ac_status )
26157 ac_cv_type_getgroups=int
26159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26163 if test $ac_cv_type_getgroups = cross; then
26164 cat >conftest.$ac_ext <<_ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h. */
26170 #include <unistd.h>
26173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26174 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26175 ac_cv_type_getgroups=gid_t
26177 ac_cv_type_getgroups=int
26183 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26184 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26186 cat >>confdefs.h <<_ACEOF
26187 @%:@define GETGROUPS_T $ac_cv_type_getgroups
26191 { echo "$as_me:$LINENO: checking for getgroups" >&5
26192 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26193 if test "${ac_cv_func_getgroups+set}" = set; then
26194 echo $ECHO_N "(cached) $ECHO_C" >&6
26196 cat >conftest.$ac_ext <<_ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h. */
26202 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26204 #define getgroups innocuous_getgroups
26206 /* System header to define __stub macros and hopefully few prototypes,
26207 which can conflict with char getgroups (); below.
26208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26209 <limits.h> exists even on freestanding compilers. */
26212 # include <limits.h>
26214 # include <assert.h>
26219 /* Override any GCC internal prototype to avoid an error.
26220 Use char because int might match the return type of a GCC
26221 builtin and then its argument prototype would still apply. */
26226 /* The GNU C library defines this for functions which it implements
26227 to always fail with ENOSYS. Some functions are actually named
26228 something starting with __ and the normal name is an alias. */
26229 #if defined __stub_getgroups || defined __stub___getgroups
26236 return getgroups ();
26241 rm -f conftest.$ac_objext conftest$ac_exeext
26242 if { (ac_try="$ac_link"
26243 case "(($ac_try" in
26244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245 *) ac_try_echo=$ac_try;;
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248 (eval "$ac_link") 2>conftest.er1
26250 grep -v '^ *+' conftest.er1 >conftest.err
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } && {
26255 test -z "$ac_c_werror_flag" ||
26256 test ! -s conftest.err
26257 } && test -s conftest$ac_exeext &&
26258 $as_test_x conftest$ac_exeext; then
26259 ac_cv_func_getgroups=yes
26261 echo "$as_me: failed program was:" >&5
26262 sed 's/^/| /' conftest.$ac_ext >&5
26264 ac_cv_func_getgroups=no
26267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26268 conftest$ac_exeext conftest.$ac_ext
26270 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26271 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26274 # If we don't yet have getgroups, see if it's in -lbsd.
26275 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26277 if test $ac_cv_func_getgroups = no; then
26278 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26279 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26280 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26281 echo $ECHO_N "(cached) $ECHO_C" >&6
26283 ac_check_lib_save_LIBS=$LIBS
26285 cat >conftest.$ac_ext <<_ACEOF
26288 cat confdefs.h >>conftest.$ac_ext
26289 cat >>conftest.$ac_ext <<_ACEOF
26290 /* end confdefs.h. */
26292 /* Override any GCC internal prototype to avoid an error.
26293 Use char because int might match the return type of a GCC
26294 builtin and then its argument prototype would still apply. */
26302 return getgroups ();
26307 rm -f conftest.$ac_objext conftest$ac_exeext
26308 if { (ac_try="$ac_link"
26309 case "(($ac_try" in
26310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311 *) ac_try_echo=$ac_try;;
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314 (eval "$ac_link") 2>conftest.er1
26316 grep -v '^ *+' conftest.er1 >conftest.err
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } && {
26321 test -z "$ac_c_werror_flag" ||
26322 test ! -s conftest.err
26323 } && test -s conftest$ac_exeext &&
26324 $as_test_x conftest$ac_exeext; then
26325 ac_cv_lib_bsd_getgroups=yes
26327 echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26330 ac_cv_lib_bsd_getgroups=no
26333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26334 conftest$ac_exeext conftest.$ac_ext
26335 LIBS=$ac_check_lib_save_LIBS
26337 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26338 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26339 if test $ac_cv_lib_bsd_getgroups = yes; then
26340 GETGROUPS_LIB=-lbsd
26345 # Run the program to test the functionality of the system-supplied
26346 # getgroups function only if there is such a function.
26347 if test $ac_cv_func_getgroups = yes; then
26348 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26349 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26350 if test "${ac_cv_func_getgroups_works+set}" = set; then
26351 echo $ECHO_N "(cached) $ECHO_C" >&6
26353 if test "$cross_compiling" = yes; then
26354 ac_cv_func_getgroups_works=no
26356 cat >conftest.$ac_ext <<_ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h. */
26362 $ac_includes_default
26366 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26367 return getgroups (0, 0) == -1;
26372 rm -f conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376 *) ac_try_echo=$ac_try;;
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379 (eval "$ac_link") 2>&5
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26383 { (case "(($ac_try" in
26384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385 *) ac_try_echo=$ac_try;;
26387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26388 (eval "$ac_try") 2>&5
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); }; }; then
26392 ac_cv_func_getgroups_works=yes
26394 echo "$as_me: program exited with status $ac_status" >&5
26395 echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26398 ( exit $ac_status )
26399 ac_cv_func_getgroups_works=no
26401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26407 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26408 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26409 if test $ac_cv_func_getgroups_works = yes; then
26411 cat >>confdefs.h <<\_ACEOF
26412 @%:@define HAVE_GETGROUPS 1
26419 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26420 # -lseq on Dynix/PTX, -lgen on Unixware.
26421 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26422 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26423 if test "${ac_cv_search_getmntent+set}" = set; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 ac_func_search_save_LIBS=$LIBS
26427 cat >conftest.$ac_ext <<_ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h. */
26434 /* Override any GCC internal prototype to avoid an error.
26435 Use char because int might match the return type of a GCC
26436 builtin and then its argument prototype would still apply. */
26444 return getmntent ();
26449 for ac_lib in '' sun seq gen; do
26450 if test -z "$ac_lib"; then
26451 ac_res="none required"
26454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26456 rm -f conftest.$ac_objext conftest$ac_exeext
26457 if { (ac_try="$ac_link"
26458 case "(($ac_try" in
26459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460 *) ac_try_echo=$ac_try;;
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463 (eval "$ac_link") 2>conftest.er1
26465 grep -v '^ *+' conftest.er1 >conftest.err
26467 cat conftest.err >&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); } && {
26470 test -z "$ac_c_werror_flag" ||
26471 test ! -s conftest.err
26472 } && test -s conftest$ac_exeext &&
26473 $as_test_x conftest$ac_exeext; then
26474 ac_cv_search_getmntent=$ac_res
26476 echo "$as_me: failed program was:" >&5
26477 sed 's/^/| /' conftest.$ac_ext >&5
26482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26484 if test "${ac_cv_search_getmntent+set}" = set; then
26488 if test "${ac_cv_search_getmntent+set}" = set; then
26491 ac_cv_search_getmntent=no
26493 rm conftest.$ac_ext
26494 LIBS=$ac_func_search_save_LIBS
26496 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26497 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26498 ac_res=$ac_cv_search_getmntent
26499 if test "$ac_res" != no; then
26500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26501 ac_cv_func_getmntent=yes
26503 cat >>confdefs.h <<\_ACEOF
26504 @%:@define HAVE_GETMNTENT 1
26508 ac_cv_func_getmntent=no
26512 if test $ac_cv_c_compiler_gnu = yes; then
26513 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26514 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26515 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26518 ac_pattern="Autoconf.*'x'"
26519 cat >conftest.$ac_ext <<_ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26529 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26530 ac_cv_prog_gcc_traditional=yes
26532 ac_cv_prog_gcc_traditional=no
26537 if test $ac_cv_prog_gcc_traditional = no; then
26538 cat >conftest.$ac_ext <<_ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h. */
26544 #include <termio.h>
26547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26548 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26549 ac_cv_prog_gcc_traditional=yes
26555 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26556 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26557 if test $ac_cv_prog_gcc_traditional = yes; then
26558 CC="$CC -traditional"
26562 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26563 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26564 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26567 rm -f conftest.sym conftest.file
26568 echo >conftest.file
26569 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26570 if test "$cross_compiling" = yes; then
26571 ac_cv_func_lstat_dereferences_slashed_symlink=no
26573 cat >conftest.$ac_ext <<_ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h. */
26579 $ac_includes_default
26584 /* Linux will dereference the symlink and fail.
26585 That is better in the sense that it means we will not
26586 have to compile and use the lstat wrapper. */
26587 return lstat ("conftest.sym/", &sbuf) == 0;
26592 rm -f conftest$ac_exeext
26593 if { (ac_try="$ac_link"
26594 case "(($ac_try" in
26595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596 *) ac_try_echo=$ac_try;;
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599 (eval "$ac_link") 2>&5
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26603 { (case "(($ac_try" in
26604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26605 *) ac_try_echo=$ac_try;;
26607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26608 (eval "$ac_try") 2>&5
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; }; then
26612 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26614 echo "$as_me: program exited with status $ac_status" >&5
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 ( exit $ac_status )
26619 ac_cv_func_lstat_dereferences_slashed_symlink=no
26621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26626 # If the `ln -s' command failed, then we probably don't even
26627 # have an lstat function.
26628 ac_cv_func_lstat_dereferences_slashed_symlink=no
26630 rm -f conftest.sym conftest.file
26633 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26634 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26636 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26638 cat >>confdefs.h <<_ACEOF
26639 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26643 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26644 case " $LIB@&t@OBJS " in
26645 *" lstat.$ac_objext "* ) ;;
26646 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26652 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26653 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26654 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26655 echo $ECHO_N "(cached) $ECHO_C" >&6
26657 if test "$cross_compiling" = yes; then
26658 ac_cv_func_lstat_empty_string_bug=yes
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 $ac_includes_default
26671 return lstat ("", &sbuf) == 0;
26676 rm -f conftest$ac_exeext
26677 if { (ac_try="$ac_link"
26678 case "(($ac_try" in
26679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680 *) ac_try_echo=$ac_try;;
26682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683 (eval "$ac_link") 2>&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26687 { (case "(($ac_try" in
26688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26689 *) ac_try_echo=$ac_try;;
26691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26692 (eval "$ac_try") 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ac_cv_func_lstat_empty_string_bug=no
26698 echo "$as_me: program exited with status $ac_status" >&5
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ( exit $ac_status )
26703 ac_cv_func_lstat_empty_string_bug=yes
26705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26710 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26711 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26712 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26713 case " $LIB@&t@OBJS " in
26714 *" lstat.$ac_objext "* ) ;;
26715 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26720 cat >>confdefs.h <<_ACEOF
26721 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26726 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26727 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26728 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26729 echo $ECHO_N "(cached) $ECHO_C" >&6
26731 rm -f conftest.sym conftest.file
26732 echo >conftest.file
26733 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26734 if test "$cross_compiling" = yes; then
26735 ac_cv_func_lstat_dereferences_slashed_symlink=no
26737 cat >conftest.$ac_ext <<_ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h. */
26743 $ac_includes_default
26748 /* Linux will dereference the symlink and fail.
26749 That is better in the sense that it means we will not
26750 have to compile and use the lstat wrapper. */
26751 return lstat ("conftest.sym/", &sbuf) == 0;
26756 rm -f conftest$ac_exeext
26757 if { (ac_try="$ac_link"
26758 case "(($ac_try" in
26759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760 *) ac_try_echo=$ac_try;;
26762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26763 (eval "$ac_link") 2>&5
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; }; then
26776 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26778 echo "$as_me: program exited with status $ac_status" >&5
26779 echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26782 ( exit $ac_status )
26783 ac_cv_func_lstat_dereferences_slashed_symlink=no
26785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26790 # If the `ln -s' command failed, then we probably don't even
26791 # have an lstat function.
26792 ac_cv_func_lstat_dereferences_slashed_symlink=no
26794 rm -f conftest.sym conftest.file
26797 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26798 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26800 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26802 cat >>confdefs.h <<_ACEOF
26803 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26807 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26808 case " $LIB@&t@OBJS " in
26809 *" lstat.$ac_objext "* ) ;;
26810 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26816 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26817 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26818 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26821 cat >conftest.$ac_ext <<_ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h. */
26827 @%:@include <sys/types.h>
26831 return makedev(0, 0);
26836 rm -f conftest.$ac_objext conftest$ac_exeext
26837 if { (ac_try="$ac_link"
26838 case "(($ac_try" in
26839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_link") 2>conftest.er1
26845 grep -v '^ *+' conftest.er1 >conftest.err
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } && {
26850 test -z "$ac_c_werror_flag" ||
26851 test ! -s conftest.err
26852 } && test -s conftest$ac_exeext &&
26853 $as_test_x conftest$ac_exeext; then
26854 ac_cv_header_sys_types_h_makedev=yes
26856 echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26859 ac_cv_header_sys_types_h_makedev=no
26862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26863 conftest$ac_exeext conftest.$ac_ext
26866 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26867 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26869 if test $ac_cv_header_sys_types_h_makedev = no; then
26870 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26871 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26872 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26873 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26874 echo $ECHO_N "(cached) $ECHO_C" >&6
26876 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26877 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26879 # Is the header compilable?
26880 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26881 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26882 cat >conftest.$ac_ext <<_ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26888 $ac_includes_default
26889 @%:@include <sys/mkdev.h>
26891 rm -f conftest.$ac_objext
26892 if { (ac_try="$ac_compile"
26893 case "(($ac_try" in
26894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26895 *) ac_try_echo=$ac_try;;
26897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26898 (eval "$ac_compile") 2>conftest.er1
26900 grep -v '^ *+' conftest.er1 >conftest.err
26902 cat conftest.err >&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } && {
26905 test -z "$ac_c_werror_flag" ||
26906 test ! -s conftest.err
26907 } && test -s conftest.$ac_objext; then
26908 ac_header_compiler=yes
26910 echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26913 ac_header_compiler=no
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26918 echo "${ECHO_T}$ac_header_compiler" >&6; }
26920 # Is the header present?
26921 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26922 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26929 @%:@include <sys/mkdev.h>
26931 if { (ac_try="$ac_cpp conftest.$ac_ext"
26932 case "(($ac_try" in
26933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26934 *) ac_try_echo=$ac_try;;
26936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26939 grep -v '^ *+' conftest.er1 >conftest.err
26941 cat conftest.err >&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); } >/dev/null && {
26944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26945 test ! -s conftest.err
26947 ac_header_preproc=yes
26949 echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26952 ac_header_preproc=no
26955 rm -f conftest.err conftest.$ac_ext
26956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26957 echo "${ECHO_T}$ac_header_preproc" >&6; }
26959 # So? What about this header?
26960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26962 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26963 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26965 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26966 ac_header_preproc=yes
26969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26970 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26971 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26972 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26973 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26974 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26975 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26976 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26977 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26978 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26979 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26980 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26982 @%:@@%:@ ------------------------------- @%:@@%:@
26983 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26984 @%:@@%:@ ------------------------------- @%:@@%:@
26986 ) | sed "s/^/$as_me: WARNING: /" >&2
26989 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26990 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26991 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26992 echo $ECHO_N "(cached) $ECHO_C" >&6
26994 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26996 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26997 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27000 if test $ac_cv_header_sys_mkdev_h = yes; then
27002 cat >>confdefs.h <<\_ACEOF
27003 @%:@define MAJOR_IN_MKDEV 1
27010 if test $ac_cv_header_sys_mkdev_h = no; then
27011 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27012 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27013 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27014 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27015 echo $ECHO_N "(cached) $ECHO_C" >&6
27017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27018 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27020 # Is the header compilable?
27021 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27022 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27023 cat >conftest.$ac_ext <<_ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h. */
27029 $ac_includes_default
27030 @%:@include <sys/sysmacros.h>
27032 rm -f conftest.$ac_objext
27033 if { (ac_try="$ac_compile"
27034 case "(($ac_try" in
27035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27036 *) ac_try_echo=$ac_try;;
27038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27039 (eval "$ac_compile") 2>conftest.er1
27041 grep -v '^ *+' conftest.er1 >conftest.err
27043 cat conftest.err >&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } && {
27046 test -z "$ac_c_werror_flag" ||
27047 test ! -s conftest.err
27048 } && test -s conftest.$ac_objext; then
27049 ac_header_compiler=yes
27051 echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27054 ac_header_compiler=no
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27059 echo "${ECHO_T}$ac_header_compiler" >&6; }
27061 # Is the header present?
27062 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27063 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27064 cat >conftest.$ac_ext <<_ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h. */
27070 @%:@include <sys/sysmacros.h>
27072 if { (ac_try="$ac_cpp conftest.$ac_ext"
27073 case "(($ac_try" in
27074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075 *) ac_try_echo=$ac_try;;
27077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27080 grep -v '^ *+' conftest.er1 >conftest.err
27082 cat conftest.err >&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } >/dev/null && {
27085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27086 test ! -s conftest.err
27088 ac_header_preproc=yes
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27093 ac_header_preproc=no
27096 rm -f conftest.err conftest.$ac_ext
27097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27098 echo "${ECHO_T}$ac_header_preproc" >&6; }
27100 # So? What about this header?
27101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27103 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27104 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27106 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27107 ac_header_preproc=yes
27110 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27111 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27112 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27113 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27114 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27115 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27116 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27117 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27118 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27119 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27120 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27121 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27123 @%:@@%:@ ------------------------------- @%:@@%:@
27124 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27125 @%:@@%:@ ------------------------------- @%:@@%:@
27127 ) | sed "s/^/$as_me: WARNING: /" >&2
27130 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27131 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27132 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27133 echo $ECHO_N "(cached) $ECHO_C" >&6
27135 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27137 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27138 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27141 if test $ac_cv_header_sys_sysmacros_h = yes; then
27143 cat >>confdefs.h <<\_ACEOF
27144 @%:@define MAJOR_IN_SYSMACROS 1
27154 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27155 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27156 if test "${ac_cv_func_memcmp_working+set}" = set; then
27157 echo $ECHO_N "(cached) $ECHO_C" >&6
27159 if test "$cross_compiling" = yes; then
27160 ac_cv_func_memcmp_working=no
27162 cat >conftest.$ac_ext <<_ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h. */
27168 $ac_includes_default
27173 /* Some versions of memcmp are not 8-bit clean. */
27174 char c0 = '\100', c1 = '\200', c2 = '\201';
27175 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27178 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27179 or more and with at least one buffer not starting on a 4-byte boundary.
27180 William Lewis provided this test program. */
27185 for (i = 0; i < 4; i++)
27189 strcpy (a, "--------01111111");
27190 strcpy (b, "--------10000000");
27191 if (memcmp (a, b, 16) >= 0)
27201 rm -f conftest$ac_exeext
27202 if { (ac_try="$ac_link"
27203 case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_link") 2>&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27212 { (case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_try") 2>&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; }; then
27221 ac_cv_func_memcmp_working=yes
27223 echo "$as_me: program exited with status $ac_status" >&5
27224 echo "$as_me: failed program was:" >&5
27225 sed 's/^/| /' conftest.$ac_ext >&5
27227 ( exit $ac_status )
27228 ac_cv_func_memcmp_working=no
27230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27235 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27236 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27237 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27238 *" memcmp.$ac_objext "* ) ;;
27239 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27247 for ac_header in sys/select.h sys/socket.h
27249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27256 ac_res=`eval echo '${'$as_ac_Header'}'`
27257 { echo "$as_me:$LINENO: result: $ac_res" >&5
27258 echo "${ECHO_T}$ac_res" >&6; }
27260 # Is the header compilable?
27261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27263 cat >conftest.$ac_ext <<_ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h. */
27269 $ac_includes_default
27270 @%:@include <$ac_header>
27272 rm -f conftest.$ac_objext
27273 if { (ac_try="$ac_compile"
27274 case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_compile") 2>conftest.er1
27281 grep -v '^ *+' conftest.er1 >conftest.err
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } && {
27286 test -z "$ac_c_werror_flag" ||
27287 test ! -s conftest.err
27288 } && test -s conftest.$ac_objext; then
27289 ac_header_compiler=yes
27291 echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27294 ac_header_compiler=no
27297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27299 echo "${ECHO_T}$ac_header_compiler" >&6; }
27301 # Is the header present?
27302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27304 cat >conftest.$ac_ext <<_ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h. */
27310 @%:@include <$ac_header>
27312 if { (ac_try="$ac_cpp conftest.$ac_ext"
27313 case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27320 grep -v '^ *+' conftest.er1 >conftest.err
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } >/dev/null && {
27325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27326 test ! -s conftest.err
27328 ac_header_preproc=yes
27330 echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27333 ac_header_preproc=no
27336 rm -f conftest.err conftest.$ac_ext
27337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27338 echo "${ECHO_T}$ac_header_preproc" >&6; }
27340 # So? What about this header?
27341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27347 ac_header_preproc=yes
27350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27363 @%:@@%:@ ------------------------------- @%:@@%:@
27364 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27365 @%:@@%:@ ------------------------------- @%:@@%:@
27367 ) | sed "s/^/$as_me: WARNING: /" >&2
27370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27373 echo $ECHO_N "(cached) $ECHO_C" >&6
27375 eval "$as_ac_Header=\$ac_header_preproc"
27377 ac_res=`eval echo '${'$as_ac_Header'}'`
27378 { echo "$as_me:$LINENO: result: $ac_res" >&5
27379 echo "${ECHO_T}$ac_res" >&6; }
27382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27383 cat >>confdefs.h <<_ACEOF
27384 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27391 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27392 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27393 if test "${ac_cv_func_select_args+set}" = set; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
27396 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27397 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27398 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27399 cat >conftest.$ac_ext <<_ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h. */
27405 $ac_includes_default
27406 #ifdef HAVE_SYS_SELECT_H
27407 # include <sys/select.h>
27409 #ifdef HAVE_SYS_SOCKET_H
27410 # include <sys/socket.h>
27416 extern int select ($ac_arg1,
27417 $ac_arg234, $ac_arg234, $ac_arg234,
27423 rm -f conftest.$ac_objext
27424 if { (ac_try="$ac_compile"
27425 case "(($ac_try" in
27426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427 *) ac_try_echo=$ac_try;;
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430 (eval "$ac_compile") 2>conftest.er1
27432 grep -v '^ *+' conftest.er1 >conftest.err
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } && {
27437 test -z "$ac_c_werror_flag" ||
27438 test ! -s conftest.err
27439 } && test -s conftest.$ac_objext; then
27440 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27452 # Provide a safe default value.
27453 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27456 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27457 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27458 ac_save_IFS=$IFS; IFS=','
27459 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27463 cat >>confdefs.h <<_ACEOF
27464 @%:@define SELECT_TYPE_ARG1 $1
27468 cat >>confdefs.h <<_ACEOF
27469 @%:@define SELECT_TYPE_ARG234 ($2)
27473 cat >>confdefs.h <<_ACEOF
27474 @%:@define SELECT_TYPE_ARG5 ($3)
27479 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27480 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27481 if test "${ac_cv_type_signal+set}" = set; then
27482 echo $ECHO_N "(cached) $ECHO_C" >&6
27484 cat >conftest.$ac_ext <<_ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h. */
27490 #include <sys/types.h>
27491 #include <signal.h>
27496 return *(signal (0, 0)) (0) == 1;
27501 rm -f conftest.$ac_objext
27502 if { (ac_try="$ac_compile"
27503 case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_compile") 2>conftest.er1
27510 grep -v '^ *+' conftest.er1 >conftest.err
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } && {
27515 test -z "$ac_c_werror_flag" ||
27516 test ! -s conftest.err
27517 } && test -s conftest.$ac_objext; then
27518 ac_cv_type_signal=int
27520 echo "$as_me: failed program was:" >&5
27521 sed 's/^/| /' conftest.$ac_ext >&5
27523 ac_cv_type_signal=void
27526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27528 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27529 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27531 cat >>confdefs.h <<_ACEOF
27532 @%:@define RETSIGTYPE $ac_cv_type_signal
27536 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27537 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27538 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27541 if test "$cross_compiling" = yes; then
27542 ac_cv_func_stat_empty_string_bug=yes
27544 cat >conftest.$ac_ext <<_ACEOF
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h. */
27550 $ac_includes_default
27555 return stat ("", &sbuf) == 0;
27560 rm -f conftest$ac_exeext
27561 if { (ac_try="$ac_link"
27562 case "(($ac_try" in
27563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564 *) ac_try_echo=$ac_try;;
27566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567 (eval "$ac_link") 2>&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; }; then
27580 ac_cv_func_stat_empty_string_bug=no
27582 echo "$as_me: program exited with status $ac_status" >&5
27583 echo "$as_me: failed program was:" >&5
27584 sed 's/^/| /' conftest.$ac_ext >&5
27586 ( exit $ac_status )
27587 ac_cv_func_stat_empty_string_bug=yes
27589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27594 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27595 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27596 if test $ac_cv_func_stat_empty_string_bug = yes; then
27597 case " $LIB@&t@OBJS " in
27598 *" stat.$ac_objext "* ) ;;
27599 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27604 cat >>confdefs.h <<_ACEOF
27605 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27611 for ac_func in vprintf
27613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27619 cat >conftest.$ac_ext <<_ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h. */
27625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27627 #define $ac_func innocuous_$ac_func
27629 /* System header to define __stub macros and hopefully few prototypes,
27630 which can conflict with char $ac_func (); below.
27631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27632 <limits.h> exists even on freestanding compilers. */
27635 # include <limits.h>
27637 # include <assert.h>
27642 /* Override any GCC internal prototype to avoid an error.
27643 Use char because int might match the return type of a GCC
27644 builtin and then its argument prototype would still apply. */
27649 /* The GNU C library defines this for functions which it implements
27650 to always fail with ENOSYS. Some functions are actually named
27651 something starting with __ and the normal name is an alias. */
27652 #if defined __stub_$ac_func || defined __stub___$ac_func
27659 return $ac_func ();
27664 rm -f conftest.$ac_objext conftest$ac_exeext
27665 if { (ac_try="$ac_link"
27666 case "(($ac_try" in
27667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668 *) ac_try_echo=$ac_try;;
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671 (eval "$ac_link") 2>conftest.er1
27673 grep -v '^ *+' conftest.er1 >conftest.err
27675 cat conftest.err >&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); } && {
27678 test -z "$ac_c_werror_flag" ||
27679 test ! -s conftest.err
27680 } && test -s conftest$ac_exeext &&
27681 $as_test_x conftest$ac_exeext; then
27682 eval "$as_ac_var=yes"
27684 echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27687 eval "$as_ac_var=no"
27690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27691 conftest$ac_exeext conftest.$ac_ext
27693 ac_res=`eval echo '${'$as_ac_var'}'`
27694 { echo "$as_me:$LINENO: result: $ac_res" >&5
27695 echo "${ECHO_T}$ac_res" >&6; }
27696 if test `eval echo '${'$as_ac_var'}'` = yes; then
27697 cat >>confdefs.h <<_ACEOF
27698 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27701 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27702 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27703 if test "${ac_cv_func__doprnt+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27706 cat >conftest.$ac_ext <<_ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27712 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27714 #define _doprnt innocuous__doprnt
27716 /* System header to define __stub macros and hopefully few prototypes,
27717 which can conflict with char _doprnt (); below.
27718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27719 <limits.h> exists even on freestanding compilers. */
27722 # include <limits.h>
27724 # include <assert.h>
27729 /* Override any GCC internal prototype to avoid an error.
27730 Use char because int might match the return type of a GCC
27731 builtin and then its argument prototype would still apply. */
27736 /* The GNU C library defines this for functions which it implements
27737 to always fail with ENOSYS. Some functions are actually named
27738 something starting with __ and the normal name is an alias. */
27739 #if defined __stub__doprnt || defined __stub____doprnt
27751 rm -f conftest.$ac_objext conftest$ac_exeext
27752 if { (ac_try="$ac_link"
27753 case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_link") 2>conftest.er1
27760 grep -v '^ *+' conftest.er1 >conftest.err
27762 cat conftest.err >&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } && {
27765 test -z "$ac_c_werror_flag" ||
27766 test ! -s conftest.err
27767 } && test -s conftest$ac_exeext &&
27768 $as_test_x conftest$ac_exeext; then
27769 ac_cv_func__doprnt=yes
27771 echo "$as_me: failed program was:" >&5
27772 sed 's/^/| /' conftest.$ac_ext >&5
27774 ac_cv_func__doprnt=no
27777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27778 conftest$ac_exeext conftest.$ac_ext
27780 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27781 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27782 if test $ac_cv_func__doprnt = yes; then
27784 cat >>confdefs.h <<\_ACEOF
27785 @%:@define HAVE_DOPRNT 1
27823 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27824 gethostbyaddr gethostbyname gethostname getmntent \
27825 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27826 realpath rmdir select socket strcasecmp strchr strdup \
27827 strerror strrchr strtol strtoul sigprocmask
27829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27835 cat >conftest.$ac_ext <<_ACEOF
27838 cat confdefs.h >>conftest.$ac_ext
27839 cat >>conftest.$ac_ext <<_ACEOF
27840 /* end confdefs.h. */
27841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27843 #define $ac_func innocuous_$ac_func
27845 /* System header to define __stub macros and hopefully few prototypes,
27846 which can conflict with char $ac_func (); below.
27847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27848 <limits.h> exists even on freestanding compilers. */
27851 # include <limits.h>
27853 # include <assert.h>
27858 /* Override any GCC internal prototype to avoid an error.
27859 Use char because int might match the return type of a GCC
27860 builtin and then its argument prototype would still apply. */
27865 /* The GNU C library defines this for functions which it implements
27866 to always fail with ENOSYS. Some functions are actually named
27867 something starting with __ and the normal name is an alias. */
27868 #if defined __stub_$ac_func || defined __stub___$ac_func
27875 return $ac_func ();
27880 rm -f conftest.$ac_objext conftest$ac_exeext
27881 if { (ac_try="$ac_link"
27882 case "(($ac_try" in
27883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27884 *) ac_try_echo=$ac_try;;
27886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27887 (eval "$ac_link") 2>conftest.er1
27889 grep -v '^ *+' conftest.er1 >conftest.err
27891 cat conftest.err >&5
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); } && {
27894 test -z "$ac_c_werror_flag" ||
27895 test ! -s conftest.err
27896 } && test -s conftest$ac_exeext &&
27897 $as_test_x conftest$ac_exeext; then
27898 eval "$as_ac_var=yes"
27900 echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27903 eval "$as_ac_var=no"
27906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27907 conftest$ac_exeext conftest.$ac_ext
27909 ac_res=`eval echo '${'$as_ac_var'}'`
27910 { echo "$as_me:$LINENO: result: $ac_res" >&5
27911 echo "${ECHO_T}$ac_res" >&6; }
27912 if test `eval echo '${'$as_ac_var'}'` = yes; then
27913 cat >>confdefs.h <<_ACEOF
27914 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27922 { echo "$as_me:$LINENO: checking for short" >&5
27923 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27924 if test "${ac_cv_type_short+set}" = set; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 cat >conftest.$ac_ext <<_ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 $ac_includes_default
27934 typedef short ac__type_new_;
27938 if ((ac__type_new_ *) 0)
27940 if (sizeof (ac__type_new_))
27946 rm -f conftest.$ac_objext
27947 if { (ac_try="$ac_compile"
27948 case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_compile") 2>conftest.er1
27955 grep -v '^ *+' conftest.er1 >conftest.err
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } && {
27960 test -z "$ac_c_werror_flag" ||
27961 test ! -s conftest.err
27962 } && test -s conftest.$ac_objext; then
27963 ac_cv_type_short=yes
27965 echo "$as_me: failed program was:" >&5
27966 sed 's/^/| /' conftest.$ac_ext >&5
27968 ac_cv_type_short=no
27971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27973 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27974 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27976 # The cast to long int works around a bug in the HP C Compiler
27977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27979 # This bug is HP SR number 8606223364.
27980 { echo "$as_me:$LINENO: checking size of short" >&5
27981 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27982 if test "${ac_cv_sizeof_short+set}" = set; then
27983 echo $ECHO_N "(cached) $ECHO_C" >&6
27985 if test "$cross_compiling" = yes; then
27986 # Depending upon the size, compute the lo and hi bounds.
27987 cat >conftest.$ac_ext <<_ACEOF
27990 cat confdefs.h >>conftest.$ac_ext
27991 cat >>conftest.$ac_ext <<_ACEOF
27992 /* end confdefs.h. */
27993 $ac_includes_default
27994 typedef short ac__type_sizeof_;
27998 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27999 test_array @<:@0@:>@ = 0
28005 rm -f conftest.$ac_objext
28006 if { (ac_try="$ac_compile"
28007 case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_compile") 2>conftest.er1
28014 grep -v '^ *+' conftest.er1 >conftest.err
28016 cat conftest.err >&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } && {
28019 test -z "$ac_c_werror_flag" ||
28020 test ! -s conftest.err
28021 } && test -s conftest.$ac_objext; then
28024 cat >conftest.$ac_ext <<_ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h. */
28030 $ac_includes_default
28031 typedef short ac__type_sizeof_;
28035 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28036 test_array @<:@0@:>@ = 0
28042 rm -f conftest.$ac_objext
28043 if { (ac_try="$ac_compile"
28044 case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_compile") 2>conftest.er1
28051 grep -v '^ *+' conftest.er1 >conftest.err
28053 cat conftest.err >&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } && {
28056 test -z "$ac_c_werror_flag" ||
28057 test ! -s conftest.err
28058 } && test -s conftest.$ac_objext; then
28059 ac_hi=$ac_mid; break
28061 echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28064 ac_lo=`expr $ac_mid + 1`
28065 if test $ac_lo -le $ac_mid; then
28069 ac_mid=`expr 2 '*' $ac_mid + 1`
28072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28075 echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28078 cat >conftest.$ac_ext <<_ACEOF
28081 cat confdefs.h >>conftest.$ac_ext
28082 cat >>conftest.$ac_ext <<_ACEOF
28083 /* end confdefs.h. */
28084 $ac_includes_default
28085 typedef short ac__type_sizeof_;
28089 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28090 test_array @<:@0@:>@ = 0
28096 rm -f conftest.$ac_objext
28097 if { (ac_try="$ac_compile"
28098 case "(($ac_try" in
28099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100 *) ac_try_echo=$ac_try;;
28102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28103 (eval "$ac_compile") 2>conftest.er1
28105 grep -v '^ *+' conftest.er1 >conftest.err
28107 cat conftest.err >&5
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); } && {
28110 test -z "$ac_c_werror_flag" ||
28111 test ! -s conftest.err
28112 } && test -s conftest.$ac_objext; then
28115 cat >conftest.$ac_ext <<_ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h. */
28121 $ac_includes_default
28122 typedef short ac__type_sizeof_;
28126 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28127 test_array @<:@0@:>@ = 0
28133 rm -f conftest.$ac_objext
28134 if { (ac_try="$ac_compile"
28135 case "(($ac_try" in
28136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137 *) ac_try_echo=$ac_try;;
28139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140 (eval "$ac_compile") 2>conftest.er1
28142 grep -v '^ *+' conftest.er1 >conftest.err
28144 cat conftest.err >&5
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } && {
28147 test -z "$ac_c_werror_flag" ||
28148 test ! -s conftest.err
28149 } && test -s conftest.$ac_objext; then
28150 ac_lo=$ac_mid; break
28152 echo "$as_me: failed program was:" >&5
28153 sed 's/^/| /' conftest.$ac_ext >&5
28155 ac_hi=`expr '(' $ac_mid ')' - 1`
28156 if test $ac_mid -le $ac_hi; then
28160 ac_mid=`expr 2 '*' $ac_mid`
28163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28166 echo "$as_me: failed program was:" >&5
28167 sed 's/^/| /' conftest.$ac_ext >&5
28172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176 # Binary search between lo and hi bounds.
28177 while test "x$ac_lo" != "x$ac_hi"; do
28178 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28179 cat >conftest.$ac_ext <<_ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28185 $ac_includes_default
28186 typedef short ac__type_sizeof_;
28190 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28191 test_array @<:@0@:>@ = 0
28197 rm -f conftest.$ac_objext
28198 if { (ac_try="$ac_compile"
28199 case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_compile") 2>conftest.er1
28206 grep -v '^ *+' conftest.er1 >conftest.err
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } && {
28211 test -z "$ac_c_werror_flag" ||
28212 test ! -s conftest.err
28213 } && test -s conftest.$ac_objext; then
28216 echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219 ac_lo=`expr '(' $ac_mid ')' + 1`
28222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28225 ?*) ac_cv_sizeof_short=$ac_lo;;
28226 '') if test "$ac_cv_type_short" = yes; then
28227 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28228 See \`config.log' for more details." >&5
28229 echo "$as_me: error: cannot compute sizeof (short)
28230 See \`config.log' for more details." >&2;}
28231 { (exit 77); exit 77; }; }
28233 ac_cv_sizeof_short=0
28237 cat >conftest.$ac_ext <<_ACEOF
28240 cat confdefs.h >>conftest.$ac_ext
28241 cat >>conftest.$ac_ext <<_ACEOF
28242 /* end confdefs.h. */
28243 $ac_includes_default
28244 typedef short ac__type_sizeof_;
28245 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28246 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28247 @%:@include <stdio.h>
28248 @%:@include <stdlib.h>
28253 FILE *f = fopen ("conftest.val", "w");
28256 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28258 long int i = longval ();
28259 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28261 fprintf (f, "%ld\n", i);
28265 unsigned long int i = ulongval ();
28266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28268 fprintf (f, "%lu\n", i);
28270 return ferror (f) || fclose (f) != 0;
28276 rm -f conftest$ac_exeext
28277 if { (ac_try="$ac_link"
28278 case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_link") 2>&5
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28287 { (case "(($ac_try" in
28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_try") 2>&5
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; }; then
28296 ac_cv_sizeof_short=`cat conftest.val`
28298 echo "$as_me: program exited with status $ac_status" >&5
28299 echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28302 ( exit $ac_status )
28303 if test "$ac_cv_type_short" = yes; then
28304 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28305 See \`config.log' for more details." >&5
28306 echo "$as_me: error: cannot compute sizeof (short)
28307 See \`config.log' for more details." >&2;}
28308 { (exit 77); exit 77; }; }
28310 ac_cv_sizeof_short=0
28313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28317 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28318 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28322 cat >>confdefs.h <<_ACEOF
28323 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28327 { echo "$as_me:$LINENO: checking for int" >&5
28328 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28329 if test "${ac_cv_type_int+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28332 cat >conftest.$ac_ext <<_ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h. */
28338 $ac_includes_default
28339 typedef int ac__type_new_;
28343 if ((ac__type_new_ *) 0)
28345 if (sizeof (ac__type_new_))
28351 rm -f conftest.$ac_objext
28352 if { (ac_try="$ac_compile"
28353 case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_compile") 2>conftest.er1
28360 grep -v '^ *+' conftest.er1 >conftest.err
28362 cat conftest.err >&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } && {
28365 test -z "$ac_c_werror_flag" ||
28366 test ! -s conftest.err
28367 } && test -s conftest.$ac_objext; then
28370 echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28378 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28379 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28381 # The cast to long int works around a bug in the HP C Compiler
28382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28384 # This bug is HP SR number 8606223364.
28385 { echo "$as_me:$LINENO: checking size of int" >&5
28386 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28387 if test "${ac_cv_sizeof_int+set}" = set; then
28388 echo $ECHO_N "(cached) $ECHO_C" >&6
28390 if test "$cross_compiling" = yes; then
28391 # Depending upon the size, compute the lo and hi bounds.
28392 cat >conftest.$ac_ext <<_ACEOF
28395 cat confdefs.h >>conftest.$ac_ext
28396 cat >>conftest.$ac_ext <<_ACEOF
28397 /* end confdefs.h. */
28398 $ac_includes_default
28399 typedef int ac__type_sizeof_;
28403 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28404 test_array @<:@0@:>@ = 0
28410 rm -f conftest.$ac_objext
28411 if { (ac_try="$ac_compile"
28412 case "(($ac_try" in
28413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28414 *) ac_try_echo=$ac_try;;
28416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28417 (eval "$ac_compile") 2>conftest.er1
28419 grep -v '^ *+' conftest.er1 >conftest.err
28421 cat conftest.err >&5
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); } && {
28424 test -z "$ac_c_werror_flag" ||
28425 test ! -s conftest.err
28426 } && test -s conftest.$ac_objext; then
28429 cat >conftest.$ac_ext <<_ACEOF
28432 cat confdefs.h >>conftest.$ac_ext
28433 cat >>conftest.$ac_ext <<_ACEOF
28434 /* end confdefs.h. */
28435 $ac_includes_default
28436 typedef int ac__type_sizeof_;
28440 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28441 test_array @<:@0@:>@ = 0
28447 rm -f conftest.$ac_objext
28448 if { (ac_try="$ac_compile"
28449 case "(($ac_try" in
28450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28451 *) ac_try_echo=$ac_try;;
28453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28454 (eval "$ac_compile") 2>conftest.er1
28456 grep -v '^ *+' conftest.er1 >conftest.err
28458 cat conftest.err >&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } && {
28461 test -z "$ac_c_werror_flag" ||
28462 test ! -s conftest.err
28463 } && test -s conftest.$ac_objext; then
28464 ac_hi=$ac_mid; break
28466 echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28469 ac_lo=`expr $ac_mid + 1`
28470 if test $ac_lo -le $ac_mid; then
28474 ac_mid=`expr 2 '*' $ac_mid + 1`
28477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28480 echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28483 cat >conftest.$ac_ext <<_ACEOF
28486 cat confdefs.h >>conftest.$ac_ext
28487 cat >>conftest.$ac_ext <<_ACEOF
28488 /* end confdefs.h. */
28489 $ac_includes_default
28490 typedef int ac__type_sizeof_;
28494 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28495 test_array @<:@0@:>@ = 0
28501 rm -f conftest.$ac_objext
28502 if { (ac_try="$ac_compile"
28503 case "(($ac_try" in
28504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505 *) ac_try_echo=$ac_try;;
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508 (eval "$ac_compile") 2>conftest.er1
28510 grep -v '^ *+' conftest.er1 >conftest.err
28512 cat conftest.err >&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } && {
28515 test -z "$ac_c_werror_flag" ||
28516 test ! -s conftest.err
28517 } && test -s conftest.$ac_objext; then
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 $ac_includes_default
28527 typedef int ac__type_sizeof_;
28531 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28532 test_array @<:@0@:>@ = 0
28538 rm -f conftest.$ac_objext
28539 if { (ac_try="$ac_compile"
28540 case "(($ac_try" in
28541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542 *) ac_try_echo=$ac_try;;
28544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28545 (eval "$ac_compile") 2>conftest.er1
28547 grep -v '^ *+' conftest.er1 >conftest.err
28549 cat conftest.err >&5
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); } && {
28552 test -z "$ac_c_werror_flag" ||
28553 test ! -s conftest.err
28554 } && test -s conftest.$ac_objext; then
28555 ac_lo=$ac_mid; break
28557 echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28560 ac_hi=`expr '(' $ac_mid ')' - 1`
28561 if test $ac_mid -le $ac_hi; then
28565 ac_mid=`expr 2 '*' $ac_mid`
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28581 # Binary search between lo and hi bounds.
28582 while test "x$ac_lo" != "x$ac_hi"; do
28583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28584 cat >conftest.$ac_ext <<_ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h. */
28590 $ac_includes_default
28591 typedef int ac__type_sizeof_;
28595 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28596 test_array @<:@0@:>@ = 0
28602 rm -f conftest.$ac_objext
28603 if { (ac_try="$ac_compile"
28604 case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609 (eval "$ac_compile") 2>conftest.er1
28611 grep -v '^ *+' conftest.er1 >conftest.err
28613 cat conftest.err >&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); } && {
28616 test -z "$ac_c_werror_flag" ||
28617 test ! -s conftest.err
28618 } && test -s conftest.$ac_objext; then
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624 ac_lo=`expr '(' $ac_mid ')' + 1`
28627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630 ?*) ac_cv_sizeof_int=$ac_lo;;
28631 '') if test "$ac_cv_type_int" = yes; then
28632 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28633 See \`config.log' for more details." >&5
28634 echo "$as_me: error: cannot compute sizeof (int)
28635 See \`config.log' for more details." >&2;}
28636 { (exit 77); exit 77; }; }
28642 cat >conftest.$ac_ext <<_ACEOF
28645 cat confdefs.h >>conftest.$ac_ext
28646 cat >>conftest.$ac_ext <<_ACEOF
28647 /* end confdefs.h. */
28648 $ac_includes_default
28649 typedef int ac__type_sizeof_;
28650 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28651 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28652 @%:@include <stdio.h>
28653 @%:@include <stdlib.h>
28658 FILE *f = fopen ("conftest.val", "w");
28661 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28663 long int i = longval ();
28664 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28666 fprintf (f, "%ld\n", i);
28670 unsigned long int i = ulongval ();
28671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28673 fprintf (f, "%lu\n", i);
28675 return ferror (f) || fclose (f) != 0;
28681 rm -f conftest$ac_exeext
28682 if { (ac_try="$ac_link"
28683 case "(($ac_try" in
28684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28688 (eval "$ac_link") 2>&5
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28692 { (case "(($ac_try" in
28693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694 *) ac_try_echo=$ac_try;;
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697 (eval "$ac_try") 2>&5
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); }; }; then
28701 ac_cv_sizeof_int=`cat conftest.val`
28703 echo "$as_me: program exited with status $ac_status" >&5
28704 echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28707 ( exit $ac_status )
28708 if test "$ac_cv_type_int" = yes; then
28709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28710 See \`config.log' for more details." >&5
28711 echo "$as_me: error: cannot compute sizeof (int)
28712 See \`config.log' for more details." >&2;}
28713 { (exit 77); exit 77; }; }
28718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28723 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28727 cat >>confdefs.h <<_ACEOF
28728 @%:@define SIZEOF_INT $ac_cv_sizeof_int
28732 { echo "$as_me:$LINENO: checking for long" >&5
28733 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28734 if test "${ac_cv_type_long+set}" = set; then
28735 echo $ECHO_N "(cached) $ECHO_C" >&6
28737 cat >conftest.$ac_ext <<_ACEOF
28740 cat confdefs.h >>conftest.$ac_ext
28741 cat >>conftest.$ac_ext <<_ACEOF
28742 /* end confdefs.h. */
28743 $ac_includes_default
28744 typedef long ac__type_new_;
28748 if ((ac__type_new_ *) 0)
28750 if (sizeof (ac__type_new_))
28756 rm -f conftest.$ac_objext
28757 if { (ac_try="$ac_compile"
28758 case "(($ac_try" in
28759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760 *) ac_try_echo=$ac_try;;
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763 (eval "$ac_compile") 2>conftest.er1
28765 grep -v '^ *+' conftest.er1 >conftest.err
28767 cat conftest.err >&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } && {
28770 test -z "$ac_c_werror_flag" ||
28771 test ! -s conftest.err
28772 } && test -s conftest.$ac_objext; then
28773 ac_cv_type_long=yes
28775 echo "$as_me: failed program was:" >&5
28776 sed 's/^/| /' conftest.$ac_ext >&5
28781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28783 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28784 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28786 # The cast to long int works around a bug in the HP C Compiler
28787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28789 # This bug is HP SR number 8606223364.
28790 { echo "$as_me:$LINENO: checking size of long" >&5
28791 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28792 if test "${ac_cv_sizeof_long+set}" = set; then
28793 echo $ECHO_N "(cached) $ECHO_C" >&6
28795 if test "$cross_compiling" = yes; then
28796 # Depending upon the size, compute the lo and hi bounds.
28797 cat >conftest.$ac_ext <<_ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h. */
28803 $ac_includes_default
28804 typedef long ac__type_sizeof_;
28808 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28809 test_array @<:@0@:>@ = 0
28815 rm -f conftest.$ac_objext
28816 if { (ac_try="$ac_compile"
28817 case "(($ac_try" in
28818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819 *) ac_try_echo=$ac_try;;
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822 (eval "$ac_compile") 2>conftest.er1
28824 grep -v '^ *+' conftest.er1 >conftest.err
28826 cat conftest.err >&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); } && {
28829 test -z "$ac_c_werror_flag" ||
28830 test ! -s conftest.err
28831 } && test -s conftest.$ac_objext; then
28834 cat >conftest.$ac_ext <<_ACEOF
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h. */
28840 $ac_includes_default
28841 typedef long ac__type_sizeof_;
28845 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28846 test_array @<:@0@:>@ = 0
28852 rm -f conftest.$ac_objext
28853 if { (ac_try="$ac_compile"
28854 case "(($ac_try" in
28855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856 *) ac_try_echo=$ac_try;;
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859 (eval "$ac_compile") 2>conftest.er1
28861 grep -v '^ *+' conftest.er1 >conftest.err
28863 cat conftest.err >&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); } && {
28866 test -z "$ac_c_werror_flag" ||
28867 test ! -s conftest.err
28868 } && test -s conftest.$ac_objext; then
28869 ac_hi=$ac_mid; break
28871 echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28874 ac_lo=`expr $ac_mid + 1`
28875 if test $ac_lo -le $ac_mid; then
28879 ac_mid=`expr 2 '*' $ac_mid + 1`
28882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28885 echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28888 cat >conftest.$ac_ext <<_ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h. */
28894 $ac_includes_default
28895 typedef long ac__type_sizeof_;
28899 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28900 test_array @<:@0@:>@ = 0
28906 rm -f conftest.$ac_objext
28907 if { (ac_try="$ac_compile"
28908 case "(($ac_try" in
28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910 *) ac_try_echo=$ac_try;;
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913 (eval "$ac_compile") 2>conftest.er1
28915 grep -v '^ *+' conftest.er1 >conftest.err
28917 cat conftest.err >&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); } && {
28920 test -z "$ac_c_werror_flag" ||
28921 test ! -s conftest.err
28922 } && test -s conftest.$ac_objext; then
28925 cat >conftest.$ac_ext <<_ACEOF
28928 cat confdefs.h >>conftest.$ac_ext
28929 cat >>conftest.$ac_ext <<_ACEOF
28930 /* end confdefs.h. */
28931 $ac_includes_default
28932 typedef long ac__type_sizeof_;
28936 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28937 test_array @<:@0@:>@ = 0
28943 rm -f conftest.$ac_objext
28944 if { (ac_try="$ac_compile"
28945 case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_compile") 2>conftest.er1
28952 grep -v '^ *+' conftest.er1 >conftest.err
28954 cat conftest.err >&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } && {
28957 test -z "$ac_c_werror_flag" ||
28958 test ! -s conftest.err
28959 } && test -s conftest.$ac_objext; then
28960 ac_lo=$ac_mid; break
28962 echo "$as_me: failed program was:" >&5
28963 sed 's/^/| /' conftest.$ac_ext >&5
28965 ac_hi=`expr '(' $ac_mid ')' - 1`
28966 if test $ac_mid -le $ac_hi; then
28970 ac_mid=`expr 2 '*' $ac_mid`
28973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28986 # Binary search between lo and hi bounds.
28987 while test "x$ac_lo" != "x$ac_hi"; do
28988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28989 cat >conftest.$ac_ext <<_ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 $ac_includes_default
28996 typedef long ac__type_sizeof_;
29000 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29001 test_array @<:@0@:>@ = 0
29007 rm -f conftest.$ac_objext
29008 if { (ac_try="$ac_compile"
29009 case "(($ac_try" in
29010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011 *) ac_try_echo=$ac_try;;
29013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014 (eval "$ac_compile") 2>conftest.er1
29016 grep -v '^ *+' conftest.er1 >conftest.err
29018 cat conftest.err >&5
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); } && {
29021 test -z "$ac_c_werror_flag" ||
29022 test ! -s conftest.err
29023 } && test -s conftest.$ac_objext; then
29026 echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29029 ac_lo=`expr '(' $ac_mid ')' + 1`
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29035 ?*) ac_cv_sizeof_long=$ac_lo;;
29036 '') if test "$ac_cv_type_long" = yes; then
29037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29038 See \`config.log' for more details." >&5
29039 echo "$as_me: error: cannot compute sizeof (long)
29040 See \`config.log' for more details." >&2;}
29041 { (exit 77); exit 77; }; }
29043 ac_cv_sizeof_long=0
29047 cat >conftest.$ac_ext <<_ACEOF
29050 cat confdefs.h >>conftest.$ac_ext
29051 cat >>conftest.$ac_ext <<_ACEOF
29052 /* end confdefs.h. */
29053 $ac_includes_default
29054 typedef long ac__type_sizeof_;
29055 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29056 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29057 @%:@include <stdio.h>
29058 @%:@include <stdlib.h>
29063 FILE *f = fopen ("conftest.val", "w");
29066 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29068 long int i = longval ();
29069 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29071 fprintf (f, "%ld\n", i);
29075 unsigned long int i = ulongval ();
29076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29078 fprintf (f, "%lu\n", i);
29080 return ferror (f) || fclose (f) != 0;
29086 rm -f conftest$ac_exeext
29087 if { (ac_try="$ac_link"
29088 case "(($ac_try" in
29089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090 *) ac_try_echo=$ac_try;;
29092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29093 (eval "$ac_link") 2>&5
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29097 { (case "(($ac_try" in
29098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099 *) ac_try_echo=$ac_try;;
29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102 (eval "$ac_try") 2>&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; }; then
29106 ac_cv_sizeof_long=`cat conftest.val`
29108 echo "$as_me: program exited with status $ac_status" >&5
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29112 ( exit $ac_status )
29113 if test "$ac_cv_type_long" = yes; then
29114 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29115 See \`config.log' for more details." >&5
29116 echo "$as_me: error: cannot compute sizeof (long)
29117 See \`config.log' for more details." >&2;}
29118 { (exit 77); exit 77; }; }
29120 ac_cv_sizeof_long=0
29123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29127 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29128 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29132 cat >>confdefs.h <<_ACEOF
29133 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
29137 { echo "$as_me:$LINENO: checking for size_t" >&5
29138 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29139 if test "${ac_cv_type_size_t+set}" = set; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29142 cat >conftest.$ac_ext <<_ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h. */
29148 $ac_includes_default
29149 typedef size_t ac__type_new_;
29153 if ((ac__type_new_ *) 0)
29155 if (sizeof (ac__type_new_))
29161 rm -f conftest.$ac_objext
29162 if { (ac_try="$ac_compile"
29163 case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168 (eval "$ac_compile") 2>conftest.er1
29170 grep -v '^ *+' conftest.er1 >conftest.err
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } && {
29175 test -z "$ac_c_werror_flag" ||
29176 test ! -s conftest.err
29177 } && test -s conftest.$ac_objext; then
29178 ac_cv_type_size_t=yes
29180 echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29183 ac_cv_type_size_t=no
29186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29188 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29189 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29191 # The cast to long int works around a bug in the HP C Compiler
29192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29194 # This bug is HP SR number 8606223364.
29195 { echo "$as_me:$LINENO: checking size of size_t" >&5
29196 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29197 if test "${ac_cv_sizeof_size_t+set}" = set; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 if test "$cross_compiling" = yes; then
29201 # Depending upon the size, compute the lo and hi bounds.
29202 cat >conftest.$ac_ext <<_ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29208 $ac_includes_default
29209 typedef size_t ac__type_sizeof_;
29213 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29214 test_array @<:@0@:>@ = 0
29220 rm -f conftest.$ac_objext
29221 if { (ac_try="$ac_compile"
29222 case "(($ac_try" in
29223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29224 *) ac_try_echo=$ac_try;;
29226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29227 (eval "$ac_compile") 2>conftest.er1
29229 grep -v '^ *+' conftest.er1 >conftest.err
29231 cat conftest.err >&5
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } && {
29234 test -z "$ac_c_werror_flag" ||
29235 test ! -s conftest.err
29236 } && test -s conftest.$ac_objext; then
29239 cat >conftest.$ac_ext <<_ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h. */
29245 $ac_includes_default
29246 typedef size_t ac__type_sizeof_;
29250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29251 test_array @<:@0@:>@ = 0
29257 rm -f conftest.$ac_objext
29258 if { (ac_try="$ac_compile"
29259 case "(($ac_try" in
29260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261 *) ac_try_echo=$ac_try;;
29263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264 (eval "$ac_compile") 2>conftest.er1
29266 grep -v '^ *+' conftest.er1 >conftest.err
29268 cat conftest.err >&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); } && {
29271 test -z "$ac_c_werror_flag" ||
29272 test ! -s conftest.err
29273 } && test -s conftest.$ac_objext; then
29274 ac_hi=$ac_mid; break
29276 echo "$as_me: failed program was:" >&5
29277 sed 's/^/| /' conftest.$ac_ext >&5
29279 ac_lo=`expr $ac_mid + 1`
29280 if test $ac_lo -le $ac_mid; then
29284 ac_mid=`expr 2 '*' $ac_mid + 1`
29287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29290 echo "$as_me: failed program was:" >&5
29291 sed 's/^/| /' conftest.$ac_ext >&5
29293 cat >conftest.$ac_ext <<_ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h. */
29299 $ac_includes_default
29300 typedef size_t ac__type_sizeof_;
29304 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29305 test_array @<:@0@:>@ = 0
29311 rm -f conftest.$ac_objext
29312 if { (ac_try="$ac_compile"
29313 case "(($ac_try" in
29314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315 *) ac_try_echo=$ac_try;;
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318 (eval "$ac_compile") 2>conftest.er1
29320 grep -v '^ *+' conftest.er1 >conftest.err
29322 cat conftest.err >&5
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); } && {
29325 test -z "$ac_c_werror_flag" ||
29326 test ! -s conftest.err
29327 } && test -s conftest.$ac_objext; then
29330 cat >conftest.$ac_ext <<_ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h. */
29336 $ac_includes_default
29337 typedef size_t ac__type_sizeof_;
29341 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29342 test_array @<:@0@:>@ = 0
29348 rm -f conftest.$ac_objext
29349 if { (ac_try="$ac_compile"
29350 case "(($ac_try" in
29351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_compile") 2>conftest.er1
29357 grep -v '^ *+' conftest.er1 >conftest.err
29359 cat conftest.err >&5
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); } && {
29362 test -z "$ac_c_werror_flag" ||
29363 test ! -s conftest.err
29364 } && test -s conftest.$ac_objext; then
29365 ac_lo=$ac_mid; break
29367 echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29370 ac_hi=`expr '(' $ac_mid ')' - 1`
29371 if test $ac_mid -le $ac_hi; then
29375 ac_mid=`expr 2 '*' $ac_mid`
29378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29381 echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391 # Binary search between lo and hi bounds.
29392 while test "x$ac_lo" != "x$ac_hi"; do
29393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29394 cat >conftest.$ac_ext <<_ACEOF
29397 cat confdefs.h >>conftest.$ac_ext
29398 cat >>conftest.$ac_ext <<_ACEOF
29399 /* end confdefs.h. */
29400 $ac_includes_default
29401 typedef size_t ac__type_sizeof_;
29405 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29406 test_array @<:@0@:>@ = 0
29412 rm -f conftest.$ac_objext
29413 if { (ac_try="$ac_compile"
29414 case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_compile") 2>conftest.er1
29421 grep -v '^ *+' conftest.er1 >conftest.err
29423 cat conftest.err >&5
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } && {
29426 test -z "$ac_c_werror_flag" ||
29427 test ! -s conftest.err
29428 } && test -s conftest.$ac_objext; then
29431 echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29434 ac_lo=`expr '(' $ac_mid ')' + 1`
29437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29440 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29441 '') if test "$ac_cv_type_size_t" = yes; then
29442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29443 See \`config.log' for more details." >&5
29444 echo "$as_me: error: cannot compute sizeof (size_t)
29445 See \`config.log' for more details." >&2;}
29446 { (exit 77); exit 77; }; }
29448 ac_cv_sizeof_size_t=0
29452 cat >conftest.$ac_ext <<_ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h. */
29458 $ac_includes_default
29459 typedef size_t ac__type_sizeof_;
29460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29462 @%:@include <stdio.h>
29463 @%:@include <stdlib.h>
29468 FILE *f = fopen ("conftest.val", "w");
29471 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29473 long int i = longval ();
29474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29476 fprintf (f, "%ld\n", i);
29480 unsigned long int i = ulongval ();
29481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29483 fprintf (f, "%lu\n", i);
29485 return ferror (f) || fclose (f) != 0;
29491 rm -f conftest$ac_exeext
29492 if { (ac_try="$ac_link"
29493 case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_link") 2>&5
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29502 { (case "(($ac_try" in
29503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504 *) ac_try_echo=$ac_try;;
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507 (eval "$ac_try") 2>&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; }; then
29511 ac_cv_sizeof_size_t=`cat conftest.val`
29513 echo "$as_me: program exited with status $ac_status" >&5
29514 echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29517 ( exit $ac_status )
29518 if test "$ac_cv_type_size_t" = yes; then
29519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29520 See \`config.log' for more details." >&5
29521 echo "$as_me: error: cannot compute sizeof (size_t)
29522 See \`config.log' for more details." >&2;}
29523 { (exit 77); exit 77; }; }
29525 ac_cv_sizeof_size_t=0
29528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29533 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29537 cat >>confdefs.h <<_ACEOF
29538 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29542 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29543 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29544 if test "${ac_cv_type_socklen_t+set}" = set; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29547 cat >conftest.$ac_ext <<_ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h. */
29553 $ac_includes_default
29554 typedef socklen_t ac__type_new_;
29558 if ((ac__type_new_ *) 0)
29560 if (sizeof (ac__type_new_))
29566 rm -f conftest.$ac_objext
29567 if { (ac_try="$ac_compile"
29568 case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_compile") 2>conftest.er1
29575 grep -v '^ *+' conftest.er1 >conftest.err
29577 cat conftest.err >&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } && {
29580 test -z "$ac_c_werror_flag" ||
29581 test ! -s conftest.err
29582 } && test -s conftest.$ac_objext; then
29583 ac_cv_type_socklen_t=yes
29585 echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29588 ac_cv_type_socklen_t=no
29591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29593 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29594 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29596 # The cast to long int works around a bug in the HP C Compiler
29597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29599 # This bug is HP SR number 8606223364.
29600 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29601 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29602 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29603 echo $ECHO_N "(cached) $ECHO_C" >&6
29605 if test "$cross_compiling" = yes; then
29606 # Depending upon the size, compute the lo and hi bounds.
29607 cat >conftest.$ac_ext <<_ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h. */
29613 $ac_includes_default
29614 typedef socklen_t ac__type_sizeof_;
29618 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29619 test_array @<:@0@:>@ = 0
29625 rm -f conftest.$ac_objext
29626 if { (ac_try="$ac_compile"
29627 case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_compile") 2>conftest.er1
29634 grep -v '^ *+' conftest.er1 >conftest.err
29636 cat conftest.err >&5
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } && {
29639 test -z "$ac_c_werror_flag" ||
29640 test ! -s conftest.err
29641 } && test -s conftest.$ac_objext; then
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29650 $ac_includes_default
29651 typedef socklen_t ac__type_sizeof_;
29655 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29656 test_array @<:@0@:>@ = 0
29662 rm -f conftest.$ac_objext
29663 if { (ac_try="$ac_compile"
29664 case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_compile") 2>conftest.er1
29671 grep -v '^ *+' conftest.er1 >conftest.err
29673 cat conftest.err >&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); } && {
29676 test -z "$ac_c_werror_flag" ||
29677 test ! -s conftest.err
29678 } && test -s conftest.$ac_objext; then
29679 ac_hi=$ac_mid; break
29681 echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29684 ac_lo=`expr $ac_mid + 1`
29685 if test $ac_lo -le $ac_mid; then
29689 ac_mid=`expr 2 '*' $ac_mid + 1`
29692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29695 echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29698 cat >conftest.$ac_ext <<_ACEOF
29701 cat confdefs.h >>conftest.$ac_ext
29702 cat >>conftest.$ac_ext <<_ACEOF
29703 /* end confdefs.h. */
29704 $ac_includes_default
29705 typedef socklen_t ac__type_sizeof_;
29709 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29710 test_array @<:@0@:>@ = 0
29716 rm -f conftest.$ac_objext
29717 if { (ac_try="$ac_compile"
29718 case "(($ac_try" in
29719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720 *) ac_try_echo=$ac_try;;
29722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723 (eval "$ac_compile") 2>conftest.er1
29725 grep -v '^ *+' conftest.er1 >conftest.err
29727 cat conftest.err >&5
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); } && {
29730 test -z "$ac_c_werror_flag" ||
29731 test ! -s conftest.err
29732 } && test -s conftest.$ac_objext; then
29735 cat >conftest.$ac_ext <<_ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 $ac_includes_default
29742 typedef socklen_t ac__type_sizeof_;
29746 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29747 test_array @<:@0@:>@ = 0
29753 rm -f conftest.$ac_objext
29754 if { (ac_try="$ac_compile"
29755 case "(($ac_try" in
29756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757 *) ac_try_echo=$ac_try;;
29759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_compile") 2>conftest.er1
29762 grep -v '^ *+' conftest.er1 >conftest.err
29764 cat conftest.err >&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); } && {
29767 test -z "$ac_c_werror_flag" ||
29768 test ! -s conftest.err
29769 } && test -s conftest.$ac_objext; then
29770 ac_lo=$ac_mid; break
29772 echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29775 ac_hi=`expr '(' $ac_mid ')' - 1`
29776 if test $ac_mid -le $ac_hi; then
29780 ac_mid=`expr 2 '*' $ac_mid`
29783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796 # Binary search between lo and hi bounds.
29797 while test "x$ac_lo" != "x$ac_hi"; do
29798 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29799 cat >conftest.$ac_ext <<_ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h. */
29805 $ac_includes_default
29806 typedef socklen_t ac__type_sizeof_;
29810 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29811 test_array @<:@0@:>@ = 0
29817 rm -f conftest.$ac_objext
29818 if { (ac_try="$ac_compile"
29819 case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824 (eval "$ac_compile") 2>conftest.er1
29826 grep -v '^ *+' conftest.er1 >conftest.err
29828 cat conftest.err >&5
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); } && {
29831 test -z "$ac_c_werror_flag" ||
29832 test ! -s conftest.err
29833 } && test -s conftest.$ac_objext; then
29836 echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29839 ac_lo=`expr '(' $ac_mid ')' + 1`
29842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29845 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29846 '') if test "$ac_cv_type_socklen_t" = yes; then
29847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29848 See \`config.log' for more details." >&5
29849 echo "$as_me: error: cannot compute sizeof (socklen_t)
29850 See \`config.log' for more details." >&2;}
29851 { (exit 77); exit 77; }; }
29853 ac_cv_sizeof_socklen_t=0
29857 cat >conftest.$ac_ext <<_ACEOF
29860 cat confdefs.h >>conftest.$ac_ext
29861 cat >>conftest.$ac_ext <<_ACEOF
29862 /* end confdefs.h. */
29863 $ac_includes_default
29864 typedef socklen_t ac__type_sizeof_;
29865 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29866 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29867 @%:@include <stdio.h>
29868 @%:@include <stdlib.h>
29873 FILE *f = fopen ("conftest.val", "w");
29876 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29878 long int i = longval ();
29879 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29881 fprintf (f, "%ld\n", i);
29885 unsigned long int i = ulongval ();
29886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29888 fprintf (f, "%lu\n", i);
29890 return ferror (f) || fclose (f) != 0;
29896 rm -f conftest$ac_exeext
29897 if { (ac_try="$ac_link"
29898 case "(($ac_try" in
29899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29900 *) ac_try_echo=$ac_try;;
29902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29903 (eval "$ac_link") 2>&5
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29907 { (case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912 (eval "$ac_try") 2>&5
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); }; }; then
29916 ac_cv_sizeof_socklen_t=`cat conftest.val`
29918 echo "$as_me: program exited with status $ac_status" >&5
29919 echo "$as_me: failed program was:" >&5
29920 sed 's/^/| /' conftest.$ac_ext >&5
29922 ( exit $ac_status )
29923 if test "$ac_cv_type_socklen_t" = yes; then
29924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29925 See \`config.log' for more details." >&5
29926 echo "$as_me: error: cannot compute sizeof (socklen_t)
29927 See \`config.log' for more details." >&2;}
29928 { (exit 77); exit 77; }; }
29930 ac_cv_sizeof_socklen_t=0
29933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29938 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29942 cat >>confdefs.h <<_ACEOF
29943 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29950 cat >>confdefs.h <<_ACEOF
29951 @%:@define NFS_STATEDIR "$statedir"
29955 if test "x$cross_compiling" = "xno"; then
29956 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29957 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29958 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29959 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29961 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29962 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29963 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29964 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29982 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29984 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29986 AM_CFLAGS="$my_am_cflags"
29989 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29990 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29993 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"
29995 cat >confcache <<\_ACEOF
29996 # This file is a shell script that caches the results of configure
29997 # tests run on this system so they can be shared between configure
29998 # scripts and configure runs, see configure's option --config-cache.
29999 # It is not useful on other systems. If it contains results you don't
30000 # want to keep, you may remove or edit it.
30002 # config.status only pays attention to the cache file if you give it
30003 # the --recheck option to rerun configure.
30005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30007 # following values.
30011 # The following way of writing the cache mishandles newlines in values,
30012 # but we know of no workaround that is simple, portable, and efficient.
30013 # So, we kill variables containing newlines.
30014 # Ultrix sh set writes to stderr and can't be redirected directly,
30015 # and sets the high bit in the cache file unless we assign to the vars.
30017 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30018 eval ac_val=\$$ac_var
30022 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30023 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30026 _ | IFS | as_nl) ;; #(
30027 *) $as_unset $ac_var ;;
30033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30034 *${as_nl}ac_space=\ *)
30035 # `set' does not quote correctly, so add quotes (double-quote
30036 # substitution turns \\\\ into \\, and sed turns \\ into \).
30039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30042 # `set' quotes correctly as required by POSIX, so do not add quotes.
30043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30057 if test -w "$cache_file"; then
30058 test "x$cache_file" != "x/dev/null" &&
30059 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30060 echo "$as_me: updating cache $cache_file" >&6;}
30061 cat confcache >$cache_file
30063 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30064 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30070 # Let make expand exec_prefix.
30071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30073 DEFS=-DHAVE_CONFIG_H
30077 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30078 # 1. Remove the extension, and $U if already installed.
30079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30080 ac_i=`echo "$ac_i" | sed "$ac_script"`
30081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30082 # will be set to the directory where LIBOBJS objects are built.
30083 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30084 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30086 LIB@&t@OBJS=$ac_libobjs
30088 LTLIBOBJS=$ac_ltlibobjs
30091 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30092 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30093 Usually this means the macro was only invoked conditionally." >&5
30094 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30095 Usually this means the macro was only invoked conditionally." >&2;}
30096 { (exit 1); exit 1; }; }
30098 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30099 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30100 Usually this means the macro was only invoked conditionally." >&5
30101 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30102 Usually this means the macro was only invoked conditionally." >&2;}
30103 { (exit 1); exit 1; }; }
30105 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30106 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30107 Usually this means the macro was only invoked conditionally." >&5
30108 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30109 Usually this means the macro was only invoked conditionally." >&2;}
30110 { (exit 1); exit 1; }; }
30112 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30113 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30114 Usually this means the macro was only invoked conditionally." >&5
30115 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30116 Usually this means the macro was only invoked conditionally." >&2;}
30117 { (exit 1); exit 1; }; }
30119 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30120 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30121 Usually this means the macro was only invoked conditionally." >&5
30122 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30123 Usually this means the macro was only invoked conditionally." >&2;}
30124 { (exit 1); exit 1; }; }
30126 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30127 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30128 Usually this means the macro was only invoked conditionally." >&5
30129 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30130 Usually this means the macro was only invoked conditionally." >&2;}
30131 { (exit 1); exit 1; }; }
30133 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30134 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30135 Usually this means the macro was only invoked conditionally." >&5
30136 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30137 Usually this means the macro was only invoked conditionally." >&2;}
30138 { (exit 1); exit 1; }; }
30140 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30141 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30142 Usually this means the macro was only invoked conditionally." >&5
30143 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30144 Usually this means the macro was only invoked conditionally." >&2;}
30145 { (exit 1); exit 1; }; }
30147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30148 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30149 Usually this means the macro was only invoked conditionally." >&5
30150 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30151 Usually this means the macro was only invoked conditionally." >&2;}
30152 { (exit 1); exit 1; }; }
30155 : ${CONFIG_STATUS=./config.status}
30156 ac_clean_files_save=$ac_clean_files
30157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30158 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30159 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30160 cat >$CONFIG_STATUS <<_ACEOF
30162 # Generated by $as_me.
30163 # Run this file to recreate the current configuration.
30164 # Compiler output produced by configure, useful for debugging
30165 # configure, is in config.log if it exists.
30168 ac_cs_recheck=false
30170 SHELL=\${CONFIG_SHELL-$SHELL}
30173 cat >>$CONFIG_STATUS <<\_ACEOF
30174 ## --------------------- ##
30175 ## M4sh Initialization. ##
30176 ## --------------------- ##
30178 # Be more Bourne compatible
30179 DUALCASE=1; export DUALCASE # for MKS sh
30180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30183 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30184 # is contrary to our usage. Disable this feature.
30185 alias -g '${1+"$@"}'='"$@"'
30186 setopt NO_GLOB_SUBST
30188 case `(set -o) 2>/dev/null` in
30189 *posix*) set -o posix ;;
30198 # Avoid depending upon Character Ranges.
30199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30202 as_cr_digits='0123456789'
30203 as_cr_alnum=$as_cr_Letters$as_cr_digits
30205 # The user is always right.
30206 if test "${PATH_SEPARATOR+set}" != set; then
30207 echo "#! /bin/sh" >conf$$.sh
30208 echo "exit 0" >>conf$$.sh
30210 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30218 # Support unset when possible.
30219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30227 # We need space, tab and new line, in precisely that order. Quoting is
30228 # there to prevent editors from complaining about space-tab.
30229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30230 # splitting by setting IFS to empty value.)
30235 # Find who we are. Look in the path if we contain no directory separator.
30237 *[\\/]* ) as_myself=$0 ;;
30238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30239 for as_dir in $PATH
30242 test -z "$as_dir" && as_dir=.
30243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30249 # We did not find ourselves, most probably we were run as `sh COMMAND'
30250 # in which case we are not to be found in the path.
30251 if test "x$as_myself" = x; then
30254 if test ! -f "$as_myself"; then
30255 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30256 { (exit 1); exit 1; }
30259 # Work around bugs in pre-3.0 UWIN ksh.
30260 for as_var in ENV MAIL MAILPATH
30261 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30269 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30270 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30271 LC_TELEPHONE LC_TIME
30273 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30274 eval $as_var=C; export $as_var
30276 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30280 # Required to use basename.
30281 if expr a : '\(a\)' >/dev/null 2>&1 &&
30282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30289 as_basename=basename
30295 # Name of the executable.
30296 as_me=`$as_basename -- "$0" ||
30297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30298 X"$0" : 'X\(//\)$' \| \
30299 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30301 sed '/^.*\/\([^/][^/]*\)\/*$/{
30320 as_lineno_1=$LINENO
30321 as_lineno_2=$LINENO
30322 test "x$as_lineno_1" != "x$as_lineno_2" &&
30323 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30325 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30326 # uniformly replaced by the line number. The first 'sed' inserts a
30327 # line-number line after each line using $LINENO; the second 'sed'
30328 # does the real work. The second script uses 'N' to pair each
30329 # line-number line with the line containing $LINENO, and appends
30330 # trailing '-' during substitution so that $LINENO is not a special
30331 # case at line end.
30332 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30333 # scripts with optimization help from Paolo Bonzini. Blame Lee
30334 # E. McMahon (1931-1989) for sed's syntax. :-)
30346 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30349 ' >$as_me.lineno &&
30350 chmod +x "$as_me.lineno" ||
30351 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30352 { (exit 1); exit 1; }; }
30354 # Don't try to exec as it changes $[0], causing all sort of problems
30355 # (the dirname of $[0] is not the place where we might find the
30356 # original and so on. Autoconf is especially sensitive to this).
30357 . "./$as_me.lineno"
30358 # Exit status is that of the last command.
30363 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30369 ECHO_C= ECHO_N= ECHO_T=
30370 case `echo -n x` in
30372 case `echo 'x\c'` in
30373 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30380 if expr a : '\(a\)' >/dev/null 2>&1 &&
30381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30387 rm -f conf$$ conf$$.exe conf$$.file
30388 if test -d conf$$.dir; then
30389 rm -f conf$$.dir/conf$$.file
30395 if ln -s conf$$.file conf$$ 2>/dev/null; then
30397 # ... but there are two gotchas:
30398 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30399 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30400 # In both cases, we have to default to `cp -p'.
30401 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30403 elif ln conf$$.file conf$$ 2>/dev/null; then
30408 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30409 rmdir conf$$.dir 2>/dev/null
30411 if mkdir -p . 2>/dev/null; then
30414 test -d ./-p && rmdir ./-p
30418 if test -x / >/dev/null 2>&1; then
30419 as_test_x='test -x'
30421 if ls -dL / >/dev/null 2>&1; then
30428 if test -d "$1"; then
30434 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30435 ???[sx]*):;;*)false;;esac;fi
30439 as_executable_p=$as_test_x
30441 # Sed expression to map a string onto a valid CPP name.
30442 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30444 # Sed expression to map a string onto a valid variable name.
30445 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30450 # Save the log message, to keep $[0] and so on meaningful, and to
30451 # report actual input values of CONFIG_FILES etc. instead of their
30452 # values after options handling.
30454 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30455 generated by GNU Autoconf 2.61. Invocation command line was
30457 CONFIG_FILES = $CONFIG_FILES
30458 CONFIG_HEADERS = $CONFIG_HEADERS
30459 CONFIG_LINKS = $CONFIG_LINKS
30460 CONFIG_COMMANDS = $CONFIG_COMMANDS
30463 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30468 cat >>$CONFIG_STATUS <<_ACEOF
30469 # Files that config.status was made for.
30470 config_files="$ac_config_files"
30471 config_headers="$ac_config_headers"
30472 config_commands="$ac_config_commands"
30476 cat >>$CONFIG_STATUS <<\_ACEOF
30478 \`$as_me' instantiates files from templates according to the
30479 current configuration.
30481 Usage: $0 [OPTIONS] [FILE]...
30483 -h, --help print this help, then exit
30484 -V, --version print version number and configuration settings, then exit
30485 -q, --quiet do not print progress messages
30486 -d, --debug don't remove temporary files
30487 --recheck update $as_me by reconfiguring in the same conditions
30488 --file=FILE[:TEMPLATE]
30489 instantiate the configuration file FILE
30490 --header=FILE[:TEMPLATE]
30491 instantiate the configuration header FILE
30493 Configuration files:
30496 Configuration headers:
30499 Configuration commands:
30502 Report bugs to <bug-autoconf@gnu.org>."
30505 cat >>$CONFIG_STATUS <<_ACEOF
30507 linux nfs-utils config.status 1.1.0
30508 configured by $0, generated by GNU Autoconf 2.61,
30509 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30511 Copyright (C) 2006 Free Software Foundation, Inc.
30512 This config.status script is free software; the Free Software Foundation
30513 gives unlimited permission to copy, distribute and modify it."
30520 cat >>$CONFIG_STATUS <<\_ACEOF
30521 # If no file are specified by the user, then we need to provide default
30522 # value. By we need to know if files were specified by the user.
30528 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30529 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30540 # Handling of the options.
30541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30543 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30544 echo "$ac_cs_version"; exit ;;
30545 --debug | --debu | --deb | --de | --d | -d )
30547 --file | --fil | --fi | --f )
30549 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30550 ac_need_defaults=false;;
30551 --header | --heade | --head | --hea )
30553 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30554 ac_need_defaults=false;;
30556 # Conflict between --help and --header
30557 { echo "$as_me: error: ambiguous option: $1
30558 Try \`$0 --help' for more information." >&2
30559 { (exit 1); exit 1; }; };;
30560 --help | --hel | -h )
30561 echo "$ac_cs_usage"; exit ;;
30562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30566 # This is an error.
30567 -*) { echo "$as_me: error: unrecognized option: $1
30568 Try \`$0 --help' for more information." >&2
30569 { (exit 1); exit 1; }; } ;;
30571 *) ac_config_targets="$ac_config_targets $1"
30572 ac_need_defaults=false ;;
30578 ac_configure_extra_args=
30580 if $ac_cs_silent; then
30582 ac_configure_extra_args="$ac_configure_extra_args --silent"
30586 cat >>$CONFIG_STATUS <<_ACEOF
30587 if \$ac_cs_recheck; then
30588 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30589 CONFIG_SHELL=$SHELL
30590 export CONFIG_SHELL
30591 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30595 cat >>$CONFIG_STATUS <<\_ACEOF
30599 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30600 @%:@@%:@ Running $as_me. @%:@@%:@
30606 cat >>$CONFIG_STATUS <<_ACEOF
30610 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30614 cat >>$CONFIG_STATUS <<\_ACEOF
30616 # Handling of arguments.
30617 for ac_config_target in $ac_config_targets
30619 case $ac_config_target in
30620 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30621 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30622 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30623 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30624 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30625 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30626 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30627 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30628 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30629 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30630 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30631 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30632 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30633 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30634 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30635 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30636 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30637 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30638 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30639 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30640 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30641 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30642 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30643 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30644 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30645 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30646 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30647 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30649 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30650 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30651 { (exit 1); exit 1; }; };;
30656 # If the user did not use the arguments to specify the items to instantiate,
30657 # then the envvar interface is used. Set only those that are not.
30658 # We use the long form for the default assignment because of an extremely
30659 # bizarre bug on SunOS 4.1.3.
30660 if $ac_need_defaults; then
30661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30666 # Have a temporary directory for convenience. Make it in the build tree
30667 # simply because there is no reason against having it here, and in addition,
30668 # creating and moving files from /tmp can sometimes cause problems.
30669 # Hook for its removal unless debugging.
30670 # Note that there is a small window in which the directory will not be cleaned:
30671 # after its creation but before its name has been assigned to `$tmp'.
30675 trap 'exit_status=$?
30676 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30678 trap '{ (exit 1); exit 1; }' 1 2 13 15
30680 # Create a (secure) tmp directory for tmp files.
30683 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30684 test -n "$tmp" && test -d "$tmp"
30687 tmp=./conf$$-$RANDOM
30688 (umask 077 && mkdir "$tmp")
30691 echo "$me: cannot create a temporary directory in ." >&2
30692 { (exit 1); exit 1; }
30696 # Set up the sed scripts for CONFIG_FILES section.
30699 # No need to generate the scripts if there are no CONFIG_FILES.
30700 # This happens for instance when ./config.status config.h
30701 if test -n "$CONFIG_FILES"; then
30708 for ac_last_try in false false false false false :; do
30709 cat >conf$$subs.sed <<_ACEOF
30710 SHELL!$SHELL$ac_delim
30711 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30712 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30713 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30714 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30715 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30716 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30717 exec_prefix!$exec_prefix$ac_delim
30718 prefix!$prefix$ac_delim
30719 program_transform_name!$program_transform_name$ac_delim
30720 bindir!$bindir$ac_delim
30721 sbindir!$sbindir$ac_delim
30722 libexecdir!$libexecdir$ac_delim
30723 datarootdir!$datarootdir$ac_delim
30724 datadir!$datadir$ac_delim
30725 sysconfdir!$sysconfdir$ac_delim
30726 sharedstatedir!$sharedstatedir$ac_delim
30727 localstatedir!$localstatedir$ac_delim
30728 includedir!$includedir$ac_delim
30729 oldincludedir!$oldincludedir$ac_delim
30730 docdir!$docdir$ac_delim
30731 infodir!$infodir$ac_delim
30732 htmldir!$htmldir$ac_delim
30733 dvidir!$dvidir$ac_delim
30734 pdfdir!$pdfdir$ac_delim
30735 psdir!$psdir$ac_delim
30736 libdir!$libdir$ac_delim
30737 localedir!$localedir$ac_delim
30738 mandir!$mandir$ac_delim
30739 DEFS!$DEFS$ac_delim
30740 ECHO_C!$ECHO_C$ac_delim
30741 ECHO_N!$ECHO_N$ac_delim
30742 ECHO_T!$ECHO_T$ac_delim
30743 LIBS!$LIBS$ac_delim
30744 build_alias!$build_alias$ac_delim
30745 host_alias!$host_alias$ac_delim
30746 target_alias!$target_alias$ac_delim
30747 build!$build$ac_delim
30748 build_cpu!$build_cpu$ac_delim
30749 build_vendor!$build_vendor$ac_delim
30750 build_os!$build_os$ac_delim
30751 host!$host$ac_delim
30752 host_cpu!$host_cpu$ac_delim
30753 host_vendor!$host_vendor$ac_delim
30754 host_os!$host_os$ac_delim
30755 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30756 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30757 INSTALL_DATA!$INSTALL_DATA$ac_delim
30758 CYGPATH_W!$CYGPATH_W$ac_delim
30759 PACKAGE!$PACKAGE$ac_delim
30760 VERSION!$VERSION$ac_delim
30761 ACLOCAL!$ACLOCAL$ac_delim
30762 AUTOCONF!$AUTOCONF$ac_delim
30763 AUTOMAKE!$AUTOMAKE$ac_delim
30764 AUTOHEADER!$AUTOHEADER$ac_delim
30765 MAKEINFO!$MAKEINFO$ac_delim
30766 install_sh!$install_sh$ac_delim
30767 STRIP!$STRIP$ac_delim
30768 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30769 mkdir_p!$mkdir_p$ac_delim
30771 SET_MAKE!$SET_MAKE$ac_delim
30772 am__leading_dot!$am__leading_dot$ac_delim
30773 AMTAR!$AMTAR$ac_delim
30774 am__tar!$am__tar$ac_delim
30775 am__untar!$am__untar$ac_delim
30776 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30777 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30778 MAINT!$MAINT$ac_delim
30779 RELEASE!$RELEASE$ac_delim
30780 statedir!$statedir$ac_delim
30781 statduser!$statduser$ac_delim
30782 startstatd!$startstatd$ac_delim
30783 enable_nfsv3!$enable_nfsv3$ac_delim
30784 IDMAPD!$IDMAPD$ac_delim
30785 enable_nfsv4!$enable_nfsv4$ac_delim
30786 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30787 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30788 GSSD!$GSSD$ac_delim
30789 SVCGSSD!$SVCGSSD$ac_delim
30790 enable_gss!$enable_gss$ac_delim
30791 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30792 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30793 kprefix!$kprefix$ac_delim
30794 secure_statd!$secure_statd$ac_delim
30795 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30796 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30797 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30798 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30799 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30801 CFLAGS!$CFLAGS$ac_delim
30802 LDFLAGS!$LDFLAGS$ac_delim
30803 CPPFLAGS!$CPPFLAGS$ac_delim
30804 ac_ct_CC!$ac_ct_CC$ac_delim
30805 EXEEXT!$EXEEXT$ac_delim
30806 OBJEXT!$OBJEXT$ac_delim
30809 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30811 elif $ac_last_try; then
30812 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30813 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30814 { (exit 1); exit 1; }; }
30816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30820 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30821 if test -n "$ac_eof"; then
30822 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30823 ac_eof=`expr $ac_eof + 1`
30826 cat >>$CONFIG_STATUS <<_ACEOF
30827 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30831 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30832 s/^/s,@/; s/!/@,|#_!!_#|/
30835 s/'"$ac_delim"'$/,g/; t
30837 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30838 ' >>$CONFIG_STATUS <conf$$subs.sed
30839 rm -f conf$$subs.sed
30840 cat >>$CONFIG_STATUS <<_ACEOF
30846 for ac_last_try in false false false false false :; do
30847 cat >conf$$subs.sed <<_ACEOF
30848 DEPDIR!$DEPDIR$ac_delim
30849 am__include!$am__include$ac_delim
30850 am__quote!$am__quote$ac_delim
30851 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30852 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30853 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30854 CCDEPMODE!$CCDEPMODE$ac_delim
30855 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30856 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30857 LIBWRAP!$LIBWRAP$ac_delim
30858 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30859 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30861 CXXFLAGS!$CXXFLAGS$ac_delim
30862 ac_ct_CXX!$ac_ct_CXX$ac_delim
30863 CXXDEPMODE!$CXXDEPMODE$ac_delim
30864 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30865 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30867 LN_S!$LN_S$ac_delim
30869 GREP!$GREP$ac_delim
30870 EGREP!$EGREP$ac_delim
30871 ECHO!$ECHO$ac_delim
30873 RANLIB!$RANLIB$ac_delim
30874 CXXCPP!$CXXCPP$ac_delim
30876 FFLAGS!$FFLAGS$ac_delim
30877 ac_ct_F77!$ac_ct_F77$ac_delim
30878 LIBTOOL!$LIBTOOL$ac_delim
30879 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30881 LIBNSL!$LIBNSL$ac_delim
30882 PKG_CONFIG!$PKG_CONFIG$ac_delim
30883 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30884 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30885 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
30886 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
30887 LIBSOCKET!$LIBSOCKET$ac_delim
30888 LIBCRYPT!$LIBCRYPT$ac_delim
30889 LIBBSD!$LIBBSD$ac_delim
30890 LIBBLKID!$LIBBLKID$ac_delim
30891 KRBDIR!$KRBDIR$ac_delim
30892 KRBLIBS!$KRBLIBS$ac_delim
30893 KRBCFLAGS!$KRBCFLAGS$ac_delim
30894 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30895 K5VERS!$K5VERS$ac_delim
30896 ALLOCA!$ALLOCA$ac_delim
30897 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30898 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30899 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30900 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30901 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30902 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30903 AM_CFLAGS!$AM_CFLAGS$ac_delim
30904 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30905 LTLIBOBJS!$LTLIBOBJS$ac_delim
30908 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30910 elif $ac_last_try; then
30911 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30912 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30913 { (exit 1); exit 1; }; }
30915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30919 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30920 if test -n "$ac_eof"; then
30921 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30922 ac_eof=`expr $ac_eof + 1`
30925 cat >>$CONFIG_STATUS <<_ACEOF
30926 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30930 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30931 s/^/s,@/; s/!/@,|#_!!_#|/
30934 s/'"$ac_delim"'$/,g/; t
30936 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30937 ' >>$CONFIG_STATUS <conf$$subs.sed
30938 rm -f conf$$subs.sed
30939 cat >>$CONFIG_STATUS <<_ACEOF
30946 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30947 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30948 # trailing colons and then remove the whole line if VPATH becomes empty
30949 # (actually we leave an empty line to preserve line numbers).
30950 if test "x$srcdir" = x.; then
30951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30952 s/:*\$(srcdir):*/:/
30953 s/:*\${srcdir}:*/:/
30955 s/^\([^=]*=[ ]*\):*/\1/
30961 cat >>$CONFIG_STATUS <<\_ACEOF
30962 fi # test -n "$CONFIG_FILES"
30965 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30968 :[FHLC]) ac_mode=$ac_tag; continue;;
30970 case $ac_mode$ac_tag in
30972 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30973 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30974 { (exit 1); exit 1; }; };;
30975 :[FH]-) ac_tag=-:-;;
30976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30993 -) ac_f="$tmp/stdin";;
30994 *) # Look for the file first in the build tree, then in the source tree
30995 # (if the path is not absolute). The absolute path cannot be DOS-style,
30996 # because $ac_f cannot contain `:'.
31000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31002 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31003 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31004 { (exit 1); exit 1; }; };;
31006 ac_file_inputs="$ac_file_inputs $ac_f"
31009 # Let's still pretend it is `configure' which instantiates (i.e., don't
31010 # use $as_me), people would be surprised to read:
31011 # /* config.h. Generated by config.status. */
31012 configure_input="Generated from "`IFS=:
31013 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31014 if test x"$ac_file" != x-; then
31015 configure_input="$ac_file. $configure_input"
31016 { echo "$as_me:$LINENO: creating $ac_file" >&5
31017 echo "$as_me: creating $ac_file" >&6;}
31021 *:-:* | *:-) cat >"$tmp/stdin";;
31026 ac_dir=`$as_dirname -- "$ac_file" ||
31027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31028 X"$ac_file" : 'X\(//\)[^/]' \| \
31029 X"$ac_file" : 'X\(//\)$' \| \
31030 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31036 /^X\(\/\/\)[^/].*/{
31051 -*) as_dir=./$as_dir;;
31053 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31057 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31058 *) as_qdir=$as_dir;;
31060 as_dirs="'$as_qdir' $as_dirs"
31061 as_dir=`$as_dirname -- "$as_dir" ||
31062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31063 X"$as_dir" : 'X\(//\)[^/]' \| \
31064 X"$as_dir" : 'X\(//\)$' \| \
31065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31071 /^X\(\/\/\)[^/].*/{
31084 test -d "$as_dir" && break
31086 test -z "$as_dirs" || eval "mkdir $as_dirs"
31087 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31088 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31089 { (exit 1); exit 1; }; }; }
31093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31096 # A ".." for each directory in $ac_dir_suffix.
31097 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31098 case $ac_top_builddir_sub in
31099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31103 ac_abs_top_builddir=$ac_pwd
31104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31105 # for backward compatibility:
31106 ac_top_builddir=$ac_top_build_prefix
31109 .) # We are building in place.
31111 ac_top_srcdir=$ac_top_builddir_sub
31112 ac_abs_top_srcdir=$ac_pwd ;;
31113 [\\/]* | ?:[\\/]* ) # Absolute name.
31114 ac_srcdir=$srcdir$ac_dir_suffix;
31115 ac_top_srcdir=$srcdir
31116 ac_abs_top_srcdir=$srcdir ;;
31117 *) # Relative name.
31118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31119 ac_top_srcdir=$ac_top_build_prefix$srcdir
31120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31137 cat >>$CONFIG_STATUS <<\_ACEOF
31138 # If the template does not know about datarootdir, expand it.
31139 # FIXME: This hack should be removed a few years after 2.60.
31140 ac_datarootdir_hack=; ac_datarootdir_seen=
31142 case `sed -n '/datarootdir/ {
31151 ' $ac_file_inputs` in
31152 *datarootdir*) ac_datarootdir_seen=yes;;
31153 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31154 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31155 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31157 cat >>$CONFIG_STATUS <<_ACEOF
31158 ac_datarootdir_hack='
31159 s&@datadir@&$datadir&g
31160 s&@docdir@&$docdir&g
31161 s&@infodir@&$infodir&g
31162 s&@localedir@&$localedir&g
31163 s&@mandir@&$mandir&g
31164 s&\\\${datarootdir}&$datarootdir&g' ;;
31168 # Neutralize VPATH when `$srcdir' = `.'.
31169 # Shell code in configure.ac might set extrasub.
31170 # FIXME: do we really want to maintain this feature?
31171 cat >>$CONFIG_STATUS <<_ACEOF
31175 cat >>$CONFIG_STATUS <<\_ACEOF
31177 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31178 s&@configure_input@&$configure_input&;t t
31179 s&@top_builddir@&$ac_top_builddir_sub&;t t
31180 s&@srcdir@&$ac_srcdir&;t t
31181 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31182 s&@top_srcdir@&$ac_top_srcdir&;t t
31183 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31184 s&@builddir@&$ac_builddir&;t t
31185 s&@abs_builddir@&$ac_abs_builddir&;t t
31186 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31187 s&@INSTALL@&$ac_INSTALL&;t t
31188 $ac_datarootdir_hack
31189 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31192 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31194 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31195 which seems to be undefined. Please make sure it is defined." >&5
31196 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31197 which seems to be undefined. Please make sure it is defined." >&2;}
31201 -) cat "$tmp/out"; rm -f "$tmp/out";;
31202 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31211 # Transform confdefs.h into a sed script `conftest.defines', that
31212 # substitutes the proper values into config.h.in to produce config.h.
31213 rm -f conftest.defines conftest.tail
31214 # First, append a space to every undef/define line, to ease matching.
31215 echo 's/$/ /' >conftest.defines
31216 # Then, protect against being on the right side of a sed subst, or in
31217 # an unquoted here document, in config.status. If some macros were
31218 # called several times there might be several #defines for the same
31219 # symbol, which is useless. But do not sort them, since the last
31220 # AC_DEFINE must be honored.
31221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31222 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31223 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31224 # PARAMS is the parameter list in the macro definition--in most cases, it's
31225 # just an empty string.
31226 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31227 ac_dB='\\)[ (].*,\\1define\\2'
31235 s/^[ ]*#[ ]*define[ ][ ]*//
31240 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31241 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31242 ' >>conftest.defines
31244 # Remove the space that was appended to ease matching.
31245 # Then replace #undef with comments. This is necessary, for
31246 # example, in the case of _POSIX_SOURCE, which is predefined and required
31247 # on some systems where configure will not decide to define it.
31248 # (The regexp can be short, since the line contains either #define or #undef.)
31250 s,^[ #]*u.*,/* & */,' >>conftest.defines
31252 # Break up conftest.defines:
31253 ac_max_sed_lines=50
31255 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31256 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31257 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31259 ac_in='$ac_file_inputs'
31260 ac_out='"$tmp/out1"'
31261 ac_nxt='"$tmp/out2"'
31265 # Write a here document:
31266 cat >>$CONFIG_STATUS <<_ACEOF
31267 # First, check the format of the line:
31268 cat >"\$tmp/defines.sed" <<\\CEOF
31269 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31270 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31274 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31276 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31277 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31278 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31279 grep . conftest.tail >/dev/null || break
31280 rm -f conftest.defines
31281 mv conftest.tail conftest.defines
31283 rm -f conftest.defines conftest.tail
31285 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31286 cat >>$CONFIG_STATUS <<\_ACEOF
31287 if test x"$ac_file" != x-; then
31288 echo "/* $configure_input */" >"$tmp/config.h"
31289 cat "$ac_result" >>"$tmp/config.h"
31290 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31291 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31292 echo "$as_me: $ac_file is unchanged" >&6;}
31295 mv "$tmp/config.h" $ac_file
31298 echo "/* $configure_input */"
31302 # Compute $ac_file's index in $config_headers.
31304 for _am_header in $config_headers :; do
31305 case $_am_header in
31306 $ac_file | $ac_file:* )
31309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31312 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31313 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31314 X$ac_file : 'X\(//\)[^/]' \| \
31315 X$ac_file : 'X\(//\)$' \| \
31316 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31322 /^X\(\/\/\)[^/].*/{
31334 s/.*/./; q'`/stamp-h$_am_stamp_count
31337 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31338 echo "$as_me: executing $ac_file commands" >&6;}
31343 case $ac_file$ac_mode in
31344 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31345 # Strip MF so we end up with the name of the file.
31346 mf=`echo "$mf" | sed -e 's/:.*$//'`
31347 # Check whether this is an Automake generated Makefile or not.
31348 # We used to match only the files named `Makefile.in', but
31349 # some people rename them; so instead we look at the file content.
31350 # Grep'ing the first line is not enough: some people post-process
31351 # each Makefile.in and add a new line on top of each file to say so.
31352 # So let's grep whole file.
31353 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31354 dirpart=`$as_dirname -- "$mf" ||
31355 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31356 X"$mf" : 'X\(//\)[^/]' \| \
31357 X"$mf" : 'X\(//\)$' \| \
31358 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31364 /^X\(\/\/\)[^/].*/{
31380 # Extract the definition of DEPDIR, am__include, and am__quote
31381 # from the Makefile without running `make'.
31382 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31383 test -z "$DEPDIR" && continue
31384 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31385 test -z "am__include" && continue
31386 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31387 # When using ansi2knr, U may be empty or an underscore; expand it
31388 U=`sed -n 's/^U = //p' < "$mf"`
31389 # Find all dependency output files, they are included files with
31390 # $(DEPDIR) in their names. We invoke sed twice because it is the
31391 # simplest approach to changing $(DEPDIR) to its actual value in the
31393 for file in `sed -n "
31394 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31395 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31396 # Make sure the directory exists.
31397 test -f "$dirpart/$file" && continue
31398 fdir=`$as_dirname -- "$file" ||
31399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31400 X"$file" : 'X\(//\)[^/]' \| \
31401 X"$file" : 'X\(//\)$' \| \
31402 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31408 /^X\(\/\/\)[^/].*/{
31421 { as_dir=$dirpart/$fdir
31423 -*) as_dir=./$as_dir;;
31425 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31429 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31430 *) as_qdir=$as_dir;;
31432 as_dirs="'$as_qdir' $as_dirs"
31433 as_dir=`$as_dirname -- "$as_dir" ||
31434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31435 X"$as_dir" : 'X\(//\)[^/]' \| \
31436 X"$as_dir" : 'X\(//\)$' \| \
31437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31443 /^X\(\/\/\)[^/].*/{
31456 test -d "$as_dir" && break
31458 test -z "$as_dirs" || eval "mkdir $as_dirs"
31459 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31460 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31461 { (exit 1); exit 1; }; }; }
31462 # echo "creating $dirpart/$file"
31463 echo '# dummy' > "$dirpart/$file"
31472 { (exit 0); exit 0; }
31474 chmod +x $CONFIG_STATUS
31475 ac_clean_files=$ac_clean_files_save
31478 # configure is writing to config.log, and then calls config.status.
31479 # config.status does its own redirection, appending to config.log.
31480 # Unfortunately, on DOS this fails, as config.log is still kept open
31481 # by configure, so config.status won't be able to write to it; its
31482 # output is simply discarded. So we exec the FD to /dev/null,
31483 # effectively closing config.log, so it can be properly (re)opened and
31484 # appended to by config.status. When coming back to configure, we
31485 # need to make the FD available again.
31486 if test "$no_create" != yes; then
31488 ac_config_status_args=
31489 test "$silent" = yes &&
31490 ac_config_status_args="$ac_config_status_args --quiet"
31492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31495 # would make configure fail if this is the last instruction.
31496 $ac_cs_success || { (exit 1); exit 1; }