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 lt_prog_compiler_no_builtin_flag=
8708 if test "$GCC" = yes; then
8709 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8712 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8713 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8714 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 lt_cv_prog_compiler_rtti_exceptions=no
8718 ac_outfile=conftest.$ac_objext
8719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8720 lt_compiler_flag="-fno-rtti -fno-exceptions"
8721 # Insert the option either (1) after the last *FLAGS variable, or
8722 # (2) before a word containing "conftest.", or (3) at the end.
8723 # Note that $ac_compile itself does not contain backslashes and begins
8724 # with a dollar sign (not a hyphen), so the echo should work correctly.
8725 # The option is referenced via a variable to avoid confusing sed.
8726 lt_compile=`echo "$ac_compile" | $SED \
8727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8729 -e 's:$: $lt_compiler_flag:'`
8730 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8731 (eval "$lt_compile" 2>conftest.err)
8733 cat conftest.err >&5
8734 echo "$as_me:__oline__: \$? = $ac_status" >&5
8735 if (exit $ac_status) && test -s "$ac_outfile"; then
8736 # The compiler can only warn and ignore the option if not recognized
8737 # So say no if there are warnings other than the usual output.
8738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8741 lt_cv_prog_compiler_rtti_exceptions=yes
8747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8748 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8751 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8758 lt_prog_compiler_wl=
8759 lt_prog_compiler_pic=
8760 lt_prog_compiler_static=
8762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8765 if test "$GCC" = yes; then
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_static='-static'
8771 # All AIX code is PIC.
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 now supports IA64 processor
8774 lt_prog_compiler_static='-Bstatic'
8779 # FIXME: we need at least 68020 code to build shared libraries, but
8780 # adding the `-m68020' flag to GCC prevents building anything better,
8782 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8785 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8786 # PIC is the default for these OSes.
8789 mingw* | cygwin* | pw32* | os2*)
8790 # This hack is so that the source file can tell whether it is being
8791 # built for inclusion in a dll (and should export symbols for example).
8792 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8793 # (--disable-auto-import) libraries
8794 lt_prog_compiler_pic='-DDLL_EXPORT'
8797 darwin* | rhapsody*)
8798 # PIC is the default on this platform
8799 # Common symbols not allowed in MH_DYLIB files
8800 lt_prog_compiler_pic='-fno-common'
8804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8805 # Instead, we relocate shared libraries at runtime.
8809 # Just because we use GCC doesn't mean we suddenly get shared libraries
8810 # on systems that don't support them.
8811 lt_prog_compiler_can_build_shared=no
8816 if test -d /usr/nec; then
8817 lt_prog_compiler_pic=-Kconform_pic
8822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8829 lt_prog_compiler_pic='-fPIC'
8835 lt_prog_compiler_pic='-fPIC'
8839 # PORTME Check for flag to pass linker flags through the system compiler.
8842 lt_prog_compiler_wl='-Wl,'
8843 if test "$host_cpu" = ia64; then
8844 # AIX 5 now supports IA64 processor
8845 lt_prog_compiler_static='-Bstatic'
8847 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8851 # PIC is the default on this platform
8852 # Common symbols not allowed in MH_DYLIB files
8853 case $cc_basename in
8855 lt_prog_compiler_pic='-qnocommon'
8856 lt_prog_compiler_wl='-Wl,'
8861 mingw* | cygwin* | pw32* | os2*)
8862 # This hack is so that the source file can tell whether it is being
8863 # built for inclusion in a dll (and should export symbols for example).
8864 lt_prog_compiler_pic='-DDLL_EXPORT'
8867 hpux9* | hpux10* | hpux11*)
8868 lt_prog_compiler_wl='-Wl,'
8869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8876 lt_prog_compiler_pic='+Z'
8879 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8880 lt_prog_compiler_static='${wl}-a ${wl}archive'
8883 irix5* | irix6* | nonstopux*)
8884 lt_prog_compiler_wl='-Wl,'
8885 # PIC (with -KPIC) is the default.
8886 lt_prog_compiler_static='-non_shared'
8890 lt_prog_compiler_pic='-KPIC'
8891 lt_prog_compiler_static='-Bstatic'
8894 linux* | k*bsd*-gnu)
8895 case $cc_basename in
8897 lt_prog_compiler_wl='-Wl,'
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-static'
8901 pgcc* | pgf77* | pgf90* | pgf95*)
8902 # Portland Group compilers (*not* the Pentium gcc compiler,
8903 # which looks to be a dead project)
8904 lt_prog_compiler_wl='-Wl,'
8905 lt_prog_compiler_pic='-fpic'
8906 lt_prog_compiler_static='-Bstatic'
8909 lt_prog_compiler_wl='-Wl,'
8910 # All Alpha code is PIC.
8911 lt_prog_compiler_static='-non_shared'
8914 case `$CC -V 2>&1 | sed 5q` in
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 lt_prog_compiler_wl='-Wl,'
8922 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8923 lt_prog_compiler_pic='-KPIC'
8924 lt_prog_compiler_static='-Bstatic'
8925 lt_prog_compiler_wl=''
8932 osf3* | osf4* | osf5*)
8933 lt_prog_compiler_wl='-Wl,'
8934 # All OSF/1 code is PIC.
8935 lt_prog_compiler_static='-non_shared'
8939 lt_prog_compiler_static='-non_shared'
8943 lt_prog_compiler_pic='-KPIC'
8944 lt_prog_compiler_static='-Bstatic'
8945 case $cc_basename in
8947 lt_prog_compiler_wl='-Qoption ld ';;
8949 lt_prog_compiler_wl='-Wl,';;
8954 lt_prog_compiler_wl='-Qoption ld '
8955 lt_prog_compiler_pic='-PIC'
8956 lt_prog_compiler_static='-Bstatic'
8959 sysv4 | sysv4.2uw2* | sysv4.3*)
8960 lt_prog_compiler_wl='-Wl,'
8961 lt_prog_compiler_pic='-KPIC'
8962 lt_prog_compiler_static='-Bstatic'
8966 if test -d /usr/nec ;then
8967 lt_prog_compiler_pic='-Kconform_pic'
8968 lt_prog_compiler_static='-Bstatic'
8972 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8973 lt_prog_compiler_wl='-Wl,'
8974 lt_prog_compiler_pic='-KPIC'
8975 lt_prog_compiler_static='-Bstatic'
8979 lt_prog_compiler_wl='-Wl,'
8980 lt_prog_compiler_can_build_shared=no
8984 lt_prog_compiler_pic='-pic'
8985 lt_prog_compiler_static='-Bstatic'
8989 lt_prog_compiler_can_build_shared=no
8994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8995 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8998 # Check to make sure the PIC flag actually works.
9000 if test -n "$lt_prog_compiler_pic"; then
9002 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9003 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9004 if test "${lt_prog_compiler_pic_works+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 lt_prog_compiler_pic_works=no
9008 ac_outfile=conftest.$ac_objext
9009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9010 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9011 # Insert the option either (1) after the last *FLAGS variable, or
9012 # (2) before a word containing "conftest.", or (3) at the end.
9013 # Note that $ac_compile itself does not contain backslashes and begins
9014 # with a dollar sign (not a hyphen), so the echo should work correctly.
9015 # The option is referenced via a variable to avoid confusing sed.
9016 lt_compile=`echo "$ac_compile" | $SED \
9017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9019 -e 's:$: $lt_compiler_flag:'`
9020 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9021 (eval "$lt_compile" 2>conftest.err)
9023 cat conftest.err >&5
9024 echo "$as_me:__oline__: \$? = $ac_status" >&5
9025 if (exit $ac_status) && test -s "$ac_outfile"; then
9026 # The compiler can only warn and ignore the option if not recognized
9027 # So say no if there are warnings other than the usual output.
9028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9031 lt_prog_compiler_pic_works=yes
9037 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9038 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9040 if test x"$lt_prog_compiler_pic_works" = xyes; then
9041 case $lt_prog_compiler_pic in
9043 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9046 lt_prog_compiler_pic=
9047 lt_prog_compiler_can_build_shared=no
9052 # For platforms which do not support PIC, -DPIC is meaningless:
9054 lt_prog_compiler_pic=
9057 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9062 # Check to make sure the static flag actually works.
9064 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9065 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9066 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9067 if test "${lt_prog_compiler_static_works+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 lt_prog_compiler_static_works=no
9071 save_LDFLAGS="$LDFLAGS"
9072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9075 # The linker can only warn and ignore the option if not recognized
9076 # So say no if there are warnings
9077 if test -s conftest.err; then
9078 # Append any errors to the config.log.
9079 cat conftest.err 1>&5
9080 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9082 if diff conftest.exp conftest.er2 >/dev/null; then
9083 lt_prog_compiler_static_works=yes
9086 lt_prog_compiler_static_works=yes
9090 LDFLAGS="$save_LDFLAGS"
9093 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9094 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9096 if test x"$lt_prog_compiler_static_works" = xyes; then
9099 lt_prog_compiler_static=
9103 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9105 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 lt_cv_prog_compiler_c_o=no
9109 $rm -r conftest 2>/dev/null
9113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9115 lt_compiler_flag="-o out/conftest2.$ac_objext"
9116 # Insert the option either (1) after the last *FLAGS variable, or
9117 # (2) before a word containing "conftest.", or (3) at the end.
9118 # Note that $ac_compile itself does not contain backslashes and begins
9119 # with a dollar sign (not a hyphen), so the echo should work correctly.
9120 lt_compile=`echo "$ac_compile" | $SED \
9121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123 -e 's:$: $lt_compiler_flag:'`
9124 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9125 (eval "$lt_compile" 2>out/conftest.err)
9127 cat out/conftest.err >&5
9128 echo "$as_me:__oline__: \$? = $ac_status" >&5
9129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9131 # The compiler can only warn and ignore the option if not recognized
9132 # So say no if there are warnings
9133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9136 lt_cv_prog_compiler_c_o=yes
9141 # SGI C++ compiler will create directory out/ii_files/ for
9142 # template instantiation
9143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9144 $rm out/* && rmdir out
9150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9154 hard_links="nottested"
9155 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9156 # do not overwrite the value of need_locks provided by the user
9157 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9163 ln conftest.a conftest.b 2>&5 || hard_links=no
9164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9165 { echo "$as_me:$LINENO: result: $hard_links" >&5
9166 echo "${ECHO_T}$hard_links" >&6; }
9167 if test "$hard_links" = no; then
9168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9176 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9180 allow_undefined_flag=
9181 enable_shared_with_static_runtimes=no
9183 archive_expsym_cmds=
9184 old_archive_From_new_cmds=
9185 old_archive_from_expsyms_cmds=
9186 export_dynamic_flag_spec=
9187 whole_archive_flag_spec=
9188 thread_safe_flag_spec=
9189 hardcode_libdir_flag_spec=
9190 hardcode_libdir_flag_spec_ld=
9191 hardcode_libdir_separator=
9194 hardcode_shlibpath_var=unsupported
9195 link_all_deplibs=unknown
9196 hardcode_automatic=no
9199 always_export_symbols=no
9200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9201 # include_expsyms should be a list of space-separated symbols to be *always*
9202 # included in the symbol list
9204 # exclude_expsyms can be an extended regexp of symbols to exclude
9205 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9206 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9207 # as well as any symbol that contains `d'.
9208 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9209 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9210 # platforms (ab)use it in PIC code, but their linkers get confused if
9211 # the symbol is explicitly referenced. Since portable code cannot
9212 # rely on this symbol name, it's probably fine to never include it in
9213 # preloaded symbol tables.
9214 extract_expsyms_cmds=
9215 # Just being paranoid about ensuring that cc_basename is set.
9216 for cc_temp in $compiler""; do
9218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9227 cygwin* | mingw* | pw32*)
9228 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9229 # When not using gcc, we currently assume that we are using
9230 # Microsoft Visual C++.
9231 if test "$GCC" != yes; then
9236 # we just hope/assume this is gcc and not c89 (= MSVC++)
9245 if test "$with_gnu_ld" = yes; then
9246 # If archive_cmds runs LD, not CC, wlarc should be empty
9249 # Set some defaults for GNU ld with shared library support. These
9250 # are reset later if shared libraries are not supported. Putting them
9251 # here allows them to be overridden if necessary.
9252 runpath_var=LD_RUN_PATH
9253 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9254 export_dynamic_flag_spec='${wl}--export-dynamic'
9255 # ancient GNU ld didn't support --whole-archive et. al.
9256 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9257 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9259 whole_archive_flag_spec=
9261 supports_anon_versioning=no
9262 case `$LD -v 2>/dev/null` in
9263 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9266 *\ 2.11.*) ;; # other 2.11 versions
9267 *) supports_anon_versioning=yes ;;
9270 # See if GNU ld supports shared libraries.
9272 aix3* | aix4* | aix5*)
9273 # On AIX/PPC, the GNU linker is very broken
9274 if test "$host_cpu" != ia64; then
9278 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9279 *** to be unable to reliably create shared libraries on AIX.
9280 *** Therefore, libtool is disabling shared libraries support. If you
9281 *** really care for shared libraries, you may want to modify your PATH
9282 *** so that a non-GNU linker is found, and then restart.
9289 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)'
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9293 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9294 # that the semantics of dynamic libraries on AmigaOS, at least up
9295 # to version 4, is to share data among multiple programs linked
9296 # with the same dynamic library. Since this doesn't match the
9297 # behavior of shared libraries on other platforms, we can't use
9303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9304 allow_undefined_flag=unsupported
9305 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9306 # support --undefined. This deserves some investigation. FIXME
9307 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 cygwin* | mingw* | pw32*)
9314 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9315 # as there is no search path for DLLs.
9316 hardcode_libdir_flag_spec='-L$libdir'
9317 allow_undefined_flag=unsupported
9318 always_export_symbols=no
9319 enable_shared_with_static_runtimes=yes
9320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9322 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9324 # If the export-symbols file already is a .def file (1st line
9325 # is EXPORTS), use it as is; otherwise, prepend...
9326 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9327 cp $export_symbols $output_objdir/$soname.def;
9329 echo EXPORTS > $output_objdir/$soname.def;
9330 cat $export_symbols >> $output_objdir/$soname.def;
9332 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9340 hardcode_shlibpath_var=no
9341 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9342 export_dynamic_flag_spec='${wl}-E'
9343 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9344 # Instead, shared libraries are loaded at an image base (0x10000000 by
9345 # default) and relocated if they conflict, which is a slow very memory
9346 # consuming and fragmenting process. To avoid this, we pick a random,
9347 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9348 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9350 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'
9353 gnu* | linux* | k*bsd*-gnu)
9354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9356 case $cc_basename,$host_cpu in
9357 pgcc*) # Portland Group C compiler
9358 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'
9359 tmp_addflag=' $pic_flag'
9361 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9364 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9365 tmp_addflag=' -i_dynamic' ;;
9366 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9367 tmp_addflag=' -i_dynamic -nofor_main' ;;
9368 ifc* | ifort*) # Intel Fortran compiler
9369 tmp_addflag=' -nofor_main' ;;
9371 case `$CC -V 2>&1 | sed 5q` in
9372 *Sun\ C*) # Sun C 5.9
9373 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'
9374 tmp_sharedflag='-G' ;;
9375 *Sun\ F*) # Sun Fortran 8.3
9376 tmp_sharedflag='-G' ;;
9378 tmp_sharedflag='-shared' ;;
9380 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382 if test $supports_anon_versioning = yes; then
9383 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9385 $echo "local: *; };" >> $output_objdir/$libname.ver~
9386 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9394 netbsd* | netbsdelf*-gnu)
9395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9396 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9405 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9409 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9410 *** create shared libraries on Solaris systems. Therefore, libtool
9411 *** is disabling shared libraries support. We urge you to upgrade GNU
9412 *** binutils to release 2.9.1 or newer. Another option is to modify
9413 *** your PATH or compiler configuration so that the native linker is
9414 *** used, and then restart.
9417 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9426 case `$LD -v 2>&1` in
9427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9431 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9432 *** reliably create shared libraries on SCO systems. Therefore, libtool
9433 *** is disabling shared libraries support. We urge you to upgrade GNU
9434 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9435 *** your PATH or compiler configuration so that the native linker is
9436 *** used, and then restart.
9441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9442 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9453 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_shlibpath_var=no
9460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9469 if test "$ld_shlibs" = no; then
9471 hardcode_libdir_flag_spec=
9472 export_dynamic_flag_spec=
9473 whole_archive_flag_spec=
9476 # PORTME fill in a description of your system's linker (not GNU ld)
9479 allow_undefined_flag=unsupported
9480 always_export_symbols=yes
9481 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'
9482 # Note: this linker hardcodes the directories in LIBPATH if there
9483 # are no directories specified by -L.
9484 hardcode_minus_L=yes
9485 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9486 # Neither direct hardcoding nor static linking is supported with a
9488 hardcode_direct=unsupported
9493 if test "$host_cpu" = ia64; then
9494 # On IA64, the linker does run time linking by default, so we don't
9495 # have to do anything special.
9496 aix_use_runtimelinking=no
9497 exp_sym_flag='-Bexport'
9500 # If we're using GNU nm, then we don't want the "-C" option.
9501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9503 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'
9505 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'
9507 aix_use_runtimelinking=no
9509 # Test if we are trying to use run time linking or normal
9510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9511 # need to do runtime linking.
9512 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9513 for ld_flag in $LDFLAGS; do
9514 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9515 aix_use_runtimelinking=yes
9522 exp_sym_flag='-bexport'
9523 no_entry_flag='-bnoentry'
9526 # When large executables or shared objects are built, AIX ld can
9527 # have problems creating the table of contents. If linking a library
9528 # or program results in "error TOC overflow" add -mminimal-toc to
9529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9534 hardcode_libdir_separator=':'
9535 link_all_deplibs=yes
9537 if test "$GCC" = yes; then
9538 case $host_os in aix4.[012]|aix4.[012].*)
9539 # We only want to do this on AIX 4.2 and lower, the check
9540 # below for broken collect2 doesn't work under 4.3+
9541 collect2name=`${CC} -print-prog-name=collect2`
9542 if test -f "$collect2name" && \
9543 strings "$collect2name" | grep resolve_lib_name >/dev/null
9545 # We have reworked collect2
9548 # We have old collect2
9549 hardcode_direct=unsupported
9550 # It fails to find uninstalled libraries when the uninstalled
9551 # path is not listed in the libpath. Setting hardcode_minus_L
9552 # to unsupported forces relinking
9553 hardcode_minus_L=yes
9554 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_libdir_separator=
9559 shared_flag='-shared'
9560 if test "$aix_use_runtimelinking" = yes; then
9561 shared_flag="$shared_flag "'${wl}-G'
9565 if test "$host_cpu" = ia64; then
9566 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9567 # chokes on -Wl,-G. The following line is correct:
9570 if test "$aix_use_runtimelinking" = yes; then
9571 shared_flag='${wl}-G'
9573 shared_flag='${wl}-bM:SRE'
9578 # It seems that -bexpall does not export symbols beginning with
9579 # underscore (_), so it is better to generate a list of symbols to export.
9580 always_export_symbols=yes
9581 if test "$aix_use_runtimelinking" = yes; then
9582 # Warning - without using the other runtime loading flags (-brtl),
9583 # -berok will link without error, but may produce a broken library.
9584 allow_undefined_flag='-berok'
9585 # Determine the default libpath from the value encoded in an empty executable.
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest$ac_exeext &&
9618 $as_test_x conftest$ac_exeext; then
9620 lt_aix_libpath_sed='
9621 /Import File Strings/,/^$/ {
9627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9628 # Check for a 64-bit object if we didn't find anything.
9629 if test -z "$aix_libpath"; then
9630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640 conftest$ac_exeext conftest.$ac_ext
9641 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9643 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9644 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"
9646 if test "$host_cpu" = ia64; then
9647 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9648 allow_undefined_flag="-z nodefs"
9649 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"
9651 # Determine the default libpath from the value encoded in an empty executable.
9652 cat >conftest.$ac_ext <<_ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (ac_try="$ac_link"
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_link") 2>conftest.er1
9676 grep -v '^ *+' conftest.er1 >conftest.err
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && {
9681 test -z "$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 } && test -s conftest$ac_exeext &&
9684 $as_test_x conftest$ac_exeext; then
9686 lt_aix_libpath_sed='
9687 /Import File Strings/,/^$/ {
9693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694 # Check for a 64-bit object if we didn't find anything.
9695 if test -z "$aix_libpath"; then
9696 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9706 conftest$ac_exeext conftest.$ac_ext
9707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9710 # Warning - without using the other run time loading flags,
9711 # -berok will link without error, but may produce a broken library.
9712 no_undefined_flag=' ${wl}-bernotok'
9713 allow_undefined_flag=' ${wl}-berok'
9714 # Exported symbols can be pulled into shared objects from archives
9715 whole_archive_flag_spec='$convenience'
9716 archive_cmds_need_lc=yes
9717 # This is similar to how AIX traditionally builds its shared libraries.
9718 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'
9724 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)'
9725 hardcode_libdir_flag_spec='-L$libdir'
9726 hardcode_minus_L=yes
9727 # see comment about different semantics on the GNU ld section
9732 export_dynamic_flag_spec=-rdynamic
9735 cygwin* | mingw* | pw32*)
9736 # When not using gcc, we currently assume that we are using
9737 # Microsoft Visual C++.
9738 # hardcode_libdir_flag_spec is actually meaningless, as there is
9739 # no search path for DLLs.
9740 hardcode_libdir_flag_spec=' '
9741 allow_undefined_flag=unsupported
9742 # Tell ltmain to make .lib files, not .a files.
9744 # Tell ltmain to make .dll files, not .so files.
9746 # FIXME: Setting linknames here is a bad hack.
9747 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9748 # The linker will automatically build a .lib file if we build a DLL.
9749 old_archive_From_new_cmds='true'
9750 # FIXME: Should let the user specify the lib program.
9751 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9752 fix_srcfile_path='`cygpath -w "$srcfile"`'
9753 enable_shared_with_static_runtimes=yes
9756 darwin* | rhapsody*)
9758 rhapsody* | darwin1.[012])
9759 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9762 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9763 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9765 case ${MACOSX_DEPLOYMENT_TARGET} in
9767 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9770 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9776 archive_cmds_need_lc=no
9778 hardcode_automatic=yes
9779 hardcode_shlibpath_var=unsupported
9780 whole_archive_flag_spec=''
9781 link_all_deplibs=yes
9782 if test "$GCC" = yes ; then
9783 output_verbose_link_cmd='echo'
9784 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9785 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9786 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9787 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}'
9788 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}'
9790 case $cc_basename in
9792 output_verbose_link_cmd='echo'
9793 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9794 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9795 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9796 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}'
9797 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}'
9807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808 hardcode_libdir_flag_spec='-L$libdir'
9809 hardcode_shlibpath_var=no
9816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9817 # support. Future versions do this automatically, but an explicit c++rt0.o
9818 # does not break anything, and helps significantly (at the cost of a little
9821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9822 hardcode_libdir_flag_spec='-R$libdir'
9824 hardcode_shlibpath_var=no
9827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_minus_L=yes
9832 hardcode_shlibpath_var=no
9835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9836 freebsd* | dragonfly*)
9837 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9838 hardcode_libdir_flag_spec='-R$libdir'
9840 hardcode_shlibpath_var=no
9844 if test "$GCC" = yes; then
9845 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'
9847 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'
9849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9850 hardcode_libdir_separator=:
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L=yes
9856 export_dynamic_flag_spec='${wl}-E'
9860 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9861 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9865 if test "$with_gnu_ld" = no; then
9866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9867 hardcode_libdir_separator=:
9870 export_dynamic_flag_spec='${wl}-E'
9872 # hardcode_minus_L: Not really in the search PATH,
9873 # but as the default location of the library.
9874 hardcode_minus_L=yes
9879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9882 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9885 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9888 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9900 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904 if test "$with_gnu_ld" = no; then
9905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9906 hardcode_libdir_separator=:
9910 hardcode_libdir_flag_spec_ld='+b $libdir'
9912 hardcode_shlibpath_var=no
9916 export_dynamic_flag_spec='${wl}-E'
9918 # hardcode_minus_L: Not really in the search PATH,
9919 # but as the default location of the library.
9920 hardcode_minus_L=yes
9926 irix5* | irix6* | nonstopux*)
9927 if test "$GCC" = yes; then
9928 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'
9930 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'
9931 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9934 hardcode_libdir_separator=:
9935 link_all_deplibs=yes
9938 netbsd* | netbsdelf*-gnu)
9939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9942 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9944 hardcode_libdir_flag_spec='-R$libdir'
9946 hardcode_shlibpath_var=no
9950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9953 hardcode_libdir_separator=:
9954 hardcode_shlibpath_var=no
9958 if test -f /usr/libexec/ld.so; then
9960 hardcode_shlibpath_var=no
9961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9963 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9965 export_dynamic_flag_spec='${wl}-E'
9968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_libdir_flag_spec='-R$libdir'
9973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_minus_L=yes
9986 allow_undefined_flag=unsupported
9987 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'
9988 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9992 if test "$GCC" = yes; then
9993 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9994 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'
9996 allow_undefined_flag=' -expect_unresolved \*'
9997 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'
9999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10000 hardcode_libdir_separator=:
10003 osf4* | osf5*) # as osf3* with the addition of -msym flag
10004 if test "$GCC" = yes; then
10005 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10006 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'
10007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10009 allow_undefined_flag=' -expect_unresolved \*'
10010 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'
10011 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10012 $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'
10014 # Both c and cxx compiler support -rpath directly
10015 hardcode_libdir_flag_spec='-rpath $libdir'
10017 hardcode_libdir_separator=:
10021 no_undefined_flag=' -z text'
10022 if test "$GCC" = yes; then
10024 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10026 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10029 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10033 hardcode_libdir_flag_spec='-R$libdir'
10034 hardcode_shlibpath_var=no
10036 solaris2.[0-5] | solaris2.[0-5].*) ;;
10038 # The compiler driver will combine and reorder linker options,
10039 # but understands `-z linker_flag'. GCC discards it without `$wl',
10040 # but is careful enough not to reorder.
10041 # Supported since Solaris 2.6 (maybe 2.5.1?)
10042 if test "$GCC" = yes; then
10043 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10045 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10049 link_all_deplibs=yes
10053 if test "x$host_vendor" = xsequent; then
10054 # Use $CC to link under sequent, because it throws in some extra .o
10055 # files that make .init and .fini sections work.
10056 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_libdir_flag_spec='-L$libdir'
10061 hardcode_direct=yes
10062 hardcode_minus_L=yes
10063 hardcode_shlibpath_var=no
10067 case $host_vendor in
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_direct=yes # is this really true???
10073 ## LD is ld it makes a PLAMLIB
10074 ## CC just makes a GrossModule.
10075 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10076 reload_cmds='$CC -r -o $output$reload_objs'
10080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10084 runpath_var='LD_RUN_PATH'
10085 hardcode_shlibpath_var=no
10089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090 hardcode_shlibpath_var=no
10091 export_dynamic_flag_spec='-Bexport'
10095 if test -d /usr/nec; then
10096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097 hardcode_shlibpath_var=no
10098 runpath_var=LD_RUN_PATH
10099 hardcode_runpath_var=yes
10104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10105 no_undefined_flag='${wl}-z,text'
10106 archive_cmds_need_lc=no
10107 hardcode_shlibpath_var=no
10108 runpath_var='LD_RUN_PATH'
10110 if test "$GCC" = yes; then
10111 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 sysv5* | sco3.2v5* | sco5v6*)
10120 # Note: We can NOT use -z defs as we might desire, because we do not
10121 # link with -lc, and that would cause any symbols used from libc to
10122 # always be unresolved, which means just about no library would
10123 # ever link correctly. If we're not using GNU ld we use -z text
10124 # though, which does catch some bad symbols but isn't as heavy-handed
10126 no_undefined_flag='${wl}-z,text'
10127 allow_undefined_flag='${wl}-z,nodefs'
10128 archive_cmds_need_lc=no
10129 hardcode_shlibpath_var=no
10130 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10131 hardcode_libdir_separator=':'
10132 link_all_deplibs=yes
10133 export_dynamic_flag_spec='${wl}-Bexport'
10134 runpath_var='LD_RUN_PATH'
10136 if test "$GCC" = yes; then
10137 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_libdir_flag_spec='-L$libdir'
10148 hardcode_shlibpath_var=no
10157 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10158 echo "${ECHO_T}$ld_shlibs" >&6; }
10159 test "$ld_shlibs" = no && can_build_shared=no
10162 # Do we need to explicitly link libc?
10164 case "x$archive_cmds_need_lc" in
10166 # Assume -lc should be added
10167 archive_cmds_need_lc=yes
10169 if test "$enable_shared" = yes && test "$GCC" = yes; then
10170 case $archive_cmds in
10172 # FIXME: we may have to deal with multi-command sequences.
10175 # Test whether the compiler implicitly links with -lc since on some
10176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10177 # to ld, don't add -lc before -lgcc.
10178 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184 (eval $ac_compile) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } 2>conftest.err; then
10190 libobjs=conftest.$ac_objext
10192 wl=$lt_prog_compiler_wl
10193 pic_flag=$lt_prog_compiler_pic
10199 lt_save_allow_undefined_flag=$allow_undefined_flag
10200 allow_undefined_flag=
10201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10202 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }
10207 archive_cmds_need_lc=no
10209 archive_cmds_need_lc=yes
10211 allow_undefined_flag=$lt_save_allow_undefined_flag
10213 cat conftest.err 1>&5
10216 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10217 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10226 library_names_spec=
10227 libname_spec='lib$name'
10231 postuninstall_cmds=
10235 shlibpath_overrides_runpath=unknown
10237 dynamic_linker="$host_os ld.so"
10238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10240 if test "$GCC" = yes; then
10242 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10243 *) lt_awk_arg="/^libraries:/" ;;
10245 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10246 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10247 # if the path contains ";" then we assume it to be the separator
10248 # otherwise default to the standard path separator (i.e. ":") - it is
10249 # assumed that no part of a normal pathname contains ";" but that should
10250 # okay in the real world where ";" in dirpaths is itself problematic.
10251 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10253 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10255 # Ok, now we have the path, separated by spaces, we can step through it
10256 # and add multilib dir if necessary.
10257 lt_tmp_lt_search_path_spec=
10258 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10259 for lt_sys_path in $lt_search_path_spec; do
10260 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10263 test -d "$lt_sys_path" && \
10264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10267 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10268 BEGIN {RS=" "; FS="/|\n";} {
10271 for (lt_i = NF; lt_i > 0; lt_i--) {
10272 if ($lt_i != "" && $lt_i != ".") {
10273 if ($lt_i == "..") {
10276 if (lt_count == 0) {
10277 lt_foo="/" $lt_i lt_foo;
10284 if (lt_foo != "") { lt_freq[lt_foo]++; }
10285 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10287 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10291 need_lib_prefix=unknown
10292 hardcode_into_libs=no
10294 # when you set need_version to no, make sure it does not cause -set_version
10295 # flags to be left without arguments
10296 need_version=unknown
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10302 shlibpath_var=LIBPATH
10304 # AIX 3 has no versioning support, so we append a major version to the name.
10305 soname_spec='${libname}${release}${shared_ext}$major'
10312 hardcode_into_libs=yes
10313 if test "$host_cpu" = ia64; then
10314 # AIX 5 supports IA64
10315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10316 shlibpath_var=LD_LIBRARY_PATH
10318 # With GCC up to 2.95.x, collect2 would create an import file
10319 # for dependence libraries. The import file would start with
10320 # the line `#! .'. This would cause the generated library to
10321 # depend on `.', always an invalid library. This was fixed in
10322 # development snapshots of GCC prior to 3.0.
10324 aix4 | aix4.[01] | aix4.[01].*)
10325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10327 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10330 can_build_shared=no
10334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10335 # soname into executable. Probably we can add versioning support to
10336 # collect2, so additional links can be useful in future.
10337 if test "$aix_use_runtimelinking" = yes; then
10338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10339 # instead of lib<name>.a to let people know that these are not
10340 # typical AIX shared libraries.
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 # We preserve .a as extension for shared libraries through AIX4.2
10344 # and later when we are not doing run time linking.
10345 library_names_spec='${libname}${release}.a $libname.a'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LIBPATH
10353 library_names_spec='$libname.ixlibrary $libname.a'
10354 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10355 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'
10359 library_names_spec='${libname}${shared_ext}'
10360 dynamic_linker="$host_os ld.so"
10361 shlibpath_var=LIBRARY_PATH
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10372 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10373 # the default ld.so.conf also contains /usr/contrib/lib and
10374 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10375 # libtool to hard-code these into programs
10378 cygwin* | mingw* | pw32*)
10379 version_type=windows
10384 case $GCC,$host_os in
10385 yes,cygwin* | yes,mingw* | yes,pw32*)
10386 library_names_spec='$libname.dll.a'
10387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10388 postinstall_cmds='base_file=`basename \${file}`~
10389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10390 dldir=$destdir/`dirname \$dlpath`~
10391 test -d \$dldir || mkdir -p \$dldir~
10392 $install_prog $dir/$dlname \$dldir/$dlname~
10393 chmod a+x \$dldir/$dlname'
10394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10395 dlpath=$dir/\$dldll~
10397 shlibpath_overrides_runpath=yes
10401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10402 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10403 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10406 # MinGW DLLs use traditional 'lib' prefix
10407 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10409 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10410 # It is most probably a Windows format PATH printed by
10411 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10412 # path with ; separators, and with drive letters. We can handle the
10413 # drive letters (cygwin fileutils understands them), so leave them,
10414 # especially as we might pass files found there to a mingw objdump,
10415 # which wouldn't understand a cygwinified path. Ahh.
10416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10422 # pw32 DLLs use 'pw' prefix rather than 'lib'
10423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10432 dynamic_linker='Win32 ld.exe'
10433 # FIXME: first we should search . and the directory the executable is in
10437 darwin* | rhapsody*)
10438 dynamic_linker="$host_os dyld"
10439 version_type=darwin
10442 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10443 soname_spec='${libname}${release}${major}$shared_ext'
10444 shlibpath_overrides_runpath=yes
10445 shlibpath_var=DYLD_LIBRARY_PATH
10446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10448 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 shlibpath_var=LD_LIBRARY_PATH
10465 freebsd* | dragonfly*)
10466 # DragonFly does not have aout. When/if they implement a new
10467 # versioning mechanism, adjust this.
10468 if test -x /usr/bin/objformat; then
10469 objformat=`/usr/bin/objformat`
10472 freebsd[123]*) objformat=aout ;;
10473 *) objformat=elf ;;
10476 version_type=freebsd-$objformat
10477 case $version_type in
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10488 shlibpath_var=LD_LIBRARY_PATH
10491 shlibpath_overrides_runpath=yes
10493 freebsd3.[01]* | freebsdelf3.[01]*)
10494 shlibpath_overrides_runpath=yes
10495 hardcode_into_libs=yes
10497 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10498 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10499 shlibpath_overrides_runpath=no
10500 hardcode_into_libs=yes
10502 *) # from 4.6 on, and DragonFly
10503 shlibpath_overrides_runpath=yes
10504 hardcode_into_libs=yes
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 hardcode_into_libs=yes
10519 hpux9* | hpux10* | hpux11*)
10520 # Give a soname corresponding to the major version so that dld.sl refuses to
10521 # link against other versions.
10528 hardcode_into_libs=yes
10529 dynamic_linker="$host_os dld.so"
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 if test "X$HPUX_IA64_MODE" = X32; then
10535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10543 hardcode_into_libs=yes
10544 dynamic_linker="$host_os dld.sl"
10545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10554 dynamic_linker="$host_os dld.sl"
10555 shlibpath_var=SHLIB_PATH
10556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10561 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10562 postinstall_cmds='chmod 555 $lib'
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=no
10574 hardcode_into_libs=yes
10577 irix5* | irix6* | nonstopux*)
10579 nonstopux*) version_type=nonstopux ;;
10581 if test "$lt_cv_prog_gnu_ld" = yes; then
10589 soname_spec='${libname}${release}${shared_ext}$major'
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10592 irix5* | nonstopux*)
10593 libsuff= shlibsuff=
10596 case $LD in # libtool.m4 will add one of these switches to LD
10597 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10598 libsuff= shlibsuff= libmagic=32-bit;;
10599 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10600 libsuff=32 shlibsuff=N32 libmagic=N32;;
10601 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10602 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10603 *) libsuff= shlibsuff= libmagic=never-match;;
10607 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10608 shlibpath_overrides_runpath=no
10609 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10610 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10611 hardcode_into_libs=yes
10614 # No shared lib support for Linux oldld, aout, or coff.
10615 linux*oldld* | linux*aout* | linux*coff*)
10619 # This must be Linux ELF.
10620 linux* | k*bsd*-gnu)
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=no
10629 # This implies no fast_install, which is unacceptable.
10630 # Some rework will be needed to allow for fast_install
10631 # before this can be enabled.
10632 hardcode_into_libs=yes
10634 # Append ld.so.conf contents to the search path
10635 if test -f /etc/ld.so.conf; then
10636 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' ' '`
10637 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10640 # We used to test for /lib/ld.so.1 and disable shared libraries on
10641 # powerpc, because MkLinux only supported shared libraries with the
10642 # GNU dynamic linker. Since this was broken with cross compilers,
10643 # most powerpc-linux boxes support dynamic linking these days and
10644 # people can always --disable-shared, the test was removed, and we
10645 # assume the GNU/Linux dynamic linker is in use.
10646 dynamic_linker='GNU/Linux ld.so'
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657 hardcode_into_libs=yes
10658 dynamic_linker='NetBSD ld.elf_so'
10665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10668 dynamic_linker='NetBSD (a.out) ld.so'
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 dynamic_linker='NetBSD ld.elf_so'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=yes
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath=yes
10698 sys_lib_dlsearch_path_spec="/usr/lib"
10700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10702 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10703 *) need_version=no ;;
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10710 openbsd2.[89] | openbsd2.[89].*)
10711 shlibpath_overrides_runpath=no
10714 shlibpath_overrides_runpath=yes
10718 shlibpath_overrides_runpath=yes
10723 libname_spec='$name'
10726 library_names_spec='$libname${shared_ext} $libname.a'
10727 dynamic_linker='OS/2 ld.exe'
10728 shlibpath_var=LIBPATH
10731 osf3* | osf4* | osf5*)
10735 soname_spec='${libname}${release}${shared_ext}$major'
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=yes
10754 hardcode_into_libs=yes
10755 # ldd complains unless libraries are executable
10756 postinstall_cmds='chmod +x $lib'
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=yes
10765 if test "$with_gnu_ld" = yes; then
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 case $host_vendor in
10778 shlibpath_overrides_runpath=no
10780 export_dynamic_flag_spec='${wl}-Blargedynsym'
10781 runpath_var=LD_RUN_PATH
10789 shlibpath_overrides_runpath=no
10790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10796 if test -d /usr/nec ;then
10798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10799 soname_spec='$libname${shared_ext}.$major'
10800 shlibpath_var=LD_LIBRARY_PATH
10804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10805 version_type=freebsd-elf
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 hardcode_into_libs=yes
10812 if test "$with_gnu_ld" = yes; then
10813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10814 shlibpath_overrides_runpath=no
10816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10817 shlibpath_overrides_runpath=yes
10820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10824 sys_lib_dlsearch_path_spec='/usr/lib'
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LD_LIBRARY_PATH
10838 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10839 echo "${ECHO_T}$dynamic_linker" >&6; }
10840 test "$dynamic_linker" = no && can_build_shared=no
10842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10843 if test "$GCC" = yes; then
10844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10847 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10850 if test -n "$hardcode_libdir_flag_spec" || \
10851 test -n "$runpath_var" || \
10852 test "X$hardcode_automatic" = "Xyes" ; then
10854 # We can hardcode non-existant directories.
10855 if test "$hardcode_direct" != no &&
10856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10857 # have to relink, otherwise we might link with an installed library
10858 # when we should be linking with a yet-to-be-installed one
10859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10860 test "$hardcode_minus_L" != no; then
10861 # Linking always hardcodes the temporary library directory.
10862 hardcode_action=relink
10864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10865 hardcode_action=immediate
10868 # We cannot hardcode anything, or else we can only hardcode existing
10870 hardcode_action=unsupported
10872 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10873 echo "${ECHO_T}$hardcode_action" >&6; }
10875 if test "$hardcode_action" = relink; then
10876 # Fast installation is not supported
10877 enable_fast_install=no
10878 elif test "$shlibpath_overrides_runpath" = yes ||
10879 test "$enable_shared" = no; then
10880 # Fast installation is not necessary
10881 enable_fast_install=needless
10886 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10888 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10891 { echo "$as_me:$LINENO: result: yes" >&5
10892 echo "${ECHO_T}yes" >&6; }
10894 # FIXME - insert some real tests, host_os isn't really good enough
10897 if test -n "$STRIP" ; then
10898 striplib="$STRIP -x"
10899 old_striplib="$STRIP -S"
10900 { echo "$as_me:$LINENO: result: yes" >&5
10901 echo "${ECHO_T}yes" >&6; }
10903 { echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6; }
10908 { echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6; }
10914 if test "x$enable_dlopen" != xyes; then
10915 enable_dlopen=unknown
10916 enable_dlopen_self=unknown
10917 enable_dlopen_self_static=unknown
10924 lt_cv_dlopen="load_add_on"
10926 lt_cv_dlopen_self=yes
10930 lt_cv_dlopen="LoadLibrary"
10935 lt_cv_dlopen="dlopen"
10940 # if libdl is installed we need to link against it
10941 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_check_lib_save_LIBS=$LIBS
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1 >conftest.err
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest$ac_exeext &&
10987 $as_test_x conftest$ac_exeext; then
10988 ac_cv_lib_dl_dlopen=yes
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 ac_cv_lib_dl_dlopen=no
10996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10997 conftest$ac_exeext conftest.$ac_ext
10998 LIBS=$ac_check_lib_save_LIBS
11000 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11001 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11002 if test $ac_cv_lib_dl_dlopen = yes; then
11003 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11006 lt_cv_dlopen="dyld"
11008 lt_cv_dlopen_self=yes
11015 { echo "$as_me:$LINENO: checking for shl_load" >&5
11016 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11017 if test "${ac_cv_func_shl_load+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11028 #define shl_load innocuous_shl_load
11030 /* System header to define __stub macros and hopefully few prototypes,
11031 which can conflict with char shl_load (); below.
11032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11033 <limits.h> exists even on freestanding compilers. */
11036 # include <limits.h>
11038 # include <assert.h>
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11050 /* The GNU C library defines this for functions which it implements
11051 to always fail with ENOSYS. Some functions are actually named
11052 something starting with __ and the normal name is an alias. */
11053 #if defined __stub_shl_load || defined __stub___shl_load
11060 return shl_load ();
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072 (eval "$ac_link") 2>conftest.er1
11074 grep -v '^ *+' conftest.er1 >conftest.err
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && {
11079 test -z "$ac_c_werror_flag" ||
11080 test ! -s conftest.err
11081 } && test -s conftest$ac_exeext &&
11082 $as_test_x conftest$ac_exeext; then
11083 ac_cv_func_shl_load=yes
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11088 ac_cv_func_shl_load=no
11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092 conftest$ac_exeext conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11095 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11096 if test $ac_cv_func_shl_load = yes; then
11097 lt_cv_dlopen="shl_load"
11099 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11100 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11101 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 ac_check_lib_save_LIBS=$LIBS
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11123 return shl_load ();
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest$ac_exeext &&
11145 $as_test_x conftest$ac_exeext; then
11146 ac_cv_lib_dld_shl_load=yes
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 ac_cv_lib_dld_shl_load=no
11154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11155 conftest$ac_exeext conftest.$ac_ext
11156 LIBS=$ac_check_lib_save_LIBS
11158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11160 if test $ac_cv_lib_dld_shl_load = yes; then
11161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11163 { echo "$as_me:$LINENO: checking for dlopen" >&5
11164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11165 if test "${ac_cv_func_dlopen+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 cat >conftest.$ac_ext <<_ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11176 #define dlopen innocuous_dlopen
11178 /* System header to define __stub macros and hopefully few prototypes,
11179 which can conflict with char dlopen (); below.
11180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11181 <limits.h> exists even on freestanding compilers. */
11184 # include <limits.h>
11186 # include <assert.h>
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11198 /* The GNU C library defines this for functions which it implements
11199 to always fail with ENOSYS. Some functions are actually named
11200 something starting with __ and the normal name is an alias. */
11201 #if defined __stub_dlopen || defined __stub___dlopen
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (ac_try="$ac_link"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_link") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && {
11227 test -z "$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11229 } && test -s conftest$ac_exeext &&
11230 $as_test_x conftest$ac_exeext; then
11231 ac_cv_func_dlopen=yes
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 ac_cv_func_dlopen=no
11239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11240 conftest$ac_exeext conftest.$ac_ext
11242 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11243 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11244 if test $ac_cv_func_dlopen = yes; then
11245 lt_cv_dlopen="dlopen"
11247 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11248 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 ac_check_lib_save_LIBS=$LIBS
11254 cat >conftest.$ac_ext <<_ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11261 /* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (ac_try="$ac_link"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_link") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } && {
11290 test -z "$ac_c_werror_flag" ||
11291 test ! -s conftest.err
11292 } && test -s conftest$ac_exeext &&
11293 $as_test_x conftest$ac_exeext; then
11294 ac_cv_lib_dl_dlopen=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_cv_lib_dl_dlopen=no
11302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11303 conftest$ac_exeext conftest.$ac_ext
11304 LIBS=$ac_check_lib_save_LIBS
11306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11308 if test $ac_cv_lib_dl_dlopen = yes; then
11309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11311 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11312 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-lsvld $LIBS"
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11340 rm -f conftest.$ac_objext conftest$ac_exeext
11341 if { (ac_try="$ac_link"
11342 case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_link") 2>conftest.er1
11349 grep -v '^ *+' conftest.er1 >conftest.err
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && {
11354 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest$ac_exeext &&
11357 $as_test_x conftest$ac_exeext; then
11358 ac_cv_lib_svld_dlopen=yes
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_cv_lib_svld_dlopen=no
11366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11370 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11371 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11372 if test $ac_cv_lib_svld_dlopen = yes; then
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11375 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11376 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11377 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 ac_check_lib_save_LIBS=$LIBS
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11389 /* Override any GCC internal prototype to avoid an error.
11390 Use char because int might match the return type of a GCC
11391 builtin and then its argument prototype would still apply. */
11399 return dld_link ();
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (ac_try="$ac_link"
11406 case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_link") 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest$ac_exeext &&
11421 $as_test_x conftest$ac_exeext; then
11422 ac_cv_lib_dld_dld_link=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_cv_lib_dld_dld_link=no
11430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11435 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11436 if test $ac_cv_lib_dld_dld_link = yes; then
11437 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11458 if test "x$lt_cv_dlopen" != xno; then
11464 case $lt_cv_dlopen in
11466 save_CPPFLAGS="$CPPFLAGS"
11467 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11469 save_LDFLAGS="$LDFLAGS"
11470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11473 LIBS="$lt_cv_dlopen_libs $LIBS"
11475 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11476 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11477 if test "${lt_cv_dlopen_self+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 if test "$cross_compiling" = yes; then :
11481 lt_cv_dlopen_self=cross
11483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11484 lt_status=$lt_dlunknown
11485 cat > conftest.$ac_ext <<EOF
11486 #line __oline__ "configure"
11487 #include "confdefs.h"
11496 # define LT_DLGLOBAL RTLD_GLOBAL
11499 # define LT_DLGLOBAL DL_GLOBAL
11501 # define LT_DLGLOBAL 0
11505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11506 find out it does not work in some platform. */
11507 #ifndef LT_DLLAZY_OR_NOW
11509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11512 # define LT_DLLAZY_OR_NOW DL_LAZY
11515 # define LT_DLLAZY_OR_NOW RTLD_NOW
11518 # define LT_DLLAZY_OR_NOW DL_NOW
11520 # define LT_DLLAZY_OR_NOW 0
11528 extern "C" void exit (int);
11531 void fnord() { int i=42;}
11534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11535 int status = $lt_dlunknown;
11539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11540 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11541 /* dlclose (self); */
11549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11554 (./conftest; exit; ) >&5 2>/dev/null
11556 case x$lt_status in
11557 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11558 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11559 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11562 # compilation failed
11563 lt_cv_dlopen_self=no
11570 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11571 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11573 if test "x$lt_cv_dlopen_self" = xyes; then
11574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11575 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11576 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11577 if test "${lt_cv_dlopen_self_static+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 if test "$cross_compiling" = yes; then :
11581 lt_cv_dlopen_self_static=cross
11583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11584 lt_status=$lt_dlunknown
11585 cat > conftest.$ac_ext <<EOF
11586 #line __oline__ "configure"
11587 #include "confdefs.h"
11596 # define LT_DLGLOBAL RTLD_GLOBAL
11599 # define LT_DLGLOBAL DL_GLOBAL
11601 # define LT_DLGLOBAL 0
11605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11606 find out it does not work in some platform. */
11607 #ifndef LT_DLLAZY_OR_NOW
11609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11612 # define LT_DLLAZY_OR_NOW DL_LAZY
11615 # define LT_DLLAZY_OR_NOW RTLD_NOW
11618 # define LT_DLLAZY_OR_NOW DL_NOW
11620 # define LT_DLLAZY_OR_NOW 0
11628 extern "C" void exit (int);
11631 void fnord() { int i=42;}
11634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11635 int status = $lt_dlunknown;
11639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11640 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11641 /* dlclose (self); */
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11654 (./conftest; exit; ) >&5 2>/dev/null
11656 case x$lt_status in
11657 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11658 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11659 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11662 # compilation failed
11663 lt_cv_dlopen_self_static=no
11670 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11671 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11674 CPPFLAGS="$save_CPPFLAGS"
11675 LDFLAGS="$save_LDFLAGS"
11680 case $lt_cv_dlopen_self in
11681 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11682 *) enable_dlopen_self=unknown ;;
11685 case $lt_cv_dlopen_self_static in
11686 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11687 *) enable_dlopen_self_static=unknown ;;
11692 # Report which library types will actually be built
11693 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11694 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11695 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11696 echo "${ECHO_T}$can_build_shared" >&6; }
11698 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11699 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11700 test "$can_build_shared" = "no" && enable_shared=no
11702 # On AIX, shared libraries and static libraries use the same namespace, and
11703 # are all built from PIC.
11706 test "$enable_shared" = yes && enable_static=no
11707 if test -n "$RANLIB"; then
11708 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11709 postinstall_cmds='$RANLIB $lib'
11714 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11715 test "$enable_shared" = yes && enable_static=no
11719 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11720 echo "${ECHO_T}$enable_shared" >&6; }
11722 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11723 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11724 # Make sure either enable_shared or enable_static is yes.
11725 test "$enable_shared" = yes || enable_static=yes
11726 { echo "$as_me:$LINENO: result: $enable_static" >&5
11727 echo "${ECHO_T}$enable_static" >&6; }
11729 # The else clause should only fire when bootstrapping the
11730 # libtool distribution, otherwise you forgot to ship ltmain.sh
11731 # with your package, and you will get complaints that there are
11732 # no rules to generate ltmain.sh.
11733 if test -f "$ltmain"; then
11734 # See if we are running on zsh, and set the options which allow our commands through
11735 # without removal of \ escapes.
11736 if test -n "${ZSH_VERSION+set}" ; then
11737 setopt NO_GLOB_SUBST
11739 # Now quote all the things that may contain metacharacters while being
11740 # careful not to overquote the AC_SUBSTed values. We take copies of the
11741 # variables and quote the copies for generation of the libtool script.
11742 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11744 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11745 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11746 deplibs_check_method reload_flag reload_cmds need_locks \
11747 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11748 lt_cv_sys_global_symbol_to_c_name_address \
11749 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11750 old_postinstall_cmds old_postuninstall_cmds \
11754 lt_prog_compiler_wl \
11755 lt_prog_compiler_pic \
11756 lt_prog_compiler_static \
11757 lt_prog_compiler_no_builtin_flag \
11758 export_dynamic_flag_spec \
11759 thread_safe_flag_spec \
11760 whole_archive_flag_spec \
11761 enable_shared_with_static_runtimes \
11763 old_archive_from_new_cmds \
11768 compiler_lib_search_path \
11770 archive_expsym_cmds \
11772 postuninstall_cmds \
11773 old_archive_from_expsyms_cmds \
11774 allow_undefined_flag \
11775 no_undefined_flag \
11776 export_symbols_cmds \
11777 hardcode_libdir_flag_spec \
11778 hardcode_libdir_flag_spec_ld \
11779 hardcode_libdir_separator \
11780 hardcode_automatic \
11782 module_expsym_cmds \
11783 lt_cv_prog_compiler_c_o \
11786 include_expsyms; do
11789 old_archive_cmds | \
11790 old_archive_from_new_cmds | \
11792 archive_expsym_cmds | \
11794 module_expsym_cmds | \
11795 old_archive_from_expsyms_cmds | \
11796 export_symbols_cmds | \
11797 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11798 postinstall_cmds | postuninstall_cmds | \
11799 old_postinstall_cmds | old_postuninstall_cmds | \
11800 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11801 # Double-quote double-evaled strings.
11802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11811 *'\$0 --fallback-echo"')
11812 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11816 cfgfile="${ofile}T"
11817 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11819 { echo "$as_me:$LINENO: creating $ofile" >&5
11820 echo "$as_me: creating $ofile" >&6;}
11822 cat <<__EOF__ >> "$cfgfile"
11825 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11826 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11827 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11829 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11830 # Free Software Foundation, Inc.
11832 # This file is part of GNU Libtool:
11833 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11835 # This program is free software; you can redistribute it and/or modify
11836 # it under the terms of the GNU General Public License as published by
11837 # the Free Software Foundation; either version 2 of the License, or
11838 # (at your option) any later version.
11840 # This program is distributed in the hope that it will be useful, but
11841 # WITHOUT ANY WARRANTY; without even the implied warranty of
11842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11843 # General Public License for more details.
11845 # You should have received a copy of the GNU General Public License
11846 # along with this program; if not, write to the Free Software
11847 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11849 # As a special exception to the GNU General Public License, if you
11850 # distribute this file as part of a program that contains a
11851 # configuration script generated by Autoconf, you may include it under
11852 # the same distribution terms that you use for the rest of that program.
11854 # A sed program that does not truncate output.
11857 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11858 Xsed="$SED -e 1s/^X//"
11860 # The HP-UX ksh and POSIX shell print the target directory to stdout
11861 # if CDPATH is set.
11862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11864 # The names of the tagged configurations supported by this script.
11867 # ### BEGIN LIBTOOL CONFIG
11869 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11871 # Shell to use when invoking shell scripts.
11874 # Whether or not to build shared libraries.
11875 build_libtool_libs=$enable_shared
11877 # Whether or not to build static libraries.
11878 build_old_libs=$enable_static
11880 # Whether or not to add -lc for building shared libraries.
11881 build_libtool_need_lc=$archive_cmds_need_lc
11883 # Whether or not to disallow shared libs when runtime libs are static
11884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11886 # Whether or not to optimize for fast installation.
11887 fast_install=$enable_fast_install
11890 host_alias=$host_alias
11894 # The build system.
11895 build_alias=$build_alias
11899 # An echo program that does not interpret backslashes.
11904 AR_FLAGS=$lt_AR_FLAGS
11909 # LTCC compiler flags.
11910 LTCFLAGS=$lt_LTCFLAGS
11912 # A language-specific compiler.
11915 # Is the compiler the GNU C compiler?
11921 # The linker used to build libraries.
11924 # Whether we need hard or soft links.
11927 # A BSD-compatible nm program.
11930 # A symbol stripping program
11933 # Used to examine libraries when file_magic_cmd begins "file"
11934 MAGIC_CMD=$MAGIC_CMD
11936 # Used on cygwin: DLL creation program.
11939 # Used on cygwin: object dumper.
11942 # Used on cygwin: assembler.
11945 # The name of the directory that contains temporary libtool files.
11948 # How to create reloadable object files.
11949 reload_flag=$lt_reload_flag
11950 reload_cmds=$lt_reload_cmds
11952 # How to pass a linker flag through the compiler.
11953 wl=$lt_lt_prog_compiler_wl
11955 # Object file suffix (normally "o").
11956 objext="$ac_objext"
11958 # Old archive suffix (normally "a").
11961 # Shared library suffix (normally ".so").
11962 shrext_cmds='$shrext_cmds'
11964 # Executable file suffix (normally "").
11967 # Additional compiler flags for building library objects.
11968 pic_flag=$lt_lt_prog_compiler_pic
11971 # What is the maximum length of a command?
11972 max_cmd_len=$lt_cv_sys_max_cmd_len
11974 # Does compiler simultaneously support -c and -o options?
11975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11977 # Must we lock files when doing compilation?
11978 need_locks=$lt_need_locks
11980 # Do we need the lib prefix for modules?
11981 need_lib_prefix=$need_lib_prefix
11983 # Do we need a version for libraries?
11984 need_version=$need_version
11986 # Whether dlopen is supported.
11987 dlopen_support=$enable_dlopen
11989 # Whether dlopen of programs is supported.
11990 dlopen_self=$enable_dlopen_self
11992 # Whether dlopen of statically linked programs is supported.
11993 dlopen_self_static=$enable_dlopen_self_static
11995 # Compiler flag to prevent dynamic linking.
11996 link_static_flag=$lt_lt_prog_compiler_static
11998 # Compiler flag to turn off builtin functions.
11999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12001 # Compiler flag to allow reflexive dlopens.
12002 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12004 # Compiler flag to generate shared objects directly from archives.
12005 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12007 # Compiler flag to generate thread-safe objects.
12008 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12010 # Library versioning type.
12011 version_type=$version_type
12013 # Format of library name prefix.
12014 libname_spec=$lt_libname_spec
12016 # List of archive names. First name is the real one, the rest are links.
12017 # The last name is the one that the linker finds with -lNAME.
12018 library_names_spec=$lt_library_names_spec
12020 # The coded name of the library, if different from the real name.
12021 soname_spec=$lt_soname_spec
12023 # Commands used to build and install an old-style archive.
12025 old_archive_cmds=$lt_old_archive_cmds
12026 old_postinstall_cmds=$lt_old_postinstall_cmds
12027 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12029 # Create an old-style archive from a shared archive.
12030 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12032 # Create a temporary old-style archive to link instead of a shared archive.
12033 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12035 # Commands used to build and install a shared archive.
12036 archive_cmds=$lt_archive_cmds
12037 archive_expsym_cmds=$lt_archive_expsym_cmds
12038 postinstall_cmds=$lt_postinstall_cmds
12039 postuninstall_cmds=$lt_postuninstall_cmds
12041 # Commands used to build a loadable module (assumed same as above if empty)
12042 module_cmds=$lt_module_cmds
12043 module_expsym_cmds=$lt_module_expsym_cmds
12045 # Commands to strip libraries.
12046 old_striplib=$lt_old_striplib
12047 striplib=$lt_striplib
12049 # Dependencies to place before the objects being linked to create a
12051 predep_objects=$lt_predep_objects
12053 # Dependencies to place after the objects being linked to create a
12055 postdep_objects=$lt_postdep_objects
12057 # Dependencies to place before the objects being linked to create a
12059 predeps=$lt_predeps
12061 # Dependencies to place after the objects being linked to create a
12063 postdeps=$lt_postdeps
12065 # The library search path used internally by the compiler when linking
12066 # a shared library.
12067 compiler_lib_search_path=$lt_compiler_lib_search_path
12069 # Method to check whether dependent libraries are shared objects.
12070 deplibs_check_method=$lt_deplibs_check_method
12072 # Command to use when deplibs_check_method == file_magic.
12073 file_magic_cmd=$lt_file_magic_cmd
12075 # Flag that allows shared libraries with undefined symbols to be built.
12076 allow_undefined_flag=$lt_allow_undefined_flag
12078 # Flag that forces no undefined symbols.
12079 no_undefined_flag=$lt_no_undefined_flag
12081 # Commands used to finish a libtool library installation in a directory.
12082 finish_cmds=$lt_finish_cmds
12084 # Same as above, but a single script fragment to be evaled but not shown.
12085 finish_eval=$lt_finish_eval
12087 # Take the output of nm and produce a listing of raw symbols and C names.
12088 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12090 # Transform the output of nm in a proper C declaration
12091 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12093 # Transform the output of nm in a C name address pair
12094 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12096 # This is the shared library runtime path variable.
12097 runpath_var=$runpath_var
12099 # This is the shared library path variable.
12100 shlibpath_var=$shlibpath_var
12102 # Is shlibpath searched before the hard-coded library search path?
12103 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12105 # How to hardcode a shared library path into an executable.
12106 hardcode_action=$hardcode_action
12108 # Whether we should hardcode library paths into libraries.
12109 hardcode_into_libs=$hardcode_into_libs
12111 # Flag to hardcode \$libdir into a binary during linking.
12112 # This must work even if \$libdir does not exist.
12113 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12115 # If ld is used when linking, flag to hardcode \$libdir into
12116 # a binary during linking. This must work even if \$libdir does
12118 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12120 # Whether we need a single -rpath flag with a separated argument.
12121 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12123 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12124 # resulting binary.
12125 hardcode_direct=$hardcode_direct
12127 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12128 # resulting binary.
12129 hardcode_minus_L=$hardcode_minus_L
12131 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12132 # the resulting binary.
12133 hardcode_shlibpath_var=$hardcode_shlibpath_var
12135 # Set to yes if building a shared library automatically hardcodes DIR into the library
12136 # and all subsequent libraries and executables linked against it.
12137 hardcode_automatic=$hardcode_automatic
12139 # Variables whose values should be saved in libtool wrapper scripts and
12140 # restored at relink time.
12141 variables_saved_for_relink="$variables_saved_for_relink"
12143 # Whether libtool must link a program against all its dependency libraries.
12144 link_all_deplibs=$link_all_deplibs
12146 # Compile-time system search path for libraries
12147 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12149 # Run-time system search path for libraries
12150 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12152 # Fix the shell variable \$srcfile for the compiler.
12153 fix_srcfile_path=$lt_fix_srcfile_path
12155 # Set to yes if exported symbols are required.
12156 always_export_symbols=$always_export_symbols
12158 # The commands to list exported symbols.
12159 export_symbols_cmds=$lt_export_symbols_cmds
12161 # The commands to extract the exported symbol list from a shared archive.
12162 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12164 # Symbols that should not be listed in the preloaded symbols.
12165 exclude_expsyms=$lt_exclude_expsyms
12167 # Symbols that must always be exported.
12168 include_expsyms=$lt_include_expsyms
12170 # ### END LIBTOOL CONFIG
12177 cat <<\EOF >> "$cfgfile"
12179 # AIX sometimes has problems with the GCC collect2 program. For some
12180 # reason, if we set the COLLECT_NAMES environment variable, the problems
12181 # vanish in a puff of smoke.
12182 if test "X${COLLECT_NAMES+set}" != Xset; then
12184 export COLLECT_NAMES
12190 # We use sed instead of cat because bash on DJGPP gets confused if
12191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12192 # text mode, it properly converts lines to CR/LF. This bash problem
12193 # is reportedly fixed, but why not run on old versions too?
12194 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12196 mv -f "$cfgfile" "$ofile" || \
12197 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12201 # If there is no Makefile yet, we rely on a make rule to execute
12202 # `config.status --recheck' to rerun these tests and create the
12203 # libtool script then.
12204 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12205 if test -f "$ltmain_in"; then
12206 test -f Makefile && make "$ltmain"
12212 ac_cpp='$CPP $CPPFLAGS'
12213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12220 # Check whether --with-tags was given.
12221 if test "${with_tags+set}" = set; then
12222 withval=$with_tags; tagnames="$withval"
12226 if test -f "$ltmain" && test -n "$tagnames"; then
12227 if test ! -f "${ofile}"; then
12228 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12229 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12232 if test -z "$LTCC"; then
12233 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12234 if test -z "$LTCC"; then
12235 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12236 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12239 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12242 if test -z "$LTCFLAGS"; then
12243 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12246 # Extract list of available tagged configurations in $ofile.
12247 # Note that this assumes the entire list is on one line.
12248 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12251 for tagname in $tagnames; do
12253 # Check whether tagname contains only valid characters
12254 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12256 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12257 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12258 { (exit 1); exit 1; }; }
12262 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12264 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12265 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12266 { (exit 1); exit 1; }; }
12269 # Update the list of available tags.
12270 if test -n "$tagname"; then
12271 echo appending configuration tag \"$tagname\" to $ofile
12275 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12276 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12277 (test "X$CXX" != "Xg++"))) ; then
12279 ac_cpp='$CXXCPP $CPPFLAGS'
12280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12287 archive_cmds_need_lc_CXX=no
12288 allow_undefined_flag_CXX=
12289 always_export_symbols_CXX=no
12290 archive_expsym_cmds_CXX=
12291 export_dynamic_flag_spec_CXX=
12292 hardcode_direct_CXX=no
12293 hardcode_libdir_flag_spec_CXX=
12294 hardcode_libdir_flag_spec_ld_CXX=
12295 hardcode_libdir_separator_CXX=
12296 hardcode_minus_L_CXX=no
12297 hardcode_shlibpath_var_CXX=unsupported
12298 hardcode_automatic_CXX=no
12300 module_expsym_cmds_CXX=
12301 link_all_deplibs_CXX=unknown
12302 old_archive_cmds_CXX=$old_archive_cmds
12303 no_undefined_flag_CXX=
12304 whole_archive_flag_spec_CXX=
12305 enable_shared_with_static_runtimes_CXX=no
12307 # Dependencies to place before and after the object being linked:
12308 predep_objects_CXX=
12309 postdep_objects_CXX=
12312 compiler_lib_search_path_CXX=
12314 # Source file extension for C++ test sources.
12317 # Object file extension for compiled C++ test sources.
12321 # Code to be used in simple compile tests
12322 lt_simple_compile_test_code="int some_variable = 0;"
12324 # Code to be used in simple link tests
12325 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12327 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12329 # If no C compiler was specified, use CC.
12332 # If no C compiler flags were specified, use CFLAGS.
12333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12335 # Allow CC to be a program name with arguments.
12339 # save warnings/boilerplate of simple test code
12340 ac_outfile=conftest.$ac_objext
12341 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12342 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12343 _lt_compiler_boilerplate=`cat conftest.err`
12346 ac_outfile=conftest.$ac_objext
12347 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12348 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12349 _lt_linker_boilerplate=`cat conftest.err`
12353 # Allow CC to be a program name with arguments.
12358 lt_save_with_gnu_ld=$with_gnu_ld
12359 lt_save_path_LD=$lt_cv_path_LD
12360 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12361 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12363 $as_unset lt_cv_prog_gnu_ld
12365 if test -n "${lt_cv_path_LDCXX+set}"; then
12366 lt_cv_path_LD=$lt_cv_path_LDCXX
12368 $as_unset lt_cv_path_LD
12370 test -z "${LDCXX+set}" || LD=$LDCXX
12374 for cc_temp in $compiler""; do
12376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12382 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12385 # We don't want -fno-exception wen compiling C++ code, so set the
12386 # no_builtin_flag separately
12387 if test "$GXX" = yes; then
12388 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12390 lt_prog_compiler_no_builtin_flag_CXX=
12393 if test "$GXX" = yes; then
12394 # Set up default GNU C++ configuration
12397 # Check whether --with-gnu-ld was given.
12398 if test "${with_gnu_ld+set}" = set; then
12399 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12405 if test "$GCC" = yes; then
12406 # Check if gcc -print-prog-name=ld gives a path.
12407 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12408 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12411 # gcc leaves a trailing carriage return which upsets mingw
12412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12417 # Accept absolute paths.
12419 re_direlt='/[^/][^/]*/\.\./'
12420 # Canonicalize the pathname of ld
12421 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12422 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12423 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12425 test -z "$LD" && LD="$ac_prog"
12428 # If it fails, then pretend we aren't using GCC.
12432 # If it is relative, then search for the first ld in PATH.
12433 with_gnu_ld=unknown
12436 elif test "$with_gnu_ld" = yes; then
12437 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12440 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12443 if test "${lt_cv_path_LD+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 if test -z "$LD"; then
12447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12448 for ac_dir in $PATH; do
12450 test -z "$ac_dir" && ac_dir=.
12451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12452 lt_cv_path_LD="$ac_dir/$ac_prog"
12453 # Check to see if the program is GNU ld. I'd rather use --version,
12454 # but apparently some variants of GNU ld only accept -v.
12455 # Break only if it was the GNU/non-GNU ld that we prefer.
12456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12457 *GNU* | *'with BFD'*)
12458 test "$with_gnu_ld" != no && break
12461 test "$with_gnu_ld" != yes && break
12468 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12472 LD="$lt_cv_path_LD"
12473 if test -n "$LD"; then
12474 { echo "$as_me:$LINENO: result: $LD" >&5
12475 echo "${ECHO_T}$LD" >&6; }
12477 { echo "$as_me:$LINENO: result: no" >&5
12478 echo "${ECHO_T}no" >&6; }
12480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12482 { (exit 1); exit 1; }; }
12483 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12485 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12489 case `$LD -v 2>&1 </dev/null` in
12490 *GNU* | *'with BFD'*)
12491 lt_cv_prog_gnu_ld=yes
12494 lt_cv_prog_gnu_ld=no
12498 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12499 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12500 with_gnu_ld=$lt_cv_prog_gnu_ld
12504 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12505 # archiving commands below assume that GNU ld is being used.
12506 if test "$with_gnu_ld" = yes; then
12507 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12508 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'
12510 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12511 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12513 # If archive_cmds runs LD, not CC, wlarc should be empty
12514 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12515 # investigate it a little bit more. (MM)
12518 # ancient GNU ld didn't support --whole-archive et. al.
12519 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12520 grep 'no-whole-archive' > /dev/null; then
12521 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12523 whole_archive_flag_spec_CXX=
12529 # A generic and very simple default shared library creation
12530 # command for GNU C++ for the case where it uses the native
12531 # linker, instead of GNU ld. If possible, this setting should
12532 # overridden to take advantage of the native linker features on
12533 # the platform it is being used on.
12534 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12537 # Commands to make compiler produce verbose output that lists
12538 # what "hidden" libraries, object files and flags are used when
12539 # linking a shared library.
12540 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12548 # PORTME: fill in a description of your system's C++ link characteristics
12549 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12550 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12554 # FIXME: insert proper C++ library support
12558 if test "$host_cpu" = ia64; then
12559 # On IA64, the linker does run time linking by default, so we don't
12560 # have to do anything special.
12561 aix_use_runtimelinking=no
12562 exp_sym_flag='-Bexport'
12565 aix_use_runtimelinking=no
12567 # Test if we are trying to use run time linking or normal
12568 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12569 # need to do runtime linking.
12570 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12571 for ld_flag in $LDFLAGS; do
12574 aix_use_runtimelinking=yes
12582 exp_sym_flag='-bexport'
12583 no_entry_flag='-bnoentry'
12586 # When large executables or shared objects are built, AIX ld can
12587 # have problems creating the table of contents. If linking a library
12588 # or program results in "error TOC overflow" add -mminimal-toc to
12589 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12590 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12592 archive_cmds_CXX=''
12593 hardcode_direct_CXX=yes
12594 hardcode_libdir_separator_CXX=':'
12595 link_all_deplibs_CXX=yes
12597 if test "$GXX" = yes; then
12598 case $host_os in aix4.[012]|aix4.[012].*)
12599 # We only want to do this on AIX 4.2 and lower, the check
12600 # below for broken collect2 doesn't work under 4.3+
12601 collect2name=`${CC} -print-prog-name=collect2`
12602 if test -f "$collect2name" && \
12603 strings "$collect2name" | grep resolve_lib_name >/dev/null
12605 # We have reworked collect2
12608 # We have old collect2
12609 hardcode_direct_CXX=unsupported
12610 # It fails to find uninstalled libraries when the uninstalled
12611 # path is not listed in the libpath. Setting hardcode_minus_L
12612 # to unsupported forces relinking
12613 hardcode_minus_L_CXX=yes
12614 hardcode_libdir_flag_spec_CXX='-L$libdir'
12615 hardcode_libdir_separator_CXX=
12619 shared_flag='-shared'
12620 if test "$aix_use_runtimelinking" = yes; then
12621 shared_flag="$shared_flag "'${wl}-G'
12625 if test "$host_cpu" = ia64; then
12626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12627 # chokes on -Wl,-G. The following line is correct:
12630 if test "$aix_use_runtimelinking" = yes; then
12631 shared_flag='${wl}-G'
12633 shared_flag='${wl}-bM:SRE'
12638 # It seems that -bexpall does not export symbols beginning with
12639 # underscore (_), so it is better to generate a list of symbols to export.
12640 always_export_symbols_CXX=yes
12641 if test "$aix_use_runtimelinking" = yes; then
12642 # Warning - without using the other runtime loading flags (-brtl),
12643 # -berok will link without error, but may produce a broken library.
12644 allow_undefined_flag_CXX='-berok'
12645 # Determine the default libpath from the value encoded in an empty executable.
12646 cat >conftest.$ac_ext <<_ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && {
12675 test -z "$ac_cxx_werror_flag" ||
12676 test ! -s conftest.err
12677 } && test -s conftest$ac_exeext &&
12678 $as_test_x conftest$ac_exeext; then
12680 lt_aix_libpath_sed='
12681 /Import File Strings/,/^$/ {
12687 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12688 # Check for a 64-bit object if we didn't find anything.
12689 if test -z "$aix_libpath"; then
12690 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12700 conftest$ac_exeext conftest.$ac_ext
12701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12703 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12705 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"
12707 if test "$host_cpu" = ia64; then
12708 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12709 allow_undefined_flag_CXX="-z nodefs"
12710 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"
12712 # Determine the default libpath from the value encoded in an empty executable.
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (ac_try="$ac_link"
12730 case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_link") 2>conftest.er1
12737 grep -v '^ *+' conftest.er1 >conftest.err
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_cxx_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest$ac_exeext &&
12745 $as_test_x conftest$ac_exeext; then
12747 lt_aix_libpath_sed='
12748 /Import File Strings/,/^$/ {
12754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12755 # Check for a 64-bit object if we didn't find anything.
12756 if test -z "$aix_libpath"; then
12757 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767 conftest$ac_exeext conftest.$ac_ext
12768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12770 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12771 # Warning - without using the other run time loading flags,
12772 # -berok will link without error, but may produce a broken library.
12773 no_undefined_flag_CXX=' ${wl}-bernotok'
12774 allow_undefined_flag_CXX=' ${wl}-berok'
12775 # Exported symbols can be pulled into shared objects from archives
12776 whole_archive_flag_spec_CXX='$convenience'
12777 archive_cmds_need_lc_CXX=yes
12778 # This is similar to how AIX traditionally builds its shared libraries.
12779 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'
12785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12786 allow_undefined_flag_CXX=unsupported
12787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12788 # support --undefined. This deserves some investigation. FIXME
12789 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12796 case $cc_basename in
12798 # FIXME: insert proper C++ library support
12804 cygwin* | mingw* | pw32*)
12805 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12806 # as there is no search path for DLLs.
12807 hardcode_libdir_flag_spec_CXX='-L$libdir'
12808 allow_undefined_flag_CXX=unsupported
12809 always_export_symbols_CXX=no
12810 enable_shared_with_static_runtimes_CXX=yes
12812 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12813 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'
12814 # If the export-symbols file already is a .def file (1st line
12815 # is EXPORTS), use it as is; otherwise, prepend...
12816 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12817 cp $export_symbols $output_objdir/$soname.def;
12819 echo EXPORTS > $output_objdir/$soname.def;
12820 cat $export_symbols >> $output_objdir/$soname.def;
12822 $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'
12827 darwin* | rhapsody*)
12829 rhapsody* | darwin1.[012])
12830 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12833 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12834 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12836 case ${MACOSX_DEPLOYMENT_TARGET} in
12838 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12841 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12847 archive_cmds_need_lc_CXX=no
12848 hardcode_direct_CXX=no
12849 hardcode_automatic_CXX=yes
12850 hardcode_shlibpath_var_CXX=unsupported
12851 whole_archive_flag_spec_CXX=''
12852 link_all_deplibs_CXX=yes
12854 if test "$GXX" = yes ; then
12855 lt_int_apple_cc_single_mod=no
12856 output_verbose_link_cmd='echo'
12857 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12858 lt_int_apple_cc_single_mod=yes
12860 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12861 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12863 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'
12865 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12867 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12868 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}'
12870 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}'
12872 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}'
12874 case $cc_basename in
12876 output_verbose_link_cmd='echo'
12877 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'
12878 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12879 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12880 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}'
12881 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}'
12891 case $cc_basename in
12893 # FIXME: insert proper C++ library support
12897 # Green Hills C++ Compiler
12898 # FIXME: insert proper C++ library support
12902 # FIXME: insert proper C++ library support
12908 # C++ shared libraries reported to be fairly broken before switch to ELF
12912 archive_cmds_need_lc_CXX=no
12914 freebsd* | dragonfly*)
12915 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12922 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12923 hardcode_libdir_separator_CXX=:
12924 export_dynamic_flag_spec_CXX='${wl}-E'
12925 hardcode_direct_CXX=yes
12926 hardcode_minus_L_CXX=yes # Not in the search PATH,
12927 # but as the default
12928 # location of the library.
12930 case $cc_basename in
12932 # FIXME: insert proper C++ library support
12936 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'
12937 # Commands to make compiler produce verbose output that lists
12938 # what "hidden" libraries, object files and flags are used when
12939 # linking a shared library.
12941 # There doesn't appear to be a way to prevent this compiler from
12942 # explicitly linking system object files so we need to strip them
12943 # from the output so that they don't get included in the library
12945 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'
12948 if test "$GXX" = yes; then
12949 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'
12951 # FIXME: insert proper C++ library support
12958 if test $with_gnu_ld = no; then
12959 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12960 hardcode_libdir_separator_CXX=:
12965 export_dynamic_flag_spec_CXX='${wl}-E'
12971 hardcode_direct_CXX=no
12972 hardcode_shlibpath_var_CXX=no
12975 hardcode_direct_CXX=yes
12976 hardcode_minus_L_CXX=yes # Not in the search PATH,
12977 # but as the default
12978 # location of the library.
12982 case $cc_basename in
12984 # FIXME: insert proper C++ library support
12990 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12999 # Commands to make compiler produce verbose output that lists
13000 # what "hidden" libraries, object files and flags are used when
13001 # linking a shared library.
13003 # There doesn't appear to be a way to prevent this compiler from
13004 # explicitly linking system object files so we need to strip them
13005 # from the output so that they don't get included in the library
13007 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'
13010 if test "$GXX" = yes; then
13011 if test $with_gnu_ld = no; then
13014 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13020 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'
13025 # FIXME: insert proper C++ library support
13032 hardcode_direct_CXX=no
13033 hardcode_shlibpath_var_CXX=no
13034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13035 export_dynamic_flag_spec_CXX='${wl}-E'
13036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13037 # Instead, shared libraries are loaded at an image base (0x10000000 by
13038 # default) and relocated if they conflict, which is a slow very memory
13039 # consuming and fragmenting process. To avoid this, we pick a random,
13040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13041 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13042 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'
13043 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'
13046 case $cc_basename in
13049 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'
13051 # Archives containing C++ object files must be created using
13052 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13053 # necessary to make sure instantiated templates are included
13055 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13058 if test "$GXX" = yes; then
13059 if test "$with_gnu_ld" = no; then
13060 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'
13062 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'
13065 link_all_deplibs_CXX=yes
13068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13069 hardcode_libdir_separator_CXX=:
13071 linux* | k*bsd*-gnu)
13072 case $cc_basename in
13074 # Kuck and Associates, Inc. (KAI) C++ Compiler
13076 # KCC will only create a shared library if the output file
13077 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13078 # to its proper name (with version) after linking.
13079 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'
13080 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'
13081 # Commands to make compiler produce verbose output that lists
13082 # what "hidden" libraries, object files and flags are used when
13083 # linking a shared library.
13085 # There doesn't appear to be a way to prevent this compiler from
13086 # explicitly linking system object files so we need to strip them
13087 # from the output so that they don't get included in the library
13089 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'
13091 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13094 # Archives containing C++ object files must be created using
13095 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13096 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13101 # version 8.0 and above of icpc choke on multiply defined symbols
13102 # if we add $predep_objects and $postdep_objects, however 7.1 and
13103 # earlier do not add the objects themselves.
13104 case `$CC -V 2>&1` in
13106 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13107 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'
13109 *) # Version 8.0 or newer
13112 ia64*) tmp_idyn=' -i_dynamic';;
13114 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115 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'
13118 archive_cmds_need_lc_CXX=no
13119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13120 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13121 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13124 # Portland Group C++ compiler
13125 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13126 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'
13128 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13130 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'
13134 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13135 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'
13137 runpath_var=LD_RUN_PATH
13138 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13139 hardcode_libdir_separator_CXX=:
13141 # Commands to make compiler produce verbose output that lists
13142 # what "hidden" libraries, object files and flags are used when
13143 # linking a shared library.
13145 # There doesn't appear to be a way to prevent this compiler from
13146 # explicitly linking system object files so we need to strip them
13147 # from the output so that they don't get included in the library
13149 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'
13152 case `$CC -V 2>&1 | sed 5q` in
13155 no_undefined_flag_CXX=' -zdefs'
13156 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13157 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'
13158 hardcode_libdir_flag_spec_CXX='-R$libdir'
13159 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'
13161 # Not sure whether something based on
13162 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13164 output_verbose_link_cmd='echo'
13166 # Archives containing C++ object files must be created using
13167 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13168 # necessary to make sure instantiated templates are included
13170 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13177 # FIXME: insert proper C++ library support
13181 # FIXME: insert proper C++ library support
13185 case $cc_basename in
13187 # FIXME: insert proper C++ library support
13191 # FIXME: insert proper C++ library support
13196 netbsd* | netbsdelf*-gnu)
13197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13198 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13200 hardcode_libdir_flag_spec_CXX='-R$libdir'
13201 hardcode_direct_CXX=yes
13202 hardcode_shlibpath_var_CXX=no
13204 # Workaround some broken pre-1.5 toolchains
13205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13208 # C++ shared libraries are fairly broken
13212 if test -f /usr/libexec/ld.so; then
13213 hardcode_direct_CXX=yes
13214 hardcode_shlibpath_var_CXX=no
13215 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13216 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13217 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13218 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13219 export_dynamic_flag_spec_CXX='${wl}-E'
13220 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13222 output_verbose_link_cmd='echo'
13228 case $cc_basename in
13230 # Kuck and Associates, Inc. (KAI) C++ Compiler
13232 # KCC will only create a shared library if the output file
13233 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13234 # to its proper name (with version) after linking.
13235 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'
13237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13238 hardcode_libdir_separator_CXX=:
13240 # Archives containing C++ object files must be created using
13241 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13242 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13246 # Rational C++ 2.4.1
13247 # FIXME: insert proper C++ library support
13251 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13252 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'
13254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13255 hardcode_libdir_separator_CXX=:
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13261 # There doesn't appear to be a way to prevent this compiler from
13262 # explicitly linking system object files so we need to strip them
13263 # from the output so that they don't get included in the library
13265 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'
13268 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13269 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13270 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'
13272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13273 hardcode_libdir_separator_CXX=:
13275 # Commands to make compiler produce verbose output that lists
13276 # what "hidden" libraries, object files and flags are used when
13277 # linking a shared library.
13278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13281 # FIXME: insert proper C++ library support
13288 case $cc_basename in
13290 # Kuck and Associates, Inc. (KAI) C++ Compiler
13292 # KCC will only create a shared library if the output file
13293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13294 # to its proper name (with version) after linking.
13295 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'
13297 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13298 hardcode_libdir_separator_CXX=:
13300 # Archives containing C++ object files must be created using
13301 # the KAI C++ compiler.
13302 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13305 # Rational C++ 2.4.1
13306 # FIXME: insert proper C++ library support
13310 allow_undefined_flag_CXX=' -expect_unresolved \*'
13311 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'
13312 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13313 echo "-hidden">> $lib.exp~
13314 $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~
13317 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13318 hardcode_libdir_separator_CXX=:
13320 # Commands to make compiler produce verbose output that lists
13321 # what "hidden" libraries, object files and flags are used when
13322 # linking a shared library.
13324 # There doesn't appear to be a way to prevent this compiler from
13325 # explicitly linking system object files so we need to strip them
13326 # from the output so that they don't get included in the library
13328 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'
13331 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13332 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13333 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'
13335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13336 hardcode_libdir_separator_CXX=:
13338 # Commands to make compiler produce verbose output that lists
13339 # what "hidden" libraries, object files and flags are used when
13340 # linking a shared library.
13341 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13344 # FIXME: insert proper C++ library support
13351 # FIXME: insert proper C++ library support
13355 case $cc_basename in
13358 # FIXME: insert proper C++ library support
13363 # FIXME: insert proper C++ library support
13367 # FIXME: insert proper C++ library support
13373 case $cc_basename in
13375 # Sun C++ 4.2, 5.x and Centerline C++
13376 archive_cmds_need_lc_CXX=yes
13377 no_undefined_flag_CXX=' -zdefs'
13378 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13380 $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'
13382 hardcode_libdir_flag_spec_CXX='-R$libdir'
13383 hardcode_shlibpath_var_CXX=no
13385 solaris2.[0-5] | solaris2.[0-5].*) ;;
13387 # The compiler driver will combine and reorder linker options,
13388 # but understands `-z linker_flag'.
13389 # Supported since Solaris 2.6 (maybe 2.5.1?)
13390 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13393 link_all_deplibs_CXX=yes
13395 output_verbose_link_cmd='echo'
13397 # Archives containing C++ object files must be created using
13398 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13399 # necessary to make sure instantiated templates are included
13401 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13404 # Green Hills C++ Compiler
13405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13407 # The C++ compiler must be used to create the archive.
13408 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13411 # GNU C++ compiler with Solaris linker
13412 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13413 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13414 if $CC --version | grep -v '^2\.7' > /dev/null; then
13415 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13416 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13417 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13419 # Commands to make compiler produce verbose output that lists
13420 # what "hidden" libraries, object files and flags are used when
13421 # linking a shared library.
13422 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13424 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13426 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13427 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13428 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13430 # Commands to make compiler produce verbose output that lists
13431 # what "hidden" libraries, object files and flags are used when
13432 # linking a shared library.
13433 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13436 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13438 solaris2.[0-5] | solaris2.[0-5].*) ;;
13440 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13447 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13448 no_undefined_flag_CXX='${wl}-z,text'
13449 archive_cmds_need_lc_CXX=no
13450 hardcode_shlibpath_var_CXX=no
13451 runpath_var='LD_RUN_PATH'
13453 case $cc_basename in
13455 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13456 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13459 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 sysv5* | sco3.2v5* | sco5v6*)
13465 # Note: We can NOT use -z defs as we might desire, because we do not
13466 # link with -lc, and that would cause any symbols used from libc to
13467 # always be unresolved, which means just about no library would
13468 # ever link correctly. If we're not using GNU ld we use -z text
13469 # though, which does catch some bad symbols but isn't as heavy-handed
13471 # For security reasons, it is highly recommended that you always
13472 # use absolute paths for naming shared libraries, and exclude the
13473 # DT_RUNPATH tag from executables and libraries. But doing so
13474 # requires that you compile everything twice, which is a pain.
13475 # So that behaviour is only enabled if SCOABSPATH is set to a
13476 # non-empty value in the environment. Most likely only useful for
13477 # creating official distributions of packages.
13478 # This is a hack until libtool officially supports absolute path
13479 # names for shared libraries.
13480 no_undefined_flag_CXX='${wl}-z,text'
13481 allow_undefined_flag_CXX='${wl}-z,nodefs'
13482 archive_cmds_need_lc_CXX=no
13483 hardcode_shlibpath_var_CXX=no
13484 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13485 hardcode_libdir_separator_CXX=':'
13486 link_all_deplibs_CXX=yes
13487 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13488 runpath_var='LD_RUN_PATH'
13490 case $cc_basename in
13492 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 case $cc_basename in
13504 # NonStop-UX NCC 3.20
13505 # FIXME: insert proper C++ library support
13509 # FIXME: insert proper C++ library support
13515 # FIXME: insert proper C++ library support
13519 # FIXME: insert proper C++ library support
13523 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13524 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13525 test "$ld_shlibs_CXX" = no && can_build_shared=no
13531 cat > conftest.$ac_ext <<EOF
13535 Foo (void) { a = 0; }
13541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13542 (eval $ac_compile) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; then
13546 # Parse the compiler output and extract the necessary
13547 # objects, libraries and library flags.
13549 # Sentinel used to keep track of whether or not we are before
13550 # the conftest object file.
13551 pre_test_object_deps_done=no
13553 # The `*' in the case matches for architectures that use `case' in
13554 # $output_verbose_cmd can trigger glob expansion during the loop
13555 # eval without this substitution.
13556 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13558 for p in `eval $output_verbose_link_cmd`; do
13562 # Some compilers place space between "-{L,R}" and the path.
13563 # Remove the space.
13564 if test $p = "-L" \
13565 || test $p = "-R"; then
13572 if test "$pre_test_object_deps_done" = no; then
13575 # Internal compiler library paths should come after those
13576 # provided the user. The postdeps already come after the
13577 # user supplied libs so there is no need to process them.
13578 if test -z "$compiler_lib_search_path_CXX"; then
13579 compiler_lib_search_path_CXX="${prev}${p}"
13581 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13584 # The "-l" case would never come before the object being
13585 # linked, so don't bother handling this case.
13588 if test -z "$postdeps_CXX"; then
13589 postdeps_CXX="${prev}${p}"
13591 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13597 # This assumes that the test object file only shows up
13598 # once in the compiler output.
13599 if test "$p" = "conftest.$objext"; then
13600 pre_test_object_deps_done=yes
13604 if test "$pre_test_object_deps_done" = no; then
13605 if test -z "$predep_objects_CXX"; then
13606 predep_objects_CXX="$p"
13608 predep_objects_CXX="$predep_objects_CXX $p"
13611 if test -z "$postdep_objects_CXX"; then
13612 postdep_objects_CXX="$p"
13614 postdep_objects_CXX="$postdep_objects_CXX $p"
13619 *) ;; # Ignore the rest.
13627 echo "libtool.m4: error: problem compiling CXX test program"
13630 $rm -f confest.$objext
13632 # PORTME: override above test on systems where it is broken
13635 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13636 # hack all around it, let's just trust "g++" to DTRT.
13637 predep_objects_CXX=
13638 postdep_objects_CXX=
13643 case `$CC -V 2>&1 | sed 5q` in
13647 # The more standards-conforming stlport4 library is
13648 # incompatible with the Cstd library. Avoid specifying
13649 # it if it's in CXXFLAGS. Ignore libCrun as
13650 # -library=stlport4 depends on it.
13651 case " $CXX $CXXFLAGS " in
13652 *" -library=stlport4 "*)
13653 solaris_use_stlport4=yes
13656 if test "$solaris_use_stlport4" != yes; then
13657 postdeps_CXX='-library=Cstd -library=Crun'
13664 case $cc_basename in
13666 # The more standards-conforming stlport4 library is
13667 # incompatible with the Cstd library. Avoid specifying
13668 # it if it's in CXXFLAGS. Ignore libCrun as
13669 # -library=stlport4 depends on it.
13670 case " $CXX $CXXFLAGS " in
13671 *" -library=stlport4 "*)
13672 solaris_use_stlport4=yes
13676 # Adding this requires a known-good setup of shared libraries for
13677 # Sun compiler versions before 5.6, else PIC objects from an old
13678 # archive will be linked into the output, leading to subtle bugs.
13679 if test "$solaris_use_stlport4" != yes; then
13680 postdeps_CXX='-library=Cstd -library=Crun'
13688 case " $postdeps_CXX " in
13689 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13692 lt_prog_compiler_wl_CXX=
13693 lt_prog_compiler_pic_CXX=
13694 lt_prog_compiler_static_CXX=
13696 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13697 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13699 # C++ specific cases for pic, static, wl, etc.
13700 if test "$GXX" = yes; then
13701 lt_prog_compiler_wl_CXX='-Wl,'
13702 lt_prog_compiler_static_CXX='-static'
13706 # All AIX code is PIC.
13707 if test "$host_cpu" = ia64; then
13708 # AIX 5 now supports IA64 processor
13709 lt_prog_compiler_static_CXX='-Bstatic'
13713 # FIXME: we need at least 68020 code to build shared libraries, but
13714 # adding the `-m68020' flag to GCC prevents building anything better,
13716 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13718 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13719 # PIC is the default for these OSes.
13721 mingw* | cygwin* | os2* | pw32*)
13722 # This hack is so that the source file can tell whether it is being
13723 # built for inclusion in a dll (and should export symbols for example).
13724 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13725 # (--disable-auto-import) libraries
13726 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13728 darwin* | rhapsody*)
13729 # PIC is the default on this platform
13730 # Common symbols not allowed in MH_DYLIB files
13731 lt_prog_compiler_pic_CXX='-fno-common'
13734 # DJGPP does not support shared libraries at all
13735 lt_prog_compiler_pic_CXX=
13738 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13739 # Instead, we relocate shared libraries at runtime.
13742 if test -d /usr/nec; then
13743 lt_prog_compiler_pic_CXX=-Kconform_pic
13747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13748 # not for PA HP-UX.
13753 lt_prog_compiler_pic_CXX='-fPIC'
13758 lt_prog_compiler_pic_CXX='-fPIC'
13764 # All AIX code is PIC.
13765 if test "$host_cpu" = ia64; then
13766 # AIX 5 now supports IA64 processor
13767 lt_prog_compiler_static_CXX='-Bstatic'
13769 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13773 case $cc_basename in
13775 # Green Hills C++ Compiler
13776 # _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"
13781 # PIC is the default on this platform
13782 # Common symbols not allowed in MH_DYLIB files
13783 case $cc_basename in
13785 lt_prog_compiler_pic_CXX='-qnocommon'
13786 lt_prog_compiler_wl_CXX='-Wl,'
13791 case $cc_basename in
13793 lt_prog_compiler_pic_CXX='-KPIC'
13796 # Green Hills C++ Compiler
13797 lt_prog_compiler_pic_CXX='-pic'
13803 freebsd* | dragonfly*)
13804 # FreeBSD uses GNU C++
13806 hpux9* | hpux10* | hpux11*)
13807 case $cc_basename in
13809 lt_prog_compiler_wl_CXX='-Wl,'
13810 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13811 if test "$host_cpu" != ia64; then
13812 lt_prog_compiler_pic_CXX='+Z'
13816 lt_prog_compiler_wl_CXX='-Wl,'
13817 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13823 lt_prog_compiler_pic_CXX='+Z'
13832 # This is c89, which is MS Visual C++ (no shared libs)
13833 # Anyone wants to do a port?
13835 irix5* | irix6* | nonstopux*)
13836 case $cc_basename in
13838 lt_prog_compiler_wl_CXX='-Wl,'
13839 lt_prog_compiler_static_CXX='-non_shared'
13840 # CC pic flag -KPIC is the default.
13846 linux* | k*bsd*-gnu)
13847 case $cc_basename in
13850 lt_prog_compiler_wl_CXX='--backend -Wl,'
13851 lt_prog_compiler_pic_CXX='-fPIC'
13855 lt_prog_compiler_wl_CXX='-Wl,'
13856 lt_prog_compiler_pic_CXX='-KPIC'
13857 lt_prog_compiler_static_CXX='-static'
13860 # Portland Group C++ compiler.
13861 lt_prog_compiler_wl_CXX='-Wl,'
13862 lt_prog_compiler_pic_CXX='-fpic'
13863 lt_prog_compiler_static_CXX='-Bstatic'
13867 # Make sure the PIC flag is empty. It appears that all Alpha
13868 # Linux and Compaq Tru64 Unix objects are PIC.
13869 lt_prog_compiler_pic_CXX=
13870 lt_prog_compiler_static_CXX='-non_shared'
13873 case `$CC -V 2>&1 | sed 5q` in
13876 lt_prog_compiler_pic_CXX='-KPIC'
13877 lt_prog_compiler_static_CXX='-Bstatic'
13878 lt_prog_compiler_wl_CXX='-Qoption ld '
13889 case $cc_basename in
13891 lt_prog_compiler_pic_CXX='-W c,exportall'
13897 netbsd* | netbsdelf*-gnu)
13899 osf3* | osf4* | osf5*)
13900 case $cc_basename in
13902 lt_prog_compiler_wl_CXX='--backend -Wl,'
13905 # Rational C++ 2.4.1
13906 lt_prog_compiler_pic_CXX='-pic'
13909 # Digital/Compaq C++
13910 lt_prog_compiler_wl_CXX='-Wl,'
13911 # Make sure the PIC flag is empty. It appears that all Alpha
13912 # Linux and Compaq Tru64 Unix objects are PIC.
13913 lt_prog_compiler_pic_CXX=
13914 lt_prog_compiler_static_CXX='-non_shared'
13923 case $cc_basename in
13925 # Sun C++ 4.2, 5.x and Centerline C++
13926 lt_prog_compiler_pic_CXX='-KPIC'
13927 lt_prog_compiler_static_CXX='-Bstatic'
13928 lt_prog_compiler_wl_CXX='-Qoption ld '
13931 # Green Hills C++ Compiler
13932 lt_prog_compiler_pic_CXX='-PIC'
13939 case $cc_basename in
13942 lt_prog_compiler_pic_CXX='-pic'
13943 lt_prog_compiler_static_CXX='-Bstatic'
13947 lt_prog_compiler_pic_CXX='-pic'
13954 case $cc_basename in
13956 # NonStop-UX NCC 3.20
13957 lt_prog_compiler_pic_CXX='-KPIC'
13963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13964 case $cc_basename in
13966 lt_prog_compiler_wl_CXX='-Wl,'
13967 lt_prog_compiler_pic_CXX='-KPIC'
13968 lt_prog_compiler_static_CXX='-Bstatic'
13975 lt_prog_compiler_can_build_shared_CXX=no
13980 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13981 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13984 # Check to make sure the PIC flag actually works.
13986 if test -n "$lt_prog_compiler_pic_CXX"; then
13988 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13989 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13990 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 lt_prog_compiler_pic_works_CXX=no
13994 ac_outfile=conftest.$ac_objext
13995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13996 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13997 # Insert the option either (1) after the last *FLAGS variable, or
13998 # (2) before a word containing "conftest.", or (3) at the end.
13999 # Note that $ac_compile itself does not contain backslashes and begins
14000 # with a dollar sign (not a hyphen), so the echo should work correctly.
14001 # The option is referenced via a variable to avoid confusing sed.
14002 lt_compile=`echo "$ac_compile" | $SED \
14003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14005 -e 's:$: $lt_compiler_flag:'`
14006 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14007 (eval "$lt_compile" 2>conftest.err)
14009 cat conftest.err >&5
14010 echo "$as_me:__oline__: \$? = $ac_status" >&5
14011 if (exit $ac_status) && test -s "$ac_outfile"; then
14012 # The compiler can only warn and ignore the option if not recognized
14013 # So say no if there are warnings other than the usual output.
14014 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14017 lt_prog_compiler_pic_works_CXX=yes
14023 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14024 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14026 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14027 case $lt_prog_compiler_pic_CXX in
14029 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14032 lt_prog_compiler_pic_CXX=
14033 lt_prog_compiler_can_build_shared_CXX=no
14038 # For platforms which do not support PIC, -DPIC is meaningless:
14040 lt_prog_compiler_pic_CXX=
14043 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14048 # Check to make sure the static flag actually works.
14050 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14051 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14052 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14053 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 lt_prog_compiler_static_works_CXX=no
14057 save_LDFLAGS="$LDFLAGS"
14058 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14060 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14061 # The linker can only warn and ignore the option if not recognized
14062 # So say no if there are warnings
14063 if test -s conftest.err; then
14064 # Append any errors to the config.log.
14065 cat conftest.err 1>&5
14066 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14068 if diff conftest.exp conftest.er2 >/dev/null; then
14069 lt_prog_compiler_static_works_CXX=yes
14072 lt_prog_compiler_static_works_CXX=yes
14076 LDFLAGS="$save_LDFLAGS"
14079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14080 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14082 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14085 lt_prog_compiler_static_CXX=
14089 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14090 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14091 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 lt_cv_prog_compiler_c_o_CXX=no
14095 $rm -r conftest 2>/dev/null
14099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14101 lt_compiler_flag="-o out/conftest2.$ac_objext"
14102 # Insert the option either (1) after the last *FLAGS variable, or
14103 # (2) before a word containing "conftest.", or (3) at the end.
14104 # Note that $ac_compile itself does not contain backslashes and begins
14105 # with a dollar sign (not a hyphen), so the echo should work correctly.
14106 lt_compile=`echo "$ac_compile" | $SED \
14107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14109 -e 's:$: $lt_compiler_flag:'`
14110 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14111 (eval "$lt_compile" 2>out/conftest.err)
14113 cat out/conftest.err >&5
14114 echo "$as_me:__oline__: \$? = $ac_status" >&5
14115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14117 # The compiler can only warn and ignore the option if not recognized
14118 # So say no if there are warnings
14119 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14122 lt_cv_prog_compiler_c_o_CXX=yes
14127 # SGI C++ compiler will create directory out/ii_files/ for
14128 # template instantiation
14129 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14130 $rm out/* && rmdir out
14136 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14137 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14140 hard_links="nottested"
14141 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14142 # do not overwrite the value of need_locks provided by the user
14143 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14144 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14149 ln conftest.a conftest.b 2>&5 || hard_links=no
14150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14151 { echo "$as_me:$LINENO: result: $hard_links" >&5
14152 echo "${ECHO_T}$hard_links" >&6; }
14153 if test "$hard_links" = no; then
14154 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14155 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14162 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14163 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14168 # If we're using GNU nm, then we don't want the "-C" option.
14169 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14170 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14171 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'
14173 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'
14177 export_symbols_cmds_CXX="$ltdll_cmds"
14180 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'
14182 linux* | k*bsd*-gnu)
14183 link_all_deplibs_CXX=no
14186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14190 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14191 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14192 test "$ld_shlibs_CXX" = no && can_build_shared=no
14195 # Do we need to explicitly link libc?
14197 case "x$archive_cmds_need_lc_CXX" in
14199 # Assume -lc should be added
14200 archive_cmds_need_lc_CXX=yes
14202 if test "$enable_shared" = yes && test "$GCC" = yes; then
14203 case $archive_cmds_CXX in
14205 # FIXME: we may have to deal with multi-command sequences.
14208 # Test whether the compiler implicitly links with -lc since on some
14209 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14210 # to ld, don't add -lc before -lgcc.
14211 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14212 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217 (eval $ac_compile) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } 2>conftest.err; then
14223 libobjs=conftest.$ac_objext
14225 wl=$lt_prog_compiler_wl_CXX
14226 pic_flag=$lt_prog_compiler_pic_CXX
14232 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14233 allow_undefined_flag_CXX=
14234 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14235 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }
14240 archive_cmds_need_lc_CXX=no
14242 archive_cmds_need_lc_CXX=yes
14244 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14246 cat conftest.err 1>&5
14249 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14250 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14257 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14258 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14259 library_names_spec=
14260 libname_spec='lib$name'
14264 postuninstall_cmds=
14268 shlibpath_overrides_runpath=unknown
14270 dynamic_linker="$host_os ld.so"
14271 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14273 need_lib_prefix=unknown
14274 hardcode_into_libs=no
14276 # when you set need_version to no, make sure it does not cause -set_version
14277 # flags to be left without arguments
14278 need_version=unknown
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14284 shlibpath_var=LIBPATH
14286 # AIX 3 has no versioning support, so we append a major version to the name.
14287 soname_spec='${libname}${release}${shared_ext}$major'
14294 hardcode_into_libs=yes
14295 if test "$host_cpu" = ia64; then
14296 # AIX 5 supports IA64
14297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14298 shlibpath_var=LD_LIBRARY_PATH
14300 # With GCC up to 2.95.x, collect2 would create an import file
14301 # for dependence libraries. The import file would start with
14302 # the line `#! .'. This would cause the generated library to
14303 # depend on `.', always an invalid library. This was fixed in
14304 # development snapshots of GCC prior to 3.0.
14306 aix4 | aix4.[01] | aix4.[01].*)
14307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14312 can_build_shared=no
14316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14317 # soname into executable. Probably we can add versioning support to
14318 # collect2, so additional links can be useful in future.
14319 if test "$aix_use_runtimelinking" = yes; then
14320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14321 # instead of lib<name>.a to let people know that these are not
14322 # typical AIX shared libraries.
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325 # We preserve .a as extension for shared libraries through AIX4.2
14326 # and later when we are not doing run time linking.
14327 library_names_spec='${libname}${release}.a $libname.a'
14328 soname_spec='${libname}${release}${shared_ext}$major'
14330 shlibpath_var=LIBPATH
14335 library_names_spec='$libname.ixlibrary $libname.a'
14336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14337 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'
14341 library_names_spec='${libname}${shared_ext}'
14342 dynamic_linker="$host_os ld.so"
14343 shlibpath_var=LIBRARY_PATH
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350 soname_spec='${libname}${release}${shared_ext}$major'
14351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14352 shlibpath_var=LD_LIBRARY_PATH
14353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14355 # the default ld.so.conf also contains /usr/contrib/lib and
14356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14357 # libtool to hard-code these into programs
14360 cygwin* | mingw* | pw32*)
14361 version_type=windows
14366 case $GCC,$host_os in
14367 yes,cygwin* | yes,mingw* | yes,pw32*)
14368 library_names_spec='$libname.dll.a'
14369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14370 postinstall_cmds='base_file=`basename \${file}`~
14371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14372 dldir=$destdir/`dirname \$dlpath`~
14373 test -d \$dldir || mkdir -p \$dldir~
14374 $install_prog $dir/$dlname \$dldir/$dlname~
14375 chmod a+x \$dldir/$dlname'
14376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14377 dlpath=$dir/\$dldll~
14379 shlibpath_overrides_runpath=yes
14383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14388 # MinGW DLLs use traditional 'lib' prefix
14389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14392 # It is most probably a Windows format PATH printed by
14393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14394 # path with ; separators, and with drive letters. We can handle the
14395 # drive letters (cygwin fileutils understands them), so leave them,
14396 # especially as we might pass files found there to a mingw objdump,
14397 # which wouldn't understand a cygwinified path. Ahh.
14398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14404 # pw32 DLLs use 'pw' prefix rather than 'lib'
14405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14414 dynamic_linker='Win32 ld.exe'
14415 # FIXME: first we should search . and the directory the executable is in
14419 darwin* | rhapsody*)
14420 dynamic_linker="$host_os dyld"
14421 version_type=darwin
14424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14425 soname_spec='${libname}${release}${major}$shared_ext'
14426 shlibpath_overrides_runpath=yes
14427 shlibpath_var=DYLD_LIBRARY_PATH
14428 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 shlibpath_var=LD_LIBRARY_PATH
14446 freebsd* | dragonfly*)
14447 # DragonFly does not have aout. When/if they implement a new
14448 # versioning mechanism, adjust this.
14449 if test -x /usr/bin/objformat; then
14450 objformat=`/usr/bin/objformat`
14453 freebsd[123]*) objformat=aout ;;
14454 *) objformat=elf ;;
14457 version_type=freebsd-$objformat
14458 case $version_type in
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14469 shlibpath_var=LD_LIBRARY_PATH
14472 shlibpath_overrides_runpath=yes
14474 freebsd3.[01]* | freebsdelf3.[01]*)
14475 shlibpath_overrides_runpath=yes
14476 hardcode_into_libs=yes
14478 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14479 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14480 shlibpath_overrides_runpath=no
14481 hardcode_into_libs=yes
14483 *) # from 4.6 on, and DragonFly
14484 shlibpath_overrides_runpath=yes
14485 hardcode_into_libs=yes
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 shlibpath_var=LD_LIBRARY_PATH
14497 hardcode_into_libs=yes
14500 hpux9* | hpux10* | hpux11*)
14501 # Give a soname corresponding to the major version so that dld.sl refuses to
14502 # link against other versions.
14509 hardcode_into_libs=yes
14510 dynamic_linker="$host_os dld.so"
14511 shlibpath_var=LD_LIBRARY_PATH
14512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 soname_spec='${libname}${release}${shared_ext}$major'
14515 if test "X$HPUX_IA64_MODE" = X32; then
14516 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14518 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14524 hardcode_into_libs=yes
14525 dynamic_linker="$host_os dld.sl"
14526 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14535 dynamic_linker="$host_os dld.sl"
14536 shlibpath_var=SHLIB_PATH
14537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14542 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14543 postinstall_cmds='chmod 555 $lib'
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14553 shlibpath_var=LD_LIBRARY_PATH
14554 shlibpath_overrides_runpath=no
14555 hardcode_into_libs=yes
14558 irix5* | irix6* | nonstopux*)
14560 nonstopux*) version_type=nonstopux ;;
14562 if test "$lt_cv_prog_gnu_ld" = yes; then
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14573 irix5* | nonstopux*)
14574 libsuff= shlibsuff=
14577 case $LD in # libtool.m4 will add one of these switches to LD
14578 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14579 libsuff= shlibsuff= libmagic=32-bit;;
14580 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14581 libsuff=32 shlibsuff=N32 libmagic=N32;;
14582 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14583 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14584 *) libsuff= shlibsuff= libmagic=never-match;;
14588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14589 shlibpath_overrides_runpath=no
14590 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14591 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14592 hardcode_into_libs=yes
14595 # No shared lib support for Linux oldld, aout, or coff.
14596 linux*oldld* | linux*aout* | linux*coff*)
14600 # This must be Linux ELF.
14601 linux* | k*bsd*-gnu)
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=no
14610 # This implies no fast_install, which is unacceptable.
14611 # Some rework will be needed to allow for fast_install
14612 # before this can be enabled.
14613 hardcode_into_libs=yes
14615 # Append ld.so.conf contents to the search path
14616 if test -f /etc/ld.so.conf; then
14617 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' ' '`
14618 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14621 # We used to test for /lib/ld.so.1 and disable shared libraries on
14622 # powerpc, because MkLinux only supported shared libraries with the
14623 # GNU dynamic linker. Since this was broken with cross compilers,
14624 # most powerpc-linux boxes support dynamic linking these days and
14625 # people can always --disable-shared, the test was removed, and we
14626 # assume the GNU/Linux dynamic linker is in use.
14627 dynamic_linker='GNU/Linux ld.so'
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=no
14638 hardcode_into_libs=yes
14639 dynamic_linker='NetBSD ld.elf_so'
14646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14649 dynamic_linker='NetBSD (a.out) ld.so'
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 dynamic_linker='NetBSD ld.elf_so'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 shlibpath_overrides_runpath=yes
14657 hardcode_into_libs=yes
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=yes
14671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672 soname_spec='${libname}${release}${shared_ext}$major'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=yes
14679 sys_lib_dlsearch_path_spec="/usr/lib"
14681 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14683 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14684 *) need_version=no ;;
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14691 openbsd2.[89] | openbsd2.[89].*)
14692 shlibpath_overrides_runpath=no
14695 shlibpath_overrides_runpath=yes
14699 shlibpath_overrides_runpath=yes
14704 libname_spec='$name'
14707 library_names_spec='$libname${shared_ext} $libname.a'
14708 dynamic_linker='OS/2 ld.exe'
14709 shlibpath_var=LIBPATH
14712 osf3* | osf4* | osf5*)
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 shlibpath_overrides_runpath=yes
14735 hardcode_into_libs=yes
14736 # ldd complains unless libraries are executable
14737 postinstall_cmds='chmod +x $lib'
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 shlibpath_overrides_runpath=yes
14746 if test "$with_gnu_ld" = yes; then
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 case $host_vendor in
14759 shlibpath_overrides_runpath=no
14761 export_dynamic_flag_spec='${wl}-Blargedynsym'
14762 runpath_var=LD_RUN_PATH
14770 shlibpath_overrides_runpath=no
14771 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14777 if test -d /usr/nec ;then
14779 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14780 soname_spec='$libname${shared_ext}.$major'
14781 shlibpath_var=LD_LIBRARY_PATH
14785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14786 version_type=freebsd-elf
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 hardcode_into_libs=yes
14793 if test "$with_gnu_ld" = yes; then
14794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14795 shlibpath_overrides_runpath=no
14797 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14798 shlibpath_overrides_runpath=yes
14801 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14805 sys_lib_dlsearch_path_spec='/usr/lib'
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 shlibpath_var=LD_LIBRARY_PATH
14819 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14820 echo "${ECHO_T}$dynamic_linker" >&6; }
14821 test "$dynamic_linker" = no && can_build_shared=no
14823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14824 if test "$GCC" = yes; then
14825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14828 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14829 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14830 hardcode_action_CXX=
14831 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14832 test -n "$runpath_var_CXX" || \
14833 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14835 # We can hardcode non-existant directories.
14836 if test "$hardcode_direct_CXX" != no &&
14837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14838 # have to relink, otherwise we might link with an installed library
14839 # when we should be linking with a yet-to-be-installed one
14840 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14841 test "$hardcode_minus_L_CXX" != no; then
14842 # Linking always hardcodes the temporary library directory.
14843 hardcode_action_CXX=relink
14845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14846 hardcode_action_CXX=immediate
14849 # We cannot hardcode anything, or else we can only hardcode existing
14851 hardcode_action_CXX=unsupported
14853 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14854 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14856 if test "$hardcode_action_CXX" = relink; then
14857 # Fast installation is not supported
14858 enable_fast_install=no
14859 elif test "$shlibpath_overrides_runpath" = yes ||
14860 test "$enable_shared" = no; then
14861 # Fast installation is not necessary
14862 enable_fast_install=needless
14866 # The else clause should only fire when bootstrapping the
14867 # libtool distribution, otherwise you forgot to ship ltmain.sh
14868 # with your package, and you will get complaints that there are
14869 # no rules to generate ltmain.sh.
14870 if test -f "$ltmain"; then
14871 # See if we are running on zsh, and set the options which allow our commands through
14872 # without removal of \ escapes.
14873 if test -n "${ZSH_VERSION+set}" ; then
14874 setopt NO_GLOB_SUBST
14876 # Now quote all the things that may contain metacharacters while being
14877 # careful not to overquote the AC_SUBSTed values. We take copies of the
14878 # variables and quote the copies for generation of the libtool script.
14879 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14881 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14882 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14883 deplibs_check_method reload_flag reload_cmds need_locks \
14884 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14885 lt_cv_sys_global_symbol_to_c_name_address \
14886 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14887 old_postinstall_cmds old_postuninstall_cmds \
14891 lt_prog_compiler_wl_CXX \
14892 lt_prog_compiler_pic_CXX \
14893 lt_prog_compiler_static_CXX \
14894 lt_prog_compiler_no_builtin_flag_CXX \
14895 export_dynamic_flag_spec_CXX \
14896 thread_safe_flag_spec_CXX \
14897 whole_archive_flag_spec_CXX \
14898 enable_shared_with_static_runtimes_CXX \
14899 old_archive_cmds_CXX \
14900 old_archive_from_new_cmds_CXX \
14901 predep_objects_CXX \
14902 postdep_objects_CXX \
14905 compiler_lib_search_path_CXX \
14907 archive_expsym_cmds_CXX \
14908 postinstall_cmds_CXX \
14909 postuninstall_cmds_CXX \
14910 old_archive_from_expsyms_cmds_CXX \
14911 allow_undefined_flag_CXX \
14912 no_undefined_flag_CXX \
14913 export_symbols_cmds_CXX \
14914 hardcode_libdir_flag_spec_CXX \
14915 hardcode_libdir_flag_spec_ld_CXX \
14916 hardcode_libdir_separator_CXX \
14917 hardcode_automatic_CXX \
14919 module_expsym_cmds_CXX \
14920 lt_cv_prog_compiler_c_o_CXX \
14921 fix_srcfile_path_CXX \
14922 exclude_expsyms_CXX \
14923 include_expsyms_CXX; do
14926 old_archive_cmds_CXX | \
14927 old_archive_from_new_cmds_CXX | \
14928 archive_cmds_CXX | \
14929 archive_expsym_cmds_CXX | \
14930 module_cmds_CXX | \
14931 module_expsym_cmds_CXX | \
14932 old_archive_from_expsyms_cmds_CXX | \
14933 export_symbols_cmds_CXX | \
14934 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14935 postinstall_cmds | postuninstall_cmds | \
14936 old_postinstall_cmds | old_postuninstall_cmds | \
14937 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14938 # Double-quote double-evaled strings.
14939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14942 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14948 *'\$0 --fallback-echo"')
14949 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14955 cat <<__EOF__ >> "$cfgfile"
14956 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14958 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14960 # Shell to use when invoking shell scripts.
14963 # Whether or not to build shared libraries.
14964 build_libtool_libs=$enable_shared
14966 # Whether or not to build static libraries.
14967 build_old_libs=$enable_static
14969 # Whether or not to add -lc for building shared libraries.
14970 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14972 # Whether or not to disallow shared libs when runtime libs are static
14973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14975 # Whether or not to optimize for fast installation.
14976 fast_install=$enable_fast_install
14979 host_alias=$host_alias
14983 # The build system.
14984 build_alias=$build_alias
14988 # An echo program that does not interpret backslashes.
14993 AR_FLAGS=$lt_AR_FLAGS
14998 # LTCC compiler flags.
14999 LTCFLAGS=$lt_LTCFLAGS
15001 # A language-specific compiler.
15002 CC=$lt_compiler_CXX
15004 # Is the compiler the GNU C compiler?
15010 # The linker used to build libraries.
15013 # Whether we need hard or soft links.
15016 # A BSD-compatible nm program.
15019 # A symbol stripping program
15022 # Used to examine libraries when file_magic_cmd begins "file"
15023 MAGIC_CMD=$MAGIC_CMD
15025 # Used on cygwin: DLL creation program.
15028 # Used on cygwin: object dumper.
15031 # Used on cygwin: assembler.
15034 # The name of the directory that contains temporary libtool files.
15037 # How to create reloadable object files.
15038 reload_flag=$lt_reload_flag
15039 reload_cmds=$lt_reload_cmds
15041 # How to pass a linker flag through the compiler.
15042 wl=$lt_lt_prog_compiler_wl_CXX
15044 # Object file suffix (normally "o").
15045 objext="$ac_objext"
15047 # Old archive suffix (normally "a").
15050 # Shared library suffix (normally ".so").
15051 shrext_cmds='$shrext_cmds'
15053 # Executable file suffix (normally "").
15056 # Additional compiler flags for building library objects.
15057 pic_flag=$lt_lt_prog_compiler_pic_CXX
15060 # What is the maximum length of a command?
15061 max_cmd_len=$lt_cv_sys_max_cmd_len
15063 # Does compiler simultaneously support -c and -o options?
15064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15066 # Must we lock files when doing compilation?
15067 need_locks=$lt_need_locks
15069 # Do we need the lib prefix for modules?
15070 need_lib_prefix=$need_lib_prefix
15072 # Do we need a version for libraries?
15073 need_version=$need_version
15075 # Whether dlopen is supported.
15076 dlopen_support=$enable_dlopen
15078 # Whether dlopen of programs is supported.
15079 dlopen_self=$enable_dlopen_self
15081 # Whether dlopen of statically linked programs is supported.
15082 dlopen_self_static=$enable_dlopen_self_static
15084 # Compiler flag to prevent dynamic linking.
15085 link_static_flag=$lt_lt_prog_compiler_static_CXX
15087 # Compiler flag to turn off builtin functions.
15088 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15090 # Compiler flag to allow reflexive dlopens.
15091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15093 # Compiler flag to generate shared objects directly from archives.
15094 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15096 # Compiler flag to generate thread-safe objects.
15097 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15099 # Library versioning type.
15100 version_type=$version_type
15102 # Format of library name prefix.
15103 libname_spec=$lt_libname_spec
15105 # List of archive names. First name is the real one, the rest are links.
15106 # The last name is the one that the linker finds with -lNAME.
15107 library_names_spec=$lt_library_names_spec
15109 # The coded name of the library, if different from the real name.
15110 soname_spec=$lt_soname_spec
15112 # Commands used to build and install an old-style archive.
15114 old_archive_cmds=$lt_old_archive_cmds_CXX
15115 old_postinstall_cmds=$lt_old_postinstall_cmds
15116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15118 # Create an old-style archive from a shared archive.
15119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15121 # Create a temporary old-style archive to link instead of a shared archive.
15122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15124 # Commands used to build and install a shared archive.
15125 archive_cmds=$lt_archive_cmds_CXX
15126 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15127 postinstall_cmds=$lt_postinstall_cmds
15128 postuninstall_cmds=$lt_postuninstall_cmds
15130 # Commands used to build a loadable module (assumed same as above if empty)
15131 module_cmds=$lt_module_cmds_CXX
15132 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15134 # Commands to strip libraries.
15135 old_striplib=$lt_old_striplib
15136 striplib=$lt_striplib
15138 # Dependencies to place before the objects being linked to create a
15140 predep_objects=$lt_predep_objects_CXX
15142 # Dependencies to place after the objects being linked to create a
15144 postdep_objects=$lt_postdep_objects_CXX
15146 # Dependencies to place before the objects being linked to create a
15148 predeps=$lt_predeps_CXX
15150 # Dependencies to place after the objects being linked to create a
15152 postdeps=$lt_postdeps_CXX
15154 # The library search path used internally by the compiler when linking
15155 # a shared library.
15156 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15158 # Method to check whether dependent libraries are shared objects.
15159 deplibs_check_method=$lt_deplibs_check_method
15161 # Command to use when deplibs_check_method == file_magic.
15162 file_magic_cmd=$lt_file_magic_cmd
15164 # Flag that allows shared libraries with undefined symbols to be built.
15165 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15167 # Flag that forces no undefined symbols.
15168 no_undefined_flag=$lt_no_undefined_flag_CXX
15170 # Commands used to finish a libtool library installation in a directory.
15171 finish_cmds=$lt_finish_cmds
15173 # Same as above, but a single script fragment to be evaled but not shown.
15174 finish_eval=$lt_finish_eval
15176 # Take the output of nm and produce a listing of raw symbols and C names.
15177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15179 # Transform the output of nm in a proper C declaration
15180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15182 # Transform the output of nm in a C name address pair
15183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15185 # This is the shared library runtime path variable.
15186 runpath_var=$runpath_var
15188 # This is the shared library path variable.
15189 shlibpath_var=$shlibpath_var
15191 # Is shlibpath searched before the hard-coded library search path?
15192 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15194 # How to hardcode a shared library path into an executable.
15195 hardcode_action=$hardcode_action_CXX
15197 # Whether we should hardcode library paths into libraries.
15198 hardcode_into_libs=$hardcode_into_libs
15200 # Flag to hardcode \$libdir into a binary during linking.
15201 # This must work even if \$libdir does not exist.
15202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15204 # If ld is used when linking, flag to hardcode \$libdir into
15205 # a binary during linking. This must work even if \$libdir does
15207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15209 # Whether we need a single -rpath flag with a separated argument.
15210 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15212 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15213 # resulting binary.
15214 hardcode_direct=$hardcode_direct_CXX
15216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15217 # resulting binary.
15218 hardcode_minus_L=$hardcode_minus_L_CXX
15220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15221 # the resulting binary.
15222 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15224 # Set to yes if building a shared library automatically hardcodes DIR into the library
15225 # and all subsequent libraries and executables linked against it.
15226 hardcode_automatic=$hardcode_automatic_CXX
15228 # Variables whose values should be saved in libtool wrapper scripts and
15229 # restored at relink time.
15230 variables_saved_for_relink="$variables_saved_for_relink"
15232 # Whether libtool must link a program against all its dependency libraries.
15233 link_all_deplibs=$link_all_deplibs_CXX
15235 # Compile-time system search path for libraries
15236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15238 # Run-time system search path for libraries
15239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15241 # Fix the shell variable \$srcfile for the compiler.
15242 fix_srcfile_path=$lt_fix_srcfile_path
15244 # Set to yes if exported symbols are required.
15245 always_export_symbols=$always_export_symbols_CXX
15247 # The commands to list exported symbols.
15248 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15250 # The commands to extract the exported symbol list from a shared archive.
15251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15253 # Symbols that should not be listed in the preloaded symbols.
15254 exclude_expsyms=$lt_exclude_expsyms_CXX
15256 # Symbols that must always be exported.
15257 include_expsyms=$lt_include_expsyms_CXX
15259 # ### END LIBTOOL TAG CONFIG: $tagname
15265 # If there is no Makefile yet, we rely on a make rule to execute
15266 # `config.status --recheck' to rerun these tests and create the
15267 # libtool script then.
15268 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15269 if test -f "$ltmain_in"; then
15270 test -f Makefile && make "$ltmain"
15276 ac_cpp='$CPP $CPPFLAGS'
15277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15285 with_gnu_ldcxx=$with_gnu_ld
15286 with_gnu_ld=$lt_save_with_gnu_ld
15287 lt_cv_path_LDCXX=$lt_cv_path_LD
15288 lt_cv_path_LD=$lt_save_path_LD
15289 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15290 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15298 if test -n "$F77" && test "X$F77" != "Xno"; then
15301 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15302 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15303 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15306 archive_cmds_need_lc_F77=no
15307 allow_undefined_flag_F77=
15308 always_export_symbols_F77=no
15309 archive_expsym_cmds_F77=
15310 export_dynamic_flag_spec_F77=
15311 hardcode_direct_F77=no
15312 hardcode_libdir_flag_spec_F77=
15313 hardcode_libdir_flag_spec_ld_F77=
15314 hardcode_libdir_separator_F77=
15315 hardcode_minus_L_F77=no
15316 hardcode_automatic_F77=no
15318 module_expsym_cmds_F77=
15319 link_all_deplibs_F77=unknown
15320 old_archive_cmds_F77=$old_archive_cmds
15321 no_undefined_flag_F77=
15322 whole_archive_flag_spec_F77=
15323 enable_shared_with_static_runtimes_F77=no
15325 # Source file extension for f77 test sources.
15328 # Object file extension for compiled f77 test sources.
15332 # Code to be used in simple compile tests
15333 lt_simple_compile_test_code="\
15339 # Code to be used in simple link tests
15340 lt_simple_link_test_code="\
15345 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15347 # If no C compiler was specified, use CC.
15350 # If no C compiler flags were specified, use CFLAGS.
15351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15353 # Allow CC to be a program name with arguments.
15357 # save warnings/boilerplate of simple test code
15358 ac_outfile=conftest.$ac_objext
15359 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15361 _lt_compiler_boilerplate=`cat conftest.err`
15364 ac_outfile=conftest.$ac_objext
15365 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15367 _lt_linker_boilerplate=`cat conftest.err`
15371 # Allow CC to be a program name with arguments.
15376 for cc_temp in $compiler""; do
15378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15384 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15387 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15388 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15389 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15390 echo "${ECHO_T}$can_build_shared" >&6; }
15392 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15393 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15394 test "$can_build_shared" = "no" && enable_shared=no
15396 # On AIX, shared libraries and static libraries use the same namespace, and
15397 # are all built from PIC.
15400 test "$enable_shared" = yes && enable_static=no
15401 if test -n "$RANLIB"; then
15402 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15403 postinstall_cmds='$RANLIB $lib'
15407 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15408 test "$enable_shared" = yes && enable_static=no
15412 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15413 echo "${ECHO_T}$enable_shared" >&6; }
15415 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15416 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15417 # Make sure either enable_shared or enable_static is yes.
15418 test "$enable_shared" = yes || enable_static=yes
15419 { echo "$as_me:$LINENO: result: $enable_static" >&5
15420 echo "${ECHO_T}$enable_static" >&6; }
15425 lt_prog_compiler_wl_F77=
15426 lt_prog_compiler_pic_F77=
15427 lt_prog_compiler_static_F77=
15429 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15430 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15432 if test "$GCC" = yes; then
15433 lt_prog_compiler_wl_F77='-Wl,'
15434 lt_prog_compiler_static_F77='-static'
15438 # All AIX code is PIC.
15439 if test "$host_cpu" = ia64; then
15440 # AIX 5 now supports IA64 processor
15441 lt_prog_compiler_static_F77='-Bstatic'
15446 # FIXME: we need at least 68020 code to build shared libraries, but
15447 # adding the `-m68020' flag to GCC prevents building anything better,
15449 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15452 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15453 # PIC is the default for these OSes.
15456 mingw* | cygwin* | pw32* | os2*)
15457 # This hack is so that the source file can tell whether it is being
15458 # built for inclusion in a dll (and should export symbols for example).
15459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15460 # (--disable-auto-import) libraries
15461 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15464 darwin* | rhapsody*)
15465 # PIC is the default on this platform
15466 # Common symbols not allowed in MH_DYLIB files
15467 lt_prog_compiler_pic_F77='-fno-common'
15471 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15472 # Instead, we relocate shared libraries at runtime.
15476 # Just because we use GCC doesn't mean we suddenly get shared libraries
15477 # on systems that don't support them.
15478 lt_prog_compiler_can_build_shared_F77=no
15483 if test -d /usr/nec; then
15484 lt_prog_compiler_pic_F77=-Kconform_pic
15489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15490 # not for PA HP-UX.
15496 lt_prog_compiler_pic_F77='-fPIC'
15502 lt_prog_compiler_pic_F77='-fPIC'
15506 # PORTME Check for flag to pass linker flags through the system compiler.
15509 lt_prog_compiler_wl_F77='-Wl,'
15510 if test "$host_cpu" = ia64; then
15511 # AIX 5 now supports IA64 processor
15512 lt_prog_compiler_static_F77='-Bstatic'
15514 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15518 # PIC is the default on this platform
15519 # Common symbols not allowed in MH_DYLIB files
15520 case $cc_basename in
15522 lt_prog_compiler_pic_F77='-qnocommon'
15523 lt_prog_compiler_wl_F77='-Wl,'
15528 mingw* | cygwin* | pw32* | os2*)
15529 # This hack is so that the source file can tell whether it is being
15530 # built for inclusion in a dll (and should export symbols for example).
15531 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15534 hpux9* | hpux10* | hpux11*)
15535 lt_prog_compiler_wl_F77='-Wl,'
15536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15537 # not for PA HP-UX.
15543 lt_prog_compiler_pic_F77='+Z'
15546 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15547 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15550 irix5* | irix6* | nonstopux*)
15551 lt_prog_compiler_wl_F77='-Wl,'
15552 # PIC (with -KPIC) is the default.
15553 lt_prog_compiler_static_F77='-non_shared'
15557 lt_prog_compiler_pic_F77='-KPIC'
15558 lt_prog_compiler_static_F77='-Bstatic'
15561 linux* | k*bsd*-gnu)
15562 case $cc_basename in
15564 lt_prog_compiler_wl_F77='-Wl,'
15565 lt_prog_compiler_pic_F77='-KPIC'
15566 lt_prog_compiler_static_F77='-static'
15568 pgcc* | pgf77* | pgf90* | pgf95*)
15569 # Portland Group compilers (*not* the Pentium gcc compiler,
15570 # which looks to be a dead project)
15571 lt_prog_compiler_wl_F77='-Wl,'
15572 lt_prog_compiler_pic_F77='-fpic'
15573 lt_prog_compiler_static_F77='-Bstatic'
15576 lt_prog_compiler_wl_F77='-Wl,'
15577 # All Alpha code is PIC.
15578 lt_prog_compiler_static_F77='-non_shared'
15581 case `$CC -V 2>&1 | sed 5q` in
15584 lt_prog_compiler_pic_F77='-KPIC'
15585 lt_prog_compiler_static_F77='-Bstatic'
15586 lt_prog_compiler_wl_F77='-Wl,'
15589 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15590 lt_prog_compiler_pic_F77='-KPIC'
15591 lt_prog_compiler_static_F77='-Bstatic'
15592 lt_prog_compiler_wl_F77=''
15599 osf3* | osf4* | osf5*)
15600 lt_prog_compiler_wl_F77='-Wl,'
15601 # All OSF/1 code is PIC.
15602 lt_prog_compiler_static_F77='-non_shared'
15606 lt_prog_compiler_static_F77='-non_shared'
15610 lt_prog_compiler_pic_F77='-KPIC'
15611 lt_prog_compiler_static_F77='-Bstatic'
15612 case $cc_basename in
15613 f77* | f90* | f95*)
15614 lt_prog_compiler_wl_F77='-Qoption ld ';;
15616 lt_prog_compiler_wl_F77='-Wl,';;
15621 lt_prog_compiler_wl_F77='-Qoption ld '
15622 lt_prog_compiler_pic_F77='-PIC'
15623 lt_prog_compiler_static_F77='-Bstatic'
15626 sysv4 | sysv4.2uw2* | sysv4.3*)
15627 lt_prog_compiler_wl_F77='-Wl,'
15628 lt_prog_compiler_pic_F77='-KPIC'
15629 lt_prog_compiler_static_F77='-Bstatic'
15633 if test -d /usr/nec ;then
15634 lt_prog_compiler_pic_F77='-Kconform_pic'
15635 lt_prog_compiler_static_F77='-Bstatic'
15639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15640 lt_prog_compiler_wl_F77='-Wl,'
15641 lt_prog_compiler_pic_F77='-KPIC'
15642 lt_prog_compiler_static_F77='-Bstatic'
15646 lt_prog_compiler_wl_F77='-Wl,'
15647 lt_prog_compiler_can_build_shared_F77=no
15651 lt_prog_compiler_pic_F77='-pic'
15652 lt_prog_compiler_static_F77='-Bstatic'
15656 lt_prog_compiler_can_build_shared_F77=no
15661 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15662 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15665 # Check to make sure the PIC flag actually works.
15667 if test -n "$lt_prog_compiler_pic_F77"; then
15669 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15671 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 lt_prog_compiler_pic_works_F77=no
15675 ac_outfile=conftest.$ac_objext
15676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15677 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15678 # Insert the option either (1) after the last *FLAGS variable, or
15679 # (2) before a word containing "conftest.", or (3) at the end.
15680 # Note that $ac_compile itself does not contain backslashes and begins
15681 # with a dollar sign (not a hyphen), so the echo should work correctly.
15682 # The option is referenced via a variable to avoid confusing sed.
15683 lt_compile=`echo "$ac_compile" | $SED \
15684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15686 -e 's:$: $lt_compiler_flag:'`
15687 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15688 (eval "$lt_compile" 2>conftest.err)
15690 cat conftest.err >&5
15691 echo "$as_me:__oline__: \$? = $ac_status" >&5
15692 if (exit $ac_status) && test -s "$ac_outfile"; then
15693 # The compiler can only warn and ignore the option if not recognized
15694 # So say no if there are warnings other than the usual output.
15695 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15698 lt_prog_compiler_pic_works_F77=yes
15704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15705 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15707 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15708 case $lt_prog_compiler_pic_F77 in
15710 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15713 lt_prog_compiler_pic_F77=
15714 lt_prog_compiler_can_build_shared_F77=no
15719 # For platforms which do not support PIC, -DPIC is meaningless:
15721 lt_prog_compiler_pic_F77=
15724 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15729 # Check to make sure the static flag actually works.
15731 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15732 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15733 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15734 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 lt_prog_compiler_static_works_F77=no
15738 save_LDFLAGS="$LDFLAGS"
15739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15742 # The linker can only warn and ignore the option if not recognized
15743 # So say no if there are warnings
15744 if test -s conftest.err; then
15745 # Append any errors to the config.log.
15746 cat conftest.err 1>&5
15747 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15749 if diff conftest.exp conftest.er2 >/dev/null; then
15750 lt_prog_compiler_static_works_F77=yes
15753 lt_prog_compiler_static_works_F77=yes
15757 LDFLAGS="$save_LDFLAGS"
15760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15761 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15763 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15766 lt_prog_compiler_static_F77=
15770 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15772 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 lt_cv_prog_compiler_c_o_F77=no
15776 $rm -r conftest 2>/dev/null
15780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15782 lt_compiler_flag="-o out/conftest2.$ac_objext"
15783 # Insert the option either (1) after the last *FLAGS variable, or
15784 # (2) before a word containing "conftest.", or (3) at the end.
15785 # Note that $ac_compile itself does not contain backslashes and begins
15786 # with a dollar sign (not a hyphen), so the echo should work correctly.
15787 lt_compile=`echo "$ac_compile" | $SED \
15788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15790 -e 's:$: $lt_compiler_flag:'`
15791 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15792 (eval "$lt_compile" 2>out/conftest.err)
15794 cat out/conftest.err >&5
15795 echo "$as_me:__oline__: \$? = $ac_status" >&5
15796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15798 # The compiler can only warn and ignore the option if not recognized
15799 # So say no if there are warnings
15800 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15803 lt_cv_prog_compiler_c_o_F77=yes
15808 # SGI C++ compiler will create directory out/ii_files/ for
15809 # template instantiation
15810 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15811 $rm out/* && rmdir out
15817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15821 hard_links="nottested"
15822 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15823 # do not overwrite the value of need_locks provided by the user
15824 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15830 ln conftest.a conftest.b 2>&5 || hard_links=no
15831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15832 { echo "$as_me:$LINENO: result: $hard_links" >&5
15833 echo "${ECHO_T}$hard_links" >&6; }
15834 if test "$hard_links" = no; then
15835 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15843 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15847 allow_undefined_flag_F77=
15848 enable_shared_with_static_runtimes_F77=no
15850 archive_expsym_cmds_F77=
15851 old_archive_From_new_cmds_F77=
15852 old_archive_from_expsyms_cmds_F77=
15853 export_dynamic_flag_spec_F77=
15854 whole_archive_flag_spec_F77=
15855 thread_safe_flag_spec_F77=
15856 hardcode_libdir_flag_spec_F77=
15857 hardcode_libdir_flag_spec_ld_F77=
15858 hardcode_libdir_separator_F77=
15859 hardcode_direct_F77=no
15860 hardcode_minus_L_F77=no
15861 hardcode_shlibpath_var_F77=unsupported
15862 link_all_deplibs_F77=unknown
15863 hardcode_automatic_F77=no
15865 module_expsym_cmds_F77=
15866 always_export_symbols_F77=no
15867 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15868 # include_expsyms should be a list of space-separated symbols to be *always*
15869 # included in the symbol list
15870 include_expsyms_F77=
15871 # exclude_expsyms can be an extended regexp of symbols to exclude
15872 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15874 # as well as any symbol that contains `d'.
15875 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15877 # platforms (ab)use it in PIC code, but their linkers get confused if
15878 # the symbol is explicitly referenced. Since portable code cannot
15879 # rely on this symbol name, it's probably fine to never include it in
15880 # preloaded symbol tables.
15881 extract_expsyms_cmds=
15882 # Just being paranoid about ensuring that cc_basename is set.
15883 for cc_temp in $compiler""; do
15885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15894 cygwin* | mingw* | pw32*)
15895 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15896 # When not using gcc, we currently assume that we are using
15897 # Microsoft Visual C++.
15898 if test "$GCC" != yes; then
15903 # we just hope/assume this is gcc and not c89 (= MSVC++)
15912 if test "$with_gnu_ld" = yes; then
15913 # If archive_cmds runs LD, not CC, wlarc should be empty
15916 # Set some defaults for GNU ld with shared library support. These
15917 # are reset later if shared libraries are not supported. Putting them
15918 # here allows them to be overridden if necessary.
15919 runpath_var=LD_RUN_PATH
15920 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15921 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15922 # ancient GNU ld didn't support --whole-archive et. al.
15923 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15924 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15926 whole_archive_flag_spec_F77=
15928 supports_anon_versioning=no
15929 case `$LD -v 2>/dev/null` in
15930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15933 *\ 2.11.*) ;; # other 2.11 versions
15934 *) supports_anon_versioning=yes ;;
15937 # See if GNU ld supports shared libraries.
15939 aix3* | aix4* | aix5*)
15940 # On AIX/PPC, the GNU linker is very broken
15941 if test "$host_cpu" != ia64; then
15945 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15946 *** to be unable to reliably create shared libraries on AIX.
15947 *** Therefore, libtool is disabling shared libraries support. If you
15948 *** really care for shared libraries, you may want to modify your PATH
15949 *** so that a non-GNU linker is found, and then restart.
15956 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)'
15957 hardcode_libdir_flag_spec_F77='-L$libdir'
15958 hardcode_minus_L_F77=yes
15960 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15961 # that the semantics of dynamic libraries on AmigaOS, at least up
15962 # to version 4, is to share data among multiple programs linked
15963 # with the same dynamic library. Since this doesn't match the
15964 # behavior of shared libraries on other platforms, we can't use
15970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15971 allow_undefined_flag_F77=unsupported
15972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15973 # support --undefined. This deserves some investigation. FIXME
15974 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15980 cygwin* | mingw* | pw32*)
15981 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15982 # as there is no search path for DLLs.
15983 hardcode_libdir_flag_spec_F77='-L$libdir'
15984 allow_undefined_flag_F77=unsupported
15985 always_export_symbols_F77=no
15986 enable_shared_with_static_runtimes_F77=yes
15987 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15989 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15990 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15991 # If the export-symbols file already is a .def file (1st line
15992 # is EXPORTS), use it as is; otherwise, prepend...
15993 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15994 cp $export_symbols $output_objdir/$soname.def;
15996 echo EXPORTS > $output_objdir/$soname.def;
15997 cat $export_symbols >> $output_objdir/$soname.def;
15999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16006 hardcode_direct_F77=no
16007 hardcode_shlibpath_var_F77=no
16008 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16009 export_dynamic_flag_spec_F77='${wl}-E'
16010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16011 # Instead, shared libraries are loaded at an image base (0x10000000 by
16012 # default) and relocated if they conflict, which is a slow very memory
16013 # consuming and fragmenting process. To avoid this, we pick a random,
16014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16016 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'
16017 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'
16020 gnu* | linux* | k*bsd*-gnu)
16021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16023 case $cc_basename,$host_cpu in
16024 pgcc*) # Portland Group C compiler
16025 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'
16026 tmp_addflag=' $pic_flag'
16028 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16029 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'
16030 tmp_addflag=' $pic_flag -Mnomain' ;;
16031 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16032 tmp_addflag=' -i_dynamic' ;;
16033 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16034 tmp_addflag=' -i_dynamic -nofor_main' ;;
16035 ifc* | ifort*) # Intel Fortran compiler
16036 tmp_addflag=' -nofor_main' ;;
16038 case `$CC -V 2>&1 | sed 5q` in
16039 *Sun\ C*) # Sun C 5.9
16040 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'
16041 tmp_sharedflag='-G' ;;
16042 *Sun\ F*) # Sun Fortran 8.3
16043 tmp_sharedflag='-G' ;;
16045 tmp_sharedflag='-shared' ;;
16047 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16049 if test $supports_anon_versioning = yes; then
16050 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16052 $echo "local: *; };" >> $output_objdir/$libname.ver~
16053 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16055 link_all_deplibs_F77=no
16061 netbsd* | netbsdelf*-gnu)
16062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16063 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16072 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16077 *** create shared libraries on Solaris systems. Therefore, libtool
16078 *** is disabling shared libraries support. We urge you to upgrade GNU
16079 *** binutils to release 2.9.1 or newer. Another option is to modify
16080 *** your PATH or compiler configuration so that the native linker is
16081 *** used, and then restart.
16084 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16086 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16093 case `$LD -v 2>&1` in
16094 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16098 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16099 *** reliably create shared libraries on SCO systems. Therefore, libtool
16100 *** is disabling shared libraries support. We urge you to upgrade GNU
16101 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16102 *** your PATH or compiler configuration so that the native linker is
16103 *** used, and then restart.
16108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16110 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16111 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16120 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_direct_F77=yes
16123 hardcode_shlibpath_var_F77=no
16127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16128 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16136 if test "$ld_shlibs_F77" = no; then
16138 hardcode_libdir_flag_spec_F77=
16139 export_dynamic_flag_spec_F77=
16140 whole_archive_flag_spec_F77=
16143 # PORTME fill in a description of your system's linker (not GNU ld)
16146 allow_undefined_flag_F77=unsupported
16147 always_export_symbols_F77=yes
16148 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'
16149 # Note: this linker hardcodes the directories in LIBPATH if there
16150 # are no directories specified by -L.
16151 hardcode_minus_L_F77=yes
16152 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16153 # Neither direct hardcoding nor static linking is supported with a
16155 hardcode_direct_F77=unsupported
16160 if test "$host_cpu" = ia64; then
16161 # On IA64, the linker does run time linking by default, so we don't
16162 # have to do anything special.
16163 aix_use_runtimelinking=no
16164 exp_sym_flag='-Bexport'
16167 # If we're using GNU nm, then we don't want the "-C" option.
16168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16169 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16170 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'
16172 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'
16174 aix_use_runtimelinking=no
16176 # Test if we are trying to use run time linking or normal
16177 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16178 # need to do runtime linking.
16179 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16180 for ld_flag in $LDFLAGS; do
16181 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16182 aix_use_runtimelinking=yes
16189 exp_sym_flag='-bexport'
16190 no_entry_flag='-bnoentry'
16193 # When large executables or shared objects are built, AIX ld can
16194 # have problems creating the table of contents. If linking a library
16195 # or program results in "error TOC overflow" add -mminimal-toc to
16196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16199 archive_cmds_F77=''
16200 hardcode_direct_F77=yes
16201 hardcode_libdir_separator_F77=':'
16202 link_all_deplibs_F77=yes
16204 if test "$GCC" = yes; then
16205 case $host_os in aix4.[012]|aix4.[012].*)
16206 # We only want to do this on AIX 4.2 and lower, the check
16207 # below for broken collect2 doesn't work under 4.3+
16208 collect2name=`${CC} -print-prog-name=collect2`
16209 if test -f "$collect2name" && \
16210 strings "$collect2name" | grep resolve_lib_name >/dev/null
16212 # We have reworked collect2
16215 # We have old collect2
16216 hardcode_direct_F77=unsupported
16217 # It fails to find uninstalled libraries when the uninstalled
16218 # path is not listed in the libpath. Setting hardcode_minus_L
16219 # to unsupported forces relinking
16220 hardcode_minus_L_F77=yes
16221 hardcode_libdir_flag_spec_F77='-L$libdir'
16222 hardcode_libdir_separator_F77=
16226 shared_flag='-shared'
16227 if test "$aix_use_runtimelinking" = yes; then
16228 shared_flag="$shared_flag "'${wl}-G'
16232 if test "$host_cpu" = ia64; then
16233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16234 # chokes on -Wl,-G. The following line is correct:
16237 if test "$aix_use_runtimelinking" = yes; then
16238 shared_flag='${wl}-G'
16240 shared_flag='${wl}-bM:SRE'
16245 # It seems that -bexpall does not export symbols beginning with
16246 # underscore (_), so it is better to generate a list of symbols to export.
16247 always_export_symbols_F77=yes
16248 if test "$aix_use_runtimelinking" = yes; then
16249 # Warning - without using the other runtime loading flags (-brtl),
16250 # -berok will link without error, but may produce a broken library.
16251 allow_undefined_flag_F77='-berok'
16252 # Determine the default libpath from the value encoded in an empty executable.
16253 cat >conftest.$ac_ext <<_ACEOF
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (ac_try="$ac_link"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_link") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_f77_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest$ac_exeext &&
16275 $as_test_x conftest$ac_exeext; then
16277 lt_aix_libpath_sed='
16278 /Import File Strings/,/^$/ {
16284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16285 # Check for a 64-bit object if we didn't find anything.
16286 if test -z "$aix_libpath"; then
16287 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16297 conftest$ac_exeext conftest.$ac_ext
16298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16300 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16301 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"
16303 if test "$host_cpu" = ia64; then
16304 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16305 allow_undefined_flag_F77="-z nodefs"
16306 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"
16308 # Determine the default libpath from the value encoded in an empty executable.
16309 cat >conftest.$ac_ext <<_ACEOF
16314 rm -f conftest.$ac_objext conftest$ac_exeext
16315 if { (ac_try="$ac_link"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_link") 2>conftest.er1
16323 grep -v '^ *+' conftest.er1 >conftest.err
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } && {
16328 test -z "$ac_f77_werror_flag" ||
16329 test ! -s conftest.err
16330 } && test -s conftest$ac_exeext &&
16331 $as_test_x conftest$ac_exeext; then
16333 lt_aix_libpath_sed='
16334 /Import File Strings/,/^$/ {
16340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16341 # Check for a 64-bit object if we didn't find anything.
16342 if test -z "$aix_libpath"; then
16343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353 conftest$ac_exeext conftest.$ac_ext
16354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16356 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16357 # Warning - without using the other run time loading flags,
16358 # -berok will link without error, but may produce a broken library.
16359 no_undefined_flag_F77=' ${wl}-bernotok'
16360 allow_undefined_flag_F77=' ${wl}-berok'
16361 # Exported symbols can be pulled into shared objects from archives
16362 whole_archive_flag_spec_F77='$convenience'
16363 archive_cmds_need_lc_F77=yes
16364 # This is similar to how AIX traditionally builds its shared libraries.
16365 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'
16371 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)'
16372 hardcode_libdir_flag_spec_F77='-L$libdir'
16373 hardcode_minus_L_F77=yes
16374 # see comment about different semantics on the GNU ld section
16379 export_dynamic_flag_spec_F77=-rdynamic
16382 cygwin* | mingw* | pw32*)
16383 # When not using gcc, we currently assume that we are using
16384 # Microsoft Visual C++.
16385 # hardcode_libdir_flag_spec is actually meaningless, as there is
16386 # no search path for DLLs.
16387 hardcode_libdir_flag_spec_F77=' '
16388 allow_undefined_flag_F77=unsupported
16389 # Tell ltmain to make .lib files, not .a files.
16391 # Tell ltmain to make .dll files, not .so files.
16393 # FIXME: Setting linknames here is a bad hack.
16394 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16395 # The linker will automatically build a .lib file if we build a DLL.
16396 old_archive_From_new_cmds_F77='true'
16397 # FIXME: Should let the user specify the lib program.
16398 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16399 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16400 enable_shared_with_static_runtimes_F77=yes
16403 darwin* | rhapsody*)
16405 rhapsody* | darwin1.[012])
16406 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16409 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16410 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16412 case ${MACOSX_DEPLOYMENT_TARGET} in
16414 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16417 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16423 archive_cmds_need_lc_F77=no
16424 hardcode_direct_F77=no
16425 hardcode_automatic_F77=yes
16426 hardcode_shlibpath_var_F77=unsupported
16427 whole_archive_flag_spec_F77=''
16428 link_all_deplibs_F77=yes
16429 if test "$GCC" = yes ; then
16430 output_verbose_link_cmd='echo'
16431 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16432 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16434 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}'
16435 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}'
16437 case $cc_basename in
16439 output_verbose_link_cmd='echo'
16440 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16441 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16443 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}'
16444 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}'
16454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16455 hardcode_libdir_flag_spec_F77='-L$libdir'
16456 hardcode_shlibpath_var_F77=no
16463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16464 # support. Future versions do this automatically, but an explicit c++rt0.o
16465 # does not break anything, and helps significantly (at the cost of a little
16468 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16469 hardcode_libdir_flag_spec_F77='-R$libdir'
16470 hardcode_direct_F77=yes
16471 hardcode_shlibpath_var_F77=no
16474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16476 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct_F77=yes
16478 hardcode_minus_L_F77=yes
16479 hardcode_shlibpath_var_F77=no
16482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16483 freebsd* | dragonfly*)
16484 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16485 hardcode_libdir_flag_spec_F77='-R$libdir'
16486 hardcode_direct_F77=yes
16487 hardcode_shlibpath_var_F77=no
16491 if test "$GCC" = yes; then
16492 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'
16494 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'
16496 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16497 hardcode_libdir_separator_F77=:
16498 hardcode_direct_F77=yes
16500 # hardcode_minus_L: Not really in the search PATH,
16501 # but as the default location of the library.
16502 hardcode_minus_L_F77=yes
16503 export_dynamic_flag_spec_F77='${wl}-E'
16507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16508 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16510 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16512 if test "$with_gnu_ld" = no; then
16513 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16514 hardcode_libdir_separator_F77=:
16516 hardcode_direct_F77=yes
16517 export_dynamic_flag_spec_F77='${wl}-E'
16519 # hardcode_minus_L: Not really in the search PATH,
16520 # but as the default location of the library.
16521 hardcode_minus_L_F77=yes
16526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16529 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16532 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16535 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16541 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16547 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16551 if test "$with_gnu_ld" = no; then
16552 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16553 hardcode_libdir_separator_F77=:
16557 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16558 hardcode_direct_F77=no
16559 hardcode_shlibpath_var_F77=no
16562 hardcode_direct_F77=yes
16563 export_dynamic_flag_spec_F77='${wl}-E'
16565 # hardcode_minus_L: Not really in the search PATH,
16566 # but as the default location of the library.
16567 hardcode_minus_L_F77=yes
16573 irix5* | irix6* | nonstopux*)
16574 if test "$GCC" = yes; then
16575 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'
16577 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'
16578 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16580 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16581 hardcode_libdir_separator_F77=:
16582 link_all_deplibs_F77=yes
16585 netbsd* | netbsdelf*-gnu)
16586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16587 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16589 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16591 hardcode_libdir_flag_spec_F77='-R$libdir'
16592 hardcode_direct_F77=yes
16593 hardcode_shlibpath_var_F77=no
16597 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598 hardcode_direct_F77=yes
16599 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16600 hardcode_libdir_separator_F77=:
16601 hardcode_shlibpath_var_F77=no
16605 if test -f /usr/libexec/ld.so; then
16606 hardcode_direct_F77=yes
16607 hardcode_shlibpath_var_F77=no
16608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16609 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16610 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16611 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16612 export_dynamic_flag_spec_F77='${wl}-E'
16615 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16616 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_libdir_flag_spec_F77='-R$libdir'
16620 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16621 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16631 hardcode_libdir_flag_spec_F77='-L$libdir'
16632 hardcode_minus_L_F77=yes
16633 allow_undefined_flag_F77=unsupported
16634 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'
16635 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16639 if test "$GCC" = yes; then
16640 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16641 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'
16643 allow_undefined_flag_F77=' -expect_unresolved \*'
16644 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'
16646 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16647 hardcode_libdir_separator_F77=:
16650 osf4* | osf5*) # as osf3* with the addition of -msym flag
16651 if test "$GCC" = yes; then
16652 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16653 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'
16654 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16656 allow_undefined_flag_F77=' -expect_unresolved \*'
16657 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'
16658 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~
16659 $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'
16661 # Both c and cxx compiler support -rpath directly
16662 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16664 hardcode_libdir_separator_F77=:
16668 no_undefined_flag_F77=' -z text'
16669 if test "$GCC" = yes; then
16671 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16672 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16673 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16676 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16678 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16680 hardcode_libdir_flag_spec_F77='-R$libdir'
16681 hardcode_shlibpath_var_F77=no
16683 solaris2.[0-5] | solaris2.[0-5].*) ;;
16685 # The compiler driver will combine and reorder linker options,
16686 # but understands `-z linker_flag'. GCC discards it without `$wl',
16687 # but is careful enough not to reorder.
16688 # Supported since Solaris 2.6 (maybe 2.5.1?)
16689 if test "$GCC" = yes; then
16690 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16692 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16696 link_all_deplibs_F77=yes
16700 if test "x$host_vendor" = xsequent; then
16701 # Use $CC to link under sequent, because it throws in some extra .o
16702 # files that make .init and .fini sections work.
16703 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16705 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16707 hardcode_libdir_flag_spec_F77='-L$libdir'
16708 hardcode_direct_F77=yes
16709 hardcode_minus_L_F77=yes
16710 hardcode_shlibpath_var_F77=no
16714 case $host_vendor in
16716 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_direct_F77=yes # is this really true???
16720 ## LD is ld it makes a PLAMLIB
16721 ## CC just makes a GrossModule.
16722 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16723 reload_cmds_F77='$CC -r -o $output$reload_objs'
16724 hardcode_direct_F77=no
16727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16728 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16731 runpath_var='LD_RUN_PATH'
16732 hardcode_shlibpath_var_F77=no
16736 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737 hardcode_shlibpath_var_F77=no
16738 export_dynamic_flag_spec_F77='-Bexport'
16742 if test -d /usr/nec; then
16743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16744 hardcode_shlibpath_var_F77=no
16745 runpath_var=LD_RUN_PATH
16746 hardcode_runpath_var=yes
16751 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16752 no_undefined_flag_F77='${wl}-z,text'
16753 archive_cmds_need_lc_F77=no
16754 hardcode_shlibpath_var_F77=no
16755 runpath_var='LD_RUN_PATH'
16757 if test "$GCC" = yes; then
16758 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16759 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16761 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16762 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16766 sysv5* | sco3.2v5* | sco5v6*)
16767 # Note: We can NOT use -z defs as we might desire, because we do not
16768 # link with -lc, and that would cause any symbols used from libc to
16769 # always be unresolved, which means just about no library would
16770 # ever link correctly. If we're not using GNU ld we use -z text
16771 # though, which does catch some bad symbols but isn't as heavy-handed
16773 no_undefined_flag_F77='${wl}-z,text'
16774 allow_undefined_flag_F77='${wl}-z,nodefs'
16775 archive_cmds_need_lc_F77=no
16776 hardcode_shlibpath_var_F77=no
16777 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16778 hardcode_libdir_separator_F77=':'
16779 link_all_deplibs_F77=yes
16780 export_dynamic_flag_spec_F77='${wl}-Bexport'
16781 runpath_var='LD_RUN_PATH'
16783 if test "$GCC" = yes; then
16784 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16785 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794 hardcode_libdir_flag_spec_F77='-L$libdir'
16795 hardcode_shlibpath_var_F77=no
16804 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16805 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16806 test "$ld_shlibs_F77" = no && can_build_shared=no
16809 # Do we need to explicitly link libc?
16811 case "x$archive_cmds_need_lc_F77" in
16813 # Assume -lc should be added
16814 archive_cmds_need_lc_F77=yes
16816 if test "$enable_shared" = yes && test "$GCC" = yes; then
16817 case $archive_cmds_F77 in
16819 # FIXME: we may have to deal with multi-command sequences.
16822 # Test whether the compiler implicitly links with -lc since on some
16823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16824 # to ld, don't add -lc before -lgcc.
16825 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831 (eval $ac_compile) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } 2>conftest.err; then
16837 libobjs=conftest.$ac_objext
16839 wl=$lt_prog_compiler_wl_F77
16840 pic_flag=$lt_prog_compiler_pic_F77
16846 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16847 allow_undefined_flag_F77=
16848 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16849 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }
16854 archive_cmds_need_lc_F77=no
16856 archive_cmds_need_lc_F77=yes
16858 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16860 cat conftest.err 1>&5
16863 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16864 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16871 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16873 library_names_spec=
16874 libname_spec='lib$name'
16878 postuninstall_cmds=
16882 shlibpath_overrides_runpath=unknown
16884 dynamic_linker="$host_os ld.so"
16885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16887 need_lib_prefix=unknown
16888 hardcode_into_libs=no
16890 # when you set need_version to no, make sure it does not cause -set_version
16891 # flags to be left without arguments
16892 need_version=unknown
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16898 shlibpath_var=LIBPATH
16900 # AIX 3 has no versioning support, so we append a major version to the name.
16901 soname_spec='${libname}${release}${shared_ext}$major'
16908 hardcode_into_libs=yes
16909 if test "$host_cpu" = ia64; then
16910 # AIX 5 supports IA64
16911 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16912 shlibpath_var=LD_LIBRARY_PATH
16914 # With GCC up to 2.95.x, collect2 would create an import file
16915 # for dependence libraries. The import file would start with
16916 # the line `#! .'. This would cause the generated library to
16917 # depend on `.', always an invalid library. This was fixed in
16918 # development snapshots of GCC prior to 3.0.
16920 aix4 | aix4.[01] | aix4.[01].*)
16921 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16923 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16926 can_build_shared=no
16930 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16931 # soname into executable. Probably we can add versioning support to
16932 # collect2, so additional links can be useful in future.
16933 if test "$aix_use_runtimelinking" = yes; then
16934 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16935 # instead of lib<name>.a to let people know that these are not
16936 # typical AIX shared libraries.
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 # We preserve .a as extension for shared libraries through AIX4.2
16940 # and later when we are not doing run time linking.
16941 library_names_spec='${libname}${release}.a $libname.a'
16942 soname_spec='${libname}${release}${shared_ext}$major'
16944 shlibpath_var=LIBPATH
16949 library_names_spec='$libname.ixlibrary $libname.a'
16950 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16951 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'
16955 library_names_spec='${libname}${shared_ext}'
16956 dynamic_linker="$host_os ld.so"
16957 shlibpath_var=LIBRARY_PATH
16963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16964 soname_spec='${libname}${release}${shared_ext}$major'
16965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16969 # the default ld.so.conf also contains /usr/contrib/lib and
16970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16971 # libtool to hard-code these into programs
16974 cygwin* | mingw* | pw32*)
16975 version_type=windows
16980 case $GCC,$host_os in
16981 yes,cygwin* | yes,mingw* | yes,pw32*)
16982 library_names_spec='$libname.dll.a'
16983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16984 postinstall_cmds='base_file=`basename \${file}`~
16985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16986 dldir=$destdir/`dirname \$dlpath`~
16987 test -d \$dldir || mkdir -p \$dldir~
16988 $install_prog $dir/$dlname \$dldir/$dlname~
16989 chmod a+x \$dldir/$dlname'
16990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991 dlpath=$dir/\$dldll~
16993 shlibpath_overrides_runpath=yes
16997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17002 # MinGW DLLs use traditional 'lib' prefix
17003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17006 # It is most probably a Windows format PATH printed by
17007 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008 # path with ; separators, and with drive letters. We can handle the
17009 # drive letters (cygwin fileutils understands them), so leave them,
17010 # especially as we might pass files found there to a mingw objdump,
17011 # which wouldn't understand a cygwinified path. Ahh.
17012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17028 dynamic_linker='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17033 darwin* | rhapsody*)
17034 dynamic_linker="$host_os dyld"
17035 version_type=darwin
17038 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath=yes
17041 shlibpath_var=DYLD_LIBRARY_PATH
17042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17044 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 shlibpath_var=LD_LIBRARY_PATH
17060 freebsd* | dragonfly*)
17061 # DragonFly does not have aout. When/if they implement a new
17062 # versioning mechanism, adjust this.
17063 if test -x /usr/bin/objformat; then
17064 objformat=`/usr/bin/objformat`
17067 freebsd[123]*) objformat=aout ;;
17068 *) objformat=elf ;;
17071 version_type=freebsd-$objformat
17072 case $version_type in
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17083 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=yes
17088 freebsd3.[01]* | freebsdelf3.[01]*)
17089 shlibpath_overrides_runpath=yes
17090 hardcode_into_libs=yes
17092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17094 shlibpath_overrides_runpath=no
17095 hardcode_into_libs=yes
17097 *) # from 4.6 on, and DragonFly
17098 shlibpath_overrides_runpath=yes
17099 hardcode_into_libs=yes
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 hardcode_into_libs=yes
17114 hpux9* | hpux10* | hpux11*)
17115 # Give a soname corresponding to the major version so that dld.sl refuses to
17116 # link against other versions.
17123 hardcode_into_libs=yes
17124 dynamic_linker="$host_os dld.so"
17125 shlibpath_var=LD_LIBRARY_PATH
17126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 if test "X$HPUX_IA64_MODE" = X32; then
17130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17138 hardcode_into_libs=yes
17139 dynamic_linker="$host_os dld.sl"
17140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 soname_spec='${libname}${release}${shared_ext}$major'
17144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17149 dynamic_linker="$host_os dld.sl"
17150 shlibpath_var=SHLIB_PATH
17151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17157 postinstall_cmds='chmod 555 $lib'
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=no
17169 hardcode_into_libs=yes
17172 irix5* | irix6* | nonstopux*)
17174 nonstopux*) version_type=nonstopux ;;
17176 if test "$lt_cv_prog_gnu_ld" = yes; then
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17187 irix5* | nonstopux*)
17188 libsuff= shlibsuff=
17191 case $LD in # libtool.m4 will add one of these switches to LD
17192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17193 libsuff= shlibsuff= libmagic=32-bit;;
17194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17195 libsuff=32 shlibsuff=N32 libmagic=N32;;
17196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17198 *) libsuff= shlibsuff= libmagic=never-match;;
17202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17203 shlibpath_overrides_runpath=no
17204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17206 hardcode_into_libs=yes
17209 # No shared lib support for Linux oldld, aout, or coff.
17210 linux*oldld* | linux*aout* | linux*coff*)
17214 # This must be Linux ELF.
17215 linux* | k*bsd*-gnu)
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=no
17224 # This implies no fast_install, which is unacceptable.
17225 # Some rework will be needed to allow for fast_install
17226 # before this can be enabled.
17227 hardcode_into_libs=yes
17229 # Append ld.so.conf contents to the search path
17230 if test -f /etc/ld.so.conf; then
17231 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' ' '`
17232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17235 # We used to test for /lib/ld.so.1 and disable shared libraries on
17236 # powerpc, because MkLinux only supported shared libraries with the
17237 # GNU dynamic linker. Since this was broken with cross compilers,
17238 # most powerpc-linux boxes support dynamic linking these days and
17239 # people can always --disable-shared, the test was removed, and we
17240 # assume the GNU/Linux dynamic linker is in use.
17241 dynamic_linker='GNU/Linux ld.so'
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 shlibpath_overrides_runpath=no
17252 hardcode_into_libs=yes
17253 dynamic_linker='NetBSD ld.elf_so'
17260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17263 dynamic_linker='NetBSD (a.out) ld.so'
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17266 soname_spec='${libname}${release}${shared_ext}$major'
17267 dynamic_linker='NetBSD ld.elf_so'
17269 shlibpath_var=LD_LIBRARY_PATH
17270 shlibpath_overrides_runpath=yes
17271 hardcode_into_libs=yes
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277 shlibpath_var=LD_LIBRARY_PATH
17278 shlibpath_overrides_runpath=yes
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 shlibpath_var=LD_LIBRARY_PATH
17288 shlibpath_overrides_runpath=yes
17293 sys_lib_dlsearch_path_spec="/usr/lib"
17295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17298 *) need_version=no ;;
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17305 openbsd2.[89] | openbsd2.[89].*)
17306 shlibpath_overrides_runpath=no
17309 shlibpath_overrides_runpath=yes
17313 shlibpath_overrides_runpath=yes
17318 libname_spec='$name'
17321 library_names_spec='$libname${shared_ext} $libname.a'
17322 dynamic_linker='OS/2 ld.exe'
17323 shlibpath_var=LIBPATH
17326 osf3* | osf4* | osf5*)
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath=yes
17349 hardcode_into_libs=yes
17350 # ldd complains unless libraries are executable
17351 postinstall_cmds='chmod +x $lib'
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 shlibpath_overrides_runpath=yes
17360 if test "$with_gnu_ld" = yes; then
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 case $host_vendor in
17373 shlibpath_overrides_runpath=no
17375 export_dynamic_flag_spec='${wl}-Blargedynsym'
17376 runpath_var=LD_RUN_PATH
17384 shlibpath_overrides_runpath=no
17385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17391 if test -d /usr/nec ;then
17393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17394 soname_spec='$libname${shared_ext}.$major'
17395 shlibpath_var=LD_LIBRARY_PATH
17399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17400 version_type=freebsd-elf
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17404 soname_spec='${libname}${release}${shared_ext}$major'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 hardcode_into_libs=yes
17407 if test "$with_gnu_ld" = yes; then
17408 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17409 shlibpath_overrides_runpath=no
17411 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17412 shlibpath_overrides_runpath=yes
17415 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17419 sys_lib_dlsearch_path_spec='/usr/lib'
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 shlibpath_var=LD_LIBRARY_PATH
17433 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17434 echo "${ECHO_T}$dynamic_linker" >&6; }
17435 test "$dynamic_linker" = no && can_build_shared=no
17437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17438 if test "$GCC" = yes; then
17439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17442 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17444 hardcode_action_F77=
17445 if test -n "$hardcode_libdir_flag_spec_F77" || \
17446 test -n "$runpath_var_F77" || \
17447 test "X$hardcode_automatic_F77" = "Xyes" ; then
17449 # We can hardcode non-existant directories.
17450 if test "$hardcode_direct_F77" != no &&
17451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452 # have to relink, otherwise we might link with an installed library
17453 # when we should be linking with a yet-to-be-installed one
17454 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17455 test "$hardcode_minus_L_F77" != no; then
17456 # Linking always hardcodes the temporary library directory.
17457 hardcode_action_F77=relink
17459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460 hardcode_action_F77=immediate
17463 # We cannot hardcode anything, or else we can only hardcode existing
17465 hardcode_action_F77=unsupported
17467 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17468 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17470 if test "$hardcode_action_F77" = relink; then
17471 # Fast installation is not supported
17472 enable_fast_install=no
17473 elif test "$shlibpath_overrides_runpath" = yes ||
17474 test "$enable_shared" = no; then
17475 # Fast installation is not necessary
17476 enable_fast_install=needless
17480 # The else clause should only fire when bootstrapping the
17481 # libtool distribution, otherwise you forgot to ship ltmain.sh
17482 # with your package, and you will get complaints that there are
17483 # no rules to generate ltmain.sh.
17484 if test -f "$ltmain"; then
17485 # See if we are running on zsh, and set the options which allow our commands through
17486 # without removal of \ escapes.
17487 if test -n "${ZSH_VERSION+set}" ; then
17488 setopt NO_GLOB_SUBST
17490 # Now quote all the things that may contain metacharacters while being
17491 # careful not to overquote the AC_SUBSTed values. We take copies of the
17492 # variables and quote the copies for generation of the libtool script.
17493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17497 deplibs_check_method reload_flag reload_cmds need_locks \
17498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17499 lt_cv_sys_global_symbol_to_c_name_address \
17500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17501 old_postinstall_cmds old_postuninstall_cmds \
17505 lt_prog_compiler_wl_F77 \
17506 lt_prog_compiler_pic_F77 \
17507 lt_prog_compiler_static_F77 \
17508 lt_prog_compiler_no_builtin_flag_F77 \
17509 export_dynamic_flag_spec_F77 \
17510 thread_safe_flag_spec_F77 \
17511 whole_archive_flag_spec_F77 \
17512 enable_shared_with_static_runtimes_F77 \
17513 old_archive_cmds_F77 \
17514 old_archive_from_new_cmds_F77 \
17515 predep_objects_F77 \
17516 postdep_objects_F77 \
17519 compiler_lib_search_path_F77 \
17521 archive_expsym_cmds_F77 \
17522 postinstall_cmds_F77 \
17523 postuninstall_cmds_F77 \
17524 old_archive_from_expsyms_cmds_F77 \
17525 allow_undefined_flag_F77 \
17526 no_undefined_flag_F77 \
17527 export_symbols_cmds_F77 \
17528 hardcode_libdir_flag_spec_F77 \
17529 hardcode_libdir_flag_spec_ld_F77 \
17530 hardcode_libdir_separator_F77 \
17531 hardcode_automatic_F77 \
17533 module_expsym_cmds_F77 \
17534 lt_cv_prog_compiler_c_o_F77 \
17535 fix_srcfile_path_F77 \
17536 exclude_expsyms_F77 \
17537 include_expsyms_F77; do
17540 old_archive_cmds_F77 | \
17541 old_archive_from_new_cmds_F77 | \
17542 archive_cmds_F77 | \
17543 archive_expsym_cmds_F77 | \
17544 module_cmds_F77 | \
17545 module_expsym_cmds_F77 | \
17546 old_archive_from_expsyms_cmds_F77 | \
17547 export_symbols_cmds_F77 | \
17548 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17549 postinstall_cmds | postuninstall_cmds | \
17550 old_postinstall_cmds | old_postuninstall_cmds | \
17551 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17552 # Double-quote double-evaled strings.
17553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17562 *'\$0 --fallback-echo"')
17563 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17569 cat <<__EOF__ >> "$cfgfile"
17570 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17574 # Shell to use when invoking shell scripts.
17577 # Whether or not to build shared libraries.
17578 build_libtool_libs=$enable_shared
17580 # Whether or not to build static libraries.
17581 build_old_libs=$enable_static
17583 # Whether or not to add -lc for building shared libraries.
17584 build_libtool_need_lc=$archive_cmds_need_lc_F77
17586 # Whether or not to disallow shared libs when runtime libs are static
17587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17589 # Whether or not to optimize for fast installation.
17590 fast_install=$enable_fast_install
17593 host_alias=$host_alias
17597 # The build system.
17598 build_alias=$build_alias
17602 # An echo program that does not interpret backslashes.
17607 AR_FLAGS=$lt_AR_FLAGS
17612 # LTCC compiler flags.
17613 LTCFLAGS=$lt_LTCFLAGS
17615 # A language-specific compiler.
17616 CC=$lt_compiler_F77
17618 # Is the compiler the GNU C compiler?
17624 # The linker used to build libraries.
17627 # Whether we need hard or soft links.
17630 # A BSD-compatible nm program.
17633 # A symbol stripping program
17636 # Used to examine libraries when file_magic_cmd begins "file"
17637 MAGIC_CMD=$MAGIC_CMD
17639 # Used on cygwin: DLL creation program.
17642 # Used on cygwin: object dumper.
17645 # Used on cygwin: assembler.
17648 # The name of the directory that contains temporary libtool files.
17651 # How to create reloadable object files.
17652 reload_flag=$lt_reload_flag
17653 reload_cmds=$lt_reload_cmds
17655 # How to pass a linker flag through the compiler.
17656 wl=$lt_lt_prog_compiler_wl_F77
17658 # Object file suffix (normally "o").
17659 objext="$ac_objext"
17661 # Old archive suffix (normally "a").
17664 # Shared library suffix (normally ".so").
17665 shrext_cmds='$shrext_cmds'
17667 # Executable file suffix (normally "").
17670 # Additional compiler flags for building library objects.
17671 pic_flag=$lt_lt_prog_compiler_pic_F77
17674 # What is the maximum length of a command?
17675 max_cmd_len=$lt_cv_sys_max_cmd_len
17677 # Does compiler simultaneously support -c and -o options?
17678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17680 # Must we lock files when doing compilation?
17681 need_locks=$lt_need_locks
17683 # Do we need the lib prefix for modules?
17684 need_lib_prefix=$need_lib_prefix
17686 # Do we need a version for libraries?
17687 need_version=$need_version
17689 # Whether dlopen is supported.
17690 dlopen_support=$enable_dlopen
17692 # Whether dlopen of programs is supported.
17693 dlopen_self=$enable_dlopen_self
17695 # Whether dlopen of statically linked programs is supported.
17696 dlopen_self_static=$enable_dlopen_self_static
17698 # Compiler flag to prevent dynamic linking.
17699 link_static_flag=$lt_lt_prog_compiler_static_F77
17701 # Compiler flag to turn off builtin functions.
17702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17704 # Compiler flag to allow reflexive dlopens.
17705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17707 # Compiler flag to generate shared objects directly from archives.
17708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17710 # Compiler flag to generate thread-safe objects.
17711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17713 # Library versioning type.
17714 version_type=$version_type
17716 # Format of library name prefix.
17717 libname_spec=$lt_libname_spec
17719 # List of archive names. First name is the real one, the rest are links.
17720 # The last name is the one that the linker finds with -lNAME.
17721 library_names_spec=$lt_library_names_spec
17723 # The coded name of the library, if different from the real name.
17724 soname_spec=$lt_soname_spec
17726 # Commands used to build and install an old-style archive.
17728 old_archive_cmds=$lt_old_archive_cmds_F77
17729 old_postinstall_cmds=$lt_old_postinstall_cmds
17730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17732 # Create an old-style archive from a shared archive.
17733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17735 # Create a temporary old-style archive to link instead of a shared archive.
17736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17738 # Commands used to build and install a shared archive.
17739 archive_cmds=$lt_archive_cmds_F77
17740 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17741 postinstall_cmds=$lt_postinstall_cmds
17742 postuninstall_cmds=$lt_postuninstall_cmds
17744 # Commands used to build a loadable module (assumed same as above if empty)
17745 module_cmds=$lt_module_cmds_F77
17746 module_expsym_cmds=$lt_module_expsym_cmds_F77
17748 # Commands to strip libraries.
17749 old_striplib=$lt_old_striplib
17750 striplib=$lt_striplib
17752 # Dependencies to place before the objects being linked to create a
17754 predep_objects=$lt_predep_objects_F77
17756 # Dependencies to place after the objects being linked to create a
17758 postdep_objects=$lt_postdep_objects_F77
17760 # Dependencies to place before the objects being linked to create a
17762 predeps=$lt_predeps_F77
17764 # Dependencies to place after the objects being linked to create a
17766 postdeps=$lt_postdeps_F77
17768 # The library search path used internally by the compiler when linking
17769 # a shared library.
17770 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17772 # Method to check whether dependent libraries are shared objects.
17773 deplibs_check_method=$lt_deplibs_check_method
17775 # Command to use when deplibs_check_method == file_magic.
17776 file_magic_cmd=$lt_file_magic_cmd
17778 # Flag that allows shared libraries with undefined symbols to be built.
17779 allow_undefined_flag=$lt_allow_undefined_flag_F77
17781 # Flag that forces no undefined symbols.
17782 no_undefined_flag=$lt_no_undefined_flag_F77
17784 # Commands used to finish a libtool library installation in a directory.
17785 finish_cmds=$lt_finish_cmds
17787 # Same as above, but a single script fragment to be evaled but not shown.
17788 finish_eval=$lt_finish_eval
17790 # Take the output of nm and produce a listing of raw symbols and C names.
17791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17793 # Transform the output of nm in a proper C declaration
17794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17796 # Transform the output of nm in a C name address pair
17797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17799 # This is the shared library runtime path variable.
17800 runpath_var=$runpath_var
17802 # This is the shared library path variable.
17803 shlibpath_var=$shlibpath_var
17805 # Is shlibpath searched before the hard-coded library search path?
17806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17808 # How to hardcode a shared library path into an executable.
17809 hardcode_action=$hardcode_action_F77
17811 # Whether we should hardcode library paths into libraries.
17812 hardcode_into_libs=$hardcode_into_libs
17814 # Flag to hardcode \$libdir into a binary during linking.
17815 # This must work even if \$libdir does not exist.
17816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17818 # If ld is used when linking, flag to hardcode \$libdir into
17819 # a binary during linking. This must work even if \$libdir does
17821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17823 # Whether we need a single -rpath flag with a separated argument.
17824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17827 # resulting binary.
17828 hardcode_direct=$hardcode_direct_F77
17830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_minus_L=$hardcode_minus_L_F77
17834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17835 # the resulting binary.
17836 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17838 # Set to yes if building a shared library automatically hardcodes DIR into the library
17839 # and all subsequent libraries and executables linked against it.
17840 hardcode_automatic=$hardcode_automatic_F77
17842 # Variables whose values should be saved in libtool wrapper scripts and
17843 # restored at relink time.
17844 variables_saved_for_relink="$variables_saved_for_relink"
17846 # Whether libtool must link a program against all its dependency libraries.
17847 link_all_deplibs=$link_all_deplibs_F77
17849 # Compile-time system search path for libraries
17850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17852 # Run-time system search path for libraries
17853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17855 # Fix the shell variable \$srcfile for the compiler.
17856 fix_srcfile_path=$lt_fix_srcfile_path
17858 # Set to yes if exported symbols are required.
17859 always_export_symbols=$always_export_symbols_F77
17861 # The commands to list exported symbols.
17862 export_symbols_cmds=$lt_export_symbols_cmds_F77
17864 # The commands to extract the exported symbol list from a shared archive.
17865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17867 # Symbols that should not be listed in the preloaded symbols.
17868 exclude_expsyms=$lt_exclude_expsyms_F77
17870 # Symbols that must always be exported.
17871 include_expsyms=$lt_include_expsyms_F77
17873 # ### END LIBTOOL TAG CONFIG: $tagname
17879 # If there is no Makefile yet, we rely on a make rule to execute
17880 # `config.status --recheck' to rerun these tests and create the
17881 # libtool script then.
17882 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17883 if test -f "$ltmain_in"; then
17884 test -f Makefile && make "$ltmain"
17890 ac_cpp='$CPP $CPPFLAGS'
17891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17903 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17906 # Source file extension for Java test sources.
17909 # Object file extension for compiled Java test sources.
17913 # Code to be used in simple compile tests
17914 lt_simple_compile_test_code="class foo {}"
17916 # Code to be used in simple link tests
17917 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17921 # If no C compiler was specified, use CC.
17924 # If no C compiler flags were specified, use CFLAGS.
17925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17927 # Allow CC to be a program name with arguments.
17931 # save warnings/boilerplate of simple test code
17932 ac_outfile=conftest.$ac_objext
17933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17935 _lt_compiler_boilerplate=`cat conftest.err`
17938 ac_outfile=conftest.$ac_objext
17939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17941 _lt_linker_boilerplate=`cat conftest.err`
17945 # Allow CC to be a program name with arguments.
17950 for cc_temp in $compiler""; do
17952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17961 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17962 archive_cmds_need_lc_GCJ=no
17964 old_archive_cmds_GCJ=$old_archive_cmds
17967 lt_prog_compiler_no_builtin_flag_GCJ=
17969 if test "$GCC" = yes; then
17970 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17973 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 lt_cv_prog_compiler_rtti_exceptions=no
17979 ac_outfile=conftest.$ac_objext
17980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17981 lt_compiler_flag="-fno-rtti -fno-exceptions"
17982 # Insert the option either (1) after the last *FLAGS variable, or
17983 # (2) before a word containing "conftest.", or (3) at the end.
17984 # Note that $ac_compile itself does not contain backslashes and begins
17985 # with a dollar sign (not a hyphen), so the echo should work correctly.
17986 # The option is referenced via a variable to avoid confusing sed.
17987 lt_compile=`echo "$ac_compile" | $SED \
17988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17990 -e 's:$: $lt_compiler_flag:'`
17991 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17992 (eval "$lt_compile" 2>conftest.err)
17994 cat conftest.err >&5
17995 echo "$as_me:__oline__: \$? = $ac_status" >&5
17996 if (exit $ac_status) && test -s "$ac_outfile"; then
17997 # The compiler can only warn and ignore the option if not recognized
17998 # So say no if there are warnings other than the usual output.
17999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18002 lt_cv_prog_compiler_rtti_exceptions=yes
18008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18009 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18011 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18012 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18019 lt_prog_compiler_wl_GCJ=
18020 lt_prog_compiler_pic_GCJ=
18021 lt_prog_compiler_static_GCJ=
18023 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18026 if test "$GCC" = yes; then
18027 lt_prog_compiler_wl_GCJ='-Wl,'
18028 lt_prog_compiler_static_GCJ='-static'
18032 # All AIX code is PIC.
18033 if test "$host_cpu" = ia64; then
18034 # AIX 5 now supports IA64 processor
18035 lt_prog_compiler_static_GCJ='-Bstatic'
18040 # FIXME: we need at least 68020 code to build shared libraries, but
18041 # adding the `-m68020' flag to GCC prevents building anything better,
18043 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18047 # PIC is the default for these OSes.
18050 mingw* | cygwin* | pw32* | os2*)
18051 # This hack is so that the source file can tell whether it is being
18052 # built for inclusion in a dll (and should export symbols for example).
18053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18054 # (--disable-auto-import) libraries
18055 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18058 darwin* | rhapsody*)
18059 # PIC is the default on this platform
18060 # Common symbols not allowed in MH_DYLIB files
18061 lt_prog_compiler_pic_GCJ='-fno-common'
18065 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18066 # Instead, we relocate shared libraries at runtime.
18070 # Just because we use GCC doesn't mean we suddenly get shared libraries
18071 # on systems that don't support them.
18072 lt_prog_compiler_can_build_shared_GCJ=no
18077 if test -d /usr/nec; then
18078 lt_prog_compiler_pic_GCJ=-Kconform_pic
18083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18084 # not for PA HP-UX.
18090 lt_prog_compiler_pic_GCJ='-fPIC'
18096 lt_prog_compiler_pic_GCJ='-fPIC'
18100 # PORTME Check for flag to pass linker flags through the system compiler.
18103 lt_prog_compiler_wl_GCJ='-Wl,'
18104 if test "$host_cpu" = ia64; then
18105 # AIX 5 now supports IA64 processor
18106 lt_prog_compiler_static_GCJ='-Bstatic'
18108 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18112 # PIC is the default on this platform
18113 # Common symbols not allowed in MH_DYLIB files
18114 case $cc_basename in
18116 lt_prog_compiler_pic_GCJ='-qnocommon'
18117 lt_prog_compiler_wl_GCJ='-Wl,'
18122 mingw* | cygwin* | pw32* | os2*)
18123 # This hack is so that the source file can tell whether it is being
18124 # built for inclusion in a dll (and should export symbols for example).
18125 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18128 hpux9* | hpux10* | hpux11*)
18129 lt_prog_compiler_wl_GCJ='-Wl,'
18130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18131 # not for PA HP-UX.
18137 lt_prog_compiler_pic_GCJ='+Z'
18140 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18141 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18144 irix5* | irix6* | nonstopux*)
18145 lt_prog_compiler_wl_GCJ='-Wl,'
18146 # PIC (with -KPIC) is the default.
18147 lt_prog_compiler_static_GCJ='-non_shared'
18151 lt_prog_compiler_pic_GCJ='-KPIC'
18152 lt_prog_compiler_static_GCJ='-Bstatic'
18155 linux* | k*bsd*-gnu)
18156 case $cc_basename in
18158 lt_prog_compiler_wl_GCJ='-Wl,'
18159 lt_prog_compiler_pic_GCJ='-KPIC'
18160 lt_prog_compiler_static_GCJ='-static'
18162 pgcc* | pgf77* | pgf90* | pgf95*)
18163 # Portland Group compilers (*not* the Pentium gcc compiler,
18164 # which looks to be a dead project)
18165 lt_prog_compiler_wl_GCJ='-Wl,'
18166 lt_prog_compiler_pic_GCJ='-fpic'
18167 lt_prog_compiler_static_GCJ='-Bstatic'
18170 lt_prog_compiler_wl_GCJ='-Wl,'
18171 # All Alpha code is PIC.
18172 lt_prog_compiler_static_GCJ='-non_shared'
18175 case `$CC -V 2>&1 | sed 5q` in
18178 lt_prog_compiler_pic_GCJ='-KPIC'
18179 lt_prog_compiler_static_GCJ='-Bstatic'
18180 lt_prog_compiler_wl_GCJ='-Wl,'
18183 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18184 lt_prog_compiler_pic_GCJ='-KPIC'
18185 lt_prog_compiler_static_GCJ='-Bstatic'
18186 lt_prog_compiler_wl_GCJ=''
18193 osf3* | osf4* | osf5*)
18194 lt_prog_compiler_wl_GCJ='-Wl,'
18195 # All OSF/1 code is PIC.
18196 lt_prog_compiler_static_GCJ='-non_shared'
18200 lt_prog_compiler_static_GCJ='-non_shared'
18204 lt_prog_compiler_pic_GCJ='-KPIC'
18205 lt_prog_compiler_static_GCJ='-Bstatic'
18206 case $cc_basename in
18207 f77* | f90* | f95*)
18208 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18210 lt_prog_compiler_wl_GCJ='-Wl,';;
18215 lt_prog_compiler_wl_GCJ='-Qoption ld '
18216 lt_prog_compiler_pic_GCJ='-PIC'
18217 lt_prog_compiler_static_GCJ='-Bstatic'
18220 sysv4 | sysv4.2uw2* | sysv4.3*)
18221 lt_prog_compiler_wl_GCJ='-Wl,'
18222 lt_prog_compiler_pic_GCJ='-KPIC'
18223 lt_prog_compiler_static_GCJ='-Bstatic'
18227 if test -d /usr/nec ;then
18228 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18229 lt_prog_compiler_static_GCJ='-Bstatic'
18233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18234 lt_prog_compiler_wl_GCJ='-Wl,'
18235 lt_prog_compiler_pic_GCJ='-KPIC'
18236 lt_prog_compiler_static_GCJ='-Bstatic'
18240 lt_prog_compiler_wl_GCJ='-Wl,'
18241 lt_prog_compiler_can_build_shared_GCJ=no
18245 lt_prog_compiler_pic_GCJ='-pic'
18246 lt_prog_compiler_static_GCJ='-Bstatic'
18250 lt_prog_compiler_can_build_shared_GCJ=no
18255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18256 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18259 # Check to make sure the PIC flag actually works.
18261 if test -n "$lt_prog_compiler_pic_GCJ"; then
18263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18265 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 lt_prog_compiler_pic_works_GCJ=no
18269 ac_outfile=conftest.$ac_objext
18270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18271 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18272 # Insert the option either (1) after the last *FLAGS variable, or
18273 # (2) before a word containing "conftest.", or (3) at the end.
18274 # Note that $ac_compile itself does not contain backslashes and begins
18275 # with a dollar sign (not a hyphen), so the echo should work correctly.
18276 # The option is referenced via a variable to avoid confusing sed.
18277 lt_compile=`echo "$ac_compile" | $SED \
18278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18280 -e 's:$: $lt_compiler_flag:'`
18281 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18282 (eval "$lt_compile" 2>conftest.err)
18284 cat conftest.err >&5
18285 echo "$as_me:__oline__: \$? = $ac_status" >&5
18286 if (exit $ac_status) && test -s "$ac_outfile"; then
18287 # The compiler can only warn and ignore the option if not recognized
18288 # So say no if there are warnings other than the usual output.
18289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18292 lt_prog_compiler_pic_works_GCJ=yes
18298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18299 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18301 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18302 case $lt_prog_compiler_pic_GCJ in
18304 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18307 lt_prog_compiler_pic_GCJ=
18308 lt_prog_compiler_can_build_shared_GCJ=no
18313 # For platforms which do not support PIC, -DPIC is meaningless:
18315 lt_prog_compiler_pic_GCJ=
18318 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18323 # Check to make sure the static flag actually works.
18325 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18328 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 lt_prog_compiler_static_works_GCJ=no
18332 save_LDFLAGS="$LDFLAGS"
18333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18334 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18336 # The linker can only warn and ignore the option if not recognized
18337 # So say no if there are warnings
18338 if test -s conftest.err; then
18339 # Append any errors to the config.log.
18340 cat conftest.err 1>&5
18341 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18343 if diff conftest.exp conftest.er2 >/dev/null; then
18344 lt_prog_compiler_static_works_GCJ=yes
18347 lt_prog_compiler_static_works_GCJ=yes
18351 LDFLAGS="$save_LDFLAGS"
18354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18355 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18357 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18360 lt_prog_compiler_static_GCJ=
18364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18366 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 lt_cv_prog_compiler_c_o_GCJ=no
18370 $rm -r conftest 2>/dev/null
18374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18376 lt_compiler_flag="-o out/conftest2.$ac_objext"
18377 # Insert the option either (1) after the last *FLAGS variable, or
18378 # (2) before a word containing "conftest.", or (3) at the end.
18379 # Note that $ac_compile itself does not contain backslashes and begins
18380 # with a dollar sign (not a hyphen), so the echo should work correctly.
18381 lt_compile=`echo "$ac_compile" | $SED \
18382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18384 -e 's:$: $lt_compiler_flag:'`
18385 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18386 (eval "$lt_compile" 2>out/conftest.err)
18388 cat out/conftest.err >&5
18389 echo "$as_me:__oline__: \$? = $ac_status" >&5
18390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18392 # The compiler can only warn and ignore the option if not recognized
18393 # So say no if there are warnings
18394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18397 lt_cv_prog_compiler_c_o_GCJ=yes
18402 # SGI C++ compiler will create directory out/ii_files/ for
18403 # template instantiation
18404 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18405 $rm out/* && rmdir out
18411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18415 hard_links="nottested"
18416 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18417 # do not overwrite the value of need_locks provided by the user
18418 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18424 ln conftest.a conftest.b 2>&5 || hard_links=no
18425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18426 { echo "$as_me:$LINENO: result: $hard_links" >&5
18427 echo "${ECHO_T}$hard_links" >&6; }
18428 if test "$hard_links" = no; then
18429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18441 allow_undefined_flag_GCJ=
18442 enable_shared_with_static_runtimes_GCJ=no
18444 archive_expsym_cmds_GCJ=
18445 old_archive_From_new_cmds_GCJ=
18446 old_archive_from_expsyms_cmds_GCJ=
18447 export_dynamic_flag_spec_GCJ=
18448 whole_archive_flag_spec_GCJ=
18449 thread_safe_flag_spec_GCJ=
18450 hardcode_libdir_flag_spec_GCJ=
18451 hardcode_libdir_flag_spec_ld_GCJ=
18452 hardcode_libdir_separator_GCJ=
18453 hardcode_direct_GCJ=no
18454 hardcode_minus_L_GCJ=no
18455 hardcode_shlibpath_var_GCJ=unsupported
18456 link_all_deplibs_GCJ=unknown
18457 hardcode_automatic_GCJ=no
18459 module_expsym_cmds_GCJ=
18460 always_export_symbols_GCJ=no
18461 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18462 # include_expsyms should be a list of space-separated symbols to be *always*
18463 # included in the symbol list
18464 include_expsyms_GCJ=
18465 # exclude_expsyms can be an extended regexp of symbols to exclude
18466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18468 # as well as any symbol that contains `d'.
18469 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18471 # platforms (ab)use it in PIC code, but their linkers get confused if
18472 # the symbol is explicitly referenced. Since portable code cannot
18473 # rely on this symbol name, it's probably fine to never include it in
18474 # preloaded symbol tables.
18475 extract_expsyms_cmds=
18476 # Just being paranoid about ensuring that cc_basename is set.
18477 for cc_temp in $compiler""; do
18479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18488 cygwin* | mingw* | pw32*)
18489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18490 # When not using gcc, we currently assume that we are using
18491 # Microsoft Visual C++.
18492 if test "$GCC" != yes; then
18497 # we just hope/assume this is gcc and not c89 (= MSVC++)
18506 if test "$with_gnu_ld" = yes; then
18507 # If archive_cmds runs LD, not CC, wlarc should be empty
18510 # Set some defaults for GNU ld with shared library support. These
18511 # are reset later if shared libraries are not supported. Putting them
18512 # here allows them to be overridden if necessary.
18513 runpath_var=LD_RUN_PATH
18514 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18515 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18516 # ancient GNU ld didn't support --whole-archive et. al.
18517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18518 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18520 whole_archive_flag_spec_GCJ=
18522 supports_anon_versioning=no
18523 case `$LD -v 2>/dev/null` in
18524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18527 *\ 2.11.*) ;; # other 2.11 versions
18528 *) supports_anon_versioning=yes ;;
18531 # See if GNU ld supports shared libraries.
18533 aix3* | aix4* | aix5*)
18534 # On AIX/PPC, the GNU linker is very broken
18535 if test "$host_cpu" != ia64; then
18539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18540 *** to be unable to reliably create shared libraries on AIX.
18541 *** Therefore, libtool is disabling shared libraries support. If you
18542 *** really care for shared libraries, you may want to modify your PATH
18543 *** so that a non-GNU linker is found, and then restart.
18550 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)'
18551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18552 hardcode_minus_L_GCJ=yes
18554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18555 # that the semantics of dynamic libraries on AmigaOS, at least up
18556 # to version 4, is to share data among multiple programs linked
18557 # with the same dynamic library. Since this doesn't match the
18558 # behavior of shared libraries on other platforms, we can't use
18564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18565 allow_undefined_flag_GCJ=unsupported
18566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18567 # support --undefined. This deserves some investigation. FIXME
18568 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18574 cygwin* | mingw* | pw32*)
18575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18576 # as there is no search path for DLLs.
18577 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18578 allow_undefined_flag_GCJ=unsupported
18579 always_export_symbols_GCJ=no
18580 enable_shared_with_static_runtimes_GCJ=yes
18581 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18585 # If the export-symbols file already is a .def file (1st line
18586 # is EXPORTS), use it as is; otherwise, prepend...
18587 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18588 cp $export_symbols $output_objdir/$soname.def;
18590 echo EXPORTS > $output_objdir/$soname.def;
18591 cat $export_symbols >> $output_objdir/$soname.def;
18593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18600 hardcode_direct_GCJ=no
18601 hardcode_shlibpath_var_GCJ=no
18602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18603 export_dynamic_flag_spec_GCJ='${wl}-E'
18604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18605 # Instead, shared libraries are loaded at an image base (0x10000000 by
18606 # default) and relocated if they conflict, which is a slow very memory
18607 # consuming and fragmenting process. To avoid this, we pick a random,
18608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18610 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'
18611 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'
18614 gnu* | linux* | k*bsd*-gnu)
18615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18617 case $cc_basename,$host_cpu in
18618 pgcc*) # Portland Group C compiler
18619 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'
18620 tmp_addflag=' $pic_flag'
18622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18623 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'
18624 tmp_addflag=' $pic_flag -Mnomain' ;;
18625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18626 tmp_addflag=' -i_dynamic' ;;
18627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18628 tmp_addflag=' -i_dynamic -nofor_main' ;;
18629 ifc* | ifort*) # Intel Fortran compiler
18630 tmp_addflag=' -nofor_main' ;;
18632 case `$CC -V 2>&1 | sed 5q` in
18633 *Sun\ C*) # Sun C 5.9
18634 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'
18635 tmp_sharedflag='-G' ;;
18636 *Sun\ F*) # Sun Fortran 8.3
18637 tmp_sharedflag='-G' ;;
18639 tmp_sharedflag='-shared' ;;
18641 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18643 if test $supports_anon_versioning = yes; then
18644 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18646 $echo "local: *; };" >> $output_objdir/$libname.ver~
18647 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18649 link_all_deplibs_GCJ=no
18655 netbsd* | netbsdelf*-gnu)
18656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18657 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18660 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18661 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18666 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18671 *** create shared libraries on Solaris systems. Therefore, libtool
18672 *** is disabling shared libraries support. We urge you to upgrade GNU
18673 *** binutils to release 2.9.1 or newer. Another option is to modify
18674 *** your PATH or compiler configuration so that the native linker is
18675 *** used, and then restart.
18678 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18679 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18680 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18687 case `$LD -v 2>&1` in
18688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18693 *** reliably create shared libraries on SCO systems. Therefore, libtool
18694 *** is disabling shared libraries support. We urge you to upgrade GNU
18695 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18696 *** your PATH or compiler configuration so that the native linker is
18697 *** used, and then restart.
18702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18703 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18704 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18705 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18714 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18716 hardcode_direct_GCJ=yes
18717 hardcode_shlibpath_var_GCJ=no
18721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18722 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18730 if test "$ld_shlibs_GCJ" = no; then
18732 hardcode_libdir_flag_spec_GCJ=
18733 export_dynamic_flag_spec_GCJ=
18734 whole_archive_flag_spec_GCJ=
18737 # PORTME fill in a description of your system's linker (not GNU ld)
18740 allow_undefined_flag_GCJ=unsupported
18741 always_export_symbols_GCJ=yes
18742 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'
18743 # Note: this linker hardcodes the directories in LIBPATH if there
18744 # are no directories specified by -L.
18745 hardcode_minus_L_GCJ=yes
18746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18747 # Neither direct hardcoding nor static linking is supported with a
18749 hardcode_direct_GCJ=unsupported
18754 if test "$host_cpu" = ia64; then
18755 # On IA64, the linker does run time linking by default, so we don't
18756 # have to do anything special.
18757 aix_use_runtimelinking=no
18758 exp_sym_flag='-Bexport'
18761 # If we're using GNU nm, then we don't want the "-C" option.
18762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18763 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18764 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'
18766 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'
18768 aix_use_runtimelinking=no
18770 # Test if we are trying to use run time linking or normal
18771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18772 # need to do runtime linking.
18773 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18774 for ld_flag in $LDFLAGS; do
18775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18776 aix_use_runtimelinking=yes
18783 exp_sym_flag='-bexport'
18784 no_entry_flag='-bnoentry'
18787 # When large executables or shared objects are built, AIX ld can
18788 # have problems creating the table of contents. If linking a library
18789 # or program results in "error TOC overflow" add -mminimal-toc to
18790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18793 archive_cmds_GCJ=''
18794 hardcode_direct_GCJ=yes
18795 hardcode_libdir_separator_GCJ=':'
18796 link_all_deplibs_GCJ=yes
18798 if test "$GCC" = yes; then
18799 case $host_os in aix4.[012]|aix4.[012].*)
18800 # We only want to do this on AIX 4.2 and lower, the check
18801 # below for broken collect2 doesn't work under 4.3+
18802 collect2name=`${CC} -print-prog-name=collect2`
18803 if test -f "$collect2name" && \
18804 strings "$collect2name" | grep resolve_lib_name >/dev/null
18806 # We have reworked collect2
18809 # We have old collect2
18810 hardcode_direct_GCJ=unsupported
18811 # It fails to find uninstalled libraries when the uninstalled
18812 # path is not listed in the libpath. Setting hardcode_minus_L
18813 # to unsupported forces relinking
18814 hardcode_minus_L_GCJ=yes
18815 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18816 hardcode_libdir_separator_GCJ=
18820 shared_flag='-shared'
18821 if test "$aix_use_runtimelinking" = yes; then
18822 shared_flag="$shared_flag "'${wl}-G'
18826 if test "$host_cpu" = ia64; then
18827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18828 # chokes on -Wl,-G. The following line is correct:
18831 if test "$aix_use_runtimelinking" = yes; then
18832 shared_flag='${wl}-G'
18834 shared_flag='${wl}-bM:SRE'
18839 # It seems that -bexpall does not export symbols beginning with
18840 # underscore (_), so it is better to generate a list of symbols to export.
18841 always_export_symbols_GCJ=yes
18842 if test "$aix_use_runtimelinking" = yes; then
18843 # Warning - without using the other runtime loading flags (-brtl),
18844 # -berok will link without error, but may produce a broken library.
18845 allow_undefined_flag_GCJ='-berok'
18846 # Determine the default libpath from the value encoded in an empty executable.
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18862 rm -f conftest.$ac_objext conftest$ac_exeext
18863 if { (ac_try="$ac_link"
18864 case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_link") 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest$ac_exeext &&
18879 $as_test_x conftest$ac_exeext; then
18881 lt_aix_libpath_sed='
18882 /Import File Strings/,/^$/ {
18888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18889 # Check for a 64-bit object if we didn't find anything.
18890 if test -z "$aix_libpath"; then
18891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18901 conftest$ac_exeext conftest.$ac_ext
18902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18904 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18905 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"
18907 if test "$host_cpu" = ia64; then
18908 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18909 allow_undefined_flag_GCJ="-z nodefs"
18910 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"
18912 # Determine the default libpath from the value encoded in an empty executable.
18913 cat >conftest.$ac_ext <<_ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (ac_try="$ac_link"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_link") 2>conftest.er1
18937 grep -v '^ *+' conftest.er1 >conftest.err
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } && {
18942 test -z "$ac_c_werror_flag" ||
18943 test ! -s conftest.err
18944 } && test -s conftest$ac_exeext &&
18945 $as_test_x conftest$ac_exeext; then
18947 lt_aix_libpath_sed='
18948 /Import File Strings/,/^$/ {
18954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18955 # Check for a 64-bit object if we didn't find anything.
18956 if test -z "$aix_libpath"; then
18957 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18967 conftest$ac_exeext conftest.$ac_ext
18968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18970 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18971 # Warning - without using the other run time loading flags,
18972 # -berok will link without error, but may produce a broken library.
18973 no_undefined_flag_GCJ=' ${wl}-bernotok'
18974 allow_undefined_flag_GCJ=' ${wl}-berok'
18975 # Exported symbols can be pulled into shared objects from archives
18976 whole_archive_flag_spec_GCJ='$convenience'
18977 archive_cmds_need_lc_GCJ=yes
18978 # This is similar to how AIX traditionally builds its shared libraries.
18979 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'
18985 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)'
18986 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18987 hardcode_minus_L_GCJ=yes
18988 # see comment about different semantics on the GNU ld section
18993 export_dynamic_flag_spec_GCJ=-rdynamic
18996 cygwin* | mingw* | pw32*)
18997 # When not using gcc, we currently assume that we are using
18998 # Microsoft Visual C++.
18999 # hardcode_libdir_flag_spec is actually meaningless, as there is
19000 # no search path for DLLs.
19001 hardcode_libdir_flag_spec_GCJ=' '
19002 allow_undefined_flag_GCJ=unsupported
19003 # Tell ltmain to make .lib files, not .a files.
19005 # Tell ltmain to make .dll files, not .so files.
19007 # FIXME: Setting linknames here is a bad hack.
19008 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19009 # The linker will automatically build a .lib file if we build a DLL.
19010 old_archive_From_new_cmds_GCJ='true'
19011 # FIXME: Should let the user specify the lib program.
19012 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19013 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19014 enable_shared_with_static_runtimes_GCJ=yes
19017 darwin* | rhapsody*)
19019 rhapsody* | darwin1.[012])
19020 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19023 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19024 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19026 case ${MACOSX_DEPLOYMENT_TARGET} in
19028 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19031 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19037 archive_cmds_need_lc_GCJ=no
19038 hardcode_direct_GCJ=no
19039 hardcode_automatic_GCJ=yes
19040 hardcode_shlibpath_var_GCJ=unsupported
19041 whole_archive_flag_spec_GCJ=''
19042 link_all_deplibs_GCJ=yes
19043 if test "$GCC" = yes ; then
19044 output_verbose_link_cmd='echo'
19045 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19046 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19047 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19048 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}'
19049 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}'
19051 case $cc_basename in
19053 output_verbose_link_cmd='echo'
19054 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19055 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19056 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19057 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}'
19058 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}'
19068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19070 hardcode_shlibpath_var_GCJ=no
19077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19078 # support. Future versions do this automatically, but an explicit c++rt0.o
19079 # does not break anything, and helps significantly (at the cost of a little
19082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19084 hardcode_direct_GCJ=yes
19085 hardcode_shlibpath_var_GCJ=no
19088 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19090 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19091 hardcode_direct_GCJ=yes
19092 hardcode_minus_L_GCJ=yes
19093 hardcode_shlibpath_var_GCJ=no
19096 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19097 freebsd* | dragonfly*)
19098 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19099 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19100 hardcode_direct_GCJ=yes
19101 hardcode_shlibpath_var_GCJ=no
19105 if test "$GCC" = yes; then
19106 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'
19108 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'
19110 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19111 hardcode_libdir_separator_GCJ=:
19112 hardcode_direct_GCJ=yes
19114 # hardcode_minus_L: Not really in the search PATH,
19115 # but as the default location of the library.
19116 hardcode_minus_L_GCJ=yes
19117 export_dynamic_flag_spec_GCJ='${wl}-E'
19121 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19122 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19124 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19126 if test "$with_gnu_ld" = no; then
19127 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19128 hardcode_libdir_separator_GCJ=:
19130 hardcode_direct_GCJ=yes
19131 export_dynamic_flag_spec_GCJ='${wl}-E'
19133 # hardcode_minus_L: Not really in the search PATH,
19134 # but as the default location of the library.
19135 hardcode_minus_L_GCJ=yes
19140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19143 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19146 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19149 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19155 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19158 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19161 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19165 if test "$with_gnu_ld" = no; then
19166 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19167 hardcode_libdir_separator_GCJ=:
19171 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19172 hardcode_direct_GCJ=no
19173 hardcode_shlibpath_var_GCJ=no
19176 hardcode_direct_GCJ=yes
19177 export_dynamic_flag_spec_GCJ='${wl}-E'
19179 # hardcode_minus_L: Not really in the search PATH,
19180 # but as the default location of the library.
19181 hardcode_minus_L_GCJ=yes
19187 irix5* | irix6* | nonstopux*)
19188 if test "$GCC" = yes; then
19189 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'
19191 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'
19192 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19194 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19195 hardcode_libdir_separator_GCJ=:
19196 link_all_deplibs_GCJ=yes
19199 netbsd* | netbsdelf*-gnu)
19200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19201 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19203 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19205 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19206 hardcode_direct_GCJ=yes
19207 hardcode_shlibpath_var_GCJ=no
19211 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19212 hardcode_direct_GCJ=yes
19213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19214 hardcode_libdir_separator_GCJ=:
19215 hardcode_shlibpath_var_GCJ=no
19219 if test -f /usr/libexec/ld.so; then
19220 hardcode_direct_GCJ=yes
19221 hardcode_shlibpath_var_GCJ=no
19222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19223 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19224 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19226 export_dynamic_flag_spec_GCJ='${wl}-E'
19229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19231 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19234 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19246 hardcode_minus_L_GCJ=yes
19247 allow_undefined_flag_GCJ=unsupported
19248 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'
19249 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19253 if test "$GCC" = yes; then
19254 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19255 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'
19257 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19258 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'
19260 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19261 hardcode_libdir_separator_GCJ=:
19264 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19270 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19271 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'
19272 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~
19273 $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'
19275 # Both c and cxx compiler support -rpath directly
19276 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19278 hardcode_libdir_separator_GCJ=:
19282 no_undefined_flag_GCJ=' -z text'
19283 if test "$GCC" = yes; then
19285 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19286 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19287 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19290 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19291 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19294 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19295 hardcode_shlibpath_var_GCJ=no
19297 solaris2.[0-5] | solaris2.[0-5].*) ;;
19299 # The compiler driver will combine and reorder linker options,
19300 # but understands `-z linker_flag'. GCC discards it without `$wl',
19301 # but is careful enough not to reorder.
19302 # Supported since Solaris 2.6 (maybe 2.5.1?)
19303 if test "$GCC" = yes; then
19304 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19306 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19310 link_all_deplibs_GCJ=yes
19314 if test "x$host_vendor" = xsequent; then
19315 # Use $CC to link under sequent, because it throws in some extra .o
19316 # files that make .init and .fini sections work.
19317 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19319 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19321 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19322 hardcode_direct_GCJ=yes
19323 hardcode_minus_L_GCJ=yes
19324 hardcode_shlibpath_var_GCJ=no
19328 case $host_vendor in
19330 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19331 hardcode_direct_GCJ=yes # is this really true???
19334 ## LD is ld it makes a PLAMLIB
19335 ## CC just makes a GrossModule.
19336 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19337 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19338 hardcode_direct_GCJ=no
19341 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19342 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19345 runpath_var='LD_RUN_PATH'
19346 hardcode_shlibpath_var_GCJ=no
19350 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19351 hardcode_shlibpath_var_GCJ=no
19352 export_dynamic_flag_spec_GCJ='-Bexport'
19356 if test -d /usr/nec; then
19357 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19358 hardcode_shlibpath_var_GCJ=no
19359 runpath_var=LD_RUN_PATH
19360 hardcode_runpath_var=yes
19365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19366 no_undefined_flag_GCJ='${wl}-z,text'
19367 archive_cmds_need_lc_GCJ=no
19368 hardcode_shlibpath_var_GCJ=no
19369 runpath_var='LD_RUN_PATH'
19371 if test "$GCC" = yes; then
19372 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19373 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19376 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19380 sysv5* | sco3.2v5* | sco5v6*)
19381 # Note: We can NOT use -z defs as we might desire, because we do not
19382 # link with -lc, and that would cause any symbols used from libc to
19383 # always be unresolved, which means just about no library would
19384 # ever link correctly. If we're not using GNU ld we use -z text
19385 # though, which does catch some bad symbols but isn't as heavy-handed
19387 no_undefined_flag_GCJ='${wl}-z,text'
19388 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19389 archive_cmds_need_lc_GCJ=no
19390 hardcode_shlibpath_var_GCJ=no
19391 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19392 hardcode_libdir_separator_GCJ=':'
19393 link_all_deplibs_GCJ=yes
19394 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19395 runpath_var='LD_RUN_PATH'
19397 if test "$GCC" = yes; then
19398 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19399 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19401 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19402 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19407 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19409 hardcode_shlibpath_var_GCJ=no
19418 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19419 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19420 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19423 # Do we need to explicitly link libc?
19425 case "x$archive_cmds_need_lc_GCJ" in
19427 # Assume -lc should be added
19428 archive_cmds_need_lc_GCJ=yes
19430 if test "$enable_shared" = yes && test "$GCC" = yes; then
19431 case $archive_cmds_GCJ in
19433 # FIXME: we may have to deal with multi-command sequences.
19436 # Test whether the compiler implicitly links with -lc since on some
19437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19438 # to ld, don't add -lc before -lgcc.
19439 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19440 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19445 (eval $ac_compile) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } 2>conftest.err; then
19451 libobjs=conftest.$ac_objext
19453 wl=$lt_prog_compiler_wl_GCJ
19454 pic_flag=$lt_prog_compiler_pic_GCJ
19460 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19461 allow_undefined_flag_GCJ=
19462 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19463 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }
19468 archive_cmds_need_lc_GCJ=no
19470 archive_cmds_need_lc_GCJ=yes
19472 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19474 cat conftest.err 1>&5
19477 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19478 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19485 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19486 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19487 library_names_spec=
19488 libname_spec='lib$name'
19492 postuninstall_cmds=
19496 shlibpath_overrides_runpath=unknown
19498 dynamic_linker="$host_os ld.so"
19499 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19501 need_lib_prefix=unknown
19502 hardcode_into_libs=no
19504 # when you set need_version to no, make sure it does not cause -set_version
19505 # flags to be left without arguments
19506 need_version=unknown
19511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19512 shlibpath_var=LIBPATH
19514 # AIX 3 has no versioning support, so we append a major version to the name.
19515 soname_spec='${libname}${release}${shared_ext}$major'
19522 hardcode_into_libs=yes
19523 if test "$host_cpu" = ia64; then
19524 # AIX 5 supports IA64
19525 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19526 shlibpath_var=LD_LIBRARY_PATH
19528 # With GCC up to 2.95.x, collect2 would create an import file
19529 # for dependence libraries. The import file would start with
19530 # the line `#! .'. This would cause the generated library to
19531 # depend on `.', always an invalid library. This was fixed in
19532 # development snapshots of GCC prior to 3.0.
19534 aix4 | aix4.[01] | aix4.[01].*)
19535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19537 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19540 can_build_shared=no
19544 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19545 # soname into executable. Probably we can add versioning support to
19546 # collect2, so additional links can be useful in future.
19547 if test "$aix_use_runtimelinking" = yes; then
19548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19549 # instead of lib<name>.a to let people know that these are not
19550 # typical AIX shared libraries.
19551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19553 # We preserve .a as extension for shared libraries through AIX4.2
19554 # and later when we are not doing run time linking.
19555 library_names_spec='${libname}${release}.a $libname.a'
19556 soname_spec='${libname}${release}${shared_ext}$major'
19558 shlibpath_var=LIBPATH
19563 library_names_spec='$libname.ixlibrary $libname.a'
19564 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19565 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'
19569 library_names_spec='${libname}${shared_ext}'
19570 dynamic_linker="$host_os ld.so"
19571 shlibpath_var=LIBRARY_PATH
19577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19578 soname_spec='${libname}${release}${shared_ext}$major'
19579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19580 shlibpath_var=LD_LIBRARY_PATH
19581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19583 # the default ld.so.conf also contains /usr/contrib/lib and
19584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19585 # libtool to hard-code these into programs
19588 cygwin* | mingw* | pw32*)
19589 version_type=windows
19594 case $GCC,$host_os in
19595 yes,cygwin* | yes,mingw* | yes,pw32*)
19596 library_names_spec='$libname.dll.a'
19597 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19598 postinstall_cmds='base_file=`basename \${file}`~
19599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19600 dldir=$destdir/`dirname \$dlpath`~
19601 test -d \$dldir || mkdir -p \$dldir~
19602 $install_prog $dir/$dlname \$dldir/$dlname~
19603 chmod a+x \$dldir/$dlname'
19604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19605 dlpath=$dir/\$dldll~
19607 shlibpath_overrides_runpath=yes
19611 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19612 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19613 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19616 # MinGW DLLs use traditional 'lib' prefix
19617 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19619 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19620 # It is most probably a Windows format PATH printed by
19621 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19622 # path with ; separators, and with drive letters. We can handle the
19623 # drive letters (cygwin fileutils understands them), so leave them,
19624 # especially as we might pass files found there to a mingw objdump,
19625 # which wouldn't understand a cygwinified path. Ahh.
19626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19632 # pw32 DLLs use 'pw' prefix rather than 'lib'
19633 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19642 dynamic_linker='Win32 ld.exe'
19643 # FIXME: first we should search . and the directory the executable is in
19647 darwin* | rhapsody*)
19648 dynamic_linker="$host_os dyld"
19649 version_type=darwin
19652 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19653 soname_spec='${libname}${release}${major}$shared_ext'
19654 shlibpath_overrides_runpath=yes
19655 shlibpath_var=DYLD_LIBRARY_PATH
19656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19658 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19666 soname_spec='${libname}${release}${shared_ext}$major'
19667 shlibpath_var=LD_LIBRARY_PATH
19674 freebsd* | dragonfly*)
19675 # DragonFly does not have aout. When/if they implement a new
19676 # versioning mechanism, adjust this.
19677 if test -x /usr/bin/objformat; then
19678 objformat=`/usr/bin/objformat`
19681 freebsd[123]*) objformat=aout ;;
19682 *) objformat=elf ;;
19685 version_type=freebsd-$objformat
19686 case $version_type in
19688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19697 shlibpath_var=LD_LIBRARY_PATH
19700 shlibpath_overrides_runpath=yes
19702 freebsd3.[01]* | freebsdelf3.[01]*)
19703 shlibpath_overrides_runpath=yes
19704 hardcode_into_libs=yes
19706 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19707 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19708 shlibpath_overrides_runpath=no
19709 hardcode_into_libs=yes
19711 *) # from 4.6 on, and DragonFly
19712 shlibpath_overrides_runpath=yes
19713 hardcode_into_libs=yes
19722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19723 soname_spec='${libname}${release}${shared_ext}$major'
19724 shlibpath_var=LD_LIBRARY_PATH
19725 hardcode_into_libs=yes
19728 hpux9* | hpux10* | hpux11*)
19729 # Give a soname corresponding to the major version so that dld.sl refuses to
19730 # link against other versions.
19737 hardcode_into_libs=yes
19738 dynamic_linker="$host_os dld.so"
19739 shlibpath_var=LD_LIBRARY_PATH
19740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19742 soname_spec='${libname}${release}${shared_ext}$major'
19743 if test "X$HPUX_IA64_MODE" = X32; then
19744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19752 hardcode_into_libs=yes
19753 dynamic_linker="$host_os dld.sl"
19754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19757 soname_spec='${libname}${release}${shared_ext}$major'
19758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19763 dynamic_linker="$host_os dld.sl"
19764 shlibpath_var=SHLIB_PATH
19765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19767 soname_spec='${libname}${release}${shared_ext}$major'
19770 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19771 postinstall_cmds='chmod 555 $lib'
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'
19780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19781 shlibpath_var=LD_LIBRARY_PATH
19782 shlibpath_overrides_runpath=no
19783 hardcode_into_libs=yes
19786 irix5* | irix6* | nonstopux*)
19788 nonstopux*) version_type=nonstopux ;;
19790 if test "$lt_cv_prog_gnu_ld" = yes; then
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19801 irix5* | nonstopux*)
19802 libsuff= shlibsuff=
19805 case $LD in # libtool.m4 will add one of these switches to LD
19806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19807 libsuff= shlibsuff= libmagic=32-bit;;
19808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19809 libsuff=32 shlibsuff=N32 libmagic=N32;;
19810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19812 *) libsuff= shlibsuff= libmagic=never-match;;
19816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19817 shlibpath_overrides_runpath=no
19818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19820 hardcode_into_libs=yes
19823 # No shared lib support for Linux oldld, aout, or coff.
19824 linux*oldld* | linux*aout* | linux*coff*)
19828 # This must be Linux ELF.
19829 linux* | k*bsd*-gnu)
19833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19834 soname_spec='${libname}${release}${shared_ext}$major'
19835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19836 shlibpath_var=LD_LIBRARY_PATH
19837 shlibpath_overrides_runpath=no
19838 # This implies no fast_install, which is unacceptable.
19839 # Some rework will be needed to allow for fast_install
19840 # before this can be enabled.
19841 hardcode_into_libs=yes
19843 # Append ld.so.conf contents to the search path
19844 if test -f /etc/ld.so.conf; then
19845 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' ' '`
19846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19849 # We used to test for /lib/ld.so.1 and disable shared libraries on
19850 # powerpc, because MkLinux only supported shared libraries with the
19851 # GNU dynamic linker. Since this was broken with cross compilers,
19852 # most powerpc-linux boxes support dynamic linking these days and
19853 # people can always --disable-shared, the test was removed, and we
19854 # assume the GNU/Linux dynamic linker is in use.
19855 dynamic_linker='GNU/Linux ld.so'
19862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19863 soname_spec='${libname}${release}${shared_ext}$major'
19864 shlibpath_var=LD_LIBRARY_PATH
19865 shlibpath_overrides_runpath=no
19866 hardcode_into_libs=yes
19867 dynamic_linker='NetBSD ld.elf_so'
19874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19877 dynamic_linker='NetBSD (a.out) ld.so'
19879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19880 soname_spec='${libname}${release}${shared_ext}$major'
19881 dynamic_linker='NetBSD ld.elf_so'
19883 shlibpath_var=LD_LIBRARY_PATH
19884 shlibpath_overrides_runpath=yes
19885 hardcode_into_libs=yes
19890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19891 shlibpath_var=LD_LIBRARY_PATH
19892 shlibpath_overrides_runpath=yes
19899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19900 soname_spec='${libname}${release}${shared_ext}$major'
19901 shlibpath_var=LD_LIBRARY_PATH
19902 shlibpath_overrides_runpath=yes
19907 sys_lib_dlsearch_path_spec="/usr/lib"
19909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19912 *) need_version=no ;;
19914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19916 shlibpath_var=LD_LIBRARY_PATH
19917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19919 openbsd2.[89] | openbsd2.[89].*)
19920 shlibpath_overrides_runpath=no
19923 shlibpath_overrides_runpath=yes
19927 shlibpath_overrides_runpath=yes
19932 libname_spec='$name'
19935 library_names_spec='$libname${shared_ext} $libname.a'
19936 dynamic_linker='OS/2 ld.exe'
19937 shlibpath_var=LIBPATH
19940 osf3* | osf4* | osf5*)
19944 soname_spec='${libname}${release}${shared_ext}$major'
19945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19946 shlibpath_var=LD_LIBRARY_PATH
19947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960 soname_spec='${libname}${release}${shared_ext}$major'
19961 shlibpath_var=LD_LIBRARY_PATH
19962 shlibpath_overrides_runpath=yes
19963 hardcode_into_libs=yes
19964 # ldd complains unless libraries are executable
19965 postinstall_cmds='chmod +x $lib'
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19972 shlibpath_var=LD_LIBRARY_PATH
19973 shlibpath_overrides_runpath=yes
19974 if test "$with_gnu_ld" = yes; then
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19983 soname_spec='${libname}${release}${shared_ext}$major'
19984 shlibpath_var=LD_LIBRARY_PATH
19985 case $host_vendor in
19987 shlibpath_overrides_runpath=no
19989 export_dynamic_flag_spec='${wl}-Blargedynsym'
19990 runpath_var=LD_RUN_PATH
19998 shlibpath_overrides_runpath=no
19999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20005 if test -d /usr/nec ;then
20007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20008 soname_spec='$libname${shared_ext}.$major'
20009 shlibpath_var=LD_LIBRARY_PATH
20013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20014 version_type=freebsd-elf
20017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 shlibpath_var=LD_LIBRARY_PATH
20020 hardcode_into_libs=yes
20021 if test "$with_gnu_ld" = yes; then
20022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20023 shlibpath_overrides_runpath=no
20025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20026 shlibpath_overrides_runpath=yes
20029 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20033 sys_lib_dlsearch_path_spec='/usr/lib'
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20039 soname_spec='${libname}${release}${shared_ext}$major'
20040 shlibpath_var=LD_LIBRARY_PATH
20047 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20048 echo "${ECHO_T}$dynamic_linker" >&6; }
20049 test "$dynamic_linker" = no && can_build_shared=no
20051 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20052 if test "$GCC" = yes; then
20053 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20056 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20057 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20058 hardcode_action_GCJ=
20059 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20060 test -n "$runpath_var_GCJ" || \
20061 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20063 # We can hardcode non-existant directories.
20064 if test "$hardcode_direct_GCJ" != no &&
20065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20066 # have to relink, otherwise we might link with an installed library
20067 # when we should be linking with a yet-to-be-installed one
20068 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20069 test "$hardcode_minus_L_GCJ" != no; then
20070 # Linking always hardcodes the temporary library directory.
20071 hardcode_action_GCJ=relink
20073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20074 hardcode_action_GCJ=immediate
20077 # We cannot hardcode anything, or else we can only hardcode existing
20079 hardcode_action_GCJ=unsupported
20081 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20082 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20084 if test "$hardcode_action_GCJ" = relink; then
20085 # Fast installation is not supported
20086 enable_fast_install=no
20087 elif test "$shlibpath_overrides_runpath" = yes ||
20088 test "$enable_shared" = no; then
20089 # Fast installation is not necessary
20090 enable_fast_install=needless
20094 # The else clause should only fire when bootstrapping the
20095 # libtool distribution, otherwise you forgot to ship ltmain.sh
20096 # with your package, and you will get complaints that there are
20097 # no rules to generate ltmain.sh.
20098 if test -f "$ltmain"; then
20099 # See if we are running on zsh, and set the options which allow our commands through
20100 # without removal of \ escapes.
20101 if test -n "${ZSH_VERSION+set}" ; then
20102 setopt NO_GLOB_SUBST
20104 # Now quote all the things that may contain metacharacters while being
20105 # careful not to overquote the AC_SUBSTed values. We take copies of the
20106 # variables and quote the copies for generation of the libtool script.
20107 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20109 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20110 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20111 deplibs_check_method reload_flag reload_cmds need_locks \
20112 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20113 lt_cv_sys_global_symbol_to_c_name_address \
20114 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20115 old_postinstall_cmds old_postuninstall_cmds \
20119 lt_prog_compiler_wl_GCJ \
20120 lt_prog_compiler_pic_GCJ \
20121 lt_prog_compiler_static_GCJ \
20122 lt_prog_compiler_no_builtin_flag_GCJ \
20123 export_dynamic_flag_spec_GCJ \
20124 thread_safe_flag_spec_GCJ \
20125 whole_archive_flag_spec_GCJ \
20126 enable_shared_with_static_runtimes_GCJ \
20127 old_archive_cmds_GCJ \
20128 old_archive_from_new_cmds_GCJ \
20129 predep_objects_GCJ \
20130 postdep_objects_GCJ \
20133 compiler_lib_search_path_GCJ \
20135 archive_expsym_cmds_GCJ \
20136 postinstall_cmds_GCJ \
20137 postuninstall_cmds_GCJ \
20138 old_archive_from_expsyms_cmds_GCJ \
20139 allow_undefined_flag_GCJ \
20140 no_undefined_flag_GCJ \
20141 export_symbols_cmds_GCJ \
20142 hardcode_libdir_flag_spec_GCJ \
20143 hardcode_libdir_flag_spec_ld_GCJ \
20144 hardcode_libdir_separator_GCJ \
20145 hardcode_automatic_GCJ \
20147 module_expsym_cmds_GCJ \
20148 lt_cv_prog_compiler_c_o_GCJ \
20149 fix_srcfile_path_GCJ \
20150 exclude_expsyms_GCJ \
20151 include_expsyms_GCJ; do
20154 old_archive_cmds_GCJ | \
20155 old_archive_from_new_cmds_GCJ | \
20156 archive_cmds_GCJ | \
20157 archive_expsym_cmds_GCJ | \
20158 module_cmds_GCJ | \
20159 module_expsym_cmds_GCJ | \
20160 old_archive_from_expsyms_cmds_GCJ | \
20161 export_symbols_cmds_GCJ | \
20162 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20163 postinstall_cmds | postuninstall_cmds | \
20164 old_postinstall_cmds | old_postuninstall_cmds | \
20165 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20166 # Double-quote double-evaled strings.
20167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20176 *'\$0 --fallback-echo"')
20177 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20183 cat <<__EOF__ >> "$cfgfile"
20184 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20188 # Shell to use when invoking shell scripts.
20191 # Whether or not to build shared libraries.
20192 build_libtool_libs=$enable_shared
20194 # Whether or not to build static libraries.
20195 build_old_libs=$enable_static
20197 # Whether or not to add -lc for building shared libraries.
20198 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20200 # Whether or not to disallow shared libs when runtime libs are static
20201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20203 # Whether or not to optimize for fast installation.
20204 fast_install=$enable_fast_install
20207 host_alias=$host_alias
20211 # The build system.
20212 build_alias=$build_alias
20216 # An echo program that does not interpret backslashes.
20221 AR_FLAGS=$lt_AR_FLAGS
20226 # LTCC compiler flags.
20227 LTCFLAGS=$lt_LTCFLAGS
20229 # A language-specific compiler.
20230 CC=$lt_compiler_GCJ
20232 # Is the compiler the GNU C compiler?
20238 # The linker used to build libraries.
20241 # Whether we need hard or soft links.
20244 # A BSD-compatible nm program.
20247 # A symbol stripping program
20250 # Used to examine libraries when file_magic_cmd begins "file"
20251 MAGIC_CMD=$MAGIC_CMD
20253 # Used on cygwin: DLL creation program.
20256 # Used on cygwin: object dumper.
20259 # Used on cygwin: assembler.
20262 # The name of the directory that contains temporary libtool files.
20265 # How to create reloadable object files.
20266 reload_flag=$lt_reload_flag
20267 reload_cmds=$lt_reload_cmds
20269 # How to pass a linker flag through the compiler.
20270 wl=$lt_lt_prog_compiler_wl_GCJ
20272 # Object file suffix (normally "o").
20273 objext="$ac_objext"
20275 # Old archive suffix (normally "a").
20278 # Shared library suffix (normally ".so").
20279 shrext_cmds='$shrext_cmds'
20281 # Executable file suffix (normally "").
20284 # Additional compiler flags for building library objects.
20285 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20288 # What is the maximum length of a command?
20289 max_cmd_len=$lt_cv_sys_max_cmd_len
20291 # Does compiler simultaneously support -c and -o options?
20292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20294 # Must we lock files when doing compilation?
20295 need_locks=$lt_need_locks
20297 # Do we need the lib prefix for modules?
20298 need_lib_prefix=$need_lib_prefix
20300 # Do we need a version for libraries?
20301 need_version=$need_version
20303 # Whether dlopen is supported.
20304 dlopen_support=$enable_dlopen
20306 # Whether dlopen of programs is supported.
20307 dlopen_self=$enable_dlopen_self
20309 # Whether dlopen of statically linked programs is supported.
20310 dlopen_self_static=$enable_dlopen_self_static
20312 # Compiler flag to prevent dynamic linking.
20313 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20315 # Compiler flag to turn off builtin functions.
20316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20318 # Compiler flag to allow reflexive dlopens.
20319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20321 # Compiler flag to generate shared objects directly from archives.
20322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20324 # Compiler flag to generate thread-safe objects.
20325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20327 # Library versioning type.
20328 version_type=$version_type
20330 # Format of library name prefix.
20331 libname_spec=$lt_libname_spec
20333 # List of archive names. First name is the real one, the rest are links.
20334 # The last name is the one that the linker finds with -lNAME.
20335 library_names_spec=$lt_library_names_spec
20337 # The coded name of the library, if different from the real name.
20338 soname_spec=$lt_soname_spec
20340 # Commands used to build and install an old-style archive.
20342 old_archive_cmds=$lt_old_archive_cmds_GCJ
20343 old_postinstall_cmds=$lt_old_postinstall_cmds
20344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20346 # Create an old-style archive from a shared archive.
20347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20349 # Create a temporary old-style archive to link instead of a shared archive.
20350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20352 # Commands used to build and install a shared archive.
20353 archive_cmds=$lt_archive_cmds_GCJ
20354 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20355 postinstall_cmds=$lt_postinstall_cmds
20356 postuninstall_cmds=$lt_postuninstall_cmds
20358 # Commands used to build a loadable module (assumed same as above if empty)
20359 module_cmds=$lt_module_cmds_GCJ
20360 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20362 # Commands to strip libraries.
20363 old_striplib=$lt_old_striplib
20364 striplib=$lt_striplib
20366 # Dependencies to place before the objects being linked to create a
20368 predep_objects=$lt_predep_objects_GCJ
20370 # Dependencies to place after the objects being linked to create a
20372 postdep_objects=$lt_postdep_objects_GCJ
20374 # Dependencies to place before the objects being linked to create a
20376 predeps=$lt_predeps_GCJ
20378 # Dependencies to place after the objects being linked to create a
20380 postdeps=$lt_postdeps_GCJ
20382 # The library search path used internally by the compiler when linking
20383 # a shared library.
20384 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20386 # Method to check whether dependent libraries are shared objects.
20387 deplibs_check_method=$lt_deplibs_check_method
20389 # Command to use when deplibs_check_method == file_magic.
20390 file_magic_cmd=$lt_file_magic_cmd
20392 # Flag that allows shared libraries with undefined symbols to be built.
20393 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20395 # Flag that forces no undefined symbols.
20396 no_undefined_flag=$lt_no_undefined_flag_GCJ
20398 # Commands used to finish a libtool library installation in a directory.
20399 finish_cmds=$lt_finish_cmds
20401 # Same as above, but a single script fragment to be evaled but not shown.
20402 finish_eval=$lt_finish_eval
20404 # Take the output of nm and produce a listing of raw symbols and C names.
20405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20407 # Transform the output of nm in a proper C declaration
20408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20410 # Transform the output of nm in a C name address pair
20411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20413 # This is the shared library runtime path variable.
20414 runpath_var=$runpath_var
20416 # This is the shared library path variable.
20417 shlibpath_var=$shlibpath_var
20419 # Is shlibpath searched before the hard-coded library search path?
20420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20422 # How to hardcode a shared library path into an executable.
20423 hardcode_action=$hardcode_action_GCJ
20425 # Whether we should hardcode library paths into libraries.
20426 hardcode_into_libs=$hardcode_into_libs
20428 # Flag to hardcode \$libdir into a binary during linking.
20429 # This must work even if \$libdir does not exist.
20430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20432 # If ld is used when linking, flag to hardcode \$libdir into
20433 # a binary during linking. This must work even if \$libdir does
20435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20437 # Whether we need a single -rpath flag with a separated argument.
20438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20441 # resulting binary.
20442 hardcode_direct=$hardcode_direct_GCJ
20444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20445 # resulting binary.
20446 hardcode_minus_L=$hardcode_minus_L_GCJ
20448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20449 # the resulting binary.
20450 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20452 # Set to yes if building a shared library automatically hardcodes DIR into the library
20453 # and all subsequent libraries and executables linked against it.
20454 hardcode_automatic=$hardcode_automatic_GCJ
20456 # Variables whose values should be saved in libtool wrapper scripts and
20457 # restored at relink time.
20458 variables_saved_for_relink="$variables_saved_for_relink"
20460 # Whether libtool must link a program against all its dependency libraries.
20461 link_all_deplibs=$link_all_deplibs_GCJ
20463 # Compile-time system search path for libraries
20464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20466 # Run-time system search path for libraries
20467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20469 # Fix the shell variable \$srcfile for the compiler.
20470 fix_srcfile_path=$lt_fix_srcfile_path
20472 # Set to yes if exported symbols are required.
20473 always_export_symbols=$always_export_symbols_GCJ
20475 # The commands to list exported symbols.
20476 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20478 # The commands to extract the exported symbol list from a shared archive.
20479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20481 # Symbols that should not be listed in the preloaded symbols.
20482 exclude_expsyms=$lt_exclude_expsyms_GCJ
20484 # Symbols that must always be exported.
20485 include_expsyms=$lt_include_expsyms_GCJ
20487 # ### END LIBTOOL TAG CONFIG: $tagname
20493 # If there is no Makefile yet, we rely on a make rule to execute
20494 # `config.status --recheck' to rerun these tests and create the
20495 # libtool script then.
20496 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20497 if test -f "$ltmain_in"; then
20498 test -f Makefile && make "$ltmain"
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20519 # Source file extension for RC test sources.
20522 # Object file extension for compiled RC test sources.
20526 # Code to be used in simple compile tests
20527 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20529 # Code to be used in simple link tests
20530 lt_simple_link_test_code="$lt_simple_compile_test_code"
20532 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20534 # If no C compiler was specified, use CC.
20537 # If no C compiler flags were specified, use CFLAGS.
20538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20540 # Allow CC to be a program name with arguments.
20544 # save warnings/boilerplate of simple test code
20545 ac_outfile=conftest.$ac_objext
20546 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20548 _lt_compiler_boilerplate=`cat conftest.err`
20551 ac_outfile=conftest.$ac_objext
20552 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20554 _lt_linker_boilerplate=`cat conftest.err`
20558 # Allow CC to be a program name with arguments.
20563 for cc_temp in $compiler""; do
20565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20573 lt_cv_prog_compiler_c_o_RC=yes
20575 # The else clause should only fire when bootstrapping the
20576 # libtool distribution, otherwise you forgot to ship ltmain.sh
20577 # with your package, and you will get complaints that there are
20578 # no rules to generate ltmain.sh.
20579 if test -f "$ltmain"; then
20580 # See if we are running on zsh, and set the options which allow our commands through
20581 # without removal of \ escapes.
20582 if test -n "${ZSH_VERSION+set}" ; then
20583 setopt NO_GLOB_SUBST
20585 # Now quote all the things that may contain metacharacters while being
20586 # careful not to overquote the AC_SUBSTed values. We take copies of the
20587 # variables and quote the copies for generation of the libtool script.
20588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20590 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20591 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20592 deplibs_check_method reload_flag reload_cmds need_locks \
20593 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20594 lt_cv_sys_global_symbol_to_c_name_address \
20595 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20596 old_postinstall_cmds old_postuninstall_cmds \
20600 lt_prog_compiler_wl_RC \
20601 lt_prog_compiler_pic_RC \
20602 lt_prog_compiler_static_RC \
20603 lt_prog_compiler_no_builtin_flag_RC \
20604 export_dynamic_flag_spec_RC \
20605 thread_safe_flag_spec_RC \
20606 whole_archive_flag_spec_RC \
20607 enable_shared_with_static_runtimes_RC \
20608 old_archive_cmds_RC \
20609 old_archive_from_new_cmds_RC \
20610 predep_objects_RC \
20611 postdep_objects_RC \
20614 compiler_lib_search_path_RC \
20616 archive_expsym_cmds_RC \
20617 postinstall_cmds_RC \
20618 postuninstall_cmds_RC \
20619 old_archive_from_expsyms_cmds_RC \
20620 allow_undefined_flag_RC \
20621 no_undefined_flag_RC \
20622 export_symbols_cmds_RC \
20623 hardcode_libdir_flag_spec_RC \
20624 hardcode_libdir_flag_spec_ld_RC \
20625 hardcode_libdir_separator_RC \
20626 hardcode_automatic_RC \
20628 module_expsym_cmds_RC \
20629 lt_cv_prog_compiler_c_o_RC \
20630 fix_srcfile_path_RC \
20631 exclude_expsyms_RC \
20632 include_expsyms_RC; do
20635 old_archive_cmds_RC | \
20636 old_archive_from_new_cmds_RC | \
20637 archive_cmds_RC | \
20638 archive_expsym_cmds_RC | \
20640 module_expsym_cmds_RC | \
20641 old_archive_from_expsyms_cmds_RC | \
20642 export_symbols_cmds_RC | \
20643 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20644 postinstall_cmds | postuninstall_cmds | \
20645 old_postinstall_cmds | old_postuninstall_cmds | \
20646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20647 # Double-quote double-evaled strings.
20648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20657 *'\$0 --fallback-echo"')
20658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20664 cat <<__EOF__ >> "$cfgfile"
20665 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20669 # Shell to use when invoking shell scripts.
20672 # Whether or not to build shared libraries.
20673 build_libtool_libs=$enable_shared
20675 # Whether or not to build static libraries.
20676 build_old_libs=$enable_static
20678 # Whether or not to add -lc for building shared libraries.
20679 build_libtool_need_lc=$archive_cmds_need_lc_RC
20681 # Whether or not to disallow shared libs when runtime libs are static
20682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20684 # Whether or not to optimize for fast installation.
20685 fast_install=$enable_fast_install
20688 host_alias=$host_alias
20692 # The build system.
20693 build_alias=$build_alias
20697 # An echo program that does not interpret backslashes.
20702 AR_FLAGS=$lt_AR_FLAGS
20707 # LTCC compiler flags.
20708 LTCFLAGS=$lt_LTCFLAGS
20710 # A language-specific compiler.
20713 # Is the compiler the GNU C compiler?
20719 # The linker used to build libraries.
20722 # Whether we need hard or soft links.
20725 # A BSD-compatible nm program.
20728 # A symbol stripping program
20731 # Used to examine libraries when file_magic_cmd begins "file"
20732 MAGIC_CMD=$MAGIC_CMD
20734 # Used on cygwin: DLL creation program.
20737 # Used on cygwin: object dumper.
20740 # Used on cygwin: assembler.
20743 # The name of the directory that contains temporary libtool files.
20746 # How to create reloadable object files.
20747 reload_flag=$lt_reload_flag
20748 reload_cmds=$lt_reload_cmds
20750 # How to pass a linker flag through the compiler.
20751 wl=$lt_lt_prog_compiler_wl_RC
20753 # Object file suffix (normally "o").
20754 objext="$ac_objext"
20756 # Old archive suffix (normally "a").
20759 # Shared library suffix (normally ".so").
20760 shrext_cmds='$shrext_cmds'
20762 # Executable file suffix (normally "").
20765 # Additional compiler flags for building library objects.
20766 pic_flag=$lt_lt_prog_compiler_pic_RC
20769 # What is the maximum length of a command?
20770 max_cmd_len=$lt_cv_sys_max_cmd_len
20772 # Does compiler simultaneously support -c and -o options?
20773 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20775 # Must we lock files when doing compilation?
20776 need_locks=$lt_need_locks
20778 # Do we need the lib prefix for modules?
20779 need_lib_prefix=$need_lib_prefix
20781 # Do we need a version for libraries?
20782 need_version=$need_version
20784 # Whether dlopen is supported.
20785 dlopen_support=$enable_dlopen
20787 # Whether dlopen of programs is supported.
20788 dlopen_self=$enable_dlopen_self
20790 # Whether dlopen of statically linked programs is supported.
20791 dlopen_self_static=$enable_dlopen_self_static
20793 # Compiler flag to prevent dynamic linking.
20794 link_static_flag=$lt_lt_prog_compiler_static_RC
20796 # Compiler flag to turn off builtin functions.
20797 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20799 # Compiler flag to allow reflexive dlopens.
20800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20802 # Compiler flag to generate shared objects directly from archives.
20803 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20805 # Compiler flag to generate thread-safe objects.
20806 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20808 # Library versioning type.
20809 version_type=$version_type
20811 # Format of library name prefix.
20812 libname_spec=$lt_libname_spec
20814 # List of archive names. First name is the real one, the rest are links.
20815 # The last name is the one that the linker finds with -lNAME.
20816 library_names_spec=$lt_library_names_spec
20818 # The coded name of the library, if different from the real name.
20819 soname_spec=$lt_soname_spec
20821 # Commands used to build and install an old-style archive.
20823 old_archive_cmds=$lt_old_archive_cmds_RC
20824 old_postinstall_cmds=$lt_old_postinstall_cmds
20825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20827 # Create an old-style archive from a shared archive.
20828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20830 # Create a temporary old-style archive to link instead of a shared archive.
20831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20833 # Commands used to build and install a shared archive.
20834 archive_cmds=$lt_archive_cmds_RC
20835 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20836 postinstall_cmds=$lt_postinstall_cmds
20837 postuninstall_cmds=$lt_postuninstall_cmds
20839 # Commands used to build a loadable module (assumed same as above if empty)
20840 module_cmds=$lt_module_cmds_RC
20841 module_expsym_cmds=$lt_module_expsym_cmds_RC
20843 # Commands to strip libraries.
20844 old_striplib=$lt_old_striplib
20845 striplib=$lt_striplib
20847 # Dependencies to place before the objects being linked to create a
20849 predep_objects=$lt_predep_objects_RC
20851 # Dependencies to place after the objects being linked to create a
20853 postdep_objects=$lt_postdep_objects_RC
20855 # Dependencies to place before the objects being linked to create a
20857 predeps=$lt_predeps_RC
20859 # Dependencies to place after the objects being linked to create a
20861 postdeps=$lt_postdeps_RC
20863 # The library search path used internally by the compiler when linking
20864 # a shared library.
20865 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20867 # Method to check whether dependent libraries are shared objects.
20868 deplibs_check_method=$lt_deplibs_check_method
20870 # Command to use when deplibs_check_method == file_magic.
20871 file_magic_cmd=$lt_file_magic_cmd
20873 # Flag that allows shared libraries with undefined symbols to be built.
20874 allow_undefined_flag=$lt_allow_undefined_flag_RC
20876 # Flag that forces no undefined symbols.
20877 no_undefined_flag=$lt_no_undefined_flag_RC
20879 # Commands used to finish a libtool library installation in a directory.
20880 finish_cmds=$lt_finish_cmds
20882 # Same as above, but a single script fragment to be evaled but not shown.
20883 finish_eval=$lt_finish_eval
20885 # Take the output of nm and produce a listing of raw symbols and C names.
20886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20888 # Transform the output of nm in a proper C declaration
20889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20891 # Transform the output of nm in a C name address pair
20892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20894 # This is the shared library runtime path variable.
20895 runpath_var=$runpath_var
20897 # This is the shared library path variable.
20898 shlibpath_var=$shlibpath_var
20900 # Is shlibpath searched before the hard-coded library search path?
20901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20903 # How to hardcode a shared library path into an executable.
20904 hardcode_action=$hardcode_action_RC
20906 # Whether we should hardcode library paths into libraries.
20907 hardcode_into_libs=$hardcode_into_libs
20909 # Flag to hardcode \$libdir into a binary during linking.
20910 # This must work even if \$libdir does not exist.
20911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20913 # If ld is used when linking, flag to hardcode \$libdir into
20914 # a binary during linking. This must work even if \$libdir does
20916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20918 # Whether we need a single -rpath flag with a separated argument.
20919 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20922 # resulting binary.
20923 hardcode_direct=$hardcode_direct_RC
20925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20926 # resulting binary.
20927 hardcode_minus_L=$hardcode_minus_L_RC
20929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20930 # the resulting binary.
20931 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20933 # Set to yes if building a shared library automatically hardcodes DIR into the library
20934 # and all subsequent libraries and executables linked against it.
20935 hardcode_automatic=$hardcode_automatic_RC
20937 # Variables whose values should be saved in libtool wrapper scripts and
20938 # restored at relink time.
20939 variables_saved_for_relink="$variables_saved_for_relink"
20941 # Whether libtool must link a program against all its dependency libraries.
20942 link_all_deplibs=$link_all_deplibs_RC
20944 # Compile-time system search path for libraries
20945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20947 # Run-time system search path for libraries
20948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20950 # Fix the shell variable \$srcfile for the compiler.
20951 fix_srcfile_path=$lt_fix_srcfile_path
20953 # Set to yes if exported symbols are required.
20954 always_export_symbols=$always_export_symbols_RC
20956 # The commands to list exported symbols.
20957 export_symbols_cmds=$lt_export_symbols_cmds_RC
20959 # The commands to extract the exported symbol list from a shared archive.
20960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20962 # Symbols that should not be listed in the preloaded symbols.
20963 exclude_expsyms=$lt_exclude_expsyms_RC
20965 # Symbols that must always be exported.
20966 include_expsyms=$lt_include_expsyms_RC
20968 # ### END LIBTOOL TAG CONFIG: $tagname
20974 # If there is no Makefile yet, we rely on a make rule to execute
20975 # `config.status --recheck' to rerun these tests and create the
20976 # libtool script then.
20977 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20978 if test -f "$ltmain_in"; then
20979 test -f Makefile && make "$ltmain"
20985 ac_cpp='$CPP $CPPFLAGS'
20986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20995 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20996 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20997 { (exit 1); exit 1; }; }
21001 # Append the new tag name to the list of available tags.
21002 if test -n "$tagname" ; then
21003 available_tags="$available_tags $tagname"
21009 # Now substitute the updated list of available tags.
21010 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21011 mv "${ofile}T" "$ofile"
21015 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21016 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21017 { (exit 1); exit 1; }; }
21023 # This can be used to rebuild libtool when needed
21024 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21026 # Always use our own libtool.
21027 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21029 # Prevent multiple expansion
21050 if test "x$CC" != xcc; then
21051 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21052 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21054 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21055 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21057 set dummy $CC; ac_cc=`echo $2 |
21058 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21059 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21062 cat >conftest.$ac_ext <<_ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h. */
21077 # Make sure it works both with $CC and with simple cc.
21078 # We do the test twice because some compilers refuse to overwrite an
21079 # existing .o file with -o, though they will create one.
21080 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21082 if { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_try") 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); };
21101 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21102 if test "x$CC" != xcc; then
21103 # Test first that cc exists at all.
21104 if { ac_try='cc -c conftest.$ac_ext >&5'
21105 { (case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_try") 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
21114 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21116 if { (case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_try") 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } &&
21125 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_try") 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); };
21138 # cc exists but doesn't like -o.
21139 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21144 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21146 rm -f core conftest*
21149 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21150 { echo "$as_me:$LINENO: result: yes" >&5
21151 echo "${ECHO_T}yes" >&6; }
21153 { echo "$as_me:$LINENO: result: no" >&5
21154 echo "${ECHO_T}no" >&6; }
21156 cat >>confdefs.h <<\_ACEOF
21157 @%:@define NO_MINUS_C_MINUS_O 1
21162 # FIXME: we rely on the cache variable name because
21163 # there is no other way.
21165 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21166 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21167 # Losing compiler, so override with the script.
21168 # FIXME: It is wrong to rewrite CC.
21169 # But if we don't then we get into trouble of one sort or another.
21170 # A longer-term fix would be to have automake use am__CC in this case,
21171 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21172 CC="$am_aux_dir/compile $CC"
21176 if test "x$cross_compiling" = "xno"; then
21177 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21179 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21184 if test -n "$ac_tool_prefix"; then
21185 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21186 set dummy ${ac_tool_prefix}ar; ac_word=$2
21187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21189 if test "${ac_cv_prog_AR+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 if test -n "$AR"; then
21193 ac_cv_prog_AR="$AR" # Let the user override the test.
21195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21196 for as_dir in $PATH
21199 test -z "$as_dir" && as_dir=.
21200 for ac_exec_ext in '' $ac_executable_extensions; do
21201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21202 ac_cv_prog_AR="${ac_tool_prefix}ar"
21203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21213 if test -n "$AR"; then
21214 { echo "$as_me:$LINENO: result: $AR" >&5
21215 echo "${ECHO_T}$AR" >&6; }
21217 { echo "$as_me:$LINENO: result: no" >&5
21218 echo "${ECHO_T}no" >&6; }
21223 if test -z "$ac_cv_prog_AR"; then
21225 # Extract the first word of "ar", so it can be a program name with args.
21226 set dummy ar; ac_word=$2
21227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21229 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 if test -n "$ac_ct_AR"; then
21233 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21236 for as_dir in $PATH
21239 test -z "$as_dir" && as_dir=.
21240 for ac_exec_ext in '' $ac_executable_extensions; do
21241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21242 ac_cv_prog_ac_ct_AR="ar"
21243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21253 if test -n "$ac_ct_AR"; then
21254 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21255 echo "${ECHO_T}$ac_ct_AR" >&6; }
21257 { echo "$as_me:$LINENO: result: no" >&5
21258 echo "${ECHO_T}no" >&6; }
21261 if test "x$ac_ct_AR" = x; then
21264 case $cross_compiling:$ac_tool_warned in
21266 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21267 whose name does not start with the host triplet. If you think this
21268 configuration is useful to you, please write to autoconf@gnu.org." >&5
21269 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21270 whose name does not start with the host triplet. If you think this
21271 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21272 ac_tool_warned=yes ;;
21277 AR="$ac_cv_prog_AR"
21280 if test -n "$ac_tool_prefix"; then
21281 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21282 set dummy ${ac_tool_prefix}ld; ac_word=$2
21283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21285 if test "${ac_cv_prog_LD+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 if test -n "$LD"; then
21289 ac_cv_prog_LD="$LD" # Let the user override the test.
21291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21292 for as_dir in $PATH
21295 test -z "$as_dir" && as_dir=.
21296 for ac_exec_ext in '' $ac_executable_extensions; do
21297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21298 ac_cv_prog_LD="${ac_tool_prefix}ld"
21299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21309 if test -n "$LD"; then
21310 { echo "$as_me:$LINENO: result: $LD" >&5
21311 echo "${ECHO_T}$LD" >&6; }
21313 { echo "$as_me:$LINENO: result: no" >&5
21314 echo "${ECHO_T}no" >&6; }
21319 if test -z "$ac_cv_prog_LD"; then
21321 # Extract the first word of "ld", so it can be a program name with args.
21322 set dummy ld; ac_word=$2
21323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21325 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 if test -n "$ac_ct_LD"; then
21329 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21332 for as_dir in $PATH
21335 test -z "$as_dir" && as_dir=.
21336 for ac_exec_ext in '' $ac_executable_extensions; do
21337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21338 ac_cv_prog_ac_ct_LD="ld"
21339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21348 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21349 if test -n "$ac_ct_LD"; then
21350 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21351 echo "${ECHO_T}$ac_ct_LD" >&6; }
21353 { echo "$as_me:$LINENO: result: no" >&5
21354 echo "${ECHO_T}no" >&6; }
21357 if test "x$ac_ct_LD" = x; then
21360 case $cross_compiling:$ac_tool_warned in
21362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21363 whose name does not start with the host triplet. If you think this
21364 configuration is useful to you, please write to autoconf@gnu.org." >&5
21365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21366 whose name does not start with the host triplet. If you think this
21367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21368 ac_tool_warned=yes ;;
21373 LD="$ac_cv_prog_LD"
21377 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21379 if test "${ac_cv_header_stdc+set}" = set; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 #include <stdlib.h>
21389 #include <stdarg.h>
21390 #include <string.h>
21401 rm -f conftest.$ac_objext
21402 if { (ac_try="$ac_compile"
21403 case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_compile") 2>conftest.er1
21410 grep -v '^ *+' conftest.er1 >conftest.err
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } && {
21415 test -z "$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21417 } && test -s conftest.$ac_objext; then
21418 ac_cv_header_stdc=yes
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21423 ac_cv_header_stdc=no
21426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21428 if test $ac_cv_header_stdc = yes; then
21429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21430 cat >conftest.$ac_ext <<_ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 #include <string.h>
21439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21440 $EGREP "memchr" >/dev/null 2>&1; then
21443 ac_cv_header_stdc=no
21449 if test $ac_cv_header_stdc = yes; then
21450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21451 cat >conftest.$ac_ext <<_ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21457 #include <stdlib.h>
21460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21461 $EGREP "free" >/dev/null 2>&1; then
21464 ac_cv_header_stdc=no
21470 if test $ac_cv_header_stdc = yes; then
21471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21472 if test "$cross_compiling" = yes; then
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21482 #include <stdlib.h>
21483 #if ((' ' & 0x0FF) == 0x020)
21484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21487 # define ISLOWER(c) \
21488 (('a' <= (c) && (c) <= 'i') \
21489 || ('j' <= (c) && (c) <= 'r') \
21490 || ('s' <= (c) && (c) <= 'z'))
21491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21499 for (i = 0; i < 256; i++)
21500 if (XOR (islower (i), ISLOWER (i))
21501 || toupper (i) != TOUPPER (i))
21506 rm -f conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_link") 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21517 { (case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522 (eval "$ac_try") 2>&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21528 echo "$as_me: program exited with status $ac_status" >&5
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 ( exit $ac_status )
21533 ac_cv_header_stdc=no
21535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21541 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21542 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21543 if test $ac_cv_header_stdc = yes; then
21545 cat >>confdefs.h <<\_ACEOF
21546 @%:@define STDC_HEADERS 1
21552 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21553 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21554 if test "${knfsd_cv_glibc2+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 cat >conftest.$ac_ext <<_ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21564 #include <features.h>
21565 #if !defined(__GLIBC__)
21570 if { (ac_try="$ac_cpp conftest.$ac_ext"
21571 case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21578 grep -v '^ *+' conftest.er1 >conftest.err
21580 cat conftest.err >&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } >/dev/null && {
21583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21584 test ! -s conftest.err
21586 knfsd_cv_glibc2=yes
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21594 rm -f conftest.err conftest.$ac_ext
21597 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21598 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21599 if test $knfsd_cv_glibc2 = yes; then
21600 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21601 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21605 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21606 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21607 if test "${knfsd_cv_bsd_signals+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 if test "$cross_compiling" = yes; then
21613 *linux*) knfsd_cv_bsd_signals=no;;
21614 *bsd*) knfsd_cv_bsd_signals=yes;;
21615 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21616 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21617 { (exit 1); exit 1; }; };;
21621 cat >conftest.$ac_ext <<_ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21628 #include <signal.h>
21629 #include <unistd.h>
21630 #include <sys/wait.h>
21632 static int counter = 0;
21633 static RETSIGTYPE handler(int num) { counter++; }
21638 if ((s = fork()) < 0) return 1;
21640 if (wait(&s) < 0) return 1;
21641 return WIFSIGNALED(s)? 1 : 0;
21644 signal(SIGHUP, handler);
21645 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21646 return (counter == 2)? 0 : 1;
21650 rm -f conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_link") 2>&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21661 { (case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666 (eval "$ac_try") 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 knfsd_cv_bsd_signals=yes
21672 echo "$as_me: program exited with status $ac_status" >&5
21673 echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21676 ( exit $ac_status )
21677 knfsd_cv_bsd_signals=no
21679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21684 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21685 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21686 test $knfsd_cv_bsd_signals = yes &&
21687 cat >>confdefs.h <<\_ACEOF
21688 @%:@define HAVE_BSD_SIGNALS 1
21693 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21694 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21695 if test "${ac_cv_func_gethostbyname+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21698 cat >conftest.$ac_ext <<_ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21706 #define gethostbyname innocuous_gethostbyname
21708 /* System header to define __stub macros and hopefully few prototypes,
21709 which can conflict with char gethostbyname (); below.
21710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21711 <limits.h> exists even on freestanding compilers. */
21714 # include <limits.h>
21716 # include <assert.h>
21719 #undef gethostbyname
21721 /* Override any GCC internal prototype to avoid an error.
21722 Use char because int might match the return type of a GCC
21723 builtin and then its argument prototype would still apply. */
21727 char gethostbyname ();
21728 /* The GNU C library defines this for functions which it implements
21729 to always fail with ENOSYS. Some functions are actually named
21730 something starting with __ and the normal name is an alias. */
21731 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21738 return gethostbyname ();
21743 rm -f conftest.$ac_objext conftest$ac_exeext
21744 if { (ac_try="$ac_link"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750 (eval "$ac_link") 2>conftest.er1
21752 grep -v '^ *+' conftest.er1 >conftest.err
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } && {
21757 test -z "$ac_c_werror_flag" ||
21758 test ! -s conftest.err
21759 } && test -s conftest$ac_exeext &&
21760 $as_test_x conftest$ac_exeext; then
21761 ac_cv_func_gethostbyname=yes
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_cv_func_gethostbyname=no
21769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21770 conftest$ac_exeext conftest.$ac_ext
21772 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21773 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21774 if test $ac_cv_func_gethostbyname = yes; then
21777 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21778 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21779 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 ac_check_lib_save_LIBS=$LIBS
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21791 /* Override any GCC internal prototype to avoid an error.
21792 Use char because int might match the return type of a GCC
21793 builtin and then its argument prototype would still apply. */
21797 char gethostbyname ();
21801 return gethostbyname ();
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_link") 2>conftest.er1
21815 grep -v '^ *+' conftest.er1 >conftest.err
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } && {
21820 test -z "$ac_c_werror_flag" ||
21821 test ! -s conftest.err
21822 } && test -s conftest$ac_exeext &&
21823 $as_test_x conftest$ac_exeext; then
21824 ac_cv_lib_nsl_gethostbyname=yes
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_cv_lib_nsl_gethostbyname=no
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21834 LIBS=$ac_check_lib_save_LIBS
21836 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21837 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21838 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21846 { echo "$as_me:$LINENO: checking for connect" >&5
21847 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21848 if test "${ac_cv_func_connect+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 cat >conftest.$ac_ext <<_ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21857 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21859 #define connect innocuous_connect
21861 /* System header to define __stub macros and hopefully few prototypes,
21862 which can conflict with char connect (); below.
21863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21864 <limits.h> exists even on freestanding compilers. */
21867 # include <limits.h>
21869 # include <assert.h>
21874 /* Override any GCC internal prototype to avoid an error.
21875 Use char because int might match the return type of a GCC
21876 builtin and then its argument prototype would still apply. */
21881 /* The GNU C library defines this for functions which it implements
21882 to always fail with ENOSYS. Some functions are actually named
21883 something starting with __ and the normal name is an alias. */
21884 #if defined __stub_connect || defined __stub___connect
21896 rm -f conftest.$ac_objext conftest$ac_exeext
21897 if { (ac_try="$ac_link"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_link") 2>conftest.er1
21905 grep -v '^ *+' conftest.er1 >conftest.err
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } && {
21910 test -z "$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21912 } && test -s conftest$ac_exeext &&
21913 $as_test_x conftest$ac_exeext; then
21914 ac_cv_func_connect=yes
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21919 ac_cv_func_connect=no
21922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21923 conftest$ac_exeext conftest.$ac_ext
21925 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21926 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21927 if test $ac_cv_func_connect = yes; then
21930 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21931 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21932 if test "${ac_cv_lib_socket_connect+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21935 ac_check_lib_save_LIBS=$LIBS
21936 LIBS="-lsocket $LIBNSL $LIBS"
21937 cat >conftest.$ac_ext <<_ACEOF
21940 cat confdefs.h >>conftest.$ac_ext
21941 cat >>conftest.$ac_ext <<_ACEOF
21942 /* end confdefs.h. */
21944 /* Override any GCC internal prototype to avoid an error.
21945 Use char because int might match the return type of a GCC
21946 builtin and then its argument prototype would still apply. */
21959 rm -f conftest.$ac_objext conftest$ac_exeext
21960 if { (ac_try="$ac_link"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_link") 2>conftest.er1
21968 grep -v '^ *+' conftest.er1 >conftest.err
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest$ac_exeext &&
21976 $as_test_x conftest$ac_exeext; then
21977 ac_cv_lib_socket_connect=yes
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21982 ac_cv_lib_socket_connect=no
21985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21986 conftest$ac_exeext conftest.$ac_ext
21987 LIBS=$ac_check_lib_save_LIBS
21989 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21990 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21991 if test $ac_cv_lib_socket_connect = yes; then
21992 LIBSOCKET="-lsocket"
21994 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21995 echo "$as_me: error: Function 'socket' not found." >&2;}
21996 { (exit 1); exit 1; }; }
22002 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22003 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22004 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 ac_check_lib_save_LIBS=$LIBS
22008 LIBS="-lcrypt $LIBS"
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 /* Override any GCC internal prototype to avoid an error.
22017 Use char because int might match the return type of a GCC
22018 builtin and then its argument prototype would still apply. */
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_link") 2>conftest.er1
22040 grep -v '^ *+' conftest.er1 >conftest.err
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest$ac_exeext &&
22048 $as_test_x conftest$ac_exeext; then
22049 ac_cv_lib_crypt_crypt=yes
22051 echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ac_cv_lib_crypt_crypt=no
22057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22058 conftest$ac_exeext conftest.$ac_ext
22059 LIBS=$ac_check_lib_save_LIBS
22061 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22062 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22063 if test $ac_cv_lib_crypt_crypt = yes; then
22067 if test "$enable_nfsv4" = yes; then
22068 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22069 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22070 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22071 echo $ECHO_N "(cached) $ECHO_C" >&6
22073 ac_check_lib_save_LIBS=$LIBS
22074 LIBS="-levent $LIBS"
22075 cat >conftest.$ac_ext <<_ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22082 /* Override any GCC internal prototype to avoid an error.
22083 Use char because int might match the return type of a GCC
22084 builtin and then its argument prototype would still apply. */
22088 char event_dispatch ();
22092 return event_dispatch ();
22097 rm -f conftest.$ac_objext conftest$ac_exeext
22098 if { (ac_try="$ac_link"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_link") 2>conftest.er1
22106 grep -v '^ *+' conftest.er1 >conftest.err
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && {
22111 test -z "$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 } && test -s conftest$ac_exeext &&
22114 $as_test_x conftest$ac_exeext; then
22115 ac_cv_lib_event_event_dispatch=yes
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_cv_lib_event_event_dispatch=no
22123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22124 conftest$ac_exeext conftest.$ac_ext
22125 LIBS=$ac_check_lib_save_LIBS
22127 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22128 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22129 if test $ac_cv_lib_event_event_dispatch = yes; then
22132 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22133 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22134 { (exit 1); exit 1; }; }
22137 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22138 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22139 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22142 ac_check_lib_save_LIBS=$LIBS
22143 LIBS="-lnfsidmap $LIBS"
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22151 /* Override any GCC internal prototype to avoid an error.
22152 Use char because int might match the return type of a GCC
22153 builtin and then its argument prototype would still apply. */
22157 char nfs4_init_name_mapping ();
22161 return nfs4_init_name_mapping ();
22166 rm -f conftest.$ac_objext conftest$ac_exeext
22167 if { (ac_try="$ac_link"
22168 case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_link") 2>conftest.er1
22175 grep -v '^ *+' conftest.er1 >conftest.err
22177 cat conftest.err >&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } && {
22180 test -z "$ac_c_werror_flag" ||
22181 test ! -s conftest.err
22182 } && test -s conftest$ac_exeext &&
22183 $as_test_x conftest$ac_exeext; then
22184 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22189 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22193 conftest$ac_exeext conftest.$ac_ext
22194 LIBS=$ac_check_lib_save_LIBS
22196 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22197 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22198 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22201 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22202 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22203 { (exit 1); exit 1; }; }
22207 for ac_header in event.h
22209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 ac_res=`eval echo '${'$as_ac_Header'}'`
22217 { echo "$as_me:$LINENO: result: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22220 # Is the header compilable?
22221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22223 cat >conftest.$ac_ext <<_ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22229 $ac_includes_default
22230 @%:@include <$ac_header>
22232 rm -f conftest.$ac_objext
22233 if { (ac_try="$ac_compile"
22234 case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_compile") 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
22249 ac_header_compiler=yes
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ac_header_compiler=no
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22259 echo "${ECHO_T}$ac_header_compiler" >&6; }
22261 # Is the header present?
22262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22264 cat >conftest.$ac_ext <<_ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h. */
22270 @%:@include <$ac_header>
22272 if { (ac_try="$ac_cpp conftest.$ac_ext"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22280 grep -v '^ *+' conftest.er1 >conftest.err
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } >/dev/null && {
22285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22288 ac_header_preproc=yes
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 ac_header_preproc=no
22296 rm -f conftest.err conftest.$ac_ext
22297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22298 echo "${ECHO_T}$ac_header_preproc" >&6; }
22300 # So? What about this header?
22301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22307 ac_header_preproc=yes
22310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22323 @%:@@%:@ ------------------------------- @%:@@%:@
22324 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22325 @%:@@%:@ ------------------------------- @%:@@%:@
22327 ) | sed "s/^/$as_me: WARNING: /" >&2
22330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22335 eval "$as_ac_Header=\$ac_header_preproc"
22337 ac_res=`eval echo '${'$as_ac_Header'}'`
22338 { echo "$as_me:$LINENO: result: $ac_res" >&5
22339 echo "${ECHO_T}$ac_res" >&6; }
22342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22343 cat >>confdefs.h <<_ACEOF
22344 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22348 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22349 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22350 { (exit 1); exit 1; }; }
22356 for ac_header in nfsidmap.h
22358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 ac_res=`eval echo '${'$as_ac_Header'}'`
22366 { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22369 # Is the header compilable?
22370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22372 cat >conftest.$ac_ext <<_ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h. */
22378 $ac_includes_default
22379 @%:@include <$ac_header>
22381 rm -f conftest.$ac_objext
22382 if { (ac_try="$ac_compile"
22383 case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388 (eval "$ac_compile") 2>conftest.er1
22390 grep -v '^ *+' conftest.er1 >conftest.err
22392 cat conftest.err >&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } && {
22395 test -z "$ac_c_werror_flag" ||
22396 test ! -s conftest.err
22397 } && test -s conftest.$ac_objext; then
22398 ac_header_compiler=yes
22400 echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22403 ac_header_compiler=no
22406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22408 echo "${ECHO_T}$ac_header_compiler" >&6; }
22410 # Is the header present?
22411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22413 cat >conftest.$ac_ext <<_ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419 @%:@include <$ac_header>
22421 if { (ac_try="$ac_cpp conftest.$ac_ext"
22422 case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22429 grep -v '^ *+' conftest.er1 >conftest.err
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } >/dev/null && {
22434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22437 ac_header_preproc=yes
22439 echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22442 ac_header_preproc=no
22445 rm -f conftest.err conftest.$ac_ext
22446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22447 echo "${ECHO_T}$ac_header_preproc" >&6; }
22449 # So? What about this header?
22450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22456 ac_header_preproc=yes
22459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22472 @%:@@%:@ ------------------------------- @%:@@%:@
22473 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22474 @%:@@%:@ ------------------------------- @%:@@%:@
22476 ) | sed "s/^/$as_me: WARNING: /" >&2
22479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 eval "$as_ac_Header=\$ac_header_preproc"
22486 ac_res=`eval echo '${'$as_ac_Header'}'`
22487 { echo "$as_me:$LINENO: result: $ac_res" >&5
22488 echo "${ECHO_T}$ac_res" >&6; }
22491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22492 cat >>confdefs.h <<_ACEOF
22493 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22497 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22498 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22499 { (exit 1); exit 1; }; }
22504 if test "$enable_gss" = yes; then
22507 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22508 if test -n "$ac_tool_prefix"; then
22509 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22510 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22513 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22516 case $PKG_CONFIG in
22518 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22522 for as_dir in $PATH
22525 test -z "$as_dir" && as_dir=.
22526 for ac_exec_ext in '' $ac_executable_extensions; do
22527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22528 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22539 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22540 if test -n "$PKG_CONFIG"; then
22541 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22542 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22544 { echo "$as_me:$LINENO: result: no" >&5
22545 echo "${ECHO_T}no" >&6; }
22550 if test -z "$ac_cv_path_PKG_CONFIG"; then
22551 ac_pt_PKG_CONFIG=$PKG_CONFIG
22552 # Extract the first word of "pkg-config", so it can be a program name with args.
22553 set dummy pkg-config; ac_word=$2
22554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22556 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22559 case $ac_pt_PKG_CONFIG in
22561 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22565 for as_dir in $PATH
22568 test -z "$as_dir" && as_dir=.
22569 for ac_exec_ext in '' $ac_executable_extensions; do
22570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22571 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22582 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22583 if test -n "$ac_pt_PKG_CONFIG"; then
22584 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22585 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22587 { echo "$as_me:$LINENO: result: no" >&5
22588 echo "${ECHO_T}no" >&6; }
22591 if test "x$ac_pt_PKG_CONFIG" = x; then
22594 case $cross_compiling:$ac_tool_warned in
22596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22597 whose name does not start with the host triplet. If you think this
22598 configuration is useful to you, please write to autoconf@gnu.org." >&5
22599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22600 whose name does not start with the host triplet. If you think this
22601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22602 ac_tool_warned=yes ;;
22604 PKG_CONFIG=$ac_pt_PKG_CONFIG
22607 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22611 if test -n "$PKG_CONFIG"; then
22612 _pkg_min_version=0.9.0
22613 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22614 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22615 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22616 { echo "$as_me:$LINENO: result: yes" >&5
22617 echo "${ECHO_T}yes" >&6; }
22619 { echo "$as_me:$LINENO: result: no" >&5
22620 echo "${ECHO_T}no" >&6; }
22627 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22628 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22630 if test -n "$PKG_CONFIG"; then
22631 if test -n "$RPCSECGSS_CFLAGS"; then
22632 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22634 if test -n "$PKG_CONFIG" && \
22635 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22636 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; then
22640 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22648 if test -n "$PKG_CONFIG"; then
22649 if test -n "$RPCSECGSS_LIBS"; then
22650 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22652 if test -n "$PKG_CONFIG" && \
22653 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22654 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); }; then
22658 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22669 if test $pkg_failed = yes; then
22671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22672 _pkg_short_errors_supported=yes
22674 _pkg_short_errors_supported=no
22676 if test $_pkg_short_errors_supported = yes; then
22677 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22679 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22681 # Put the nasty error message in config.log where it belongs
22682 echo "$RPCSECGSS_PKG_ERRORS" >&5
22684 { echo "$as_me:$LINENO: result: no" >&5
22685 echo "${ECHO_T}no" >&6; }
22686 { { 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
22687 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;}
22688 { (exit 1); exit 1; }; }
22691 elif test $pkg_failed = untried; then
22692 { { 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
22693 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;}
22694 { (exit 1); exit 1; }; }
22698 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22699 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22700 { echo "$as_me:$LINENO: result: yes" >&5
22701 echo "${ECHO_T}yes" >&6; }
22706 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22707 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22709 if test -n "$PKG_CONFIG"; then
22710 if test -n "$GSSGLUE_CFLAGS"; then
22711 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22713 if test -n "$PKG_CONFIG" && \
22714 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22715 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); }; then
22719 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22727 if test -n "$PKG_CONFIG"; then
22728 if test -n "$GSSGLUE_LIBS"; then
22729 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22731 if test -n "$PKG_CONFIG" && \
22732 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22733 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; then
22737 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22748 if test $pkg_failed = yes; then
22750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22751 _pkg_short_errors_supported=yes
22753 _pkg_short_errors_supported=no
22755 if test $_pkg_short_errors_supported = yes; then
22756 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22758 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22760 # Put the nasty error message in config.log where it belongs
22761 echo "$GSSGLUE_PKG_ERRORS" >&5
22763 { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22765 $GSSGLUE_PKG_ERRORS
22767 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22768 installed software in a non-standard prefix.
22770 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22771 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22772 See the pkg-config man page for more details.
22774 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22776 $GSSGLUE_PKG_ERRORS
22778 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22779 installed software in a non-standard prefix.
22781 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22782 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22783 See the pkg-config man page for more details.
22785 { (exit 1); exit 1; }; }
22786 elif test $pkg_failed = untried; then
22787 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22788 is in your PATH or set the PKG_CONFIG environment variable to the full
22789 path to pkg-config.
22791 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22792 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22793 See the pkg-config man page for more details.
22795 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22796 See \`config.log' for more details." >&5
22797 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22798 is in your PATH or set the PKG_CONFIG environment variable to the full
22799 path to pkg-config.
22801 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22802 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22803 See the pkg-config man page for more details.
22805 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22806 See \`config.log' for more details." >&2;}
22807 { (exit 1); exit 1; }; }
22809 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22810 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22811 { echo "$as_me:$LINENO: result: yes" >&5
22812 echo "${ECHO_T}yes" >&6; }
22818 if test "$knfsd_cv_glibc2" = no; then
22819 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22820 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22821 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22824 ac_check_lib_save_LIBS=$LIBS
22826 cat >conftest.$ac_ext <<_ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22833 /* Override any GCC internal prototype to avoid an error.
22834 Use char because int might match the return type of a GCC
22835 builtin and then its argument prototype would still apply. */
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_link") 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest$ac_exeext &&
22865 $as_test_x conftest$ac_exeext; then
22866 ac_cv_lib_bsd_daemon=yes
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 ac_cv_lib_bsd_daemon=no
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875 conftest$ac_exeext conftest.$ac_ext
22876 LIBS=$ac_check_lib_save_LIBS
22878 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22879 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22880 if test $ac_cv_lib_bsd_daemon = yes; then
22886 if test "$choose_blkid" != no; then
22887 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22888 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22889 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 ac_check_lib_save_LIBS=$LIBS
22893 LIBS="-lblkid $LIBS"
22894 cat >conftest.$ac_ext <<_ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22901 /* Override any GCC internal prototype to avoid an error.
22902 Use char because int might match the return type of a GCC
22903 builtin and then its argument prototype would still apply. */
22907 char blkid_get_library_version ();
22911 return blkid_get_library_version ();
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_link") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1 >conftest.err
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest$ac_exeext &&
22933 $as_test_x conftest$ac_exeext; then
22934 ac_cv_lib_blkid_blkid_get_library_version=yes
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ac_cv_lib_blkid_blkid_get_library_version=no
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943 conftest$ac_exeext conftest.$ac_ext
22944 LIBS=$ac_check_lib_save_LIBS
22946 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22947 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22948 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22951 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22952 echo "$as_me: error: libblkid needed" >&2;}
22953 { (exit 1); exit 1; }; }
22956 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22957 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22958 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22959 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22960 echo $ECHO_N "(cached) $ECHO_C" >&6
22962 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22963 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22965 # Is the header compilable?
22966 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22967 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22968 cat >conftest.$ac_ext <<_ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h. */
22974 $ac_includes_default
22975 @%:@include <blkid/blkid.h>
22977 rm -f conftest.$ac_objext
22978 if { (ac_try="$ac_compile"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_compile") 2>conftest.er1
22986 grep -v '^ *+' conftest.er1 >conftest.err
22988 cat conftest.err >&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } && {
22991 test -z "$ac_c_werror_flag" ||
22992 test ! -s conftest.err
22993 } && test -s conftest.$ac_objext; then
22994 ac_header_compiler=yes
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 ac_header_compiler=no
23002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23004 echo "${ECHO_T}$ac_header_compiler" >&6; }
23006 # Is the header present?
23007 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23008 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23009 cat >conftest.$ac_ext <<_ACEOF
23012 cat confdefs.h >>conftest.$ac_ext
23013 cat >>conftest.$ac_ext <<_ACEOF
23014 /* end confdefs.h. */
23015 @%:@include <blkid/blkid.h>
23017 if { (ac_try="$ac_cpp conftest.$ac_ext"
23018 case "(($ac_try" in
23019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020 *) ac_try_echo=$ac_try;;
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23025 grep -v '^ *+' conftest.er1 >conftest.err
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } >/dev/null && {
23030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23031 test ! -s conftest.err
23033 ac_header_preproc=yes
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23038 ac_header_preproc=no
23041 rm -f conftest.err conftest.$ac_ext
23042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23043 echo "${ECHO_T}$ac_header_preproc" >&6; }
23045 # So? What about this header?
23046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23048 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23049 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23050 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23051 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23052 ac_header_preproc=yes
23055 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23056 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23057 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
23058 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23060 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
23062 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23063 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23064 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23065 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23066 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23068 @%:@@%:@ ------------------------------- @%:@@%:@
23069 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23070 @%:@@%:@ ------------------------------- @%:@@%:@
23072 ) | sed "s/^/$as_me: WARNING: /" >&2
23075 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23076 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23077 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 ac_cv_header_blkid_blkid_h=$ac_header_preproc
23082 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23083 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23086 if test $ac_cv_header_blkid_blkid_h = yes; then
23089 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23090 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23091 { (exit 1); exit 1; }; }
23096 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23097 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23098 if test "${libblkid_is_recent+set}" = set; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23104 if test "$cross_compiling" = yes; then
23105 libblkid_is_recent=unknown
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23114 #include <blkid/blkid.h>
23117 int vers = blkid_get_library_version(0, 0);
23118 return vers >= 140 ? 0 : 1;
23122 rm -f conftest$ac_exeext
23123 if { (ac_try="$ac_link"
23124 case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_link") 2>&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23133 { (case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_try") 2>&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 libblkid_is_recent=yes
23144 echo "$as_me: program exited with status $ac_status" >&5
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 ( exit $ac_status )
23149 libblkid_is_recent=no
23151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23158 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23159 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23161 if test $choose_blkid = yes; then
23163 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23164 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23166 if test $libblkid_is_recent = yes
23169 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23170 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23174 cat >>confdefs.h <<_ACEOF
23175 @%:@define USE_BLKID $use_blkid
23184 if test "$enable_gss" = yes; then
23186 for ac_header in nfsidmap.h
23188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23195 ac_res=`eval echo '${'$as_ac_Header'}'`
23196 { echo "$as_me:$LINENO: result: $ac_res" >&5
23197 echo "${ECHO_T}$ac_res" >&6; }
23199 # Is the header compilable?
23200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23208 $ac_includes_default
23209 @%:@include <$ac_header>
23211 rm -f conftest.$ac_objext
23212 if { (ac_try="$ac_compile"
23213 case "(($ac_try" in
23214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215 *) ac_try_echo=$ac_try;;
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_header_compiler=yes
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_header_compiler=no
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23238 echo "${ECHO_T}$ac_header_compiler" >&6; }
23240 # Is the header present?
23241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 @%:@include <$ac_header>
23251 if { (ac_try="$ac_cpp conftest.$ac_ext"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23259 grep -v '^ *+' conftest.er1 >conftest.err
23261 cat conftest.err >&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } >/dev/null && {
23264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23267 ac_header_preproc=yes
23269 echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23272 ac_header_preproc=no
23275 rm -f conftest.err conftest.$ac_ext
23276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23277 echo "${ECHO_T}$ac_header_preproc" >&6; }
23279 # So? What about this header?
23280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23286 ac_header_preproc=yes
23289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23302 @%:@@%:@ ------------------------------- @%:@@%:@
23303 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23304 @%:@@%:@ ------------------------------- @%:@@%:@
23306 ) | sed "s/^/$as_me: WARNING: /" >&2
23309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 eval "$as_ac_Header=\$ac_header_preproc"
23316 ac_res=`eval echo '${'$as_ac_Header'}'`
23317 { echo "$as_me:$LINENO: result: $ac_res" >&5
23318 echo "${ECHO_T}$ac_res" >&6; }
23321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23322 cat >>confdefs.h <<_ACEOF
23323 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23327 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23328 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23329 { (exit 1); exit 1; }; }
23335 for ac_header in spkm3.h
23337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23342 echo $ECHO_N "(cached) $ECHO_C" >&6
23344 ac_res=`eval echo '${'$as_ac_Header'}'`
23345 { echo "$as_me:$LINENO: result: $ac_res" >&5
23346 echo "${ECHO_T}$ac_res" >&6; }
23348 # Is the header compilable?
23349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23351 cat >conftest.$ac_ext <<_ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 $ac_includes_default
23358 @%:@include <$ac_header>
23360 rm -f conftest.$ac_objext
23361 if { (ac_try="$ac_compile"
23362 case "(($ac_try" in
23363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364 *) ac_try_echo=$ac_try;;
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367 (eval "$ac_compile") 2>conftest.er1
23369 grep -v '^ *+' conftest.er1 >conftest.err
23371 cat conftest.err >&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } && {
23374 test -z "$ac_c_werror_flag" ||
23375 test ! -s conftest.err
23376 } && test -s conftest.$ac_objext; then
23377 ac_header_compiler=yes
23379 echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ac_header_compiler=no
23385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23387 echo "${ECHO_T}$ac_header_compiler" >&6; }
23389 # Is the header present?
23390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23392 cat >conftest.$ac_ext <<_ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 @%:@include <$ac_header>
23400 if { (ac_try="$ac_cpp conftest.$ac_ext"
23401 case "(($ac_try" in
23402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403 *) ac_try_echo=$ac_try;;
23405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23408 grep -v '^ *+' conftest.er1 >conftest.err
23410 cat conftest.err >&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } >/dev/null && {
23413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23414 test ! -s conftest.err
23416 ac_header_preproc=yes
23418 echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23421 ac_header_preproc=no
23424 rm -f conftest.err conftest.$ac_ext
23425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23426 echo "${ECHO_T}$ac_header_preproc" >&6; }
23428 # So? What about this header?
23429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23435 ac_header_preproc=yes
23438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23451 @%:@@%:@ ------------------------------- @%:@@%:@
23452 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23453 @%:@@%:@ ------------------------------- @%:@@%:@
23455 ) | sed "s/^/$as_me: WARNING: /" >&2
23458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23463 eval "$as_ac_Header=\$ac_header_preproc"
23465 ac_res=`eval echo '${'$as_ac_Header'}'`
23466 { echo "$as_me:$LINENO: result: $ac_res" >&5
23467 echo "${ECHO_T}$ac_res" >&6; }
23470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23471 cat >>confdefs.h <<_ACEOF
23472 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23476 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23477 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23482 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23483 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23484 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 ac_check_lib_save_LIBS=$LIBS
23488 LIBS="-lnfsidmap $LIBS"
23489 cat >conftest.$ac_ext <<_ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23496 /* Override any GCC internal prototype to avoid an error.
23497 Use char because int might match the return type of a GCC
23498 builtin and then its argument prototype would still apply. */
23502 char nfs4_set_debug ();
23506 return nfs4_set_debug ();
23511 rm -f conftest.$ac_objext conftest$ac_exeext
23512 if { (ac_try="$ac_link"
23513 case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_link") 2>conftest.er1
23520 grep -v '^ *+' conftest.er1 >conftest.err
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } && {
23525 test -z "$ac_c_werror_flag" ||
23526 test ! -s conftest.err
23527 } && test -s conftest$ac_exeext &&
23528 $as_test_x conftest$ac_exeext; then
23529 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23538 conftest$ac_exeext conftest.$ac_ext
23539 LIBS=$ac_check_lib_save_LIBS
23541 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23542 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23543 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23545 cat >>confdefs.h <<\_ACEOF
23546 @%:@define HAVE_NFS4_SET_DEBUG 1
23553 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23554 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23556 # Check whether --with-krb5 was given.
23557 if test "${with_krb5+set}" = set; then
23558 withval=$with_krb5; case "$withval" in
23563 krb5_with="$withval"
23570 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23571 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23573 if test -f $dir/bin/krb5-config; then
23574 K5CONFIG=$dir/bin/krb5-config
23575 elif test -f "/usr/kerberos/bin/krb5-config"; then
23576 K5CONFIG="/usr/kerberos/bin/krb5-config"
23577 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23578 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23580 if test "$K5CONFIG" != ""; then
23581 KRBCFLAGS=`$K5CONFIG --cflags`
23582 KRBLIBS=`$K5CONFIG --libs gssapi`
23583 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23585 cat >>confdefs.h <<_ACEOF
23586 @%:@define KRB5_VERSION $K5VERS
23589 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23590 \( -f $dir/lib/libgssapi_krb5.a -o \
23591 -f $dir/lib64/libgssapi_krb5.a -o \
23592 -f $dir/lib64/libgssapi_krb5.so -o \
23593 -f $dir/lib/libgssapi_krb5.so \) ; then
23595 cat >>confdefs.h <<\_ACEOF
23596 @%:@define HAVE_KRB5 1
23600 if test $K5VERS -le 131; then
23602 cat >>confdefs.h <<\_ACEOF
23603 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
23607 gssapi_lib=gssapi_krb5
23609 elif test \( -f $dir/include/heim_err.h -o\
23610 -f $dir/include/heimdal/heim_err.h \) -a \
23611 -f $dir/lib/libroken.a; then
23613 cat >>confdefs.h <<\_ACEOF
23614 @%:@define HAVE_HEIMDAL 1
23623 if test "x$KRBDIR" = "x"; then
23624 if test "x$krb5_with" = "x"; then
23625 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23626 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23627 { (exit 1); exit 1; }; }
23629 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23630 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23631 { (exit 1); exit 1; }; }
23634 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23635 echo "${ECHO_T}$KRBDIR" >&6; }
23637 echo "The current KRBDIR is $KRBDIR"
23638 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23639 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23641 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23644 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23647 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23648 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23649 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23650 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23653 ac_check_lib_save_LIBS=$LIBS
23654 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23662 /* Override any GCC internal prototype to avoid an error.
23663 Use char because int might match the return type of a GCC
23664 builtin and then its argument prototype would still apply. */
23668 char gss_krb5_export_lucid_sec_context ();
23672 return gss_krb5_export_lucid_sec_context ();
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (ac_try="$ac_link"
23679 case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_link") 2>conftest.er1
23686 grep -v '^ *+' conftest.er1 >conftest.err
23688 cat conftest.err >&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && {
23691 test -z "$ac_c_werror_flag" ||
23692 test ! -s conftest.err
23693 } && test -s conftest$ac_exeext &&
23694 $as_test_x conftest$ac_exeext; then
23695 eval "$as_ac_Lib=yes"
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 eval "$as_ac_Lib=no"
23703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23704 conftest$ac_exeext conftest.$ac_ext
23705 LIBS=$ac_check_lib_save_LIBS
23707 ac_res=`eval echo '${'$as_ac_Lib'}'`
23708 { echo "$as_me:$LINENO: result: $ac_res" >&5
23709 echo "${ECHO_T}$ac_res" >&6; }
23710 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23712 cat >>confdefs.h <<\_ACEOF
23713 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23718 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23719 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23720 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23721 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23724 ac_check_lib_save_LIBS=$LIBS
23725 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23726 cat >conftest.$ac_ext <<_ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h. */
23733 /* Override any GCC internal prototype to avoid an error.
23734 Use char because int might match the return type of a GCC
23735 builtin and then its argument prototype would still apply. */
23739 char gss_krb5_set_allowable_enctypes ();
23743 return gss_krb5_set_allowable_enctypes ();
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (ac_try="$ac_link"
23750 case "(($ac_try" in
23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755 (eval "$ac_link") 2>conftest.er1
23757 grep -v '^ *+' conftest.er1 >conftest.err
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } && {
23762 test -z "$ac_c_werror_flag" ||
23763 test ! -s conftest.err
23764 } && test -s conftest$ac_exeext &&
23765 $as_test_x conftest$ac_exeext; then
23766 eval "$as_ac_Lib=yes"
23768 echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23771 eval "$as_ac_Lib=no"
23774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23775 conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23778 ac_res=`eval echo '${'$as_ac_Lib'}'`
23779 { echo "$as_me:$LINENO: result: $ac_res" >&5
23780 echo "${ECHO_T}$ac_res" >&6; }
23781 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23783 cat >>confdefs.h <<\_ACEOF
23784 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23789 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23790 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23791 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23792 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23793 echo $ECHO_N "(cached) $ECHO_C" >&6
23795 ac_check_lib_save_LIBS=$LIBS
23796 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23797 cat >conftest.$ac_ext <<_ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23804 /* Override any GCC internal prototype to avoid an error.
23805 Use char because int might match the return type of a GCC
23806 builtin and then its argument prototype would still apply. */
23810 char gss_krb5_ccache_name ();
23814 return gss_krb5_ccache_name ();
23819 rm -f conftest.$ac_objext conftest$ac_exeext
23820 if { (ac_try="$ac_link"
23821 case "(($ac_try" in
23822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823 *) ac_try_echo=$ac_try;;
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826 (eval "$ac_link") 2>conftest.er1
23828 grep -v '^ *+' conftest.er1 >conftest.err
23830 cat conftest.err >&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } && {
23833 test -z "$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 } && test -s conftest$ac_exeext &&
23836 $as_test_x conftest$ac_exeext; then
23837 eval "$as_ac_Lib=yes"
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 eval "$as_ac_Lib=no"
23845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23846 conftest$ac_exeext conftest.$ac_ext
23847 LIBS=$ac_check_lib_save_LIBS
23849 ac_res=`eval echo '${'$as_ac_Lib'}'`
23850 { echo "$as_me:$LINENO: result: $ac_res" >&5
23851 echo "${ECHO_T}$ac_res" >&6; }
23852 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23854 cat >>confdefs.h <<\_ACEOF
23855 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23861 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23862 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23863 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23864 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23867 ac_check_lib_save_LIBS=$LIBS
23868 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23869 cat >conftest.$ac_ext <<_ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23876 /* Override any GCC internal prototype to avoid an error.
23877 Use char because int might match the return type of a GCC
23878 builtin and then its argument prototype would still apply. */
23882 char krb5_get_error_message ();
23886 return krb5_get_error_message ();
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (ac_try="$ac_link"
23893 case "(($ac_try" in
23894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895 *) ac_try_echo=$ac_try;;
23897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898 (eval "$ac_link") 2>conftest.er1
23900 grep -v '^ *+' conftest.er1 >conftest.err
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } && {
23905 test -z "$ac_c_werror_flag" ||
23906 test ! -s conftest.err
23907 } && test -s conftest$ac_exeext &&
23908 $as_test_x conftest$ac_exeext; then
23909 eval "$as_ac_Lib=yes"
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23914 eval "$as_ac_Lib=no"
23917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23918 conftest$ac_exeext conftest.$ac_ext
23919 LIBS=$ac_check_lib_save_LIBS
23921 ac_res=`eval echo '${'$as_ac_Lib'}'`
23922 { echo "$as_me:$LINENO: result: $ac_res" >&5
23923 echo "${ECHO_T}$ac_res" >&6; }
23924 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23926 cat >>confdefs.h <<\_ACEOF
23927 @%:@define HAVE_KRB5_GET_ERROR_MESSAGE 1
23933 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23934 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23935 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23936 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 ac_check_lib_save_LIBS=$LIBS
23940 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23941 cat >conftest.$ac_ext <<_ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23948 /* Override any GCC internal prototype to avoid an error.
23949 Use char because int might match the return type of a GCC
23950 builtin and then its argument prototype would still apply. */
23954 char krb5_get_init_creds_opt_set_addressless ();
23958 return krb5_get_init_creds_opt_set_addressless ();
23963 rm -f conftest.$ac_objext conftest$ac_exeext
23964 if { (ac_try="$ac_link"
23965 case "(($ac_try" in
23966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967 *) ac_try_echo=$ac_try;;
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970 (eval "$ac_link") 2>conftest.er1
23972 grep -v '^ *+' conftest.er1 >conftest.err
23974 cat conftest.err >&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext &&
23980 $as_test_x conftest$ac_exeext; then
23981 eval "$as_ac_Lib=yes"
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 eval "$as_ac_Lib=no"
23989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23990 conftest$ac_exeext conftest.$ac_ext
23991 LIBS=$ac_check_lib_save_LIBS
23993 ac_res=`eval echo '${'$as_ac_Lib'}'`
23994 { echo "$as_me:$LINENO: result: $ac_res" >&5
23995 echo "${ECHO_T}$ac_res" >&6; }
23996 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23998 cat >>confdefs.h <<\_ACEOF
23999 @%:@define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24005 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24006 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24007 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24018 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24019 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24020 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24023 ac_check_lib_save_LIBS=$LIBS
24024 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24025 cat >conftest.$ac_ext <<_ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24032 /* Override any GCC internal prototype to avoid an error.
24033 Use char because int might match the return type of a GCC
24034 builtin and then its argument prototype would still apply. */
24038 char authgss_create_default ();
24042 return authgss_create_default ();
24047 rm -f conftest.$ac_objext conftest$ac_exeext
24048 if { (ac_try="$ac_link"
24049 case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_link") 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest$ac_exeext &&
24064 $as_test_x conftest$ac_exeext; then
24065 ac_cv_lib_rpcsecgss_authgss_create_default=yes
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24070 ac_cv_lib_rpcsecgss_authgss_create_default=no
24073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24074 conftest$ac_exeext conftest.$ac_ext
24075 LIBS=$ac_check_lib_save_LIBS
24077 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24078 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24079 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24082 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24083 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24084 { (exit 1); exit 1; }; }
24087 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24088 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24089 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24090 echo $ECHO_N "(cached) $ECHO_C" >&6
24092 ac_check_lib_save_LIBS=$LIBS
24093 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24094 cat >conftest.$ac_ext <<_ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h. */
24101 /* Override any GCC internal prototype to avoid an error.
24102 Use char because int might match the return type of a GCC
24103 builtin and then its argument prototype would still apply. */
24107 char authgss_set_debug_level ();
24111 return authgss_set_debug_level ();
24116 rm -f conftest.$ac_objext conftest$ac_exeext
24117 if { (ac_try="$ac_link"
24118 case "(($ac_try" in
24119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120 *) ac_try_echo=$ac_try;;
24122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24123 (eval "$ac_link") 2>conftest.er1
24125 grep -v '^ *+' conftest.er1 >conftest.err
24127 cat conftest.err >&5
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); } && {
24130 test -z "$ac_c_werror_flag" ||
24131 test ! -s conftest.err
24132 } && test -s conftest$ac_exeext &&
24133 $as_test_x conftest$ac_exeext; then
24134 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24139 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24143 conftest$ac_exeext conftest.$ac_ext
24144 LIBS=$ac_check_lib_save_LIBS
24146 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24147 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24148 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24150 cat >>confdefs.h <<\_ACEOF
24151 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24182 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24183 malloc.h memory.h netdb.h netinet/in.h paths.h \
24184 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24185 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24186 syslog.h unistd.h com_err.h et/com_err.h \
24189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24196 ac_res=`eval echo '${'$as_ac_Header'}'`
24197 { echo "$as_me:$LINENO: result: $ac_res" >&5
24198 echo "${ECHO_T}$ac_res" >&6; }
24200 # Is the header compilable?
24201 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24203 cat >conftest.$ac_ext <<_ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h. */
24209 $ac_includes_default
24210 @%:@include <$ac_header>
24212 rm -f conftest.$ac_objext
24213 if { (ac_try="$ac_compile"
24214 case "(($ac_try" in
24215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216 *) ac_try_echo=$ac_try;;
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219 (eval "$ac_compile") 2>conftest.er1
24221 grep -v '^ *+' conftest.er1 >conftest.err
24223 cat conftest.err >&5
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); } && {
24226 test -z "$ac_c_werror_flag" ||
24227 test ! -s conftest.err
24228 } && test -s conftest.$ac_objext; then
24229 ac_header_compiler=yes
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 ac_header_compiler=no
24237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24239 echo "${ECHO_T}$ac_header_compiler" >&6; }
24241 # Is the header present?
24242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24244 cat >conftest.$ac_ext <<_ACEOF
24247 cat confdefs.h >>conftest.$ac_ext
24248 cat >>conftest.$ac_ext <<_ACEOF
24249 /* end confdefs.h. */
24250 @%:@include <$ac_header>
24252 if { (ac_try="$ac_cpp conftest.$ac_ext"
24253 case "(($ac_try" in
24254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255 *) ac_try_echo=$ac_try;;
24257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } >/dev/null && {
24265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24268 ac_header_preproc=yes
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 ac_header_preproc=no
24276 rm -f conftest.err conftest.$ac_ext
24277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24278 echo "${ECHO_T}$ac_header_preproc" >&6; }
24280 # So? What about this header?
24281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24287 ac_header_preproc=yes
24290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24303 @%:@@%:@ ------------------------------- @%:@@%:@
24304 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24305 @%:@@%:@ ------------------------------- @%:@@%:@
24307 ) | sed "s/^/$as_me: WARNING: /" >&2
24310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24313 echo $ECHO_N "(cached) $ECHO_C" >&6
24315 eval "$as_ac_Header=\$ac_header_preproc"
24317 ac_res=`eval echo '${'$as_ac_Header'}'`
24318 { echo "$as_me:$LINENO: result: $ac_res" >&5
24319 echo "${ECHO_T}$ac_res" >&6; }
24322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24323 cat >>confdefs.h <<_ACEOF
24324 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24332 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24333 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24334 if test "${ac_cv_c_const+set}" = set; then
24335 echo $ECHO_N "(cached) $ECHO_C" >&6
24337 cat >conftest.$ac_ext <<_ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h. */
24347 /* FIXME: Include the comments suggested by Paul. */
24348 #ifndef __cplusplus
24349 /* Ultrix mips cc rejects this. */
24350 typedef int charset[2];
24352 /* SunOS 4.1.1 cc rejects this. */
24353 char const *const *pcpcc;
24355 /* NEC SVR4.0.2 mips cc rejects this. */
24356 struct point {int x, y;};
24357 static struct point const zero = {0,0};
24358 /* AIX XL C 1.02.0.0 rejects this.
24359 It does not let you subtract one const X* pointer from another in
24360 an arm of an if-expression whose if-part is not a constant
24362 const char *g = "string";
24363 pcpcc = &g + (g ? g-g : 0);
24364 /* HPUX 7.0 cc rejects these. */
24366 ppc = (char**) pcpcc;
24367 pcpcc = (char const *const *) ppc;
24368 { /* SCO 3.2v4 cc rejects this. */
24370 char const *s = 0 ? (char *) 0 : (char const *) 0;
24375 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24376 int x[] = {25, 17};
24377 const int *foo = &x[0];
24380 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24381 typedef const int *iptr;
24385 { /* AIX XL C 1.02.0.0 rejects this saying
24386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24387 struct s { int j; const int *ap[3]; };
24388 struct s *b; b->j = 5;
24390 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24391 const int foo = 10;
24392 if (!foo) return 0;
24394 return !cs[0] && !zero.x;
24401 rm -f conftest.$ac_objext
24402 if { (ac_try="$ac_compile"
24403 case "(($ac_try" in
24404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405 *) ac_try_echo=$ac_try;;
24407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408 (eval "$ac_compile") 2>conftest.er1
24410 grep -v '^ *+' conftest.er1 >conftest.err
24412 cat conftest.err >&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } && {
24415 test -z "$ac_c_werror_flag" ||
24416 test ! -s conftest.err
24417 } && test -s conftest.$ac_objext; then
24420 echo "$as_me: failed program was:" >&5
24421 sed 's/^/| /' conftest.$ac_ext >&5
24426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24428 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24429 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24430 if test $ac_cv_c_const = no; then
24432 cat >>confdefs.h <<\_ACEOF
24438 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24439 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24440 if test "${ac_cv_type_uid_t+set}" = set; then
24441 echo $ECHO_N "(cached) $ECHO_C" >&6
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24449 #include <sys/types.h>
24452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24453 $EGREP "uid_t" >/dev/null 2>&1; then
24454 ac_cv_type_uid_t=yes
24456 ac_cv_type_uid_t=no
24461 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24462 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24463 if test $ac_cv_type_uid_t = no; then
24465 cat >>confdefs.h <<\_ACEOF
24466 @%:@define uid_t int
24470 cat >>confdefs.h <<\_ACEOF
24471 @%:@define gid_t int
24476 { echo "$as_me:$LINENO: checking for inline" >&5
24477 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24478 if test "${ac_cv_c_inline+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24482 for ac_kw in inline __inline__ __inline; do
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 #ifndef __cplusplus
24491 static $ac_kw foo_t static_foo () {return 0; }
24492 $ac_kw foo_t foo () {return 0; }
24496 rm -f conftest.$ac_objext
24497 if { (ac_try="$ac_compile"
24498 case "(($ac_try" in
24499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500 *) ac_try_echo=$ac_try;;
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503 (eval "$ac_compile") 2>conftest.er1
24505 grep -v '^ *+' conftest.er1 >conftest.err
24507 cat conftest.err >&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } && {
24510 test -z "$ac_c_werror_flag" ||
24511 test ! -s conftest.err
24512 } && test -s conftest.$ac_objext; then
24513 ac_cv_c_inline=$ac_kw
24515 echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24522 test "$ac_cv_c_inline" != no && break
24526 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24527 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24530 case $ac_cv_c_inline in
24533 case $ac_cv_c_inline in
24535 *) ac_val=$ac_cv_c_inline;;
24537 cat >>confdefs.h <<_ACEOF
24538 #ifndef __cplusplus
24539 #define inline $ac_val
24545 { echo "$as_me:$LINENO: checking for off_t" >&5
24546 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24547 if test "${ac_cv_type_off_t+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 cat >conftest.$ac_ext <<_ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 $ac_includes_default
24557 typedef off_t ac__type_new_;
24561 if ((ac__type_new_ *) 0)
24563 if (sizeof (ac__type_new_))
24569 rm -f conftest.$ac_objext
24570 if { (ac_try="$ac_compile"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_compile") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest.$ac_objext; then
24586 ac_cv_type_off_t=yes
24588 echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24591 ac_cv_type_off_t=no
24594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24596 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24597 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24598 if test $ac_cv_type_off_t = yes; then
24602 cat >>confdefs.h <<_ACEOF
24603 @%:@define off_t long int
24608 { echo "$as_me:$LINENO: checking for pid_t" >&5
24609 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24610 if test "${ac_cv_type_pid_t+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24613 cat >conftest.$ac_ext <<_ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h. */
24619 $ac_includes_default
24620 typedef pid_t ac__type_new_;
24624 if ((ac__type_new_ *) 0)
24626 if (sizeof (ac__type_new_))
24632 rm -f conftest.$ac_objext
24633 if { (ac_try="$ac_compile"
24634 case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639 (eval "$ac_compile") 2>conftest.er1
24641 grep -v '^ *+' conftest.er1 >conftest.err
24643 cat conftest.err >&5
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } && {
24646 test -z "$ac_c_werror_flag" ||
24647 test ! -s conftest.err
24648 } && test -s conftest.$ac_objext; then
24649 ac_cv_type_pid_t=yes
24651 echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24654 ac_cv_type_pid_t=no
24657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24660 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24661 if test $ac_cv_type_pid_t = yes; then
24665 cat >>confdefs.h <<_ACEOF
24666 @%:@define pid_t int
24671 { echo "$as_me:$LINENO: checking for size_t" >&5
24672 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24673 if test "${ac_cv_type_size_t+set}" = set; then
24674 echo $ECHO_N "(cached) $ECHO_C" >&6
24676 cat >conftest.$ac_ext <<_ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h. */
24682 $ac_includes_default
24683 typedef size_t ac__type_new_;
24687 if ((ac__type_new_ *) 0)
24689 if (sizeof (ac__type_new_))
24695 rm -f conftest.$ac_objext
24696 if { (ac_try="$ac_compile"
24697 case "(($ac_try" in
24698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699 *) ac_try_echo=$ac_try;;
24701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702 (eval "$ac_compile") 2>conftest.er1
24704 grep -v '^ *+' conftest.er1 >conftest.err
24706 cat conftest.err >&5
24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); } && {
24709 test -z "$ac_c_werror_flag" ||
24710 test ! -s conftest.err
24711 } && test -s conftest.$ac_objext; then
24712 ac_cv_type_size_t=yes
24714 echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24717 ac_cv_type_size_t=no
24720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24723 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24724 if test $ac_cv_type_size_t = yes; then
24728 cat >>confdefs.h <<_ACEOF
24729 @%:@define size_t unsigned int
24734 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24735 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24736 if test "${ac_cv_header_time+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24739 cat >conftest.$ac_ext <<_ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h. */
24745 #include <sys/types.h>
24746 #include <sys/time.h>
24752 if ((struct tm *) 0)
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24767 grep -v '^ *+' conftest.er1 >conftest.err
24769 cat conftest.err >&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.$ac_objext; then
24775 ac_cv_header_time=yes
24777 echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24780 ac_cv_header_time=no
24783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24785 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24786 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24787 if test $ac_cv_header_time = yes; then
24789 cat >>confdefs.h <<\_ACEOF
24790 @%:@define TIME_WITH_SYS_TIME 1
24795 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24796 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24797 if test "${ac_cv_struct_tm+set}" = set; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24800 cat >conftest.$ac_ext <<_ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h. */
24806 #include <sys/types.h>
24813 int *p = &tm.tm_sec;
24819 rm -f conftest.$ac_objext
24820 if { (ac_try="$ac_compile"
24821 case "(($ac_try" in
24822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24823 *) ac_try_echo=$ac_try;;
24825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24826 (eval "$ac_compile") 2>conftest.er1
24828 grep -v '^ *+' conftest.er1 >conftest.err
24830 cat conftest.err >&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } && {
24833 test -z "$ac_c_werror_flag" ||
24834 test ! -s conftest.err
24835 } && test -s conftest.$ac_objext; then
24836 ac_cv_struct_tm=time.h
24838 echo "$as_me: failed program was:" >&5
24839 sed 's/^/| /' conftest.$ac_ext >&5
24841 ac_cv_struct_tm=sys/time.h
24844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24847 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24848 if test $ac_cv_struct_tm = sys/time.h; then
24850 cat >>confdefs.h <<\_ACEOF
24851 @%:@define TM_IN_SYS_TIME 1
24857 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24858 # for constant arguments. Useless!
24859 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24860 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24861 if test "${ac_cv_working_alloca_h+set}" = set; then
24862 echo $ECHO_N "(cached) $ECHO_C" >&6
24864 cat >conftest.$ac_ext <<_ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h. */
24870 @%:@include <alloca.h>
24874 char *p = (char *) alloca (2 * sizeof (int));
24880 rm -f conftest.$ac_objext conftest$ac_exeext
24881 if { (ac_try="$ac_link"
24882 case "(($ac_try" in
24883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 *) ac_try_echo=$ac_try;;
24886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887 (eval "$ac_link") 2>conftest.er1
24889 grep -v '^ *+' conftest.er1 >conftest.err
24891 cat conftest.err >&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); } && {
24894 test -z "$ac_c_werror_flag" ||
24895 test ! -s conftest.err
24896 } && test -s conftest$ac_exeext &&
24897 $as_test_x conftest$ac_exeext; then
24898 ac_cv_working_alloca_h=yes
24900 echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.$ac_ext >&5
24903 ac_cv_working_alloca_h=no
24906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24907 conftest$ac_exeext conftest.$ac_ext
24909 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24910 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24911 if test $ac_cv_working_alloca_h = yes; then
24913 cat >>confdefs.h <<\_ACEOF
24914 @%:@define HAVE_ALLOCA_H 1
24919 { echo "$as_me:$LINENO: checking for alloca" >&5
24920 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24921 if test "${ac_cv_func_alloca_works+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 cat >conftest.$ac_ext <<_ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h. */
24931 # define alloca __builtin_alloca
24934 # include <malloc.h>
24935 # define alloca _alloca
24937 # ifdef HAVE_ALLOCA_H
24938 # include <alloca.h>
24943 # ifndef alloca /* predefined by HP cc +Olibcalls */
24954 char *p = (char *) alloca (1);
24960 rm -f conftest.$ac_objext conftest$ac_exeext
24961 if { (ac_try="$ac_link"
24962 case "(($ac_try" in
24963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964 *) ac_try_echo=$ac_try;;
24966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967 (eval "$ac_link") 2>conftest.er1
24969 grep -v '^ *+' conftest.er1 >conftest.err
24971 cat conftest.err >&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest$ac_exeext &&
24977 $as_test_x conftest$ac_exeext; then
24978 ac_cv_func_alloca_works=yes
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24983 ac_cv_func_alloca_works=no
24986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24987 conftest$ac_exeext conftest.$ac_ext
24989 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24990 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24992 if test $ac_cv_func_alloca_works = yes; then
24994 cat >>confdefs.h <<\_ACEOF
24995 @%:@define HAVE_ALLOCA 1
24999 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25000 # that cause trouble. Some versions do not even contain alloca or
25001 # contain a buggy version. If you still want to use their alloca,
25002 # use ar to extract alloca.o from them instead of compiling alloca.c.
25004 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25006 cat >>confdefs.h <<\_ACEOF
25007 @%:@define C_ALLOCA 1
25011 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25012 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25013 if test "${ac_cv_os_cray+set}" = set; then
25014 echo $ECHO_N "(cached) $ECHO_C" >&6
25016 cat >conftest.$ac_ext <<_ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25022 #if defined CRAY && ! defined CRAY2
25029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25030 $EGREP "webecray" >/dev/null 2>&1; then
25038 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25039 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25040 if test $ac_cv_os_cray = yes; then
25041 for ac_func in _getb67 GETB67 getb67; do
25042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25046 echo $ECHO_N "(cached) $ECHO_C" >&6
25048 cat >conftest.$ac_ext <<_ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h. */
25054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25056 #define $ac_func innocuous_$ac_func
25058 /* System header to define __stub macros and hopefully few prototypes,
25059 which can conflict with char $ac_func (); below.
25060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25061 <limits.h> exists even on freestanding compilers. */
25064 # include <limits.h>
25066 # include <assert.h>
25071 /* Override any GCC internal prototype to avoid an error.
25072 Use char because int might match the return type of a GCC
25073 builtin and then its argument prototype would still apply. */
25078 /* The GNU C library defines this for functions which it implements
25079 to always fail with ENOSYS. Some functions are actually named
25080 something starting with __ and the normal name is an alias. */
25081 #if defined __stub_$ac_func || defined __stub___$ac_func
25088 return $ac_func ();
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (ac_try="$ac_link"
25095 case "(($ac_try" in
25096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097 *) ac_try_echo=$ac_try;;
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100 (eval "$ac_link") 2>conftest.er1
25102 grep -v '^ *+' conftest.er1 >conftest.err
25104 cat conftest.err >&5
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } && {
25107 test -z "$ac_c_werror_flag" ||
25108 test ! -s conftest.err
25109 } && test -s conftest$ac_exeext &&
25110 $as_test_x conftest$ac_exeext; then
25111 eval "$as_ac_var=yes"
25113 echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25116 eval "$as_ac_var=no"
25119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25120 conftest$ac_exeext conftest.$ac_ext
25122 ac_res=`eval echo '${'$as_ac_var'}'`
25123 { echo "$as_me:$LINENO: result: $ac_res" >&5
25124 echo "${ECHO_T}$ac_res" >&6; }
25125 if test `eval echo '${'$as_ac_var'}'` = yes; then
25127 cat >>confdefs.h <<_ACEOF
25128 @%:@define CRAY_STACKSEG_END $ac_func
25137 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25138 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25139 if test "${ac_cv_c_stack_direction+set}" = set; then
25140 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 if test "$cross_compiling" = yes; then
25143 ac_cv_c_stack_direction=0
25145 cat >conftest.$ac_ext <<_ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25151 $ac_includes_default
25153 find_stack_direction ()
25155 static char *addr = 0;
25160 return find_stack_direction ();
25163 return (&dummy > addr) ? 1 : -1;
25169 return find_stack_direction () < 0;
25172 rm -f conftest$ac_exeext
25173 if { (ac_try="$ac_link"
25174 case "(($ac_try" in
25175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176 *) ac_try_echo=$ac_try;;
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179 (eval "$ac_link") 2>&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25183 { (case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188 (eval "$ac_try") 2>&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); }; }; then
25192 ac_cv_c_stack_direction=1
25194 echo "$as_me: program exited with status $ac_status" >&5
25195 echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25198 ( exit $ac_status )
25199 ac_cv_c_stack_direction=-1
25201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25206 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25207 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25209 cat >>confdefs.h <<_ACEOF
25210 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
25221 ac_header_dirent=no
25222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25223 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25224 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25227 echo $ECHO_N "(cached) $ECHO_C" >&6
25229 cat >conftest.$ac_ext <<_ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h. */
25235 #include <sys/types.h>
25247 rm -f conftest.$ac_objext
25248 if { (ac_try="$ac_compile"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254 (eval "$ac_compile") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest.$ac_objext; then
25264 eval "$as_ac_Header=yes"
25266 echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25269 eval "$as_ac_Header=no"
25272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25274 ac_res=`eval echo '${'$as_ac_Header'}'`
25275 { echo "$as_me:$LINENO: result: $ac_res" >&5
25276 echo "${ECHO_T}$ac_res" >&6; }
25277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25278 cat >>confdefs.h <<_ACEOF
25279 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25282 ac_header_dirent=$ac_hdr; break
25286 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25287 if test $ac_header_dirent = dirent.h; then
25288 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25289 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25290 if test "${ac_cv_search_opendir+set}" = set; then
25291 echo $ECHO_N "(cached) $ECHO_C" >&6
25293 ac_func_search_save_LIBS=$LIBS
25294 cat >conftest.$ac_ext <<_ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25301 /* Override any GCC internal prototype to avoid an error.
25302 Use char because int might match the return type of a GCC
25303 builtin and then its argument prototype would still apply. */
25316 for ac_lib in '' dir; do
25317 if test -z "$ac_lib"; then
25318 ac_res="none required"
25321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25323 rm -f conftest.$ac_objext conftest$ac_exeext
25324 if { (ac_try="$ac_link"
25325 case "(($ac_try" in
25326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327 *) ac_try_echo=$ac_try;;
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330 (eval "$ac_link") 2>conftest.er1
25332 grep -v '^ *+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } && {
25337 test -z "$ac_c_werror_flag" ||
25338 test ! -s conftest.err
25339 } && test -s conftest$ac_exeext &&
25340 $as_test_x conftest$ac_exeext; then
25341 ac_cv_search_opendir=$ac_res
25343 echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25351 if test "${ac_cv_search_opendir+set}" = set; then
25355 if test "${ac_cv_search_opendir+set}" = set; then
25358 ac_cv_search_opendir=no
25360 rm conftest.$ac_ext
25361 LIBS=$ac_func_search_save_LIBS
25363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25365 ac_res=$ac_cv_search_opendir
25366 if test "$ac_res" != no; then
25367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25372 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25374 if test "${ac_cv_search_opendir+set}" = set; then
25375 echo $ECHO_N "(cached) $ECHO_C" >&6
25377 ac_func_search_save_LIBS=$LIBS
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25385 /* Override any GCC internal prototype to avoid an error.
25386 Use char because int might match the return type of a GCC
25387 builtin and then its argument prototype would still apply. */
25400 for ac_lib in '' x; do
25401 if test -z "$ac_lib"; then
25402 ac_res="none required"
25405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25407 rm -f conftest.$ac_objext conftest$ac_exeext
25408 if { (ac_try="$ac_link"
25409 case "(($ac_try" in
25410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25411 *) ac_try_echo=$ac_try;;
25413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25414 (eval "$ac_link") 2>conftest.er1
25416 grep -v '^ *+' conftest.er1 >conftest.err
25418 cat conftest.err >&5
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); } && {
25421 test -z "$ac_c_werror_flag" ||
25422 test ! -s conftest.err
25423 } && test -s conftest$ac_exeext &&
25424 $as_test_x conftest$ac_exeext; then
25425 ac_cv_search_opendir=$ac_res
25427 echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25435 if test "${ac_cv_search_opendir+set}" = set; then
25439 if test "${ac_cv_search_opendir+set}" = set; then
25442 ac_cv_search_opendir=no
25444 rm conftest.$ac_ext
25445 LIBS=$ac_func_search_save_LIBS
25447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25449 ac_res=$ac_cv_search_opendir
25450 if test "$ac_res" != no; then
25451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25457 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25458 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25459 if test "${ac_cv_func_closedir_void+set}" = set; then
25460 echo $ECHO_N "(cached) $ECHO_C" >&6
25462 if test "$cross_compiling" = yes; then
25463 ac_cv_func_closedir_void=yes
25465 cat >conftest.$ac_ext <<_ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h. */
25471 $ac_includes_default
25472 #include <$ac_header_dirent>
25473 #ifndef __cplusplus
25480 return closedir (opendir (".")) != 0;
25485 rm -f conftest$ac_exeext
25486 if { (ac_try="$ac_link"
25487 case "(($ac_try" in
25488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489 *) ac_try_echo=$ac_try;;
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492 (eval "$ac_link") 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25496 { (case "(($ac_try" in
25497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498 *) ac_try_echo=$ac_try;;
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501 (eval "$ac_try") 2>&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; }; then
25505 ac_cv_func_closedir_void=no
25507 echo "$as_me: program exited with status $ac_status" >&5
25508 echo "$as_me: failed program was:" >&5
25509 sed 's/^/| /' conftest.$ac_ext >&5
25511 ( exit $ac_status )
25512 ac_cv_func_closedir_void=yes
25514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25519 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25520 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25521 if test $ac_cv_func_closedir_void = yes; then
25523 cat >>confdefs.h <<\_ACEOF
25524 @%:@define CLOSEDIR_VOID 1
25529 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25530 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25531 if test "${ac_cv_lib_error_at_line+set}" = set; then
25532 echo $ECHO_N "(cached) $ECHO_C" >&6
25534 cat >conftest.$ac_ext <<_ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h. */
25544 error_at_line (0, 0, "", 0, "an error occurred");
25549 rm -f conftest.$ac_objext conftest$ac_exeext
25550 if { (ac_try="$ac_link"
25551 case "(($ac_try" in
25552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25553 *) ac_try_echo=$ac_try;;
25555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25556 (eval "$ac_link") 2>conftest.er1
25558 grep -v '^ *+' conftest.er1 >conftest.err
25560 cat conftest.err >&5
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); } && {
25563 test -z "$ac_c_werror_flag" ||
25564 test ! -s conftest.err
25565 } && test -s conftest$ac_exeext &&
25566 $as_test_x conftest$ac_exeext; then
25567 ac_cv_lib_error_at_line=yes
25569 echo "$as_me: failed program was:" >&5
25570 sed 's/^/| /' conftest.$ac_ext >&5
25572 ac_cv_lib_error_at_line=no
25575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25576 conftest$ac_exeext conftest.$ac_ext
25578 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25579 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25580 if test $ac_cv_lib_error_at_line = no; then
25581 case " $LIB@&t@OBJS " in
25582 *" error.$ac_objext "* ) ;;
25583 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25590 for ac_header in vfork.h
25592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25599 ac_res=`eval echo '${'$as_ac_Header'}'`
25600 { echo "$as_me:$LINENO: result: $ac_res" >&5
25601 echo "${ECHO_T}$ac_res" >&6; }
25603 # Is the header compilable?
25604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25606 cat >conftest.$ac_ext <<_ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h. */
25612 $ac_includes_default
25613 @%:@include <$ac_header>
25615 rm -f conftest.$ac_objext
25616 if { (ac_try="$ac_compile"
25617 case "(($ac_try" in
25618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25619 *) ac_try_echo=$ac_try;;
25621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25622 (eval "$ac_compile") 2>conftest.er1
25624 grep -v '^ *+' conftest.er1 >conftest.err
25626 cat conftest.err >&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); } && {
25629 test -z "$ac_c_werror_flag" ||
25630 test ! -s conftest.err
25631 } && test -s conftest.$ac_objext; then
25632 ac_header_compiler=yes
25634 echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25637 ac_header_compiler=no
25640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25642 echo "${ECHO_T}$ac_header_compiler" >&6; }
25644 # Is the header present?
25645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25647 cat >conftest.$ac_ext <<_ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h. */
25653 @%:@include <$ac_header>
25655 if { (ac_try="$ac_cpp conftest.$ac_ext"
25656 case "(($ac_try" in
25657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658 *) ac_try_echo=$ac_try;;
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25663 grep -v '^ *+' conftest.er1 >conftest.err
25665 cat conftest.err >&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); } >/dev/null && {
25668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25669 test ! -s conftest.err
25671 ac_header_preproc=yes
25673 echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25676 ac_header_preproc=no
25679 rm -f conftest.err conftest.$ac_ext
25680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25681 echo "${ECHO_T}$ac_header_preproc" >&6; }
25683 # So? What about this header?
25684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25690 ac_header_preproc=yes
25693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25706 @%:@@%:@ ------------------------------- @%:@@%:@
25707 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25708 @%:@@%:@ ------------------------------- @%:@@%:@
25710 ) | sed "s/^/$as_me: WARNING: /" >&2
25713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25718 eval "$as_ac_Header=\$ac_header_preproc"
25720 ac_res=`eval echo '${'$as_ac_Header'}'`
25721 { echo "$as_me:$LINENO: result: $ac_res" >&5
25722 echo "${ECHO_T}$ac_res" >&6; }
25725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25726 cat >>confdefs.h <<_ACEOF
25727 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25736 for ac_func in fork vfork
25738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25742 echo $ECHO_N "(cached) $ECHO_C" >&6
25744 cat >conftest.$ac_ext <<_ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h. */
25750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25752 #define $ac_func innocuous_$ac_func
25754 /* System header to define __stub macros and hopefully few prototypes,
25755 which can conflict with char $ac_func (); below.
25756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25757 <limits.h> exists even on freestanding compilers. */
25760 # include <limits.h>
25762 # include <assert.h>
25767 /* Override any GCC internal prototype to avoid an error.
25768 Use char because int might match the return type of a GCC
25769 builtin and then its argument prototype would still apply. */
25774 /* The GNU C library defines this for functions which it implements
25775 to always fail with ENOSYS. Some functions are actually named
25776 something starting with __ and the normal name is an alias. */
25777 #if defined __stub_$ac_func || defined __stub___$ac_func
25784 return $ac_func ();
25789 rm -f conftest.$ac_objext conftest$ac_exeext
25790 if { (ac_try="$ac_link"
25791 case "(($ac_try" in
25792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25793 *) ac_try_echo=$ac_try;;
25795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25796 (eval "$ac_link") 2>conftest.er1
25798 grep -v '^ *+' conftest.er1 >conftest.err
25800 cat conftest.err >&5
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); } && {
25803 test -z "$ac_c_werror_flag" ||
25804 test ! -s conftest.err
25805 } && test -s conftest$ac_exeext &&
25806 $as_test_x conftest$ac_exeext; then
25807 eval "$as_ac_var=yes"
25809 echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25812 eval "$as_ac_var=no"
25815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25816 conftest$ac_exeext conftest.$ac_ext
25818 ac_res=`eval echo '${'$as_ac_var'}'`
25819 { echo "$as_me:$LINENO: result: $ac_res" >&5
25820 echo "${ECHO_T}$ac_res" >&6; }
25821 if test `eval echo '${'$as_ac_var'}'` = yes; then
25822 cat >>confdefs.h <<_ACEOF
25823 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25829 if test "x$ac_cv_func_fork" = xyes; then
25830 { echo "$as_me:$LINENO: checking for working fork" >&5
25831 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25832 if test "${ac_cv_func_fork_works+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 if test "$cross_compiling" = yes; then
25836 ac_cv_func_fork_works=cross
25838 cat >conftest.$ac_ext <<_ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25844 $ac_includes_default
25849 /* By Ruediger Kuhlmann. */
25850 return fork () < 0;
25856 rm -f conftest$ac_exeext
25857 if { (ac_try="$ac_link"
25858 case "(($ac_try" in
25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_link") 2>&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25867 { (case "(($ac_try" in
25868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869 *) ac_try_echo=$ac_try;;
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872 (eval "$ac_try") 2>&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876 ac_cv_func_fork_works=yes
25878 echo "$as_me: program exited with status $ac_status" >&5
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25882 ( exit $ac_status )
25883 ac_cv_func_fork_works=no
25885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25890 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25891 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25894 ac_cv_func_fork_works=$ac_cv_func_fork
25896 if test "x$ac_cv_func_fork_works" = xcross; then
25898 *-*-amigaos* | *-*-msdosdjgpp*)
25899 # Override, as these systems have only a dummy fork() stub
25900 ac_cv_func_fork_works=no
25903 ac_cv_func_fork_works=yes
25906 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25907 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25909 ac_cv_func_vfork_works=$ac_cv_func_vfork
25910 if test "x$ac_cv_func_vfork" = xyes; then
25911 { echo "$as_me:$LINENO: checking for working vfork" >&5
25912 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25913 if test "${ac_cv_func_vfork_works+set}" = set; then
25914 echo $ECHO_N "(cached) $ECHO_C" >&6
25916 if test "$cross_compiling" = yes; then
25917 ac_cv_func_vfork_works=cross
25919 cat >conftest.$ac_ext <<_ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h. */
25925 /* Thanks to Paul Eggert for this test. */
25926 $ac_includes_default
25927 #include <sys/wait.h>
25928 #ifdef HAVE_VFORK_H
25929 # include <vfork.h>
25931 /* On some sparc systems, changes by the child to local and incoming
25932 argument registers are propagated back to the parent. The compiler
25933 is told about this with #include <vfork.h>, but some compilers
25934 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25935 static variable whose address is put into a register that is
25936 clobbered by the vfork. */
25939 sparc_address_test (int arg)
25941 sparc_address_test (arg) int arg;
25944 static pid_t child;
25962 pid_t parent = getpid ();
25965 sparc_address_test (0);
25970 /* Here is another test for sparc vfork register problems. This
25971 test uses lots of local variables, at least as many local
25972 variables as main has allocated so far including compiler
25973 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25974 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25975 reuse the register of parent for one of the local variables,
25976 since it will think that parent can't possibly be used any more
25977 in this routine. Assigning to the local variable will thus
25978 munge parent in the parent process. */
25980 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25981 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25982 /* Convince the compiler that p..p7 are live; otherwise, it might
25983 use the same hardware register for all 8 local variables. */
25984 if (p != p1 || p != p2 || p != p3 || p != p4
25985 || p != p5 || p != p6 || p != p7)
25988 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25989 from child file descriptors. If the child closes a descriptor
25990 before it execs or exits, this munges the parent's descriptor
25991 as well. Test for this by closing stdout in the child. */
25992 _exit(close(fileno(stdout)) != 0);
25997 while (wait(&status) != child)
26000 /* Was there some problem with vforking? */
26003 /* Did the child fail? (This shouldn't happen.) */
26006 /* Did the vfork/compiler bug occur? */
26007 || parent != getpid()
26009 /* Did the file descriptor bug occur? */
26010 || fstat(fileno(stdout), &st) != 0
26015 rm -f conftest$ac_exeext
26016 if { (ac_try="$ac_link"
26017 case "(($ac_try" in
26018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26019 *) ac_try_echo=$ac_try;;
26021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26022 (eval "$ac_link") 2>&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26026 { (case "(($ac_try" in
26027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26028 *) ac_try_echo=$ac_try;;
26030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26031 (eval "$ac_try") 2>&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); }; }; then
26035 ac_cv_func_vfork_works=yes
26037 echo "$as_me: program exited with status $ac_status" >&5
26038 echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26041 ( exit $ac_status )
26042 ac_cv_func_vfork_works=no
26044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26049 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26050 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26053 if test "x$ac_cv_func_fork_works" = xcross; then
26054 ac_cv_func_vfork_works=$ac_cv_func_vfork
26055 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26056 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26059 if test "x$ac_cv_func_vfork_works" = xyes; then
26061 cat >>confdefs.h <<\_ACEOF
26062 @%:@define HAVE_WORKING_VFORK 1
26067 cat >>confdefs.h <<\_ACEOF
26068 @%:@define vfork fork
26072 if test "x$ac_cv_func_fork_works" = xyes; then
26074 cat >>confdefs.h <<\_ACEOF
26075 @%:@define HAVE_WORKING_FORK 1
26080 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26081 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26082 if test "${ac_cv_type_getgroups+set}" = set; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26085 if test "$cross_compiling" = yes; then
26086 ac_cv_type_getgroups=cross
26088 cat >conftest.$ac_ext <<_ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26094 /* Thanks to Mike Rendell for this test. */
26095 $ac_includes_default
26098 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26103 gid_t gidset[NGID];
26105 union { gid_t gval; long int lval; } val;
26108 for (i = 0; i < NGID; i++)
26109 gidset[i] = val.gval;
26110 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26112 /* Exit non-zero if getgroups seems to require an array of ints. This
26113 happens when gid_t is short int but getgroups modifies an array
26115 return n > 0 && gidset[n] != val.gval;
26118 rm -f conftest$ac_exeext
26119 if { (ac_try="$ac_link"
26120 case "(($ac_try" in
26121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125 (eval "$ac_link") 2>&5
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26129 { (case "(($ac_try" in
26130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131 *) ac_try_echo=$ac_try;;
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134 (eval "$ac_try") 2>&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); }; }; then
26138 ac_cv_type_getgroups=gid_t
26140 echo "$as_me: program exited with status $ac_status" >&5
26141 echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26144 ( exit $ac_status )
26145 ac_cv_type_getgroups=int
26147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26151 if test $ac_cv_type_getgroups = cross; then
26152 cat >conftest.$ac_ext <<_ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h. */
26158 #include <unistd.h>
26161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26162 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26163 ac_cv_type_getgroups=gid_t
26165 ac_cv_type_getgroups=int
26171 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26172 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26174 cat >>confdefs.h <<_ACEOF
26175 @%:@define GETGROUPS_T $ac_cv_type_getgroups
26179 { echo "$as_me:$LINENO: checking for getgroups" >&5
26180 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26181 if test "${ac_cv_func_getgroups+set}" = set; then
26182 echo $ECHO_N "(cached) $ECHO_C" >&6
26184 cat >conftest.$ac_ext <<_ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26190 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26192 #define getgroups innocuous_getgroups
26194 /* System header to define __stub macros and hopefully few prototypes,
26195 which can conflict with char getgroups (); below.
26196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197 <limits.h> exists even on freestanding compilers. */
26200 # include <limits.h>
26202 # include <assert.h>
26207 /* Override any GCC internal prototype to avoid an error.
26208 Use char because int might match the return type of a GCC
26209 builtin and then its argument prototype would still apply. */
26214 /* The GNU C library defines this for functions which it implements
26215 to always fail with ENOSYS. Some functions are actually named
26216 something starting with __ and the normal name is an alias. */
26217 #if defined __stub_getgroups || defined __stub___getgroups
26224 return getgroups ();
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (ac_try="$ac_link"
26231 case "(($ac_try" in
26232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233 *) ac_try_echo=$ac_try;;
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236 (eval "$ac_link") 2>conftest.er1
26238 grep -v '^ *+' conftest.er1 >conftest.err
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } && {
26243 test -z "$ac_c_werror_flag" ||
26244 test ! -s conftest.err
26245 } && test -s conftest$ac_exeext &&
26246 $as_test_x conftest$ac_exeext; then
26247 ac_cv_func_getgroups=yes
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 ac_cv_func_getgroups=no
26255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26256 conftest$ac_exeext conftest.$ac_ext
26258 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26259 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26262 # If we don't yet have getgroups, see if it's in -lbsd.
26263 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26265 if test $ac_cv_func_getgroups = no; then
26266 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26267 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26268 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26271 ac_check_lib_save_LIBS=$LIBS
26273 cat >conftest.$ac_ext <<_ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h. */
26280 /* Override any GCC internal prototype to avoid an error.
26281 Use char because int might match the return type of a GCC
26282 builtin and then its argument prototype would still apply. */
26290 return getgroups ();
26295 rm -f conftest.$ac_objext conftest$ac_exeext
26296 if { (ac_try="$ac_link"
26297 case "(($ac_try" in
26298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26299 *) ac_try_echo=$ac_try;;
26301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26302 (eval "$ac_link") 2>conftest.er1
26304 grep -v '^ *+' conftest.er1 >conftest.err
26306 cat conftest.err >&5
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); } && {
26309 test -z "$ac_c_werror_flag" ||
26310 test ! -s conftest.err
26311 } && test -s conftest$ac_exeext &&
26312 $as_test_x conftest$ac_exeext; then
26313 ac_cv_lib_bsd_getgroups=yes
26315 echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26318 ac_cv_lib_bsd_getgroups=no
26321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26322 conftest$ac_exeext conftest.$ac_ext
26323 LIBS=$ac_check_lib_save_LIBS
26325 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26326 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26327 if test $ac_cv_lib_bsd_getgroups = yes; then
26328 GETGROUPS_LIB=-lbsd
26333 # Run the program to test the functionality of the system-supplied
26334 # getgroups function only if there is such a function.
26335 if test $ac_cv_func_getgroups = yes; then
26336 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26337 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26338 if test "${ac_cv_func_getgroups_works+set}" = set; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26341 if test "$cross_compiling" = yes; then
26342 ac_cv_func_getgroups_works=no
26344 cat >conftest.$ac_ext <<_ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h. */
26350 $ac_includes_default
26354 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26355 return getgroups (0, 0) == -1;
26360 rm -f conftest$ac_exeext
26361 if { (ac_try="$ac_link"
26362 case "(($ac_try" in
26363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364 *) ac_try_echo=$ac_try;;
26366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367 (eval "$ac_link") 2>&5
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26371 { (case "(($ac_try" in
26372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373 *) ac_try_echo=$ac_try;;
26375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376 (eval "$ac_try") 2>&5
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); }; }; then
26380 ac_cv_func_getgroups_works=yes
26382 echo "$as_me: program exited with status $ac_status" >&5
26383 echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26386 ( exit $ac_status )
26387 ac_cv_func_getgroups_works=no
26389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26395 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26396 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26397 if test $ac_cv_func_getgroups_works = yes; then
26399 cat >>confdefs.h <<\_ACEOF
26400 @%:@define HAVE_GETGROUPS 1
26407 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26408 # -lseq on Dynix/PTX, -lgen on Unixware.
26409 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26410 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26411 if test "${ac_cv_search_getmntent+set}" = set; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26414 ac_func_search_save_LIBS=$LIBS
26415 cat >conftest.$ac_ext <<_ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h. */
26422 /* Override any GCC internal prototype to avoid an error.
26423 Use char because int might match the return type of a GCC
26424 builtin and then its argument prototype would still apply. */
26432 return getmntent ();
26437 for ac_lib in '' sun seq gen; do
26438 if test -z "$ac_lib"; then
26439 ac_res="none required"
26442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26444 rm -f conftest.$ac_objext conftest$ac_exeext
26445 if { (ac_try="$ac_link"
26446 case "(($ac_try" in
26447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26448 *) ac_try_echo=$ac_try;;
26450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26451 (eval "$ac_link") 2>conftest.er1
26453 grep -v '^ *+' conftest.er1 >conftest.err
26455 cat conftest.err >&5
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); } && {
26458 test -z "$ac_c_werror_flag" ||
26459 test ! -s conftest.err
26460 } && test -s conftest$ac_exeext &&
26461 $as_test_x conftest$ac_exeext; then
26462 ac_cv_search_getmntent=$ac_res
26464 echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26472 if test "${ac_cv_search_getmntent+set}" = set; then
26476 if test "${ac_cv_search_getmntent+set}" = set; then
26479 ac_cv_search_getmntent=no
26481 rm conftest.$ac_ext
26482 LIBS=$ac_func_search_save_LIBS
26484 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26485 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26486 ac_res=$ac_cv_search_getmntent
26487 if test "$ac_res" != no; then
26488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26489 ac_cv_func_getmntent=yes
26491 cat >>confdefs.h <<\_ACEOF
26492 @%:@define HAVE_GETMNTENT 1
26496 ac_cv_func_getmntent=no
26500 if test $ac_cv_c_compiler_gnu = yes; then
26501 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26502 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26503 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26506 ac_pattern="Autoconf.*'x'"
26507 cat >conftest.$ac_ext <<_ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h. */
26516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26517 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26518 ac_cv_prog_gcc_traditional=yes
26520 ac_cv_prog_gcc_traditional=no
26525 if test $ac_cv_prog_gcc_traditional = no; then
26526 cat >conftest.$ac_ext <<_ACEOF
26529 cat confdefs.h >>conftest.$ac_ext
26530 cat >>conftest.$ac_ext <<_ACEOF
26531 /* end confdefs.h. */
26532 #include <termio.h>
26535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26536 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26537 ac_cv_prog_gcc_traditional=yes
26543 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26544 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26545 if test $ac_cv_prog_gcc_traditional = yes; then
26546 CC="$CC -traditional"
26550 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26551 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26552 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26553 echo $ECHO_N "(cached) $ECHO_C" >&6
26555 rm -f conftest.sym conftest.file
26556 echo >conftest.file
26557 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26558 if test "$cross_compiling" = yes; then
26559 ac_cv_func_lstat_dereferences_slashed_symlink=no
26561 cat >conftest.$ac_ext <<_ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h. */
26567 $ac_includes_default
26572 /* Linux will dereference the symlink and fail.
26573 That is better in the sense that it means we will not
26574 have to compile and use the lstat wrapper. */
26575 return lstat ("conftest.sym/", &sbuf) == 0;
26580 rm -f conftest$ac_exeext
26581 if { (ac_try="$ac_link"
26582 case "(($ac_try" in
26583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584 *) ac_try_echo=$ac_try;;
26586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26587 (eval "$ac_link") 2>&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26591 { (case "(($ac_try" in
26592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26593 *) ac_try_echo=$ac_try;;
26595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26596 (eval "$ac_try") 2>&5
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); }; }; then
26600 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26602 echo "$as_me: program exited with status $ac_status" >&5
26603 echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26606 ( exit $ac_status )
26607 ac_cv_func_lstat_dereferences_slashed_symlink=no
26609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26614 # If the `ln -s' command failed, then we probably don't even
26615 # have an lstat function.
26616 ac_cv_func_lstat_dereferences_slashed_symlink=no
26618 rm -f conftest.sym conftest.file
26621 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26622 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26624 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26626 cat >>confdefs.h <<_ACEOF
26627 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26631 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26632 case " $LIB@&t@OBJS " in
26633 *" lstat.$ac_objext "* ) ;;
26634 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26640 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26641 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26642 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26645 if test "$cross_compiling" = yes; then
26646 ac_cv_func_lstat_empty_string_bug=yes
26648 cat >conftest.$ac_ext <<_ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26654 $ac_includes_default
26659 return lstat ("", &sbuf) == 0;
26664 rm -f conftest$ac_exeext
26665 if { (ac_try="$ac_link"
26666 case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671 (eval "$ac_link") 2>&5
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26675 { (case "(($ac_try" in
26676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677 *) ac_try_echo=$ac_try;;
26679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26680 (eval "$ac_try") 2>&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; }; then
26684 ac_cv_func_lstat_empty_string_bug=no
26686 echo "$as_me: program exited with status $ac_status" >&5
26687 echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26690 ( exit $ac_status )
26691 ac_cv_func_lstat_empty_string_bug=yes
26693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26698 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26699 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26700 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26701 case " $LIB@&t@OBJS " in
26702 *" lstat.$ac_objext "* ) ;;
26703 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26708 cat >>confdefs.h <<_ACEOF
26709 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26714 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26715 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26716 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26717 echo $ECHO_N "(cached) $ECHO_C" >&6
26719 rm -f conftest.sym conftest.file
26720 echo >conftest.file
26721 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26722 if test "$cross_compiling" = yes; then
26723 ac_cv_func_lstat_dereferences_slashed_symlink=no
26725 cat >conftest.$ac_ext <<_ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h. */
26731 $ac_includes_default
26736 /* Linux will dereference the symlink and fail.
26737 That is better in the sense that it means we will not
26738 have to compile and use the lstat wrapper. */
26739 return lstat ("conftest.sym/", &sbuf) == 0;
26744 rm -f conftest$ac_exeext
26745 if { (ac_try="$ac_link"
26746 case "(($ac_try" in
26747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748 *) ac_try_echo=$ac_try;;
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751 (eval "$ac_link") 2>&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26755 { (case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760 (eval "$ac_try") 2>&5
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; }; then
26764 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26766 echo "$as_me: program exited with status $ac_status" >&5
26767 echo "$as_me: failed program was:" >&5
26768 sed 's/^/| /' conftest.$ac_ext >&5
26770 ( exit $ac_status )
26771 ac_cv_func_lstat_dereferences_slashed_symlink=no
26773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26778 # If the `ln -s' command failed, then we probably don't even
26779 # have an lstat function.
26780 ac_cv_func_lstat_dereferences_slashed_symlink=no
26782 rm -f conftest.sym conftest.file
26785 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26786 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26788 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26790 cat >>confdefs.h <<_ACEOF
26791 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26795 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26796 case " $LIB@&t@OBJS " in
26797 *" lstat.$ac_objext "* ) ;;
26798 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26804 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26805 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26806 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 @%:@include <sys/types.h>
26819 return makedev(0, 0);
26824 rm -f conftest.$ac_objext conftest$ac_exeext
26825 if { (ac_try="$ac_link"
26826 case "(($ac_try" in
26827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26828 *) ac_try_echo=$ac_try;;
26830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26831 (eval "$ac_link") 2>conftest.er1
26833 grep -v '^ *+' conftest.er1 >conftest.err
26835 cat conftest.err >&5
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); } && {
26838 test -z "$ac_c_werror_flag" ||
26839 test ! -s conftest.err
26840 } && test -s conftest$ac_exeext &&
26841 $as_test_x conftest$ac_exeext; then
26842 ac_cv_header_sys_types_h_makedev=yes
26844 echo "$as_me: failed program was:" >&5
26845 sed 's/^/| /' conftest.$ac_ext >&5
26847 ac_cv_header_sys_types_h_makedev=no
26850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26851 conftest$ac_exeext conftest.$ac_ext
26854 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26855 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26857 if test $ac_cv_header_sys_types_h_makedev = no; then
26858 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26859 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26860 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26861 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26862 echo $ECHO_N "(cached) $ECHO_C" >&6
26864 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26865 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26867 # Is the header compilable?
26868 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26869 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26870 cat >conftest.$ac_ext <<_ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h. */
26876 $ac_includes_default
26877 @%:@include <sys/mkdev.h>
26879 rm -f conftest.$ac_objext
26880 if { (ac_try="$ac_compile"
26881 case "(($ac_try" in
26882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883 *) ac_try_echo=$ac_try;;
26885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886 (eval "$ac_compile") 2>conftest.er1
26888 grep -v '^ *+' conftest.er1 >conftest.err
26890 cat conftest.err >&5
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); } && {
26893 test -z "$ac_c_werror_flag" ||
26894 test ! -s conftest.err
26895 } && test -s conftest.$ac_objext; then
26896 ac_header_compiler=yes
26898 echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26901 ac_header_compiler=no
26904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26906 echo "${ECHO_T}$ac_header_compiler" >&6; }
26908 # Is the header present?
26909 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26910 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26911 cat >conftest.$ac_ext <<_ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h. */
26917 @%:@include <sys/mkdev.h>
26919 if { (ac_try="$ac_cpp conftest.$ac_ext"
26920 case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26927 grep -v '^ *+' conftest.er1 >conftest.err
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } >/dev/null && {
26932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26933 test ! -s conftest.err
26935 ac_header_preproc=yes
26937 echo "$as_me: failed program was:" >&5
26938 sed 's/^/| /' conftest.$ac_ext >&5
26940 ac_header_preproc=no
26943 rm -f conftest.err conftest.$ac_ext
26944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26945 echo "${ECHO_T}$ac_header_preproc" >&6; }
26947 # So? What about this header?
26948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26950 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26951 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26952 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26953 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26954 ac_header_preproc=yes
26957 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26958 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26959 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26960 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26961 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26962 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26964 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26966 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26967 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26968 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26970 @%:@@%:@ ------------------------------- @%:@@%:@
26971 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26972 @%:@@%:@ ------------------------------- @%:@@%:@
26974 ) | sed "s/^/$as_me: WARNING: /" >&2
26977 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26978 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26979 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26980 echo $ECHO_N "(cached) $ECHO_C" >&6
26982 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26984 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26985 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26988 if test $ac_cv_header_sys_mkdev_h = yes; then
26990 cat >>confdefs.h <<\_ACEOF
26991 @%:@define MAJOR_IN_MKDEV 1
26998 if test $ac_cv_header_sys_mkdev_h = no; then
26999 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27000 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27001 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27002 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27003 echo $ECHO_N "(cached) $ECHO_C" >&6
27005 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27006 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27008 # Is the header compilable?
27009 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27010 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27011 cat >conftest.$ac_ext <<_ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h. */
27017 $ac_includes_default
27018 @%:@include <sys/sysmacros.h>
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_compile") 2>conftest.er1
27029 grep -v '^ *+' conftest.er1 >conftest.err
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } && {
27034 test -z "$ac_c_werror_flag" ||
27035 test ! -s conftest.err
27036 } && test -s conftest.$ac_objext; then
27037 ac_header_compiler=yes
27039 echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27042 ac_header_compiler=no
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27047 echo "${ECHO_T}$ac_header_compiler" >&6; }
27049 # Is the header present?
27050 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27051 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27052 cat >conftest.$ac_ext <<_ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h. */
27058 @%:@include <sys/sysmacros.h>
27060 if { (ac_try="$ac_cpp conftest.$ac_ext"
27061 case "(($ac_try" in
27062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063 *) ac_try_echo=$ac_try;;
27065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27068 grep -v '^ *+' conftest.er1 >conftest.err
27070 cat conftest.err >&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } >/dev/null && {
27073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27074 test ! -s conftest.err
27076 ac_header_preproc=yes
27078 echo "$as_me: failed program was:" >&5
27079 sed 's/^/| /' conftest.$ac_ext >&5
27081 ac_header_preproc=no
27084 rm -f conftest.err conftest.$ac_ext
27085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27086 echo "${ECHO_T}$ac_header_preproc" >&6; }
27088 # So? What about this header?
27089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27091 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27092 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27093 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27094 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27095 ac_header_preproc=yes
27098 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27099 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27100 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27101 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27102 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27103 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27105 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27107 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27108 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27109 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27111 @%:@@%:@ ------------------------------- @%:@@%:@
27112 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27113 @%:@@%:@ ------------------------------- @%:@@%:@
27115 ) | sed "s/^/$as_me: WARNING: /" >&2
27118 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27119 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27120 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27123 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27126 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27129 if test $ac_cv_header_sys_sysmacros_h = yes; then
27131 cat >>confdefs.h <<\_ACEOF
27132 @%:@define MAJOR_IN_SYSMACROS 1
27142 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27143 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27144 if test "${ac_cv_func_memcmp_working+set}" = set; then
27145 echo $ECHO_N "(cached) $ECHO_C" >&6
27147 if test "$cross_compiling" = yes; then
27148 ac_cv_func_memcmp_working=no
27150 cat >conftest.$ac_ext <<_ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h. */
27156 $ac_includes_default
27161 /* Some versions of memcmp are not 8-bit clean. */
27162 char c0 = '\100', c1 = '\200', c2 = '\201';
27163 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27166 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27167 or more and with at least one buffer not starting on a 4-byte boundary.
27168 William Lewis provided this test program. */
27173 for (i = 0; i < 4; i++)
27177 strcpy (a, "--------01111111");
27178 strcpy (b, "--------10000000");
27179 if (memcmp (a, b, 16) >= 0)
27189 rm -f conftest$ac_exeext
27190 if { (ac_try="$ac_link"
27191 case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_link") 2>&5
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27200 { (case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_try") 2>&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 ac_cv_func_memcmp_working=yes
27211 echo "$as_me: program exited with status $ac_status" >&5
27212 echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27215 ( exit $ac_status )
27216 ac_cv_func_memcmp_working=no
27218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27223 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27224 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27225 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27226 *" memcmp.$ac_objext "* ) ;;
27227 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27235 for ac_header in sys/select.h sys/socket.h
27237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27242 echo $ECHO_N "(cached) $ECHO_C" >&6
27244 ac_res=`eval echo '${'$as_ac_Header'}'`
27245 { echo "$as_me:$LINENO: result: $ac_res" >&5
27246 echo "${ECHO_T}$ac_res" >&6; }
27248 # Is the header compilable?
27249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27251 cat >conftest.$ac_ext <<_ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h. */
27257 $ac_includes_default
27258 @%:@include <$ac_header>
27260 rm -f conftest.$ac_objext
27261 if { (ac_try="$ac_compile"
27262 case "(($ac_try" in
27263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264 *) ac_try_echo=$ac_try;;
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_compile") 2>conftest.er1
27269 grep -v '^ *+' conftest.er1 >conftest.err
27271 cat conftest.err >&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } && {
27274 test -z "$ac_c_werror_flag" ||
27275 test ! -s conftest.err
27276 } && test -s conftest.$ac_objext; then
27277 ac_header_compiler=yes
27279 echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27282 ac_header_compiler=no
27285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27287 echo "${ECHO_T}$ac_header_compiler" >&6; }
27289 # Is the header present?
27290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27292 cat >conftest.$ac_ext <<_ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h. */
27298 @%:@include <$ac_header>
27300 if { (ac_try="$ac_cpp conftest.$ac_ext"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } >/dev/null && {
27313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27314 test ! -s conftest.err
27316 ac_header_preproc=yes
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27321 ac_header_preproc=no
27324 rm -f conftest.err conftest.$ac_ext
27325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27326 echo "${ECHO_T}$ac_header_preproc" >&6; }
27328 # So? What about this header?
27329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27335 ac_header_preproc=yes
27338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27351 @%:@@%:@ ------------------------------- @%:@@%:@
27352 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27353 @%:@@%:@ ------------------------------- @%:@@%:@
27355 ) | sed "s/^/$as_me: WARNING: /" >&2
27358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 eval "$as_ac_Header=\$ac_header_preproc"
27365 ac_res=`eval echo '${'$as_ac_Header'}'`
27366 { echo "$as_me:$LINENO: result: $ac_res" >&5
27367 echo "${ECHO_T}$ac_res" >&6; }
27370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27371 cat >>confdefs.h <<_ACEOF
27372 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27379 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27380 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27381 if test "${ac_cv_func_select_args+set}" = set; then
27382 echo $ECHO_N "(cached) $ECHO_C" >&6
27384 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27385 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27386 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27387 cat >conftest.$ac_ext <<_ACEOF
27390 cat confdefs.h >>conftest.$ac_ext
27391 cat >>conftest.$ac_ext <<_ACEOF
27392 /* end confdefs.h. */
27393 $ac_includes_default
27394 #ifdef HAVE_SYS_SELECT_H
27395 # include <sys/select.h>
27397 #ifdef HAVE_SYS_SOCKET_H
27398 # include <sys/socket.h>
27404 extern int select ($ac_arg1,
27405 $ac_arg234, $ac_arg234, $ac_arg234,
27411 rm -f conftest.$ac_objext
27412 if { (ac_try="$ac_compile"
27413 case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_compile") 2>conftest.er1
27420 grep -v '^ *+' conftest.er1 >conftest.err
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } && {
27425 test -z "$ac_c_werror_flag" ||
27426 test ! -s conftest.err
27427 } && test -s conftest.$ac_objext; then
27428 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27430 echo "$as_me: failed program was:" >&5
27431 sed 's/^/| /' conftest.$ac_ext >&5
27436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27440 # Provide a safe default value.
27441 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27444 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27445 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27446 ac_save_IFS=$IFS; IFS=','
27447 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27451 cat >>confdefs.h <<_ACEOF
27452 @%:@define SELECT_TYPE_ARG1 $1
27456 cat >>confdefs.h <<_ACEOF
27457 @%:@define SELECT_TYPE_ARG234 ($2)
27461 cat >>confdefs.h <<_ACEOF
27462 @%:@define SELECT_TYPE_ARG5 ($3)
27467 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27468 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27469 if test "${ac_cv_type_signal+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 cat >conftest.$ac_ext <<_ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h. */
27478 #include <sys/types.h>
27479 #include <signal.h>
27484 return *(signal (0, 0)) (0) == 1;
27489 rm -f conftest.$ac_objext
27490 if { (ac_try="$ac_compile"
27491 case "(($ac_try" in
27492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493 *) ac_try_echo=$ac_try;;
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496 (eval "$ac_compile") 2>conftest.er1
27498 grep -v '^ *+' conftest.er1 >conftest.err
27500 cat conftest.err >&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } && {
27503 test -z "$ac_c_werror_flag" ||
27504 test ! -s conftest.err
27505 } && test -s conftest.$ac_objext; then
27506 ac_cv_type_signal=int
27508 echo "$as_me: failed program was:" >&5
27509 sed 's/^/| /' conftest.$ac_ext >&5
27511 ac_cv_type_signal=void
27514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27516 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27517 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27519 cat >>confdefs.h <<_ACEOF
27520 @%:@define RETSIGTYPE $ac_cv_type_signal
27524 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27525 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27526 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27527 echo $ECHO_N "(cached) $ECHO_C" >&6
27529 if test "$cross_compiling" = yes; then
27530 ac_cv_func_stat_empty_string_bug=yes
27532 cat >conftest.$ac_ext <<_ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h. */
27538 $ac_includes_default
27543 return stat ("", &sbuf) == 0;
27548 rm -f conftest$ac_exeext
27549 if { (ac_try="$ac_link"
27550 case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555 (eval "$ac_link") 2>&5
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27559 { (case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_try") 2>&5
27566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567 (exit $ac_status); }; }; then
27568 ac_cv_func_stat_empty_string_bug=no
27570 echo "$as_me: program exited with status $ac_status" >&5
27571 echo "$as_me: failed program was:" >&5
27572 sed 's/^/| /' conftest.$ac_ext >&5
27574 ( exit $ac_status )
27575 ac_cv_func_stat_empty_string_bug=yes
27577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27582 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27583 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27584 if test $ac_cv_func_stat_empty_string_bug = yes; then
27585 case " $LIB@&t@OBJS " in
27586 *" stat.$ac_objext "* ) ;;
27587 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27592 cat >>confdefs.h <<_ACEOF
27593 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27599 for ac_func in vprintf
27601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27605 echo $ECHO_N "(cached) $ECHO_C" >&6
27607 cat >conftest.$ac_ext <<_ACEOF
27610 cat confdefs.h >>conftest.$ac_ext
27611 cat >>conftest.$ac_ext <<_ACEOF
27612 /* end confdefs.h. */
27613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27615 #define $ac_func innocuous_$ac_func
27617 /* System header to define __stub macros and hopefully few prototypes,
27618 which can conflict with char $ac_func (); below.
27619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27620 <limits.h> exists even on freestanding compilers. */
27623 # include <limits.h>
27625 # include <assert.h>
27630 /* Override any GCC internal prototype to avoid an error.
27631 Use char because int might match the return type of a GCC
27632 builtin and then its argument prototype would still apply. */
27637 /* The GNU C library defines this for functions which it implements
27638 to always fail with ENOSYS. Some functions are actually named
27639 something starting with __ and the normal name is an alias. */
27640 #if defined __stub_$ac_func || defined __stub___$ac_func
27647 return $ac_func ();
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (ac_try="$ac_link"
27654 case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_link") 2>conftest.er1
27661 grep -v '^ *+' conftest.er1 >conftest.err
27663 cat conftest.err >&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); } && {
27666 test -z "$ac_c_werror_flag" ||
27667 test ! -s conftest.err
27668 } && test -s conftest$ac_exeext &&
27669 $as_test_x conftest$ac_exeext; then
27670 eval "$as_ac_var=yes"
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27675 eval "$as_ac_var=no"
27678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27679 conftest$ac_exeext conftest.$ac_ext
27681 ac_res=`eval echo '${'$as_ac_var'}'`
27682 { echo "$as_me:$LINENO: result: $ac_res" >&5
27683 echo "${ECHO_T}$ac_res" >&6; }
27684 if test `eval echo '${'$as_ac_var'}'` = yes; then
27685 cat >>confdefs.h <<_ACEOF
27686 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27689 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27690 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27691 if test "${ac_cv_func__doprnt+set}" = set; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27694 cat >conftest.$ac_ext <<_ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h. */
27700 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27702 #define _doprnt innocuous__doprnt
27704 /* System header to define __stub macros and hopefully few prototypes,
27705 which can conflict with char _doprnt (); below.
27706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27707 <limits.h> exists even on freestanding compilers. */
27710 # include <limits.h>
27712 # include <assert.h>
27717 /* Override any GCC internal prototype to avoid an error.
27718 Use char because int might match the return type of a GCC
27719 builtin and then its argument prototype would still apply. */
27724 /* The GNU C library defines this for functions which it implements
27725 to always fail with ENOSYS. Some functions are actually named
27726 something starting with __ and the normal name is an alias. */
27727 #if defined __stub__doprnt || defined __stub____doprnt
27739 rm -f conftest.$ac_objext conftest$ac_exeext
27740 if { (ac_try="$ac_link"
27741 case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_link") 2>conftest.er1
27748 grep -v '^ *+' conftest.er1 >conftest.err
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } && {
27753 test -z "$ac_c_werror_flag" ||
27754 test ! -s conftest.err
27755 } && test -s conftest$ac_exeext &&
27756 $as_test_x conftest$ac_exeext; then
27757 ac_cv_func__doprnt=yes
27759 echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27762 ac_cv_func__doprnt=no
27765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27766 conftest$ac_exeext conftest.$ac_ext
27768 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27769 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27770 if test $ac_cv_func__doprnt = yes; then
27772 cat >>confdefs.h <<\_ACEOF
27773 @%:@define HAVE_DOPRNT 1
27811 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27812 gethostbyaddr gethostbyname gethostname getmntent \
27813 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27814 realpath rmdir select socket strcasecmp strchr strdup \
27815 strerror strrchr strtol strtoul sigprocmask
27817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27821 echo $ECHO_N "(cached) $ECHO_C" >&6
27823 cat >conftest.$ac_ext <<_ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h. */
27829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27831 #define $ac_func innocuous_$ac_func
27833 /* System header to define __stub macros and hopefully few prototypes,
27834 which can conflict with char $ac_func (); below.
27835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27836 <limits.h> exists even on freestanding compilers. */
27839 # include <limits.h>
27841 # include <assert.h>
27846 /* Override any GCC internal prototype to avoid an error.
27847 Use char because int might match the return type of a GCC
27848 builtin and then its argument prototype would still apply. */
27853 /* The GNU C library defines this for functions which it implements
27854 to always fail with ENOSYS. Some functions are actually named
27855 something starting with __ and the normal name is an alias. */
27856 #if defined __stub_$ac_func || defined __stub___$ac_func
27863 return $ac_func ();
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (ac_try="$ac_link"
27870 case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_link") 2>conftest.er1
27877 grep -v '^ *+' conftest.er1 >conftest.err
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } && {
27882 test -z "$ac_c_werror_flag" ||
27883 test ! -s conftest.err
27884 } && test -s conftest$ac_exeext &&
27885 $as_test_x conftest$ac_exeext; then
27886 eval "$as_ac_var=yes"
27888 echo "$as_me: failed program was:" >&5
27889 sed 's/^/| /' conftest.$ac_ext >&5
27891 eval "$as_ac_var=no"
27894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27895 conftest$ac_exeext conftest.$ac_ext
27897 ac_res=`eval echo '${'$as_ac_var'}'`
27898 { echo "$as_me:$LINENO: result: $ac_res" >&5
27899 echo "${ECHO_T}$ac_res" >&6; }
27900 if test `eval echo '${'$as_ac_var'}'` = yes; then
27901 cat >>confdefs.h <<_ACEOF
27902 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27910 { echo "$as_me:$LINENO: checking for short" >&5
27911 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27912 if test "${ac_cv_type_short+set}" = set; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27915 cat >conftest.$ac_ext <<_ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h. */
27921 $ac_includes_default
27922 typedef short ac__type_new_;
27926 if ((ac__type_new_ *) 0)
27928 if (sizeof (ac__type_new_))
27934 rm -f conftest.$ac_objext
27935 if { (ac_try="$ac_compile"
27936 case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_compile") 2>conftest.er1
27943 grep -v '^ *+' conftest.er1 >conftest.err
27945 cat conftest.err >&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } && {
27948 test -z "$ac_c_werror_flag" ||
27949 test ! -s conftest.err
27950 } && test -s conftest.$ac_objext; then
27951 ac_cv_type_short=yes
27953 echo "$as_me: failed program was:" >&5
27954 sed 's/^/| /' conftest.$ac_ext >&5
27956 ac_cv_type_short=no
27959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27961 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27962 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27964 # The cast to long int works around a bug in the HP C Compiler
27965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27967 # This bug is HP SR number 8606223364.
27968 { echo "$as_me:$LINENO: checking size of short" >&5
27969 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27970 if test "${ac_cv_sizeof_short+set}" = set; then
27971 echo $ECHO_N "(cached) $ECHO_C" >&6
27973 if test "$cross_compiling" = yes; then
27974 # Depending upon the size, compute the lo and hi bounds.
27975 cat >conftest.$ac_ext <<_ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h. */
27981 $ac_includes_default
27982 typedef short ac__type_sizeof_;
27986 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27987 test_array @<:@0@:>@ = 0
27993 rm -f conftest.$ac_objext
27994 if { (ac_try="$ac_compile"
27995 case "(($ac_try" in
27996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997 *) ac_try_echo=$ac_try;;
27999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000 (eval "$ac_compile") 2>conftest.er1
28002 grep -v '^ *+' conftest.er1 >conftest.err
28004 cat conftest.err >&5
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); } && {
28007 test -z "$ac_c_werror_flag" ||
28008 test ! -s conftest.err
28009 } && test -s conftest.$ac_objext; then
28012 cat >conftest.$ac_ext <<_ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h. */
28018 $ac_includes_default
28019 typedef short ac__type_sizeof_;
28023 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28024 test_array @<:@0@:>@ = 0
28030 rm -f conftest.$ac_objext
28031 if { (ac_try="$ac_compile"
28032 case "(($ac_try" in
28033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28034 *) ac_try_echo=$ac_try;;
28036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28037 (eval "$ac_compile") 2>conftest.er1
28039 grep -v '^ *+' conftest.er1 >conftest.err
28041 cat conftest.err >&5
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); } && {
28044 test -z "$ac_c_werror_flag" ||
28045 test ! -s conftest.err
28046 } && test -s conftest.$ac_objext; then
28047 ac_hi=$ac_mid; break
28049 echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28052 ac_lo=`expr $ac_mid + 1`
28053 if test $ac_lo -le $ac_mid; then
28057 ac_mid=`expr 2 '*' $ac_mid + 1`
28060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28063 echo "$as_me: failed program was:" >&5
28064 sed 's/^/| /' conftest.$ac_ext >&5
28066 cat >conftest.$ac_ext <<_ACEOF
28069 cat confdefs.h >>conftest.$ac_ext
28070 cat >>conftest.$ac_ext <<_ACEOF
28071 /* end confdefs.h. */
28072 $ac_includes_default
28073 typedef short ac__type_sizeof_;
28077 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28078 test_array @<:@0@:>@ = 0
28084 rm -f conftest.$ac_objext
28085 if { (ac_try="$ac_compile"
28086 case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_compile") 2>conftest.er1
28093 grep -v '^ *+' conftest.er1 >conftest.err
28095 cat conftest.err >&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); } && {
28098 test -z "$ac_c_werror_flag" ||
28099 test ! -s conftest.err
28100 } && test -s conftest.$ac_objext; then
28103 cat >conftest.$ac_ext <<_ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h. */
28109 $ac_includes_default
28110 typedef short ac__type_sizeof_;
28114 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28115 test_array @<:@0@:>@ = 0
28121 rm -f conftest.$ac_objext
28122 if { (ac_try="$ac_compile"
28123 case "(($ac_try" in
28124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28125 *) ac_try_echo=$ac_try;;
28127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28128 (eval "$ac_compile") 2>conftest.er1
28130 grep -v '^ *+' conftest.er1 >conftest.err
28132 cat conftest.err >&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } && {
28135 test -z "$ac_c_werror_flag" ||
28136 test ! -s conftest.err
28137 } && test -s conftest.$ac_objext; then
28138 ac_lo=$ac_mid; break
28140 echo "$as_me: failed program was:" >&5
28141 sed 's/^/| /' conftest.$ac_ext >&5
28143 ac_hi=`expr '(' $ac_mid ')' - 1`
28144 if test $ac_mid -le $ac_hi; then
28148 ac_mid=`expr 2 '*' $ac_mid`
28151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28164 # Binary search between lo and hi bounds.
28165 while test "x$ac_lo" != "x$ac_hi"; do
28166 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28167 cat >conftest.$ac_ext <<_ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h. */
28173 $ac_includes_default
28174 typedef short ac__type_sizeof_;
28178 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28179 test_array @<:@0@:>@ = 0
28185 rm -f conftest.$ac_objext
28186 if { (ac_try="$ac_compile"
28187 case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192 (eval "$ac_compile") 2>conftest.er1
28194 grep -v '^ *+' conftest.er1 >conftest.err
28196 cat conftest.err >&5
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); } && {
28199 test -z "$ac_c_werror_flag" ||
28200 test ! -s conftest.err
28201 } && test -s conftest.$ac_objext; then
28204 echo "$as_me: failed program was:" >&5
28205 sed 's/^/| /' conftest.$ac_ext >&5
28207 ac_lo=`expr '(' $ac_mid ')' + 1`
28210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28213 ?*) ac_cv_sizeof_short=$ac_lo;;
28214 '') if test "$ac_cv_type_short" = yes; then
28215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28216 See \`config.log' for more details." >&5
28217 echo "$as_me: error: cannot compute sizeof (short)
28218 See \`config.log' for more details." >&2;}
28219 { (exit 77); exit 77; }; }
28221 ac_cv_sizeof_short=0
28225 cat >conftest.$ac_ext <<_ACEOF
28228 cat confdefs.h >>conftest.$ac_ext
28229 cat >>conftest.$ac_ext <<_ACEOF
28230 /* end confdefs.h. */
28231 $ac_includes_default
28232 typedef short ac__type_sizeof_;
28233 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28234 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28235 @%:@include <stdio.h>
28236 @%:@include <stdlib.h>
28241 FILE *f = fopen ("conftest.val", "w");
28244 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28246 long int i = longval ();
28247 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28249 fprintf (f, "%ld\n", i);
28253 unsigned long int i = ulongval ();
28254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28256 fprintf (f, "%lu\n", i);
28258 return ferror (f) || fclose (f) != 0;
28264 rm -f conftest$ac_exeext
28265 if { (ac_try="$ac_link"
28266 case "(($ac_try" in
28267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_link") 2>&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28275 { (case "(($ac_try" in
28276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28277 *) ac_try_echo=$ac_try;;
28279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28280 (eval "$ac_try") 2>&5
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; }; then
28284 ac_cv_sizeof_short=`cat conftest.val`
28286 echo "$as_me: program exited with status $ac_status" >&5
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28290 ( exit $ac_status )
28291 if test "$ac_cv_type_short" = yes; then
28292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28293 See \`config.log' for more details." >&5
28294 echo "$as_me: error: cannot compute sizeof (short)
28295 See \`config.log' for more details." >&2;}
28296 { (exit 77); exit 77; }; }
28298 ac_cv_sizeof_short=0
28301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28305 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28306 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28310 cat >>confdefs.h <<_ACEOF
28311 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28315 { echo "$as_me:$LINENO: checking for int" >&5
28316 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28317 if test "${ac_cv_type_int+set}" = set; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28320 cat >conftest.$ac_ext <<_ACEOF
28323 cat confdefs.h >>conftest.$ac_ext
28324 cat >>conftest.$ac_ext <<_ACEOF
28325 /* end confdefs.h. */
28326 $ac_includes_default
28327 typedef int ac__type_new_;
28331 if ((ac__type_new_ *) 0)
28333 if (sizeof (ac__type_new_))
28339 rm -f conftest.$ac_objext
28340 if { (ac_try="$ac_compile"
28341 case "(($ac_try" in
28342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343 *) ac_try_echo=$ac_try;;
28345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346 (eval "$ac_compile") 2>conftest.er1
28348 grep -v '^ *+' conftest.er1 >conftest.err
28350 cat conftest.err >&5
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } && {
28353 test -z "$ac_c_werror_flag" ||
28354 test ! -s conftest.err
28355 } && test -s conftest.$ac_objext; then
28358 echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28366 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28367 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28369 # The cast to long int works around a bug in the HP C Compiler
28370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28372 # This bug is HP SR number 8606223364.
28373 { echo "$as_me:$LINENO: checking size of int" >&5
28374 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28375 if test "${ac_cv_sizeof_int+set}" = set; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28378 if test "$cross_compiling" = yes; then
28379 # Depending upon the size, compute the lo and hi bounds.
28380 cat >conftest.$ac_ext <<_ACEOF
28383 cat confdefs.h >>conftest.$ac_ext
28384 cat >>conftest.$ac_ext <<_ACEOF
28385 /* end confdefs.h. */
28386 $ac_includes_default
28387 typedef int ac__type_sizeof_;
28391 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28392 test_array @<:@0@:>@ = 0
28398 rm -f conftest.$ac_objext
28399 if { (ac_try="$ac_compile"
28400 case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_compile") 2>conftest.er1
28407 grep -v '^ *+' conftest.er1 >conftest.err
28409 cat conftest.err >&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } && {
28412 test -z "$ac_c_werror_flag" ||
28413 test ! -s conftest.err
28414 } && test -s conftest.$ac_objext; then
28417 cat >conftest.$ac_ext <<_ACEOF
28420 cat confdefs.h >>conftest.$ac_ext
28421 cat >>conftest.$ac_ext <<_ACEOF
28422 /* end confdefs.h. */
28423 $ac_includes_default
28424 typedef int ac__type_sizeof_;
28428 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28429 test_array @<:@0@:>@ = 0
28435 rm -f conftest.$ac_objext
28436 if { (ac_try="$ac_compile"
28437 case "(($ac_try" in
28438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439 *) ac_try_echo=$ac_try;;
28441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442 (eval "$ac_compile") 2>conftest.er1
28444 grep -v '^ *+' conftest.er1 >conftest.err
28446 cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } && {
28449 test -z "$ac_c_werror_flag" ||
28450 test ! -s conftest.err
28451 } && test -s conftest.$ac_objext; then
28452 ac_hi=$ac_mid; break
28454 echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28457 ac_lo=`expr $ac_mid + 1`
28458 if test $ac_lo -le $ac_mid; then
28462 ac_mid=`expr 2 '*' $ac_mid + 1`
28465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28468 echo "$as_me: failed program was:" >&5
28469 sed 's/^/| /' conftest.$ac_ext >&5
28471 cat >conftest.$ac_ext <<_ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h. */
28477 $ac_includes_default
28478 typedef int ac__type_sizeof_;
28482 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28483 test_array @<:@0@:>@ = 0
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493 *) ac_try_echo=$ac_try;;
28495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28496 (eval "$ac_compile") 2>conftest.er1
28498 grep -v '^ *+' conftest.er1 >conftest.err
28500 cat conftest.err >&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); } && {
28503 test -z "$ac_c_werror_flag" ||
28504 test ! -s conftest.err
28505 } && test -s conftest.$ac_objext; then
28508 cat >conftest.$ac_ext <<_ACEOF
28511 cat confdefs.h >>conftest.$ac_ext
28512 cat >>conftest.$ac_ext <<_ACEOF
28513 /* end confdefs.h. */
28514 $ac_includes_default
28515 typedef int ac__type_sizeof_;
28519 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28520 test_array @<:@0@:>@ = 0
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530 *) ac_try_echo=$ac_try;;
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533 (eval "$ac_compile") 2>conftest.er1
28535 grep -v '^ *+' conftest.er1 >conftest.err
28537 cat conftest.err >&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); } && {
28540 test -z "$ac_c_werror_flag" ||
28541 test ! -s conftest.err
28542 } && test -s conftest.$ac_objext; then
28543 ac_lo=$ac_mid; break
28545 echo "$as_me: failed program was:" >&5
28546 sed 's/^/| /' conftest.$ac_ext >&5
28548 ac_hi=`expr '(' $ac_mid ')' - 1`
28549 if test $ac_mid -le $ac_hi; then
28553 ac_mid=`expr 2 '*' $ac_mid`
28556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28559 echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569 # Binary search between lo and hi bounds.
28570 while test "x$ac_lo" != "x$ac_hi"; do
28571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28572 cat >conftest.$ac_ext <<_ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h. */
28578 $ac_includes_default
28579 typedef int ac__type_sizeof_;
28583 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28584 test_array @<:@0@:>@ = 0
28590 rm -f conftest.$ac_objext
28591 if { (ac_try="$ac_compile"
28592 case "(($ac_try" in
28593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594 *) ac_try_echo=$ac_try;;
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597 (eval "$ac_compile") 2>conftest.er1
28599 grep -v '^ *+' conftest.er1 >conftest.err
28601 cat conftest.err >&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } && {
28604 test -z "$ac_c_werror_flag" ||
28605 test ! -s conftest.err
28606 } && test -s conftest.$ac_objext; then
28609 echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28612 ac_lo=`expr '(' $ac_mid ')' + 1`
28615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28618 ?*) ac_cv_sizeof_int=$ac_lo;;
28619 '') if test "$ac_cv_type_int" = yes; then
28620 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28621 See \`config.log' for more details." >&5
28622 echo "$as_me: error: cannot compute sizeof (int)
28623 See \`config.log' for more details." >&2;}
28624 { (exit 77); exit 77; }; }
28630 cat >conftest.$ac_ext <<_ACEOF
28633 cat confdefs.h >>conftest.$ac_ext
28634 cat >>conftest.$ac_ext <<_ACEOF
28635 /* end confdefs.h. */
28636 $ac_includes_default
28637 typedef int ac__type_sizeof_;
28638 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28639 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28640 @%:@include <stdio.h>
28641 @%:@include <stdlib.h>
28646 FILE *f = fopen ("conftest.val", "w");
28649 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28651 long int i = longval ();
28652 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28654 fprintf (f, "%ld\n", i);
28658 unsigned long int i = ulongval ();
28659 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28661 fprintf (f, "%lu\n", i);
28663 return ferror (f) || fclose (f) != 0;
28669 rm -f conftest$ac_exeext
28670 if { (ac_try="$ac_link"
28671 case "(($ac_try" in
28672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673 *) ac_try_echo=$ac_try;;
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676 (eval "$ac_link") 2>&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28680 { (case "(($ac_try" in
28681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685 (eval "$ac_try") 2>&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; }; then
28689 ac_cv_sizeof_int=`cat conftest.val`
28691 echo "$as_me: program exited with status $ac_status" >&5
28692 echo "$as_me: failed program was:" >&5
28693 sed 's/^/| /' conftest.$ac_ext >&5
28695 ( exit $ac_status )
28696 if test "$ac_cv_type_int" = yes; then
28697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28698 See \`config.log' for more details." >&5
28699 echo "$as_me: error: cannot compute sizeof (int)
28700 See \`config.log' for more details." >&2;}
28701 { (exit 77); exit 77; }; }
28706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28710 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28711 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28715 cat >>confdefs.h <<_ACEOF
28716 @%:@define SIZEOF_INT $ac_cv_sizeof_int
28720 { echo "$as_me:$LINENO: checking for long" >&5
28721 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28722 if test "${ac_cv_type_long+set}" = set; then
28723 echo $ECHO_N "(cached) $ECHO_C" >&6
28725 cat >conftest.$ac_ext <<_ACEOF
28728 cat confdefs.h >>conftest.$ac_ext
28729 cat >>conftest.$ac_ext <<_ACEOF
28730 /* end confdefs.h. */
28731 $ac_includes_default
28732 typedef long ac__type_new_;
28736 if ((ac__type_new_ *) 0)
28738 if (sizeof (ac__type_new_))
28744 rm -f conftest.$ac_objext
28745 if { (ac_try="$ac_compile"
28746 case "(($ac_try" in
28747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748 *) ac_try_echo=$ac_try;;
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751 (eval "$ac_compile") 2>conftest.er1
28753 grep -v '^ *+' conftest.er1 >conftest.err
28755 cat conftest.err >&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); } && {
28758 test -z "$ac_c_werror_flag" ||
28759 test ! -s conftest.err
28760 } && test -s conftest.$ac_objext; then
28761 ac_cv_type_long=yes
28763 echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28771 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28772 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28774 # The cast to long int works around a bug in the HP C Compiler
28775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28777 # This bug is HP SR number 8606223364.
28778 { echo "$as_me:$LINENO: checking size of long" >&5
28779 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28780 if test "${ac_cv_sizeof_long+set}" = set; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28783 if test "$cross_compiling" = yes; then
28784 # Depending upon the size, compute the lo and hi bounds.
28785 cat >conftest.$ac_ext <<_ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h. */
28791 $ac_includes_default
28792 typedef long ac__type_sizeof_;
28796 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28797 test_array @<:@0@:>@ = 0
28803 rm -f conftest.$ac_objext
28804 if { (ac_try="$ac_compile"
28805 case "(($ac_try" in
28806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807 *) ac_try_echo=$ac_try;;
28809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28810 (eval "$ac_compile") 2>conftest.er1
28812 grep -v '^ *+' conftest.er1 >conftest.err
28814 cat conftest.err >&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); } && {
28817 test -z "$ac_c_werror_flag" ||
28818 test ! -s conftest.err
28819 } && test -s conftest.$ac_objext; then
28822 cat >conftest.$ac_ext <<_ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h. */
28828 $ac_includes_default
28829 typedef long ac__type_sizeof_;
28833 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28834 test_array @<:@0@:>@ = 0
28840 rm -f conftest.$ac_objext
28841 if { (ac_try="$ac_compile"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_compile") 2>conftest.er1
28849 grep -v '^ *+' conftest.er1 >conftest.err
28851 cat conftest.err >&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } && {
28854 test -z "$ac_c_werror_flag" ||
28855 test ! -s conftest.err
28856 } && test -s conftest.$ac_objext; then
28857 ac_hi=$ac_mid; break
28859 echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28862 ac_lo=`expr $ac_mid + 1`
28863 if test $ac_lo -le $ac_mid; then
28867 ac_mid=`expr 2 '*' $ac_mid + 1`
28870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28873 echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28876 cat >conftest.$ac_ext <<_ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h. */
28882 $ac_includes_default
28883 typedef long ac__type_sizeof_;
28887 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28888 test_array @<:@0@:>@ = 0
28894 rm -f conftest.$ac_objext
28895 if { (ac_try="$ac_compile"
28896 case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_compile") 2>conftest.er1
28903 grep -v '^ *+' conftest.er1 >conftest.err
28905 cat conftest.err >&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); } && {
28908 test -z "$ac_c_werror_flag" ||
28909 test ! -s conftest.err
28910 } && test -s conftest.$ac_objext; then
28913 cat >conftest.$ac_ext <<_ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h. */
28919 $ac_includes_default
28920 typedef long ac__type_sizeof_;
28924 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28925 test_array @<:@0@:>@ = 0
28931 rm -f conftest.$ac_objext
28932 if { (ac_try="$ac_compile"
28933 case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_compile") 2>conftest.er1
28940 grep -v '^ *+' conftest.er1 >conftest.err
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } && {
28945 test -z "$ac_c_werror_flag" ||
28946 test ! -s conftest.err
28947 } && test -s conftest.$ac_objext; then
28948 ac_lo=$ac_mid; break
28950 echo "$as_me: failed program was:" >&5
28951 sed 's/^/| /' conftest.$ac_ext >&5
28953 ac_hi=`expr '(' $ac_mid ')' - 1`
28954 if test $ac_mid -le $ac_hi; then
28958 ac_mid=`expr 2 '*' $ac_mid`
28961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28964 echo "$as_me: failed program was:" >&5
28965 sed 's/^/| /' conftest.$ac_ext >&5
28970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28974 # Binary search between lo and hi bounds.
28975 while test "x$ac_lo" != "x$ac_hi"; do
28976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28977 cat >conftest.$ac_ext <<_ACEOF
28980 cat confdefs.h >>conftest.$ac_ext
28981 cat >>conftest.$ac_ext <<_ACEOF
28982 /* end confdefs.h. */
28983 $ac_includes_default
28984 typedef long ac__type_sizeof_;
28988 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28989 test_array @<:@0@:>@ = 0
28995 rm -f conftest.$ac_objext
28996 if { (ac_try="$ac_compile"
28997 case "(($ac_try" in
28998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28999 *) ac_try_echo=$ac_try;;
29001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29002 (eval "$ac_compile") 2>conftest.er1
29004 grep -v '^ *+' conftest.er1 >conftest.err
29006 cat conftest.err >&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); } && {
29009 test -z "$ac_c_werror_flag" ||
29010 test ! -s conftest.err
29011 } && test -s conftest.$ac_objext; then
29014 echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29017 ac_lo=`expr '(' $ac_mid ')' + 1`
29020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29023 ?*) ac_cv_sizeof_long=$ac_lo;;
29024 '') if test "$ac_cv_type_long" = yes; then
29025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29026 See \`config.log' for more details." >&5
29027 echo "$as_me: error: cannot compute sizeof (long)
29028 See \`config.log' for more details." >&2;}
29029 { (exit 77); exit 77; }; }
29031 ac_cv_sizeof_long=0
29035 cat >conftest.$ac_ext <<_ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h. */
29041 $ac_includes_default
29042 typedef long ac__type_sizeof_;
29043 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29044 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29045 @%:@include <stdio.h>
29046 @%:@include <stdlib.h>
29051 FILE *f = fopen ("conftest.val", "w");
29054 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29056 long int i = longval ();
29057 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29059 fprintf (f, "%ld\n", i);
29063 unsigned long int i = ulongval ();
29064 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29066 fprintf (f, "%lu\n", i);
29068 return ferror (f) || fclose (f) != 0;
29074 rm -f conftest$ac_exeext
29075 if { (ac_try="$ac_link"
29076 case "(($ac_try" in
29077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078 *) ac_try_echo=$ac_try;;
29080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081 (eval "$ac_link") 2>&5
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29085 { (case "(($ac_try" in
29086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087 *) ac_try_echo=$ac_try;;
29089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29090 (eval "$ac_try") 2>&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; }; then
29094 ac_cv_sizeof_long=`cat conftest.val`
29096 echo "$as_me: program exited with status $ac_status" >&5
29097 echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29100 ( exit $ac_status )
29101 if test "$ac_cv_type_long" = yes; then
29102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29103 See \`config.log' for more details." >&5
29104 echo "$as_me: error: cannot compute sizeof (long)
29105 See \`config.log' for more details." >&2;}
29106 { (exit 77); exit 77; }; }
29108 ac_cv_sizeof_long=0
29111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29116 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29120 cat >>confdefs.h <<_ACEOF
29121 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
29125 { echo "$as_me:$LINENO: checking for size_t" >&5
29126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29127 if test "${ac_cv_type_size_t+set}" = set; then
29128 echo $ECHO_N "(cached) $ECHO_C" >&6
29130 cat >conftest.$ac_ext <<_ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h. */
29136 $ac_includes_default
29137 typedef size_t ac__type_new_;
29141 if ((ac__type_new_ *) 0)
29143 if (sizeof (ac__type_new_))
29149 rm -f conftest.$ac_objext
29150 if { (ac_try="$ac_compile"
29151 case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_compile") 2>conftest.er1
29158 grep -v '^ *+' conftest.er1 >conftest.err
29160 cat conftest.err >&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); } && {
29163 test -z "$ac_c_werror_flag" ||
29164 test ! -s conftest.err
29165 } && test -s conftest.$ac_objext; then
29166 ac_cv_type_size_t=yes
29168 echo "$as_me: failed program was:" >&5
29169 sed 's/^/| /' conftest.$ac_ext >&5
29171 ac_cv_type_size_t=no
29174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29176 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29177 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29179 # The cast to long int works around a bug in the HP C Compiler
29180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29182 # This bug is HP SR number 8606223364.
29183 { echo "$as_me:$LINENO: checking size of size_t" >&5
29184 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29185 if test "${ac_cv_sizeof_size_t+set}" = set; then
29186 echo $ECHO_N "(cached) $ECHO_C" >&6
29188 if test "$cross_compiling" = yes; then
29189 # Depending upon the size, compute the lo and hi bounds.
29190 cat >conftest.$ac_ext <<_ACEOF
29193 cat confdefs.h >>conftest.$ac_ext
29194 cat >>conftest.$ac_ext <<_ACEOF
29195 /* end confdefs.h. */
29196 $ac_includes_default
29197 typedef size_t ac__type_sizeof_;
29201 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29202 test_array @<:@0@:>@ = 0
29208 rm -f conftest.$ac_objext
29209 if { (ac_try="$ac_compile"
29210 case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215 (eval "$ac_compile") 2>conftest.er1
29217 grep -v '^ *+' conftest.er1 >conftest.err
29219 cat conftest.err >&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } && {
29222 test -z "$ac_c_werror_flag" ||
29223 test ! -s conftest.err
29224 } && test -s conftest.$ac_objext; then
29227 cat >conftest.$ac_ext <<_ACEOF
29230 cat confdefs.h >>conftest.$ac_ext
29231 cat >>conftest.$ac_ext <<_ACEOF
29232 /* end confdefs.h. */
29233 $ac_includes_default
29234 typedef size_t ac__type_sizeof_;
29238 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29239 test_array @<:@0@:>@ = 0
29245 rm -f conftest.$ac_objext
29246 if { (ac_try="$ac_compile"
29247 case "(($ac_try" in
29248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249 *) ac_try_echo=$ac_try;;
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_compile") 2>conftest.er1
29254 grep -v '^ *+' conftest.er1 >conftest.err
29256 cat conftest.err >&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); } && {
29259 test -z "$ac_c_werror_flag" ||
29260 test ! -s conftest.err
29261 } && test -s conftest.$ac_objext; then
29262 ac_hi=$ac_mid; break
29264 echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.$ac_ext >&5
29267 ac_lo=`expr $ac_mid + 1`
29268 if test $ac_lo -le $ac_mid; then
29272 ac_mid=`expr 2 '*' $ac_mid + 1`
29275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29278 echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29281 cat >conftest.$ac_ext <<_ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h. */
29287 $ac_includes_default
29288 typedef size_t ac__type_sizeof_;
29292 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29293 test_array @<:@0@:>@ = 0
29299 rm -f conftest.$ac_objext
29300 if { (ac_try="$ac_compile"
29301 case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_compile") 2>conftest.er1
29308 grep -v '^ *+' conftest.er1 >conftest.err
29310 cat conftest.err >&5
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } && {
29313 test -z "$ac_c_werror_flag" ||
29314 test ! -s conftest.err
29315 } && test -s conftest.$ac_objext; then
29318 cat >conftest.$ac_ext <<_ACEOF
29321 cat confdefs.h >>conftest.$ac_ext
29322 cat >>conftest.$ac_ext <<_ACEOF
29323 /* end confdefs.h. */
29324 $ac_includes_default
29325 typedef size_t ac__type_sizeof_;
29329 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29330 test_array @<:@0@:>@ = 0
29336 rm -f conftest.$ac_objext
29337 if { (ac_try="$ac_compile"
29338 case "(($ac_try" in
29339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29340 *) ac_try_echo=$ac_try;;
29342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29343 (eval "$ac_compile") 2>conftest.er1
29345 grep -v '^ *+' conftest.er1 >conftest.err
29347 cat conftest.err >&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } && {
29350 test -z "$ac_c_werror_flag" ||
29351 test ! -s conftest.err
29352 } && test -s conftest.$ac_objext; then
29353 ac_lo=$ac_mid; break
29355 echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29358 ac_hi=`expr '(' $ac_mid ')' - 1`
29359 if test $ac_mid -le $ac_hi; then
29363 ac_mid=`expr 2 '*' $ac_mid`
29366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29369 echo "$as_me: failed program was:" >&5
29370 sed 's/^/| /' conftest.$ac_ext >&5
29375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29379 # Binary search between lo and hi bounds.
29380 while test "x$ac_lo" != "x$ac_hi"; do
29381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29382 cat >conftest.$ac_ext <<_ACEOF
29385 cat confdefs.h >>conftest.$ac_ext
29386 cat >>conftest.$ac_ext <<_ACEOF
29387 /* end confdefs.h. */
29388 $ac_includes_default
29389 typedef size_t ac__type_sizeof_;
29393 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29394 test_array @<:@0@:>@ = 0
29400 rm -f conftest.$ac_objext
29401 if { (ac_try="$ac_compile"
29402 case "(($ac_try" in
29403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29404 *) ac_try_echo=$ac_try;;
29406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29407 (eval "$ac_compile") 2>conftest.er1
29409 grep -v '^ *+' conftest.er1 >conftest.err
29411 cat conftest.err >&5
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); } && {
29414 test -z "$ac_c_werror_flag" ||
29415 test ! -s conftest.err
29416 } && test -s conftest.$ac_objext; then
29419 echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29422 ac_lo=`expr '(' $ac_mid ')' + 1`
29425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29428 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29429 '') if test "$ac_cv_type_size_t" = yes; then
29430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29431 See \`config.log' for more details." >&5
29432 echo "$as_me: error: cannot compute sizeof (size_t)
29433 See \`config.log' for more details." >&2;}
29434 { (exit 77); exit 77; }; }
29436 ac_cv_sizeof_size_t=0
29440 cat >conftest.$ac_ext <<_ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h. */
29446 $ac_includes_default
29447 typedef size_t ac__type_sizeof_;
29448 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29449 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29450 @%:@include <stdio.h>
29451 @%:@include <stdlib.h>
29456 FILE *f = fopen ("conftest.val", "w");
29459 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29461 long int i = longval ();
29462 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29464 fprintf (f, "%ld\n", i);
29468 unsigned long int i = ulongval ();
29469 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29471 fprintf (f, "%lu\n", i);
29473 return ferror (f) || fclose (f) != 0;
29479 rm -f conftest$ac_exeext
29480 if { (ac_try="$ac_link"
29481 case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_link") 2>&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29490 { (case "(($ac_try" in
29491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29492 *) ac_try_echo=$ac_try;;
29494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29495 (eval "$ac_try") 2>&5
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; }; then
29499 ac_cv_sizeof_size_t=`cat conftest.val`
29501 echo "$as_me: program exited with status $ac_status" >&5
29502 echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29505 ( exit $ac_status )
29506 if test "$ac_cv_type_size_t" = yes; then
29507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29508 See \`config.log' for more details." >&5
29509 echo "$as_me: error: cannot compute sizeof (size_t)
29510 See \`config.log' for more details." >&2;}
29511 { (exit 77); exit 77; }; }
29513 ac_cv_sizeof_size_t=0
29516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29520 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29521 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29525 cat >>confdefs.h <<_ACEOF
29526 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29530 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29531 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29532 if test "${ac_cv_type_socklen_t+set}" = set; then
29533 echo $ECHO_N "(cached) $ECHO_C" >&6
29535 cat >conftest.$ac_ext <<_ACEOF
29538 cat confdefs.h >>conftest.$ac_ext
29539 cat >>conftest.$ac_ext <<_ACEOF
29540 /* end confdefs.h. */
29541 $ac_includes_default
29542 typedef socklen_t ac__type_new_;
29546 if ((ac__type_new_ *) 0)
29548 if (sizeof (ac__type_new_))
29554 rm -f conftest.$ac_objext
29555 if { (ac_try="$ac_compile"
29556 case "(($ac_try" in
29557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558 *) ac_try_echo=$ac_try;;
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561 (eval "$ac_compile") 2>conftest.er1
29563 grep -v '^ *+' conftest.er1 >conftest.err
29565 cat conftest.err >&5
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); } && {
29568 test -z "$ac_c_werror_flag" ||
29569 test ! -s conftest.err
29570 } && test -s conftest.$ac_objext; then
29571 ac_cv_type_socklen_t=yes
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29576 ac_cv_type_socklen_t=no
29579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29581 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29582 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29584 # The cast to long int works around a bug in the HP C Compiler
29585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29587 # This bug is HP SR number 8606223364.
29588 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29589 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29590 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29593 if test "$cross_compiling" = yes; then
29594 # Depending upon the size, compute the lo and hi bounds.
29595 cat >conftest.$ac_ext <<_ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h. */
29601 $ac_includes_default
29602 typedef socklen_t ac__type_sizeof_;
29606 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29607 test_array @<:@0@:>@ = 0
29613 rm -f conftest.$ac_objext
29614 if { (ac_try="$ac_compile"
29615 case "(($ac_try" in
29616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29617 *) ac_try_echo=$ac_try;;
29619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29620 (eval "$ac_compile") 2>conftest.er1
29622 grep -v '^ *+' conftest.er1 >conftest.err
29624 cat conftest.err >&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } && {
29627 test -z "$ac_c_werror_flag" ||
29628 test ! -s conftest.err
29629 } && test -s conftest.$ac_objext; then
29632 cat >conftest.$ac_ext <<_ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h. */
29638 $ac_includes_default
29639 typedef socklen_t ac__type_sizeof_;
29643 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29644 test_array @<:@0@:>@ = 0
29650 rm -f conftest.$ac_objext
29651 if { (ac_try="$ac_compile"
29652 case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_compile") 2>conftest.er1
29659 grep -v '^ *+' conftest.er1 >conftest.err
29661 cat conftest.err >&5
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } && {
29664 test -z "$ac_c_werror_flag" ||
29665 test ! -s conftest.err
29666 } && test -s conftest.$ac_objext; then
29667 ac_hi=$ac_mid; break
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 ac_lo=`expr $ac_mid + 1`
29673 if test $ac_lo -le $ac_mid; then
29677 ac_mid=`expr 2 '*' $ac_mid + 1`
29680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29683 echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29686 cat >conftest.$ac_ext <<_ACEOF
29689 cat confdefs.h >>conftest.$ac_ext
29690 cat >>conftest.$ac_ext <<_ACEOF
29691 /* end confdefs.h. */
29692 $ac_includes_default
29693 typedef socklen_t ac__type_sizeof_;
29697 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29698 test_array @<:@0@:>@ = 0
29704 rm -f conftest.$ac_objext
29705 if { (ac_try="$ac_compile"
29706 case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_compile") 2>conftest.er1
29713 grep -v '^ *+' conftest.er1 >conftest.err
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } && {
29718 test -z "$ac_c_werror_flag" ||
29719 test ! -s conftest.err
29720 } && test -s conftest.$ac_objext; then
29723 cat >conftest.$ac_ext <<_ACEOF
29726 cat confdefs.h >>conftest.$ac_ext
29727 cat >>conftest.$ac_ext <<_ACEOF
29728 /* end confdefs.h. */
29729 $ac_includes_default
29730 typedef socklen_t ac__type_sizeof_;
29734 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29735 test_array @<:@0@:>@ = 0
29741 rm -f conftest.$ac_objext
29742 if { (ac_try="$ac_compile"
29743 case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748 (eval "$ac_compile") 2>conftest.er1
29750 grep -v '^ *+' conftest.er1 >conftest.err
29752 cat conftest.err >&5
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); } && {
29755 test -z "$ac_c_werror_flag" ||
29756 test ! -s conftest.err
29757 } && test -s conftest.$ac_objext; then
29758 ac_lo=$ac_mid; break
29760 echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29763 ac_hi=`expr '(' $ac_mid ')' - 1`
29764 if test $ac_mid -le $ac_hi; then
29768 ac_mid=`expr 2 '*' $ac_mid`
29771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29774 echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29784 # Binary search between lo and hi bounds.
29785 while test "x$ac_lo" != "x$ac_hi"; do
29786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29787 cat >conftest.$ac_ext <<_ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h. */
29793 $ac_includes_default
29794 typedef socklen_t ac__type_sizeof_;
29798 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29799 test_array @<:@0@:>@ = 0
29805 rm -f conftest.$ac_objext
29806 if { (ac_try="$ac_compile"
29807 case "(($ac_try" in
29808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809 *) ac_try_echo=$ac_try;;
29811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812 (eval "$ac_compile") 2>conftest.er1
29814 grep -v '^ *+' conftest.er1 >conftest.err
29816 cat conftest.err >&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); } && {
29819 test -z "$ac_c_werror_flag" ||
29820 test ! -s conftest.err
29821 } && test -s conftest.$ac_objext; then
29824 echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29827 ac_lo=`expr '(' $ac_mid ')' + 1`
29830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29833 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29834 '') if test "$ac_cv_type_socklen_t" = yes; then
29835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29836 See \`config.log' for more details." >&5
29837 echo "$as_me: error: cannot compute sizeof (socklen_t)
29838 See \`config.log' for more details." >&2;}
29839 { (exit 77); exit 77; }; }
29841 ac_cv_sizeof_socklen_t=0
29845 cat >conftest.$ac_ext <<_ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h. */
29851 $ac_includes_default
29852 typedef socklen_t ac__type_sizeof_;
29853 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29854 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29855 @%:@include <stdio.h>
29856 @%:@include <stdlib.h>
29861 FILE *f = fopen ("conftest.val", "w");
29864 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29866 long int i = longval ();
29867 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29869 fprintf (f, "%ld\n", i);
29873 unsigned long int i = ulongval ();
29874 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29876 fprintf (f, "%lu\n", i);
29878 return ferror (f) || fclose (f) != 0;
29884 rm -f conftest$ac_exeext
29885 if { (ac_try="$ac_link"
29886 case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891 (eval "$ac_link") 2>&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29895 { (case "(($ac_try" in
29896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_try") 2>&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
29904 ac_cv_sizeof_socklen_t=`cat conftest.val`
29906 echo "$as_me: program exited with status $ac_status" >&5
29907 echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29910 ( exit $ac_status )
29911 if test "$ac_cv_type_socklen_t" = yes; then
29912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29913 See \`config.log' for more details." >&5
29914 echo "$as_me: error: cannot compute sizeof (socklen_t)
29915 See \`config.log' for more details." >&2;}
29916 { (exit 77); exit 77; }; }
29918 ac_cv_sizeof_socklen_t=0
29921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29926 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29930 cat >>confdefs.h <<_ACEOF
29931 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29938 cat >>confdefs.h <<_ACEOF
29939 @%:@define NFS_STATEDIR "$statedir"
29943 if test "x$cross_compiling" = "xno"; then
29944 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29945 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29946 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29947 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29949 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29950 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29951 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29952 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29970 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29972 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29974 AM_CFLAGS="$my_am_cflags"
29977 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29978 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29981 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"
29983 cat >confcache <<\_ACEOF
29984 # This file is a shell script that caches the results of configure
29985 # tests run on this system so they can be shared between configure
29986 # scripts and configure runs, see configure's option --config-cache.
29987 # It is not useful on other systems. If it contains results you don't
29988 # want to keep, you may remove or edit it.
29990 # config.status only pays attention to the cache file if you give it
29991 # the --recheck option to rerun configure.
29993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29995 # following values.
29999 # The following way of writing the cache mishandles newlines in values,
30000 # but we know of no workaround that is simple, portable, and efficient.
30001 # So, we kill variables containing newlines.
30002 # Ultrix sh set writes to stderr and can't be redirected directly,
30003 # and sets the high bit in the cache file unless we assign to the vars.
30005 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30006 eval ac_val=\$$ac_var
30010 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30011 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30014 _ | IFS | as_nl) ;; #(
30015 *) $as_unset $ac_var ;;
30021 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30022 *${as_nl}ac_space=\ *)
30023 # `set' does not quote correctly, so add quotes (double-quote
30024 # substitution turns \\\\ into \\, and sed turns \\ into \).
30027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30030 # `set' quotes correctly as required by POSIX, so do not add quotes.
30031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30045 if test -w "$cache_file"; then
30046 test "x$cache_file" != "x/dev/null" &&
30047 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30048 echo "$as_me: updating cache $cache_file" >&6;}
30049 cat confcache >$cache_file
30051 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30052 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30058 # Let make expand exec_prefix.
30059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30061 DEFS=-DHAVE_CONFIG_H
30065 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30066 # 1. Remove the extension, and $U if already installed.
30067 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30068 ac_i=`echo "$ac_i" | sed "$ac_script"`
30069 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30070 # will be set to the directory where LIBOBJS objects are built.
30071 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30072 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30074 LIB@&t@OBJS=$ac_libobjs
30076 LTLIBOBJS=$ac_ltlibobjs
30079 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30080 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30081 Usually this means the macro was only invoked conditionally." >&5
30082 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30083 Usually this means the macro was only invoked conditionally." >&2;}
30084 { (exit 1); exit 1; }; }
30086 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30087 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30088 Usually this means the macro was only invoked conditionally." >&5
30089 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30090 Usually this means the macro was only invoked conditionally." >&2;}
30091 { (exit 1); exit 1; }; }
30093 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30094 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30095 Usually this means the macro was only invoked conditionally." >&5
30096 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30097 Usually this means the macro was only invoked conditionally." >&2;}
30098 { (exit 1); exit 1; }; }
30100 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30101 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30102 Usually this means the macro was only invoked conditionally." >&5
30103 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30104 Usually this means the macro was only invoked conditionally." >&2;}
30105 { (exit 1); exit 1; }; }
30107 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30108 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30109 Usually this means the macro was only invoked conditionally." >&5
30110 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30111 Usually this means the macro was only invoked conditionally." >&2;}
30112 { (exit 1); exit 1; }; }
30114 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30115 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30116 Usually this means the macro was only invoked conditionally." >&5
30117 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30118 Usually this means the macro was only invoked conditionally." >&2;}
30119 { (exit 1); exit 1; }; }
30121 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30122 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30123 Usually this means the macro was only invoked conditionally." >&5
30124 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30125 Usually this means the macro was only invoked conditionally." >&2;}
30126 { (exit 1); exit 1; }; }
30128 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30129 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30130 Usually this means the macro was only invoked conditionally." >&5
30131 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30132 Usually this means the macro was only invoked conditionally." >&2;}
30133 { (exit 1); exit 1; }; }
30135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30136 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30137 Usually this means the macro was only invoked conditionally." >&5
30138 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30139 Usually this means the macro was only invoked conditionally." >&2;}
30140 { (exit 1); exit 1; }; }
30143 : ${CONFIG_STATUS=./config.status}
30144 ac_clean_files_save=$ac_clean_files
30145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30146 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30147 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30148 cat >$CONFIG_STATUS <<_ACEOF
30150 # Generated by $as_me.
30151 # Run this file to recreate the current configuration.
30152 # Compiler output produced by configure, useful for debugging
30153 # configure, is in config.log if it exists.
30156 ac_cs_recheck=false
30158 SHELL=\${CONFIG_SHELL-$SHELL}
30161 cat >>$CONFIG_STATUS <<\_ACEOF
30162 ## --------------------- ##
30163 ## M4sh Initialization. ##
30164 ## --------------------- ##
30166 # Be more Bourne compatible
30167 DUALCASE=1; export DUALCASE # for MKS sh
30168 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30171 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30172 # is contrary to our usage. Disable this feature.
30173 alias -g '${1+"$@"}'='"$@"'
30174 setopt NO_GLOB_SUBST
30176 case `(set -o) 2>/dev/null` in
30177 *posix*) set -o posix ;;
30186 # Avoid depending upon Character Ranges.
30187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30190 as_cr_digits='0123456789'
30191 as_cr_alnum=$as_cr_Letters$as_cr_digits
30193 # The user is always right.
30194 if test "${PATH_SEPARATOR+set}" != set; then
30195 echo "#! /bin/sh" >conf$$.sh
30196 echo "exit 0" >>conf$$.sh
30198 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30206 # Support unset when possible.
30207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30215 # We need space, tab and new line, in precisely that order. Quoting is
30216 # there to prevent editors from complaining about space-tab.
30217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30218 # splitting by setting IFS to empty value.)
30223 # Find who we are. Look in the path if we contain no directory separator.
30225 *[\\/]* ) as_myself=$0 ;;
30226 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30227 for as_dir in $PATH
30230 test -z "$as_dir" && as_dir=.
30231 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30237 # We did not find ourselves, most probably we were run as `sh COMMAND'
30238 # in which case we are not to be found in the path.
30239 if test "x$as_myself" = x; then
30242 if test ! -f "$as_myself"; then
30243 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30244 { (exit 1); exit 1; }
30247 # Work around bugs in pre-3.0 UWIN ksh.
30248 for as_var in ENV MAIL MAILPATH
30249 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30257 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30258 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30259 LC_TELEPHONE LC_TIME
30261 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30262 eval $as_var=C; export $as_var
30264 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30268 # Required to use basename.
30269 if expr a : '\(a\)' >/dev/null 2>&1 &&
30270 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30276 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30277 as_basename=basename
30283 # Name of the executable.
30284 as_me=`$as_basename -- "$0" ||
30285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30286 X"$0" : 'X\(//\)$' \| \
30287 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30289 sed '/^.*\/\([^/][^/]*\)\/*$/{
30308 as_lineno_1=$LINENO
30309 as_lineno_2=$LINENO
30310 test "x$as_lineno_1" != "x$as_lineno_2" &&
30311 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30313 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30314 # uniformly replaced by the line number. The first 'sed' inserts a
30315 # line-number line after each line using $LINENO; the second 'sed'
30316 # does the real work. The second script uses 'N' to pair each
30317 # line-number line with the line containing $LINENO, and appends
30318 # trailing '-' during substitution so that $LINENO is not a special
30319 # case at line end.
30320 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30321 # scripts with optimization help from Paolo Bonzini. Blame Lee
30322 # E. McMahon (1931-1989) for sed's syntax. :-)
30334 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30337 ' >$as_me.lineno &&
30338 chmod +x "$as_me.lineno" ||
30339 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30340 { (exit 1); exit 1; }; }
30342 # Don't try to exec as it changes $[0], causing all sort of problems
30343 # (the dirname of $[0] is not the place where we might find the
30344 # original and so on. Autoconf is especially sensitive to this).
30345 . "./$as_me.lineno"
30346 # Exit status is that of the last command.
30351 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30357 ECHO_C= ECHO_N= ECHO_T=
30358 case `echo -n x` in
30360 case `echo 'x\c'` in
30361 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30368 if expr a : '\(a\)' >/dev/null 2>&1 &&
30369 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30375 rm -f conf$$ conf$$.exe conf$$.file
30376 if test -d conf$$.dir; then
30377 rm -f conf$$.dir/conf$$.file
30383 if ln -s conf$$.file conf$$ 2>/dev/null; then
30385 # ... but there are two gotchas:
30386 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30387 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30388 # In both cases, we have to default to `cp -p'.
30389 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30391 elif ln conf$$.file conf$$ 2>/dev/null; then
30396 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30397 rmdir conf$$.dir 2>/dev/null
30399 if mkdir -p . 2>/dev/null; then
30402 test -d ./-p && rmdir ./-p
30406 if test -x / >/dev/null 2>&1; then
30407 as_test_x='test -x'
30409 if ls -dL / >/dev/null 2>&1; then
30416 if test -d "$1"; then
30422 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30423 ???[sx]*):;;*)false;;esac;fi
30427 as_executable_p=$as_test_x
30429 # Sed expression to map a string onto a valid CPP name.
30430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30432 # Sed expression to map a string onto a valid variable name.
30433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30438 # Save the log message, to keep $[0] and so on meaningful, and to
30439 # report actual input values of CONFIG_FILES etc. instead of their
30440 # values after options handling.
30442 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30443 generated by GNU Autoconf 2.61. Invocation command line was
30445 CONFIG_FILES = $CONFIG_FILES
30446 CONFIG_HEADERS = $CONFIG_HEADERS
30447 CONFIG_LINKS = $CONFIG_LINKS
30448 CONFIG_COMMANDS = $CONFIG_COMMANDS
30451 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30456 cat >>$CONFIG_STATUS <<_ACEOF
30457 # Files that config.status was made for.
30458 config_files="$ac_config_files"
30459 config_headers="$ac_config_headers"
30460 config_commands="$ac_config_commands"
30464 cat >>$CONFIG_STATUS <<\_ACEOF
30466 \`$as_me' instantiates files from templates according to the
30467 current configuration.
30469 Usage: $0 [OPTIONS] [FILE]...
30471 -h, --help print this help, then exit
30472 -V, --version print version number and configuration settings, then exit
30473 -q, --quiet do not print progress messages
30474 -d, --debug don't remove temporary files
30475 --recheck update $as_me by reconfiguring in the same conditions
30476 --file=FILE[:TEMPLATE]
30477 instantiate the configuration file FILE
30478 --header=FILE[:TEMPLATE]
30479 instantiate the configuration header FILE
30481 Configuration files:
30484 Configuration headers:
30487 Configuration commands:
30490 Report bugs to <bug-autoconf@gnu.org>."
30493 cat >>$CONFIG_STATUS <<_ACEOF
30495 linux nfs-utils config.status 1.1.0
30496 configured by $0, generated by GNU Autoconf 2.61,
30497 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30499 Copyright (C) 2006 Free Software Foundation, Inc.
30500 This config.status script is free software; the Free Software Foundation
30501 gives unlimited permission to copy, distribute and modify it."
30508 cat >>$CONFIG_STATUS <<\_ACEOF
30509 # If no file are specified by the user, then we need to provide default
30510 # value. By we need to know if files were specified by the user.
30516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30528 # Handling of the options.
30529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30532 echo "$ac_cs_version"; exit ;;
30533 --debug | --debu | --deb | --de | --d | -d )
30535 --file | --fil | --fi | --f )
30537 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30538 ac_need_defaults=false;;
30539 --header | --heade | --head | --hea )
30541 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30542 ac_need_defaults=false;;
30544 # Conflict between --help and --header
30545 { echo "$as_me: error: ambiguous option: $1
30546 Try \`$0 --help' for more information." >&2
30547 { (exit 1); exit 1; }; };;
30548 --help | --hel | -h )
30549 echo "$ac_cs_usage"; exit ;;
30550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30551 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30554 # This is an error.
30555 -*) { echo "$as_me: error: unrecognized option: $1
30556 Try \`$0 --help' for more information." >&2
30557 { (exit 1); exit 1; }; } ;;
30559 *) ac_config_targets="$ac_config_targets $1"
30560 ac_need_defaults=false ;;
30566 ac_configure_extra_args=
30568 if $ac_cs_silent; then
30570 ac_configure_extra_args="$ac_configure_extra_args --silent"
30574 cat >>$CONFIG_STATUS <<_ACEOF
30575 if \$ac_cs_recheck; then
30576 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30577 CONFIG_SHELL=$SHELL
30578 export CONFIG_SHELL
30579 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30583 cat >>$CONFIG_STATUS <<\_ACEOF
30587 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30588 @%:@@%:@ Running $as_me. @%:@@%:@
30594 cat >>$CONFIG_STATUS <<_ACEOF
30598 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30602 cat >>$CONFIG_STATUS <<\_ACEOF
30604 # Handling of arguments.
30605 for ac_config_target in $ac_config_targets
30607 case $ac_config_target in
30608 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30609 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30611 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30612 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30613 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30614 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30615 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30616 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30617 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30618 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30619 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30620 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30621 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30622 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30623 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30624 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30625 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30626 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30627 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30628 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30629 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30630 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30631 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30632 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30633 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30634 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30635 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30637 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30638 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30639 { (exit 1); exit 1; }; };;
30644 # If the user did not use the arguments to specify the items to instantiate,
30645 # then the envvar interface is used. Set only those that are not.
30646 # We use the long form for the default assignment because of an extremely
30647 # bizarre bug on SunOS 4.1.3.
30648 if $ac_need_defaults; then
30649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30654 # Have a temporary directory for convenience. Make it in the build tree
30655 # simply because there is no reason against having it here, and in addition,
30656 # creating and moving files from /tmp can sometimes cause problems.
30657 # Hook for its removal unless debugging.
30658 # Note that there is a small window in which the directory will not be cleaned:
30659 # after its creation but before its name has been assigned to `$tmp'.
30663 trap 'exit_status=$?
30664 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30666 trap '{ (exit 1); exit 1; }' 1 2 13 15
30668 # Create a (secure) tmp directory for tmp files.
30671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30672 test -n "$tmp" && test -d "$tmp"
30675 tmp=./conf$$-$RANDOM
30676 (umask 077 && mkdir "$tmp")
30679 echo "$me: cannot create a temporary directory in ." >&2
30680 { (exit 1); exit 1; }
30684 # Set up the sed scripts for CONFIG_FILES section.
30687 # No need to generate the scripts if there are no CONFIG_FILES.
30688 # This happens for instance when ./config.status config.h
30689 if test -n "$CONFIG_FILES"; then
30696 for ac_last_try in false false false false false :; do
30697 cat >conf$$subs.sed <<_ACEOF
30698 SHELL!$SHELL$ac_delim
30699 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30700 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30701 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30702 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30703 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30704 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30705 exec_prefix!$exec_prefix$ac_delim
30706 prefix!$prefix$ac_delim
30707 program_transform_name!$program_transform_name$ac_delim
30708 bindir!$bindir$ac_delim
30709 sbindir!$sbindir$ac_delim
30710 libexecdir!$libexecdir$ac_delim
30711 datarootdir!$datarootdir$ac_delim
30712 datadir!$datadir$ac_delim
30713 sysconfdir!$sysconfdir$ac_delim
30714 sharedstatedir!$sharedstatedir$ac_delim
30715 localstatedir!$localstatedir$ac_delim
30716 includedir!$includedir$ac_delim
30717 oldincludedir!$oldincludedir$ac_delim
30718 docdir!$docdir$ac_delim
30719 infodir!$infodir$ac_delim
30720 htmldir!$htmldir$ac_delim
30721 dvidir!$dvidir$ac_delim
30722 pdfdir!$pdfdir$ac_delim
30723 psdir!$psdir$ac_delim
30724 libdir!$libdir$ac_delim
30725 localedir!$localedir$ac_delim
30726 mandir!$mandir$ac_delim
30727 DEFS!$DEFS$ac_delim
30728 ECHO_C!$ECHO_C$ac_delim
30729 ECHO_N!$ECHO_N$ac_delim
30730 ECHO_T!$ECHO_T$ac_delim
30731 LIBS!$LIBS$ac_delim
30732 build_alias!$build_alias$ac_delim
30733 host_alias!$host_alias$ac_delim
30734 target_alias!$target_alias$ac_delim
30735 build!$build$ac_delim
30736 build_cpu!$build_cpu$ac_delim
30737 build_vendor!$build_vendor$ac_delim
30738 build_os!$build_os$ac_delim
30739 host!$host$ac_delim
30740 host_cpu!$host_cpu$ac_delim
30741 host_vendor!$host_vendor$ac_delim
30742 host_os!$host_os$ac_delim
30743 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30744 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30745 INSTALL_DATA!$INSTALL_DATA$ac_delim
30746 CYGPATH_W!$CYGPATH_W$ac_delim
30747 PACKAGE!$PACKAGE$ac_delim
30748 VERSION!$VERSION$ac_delim
30749 ACLOCAL!$ACLOCAL$ac_delim
30750 AUTOCONF!$AUTOCONF$ac_delim
30751 AUTOMAKE!$AUTOMAKE$ac_delim
30752 AUTOHEADER!$AUTOHEADER$ac_delim
30753 MAKEINFO!$MAKEINFO$ac_delim
30754 install_sh!$install_sh$ac_delim
30755 STRIP!$STRIP$ac_delim
30756 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30757 mkdir_p!$mkdir_p$ac_delim
30759 SET_MAKE!$SET_MAKE$ac_delim
30760 am__leading_dot!$am__leading_dot$ac_delim
30761 AMTAR!$AMTAR$ac_delim
30762 am__tar!$am__tar$ac_delim
30763 am__untar!$am__untar$ac_delim
30764 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30765 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30766 MAINT!$MAINT$ac_delim
30767 RELEASE!$RELEASE$ac_delim
30768 statedir!$statedir$ac_delim
30769 statduser!$statduser$ac_delim
30770 startstatd!$startstatd$ac_delim
30771 enable_nfsv3!$enable_nfsv3$ac_delim
30772 IDMAPD!$IDMAPD$ac_delim
30773 enable_nfsv4!$enable_nfsv4$ac_delim
30774 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30775 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30776 GSSD!$GSSD$ac_delim
30777 SVCGSSD!$SVCGSSD$ac_delim
30778 enable_gss!$enable_gss$ac_delim
30779 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30780 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30781 kprefix!$kprefix$ac_delim
30782 secure_statd!$secure_statd$ac_delim
30783 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30784 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30785 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30786 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30787 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30789 CFLAGS!$CFLAGS$ac_delim
30790 LDFLAGS!$LDFLAGS$ac_delim
30791 CPPFLAGS!$CPPFLAGS$ac_delim
30792 ac_ct_CC!$ac_ct_CC$ac_delim
30793 EXEEXT!$EXEEXT$ac_delim
30794 OBJEXT!$OBJEXT$ac_delim
30797 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30799 elif $ac_last_try; then
30800 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30802 { (exit 1); exit 1; }; }
30804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30809 if test -n "$ac_eof"; then
30810 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30811 ac_eof=`expr $ac_eof + 1`
30814 cat >>$CONFIG_STATUS <<_ACEOF
30815 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30820 s/^/s,@/; s/!/@,|#_!!_#|/
30823 s/'"$ac_delim"'$/,g/; t
30825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30826 ' >>$CONFIG_STATUS <conf$$subs.sed
30827 rm -f conf$$subs.sed
30828 cat >>$CONFIG_STATUS <<_ACEOF
30834 for ac_last_try in false false false false false :; do
30835 cat >conf$$subs.sed <<_ACEOF
30836 DEPDIR!$DEPDIR$ac_delim
30837 am__include!$am__include$ac_delim
30838 am__quote!$am__quote$ac_delim
30839 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30840 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30841 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30842 CCDEPMODE!$CCDEPMODE$ac_delim
30843 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30844 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30845 LIBWRAP!$LIBWRAP$ac_delim
30846 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30847 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30849 CXXFLAGS!$CXXFLAGS$ac_delim
30850 ac_ct_CXX!$ac_ct_CXX$ac_delim
30851 CXXDEPMODE!$CXXDEPMODE$ac_delim
30852 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30853 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30855 LN_S!$LN_S$ac_delim
30857 GREP!$GREP$ac_delim
30858 EGREP!$EGREP$ac_delim
30859 ECHO!$ECHO$ac_delim
30861 RANLIB!$RANLIB$ac_delim
30862 CXXCPP!$CXXCPP$ac_delim
30864 FFLAGS!$FFLAGS$ac_delim
30865 ac_ct_F77!$ac_ct_F77$ac_delim
30866 LIBTOOL!$LIBTOOL$ac_delim
30867 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30869 LIBNSL!$LIBNSL$ac_delim
30870 PKG_CONFIG!$PKG_CONFIG$ac_delim
30871 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30872 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30873 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
30874 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
30875 LIBSOCKET!$LIBSOCKET$ac_delim
30876 LIBCRYPT!$LIBCRYPT$ac_delim
30877 LIBBSD!$LIBBSD$ac_delim
30878 LIBBLKID!$LIBBLKID$ac_delim
30879 KRBDIR!$KRBDIR$ac_delim
30880 KRBLIBS!$KRBLIBS$ac_delim
30881 KRBCFLAGS!$KRBCFLAGS$ac_delim
30882 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30883 K5VERS!$K5VERS$ac_delim
30884 ALLOCA!$ALLOCA$ac_delim
30885 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30886 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30887 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30888 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30889 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30890 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30891 AM_CFLAGS!$AM_CFLAGS$ac_delim
30892 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30893 LTLIBOBJS!$LTLIBOBJS$ac_delim
30896 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30898 elif $ac_last_try; then
30899 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30900 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30901 { (exit 1); exit 1; }; }
30903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30907 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30908 if test -n "$ac_eof"; then
30909 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30910 ac_eof=`expr $ac_eof + 1`
30913 cat >>$CONFIG_STATUS <<_ACEOF
30914 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30918 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30919 s/^/s,@/; s/!/@,|#_!!_#|/
30922 s/'"$ac_delim"'$/,g/; t
30924 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30925 ' >>$CONFIG_STATUS <conf$$subs.sed
30926 rm -f conf$$subs.sed
30927 cat >>$CONFIG_STATUS <<_ACEOF
30934 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30935 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30936 # trailing colons and then remove the whole line if VPATH becomes empty
30937 # (actually we leave an empty line to preserve line numbers).
30938 if test "x$srcdir" = x.; then
30939 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30940 s/:*\$(srcdir):*/:/
30941 s/:*\${srcdir}:*/:/
30943 s/^\([^=]*=[ ]*\):*/\1/
30949 cat >>$CONFIG_STATUS <<\_ACEOF
30950 fi # test -n "$CONFIG_FILES"
30953 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30956 :[FHLC]) ac_mode=$ac_tag; continue;;
30958 case $ac_mode$ac_tag in
30960 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30961 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30962 { (exit 1); exit 1; }; };;
30963 :[FH]-) ac_tag=-:-;;
30964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30981 -) ac_f="$tmp/stdin";;
30982 *) # Look for the file first in the build tree, then in the source tree
30983 # (if the path is not absolute). The absolute path cannot be DOS-style,
30984 # because $ac_f cannot contain `:'.
30988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30990 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30991 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30992 { (exit 1); exit 1; }; };;
30994 ac_file_inputs="$ac_file_inputs $ac_f"
30997 # Let's still pretend it is `configure' which instantiates (i.e., don't
30998 # use $as_me), people would be surprised to read:
30999 # /* config.h. Generated by config.status. */
31000 configure_input="Generated from "`IFS=:
31001 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31002 if test x"$ac_file" != x-; then
31003 configure_input="$ac_file. $configure_input"
31004 { echo "$as_me:$LINENO: creating $ac_file" >&5
31005 echo "$as_me: creating $ac_file" >&6;}
31009 *:-:* | *:-) cat >"$tmp/stdin";;
31014 ac_dir=`$as_dirname -- "$ac_file" ||
31015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31016 X"$ac_file" : 'X\(//\)[^/]' \| \
31017 X"$ac_file" : 'X\(//\)$' \| \
31018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31024 /^X\(\/\/\)[^/].*/{
31039 -*) as_dir=./$as_dir;;
31041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31045 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31046 *) as_qdir=$as_dir;;
31048 as_dirs="'$as_qdir' $as_dirs"
31049 as_dir=`$as_dirname -- "$as_dir" ||
31050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31051 X"$as_dir" : 'X\(//\)[^/]' \| \
31052 X"$as_dir" : 'X\(//\)$' \| \
31053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31059 /^X\(\/\/\)[^/].*/{
31072 test -d "$as_dir" && break
31074 test -z "$as_dirs" || eval "mkdir $as_dirs"
31075 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31076 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31077 { (exit 1); exit 1; }; }; }
31081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31084 # A ".." for each directory in $ac_dir_suffix.
31085 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31086 case $ac_top_builddir_sub in
31087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31091 ac_abs_top_builddir=$ac_pwd
31092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31093 # for backward compatibility:
31094 ac_top_builddir=$ac_top_build_prefix
31097 .) # We are building in place.
31099 ac_top_srcdir=$ac_top_builddir_sub
31100 ac_abs_top_srcdir=$ac_pwd ;;
31101 [\\/]* | ?:[\\/]* ) # Absolute name.
31102 ac_srcdir=$srcdir$ac_dir_suffix;
31103 ac_top_srcdir=$srcdir
31104 ac_abs_top_srcdir=$srcdir ;;
31105 *) # Relative name.
31106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31107 ac_top_srcdir=$ac_top_build_prefix$srcdir
31108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31125 cat >>$CONFIG_STATUS <<\_ACEOF
31126 # If the template does not know about datarootdir, expand it.
31127 # FIXME: This hack should be removed a few years after 2.60.
31128 ac_datarootdir_hack=; ac_datarootdir_seen=
31130 case `sed -n '/datarootdir/ {
31139 ' $ac_file_inputs` in
31140 *datarootdir*) ac_datarootdir_seen=yes;;
31141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31142 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31143 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31145 cat >>$CONFIG_STATUS <<_ACEOF
31146 ac_datarootdir_hack='
31147 s&@datadir@&$datadir&g
31148 s&@docdir@&$docdir&g
31149 s&@infodir@&$infodir&g
31150 s&@localedir@&$localedir&g
31151 s&@mandir@&$mandir&g
31152 s&\\\${datarootdir}&$datarootdir&g' ;;
31156 # Neutralize VPATH when `$srcdir' = `.'.
31157 # Shell code in configure.ac might set extrasub.
31158 # FIXME: do we really want to maintain this feature?
31159 cat >>$CONFIG_STATUS <<_ACEOF
31163 cat >>$CONFIG_STATUS <<\_ACEOF
31165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31166 s&@configure_input@&$configure_input&;t t
31167 s&@top_builddir@&$ac_top_builddir_sub&;t t
31168 s&@srcdir@&$ac_srcdir&;t t
31169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31170 s&@top_srcdir@&$ac_top_srcdir&;t t
31171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31172 s&@builddir@&$ac_builddir&;t t
31173 s&@abs_builddir@&$ac_abs_builddir&;t t
31174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31175 s&@INSTALL@&$ac_INSTALL&;t t
31176 $ac_datarootdir_hack
31177 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31180 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31182 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31183 which seems to be undefined. Please make sure it is defined." >&5
31184 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31185 which seems to be undefined. Please make sure it is defined." >&2;}
31189 -) cat "$tmp/out"; rm -f "$tmp/out";;
31190 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31199 # Transform confdefs.h into a sed script `conftest.defines', that
31200 # substitutes the proper values into config.h.in to produce config.h.
31201 rm -f conftest.defines conftest.tail
31202 # First, append a space to every undef/define line, to ease matching.
31203 echo 's/$/ /' >conftest.defines
31204 # Then, protect against being on the right side of a sed subst, or in
31205 # an unquoted here document, in config.status. If some macros were
31206 # called several times there might be several #defines for the same
31207 # symbol, which is useless. But do not sort them, since the last
31208 # AC_DEFINE must be honored.
31209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31210 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31211 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31212 # PARAMS is the parameter list in the macro definition--in most cases, it's
31213 # just an empty string.
31214 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31215 ac_dB='\\)[ (].*,\\1define\\2'
31223 s/^[ ]*#[ ]*define[ ][ ]*//
31228 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31229 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31230 ' >>conftest.defines
31232 # Remove the space that was appended to ease matching.
31233 # Then replace #undef with comments. This is necessary, for
31234 # example, in the case of _POSIX_SOURCE, which is predefined and required
31235 # on some systems where configure will not decide to define it.
31236 # (The regexp can be short, since the line contains either #define or #undef.)
31238 s,^[ #]*u.*,/* & */,' >>conftest.defines
31240 # Break up conftest.defines:
31241 ac_max_sed_lines=50
31243 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31244 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31245 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31247 ac_in='$ac_file_inputs'
31248 ac_out='"$tmp/out1"'
31249 ac_nxt='"$tmp/out2"'
31253 # Write a here document:
31254 cat >>$CONFIG_STATUS <<_ACEOF
31255 # First, check the format of the line:
31256 cat >"\$tmp/defines.sed" <<\\CEOF
31257 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31258 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31262 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31264 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31265 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31266 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31267 grep . conftest.tail >/dev/null || break
31268 rm -f conftest.defines
31269 mv conftest.tail conftest.defines
31271 rm -f conftest.defines conftest.tail
31273 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31274 cat >>$CONFIG_STATUS <<\_ACEOF
31275 if test x"$ac_file" != x-; then
31276 echo "/* $configure_input */" >"$tmp/config.h"
31277 cat "$ac_result" >>"$tmp/config.h"
31278 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31279 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31280 echo "$as_me: $ac_file is unchanged" >&6;}
31283 mv "$tmp/config.h" $ac_file
31286 echo "/* $configure_input */"
31290 # Compute $ac_file's index in $config_headers.
31292 for _am_header in $config_headers :; do
31293 case $_am_header in
31294 $ac_file | $ac_file:* )
31297 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31300 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31301 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31302 X$ac_file : 'X\(//\)[^/]' \| \
31303 X$ac_file : 'X\(//\)$' \| \
31304 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31310 /^X\(\/\/\)[^/].*/{
31322 s/.*/./; q'`/stamp-h$_am_stamp_count
31325 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31326 echo "$as_me: executing $ac_file commands" >&6;}
31331 case $ac_file$ac_mode in
31332 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31333 # Strip MF so we end up with the name of the file.
31334 mf=`echo "$mf" | sed -e 's/:.*$//'`
31335 # Check whether this is an Automake generated Makefile or not.
31336 # We used to match only the files named `Makefile.in', but
31337 # some people rename them; so instead we look at the file content.
31338 # Grep'ing the first line is not enough: some people post-process
31339 # each Makefile.in and add a new line on top of each file to say so.
31340 # So let's grep whole file.
31341 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31342 dirpart=`$as_dirname -- "$mf" ||
31343 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31344 X"$mf" : 'X\(//\)[^/]' \| \
31345 X"$mf" : 'X\(//\)$' \| \
31346 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31352 /^X\(\/\/\)[^/].*/{
31368 # Extract the definition of DEPDIR, am__include, and am__quote
31369 # from the Makefile without running `make'.
31370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31371 test -z "$DEPDIR" && continue
31372 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31373 test -z "am__include" && continue
31374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31375 # When using ansi2knr, U may be empty or an underscore; expand it
31376 U=`sed -n 's/^U = //p' < "$mf"`
31377 # Find all dependency output files, they are included files with
31378 # $(DEPDIR) in their names. We invoke sed twice because it is the
31379 # simplest approach to changing $(DEPDIR) to its actual value in the
31381 for file in `sed -n "
31382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31384 # Make sure the directory exists.
31385 test -f "$dirpart/$file" && continue
31386 fdir=`$as_dirname -- "$file" ||
31387 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31388 X"$file" : 'X\(//\)[^/]' \| \
31389 X"$file" : 'X\(//\)$' \| \
31390 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31396 /^X\(\/\/\)[^/].*/{
31409 { as_dir=$dirpart/$fdir
31411 -*) as_dir=./$as_dir;;
31413 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31417 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31418 *) as_qdir=$as_dir;;
31420 as_dirs="'$as_qdir' $as_dirs"
31421 as_dir=`$as_dirname -- "$as_dir" ||
31422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31423 X"$as_dir" : 'X\(//\)[^/]' \| \
31424 X"$as_dir" : 'X\(//\)$' \| \
31425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31431 /^X\(\/\/\)[^/].*/{
31444 test -d "$as_dir" && break
31446 test -z "$as_dirs" || eval "mkdir $as_dirs"
31447 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31448 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31449 { (exit 1); exit 1; }; }; }
31450 # echo "creating $dirpart/$file"
31451 echo '# dummy' > "$dirpart/$file"
31460 { (exit 0); exit 0; }
31462 chmod +x $CONFIG_STATUS
31463 ac_clean_files=$ac_clean_files_save
31466 # configure is writing to config.log, and then calls config.status.
31467 # config.status does its own redirection, appending to config.log.
31468 # Unfortunately, on DOS this fails, as config.log is still kept open
31469 # by configure, so config.status won't be able to write to it; its
31470 # output is simply discarded. So we exec the FD to /dev/null,
31471 # effectively closing config.log, so it can be properly (re)opened and
31472 # appended to by config.status. When coming back to configure, we
31473 # need to make the FD available again.
31474 if test "$no_create" != yes; then
31476 ac_config_status_args=
31477 test "$silent" = yes &&
31478 ac_config_status_args="$ac_config_status_args --quiet"
31480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31483 # would make configure fail if this is the last instruction.
31484 $ac_cs_success || { (exit 1); exit 1; }